1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for xf86-video-i740 1.4.0. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-i740/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 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if 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 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_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. 45 if 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 --' 49 elif (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' 52 else 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' 72 fi 73 74 # The user is always right. 75 if 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 } 81 fi 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.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 93 case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96 for as_dir in $PATH 97 do 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 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 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. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 done 124 PS1='$ ' 125 PS2='> ' 126 PS4='+ ' 127 128 # NLS nuisances. 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export 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. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $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 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if 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 170 else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176 esac 177 fi 178 " 179 as_required="as_fn_return () { (exit \$1); } 180 as_fn_success () { as_fn_return 0; } 181 as_fn_failure () { as_fn_return 1; } 182 as_fn_ret_success () { return 0; } 183 as_fn_ret_failure () { return 1; } 184 185 exitcode=0 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 194 fi 195 test x\$exitcode = x0 || exit 1 196 test -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 test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212 else 213 as_have_required=no 214 fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217 else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219 as_found=false 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221 do 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 235 fi 236 fi 237 done;; 238 esac 239 as_found=false 240 done 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 244 fi; } 245 IFS=$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. 254 BASH_ENV=/dev/null 255 ENV=/dev/null 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257 case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262 esac 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264 # Admittedly, this is quite paranoid, since all the known shells bail 265 # out after a failed `exec'. 266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267 exit 255 268 fi 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 (at] gnu.org and 278 $0: https://gitlab.freedesktop.org/xorg/driver/xf86-video-i740/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 285 fi 286 fi 287 fi 288 SHELL=${CONFIG_SHELL-/bin/sh} 289 export SHELL 290 # Unset more variables known to interfere with behavior of common tools. 291 CLICOLOR_FORCE= GREP_OPTIONS= 292 unset CLICOLOR_FORCE GREP_OPTIONS 293 294 ## --------------------- ## 295 ## M4sh Shell Functions. ## 296 ## --------------------- ## 297 # as_fn_unset VAR 298 # --------------- 299 # Portably unset VAR. 300 as_fn_unset () 301 { 302 { eval $1=; unset $1;} 303 } 304 as_unset=as_fn_unset 305 306 # as_fn_set_status STATUS 307 # ----------------------- 308 # Set $? to STATUS, without forking. 309 as_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. 317 as_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. 327 as_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. 375 as_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. 385 if (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 }' 390 else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395 fi # 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. 402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407 else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412 fi # 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. 420 as_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 431 if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434 else 435 as_expr=false 436 fi 437 438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440 else 441 as_basename=false 442 fi 443 444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446 else 447 as_dirname=false 448 fi 449 450 as_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. 470 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473 as_cr_digits='0123456789' 474 as_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 512 ECHO_C= ECHO_N= ECHO_T= 513 case `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';; 523 esac 524 525 rm -f conf$$ conf$$.exe conf$$.file 526 if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528 else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531 fi 532 if (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 546 else 547 as_ln_s='cp -pR' 548 fi 549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550 rmdir conf$$.dir 2>/dev/null 551 552 if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554 else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557 fi 558 559 as_test_x='test -x' 560 as_executable_p=as_fn_executable_p 561 562 # Sed expression to map a string onto a valid CPP name. 563 as_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. 566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568 SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571 test -n "$DJDIR" || exec 7<&0 </dev/null 572 exec 6>&1 573 574 # Name of the host. 575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576 # so uname gets run too. 577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579 # 580 # Initializations. 581 # 582 ac_default_prefix=/usr/local 583 ac_clean_files= 584 ac_config_libobj_dir=. 585 LIBOBJS= 586 cross_compiling=no 587 subdirs= 588 MFLAGS= 589 MAKEFLAGS= 590 591 # Identity of this package. 592 PACKAGE_NAME='xf86-video-i740' 593 PACKAGE_TARNAME='xf86-video-i740' 594 PACKAGE_VERSION='1.4.0' 595 PACKAGE_STRING='xf86-video-i740 1.4.0' 596 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-i740/issues' 597 PACKAGE_URL='' 598 599 ac_unique_file="Makefile.am" 600 # Factoring default headers for most tests. 601 ac_includes_default="\ 602 #include <stdio.h> 603 #ifdef HAVE_SYS_TYPES_H 604 # include <sys/types.h> 605 #endif 606 #ifdef HAVE_SYS_STAT_H 607 # include <sys/stat.h> 608 #endif 609 #ifdef STDC_HEADERS 610 # include <stdlib.h> 611 # include <stddef.h> 612 #else 613 # ifdef HAVE_STDLIB_H 614 # include <stdlib.h> 615 # endif 616 #endif 617 #ifdef HAVE_STRING_H 618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619 # include <memory.h> 620 # endif 621 # include <string.h> 622 #endif 623 #ifdef HAVE_STRINGS_H 624 # include <strings.h> 625 #endif 626 #ifdef HAVE_INTTYPES_H 627 # include <inttypes.h> 628 #endif 629 #ifdef HAVE_STDINT_H 630 # include <stdint.h> 631 #endif 632 #ifdef HAVE_UNISTD_H 633 # include <unistd.h> 634 #endif" 635 636 ac_subst_vars='am__EXEEXT_FALSE 637 am__EXEEXT_TRUE 638 LTLIBOBJS 639 LIBOBJS 640 DRIVER_NAME 641 moduledir 642 XAA_FALSE 643 XAA_TRUE 644 XSERVER_LIBPCIACCESS_FALSE 645 XSERVER_LIBPCIACCESS_TRUE 646 PCIACCESS_LIBS 647 PCIACCESS_CFLAGS 648 XORG_LIBS 649 XORG_CFLAGS 650 LT_SYS_LIBRARY_PATH 651 OTOOL64 652 OTOOL 653 LIPO 654 NMEDIT 655 DSYMUTIL 656 MANIFEST_TOOL 657 RANLIB 658 ac_ct_AR 659 AR 660 DLLTOOL 661 OBJDUMP 662 LN_S 663 NM 664 ac_ct_DUMPBIN 665 DUMPBIN 666 LD 667 FGREP 668 LIBTOOL 669 MAN_SUBSTS 670 XORG_MAN_PAGE 671 ADMIN_MAN_DIR 672 DRIVER_MAN_DIR 673 MISC_MAN_DIR 674 FILE_MAN_DIR 675 LIB_MAN_DIR 676 APP_MAN_DIR 677 ADMIN_MAN_SUFFIX 678 DRIVER_MAN_SUFFIX 679 MISC_MAN_SUFFIX 680 FILE_MAN_SUFFIX 681 LIB_MAN_SUFFIX 682 APP_MAN_SUFFIX 683 SED 684 host_os 685 host_vendor 686 host_cpu 687 host 688 build_os 689 build_vendor 690 build_cpu 691 build 692 INSTALL_CMD 693 PKG_CONFIG_LIBDIR 694 PKG_CONFIG_PATH 695 PKG_CONFIG 696 CHANGELOG_CMD 697 STRICT_CFLAGS 698 CWARNFLAGS 699 BASE_CFLAGS 700 EGREP 701 GREP 702 CPP 703 am__fastdepCC_FALSE 704 am__fastdepCC_TRUE 705 CCDEPMODE 706 am__nodep 707 AMDEPBACKSLASH 708 AMDEP_FALSE 709 AMDEP_TRUE 710 am__quote 711 am__include 712 DEPDIR 713 OBJEXT 714 EXEEXT 715 ac_ct_CC 716 CPPFLAGS 717 LDFLAGS 718 CFLAGS 719 CC 720 AM_BACKSLASH 721 AM_DEFAULT_VERBOSITY 722 AM_DEFAULT_V 723 AM_V 724 am__untar 725 am__tar 726 AMTAR 727 am__leading_dot 728 SET_MAKE 729 AWK 730 mkdir_p 731 MKDIR_P 732 INSTALL_STRIP_PROGRAM 733 STRIP 734 install_sh 735 MAKEINFO 736 AUTOHEADER 737 AUTOMAKE 738 AUTOCONF 739 ACLOCAL 740 VERSION 741 PACKAGE 742 CYGPATH_W 743 am__isrc 744 INSTALL_DATA 745 INSTALL_SCRIPT 746 INSTALL_PROGRAM 747 target_alias 748 host_alias 749 build_alias 750 LIBS 751 ECHO_T 752 ECHO_N 753 ECHO_C 754 DEFS 755 mandir 756 localedir 757 libdir 758 psdir 759 pdfdir 760 dvidir 761 htmldir 762 infodir 763 docdir 764 oldincludedir 765 includedir 766 runstatedir 767 localstatedir 768 sharedstatedir 769 sysconfdir 770 datadir 771 datarootdir 772 libexecdir 773 sbindir 774 bindir 775 program_transform_name 776 prefix 777 exec_prefix 778 PACKAGE_URL 779 PACKAGE_BUGREPORT 780 PACKAGE_STRING 781 PACKAGE_VERSION 782 PACKAGE_TARNAME 783 PACKAGE_NAME 784 PATH_SEPARATOR 785 SHELL' 786 ac_subst_files='' 787 ac_user_opts=' 788 enable_option_checking 789 enable_silent_rules 790 enable_dependency_tracking 791 enable_selective_werror 792 enable_strict_compilation 793 enable_static 794 enable_shared 795 with_pic 796 enable_fast_install 797 with_aix_soname 798 with_gnu_ld 799 with_sysroot 800 enable_libtool_lock 801 with_xorg_module_dir 802 enable_xaa 803 ' 804 ac_precious_vars='build_alias 805 host_alias 806 target_alias 807 CC 808 CFLAGS 809 LDFLAGS 810 LIBS 811 CPPFLAGS 812 CPP 813 PKG_CONFIG 814 PKG_CONFIG_PATH 815 PKG_CONFIG_LIBDIR 816 LT_SYS_LIBRARY_PATH 817 XORG_CFLAGS 818 XORG_LIBS 819 PCIACCESS_CFLAGS 820 PCIACCESS_LIBS' 821 822 823 # Initialize some variables set by options. 824 ac_init_help= 825 ac_init_version=false 826 ac_unrecognized_opts= 827 ac_unrecognized_sep= 828 # The variables have the same names as the options, with 829 # dashes changed to underlines. 830 cache_file=/dev/null 831 exec_prefix=NONE 832 no_create= 833 no_recursion= 834 prefix=NONE 835 program_prefix=NONE 836 program_suffix=NONE 837 program_transform_name=s,x,x, 838 silent= 839 site= 840 srcdir= 841 verbose= 842 x_includes=NONE 843 x_libraries=NONE 844 845 # Installation directory options. 846 # These are left unexpanded so users can "make install exec_prefix=/foo" 847 # and all the variables that are supposed to be based on exec_prefix 848 # by default will actually change. 849 # Use braces instead of parens because sh, perl, etc. also accept them. 850 # (The list follows the same order as the GNU Coding Standards.) 851 bindir='${exec_prefix}/bin' 852 sbindir='${exec_prefix}/sbin' 853 libexecdir='${exec_prefix}/libexec' 854 datarootdir='${prefix}/share' 855 datadir='${datarootdir}' 856 sysconfdir='${prefix}/etc' 857 sharedstatedir='${prefix}/com' 858 localstatedir='${prefix}/var' 859 runstatedir='${localstatedir}/run' 860 includedir='${prefix}/include' 861 oldincludedir='/usr/include' 862 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 863 infodir='${datarootdir}/info' 864 htmldir='${docdir}' 865 dvidir='${docdir}' 866 pdfdir='${docdir}' 867 psdir='${docdir}' 868 libdir='${exec_prefix}/lib' 869 localedir='${datarootdir}/locale' 870 mandir='${datarootdir}/man' 871 872 ac_prev= 873 ac_dashdash= 874 for ac_option 875 do 876 # If the previous option needs an argument, assign it. 877 if test -n "$ac_prev"; then 878 eval $ac_prev=\$ac_option 879 ac_prev= 880 continue 881 fi 882 883 case $ac_option in 884 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 885 *=) ac_optarg= ;; 886 *) ac_optarg=yes ;; 887 esac 888 889 # Accept the important Cygnus configure options, so we can diagnose typos. 890 891 case $ac_dashdash$ac_option in 892 --) 893 ac_dashdash=yes ;; 894 895 -bindir | --bindir | --bindi | --bind | --bin | --bi) 896 ac_prev=bindir ;; 897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 898 bindir=$ac_optarg ;; 899 900 -build | --build | --buil | --bui | --bu) 901 ac_prev=build_alias ;; 902 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 903 build_alias=$ac_optarg ;; 904 905 -cache-file | --cache-file | --cache-fil | --cache-fi \ 906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 907 ac_prev=cache_file ;; 908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 910 cache_file=$ac_optarg ;; 911 912 --config-cache | -C) 913 cache_file=config.cache ;; 914 915 -datadir | --datadir | --datadi | --datad) 916 ac_prev=datadir ;; 917 -datadir=* | --datadir=* | --datadi=* | --datad=*) 918 datadir=$ac_optarg ;; 919 920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 921 | --dataroo | --dataro | --datar) 922 ac_prev=datarootdir ;; 923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 925 datarootdir=$ac_optarg ;; 926 927 -disable-* | --disable-*) 928 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 929 # Reject names that are not valid shell variable names. 930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 931 as_fn_error $? "invalid feature name: $ac_useropt" 932 ac_useropt_orig=$ac_useropt 933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 934 case $ac_user_opts in 935 *" 936 "enable_$ac_useropt" 937 "*) ;; 938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 939 ac_unrecognized_sep=', ';; 940 esac 941 eval enable_$ac_useropt=no ;; 942 943 -docdir | --docdir | --docdi | --doc | --do) 944 ac_prev=docdir ;; 945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 946 docdir=$ac_optarg ;; 947 948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 949 ac_prev=dvidir ;; 950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 951 dvidir=$ac_optarg ;; 952 953 -enable-* | --enable-*) 954 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 955 # Reject names that are not valid shell variable names. 956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 957 as_fn_error $? "invalid feature name: $ac_useropt" 958 ac_useropt_orig=$ac_useropt 959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 960 case $ac_user_opts in 961 *" 962 "enable_$ac_useropt" 963 "*) ;; 964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 965 ac_unrecognized_sep=', ';; 966 esac 967 eval enable_$ac_useropt=\$ac_optarg ;; 968 969 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 970 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 971 | --exec | --exe | --ex) 972 ac_prev=exec_prefix ;; 973 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 974 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 975 | --exec=* | --exe=* | --ex=*) 976 exec_prefix=$ac_optarg ;; 977 978 -gas | --gas | --ga | --g) 979 # Obsolete; use --with-gas. 980 with_gas=yes ;; 981 982 -help | --help | --hel | --he | -h) 983 ac_init_help=long ;; 984 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 985 ac_init_help=recursive ;; 986 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 987 ac_init_help=short ;; 988 989 -host | --host | --hos | --ho) 990 ac_prev=host_alias ;; 991 -host=* | --host=* | --hos=* | --ho=*) 992 host_alias=$ac_optarg ;; 993 994 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 995 ac_prev=htmldir ;; 996 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 997 | --ht=*) 998 htmldir=$ac_optarg ;; 999 1000 -includedir | --includedir | --includedi | --included | --include \ 1001 | --includ | --inclu | --incl | --inc) 1002 ac_prev=includedir ;; 1003 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1004 | --includ=* | --inclu=* | --incl=* | --inc=*) 1005 includedir=$ac_optarg ;; 1006 1007 -infodir | --infodir | --infodi | --infod | --info | --inf) 1008 ac_prev=infodir ;; 1009 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1010 infodir=$ac_optarg ;; 1011 1012 -libdir | --libdir | --libdi | --libd) 1013 ac_prev=libdir ;; 1014 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1015 libdir=$ac_optarg ;; 1016 1017 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1018 | --libexe | --libex | --libe) 1019 ac_prev=libexecdir ;; 1020 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1021 | --libexe=* | --libex=* | --libe=*) 1022 libexecdir=$ac_optarg ;; 1023 1024 -localedir | --localedir | --localedi | --localed | --locale) 1025 ac_prev=localedir ;; 1026 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1027 localedir=$ac_optarg ;; 1028 1029 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1030 | --localstate | --localstat | --localsta | --localst | --locals) 1031 ac_prev=localstatedir ;; 1032 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1033 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1034 localstatedir=$ac_optarg ;; 1035 1036 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1037 ac_prev=mandir ;; 1038 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1039 mandir=$ac_optarg ;; 1040 1041 -nfp | --nfp | --nf) 1042 # Obsolete; use --without-fp. 1043 with_fp=no ;; 1044 1045 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1046 | --no-cr | --no-c | -n) 1047 no_create=yes ;; 1048 1049 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1050 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1051 no_recursion=yes ;; 1052 1053 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1054 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1055 | --oldin | --oldi | --old | --ol | --o) 1056 ac_prev=oldincludedir ;; 1057 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1058 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1059 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1060 oldincludedir=$ac_optarg ;; 1061 1062 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1063 ac_prev=prefix ;; 1064 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1065 prefix=$ac_optarg ;; 1066 1067 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1068 | --program-pre | --program-pr | --program-p) 1069 ac_prev=program_prefix ;; 1070 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1071 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1072 program_prefix=$ac_optarg ;; 1073 1074 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1075 | --program-suf | --program-su | --program-s) 1076 ac_prev=program_suffix ;; 1077 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1078 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1079 program_suffix=$ac_optarg ;; 1080 1081 -program-transform-name | --program-transform-name \ 1082 | --program-transform-nam | --program-transform-na \ 1083 | --program-transform-n | --program-transform- \ 1084 | --program-transform | --program-transfor \ 1085 | --program-transfo | --program-transf \ 1086 | --program-trans | --program-tran \ 1087 | --progr-tra | --program-tr | --program-t) 1088 ac_prev=program_transform_name ;; 1089 -program-transform-name=* | --program-transform-name=* \ 1090 | --program-transform-nam=* | --program-transform-na=* \ 1091 | --program-transform-n=* | --program-transform-=* \ 1092 | --program-transform=* | --program-transfor=* \ 1093 | --program-transfo=* | --program-transf=* \ 1094 | --program-trans=* | --program-tran=* \ 1095 | --progr-tra=* | --program-tr=* | --program-t=*) 1096 program_transform_name=$ac_optarg ;; 1097 1098 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1099 ac_prev=pdfdir ;; 1100 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1101 pdfdir=$ac_optarg ;; 1102 1103 -psdir | --psdir | --psdi | --psd | --ps) 1104 ac_prev=psdir ;; 1105 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1106 psdir=$ac_optarg ;; 1107 1108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1109 | -silent | --silent | --silen | --sile | --sil) 1110 silent=yes ;; 1111 1112 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1113 | --runstate | --runstat | --runsta | --runst | --runs \ 1114 | --run | --ru | --r) 1115 ac_prev=runstatedir ;; 1116 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1117 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1118 | --run=* | --ru=* | --r=*) 1119 runstatedir=$ac_optarg ;; 1120 1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1122 ac_prev=sbindir ;; 1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1124 | --sbi=* | --sb=*) 1125 sbindir=$ac_optarg ;; 1126 1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1129 | --sharedst | --shareds | --shared | --share | --shar \ 1130 | --sha | --sh) 1131 ac_prev=sharedstatedir ;; 1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1135 | --sha=* | --sh=*) 1136 sharedstatedir=$ac_optarg ;; 1137 1138 -site | --site | --sit) 1139 ac_prev=site ;; 1140 -site=* | --site=* | --sit=*) 1141 site=$ac_optarg ;; 1142 1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1144 ac_prev=srcdir ;; 1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1146 srcdir=$ac_optarg ;; 1147 1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1149 | --syscon | --sysco | --sysc | --sys | --sy) 1150 ac_prev=sysconfdir ;; 1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1153 sysconfdir=$ac_optarg ;; 1154 1155 -target | --target | --targe | --targ | --tar | --ta | --t) 1156 ac_prev=target_alias ;; 1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1158 target_alias=$ac_optarg ;; 1159 1160 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1161 verbose=yes ;; 1162 1163 -version | --version | --versio | --versi | --vers | -V) 1164 ac_init_version=: ;; 1165 1166 -with-* | --with-*) 1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1168 # Reject names that are not valid shell variable names. 1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1170 as_fn_error $? "invalid package name: $ac_useropt" 1171 ac_useropt_orig=$ac_useropt 1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1173 case $ac_user_opts in 1174 *" 1175 "with_$ac_useropt" 1176 "*) ;; 1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1178 ac_unrecognized_sep=', ';; 1179 esac 1180 eval with_$ac_useropt=\$ac_optarg ;; 1181 1182 -without-* | --without-*) 1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1184 # Reject names that are not valid shell variable names. 1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1186 as_fn_error $? "invalid package name: $ac_useropt" 1187 ac_useropt_orig=$ac_useropt 1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1189 case $ac_user_opts in 1190 *" 1191 "with_$ac_useropt" 1192 "*) ;; 1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1194 ac_unrecognized_sep=', ';; 1195 esac 1196 eval with_$ac_useropt=no ;; 1197 1198 --x) 1199 # Obsolete; use --with-x. 1200 with_x=yes ;; 1201 1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1203 | --x-incl | --x-inc | --x-in | --x-i) 1204 ac_prev=x_includes ;; 1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1207 x_includes=$ac_optarg ;; 1208 1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1211 ac_prev=x_libraries ;; 1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1214 x_libraries=$ac_optarg ;; 1215 1216 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1217 Try \`$0 --help' for more information" 1218 ;; 1219 1220 *=*) 1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1222 # Reject names that are not valid shell variable names. 1223 case $ac_envvar in #( 1224 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1226 esac 1227 eval $ac_envvar=\$ac_optarg 1228 export $ac_envvar ;; 1229 1230 *) 1231 # FIXME: should be removed in autoconf 3.0. 1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1236 ;; 1237 1238 esac 1239 done 1240 1241 if test -n "$ac_prev"; then 1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1243 as_fn_error $? "missing argument to $ac_option" 1244 fi 1245 1246 if test -n "$ac_unrecognized_opts"; then 1247 case $enable_option_checking in 1248 no) ;; 1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1251 esac 1252 fi 1253 1254 # Check all directory arguments for consistency. 1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1256 datadir sysconfdir sharedstatedir localstatedir includedir \ 1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1258 libdir localedir mandir runstatedir 1259 do 1260 eval ac_val=\$$ac_var 1261 # Remove trailing slashes. 1262 case $ac_val in 1263 */ ) 1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1265 eval $ac_var=\$ac_val;; 1266 esac 1267 # Be sure to have absolute directory names. 1268 case $ac_val in 1269 [\\/$]* | ?:[\\/]* ) continue;; 1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1271 esac 1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1273 done 1274 1275 # There might be people who depend on the old broken behavior: `$host' 1276 # used to hold the argument of --host etc. 1277 # FIXME: To remove some day. 1278 build=$build_alias 1279 host=$host_alias 1280 target=$target_alias 1281 1282 # FIXME: To remove some day. 1283 if test "x$host_alias" != x; then 1284 if test "x$build_alias" = x; then 1285 cross_compiling=maybe 1286 elif test "x$build_alias" != "x$host_alias"; then 1287 cross_compiling=yes 1288 fi 1289 fi 1290 1291 ac_tool_prefix= 1292 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1293 1294 test "$silent" = yes && exec 6>/dev/null 1295 1296 1297 ac_pwd=`pwd` && test -n "$ac_pwd" && 1298 ac_ls_di=`ls -di .` && 1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1300 as_fn_error $? "working directory cannot be determined" 1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1302 as_fn_error $? "pwd does not report name of working directory" 1303 1304 1305 # Find the source files, if location was not specified. 1306 if test -z "$srcdir"; then 1307 ac_srcdir_defaulted=yes 1308 # Try the directory containing this script, then the parent directory. 1309 ac_confdir=`$as_dirname -- "$as_myself" || 1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1311 X"$as_myself" : 'X\(//\)[^/]' \| \ 1312 X"$as_myself" : 'X\(//\)$' \| \ 1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1314 $as_echo X"$as_myself" | 1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1316 s//\1/ 1317 q 1318 } 1319 /^X\(\/\/\)[^/].*/{ 1320 s//\1/ 1321 q 1322 } 1323 /^X\(\/\/\)$/{ 1324 s//\1/ 1325 q 1326 } 1327 /^X\(\/\).*/{ 1328 s//\1/ 1329 q 1330 } 1331 s/.*/./; q'` 1332 srcdir=$ac_confdir 1333 if test ! -r "$srcdir/$ac_unique_file"; then 1334 srcdir=.. 1335 fi 1336 else 1337 ac_srcdir_defaulted=no 1338 fi 1339 if test ! -r "$srcdir/$ac_unique_file"; then 1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1342 fi 1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1344 ac_abs_confdir=`( 1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1346 pwd)` 1347 # When building in place, set srcdir=. 1348 if test "$ac_abs_confdir" = "$ac_pwd"; then 1349 srcdir=. 1350 fi 1351 # Remove unnecessary trailing slashes from srcdir. 1352 # Double slashes in file names in object file debugging info 1353 # mess up M-x gdb in Emacs. 1354 case $srcdir in 1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1356 esac 1357 for ac_var in $ac_precious_vars; do 1358 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1359 eval ac_env_${ac_var}_value=\$${ac_var} 1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1361 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1362 done 1363 1364 # 1365 # Report the --help message. 1366 # 1367 if test "$ac_init_help" = "long"; then 1368 # Omit some internal or obsolete options to make the list less imposing. 1369 # This message is too long to be a string in the A/UX 3.1 sh. 1370 cat <<_ACEOF 1371 \`configure' configures xf86-video-i740 1.4.0 to adapt to many kinds of systems. 1372 1373 Usage: $0 [OPTION]... [VAR=VALUE]... 1374 1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1376 VAR=VALUE. See below for descriptions of some of the useful variables. 1377 1378 Defaults for the options are specified in brackets. 1379 1380 Configuration: 1381 -h, --help display this help and exit 1382 --help=short display options specific to this package 1383 --help=recursive display the short help of all the included packages 1384 -V, --version display version information and exit 1385 -q, --quiet, --silent do not print \`checking ...' messages 1386 --cache-file=FILE cache test results in FILE [disabled] 1387 -C, --config-cache alias for \`--cache-file=config.cache' 1388 -n, --no-create do not create output files 1389 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1390 1391 Installation directories: 1392 --prefix=PREFIX install architecture-independent files in PREFIX 1393 [$ac_default_prefix] 1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1395 [PREFIX] 1396 1397 By default, \`make install' will install all the files in 1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1400 for instance \`--prefix=\$HOME'. 1401 1402 For better control, use the options below. 1403 1404 Fine tuning of the installation directories: 1405 --bindir=DIR user executables [EPREFIX/bin] 1406 --sbindir=DIR system admin executables [EPREFIX/sbin] 1407 --libexecdir=DIR program executables [EPREFIX/libexec] 1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1411 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1412 --libdir=DIR object code libraries [EPREFIX/lib] 1413 --includedir=DIR C header files [PREFIX/include] 1414 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1417 --infodir=DIR info documentation [DATAROOTDIR/info] 1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1419 --mandir=DIR man documentation [DATAROOTDIR/man] 1420 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-i740] 1421 --htmldir=DIR html documentation [DOCDIR] 1422 --dvidir=DIR dvi documentation [DOCDIR] 1423 --pdfdir=DIR pdf documentation [DOCDIR] 1424 --psdir=DIR ps documentation [DOCDIR] 1425 _ACEOF 1426 1427 cat <<\_ACEOF 1428 1429 Program names: 1430 --program-prefix=PREFIX prepend PREFIX to installed program names 1431 --program-suffix=SUFFIX append SUFFIX to installed program names 1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1433 1434 System types: 1435 --build=BUILD configure for building on BUILD [guessed] 1436 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1437 _ACEOF 1438 fi 1439 1440 if test -n "$ac_init_help"; then 1441 case $ac_init_help in 1442 short | recursive ) echo "Configuration of xf86-video-i740 1.4.0:";; 1443 esac 1444 cat <<\_ACEOF 1445 1446 Optional Features: 1447 --disable-option-checking ignore unrecognized --enable/--with options 1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1450 --enable-silent-rules less verbose build output (undo: "make V=1") 1451 --disable-silent-rules verbose build output (undo: "make V=0") 1452 --enable-dependency-tracking 1453 do not reject slow dependency extractors 1454 --disable-dependency-tracking 1455 speeds up one-time build 1456 --disable-selective-werror 1457 Turn off selective compiler errors. (default: 1458 enabled) 1459 --enable-strict-compilation 1460 Enable all warnings from compiler and make them 1461 errors (default: disabled) 1462 --enable-static[=PKGS] build static libraries [default=no] 1463 --enable-shared[=PKGS] build shared libraries [default=yes] 1464 --enable-fast-install[=PKGS] 1465 optimize for fast installation [default=yes] 1466 --disable-libtool-lock avoid locking (might break parallel builds) 1467 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1468 [default=auto] 1469 1470 Optional Packages: 1471 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1472 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1473 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1474 both] 1475 --with-aix-soname=aix|svr4|both 1476 shared library versioning (aka "SONAME") variant to 1477 provide on AIX, [default=aix]. 1478 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1479 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1480 compiler's sysroot if not specified). 1481 --with-xorg-module-dir=DIR 1482 Default xorg module directory 1483 [[default=$libdir/xorg/modules]] 1484 1485 Some influential environment variables: 1486 CC C compiler command 1487 CFLAGS C compiler flags 1488 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1489 nonstandard directory <lib dir> 1490 LIBS libraries to pass to the linker, e.g. -l<library> 1491 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1492 you have headers in a nonstandard directory <include dir> 1493 CPP C preprocessor 1494 PKG_CONFIG path to pkg-config utility 1495 PKG_CONFIG_PATH 1496 directories to add to pkg-config's search path 1497 PKG_CONFIG_LIBDIR 1498 path overriding pkg-config's built-in search path 1499 LT_SYS_LIBRARY_PATH 1500 User-defined run-time library search path. 1501 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1502 XORG_LIBS linker flags for XORG, overriding pkg-config 1503 PCIACCESS_CFLAGS 1504 C compiler flags for PCIACCESS, overriding pkg-config 1505 PCIACCESS_LIBS 1506 linker flags for PCIACCESS, overriding pkg-config 1507 1508 Use these variables to override the choices made by `configure' or to help 1509 it to find libraries and programs with nonstandard names/locations. 1510 1511 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-i740/issues>. 1512 _ACEOF 1513 ac_status=$? 1514 fi 1515 1516 if test "$ac_init_help" = "recursive"; then 1517 # If there are subdirs, report their specific --help. 1518 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1519 test -d "$ac_dir" || 1520 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1521 continue 1522 ac_builddir=. 1523 1524 case "$ac_dir" in 1525 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1526 *) 1527 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1528 # A ".." for each directory in $ac_dir_suffix. 1529 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1530 case $ac_top_builddir_sub in 1531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1533 esac ;; 1534 esac 1535 ac_abs_top_builddir=$ac_pwd 1536 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1537 # for backward compatibility: 1538 ac_top_builddir=$ac_top_build_prefix 1539 1540 case $srcdir in 1541 .) # We are building in place. 1542 ac_srcdir=. 1543 ac_top_srcdir=$ac_top_builddir_sub 1544 ac_abs_top_srcdir=$ac_pwd ;; 1545 [\\/]* | ?:[\\/]* ) # Absolute name. 1546 ac_srcdir=$srcdir$ac_dir_suffix; 1547 ac_top_srcdir=$srcdir 1548 ac_abs_top_srcdir=$srcdir ;; 1549 *) # Relative name. 1550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1551 ac_top_srcdir=$ac_top_build_prefix$srcdir 1552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1553 esac 1554 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1555 1556 cd "$ac_dir" || { ac_status=$?; continue; } 1557 # Check for guested configure. 1558 if test -f "$ac_srcdir/configure.gnu"; then 1559 echo && 1560 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1561 elif test -f "$ac_srcdir/configure"; then 1562 echo && 1563 $SHELL "$ac_srcdir/configure" --help=recursive 1564 else 1565 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1566 fi || ac_status=$? 1567 cd "$ac_pwd" || { ac_status=$?; break; } 1568 done 1569 fi 1570 1571 test -n "$ac_init_help" && exit $ac_status 1572 if $ac_init_version; then 1573 cat <<\_ACEOF 1574 xf86-video-i740 configure 1.4.0 1575 generated by GNU Autoconf 2.69 1576 1577 Copyright (C) 2012 Free Software Foundation, Inc. 1578 This configure script is free software; the Free Software Foundation 1579 gives unlimited permission to copy, distribute and modify it. 1580 _ACEOF 1581 exit 1582 fi 1583 1584 ## ------------------------ ## 1585 ## Autoconf initialization. ## 1586 ## ------------------------ ## 1587 1588 # ac_fn_c_try_compile LINENO 1589 # -------------------------- 1590 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1591 ac_fn_c_try_compile () 1592 { 1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1594 rm -f conftest.$ac_objext 1595 if { { ac_try="$ac_compile" 1596 case "(($ac_try" in 1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1598 *) ac_try_echo=$ac_try;; 1599 esac 1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1601 $as_echo "$ac_try_echo"; } >&5 1602 (eval "$ac_compile") 2>conftest.err 1603 ac_status=$? 1604 if test -s conftest.err; then 1605 grep -v '^ *+' conftest.err >conftest.er1 1606 cat conftest.er1 >&5 1607 mv -f conftest.er1 conftest.err 1608 fi 1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1610 test $ac_status = 0; } && { 1611 test -z "$ac_c_werror_flag" || 1612 test ! -s conftest.err 1613 } && test -s conftest.$ac_objext; then : 1614 ac_retval=0 1615 else 1616 $as_echo "$as_me: failed program was:" >&5 1617 sed 's/^/| /' conftest.$ac_ext >&5 1618 1619 ac_retval=1 1620 fi 1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1622 as_fn_set_status $ac_retval 1623 1624 } # ac_fn_c_try_compile 1625 1626 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1627 # --------------------------------------------- 1628 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1629 # accordingly. 1630 ac_fn_c_check_decl () 1631 { 1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1633 as_decl_name=`echo $2|sed 's/ *(.*//'` 1634 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1636 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1637 if eval \${$3+:} false; then : 1638 $as_echo_n "(cached) " >&6 1639 else 1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1641 /* end confdefs.h. */ 1642 $4 1643 int 1644 main () 1645 { 1646 #ifndef $as_decl_name 1647 #ifdef __cplusplus 1648 (void) $as_decl_use; 1649 #else 1650 (void) $as_decl_name; 1651 #endif 1652 #endif 1653 1654 ; 1655 return 0; 1656 } 1657 _ACEOF 1658 if ac_fn_c_try_compile "$LINENO"; then : 1659 eval "$3=yes" 1660 else 1661 eval "$3=no" 1662 fi 1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1664 fi 1665 eval ac_res=\$$3 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1667 $as_echo "$ac_res" >&6; } 1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1669 1670 } # ac_fn_c_check_decl 1671 1672 # ac_fn_c_try_cpp LINENO 1673 # ---------------------- 1674 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1675 ac_fn_c_try_cpp () 1676 { 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 if { { ac_try="$ac_cpp conftest.$ac_ext" 1679 case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682 esac 1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684 $as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } > conftest.i && { 1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1695 test ! -s conftest.err 1696 }; then : 1697 ac_retval=0 1698 else 1699 $as_echo "$as_me: failed program was:" >&5 1700 sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 1703 fi 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 as_fn_set_status $ac_retval 1706 1707 } # ac_fn_c_try_cpp 1708 1709 # ac_fn_c_try_run LINENO 1710 # ---------------------- 1711 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1712 # that executables *can* be run. 1713 ac_fn_c_try_run () 1714 { 1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1716 if { { ac_try="$ac_link" 1717 case "(($ac_try" in 1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1719 *) ac_try_echo=$ac_try;; 1720 esac 1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1722 $as_echo "$ac_try_echo"; } >&5 1723 (eval "$ac_link") 2>&5 1724 ac_status=$? 1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1727 { { case "(($ac_try" in 1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1729 *) ac_try_echo=$ac_try;; 1730 esac 1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1732 $as_echo "$ac_try_echo"; } >&5 1733 (eval "$ac_try") 2>&5 1734 ac_status=$? 1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1736 test $ac_status = 0; }; }; then : 1737 ac_retval=0 1738 else 1739 $as_echo "$as_me: program exited with status $ac_status" >&5 1740 $as_echo "$as_me: failed program was:" >&5 1741 sed 's/^/| /' conftest.$ac_ext >&5 1742 1743 ac_retval=$ac_status 1744 fi 1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1747 as_fn_set_status $ac_retval 1748 1749 } # ac_fn_c_try_run 1750 1751 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1752 # ------------------------------------------------------- 1753 # Tests whether HEADER exists and can be compiled using the include files in 1754 # INCLUDES, setting the cache variable VAR accordingly. 1755 ac_fn_c_check_header_compile () 1756 { 1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1759 $as_echo_n "checking for $2... " >&6; } 1760 if eval \${$3+:} false; then : 1761 $as_echo_n "(cached) " >&6 1762 else 1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1764 /* end confdefs.h. */ 1765 $4 1766 #include <$2> 1767 _ACEOF 1768 if ac_fn_c_try_compile "$LINENO"; then : 1769 eval "$3=yes" 1770 else 1771 eval "$3=no" 1772 fi 1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1774 fi 1775 eval ac_res=\$$3 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1777 $as_echo "$ac_res" >&6; } 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1779 1780 } # ac_fn_c_check_header_compile 1781 1782 # ac_fn_c_try_link LINENO 1783 # ----------------------- 1784 # Try to link conftest.$ac_ext, and return whether this succeeded. 1785 ac_fn_c_try_link () 1786 { 1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1788 rm -f conftest.$ac_objext conftest$ac_exeext 1789 if { { ac_try="$ac_link" 1790 case "(($ac_try" in 1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1792 *) ac_try_echo=$ac_try;; 1793 esac 1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1795 $as_echo "$ac_try_echo"; } >&5 1796 (eval "$ac_link") 2>conftest.err 1797 ac_status=$? 1798 if test -s conftest.err; then 1799 grep -v '^ *+' conftest.err >conftest.er1 1800 cat conftest.er1 >&5 1801 mv -f conftest.er1 conftest.err 1802 fi 1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1804 test $ac_status = 0; } && { 1805 test -z "$ac_c_werror_flag" || 1806 test ! -s conftest.err 1807 } && test -s conftest$ac_exeext && { 1808 test "$cross_compiling" = yes || 1809 test -x conftest$ac_exeext 1810 }; then : 1811 ac_retval=0 1812 else 1813 $as_echo "$as_me: failed program was:" >&5 1814 sed 's/^/| /' conftest.$ac_ext >&5 1815 1816 ac_retval=1 1817 fi 1818 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1819 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1820 # interfere with the next link command; also delete a directory that is 1821 # left behind by Apple's compiler. We do this before executing the actions. 1822 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1824 as_fn_set_status $ac_retval 1825 1826 } # ac_fn_c_try_link 1827 1828 # ac_fn_c_check_func LINENO FUNC VAR 1829 # ---------------------------------- 1830 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1831 ac_fn_c_check_func () 1832 { 1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1835 $as_echo_n "checking for $2... " >&6; } 1836 if eval \${$3+:} false; then : 1837 $as_echo_n "(cached) " >&6 1838 else 1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1840 /* end confdefs.h. */ 1841 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1842 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1843 #define $2 innocuous_$2 1844 1845 /* System header to define __stub macros and hopefully few prototypes, 1846 which can conflict with char $2 (); below. 1847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1848 <limits.h> exists even on freestanding compilers. */ 1849 1850 #ifdef __STDC__ 1851 # include <limits.h> 1852 #else 1853 # include <assert.h> 1854 #endif 1855 1856 #undef $2 1857 1858 /* Override any GCC internal prototype to avoid an error. 1859 Use char because int might match the return type of a GCC 1860 builtin and then its argument prototype would still apply. */ 1861 #ifdef __cplusplus 1862 extern "C" 1863 #endif 1864 char $2 (); 1865 /* The GNU C library defines this for functions which it implements 1866 to always fail with ENOSYS. Some functions are actually named 1867 something starting with __ and the normal name is an alias. */ 1868 #if defined __stub_$2 || defined __stub___$2 1869 choke me 1870 #endif 1871 1872 int 1873 main () 1874 { 1875 return $2 (); 1876 ; 1877 return 0; 1878 } 1879 _ACEOF 1880 if ac_fn_c_try_link "$LINENO"; then : 1881 eval "$3=yes" 1882 else 1883 eval "$3=no" 1884 fi 1885 rm -f core conftest.err conftest.$ac_objext \ 1886 conftest$ac_exeext conftest.$ac_ext 1887 fi 1888 eval ac_res=\$$3 1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1890 $as_echo "$ac_res" >&6; } 1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1892 1893 } # ac_fn_c_check_func 1894 1895 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1896 # ------------------------------------------------------- 1897 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1898 # the include files in INCLUDES and setting the cache variable VAR 1899 # accordingly. 1900 ac_fn_c_check_header_mongrel () 1901 { 1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1903 if eval \${$3+:} false; then : 1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1905 $as_echo_n "checking for $2... " >&6; } 1906 if eval \${$3+:} false; then : 1907 $as_echo_n "(cached) " >&6 1908 fi 1909 eval ac_res=\$$3 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1911 $as_echo "$ac_res" >&6; } 1912 else 1913 # Is the header compilable? 1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1915 $as_echo_n "checking $2 usability... " >&6; } 1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1917 /* end confdefs.h. */ 1918 $4 1919 #include <$2> 1920 _ACEOF 1921 if ac_fn_c_try_compile "$LINENO"; then : 1922 ac_header_compiler=yes 1923 else 1924 ac_header_compiler=no 1925 fi 1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1928 $as_echo "$ac_header_compiler" >&6; } 1929 1930 # Is the header present? 1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1932 $as_echo_n "checking $2 presence... " >&6; } 1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1934 /* end confdefs.h. */ 1935 #include <$2> 1936 _ACEOF 1937 if ac_fn_c_try_cpp "$LINENO"; then : 1938 ac_header_preproc=yes 1939 else 1940 ac_header_preproc=no 1941 fi 1942 rm -f conftest.err conftest.i conftest.$ac_ext 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1944 $as_echo "$ac_header_preproc" >&6; } 1945 1946 # So? What about this header? 1947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1948 yes:no: ) 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1950 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1952 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1953 ;; 1954 no:yes:* ) 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1956 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1958 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1960 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1962 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1964 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1965 ( $as_echo "## -------------------------------------------------------------------------------- ## 1966 ## Report this to https://gitlab.freedesktop.org/xorg/driver/xf86-video-i740/issues ## 1967 ## -------------------------------------------------------------------------------- ##" 1968 ) | sed "s/^/$as_me: WARNING: /" >&2 1969 ;; 1970 esac 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1972 $as_echo_n "checking for $2... " >&6; } 1973 if eval \${$3+:} false; then : 1974 $as_echo_n "(cached) " >&6 1975 else 1976 eval "$3=\$ac_header_compiler" 1977 fi 1978 eval ac_res=\$$3 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1980 $as_echo "$ac_res" >&6; } 1981 fi 1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1983 1984 } # ac_fn_c_check_header_mongrel 1985 cat >config.log <<_ACEOF 1986 This file contains any messages produced by compilers while 1987 running configure, to aid debugging if configure makes a mistake. 1988 1989 It was created by xf86-video-i740 $as_me 1.4.0, which was 1990 generated by GNU Autoconf 2.69. Invocation command line was 1991 1992 $ $0 $@ 1993 1994 _ACEOF 1995 exec 5>>config.log 1996 { 1997 cat <<_ASUNAME 1998 ## --------- ## 1999 ## Platform. ## 2000 ## --------- ## 2001 2002 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2003 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2004 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2005 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2006 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2007 2008 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2009 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2010 2011 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2012 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2013 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2014 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2015 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2016 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2017 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2018 2019 _ASUNAME 2020 2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2022 for as_dir in $PATH 2023 do 2024 IFS=$as_save_IFS 2025 test -z "$as_dir" && as_dir=. 2026 $as_echo "PATH: $as_dir" 2027 done 2028 IFS=$as_save_IFS 2029 2030 } >&5 2031 2032 cat >&5 <<_ACEOF 2033 2034 2035 ## ----------- ## 2036 ## Core tests. ## 2037 ## ----------- ## 2038 2039 _ACEOF 2040 2041 2042 # Keep a trace of the command line. 2043 # Strip out --no-create and --no-recursion so they do not pile up. 2044 # Strip out --silent because we don't want to record it for future runs. 2045 # Also quote any args containing shell meta-characters. 2046 # Make two passes to allow for proper duplicate-argument suppression. 2047 ac_configure_args= 2048 ac_configure_args0= 2049 ac_configure_args1= 2050 ac_must_keep_next=false 2051 for ac_pass in 1 2 2052 do 2053 for ac_arg 2054 do 2055 case $ac_arg in 2056 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2058 | -silent | --silent | --silen | --sile | --sil) 2059 continue ;; 2060 *\'*) 2061 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2062 esac 2063 case $ac_pass in 2064 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2065 2) 2066 as_fn_append ac_configure_args1 " '$ac_arg'" 2067 if test $ac_must_keep_next = true; then 2068 ac_must_keep_next=false # Got value, back to normal. 2069 else 2070 case $ac_arg in 2071 *=* | --config-cache | -C | -disable-* | --disable-* \ 2072 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2073 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2074 | -with-* | --with-* | -without-* | --without-* | --x) 2075 case "$ac_configure_args0 " in 2076 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2077 esac 2078 ;; 2079 -* ) ac_must_keep_next=true ;; 2080 esac 2081 fi 2082 as_fn_append ac_configure_args " '$ac_arg'" 2083 ;; 2084 esac 2085 done 2086 done 2087 { ac_configure_args0=; unset ac_configure_args0;} 2088 { ac_configure_args1=; unset ac_configure_args1;} 2089 2090 # When interrupted or exit'd, cleanup temporary files, and complete 2091 # config.log. We remove comments because anyway the quotes in there 2092 # would cause problems or look ugly. 2093 # WARNING: Use '\'' to represent an apostrophe within the trap. 2094 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2095 trap 'exit_status=$? 2096 # Save into config.log some information that might help in debugging. 2097 { 2098 echo 2099 2100 $as_echo "## ---------------- ## 2101 ## Cache variables. ## 2102 ## ---------------- ##" 2103 echo 2104 # The following way of writing the cache mishandles newlines in values, 2105 ( 2106 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2107 eval ac_val=\$$ac_var 2108 case $ac_val in #( 2109 *${as_nl}*) 2110 case $ac_var in #( 2111 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2112 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2113 esac 2114 case $ac_var in #( 2115 _ | IFS | as_nl) ;; #( 2116 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2117 *) { eval $ac_var=; unset $ac_var;} ;; 2118 esac ;; 2119 esac 2120 done 2121 (set) 2>&1 | 2122 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2123 *${as_nl}ac_space=\ *) 2124 sed -n \ 2125 "s/'\''/'\''\\\\'\'''\''/g; 2126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2127 ;; #( 2128 *) 2129 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2130 ;; 2131 esac | 2132 sort 2133 ) 2134 echo 2135 2136 $as_echo "## ----------------- ## 2137 ## Output variables. ## 2138 ## ----------------- ##" 2139 echo 2140 for ac_var in $ac_subst_vars 2141 do 2142 eval ac_val=\$$ac_var 2143 case $ac_val in 2144 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2145 esac 2146 $as_echo "$ac_var='\''$ac_val'\''" 2147 done | sort 2148 echo 2149 2150 if test -n "$ac_subst_files"; then 2151 $as_echo "## ------------------- ## 2152 ## File substitutions. ## 2153 ## ------------------- ##" 2154 echo 2155 for ac_var in $ac_subst_files 2156 do 2157 eval ac_val=\$$ac_var 2158 case $ac_val in 2159 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2160 esac 2161 $as_echo "$ac_var='\''$ac_val'\''" 2162 done | sort 2163 echo 2164 fi 2165 2166 if test -s confdefs.h; then 2167 $as_echo "## ----------- ## 2168 ## confdefs.h. ## 2169 ## ----------- ##" 2170 echo 2171 cat confdefs.h 2172 echo 2173 fi 2174 test "$ac_signal" != 0 && 2175 $as_echo "$as_me: caught signal $ac_signal" 2176 $as_echo "$as_me: exit $exit_status" 2177 } >&5 2178 rm -f core *.core core.conftest.* && 2179 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2180 exit $exit_status 2181 ' 0 2182 for ac_signal in 1 2 13 15; do 2183 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2184 done 2185 ac_signal=0 2186 2187 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2188 rm -f -r conftest* confdefs.h 2189 2190 $as_echo "/* confdefs.h */" > confdefs.h 2191 2192 # Predefined preprocessor variables. 2193 2194 cat >>confdefs.h <<_ACEOF 2195 #define PACKAGE_NAME "$PACKAGE_NAME" 2196 _ACEOF 2197 2198 cat >>confdefs.h <<_ACEOF 2199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2200 _ACEOF 2201 2202 cat >>confdefs.h <<_ACEOF 2203 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2204 _ACEOF 2205 2206 cat >>confdefs.h <<_ACEOF 2207 #define PACKAGE_STRING "$PACKAGE_STRING" 2208 _ACEOF 2209 2210 cat >>confdefs.h <<_ACEOF 2211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2212 _ACEOF 2213 2214 cat >>confdefs.h <<_ACEOF 2215 #define PACKAGE_URL "$PACKAGE_URL" 2216 _ACEOF 2217 2218 2219 # Let the site file select an alternate cache file if it wants to. 2220 # Prefer an explicitly selected file to automatically selected ones. 2221 ac_site_file1=NONE 2222 ac_site_file2=NONE 2223 if test -n "$CONFIG_SITE"; then 2224 # We do not want a PATH search for config.site. 2225 case $CONFIG_SITE in #(( 2226 -*) ac_site_file1=./$CONFIG_SITE;; 2227 */*) ac_site_file1=$CONFIG_SITE;; 2228 *) ac_site_file1=./$CONFIG_SITE;; 2229 esac 2230 elif test "x$prefix" != xNONE; then 2231 ac_site_file1=$prefix/share/config.site 2232 ac_site_file2=$prefix/etc/config.site 2233 else 2234 ac_site_file1=$ac_default_prefix/share/config.site 2235 ac_site_file2=$ac_default_prefix/etc/config.site 2236 fi 2237 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2238 do 2239 test "x$ac_site_file" = xNONE && continue 2240 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2242 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2243 sed 's/^/| /' "$ac_site_file" >&5 2244 . "$ac_site_file" \ 2245 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2247 as_fn_error $? "failed to load site script $ac_site_file 2248 See \`config.log' for more details" "$LINENO" 5; } 2249 fi 2250 done 2251 2252 if test -r "$cache_file"; then 2253 # Some versions of bash will fail to source /dev/null (special files 2254 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2255 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2257 $as_echo "$as_me: loading cache $cache_file" >&6;} 2258 case $cache_file in 2259 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2260 *) . "./$cache_file";; 2261 esac 2262 fi 2263 else 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2265 $as_echo "$as_me: creating cache $cache_file" >&6;} 2266 >$cache_file 2267 fi 2268 2269 # Check that the precious variables saved in the cache have kept the same 2270 # value. 2271 ac_cache_corrupted=false 2272 for ac_var in $ac_precious_vars; do 2273 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2274 eval ac_new_set=\$ac_env_${ac_var}_set 2275 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2276 eval ac_new_val=\$ac_env_${ac_var}_value 2277 case $ac_old_set,$ac_new_set in 2278 set,) 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2280 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2281 ac_cache_corrupted=: ;; 2282 ,set) 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2284 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2285 ac_cache_corrupted=: ;; 2286 ,);; 2287 *) 2288 if test "x$ac_old_val" != "x$ac_new_val"; then 2289 # differences in whitespace do not lead to failure. 2290 ac_old_val_w=`echo x $ac_old_val` 2291 ac_new_val_w=`echo x $ac_new_val` 2292 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2294 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2295 ac_cache_corrupted=: 2296 else 2297 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2298 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2299 eval $ac_var=\$ac_old_val 2300 fi 2301 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2302 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2303 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2304 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2305 fi;; 2306 esac 2307 # Pass precious variables to config.status. 2308 if test "$ac_new_set" = set; then 2309 case $ac_new_val in 2310 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2311 *) ac_arg=$ac_var=$ac_new_val ;; 2312 esac 2313 case " $ac_configure_args " in 2314 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2315 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2316 esac 2317 fi 2318 done 2319 if $ac_cache_corrupted; then 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2323 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2324 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2325 fi 2326 ## -------------------- ## 2327 ## Main body of script. ## 2328 ## -------------------- ## 2329 2330 ac_ext=c 2331 ac_cpp='$CPP $CPPFLAGS' 2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2335 2336 2337 2338 ac_config_headers="$ac_config_headers config.h" 2339 2340 ac_aux_dir= 2341 for ac_dir in . "$srcdir"/.; do 2342 if test -f "$ac_dir/install-sh"; then 2343 ac_aux_dir=$ac_dir 2344 ac_install_sh="$ac_aux_dir/install-sh -c" 2345 break 2346 elif test -f "$ac_dir/install.sh"; then 2347 ac_aux_dir=$ac_dir 2348 ac_install_sh="$ac_aux_dir/install.sh -c" 2349 break 2350 elif test -f "$ac_dir/shtool"; then 2351 ac_aux_dir=$ac_dir 2352 ac_install_sh="$ac_aux_dir/shtool install -c" 2353 break 2354 fi 2355 done 2356 if test -z "$ac_aux_dir"; then 2357 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2358 fi 2359 2360 # These three variables are undocumented and unsupported, 2361 # and are intended to be withdrawn in a future Autoconf release. 2362 # They can cause serious problems if a builder's source tree is in a directory 2363 # whose full name contains unusual characters. 2364 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2365 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2366 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2367 2368 2369 2370 # Initialize Automake 2371 am__api_version='1.15' 2372 2373 # Find a good install program. We prefer a C program (faster), 2374 # so one script is as good as another. But avoid the broken or 2375 # incompatible versions: 2376 # SysV /etc/install, /usr/sbin/install 2377 # SunOS /usr/etc/install 2378 # IRIX /sbin/install 2379 # AIX /bin/install 2380 # AmigaOS /C/install, which installs bootblocks on floppy discs 2381 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2382 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2383 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2384 # OS/2's system install, which has a completely different semantic 2385 # ./install, which can be erroneously created by make from ./install.sh. 2386 # Reject install programs that cannot install multiple files. 2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2388 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2389 if test -z "$INSTALL"; then 2390 if ${ac_cv_path_install+:} false; then : 2391 $as_echo_n "(cached) " >&6 2392 else 2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2394 for as_dir in $PATH 2395 do 2396 IFS=$as_save_IFS 2397 test -z "$as_dir" && as_dir=. 2398 # Account for people who put trailing slashes in PATH elements. 2399 case $as_dir/ in #(( 2400 ./ | .// | /[cC]/* | \ 2401 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2402 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2403 /usr/ucb/* ) ;; 2404 *) 2405 # OSF1 and SCO ODT 3.0 have their own names for install. 2406 # Don't use installbsd from OSF since it installs stuff as root 2407 # by default. 2408 for ac_prog in ginstall scoinst install; do 2409 for ac_exec_ext in '' $ac_executable_extensions; do 2410 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2411 if test $ac_prog = install && 2412 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2413 # AIX install. It has an incompatible calling convention. 2414 : 2415 elif test $ac_prog = install && 2416 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2417 # program-specific install script used by HP pwplus--don't use. 2418 : 2419 else 2420 rm -rf conftest.one conftest.two conftest.dir 2421 echo one > conftest.one 2422 echo two > conftest.two 2423 mkdir conftest.dir 2424 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2425 test -s conftest.one && test -s conftest.two && 2426 test -s conftest.dir/conftest.one && 2427 test -s conftest.dir/conftest.two 2428 then 2429 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2430 break 3 2431 fi 2432 fi 2433 fi 2434 done 2435 done 2436 ;; 2437 esac 2438 2439 done 2440 IFS=$as_save_IFS 2441 2442 rm -rf conftest.one conftest.two conftest.dir 2443 2444 fi 2445 if test "${ac_cv_path_install+set}" = set; then 2446 INSTALL=$ac_cv_path_install 2447 else 2448 # As a last resort, use the slow shell script. Don't cache a 2449 # value for INSTALL within a source directory, because that will 2450 # break other packages using the cache if that directory is 2451 # removed, or if the value is a relative name. 2452 INSTALL=$ac_install_sh 2453 fi 2454 fi 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2456 $as_echo "$INSTALL" >&6; } 2457 2458 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2459 # It thinks the first close brace ends the variable substitution. 2460 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2461 2462 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2463 2464 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2465 2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2467 $as_echo_n "checking whether build environment is sane... " >&6; } 2468 # Reject unsafe characters in $srcdir or the absolute working directory 2469 # name. Accept space and tab only in the latter. 2470 am_lf=' 2471 ' 2472 case `pwd` in 2473 *[\\\"\#\$\&\'\`$am_lf]*) 2474 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2475 esac 2476 case $srcdir in 2477 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2478 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2479 esac 2480 2481 # Do 'set' in a subshell so we don't clobber the current shell's 2482 # arguments. Must try -L first in case configure is actually a 2483 # symlink; some systems play weird games with the mod time of symlinks 2484 # (eg FreeBSD returns the mod time of the symlink's containing 2485 # directory). 2486 if ( 2487 am_has_slept=no 2488 for am_try in 1 2; do 2489 echo "timestamp, slept: $am_has_slept" > conftest.file 2490 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2491 if test "$*" = "X"; then 2492 # -L didn't work. 2493 set X `ls -t "$srcdir/configure" conftest.file` 2494 fi 2495 if test "$*" != "X $srcdir/configure conftest.file" \ 2496 && test "$*" != "X conftest.file $srcdir/configure"; then 2497 2498 # If neither matched, then we have a broken ls. This can happen 2499 # if, for instance, CONFIG_SHELL is bash and it inherits a 2500 # broken ls alias from the environment. This has actually 2501 # happened. Such a system could not be considered "sane". 2502 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2503 alias in your environment" "$LINENO" 5 2504 fi 2505 if test "$2" = conftest.file || test $am_try -eq 2; then 2506 break 2507 fi 2508 # Just in case. 2509 sleep 1 2510 am_has_slept=yes 2511 done 2512 test "$2" = conftest.file 2513 ) 2514 then 2515 # Ok. 2516 : 2517 else 2518 as_fn_error $? "newly created file is older than distributed files! 2519 Check your system clock" "$LINENO" 5 2520 fi 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2522 $as_echo "yes" >&6; } 2523 # If we didn't sleep, we still need to ensure time stamps of config.status and 2524 # generated files are strictly newer. 2525 am_sleep_pid= 2526 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2527 ( sleep 1 ) & 2528 am_sleep_pid=$! 2529 fi 2530 2531 rm -f conftest.file 2532 2533 test "$program_prefix" != NONE && 2534 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2535 # Use a double $ so make ignores it. 2536 test "$program_suffix" != NONE && 2537 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2538 # Double any \ or $. 2539 # By default was `s,x,x', remove it if useless. 2540 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2541 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2542 2543 # Expand $ac_aux_dir to an absolute path. 2544 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2545 2546 if test x"${MISSING+set}" != xset; then 2547 case $am_aux_dir in 2548 *\ * | *\ *) 2549 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2550 *) 2551 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2552 esac 2553 fi 2554 # Use eval to expand $SHELL 2555 if eval "$MISSING --is-lightweight"; then 2556 am_missing_run="$MISSING " 2557 else 2558 am_missing_run= 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2560 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2561 fi 2562 2563 if test x"${install_sh+set}" != xset; then 2564 case $am_aux_dir in 2565 *\ * | *\ *) 2566 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2567 *) 2568 install_sh="\${SHELL} $am_aux_dir/install-sh" 2569 esac 2570 fi 2571 2572 # Installed binaries are usually stripped using 'strip' when the user 2573 # run "make install-strip". However 'strip' might not be the right 2574 # tool to use in cross-compilation environments, therefore Automake 2575 # will honor the 'STRIP' environment variable to overrule this program. 2576 if test "$cross_compiling" != no; then 2577 if test -n "$ac_tool_prefix"; then 2578 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2579 set dummy ${ac_tool_prefix}strip; ac_word=$2 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2581 $as_echo_n "checking for $ac_word... " >&6; } 2582 if ${ac_cv_prog_STRIP+:} false; then : 2583 $as_echo_n "(cached) " >&6 2584 else 2585 if test -n "$STRIP"; then 2586 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2587 else 2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2589 for as_dir in $PATH 2590 do 2591 IFS=$as_save_IFS 2592 test -z "$as_dir" && as_dir=. 2593 for ac_exec_ext in '' $ac_executable_extensions; do 2594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2595 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2597 break 2 2598 fi 2599 done 2600 done 2601 IFS=$as_save_IFS 2602 2603 fi 2604 fi 2605 STRIP=$ac_cv_prog_STRIP 2606 if test -n "$STRIP"; then 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2608 $as_echo "$STRIP" >&6; } 2609 else 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2611 $as_echo "no" >&6; } 2612 fi 2613 2614 2615 fi 2616 if test -z "$ac_cv_prog_STRIP"; then 2617 ac_ct_STRIP=$STRIP 2618 # Extract the first word of "strip", so it can be a program name with args. 2619 set dummy strip; ac_word=$2 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2621 $as_echo_n "checking for $ac_word... " >&6; } 2622 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2623 $as_echo_n "(cached) " >&6 2624 else 2625 if test -n "$ac_ct_STRIP"; then 2626 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2627 else 2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2629 for as_dir in $PATH 2630 do 2631 IFS=$as_save_IFS 2632 test -z "$as_dir" && as_dir=. 2633 for ac_exec_ext in '' $ac_executable_extensions; do 2634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2635 ac_cv_prog_ac_ct_STRIP="strip" 2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2637 break 2 2638 fi 2639 done 2640 done 2641 IFS=$as_save_IFS 2642 2643 fi 2644 fi 2645 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2646 if test -n "$ac_ct_STRIP"; then 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2648 $as_echo "$ac_ct_STRIP" >&6; } 2649 else 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2651 $as_echo "no" >&6; } 2652 fi 2653 2654 if test "x$ac_ct_STRIP" = x; then 2655 STRIP=":" 2656 else 2657 case $cross_compiling:$ac_tool_warned in 2658 yes:) 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2661 ac_tool_warned=yes ;; 2662 esac 2663 STRIP=$ac_ct_STRIP 2664 fi 2665 else 2666 STRIP="$ac_cv_prog_STRIP" 2667 fi 2668 2669 fi 2670 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2671 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2673 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2674 if test -z "$MKDIR_P"; then 2675 if ${ac_cv_path_mkdir+:} false; then : 2676 $as_echo_n "(cached) " >&6 2677 else 2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2679 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2680 do 2681 IFS=$as_save_IFS 2682 test -z "$as_dir" && as_dir=. 2683 for ac_prog in mkdir gmkdir; do 2684 for ac_exec_ext in '' $ac_executable_extensions; do 2685 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2686 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2687 'mkdir (GNU coreutils) '* | \ 2688 'mkdir (coreutils) '* | \ 2689 'mkdir (fileutils) '4.1*) 2690 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2691 break 3;; 2692 esac 2693 done 2694 done 2695 done 2696 IFS=$as_save_IFS 2697 2698 fi 2699 2700 test -d ./--version && rmdir ./--version 2701 if test "${ac_cv_path_mkdir+set}" = set; then 2702 MKDIR_P="$ac_cv_path_mkdir -p" 2703 else 2704 # As a last resort, use the slow shell script. Don't cache a 2705 # value for MKDIR_P within a source directory, because that will 2706 # break other packages using the cache if that directory is 2707 # removed, or if the value is a relative name. 2708 MKDIR_P="$ac_install_sh -d" 2709 fi 2710 fi 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2712 $as_echo "$MKDIR_P" >&6; } 2713 2714 for ac_prog in gawk mawk nawk awk 2715 do 2716 # Extract the first word of "$ac_prog", so it can be a program name with args. 2717 set dummy $ac_prog; ac_word=$2 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2719 $as_echo_n "checking for $ac_word... " >&6; } 2720 if ${ac_cv_prog_AWK+:} false; then : 2721 $as_echo_n "(cached) " >&6 2722 else 2723 if test -n "$AWK"; then 2724 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2725 else 2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2727 for as_dir in $PATH 2728 do 2729 IFS=$as_save_IFS 2730 test -z "$as_dir" && as_dir=. 2731 for ac_exec_ext in '' $ac_executable_extensions; do 2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2733 ac_cv_prog_AWK="$ac_prog" 2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2735 break 2 2736 fi 2737 done 2738 done 2739 IFS=$as_save_IFS 2740 2741 fi 2742 fi 2743 AWK=$ac_cv_prog_AWK 2744 if test -n "$AWK"; then 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2746 $as_echo "$AWK" >&6; } 2747 else 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2749 $as_echo "no" >&6; } 2750 fi 2751 2752 2753 test -n "$AWK" && break 2754 done 2755 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2757 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2758 set x ${MAKE-make} 2759 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2760 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2761 $as_echo_n "(cached) " >&6 2762 else 2763 cat >conftest.make <<\_ACEOF 2764 SHELL = /bin/sh 2765 all: 2766 @echo '@@@%%%=$(MAKE)=@@@%%%' 2767 _ACEOF 2768 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2769 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2770 *@@@%%%=?*=@@@%%%*) 2771 eval ac_cv_prog_make_${ac_make}_set=yes;; 2772 *) 2773 eval ac_cv_prog_make_${ac_make}_set=no;; 2774 esac 2775 rm -f conftest.make 2776 fi 2777 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2779 $as_echo "yes" >&6; } 2780 SET_MAKE= 2781 else 2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2783 $as_echo "no" >&6; } 2784 SET_MAKE="MAKE=${MAKE-make}" 2785 fi 2786 2787 rm -rf .tst 2>/dev/null 2788 mkdir .tst 2>/dev/null 2789 if test -d .tst; then 2790 am__leading_dot=. 2791 else 2792 am__leading_dot=_ 2793 fi 2794 rmdir .tst 2>/dev/null 2795 2796 # Check whether --enable-silent-rules was given. 2797 if test "${enable_silent_rules+set}" = set; then : 2798 enableval=$enable_silent_rules; 2799 fi 2800 2801 case $enable_silent_rules in # ((( 2802 yes) AM_DEFAULT_VERBOSITY=0;; 2803 no) AM_DEFAULT_VERBOSITY=1;; 2804 *) AM_DEFAULT_VERBOSITY=1;; 2805 esac 2806 am_make=${MAKE-make} 2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2808 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2809 if ${am_cv_make_support_nested_variables+:} false; then : 2810 $as_echo_n "(cached) " >&6 2811 else 2812 if $as_echo 'TRUE=$(BAR$(V)) 2813 BAR0=false 2814 BAR1=true 2815 V=1 2816 am__doit: 2817 @$(TRUE) 2818 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2819 am_cv_make_support_nested_variables=yes 2820 else 2821 am_cv_make_support_nested_variables=no 2822 fi 2823 fi 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2825 $as_echo "$am_cv_make_support_nested_variables" >&6; } 2826 if test $am_cv_make_support_nested_variables = yes; then 2827 AM_V='$(V)' 2828 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2829 else 2830 AM_V=$AM_DEFAULT_VERBOSITY 2831 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2832 fi 2833 AM_BACKSLASH='\' 2834 2835 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2836 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2837 # is not polluted with repeated "-I." 2838 am__isrc=' -I$(srcdir)' 2839 # test to see if srcdir already configured 2840 if test -f $srcdir/config.status; then 2841 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2842 fi 2843 fi 2844 2845 # test whether we have cygpath 2846 if test -z "$CYGPATH_W"; then 2847 if (cygpath --version) >/dev/null 2>/dev/null; then 2848 CYGPATH_W='cygpath -w' 2849 else 2850 CYGPATH_W=echo 2851 fi 2852 fi 2853 2854 2855 # Define the identity of the package. 2856 PACKAGE='xf86-video-i740' 2857 VERSION='1.4.0' 2858 2859 2860 cat >>confdefs.h <<_ACEOF 2861 #define PACKAGE "$PACKAGE" 2862 _ACEOF 2863 2864 2865 cat >>confdefs.h <<_ACEOF 2866 #define VERSION "$VERSION" 2867 _ACEOF 2868 2869 # Some tools Automake needs. 2870 2871 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2872 2873 2874 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2875 2876 2877 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2878 2879 2880 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2881 2882 2883 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2884 2885 # For better backward compatibility. To be removed once Automake 1.9.x 2886 # dies out for good. For more background, see: 2887 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2888 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2889 mkdir_p='$(MKDIR_P)' 2890 2891 # We need awk for the "check" target (and possibly the TAP driver). The 2892 # system "awk" is bad on some platforms. 2893 # Always define AMTAR for backward compatibility. Yes, it's still used 2894 # in the wild :-( We should find a proper way to deprecate it ... 2895 AMTAR='$${TAR-tar}' 2896 2897 2898 # We'll loop over all known methods to create a tar archive until one works. 2899 _am_tools='gnutar pax cpio none' 2900 2901 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2902 2903 2904 2905 2906 2907 2908 # POSIX will say in a future version that running "rm -f" with no argument 2909 # is OK; and we want to be able to make that assumption in our Makefile 2910 # recipes. So use an aggressive probe to check that the usage we want is 2911 # actually supported "in the wild" to an acceptable degree. 2912 # See automake bug#10828. 2913 # To make any issue more visible, cause the running configure to be aborted 2914 # by default if the 'rm' program in use doesn't match our expectations; the 2915 # user can still override this though. 2916 if rm -f && rm -fr && rm -rf; then : OK; else 2917 cat >&2 <<'END' 2918 Oops! 2919 2920 Your 'rm' program seems unable to run without file operands specified 2921 on the command line, even when the '-f' option is present. This is contrary 2922 to the behaviour of most rm programs out there, and not conforming with 2923 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2924 2925 Please tell bug-automake@gnu.org about your system, including the value 2926 of your $PATH and any error possibly output before this message. This 2927 can help us improve future automake versions. 2928 2929 END 2930 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2931 echo 'Configuration will proceed anyway, since you have set the' >&2 2932 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2933 echo >&2 2934 else 2935 cat >&2 <<'END' 2936 Aborting the configuration process, to ensure you take notice of the issue. 2937 2938 You can download and install GNU coreutils to get an 'rm' implementation 2939 that behaves properly: <http://www.gnu.org/software/coreutils/>. 2940 2941 If you want to complete the configuration process using your problematic 2942 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2943 to "yes", and re-run configure. 2944 2945 END 2946 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2947 fi 2948 fi 2949 2950 2951 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 DEPDIR="${am__leading_dot}deps" 2964 2965 ac_config_commands="$ac_config_commands depfiles" 2966 2967 2968 am_make=${MAKE-make} 2969 cat > confinc << 'END' 2970 am__doit: 2971 @echo this is the am__doit target 2972 .PHONY: am__doit 2973 END 2974 # If we don't find an include directive, just comment out the code. 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2976 $as_echo_n "checking for style of include used by $am_make... " >&6; } 2977 am__include="#" 2978 am__quote= 2979 _am_result=none 2980 # First try GNU make style include. 2981 echo "include confinc" > confmf 2982 # Ignore all kinds of additional output from 'make'. 2983 case `$am_make -s -f confmf 2> /dev/null` in #( 2984 *the\ am__doit\ target*) 2985 am__include=include 2986 am__quote= 2987 _am_result=GNU 2988 ;; 2989 esac 2990 # Now try BSD make style include. 2991 if test "$am__include" = "#"; then 2992 echo '.include "confinc"' > confmf 2993 case `$am_make -s -f confmf 2> /dev/null` in #( 2994 *the\ am__doit\ target*) 2995 am__include=.include 2996 am__quote="\"" 2997 _am_result=BSD 2998 ;; 2999 esac 3000 fi 3001 3002 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3004 $as_echo "$_am_result" >&6; } 3005 rm -f confinc confmf 3006 3007 # Check whether --enable-dependency-tracking was given. 3008 if test "${enable_dependency_tracking+set}" = set; then : 3009 enableval=$enable_dependency_tracking; 3010 fi 3011 3012 if test "x$enable_dependency_tracking" != xno; then 3013 am_depcomp="$ac_aux_dir/depcomp" 3014 AMDEPBACKSLASH='\' 3015 am__nodep='_no' 3016 fi 3017 if test "x$enable_dependency_tracking" != xno; then 3018 AMDEP_TRUE= 3019 AMDEP_FALSE='#' 3020 else 3021 AMDEP_TRUE='#' 3022 AMDEP_FALSE= 3023 fi 3024 3025 3026 ac_ext=c 3027 ac_cpp='$CPP $CPPFLAGS' 3028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3030 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3031 if test -n "$ac_tool_prefix"; then 3032 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3033 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3035 $as_echo_n "checking for $ac_word... " >&6; } 3036 if ${ac_cv_prog_CC+:} false; then : 3037 $as_echo_n "(cached) " >&6 3038 else 3039 if test -n "$CC"; then 3040 ac_cv_prog_CC="$CC" # Let the user override the test. 3041 else 3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3043 for as_dir in $PATH 3044 do 3045 IFS=$as_save_IFS 3046 test -z "$as_dir" && as_dir=. 3047 for ac_exec_ext in '' $ac_executable_extensions; do 3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3049 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3051 break 2 3052 fi 3053 done 3054 done 3055 IFS=$as_save_IFS 3056 3057 fi 3058 fi 3059 CC=$ac_cv_prog_CC 3060 if test -n "$CC"; then 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3062 $as_echo "$CC" >&6; } 3063 else 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3065 $as_echo "no" >&6; } 3066 fi 3067 3068 3069 fi 3070 if test -z "$ac_cv_prog_CC"; then 3071 ac_ct_CC=$CC 3072 # Extract the first word of "gcc", so it can be a program name with args. 3073 set dummy gcc; ac_word=$2 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3075 $as_echo_n "checking for $ac_word... " >&6; } 3076 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3077 $as_echo_n "(cached) " >&6 3078 else 3079 if test -n "$ac_ct_CC"; then 3080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3081 else 3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3083 for as_dir in $PATH 3084 do 3085 IFS=$as_save_IFS 3086 test -z "$as_dir" && as_dir=. 3087 for ac_exec_ext in '' $ac_executable_extensions; do 3088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3089 ac_cv_prog_ac_ct_CC="gcc" 3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3091 break 2 3092 fi 3093 done 3094 done 3095 IFS=$as_save_IFS 3096 3097 fi 3098 fi 3099 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3100 if test -n "$ac_ct_CC"; then 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3102 $as_echo "$ac_ct_CC" >&6; } 3103 else 3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3105 $as_echo "no" >&6; } 3106 fi 3107 3108 if test "x$ac_ct_CC" = x; then 3109 CC="" 3110 else 3111 case $cross_compiling:$ac_tool_warned in 3112 yes:) 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3115 ac_tool_warned=yes ;; 3116 esac 3117 CC=$ac_ct_CC 3118 fi 3119 else 3120 CC="$ac_cv_prog_CC" 3121 fi 3122 3123 if test -z "$CC"; then 3124 if test -n "$ac_tool_prefix"; then 3125 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3126 set dummy ${ac_tool_prefix}cc; ac_word=$2 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3128 $as_echo_n "checking for $ac_word... " >&6; } 3129 if ${ac_cv_prog_CC+:} false; then : 3130 $as_echo_n "(cached) " >&6 3131 else 3132 if test -n "$CC"; then 3133 ac_cv_prog_CC="$CC" # Let the user override the test. 3134 else 3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3136 for as_dir in $PATH 3137 do 3138 IFS=$as_save_IFS 3139 test -z "$as_dir" && as_dir=. 3140 for ac_exec_ext in '' $ac_executable_extensions; do 3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3142 ac_cv_prog_CC="${ac_tool_prefix}cc" 3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3144 break 2 3145 fi 3146 done 3147 done 3148 IFS=$as_save_IFS 3149 3150 fi 3151 fi 3152 CC=$ac_cv_prog_CC 3153 if test -n "$CC"; then 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3155 $as_echo "$CC" >&6; } 3156 else 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3158 $as_echo "no" >&6; } 3159 fi 3160 3161 3162 fi 3163 fi 3164 if test -z "$CC"; then 3165 # Extract the first word of "cc", so it can be a program name with args. 3166 set dummy cc; ac_word=$2 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3168 $as_echo_n "checking for $ac_word... " >&6; } 3169 if ${ac_cv_prog_CC+:} false; then : 3170 $as_echo_n "(cached) " >&6 3171 else 3172 if test -n "$CC"; then 3173 ac_cv_prog_CC="$CC" # Let the user override the test. 3174 else 3175 ac_prog_rejected=no 3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3177 for as_dir in $PATH 3178 do 3179 IFS=$as_save_IFS 3180 test -z "$as_dir" && as_dir=. 3181 for ac_exec_ext in '' $ac_executable_extensions; do 3182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3183 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3184 ac_prog_rejected=yes 3185 continue 3186 fi 3187 ac_cv_prog_CC="cc" 3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3189 break 2 3190 fi 3191 done 3192 done 3193 IFS=$as_save_IFS 3194 3195 if test $ac_prog_rejected = yes; then 3196 # We found a bogon in the path, so make sure we never use it. 3197 set dummy $ac_cv_prog_CC 3198 shift 3199 if test $# != 0; then 3200 # We chose a different compiler from the bogus one. 3201 # However, it has the same basename, so the bogon will be chosen 3202 # first if we set CC to just the basename; use the full file name. 3203 shift 3204 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3205 fi 3206 fi 3207 fi 3208 fi 3209 CC=$ac_cv_prog_CC 3210 if test -n "$CC"; then 3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3212 $as_echo "$CC" >&6; } 3213 else 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3215 $as_echo "no" >&6; } 3216 fi 3217 3218 3219 fi 3220 if test -z "$CC"; then 3221 if test -n "$ac_tool_prefix"; then 3222 for ac_prog in cl.exe 3223 do 3224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3227 $as_echo_n "checking for $ac_word... " >&6; } 3228 if ${ac_cv_prog_CC+:} false; then : 3229 $as_echo_n "(cached) " >&6 3230 else 3231 if test -n "$CC"; then 3232 ac_cv_prog_CC="$CC" # Let the user override the test. 3233 else 3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3235 for as_dir in $PATH 3236 do 3237 IFS=$as_save_IFS 3238 test -z "$as_dir" && as_dir=. 3239 for ac_exec_ext in '' $ac_executable_extensions; do 3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3241 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3243 break 2 3244 fi 3245 done 3246 done 3247 IFS=$as_save_IFS 3248 3249 fi 3250 fi 3251 CC=$ac_cv_prog_CC 3252 if test -n "$CC"; then 3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3254 $as_echo "$CC" >&6; } 3255 else 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3257 $as_echo "no" >&6; } 3258 fi 3259 3260 3261 test -n "$CC" && break 3262 done 3263 fi 3264 if test -z "$CC"; then 3265 ac_ct_CC=$CC 3266 for ac_prog in cl.exe 3267 do 3268 # Extract the first word of "$ac_prog", so it can be a program name with args. 3269 set dummy $ac_prog; ac_word=$2 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3271 $as_echo_n "checking for $ac_word... " >&6; } 3272 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3273 $as_echo_n "(cached) " >&6 3274 else 3275 if test -n "$ac_ct_CC"; then 3276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3277 else 3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3279 for as_dir in $PATH 3280 do 3281 IFS=$as_save_IFS 3282 test -z "$as_dir" && as_dir=. 3283 for ac_exec_ext in '' $ac_executable_extensions; do 3284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3285 ac_cv_prog_ac_ct_CC="$ac_prog" 3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3287 break 2 3288 fi 3289 done 3290 done 3291 IFS=$as_save_IFS 3292 3293 fi 3294 fi 3295 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3296 if test -n "$ac_ct_CC"; then 3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3298 $as_echo "$ac_ct_CC" >&6; } 3299 else 3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3301 $as_echo "no" >&6; } 3302 fi 3303 3304 3305 test -n "$ac_ct_CC" && break 3306 done 3307 3308 if test "x$ac_ct_CC" = x; then 3309 CC="" 3310 else 3311 case $cross_compiling:$ac_tool_warned in 3312 yes:) 3313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3315 ac_tool_warned=yes ;; 3316 esac 3317 CC=$ac_ct_CC 3318 fi 3319 fi 3320 3321 fi 3322 3323 3324 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3326 as_fn_error $? "no acceptable C compiler found in \$PATH 3327 See \`config.log' for more details" "$LINENO" 5; } 3328 3329 # Provide some information about the compiler. 3330 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3331 set X $ac_compile 3332 ac_compiler=$2 3333 for ac_option in --version -v -V -qversion; do 3334 { { ac_try="$ac_compiler $ac_option >&5" 3335 case "(($ac_try" in 3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3337 *) ac_try_echo=$ac_try;; 3338 esac 3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3340 $as_echo "$ac_try_echo"; } >&5 3341 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3342 ac_status=$? 3343 if test -s conftest.err; then 3344 sed '10a\ 3345 ... rest of stderr output deleted ... 3346 10q' conftest.err >conftest.er1 3347 cat conftest.er1 >&5 3348 fi 3349 rm -f conftest.er1 conftest.err 3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3351 test $ac_status = 0; } 3352 done 3353 3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3355 /* end confdefs.h. */ 3356 3357 int 3358 main () 3359 { 3360 3361 ; 3362 return 0; 3363 } 3364 _ACEOF 3365 ac_clean_files_save=$ac_clean_files 3366 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3367 # Try to create an executable without -o first, disregard a.out. 3368 # It will help us diagnose broken compilers, and finding out an intuition 3369 # of exeext. 3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3371 $as_echo_n "checking whether the C compiler works... " >&6; } 3372 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3373 3374 # The possible output files: 3375 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3376 3377 ac_rmfiles= 3378 for ac_file in $ac_files 3379 do 3380 case $ac_file in 3381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3382 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3383 esac 3384 done 3385 rm -f $ac_rmfiles 3386 3387 if { { ac_try="$ac_link_default" 3388 case "(($ac_try" in 3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3390 *) ac_try_echo=$ac_try;; 3391 esac 3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3393 $as_echo "$ac_try_echo"; } >&5 3394 (eval "$ac_link_default") 2>&5 3395 ac_status=$? 3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3397 test $ac_status = 0; }; then : 3398 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3399 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3400 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3401 # so that the user can short-circuit this test for compilers unknown to 3402 # Autoconf. 3403 for ac_file in $ac_files '' 3404 do 3405 test -f "$ac_file" || continue 3406 case $ac_file in 3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3408 ;; 3409 [ab].out ) 3410 # We found the default executable, but exeext='' is most 3411 # certainly right. 3412 break;; 3413 *.* ) 3414 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3415 then :; else 3416 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3417 fi 3418 # We set ac_cv_exeext here because the later test for it is not 3419 # safe: cross compilers may not add the suffix if given an `-o' 3420 # argument, so we may need to know it at that point already. 3421 # Even if this section looks crufty: it has the advantage of 3422 # actually working. 3423 break;; 3424 * ) 3425 break;; 3426 esac 3427 done 3428 test "$ac_cv_exeext" = no && ac_cv_exeext= 3429 3430 else 3431 ac_file='' 3432 fi 3433 if test -z "$ac_file"; then : 3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3435 $as_echo "no" >&6; } 3436 $as_echo "$as_me: failed program was:" >&5 3437 sed 's/^/| /' conftest.$ac_ext >&5 3438 3439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3441 as_fn_error 77 "C compiler cannot create executables 3442 See \`config.log' for more details" "$LINENO" 5; } 3443 else 3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3445 $as_echo "yes" >&6; } 3446 fi 3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3448 $as_echo_n "checking for C compiler default output file name... " >&6; } 3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3450 $as_echo "$ac_file" >&6; } 3451 ac_exeext=$ac_cv_exeext 3452 3453 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3454 ac_clean_files=$ac_clean_files_save 3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3456 $as_echo_n "checking for suffix of executables... " >&6; } 3457 if { { ac_try="$ac_link" 3458 case "(($ac_try" in 3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3460 *) ac_try_echo=$ac_try;; 3461 esac 3462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3463 $as_echo "$ac_try_echo"; } >&5 3464 (eval "$ac_link") 2>&5 3465 ac_status=$? 3466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3467 test $ac_status = 0; }; then : 3468 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3469 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3470 # work properly (i.e., refer to `conftest.exe'), while it won't with 3471 # `rm'. 3472 for ac_file in conftest.exe conftest conftest.*; do 3473 test -f "$ac_file" || continue 3474 case $ac_file in 3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3476 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3477 break;; 3478 * ) break;; 3479 esac 3480 done 3481 else 3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3484 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3485 See \`config.log' for more details" "$LINENO" 5; } 3486 fi 3487 rm -f conftest conftest$ac_cv_exeext 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3489 $as_echo "$ac_cv_exeext" >&6; } 3490 3491 rm -f conftest.$ac_ext 3492 EXEEXT=$ac_cv_exeext 3493 ac_exeext=$EXEEXT 3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3495 /* end confdefs.h. */ 3496 #include <stdio.h> 3497 int 3498 main () 3499 { 3500 FILE *f = fopen ("conftest.out", "w"); 3501 return ferror (f) || fclose (f) != 0; 3502 3503 ; 3504 return 0; 3505 } 3506 _ACEOF 3507 ac_clean_files="$ac_clean_files conftest.out" 3508 # Check that the compiler produces executables we can run. If not, either 3509 # the compiler is broken, or we cross compile. 3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3511 $as_echo_n "checking whether we are cross compiling... " >&6; } 3512 if test "$cross_compiling" != yes; then 3513 { { ac_try="$ac_link" 3514 case "(($ac_try" in 3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3516 *) ac_try_echo=$ac_try;; 3517 esac 3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3519 $as_echo "$ac_try_echo"; } >&5 3520 (eval "$ac_link") 2>&5 3521 ac_status=$? 3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3523 test $ac_status = 0; } 3524 if { ac_try='./conftest$ac_cv_exeext' 3525 { { case "(($ac_try" in 3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3527 *) ac_try_echo=$ac_try;; 3528 esac 3529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3530 $as_echo "$ac_try_echo"; } >&5 3531 (eval "$ac_try") 2>&5 3532 ac_status=$? 3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3534 test $ac_status = 0; }; }; then 3535 cross_compiling=no 3536 else 3537 if test "$cross_compiling" = maybe; then 3538 cross_compiling=yes 3539 else 3540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3542 as_fn_error $? "cannot run C compiled programs. 3543 If you meant to cross compile, use \`--host'. 3544 See \`config.log' for more details" "$LINENO" 5; } 3545 fi 3546 fi 3547 fi 3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3549 $as_echo "$cross_compiling" >&6; } 3550 3551 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3552 ac_clean_files=$ac_clean_files_save 3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3554 $as_echo_n "checking for suffix of object files... " >&6; } 3555 if ${ac_cv_objext+:} false; then : 3556 $as_echo_n "(cached) " >&6 3557 else 3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3559 /* end confdefs.h. */ 3560 3561 int 3562 main () 3563 { 3564 3565 ; 3566 return 0; 3567 } 3568 _ACEOF 3569 rm -f conftest.o conftest.obj 3570 if { { ac_try="$ac_compile" 3571 case "(($ac_try" in 3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3573 *) ac_try_echo=$ac_try;; 3574 esac 3575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3576 $as_echo "$ac_try_echo"; } >&5 3577 (eval "$ac_compile") 2>&5 3578 ac_status=$? 3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3580 test $ac_status = 0; }; then : 3581 for ac_file in conftest.o conftest.obj conftest.*; do 3582 test -f "$ac_file" || continue; 3583 case $ac_file in 3584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3585 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3586 break;; 3587 esac 3588 done 3589 else 3590 $as_echo "$as_me: failed program was:" >&5 3591 sed 's/^/| /' conftest.$ac_ext >&5 3592 3593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3595 as_fn_error $? "cannot compute suffix of object files: cannot compile 3596 See \`config.log' for more details" "$LINENO" 5; } 3597 fi 3598 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3599 fi 3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3601 $as_echo "$ac_cv_objext" >&6; } 3602 OBJEXT=$ac_cv_objext 3603 ac_objext=$OBJEXT 3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3605 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3606 if ${ac_cv_c_compiler_gnu+:} false; then : 3607 $as_echo_n "(cached) " >&6 3608 else 3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3610 /* end confdefs.h. */ 3611 3612 int 3613 main () 3614 { 3615 #ifndef __GNUC__ 3616 choke me 3617 #endif 3618 3619 ; 3620 return 0; 3621 } 3622 _ACEOF 3623 if ac_fn_c_try_compile "$LINENO"; then : 3624 ac_compiler_gnu=yes 3625 else 3626 ac_compiler_gnu=no 3627 fi 3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3629 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3630 3631 fi 3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3633 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3634 if test $ac_compiler_gnu = yes; then 3635 GCC=yes 3636 else 3637 GCC= 3638 fi 3639 ac_test_CFLAGS=${CFLAGS+set} 3640 ac_save_CFLAGS=$CFLAGS 3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3642 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3643 if ${ac_cv_prog_cc_g+:} false; then : 3644 $as_echo_n "(cached) " >&6 3645 else 3646 ac_save_c_werror_flag=$ac_c_werror_flag 3647 ac_c_werror_flag=yes 3648 ac_cv_prog_cc_g=no 3649 CFLAGS="-g" 3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3651 /* end confdefs.h. */ 3652 3653 int 3654 main () 3655 { 3656 3657 ; 3658 return 0; 3659 } 3660 _ACEOF 3661 if ac_fn_c_try_compile "$LINENO"; then : 3662 ac_cv_prog_cc_g=yes 3663 else 3664 CFLAGS="" 3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3666 /* end confdefs.h. */ 3667 3668 int 3669 main () 3670 { 3671 3672 ; 3673 return 0; 3674 } 3675 _ACEOF 3676 if ac_fn_c_try_compile "$LINENO"; then : 3677 3678 else 3679 ac_c_werror_flag=$ac_save_c_werror_flag 3680 CFLAGS="-g" 3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3682 /* end confdefs.h. */ 3683 3684 int 3685 main () 3686 { 3687 3688 ; 3689 return 0; 3690 } 3691 _ACEOF 3692 if ac_fn_c_try_compile "$LINENO"; then : 3693 ac_cv_prog_cc_g=yes 3694 fi 3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3696 fi 3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3698 fi 3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3700 ac_c_werror_flag=$ac_save_c_werror_flag 3701 fi 3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3703 $as_echo "$ac_cv_prog_cc_g" >&6; } 3704 if test "$ac_test_CFLAGS" = set; then 3705 CFLAGS=$ac_save_CFLAGS 3706 elif test $ac_cv_prog_cc_g = yes; then 3707 if test "$GCC" = yes; then 3708 CFLAGS="-g -O2" 3709 else 3710 CFLAGS="-g" 3711 fi 3712 else 3713 if test "$GCC" = yes; then 3714 CFLAGS="-O2" 3715 else 3716 CFLAGS= 3717 fi 3718 fi 3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3720 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3721 if ${ac_cv_prog_cc_c89+:} false; then : 3722 $as_echo_n "(cached) " >&6 3723 else 3724 ac_cv_prog_cc_c89=no 3725 ac_save_CC=$CC 3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3727 /* end confdefs.h. */ 3728 #include <stdarg.h> 3729 #include <stdio.h> 3730 struct stat; 3731 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3732 struct buf { int x; }; 3733 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3734 static char *e (p, i) 3735 char **p; 3736 int i; 3737 { 3738 return p[i]; 3739 } 3740 static char *f (char * (*g) (char **, int), char **p, ...) 3741 { 3742 char *s; 3743 va_list v; 3744 va_start (v,p); 3745 s = g (p, va_arg (v,int)); 3746 va_end (v); 3747 return s; 3748 } 3749 3750 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3751 function prototypes and stuff, but not '\xHH' hex character constants. 3752 These don't provoke an error unfortunately, instead are silently treated 3753 as 'x'. The following induces an error, until -std is added to get 3754 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3755 array size at least. It's necessary to write '\x00'==0 to get something 3756 that's true only with -std. */ 3757 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3758 3759 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3760 inside strings and character constants. */ 3761 #define FOO(x) 'x' 3762 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3763 3764 int test (int i, double x); 3765 struct s1 {int (*f) (int a);}; 3766 struct s2 {int (*f) (double a);}; 3767 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3768 int argc; 3769 char **argv; 3770 int 3771 main () 3772 { 3773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3774 ; 3775 return 0; 3776 } 3777 _ACEOF 3778 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3779 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3780 do 3781 CC="$ac_save_CC $ac_arg" 3782 if ac_fn_c_try_compile "$LINENO"; then : 3783 ac_cv_prog_cc_c89=$ac_arg 3784 fi 3785 rm -f core conftest.err conftest.$ac_objext 3786 test "x$ac_cv_prog_cc_c89" != "xno" && break 3787 done 3788 rm -f conftest.$ac_ext 3789 CC=$ac_save_CC 3790 3791 fi 3792 # AC_CACHE_VAL 3793 case "x$ac_cv_prog_cc_c89" in 3794 x) 3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3796 $as_echo "none needed" >&6; } ;; 3797 xno) 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3799 $as_echo "unsupported" >&6; } ;; 3800 *) 3801 CC="$CC $ac_cv_prog_cc_c89" 3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3803 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3804 esac 3805 if test "x$ac_cv_prog_cc_c89" != xno; then : 3806 3807 fi 3808 3809 ac_ext=c 3810 ac_cpp='$CPP $CPPFLAGS' 3811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3813 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3814 3815 ac_ext=c 3816 ac_cpp='$CPP $CPPFLAGS' 3817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3819 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3821 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3822 if ${am_cv_prog_cc_c_o+:} false; then : 3823 $as_echo_n "(cached) " >&6 3824 else 3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3826 /* end confdefs.h. */ 3827 3828 int 3829 main () 3830 { 3831 3832 ; 3833 return 0; 3834 } 3835 _ACEOF 3836 # Make sure it works both with $CC and with simple cc. 3837 # Following AC_PROG_CC_C_O, we do the test twice because some 3838 # compilers refuse to overwrite an existing .o file with -o, 3839 # though they will create one. 3840 am_cv_prog_cc_c_o=yes 3841 for am_i in 1 2; do 3842 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3843 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3844 ac_status=$? 3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3846 (exit $ac_status); } \ 3847 && test -f conftest2.$ac_objext; then 3848 : OK 3849 else 3850 am_cv_prog_cc_c_o=no 3851 break 3852 fi 3853 done 3854 rm -f core conftest* 3855 unset am_i 3856 fi 3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3858 $as_echo "$am_cv_prog_cc_c_o" >&6; } 3859 if test "$am_cv_prog_cc_c_o" != yes; then 3860 # Losing compiler, so override with the script. 3861 # FIXME: It is wrong to rewrite CC. 3862 # But if we don't then we get into trouble of one sort or another. 3863 # A longer-term fix would be to have automake use am__CC in this case, 3864 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3865 CC="$am_aux_dir/compile $CC" 3866 fi 3867 ac_ext=c 3868 ac_cpp='$CPP $CPPFLAGS' 3869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3871 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3872 3873 3874 depcc="$CC" am_compiler_list= 3875 3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3877 $as_echo_n "checking dependency style of $depcc... " >&6; } 3878 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3879 $as_echo_n "(cached) " >&6 3880 else 3881 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3882 # We make a subdir and do the tests there. Otherwise we can end up 3883 # making bogus files that we don't know about and never remove. For 3884 # instance it was reported that on HP-UX the gcc test will end up 3885 # making a dummy file named 'D' -- because '-MD' means "put the output 3886 # in D". 3887 rm -rf conftest.dir 3888 mkdir conftest.dir 3889 # Copy depcomp to subdir because otherwise we won't find it if we're 3890 # using a relative directory. 3891 cp "$am_depcomp" conftest.dir 3892 cd conftest.dir 3893 # We will build objects and dependencies in a subdirectory because 3894 # it helps to detect inapplicable dependency modes. For instance 3895 # both Tru64's cc and ICC support -MD to output dependencies as a 3896 # side effect of compilation, but ICC will put the dependencies in 3897 # the current directory while Tru64 will put them in the object 3898 # directory. 3899 mkdir sub 3900 3901 am_cv_CC_dependencies_compiler_type=none 3902 if test "$am_compiler_list" = ""; then 3903 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3904 fi 3905 am__universal=false 3906 case " $depcc " in #( 3907 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3908 esac 3909 3910 for depmode in $am_compiler_list; do 3911 # Setup a source with many dependencies, because some compilers 3912 # like to wrap large dependency lists on column 80 (with \), and 3913 # we should not choose a depcomp mode which is confused by this. 3914 # 3915 # We need to recreate these files for each test, as the compiler may 3916 # overwrite some of them when testing with obscure command lines. 3917 # This happens at least with the AIX C compiler. 3918 : > sub/conftest.c 3919 for i in 1 2 3 4 5 6; do 3920 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3921 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3922 # Solaris 10 /bin/sh. 3923 echo '/* dummy */' > sub/conftst$i.h 3924 done 3925 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3926 3927 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3928 # mode. It turns out that the SunPro C++ compiler does not properly 3929 # handle '-M -o', and we need to detect this. Also, some Intel 3930 # versions had trouble with output in subdirs. 3931 am__obj=sub/conftest.${OBJEXT-o} 3932 am__minus_obj="-o $am__obj" 3933 case $depmode in 3934 gcc) 3935 # This depmode causes a compiler race in universal mode. 3936 test "$am__universal" = false || continue 3937 ;; 3938 nosideeffect) 3939 # After this tag, mechanisms are not by side-effect, so they'll 3940 # only be used when explicitly requested. 3941 if test "x$enable_dependency_tracking" = xyes; then 3942 continue 3943 else 3944 break 3945 fi 3946 ;; 3947 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3948 # This compiler won't grok '-c -o', but also, the minuso test has 3949 # not run yet. These depmodes are late enough in the game, and 3950 # so weak that their functioning should not be impacted. 3951 am__obj=conftest.${OBJEXT-o} 3952 am__minus_obj= 3953 ;; 3954 none) break ;; 3955 esac 3956 if depmode=$depmode \ 3957 source=sub/conftest.c object=$am__obj \ 3958 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3959 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3960 >/dev/null 2>conftest.err && 3961 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3962 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3963 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3964 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3965 # icc doesn't choke on unknown options, it will just issue warnings 3966 # or remarks (even with -Werror). So we grep stderr for any message 3967 # that says an option was ignored or not supported. 3968 # When given -MP, icc 7.0 and 7.1 complain thusly: 3969 # icc: Command line warning: ignoring option '-M'; no argument required 3970 # The diagnosis changed in icc 8.0: 3971 # icc: Command line remark: option '-MP' not supported 3972 if (grep 'ignoring option' conftest.err || 3973 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3974 am_cv_CC_dependencies_compiler_type=$depmode 3975 break 3976 fi 3977 fi 3978 done 3979 3980 cd .. 3981 rm -rf conftest.dir 3982 else 3983 am_cv_CC_dependencies_compiler_type=none 3984 fi 3985 3986 fi 3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3988 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3989 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3990 3991 if 3992 test "x$enable_dependency_tracking" != xno \ 3993 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3994 am__fastdepCC_TRUE= 3995 am__fastdepCC_FALSE='#' 3996 else 3997 am__fastdepCC_TRUE='#' 3998 am__fastdepCC_FALSE= 3999 fi 4000 4001 4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4003 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4004 if ${ac_cv_prog_cc_c99+:} false; then : 4005 $as_echo_n "(cached) " >&6 4006 else 4007 ac_cv_prog_cc_c99=no 4008 ac_save_CC=$CC 4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4010 /* end confdefs.h. */ 4011 #include <stdarg.h> 4012 #include <stdbool.h> 4013 #include <stdlib.h> 4014 #include <wchar.h> 4015 #include <stdio.h> 4016 4017 // Check varargs macros. These examples are taken from C99 6.10.3.5. 4018 #define debug(...) fprintf (stderr, __VA_ARGS__) 4019 #define showlist(...) puts (#__VA_ARGS__) 4020 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4021 static void 4022 test_varargs_macros (void) 4023 { 4024 int x = 1234; 4025 int y = 5678; 4026 debug ("Flag"); 4027 debug ("X = %d\n", x); 4028 showlist (The first, second, and third items.); 4029 report (x>y, "x is %d but y is %d", x, y); 4030 } 4031 4032 // Check long long types. 4033 #define BIG64 18446744073709551615ull 4034 #define BIG32 4294967295ul 4035 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4036 #if !BIG_OK 4037 your preprocessor is broken; 4038 #endif 4039 #if BIG_OK 4040 #else 4041 your preprocessor is broken; 4042 #endif 4043 static long long int bignum = -9223372036854775807LL; 4044 static unsigned long long int ubignum = BIG64; 4045 4046 struct incomplete_array 4047 { 4048 int datasize; 4049 double data[]; 4050 }; 4051 4052 struct named_init { 4053 int number; 4054 const wchar_t *name; 4055 double average; 4056 }; 4057 4058 typedef const char *ccp; 4059 4060 static inline int 4061 test_restrict (ccp restrict text) 4062 { 4063 // See if C++-style comments work. 4064 // Iterate through items via the restricted pointer. 4065 // Also check for declarations in for loops. 4066 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4067 continue; 4068 return 0; 4069 } 4070 4071 // Check varargs and va_copy. 4072 static void 4073 test_varargs (const char *format, ...) 4074 { 4075 va_list args; 4076 va_start (args, format); 4077 va_list args_copy; 4078 va_copy (args_copy, args); 4079 4080 const char *str; 4081 int number; 4082 float fnumber; 4083 4084 while (*format) 4085 { 4086 switch (*format++) 4087 { 4088 case 's': // string 4089 str = va_arg (args_copy, const char *); 4090 break; 4091 case 'd': // int 4092 number = va_arg (args_copy, int); 4093 break; 4094 case 'f': // float 4095 fnumber = va_arg (args_copy, double); 4096 break; 4097 default: 4098 break; 4099 } 4100 } 4101 va_end (args_copy); 4102 va_end (args); 4103 } 4104 4105 int 4106 main () 4107 { 4108 4109 // Check bool. 4110 _Bool success = false; 4111 4112 // Check restrict. 4113 if (test_restrict ("String literal") == 0) 4114 success = true; 4115 char *restrict newvar = "Another string"; 4116 4117 // Check varargs. 4118 test_varargs ("s, d' f .", "string", 65, 34.234); 4119 test_varargs_macros (); 4120 4121 // Check flexible array members. 4122 struct incomplete_array *ia = 4123 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4124 ia->datasize = 10; 4125 for (int i = 0; i < ia->datasize; ++i) 4126 ia->data[i] = i * 1.234; 4127 4128 // Check named initializers. 4129 struct named_init ni = { 4130 .number = 34, 4131 .name = L"Test wide string", 4132 .average = 543.34343, 4133 }; 4134 4135 ni.number = 58; 4136 4137 int dynamic_array[ni.number]; 4138 dynamic_array[ni.number - 1] = 543; 4139 4140 // work around unused variable warnings 4141 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4142 || dynamic_array[ni.number - 1] != 543); 4143 4144 ; 4145 return 0; 4146 } 4147 _ACEOF 4148 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4149 do 4150 CC="$ac_save_CC $ac_arg" 4151 if ac_fn_c_try_compile "$LINENO"; then : 4152 ac_cv_prog_cc_c99=$ac_arg 4153 fi 4154 rm -f core conftest.err conftest.$ac_objext 4155 test "x$ac_cv_prog_cc_c99" != "xno" && break 4156 done 4157 rm -f conftest.$ac_ext 4158 CC=$ac_save_CC 4159 4160 fi 4161 # AC_CACHE_VAL 4162 case "x$ac_cv_prog_cc_c99" in 4163 x) 4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4165 $as_echo "none needed" >&6; } ;; 4166 xno) 4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4168 $as_echo "unsupported" >&6; } ;; 4169 *) 4170 CC="$CC $ac_cv_prog_cc_c99" 4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4172 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4173 esac 4174 if test "x$ac_cv_prog_cc_c99" != xno; then : 4175 4176 fi 4177 4178 4179 4180 ac_ext=c 4181 ac_cpp='$CPP $CPPFLAGS' 4182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4184 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4186 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4187 # On Suns, sometimes $CPP names a directory. 4188 if test -n "$CPP" && test -d "$CPP"; then 4189 CPP= 4190 fi 4191 if test -z "$CPP"; then 4192 if ${ac_cv_prog_CPP+:} false; then : 4193 $as_echo_n "(cached) " >&6 4194 else 4195 # Double quotes because CPP needs to be expanded 4196 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4197 do 4198 ac_preproc_ok=false 4199 for ac_c_preproc_warn_flag in '' yes 4200 do 4201 # Use a header file that comes with gcc, so configuring glibc 4202 # with a fresh cross-compiler works. 4203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4204 # <limits.h> exists even on freestanding compilers. 4205 # On the NeXT, cc -E runs the code through the compiler's parser, 4206 # not just through cpp. "Syntax error" is here to catch this case. 4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4208 /* end confdefs.h. */ 4209 #ifdef __STDC__ 4210 # include <limits.h> 4211 #else 4212 # include <assert.h> 4213 #endif 4214 Syntax error 4215 _ACEOF 4216 if ac_fn_c_try_cpp "$LINENO"; then : 4217 4218 else 4219 # Broken: fails on valid input. 4220 continue 4221 fi 4222 rm -f conftest.err conftest.i conftest.$ac_ext 4223 4224 # OK, works on sane cases. Now check whether nonexistent headers 4225 # can be detected and how. 4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4227 /* end confdefs.h. */ 4228 #include <ac_nonexistent.h> 4229 _ACEOF 4230 if ac_fn_c_try_cpp "$LINENO"; then : 4231 # Broken: success on invalid input. 4232 continue 4233 else 4234 # Passes both tests. 4235 ac_preproc_ok=: 4236 break 4237 fi 4238 rm -f conftest.err conftest.i conftest.$ac_ext 4239 4240 done 4241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4242 rm -f conftest.i conftest.err conftest.$ac_ext 4243 if $ac_preproc_ok; then : 4244 break 4245 fi 4246 4247 done 4248 ac_cv_prog_CPP=$CPP 4249 4250 fi 4251 CPP=$ac_cv_prog_CPP 4252 else 4253 ac_cv_prog_CPP=$CPP 4254 fi 4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4256 $as_echo "$CPP" >&6; } 4257 ac_preproc_ok=false 4258 for ac_c_preproc_warn_flag in '' yes 4259 do 4260 # Use a header file that comes with gcc, so configuring glibc 4261 # with a fresh cross-compiler works. 4262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4263 # <limits.h> exists even on freestanding compilers. 4264 # On the NeXT, cc -E runs the code through the compiler's parser, 4265 # not just through cpp. "Syntax error" is here to catch this case. 4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4267 /* end confdefs.h. */ 4268 #ifdef __STDC__ 4269 # include <limits.h> 4270 #else 4271 # include <assert.h> 4272 #endif 4273 Syntax error 4274 _ACEOF 4275 if ac_fn_c_try_cpp "$LINENO"; then : 4276 4277 else 4278 # Broken: fails on valid input. 4279 continue 4280 fi 4281 rm -f conftest.err conftest.i conftest.$ac_ext 4282 4283 # OK, works on sane cases. Now check whether nonexistent headers 4284 # can be detected and how. 4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4286 /* end confdefs.h. */ 4287 #include <ac_nonexistent.h> 4288 _ACEOF 4289 if ac_fn_c_try_cpp "$LINENO"; then : 4290 # Broken: success on invalid input. 4291 continue 4292 else 4293 # Passes both tests. 4294 ac_preproc_ok=: 4295 break 4296 fi 4297 rm -f conftest.err conftest.i conftest.$ac_ext 4298 4299 done 4300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4301 rm -f conftest.i conftest.err conftest.$ac_ext 4302 if $ac_preproc_ok; then : 4303 4304 else 4305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4307 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4308 See \`config.log' for more details" "$LINENO" 5; } 4309 fi 4310 4311 ac_ext=c 4312 ac_cpp='$CPP $CPPFLAGS' 4313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4315 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4316 4317 4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4319 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4320 if ${ac_cv_path_GREP+:} false; then : 4321 $as_echo_n "(cached) " >&6 4322 else 4323 if test -z "$GREP"; then 4324 ac_path_GREP_found=false 4325 # Loop through the user's path and test for each of PROGNAME-LIST 4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4328 do 4329 IFS=$as_save_IFS 4330 test -z "$as_dir" && as_dir=. 4331 for ac_prog in grep ggrep; do 4332 for ac_exec_ext in '' $ac_executable_extensions; do 4333 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4334 as_fn_executable_p "$ac_path_GREP" || continue 4335 # Check for GNU ac_path_GREP and select it if it is found. 4336 # Check for GNU $ac_path_GREP 4337 case `"$ac_path_GREP" --version 2>&1` in 4338 *GNU*) 4339 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4340 *) 4341 ac_count=0 4342 $as_echo_n 0123456789 >"conftest.in" 4343 while : 4344 do 4345 cat "conftest.in" "conftest.in" >"conftest.tmp" 4346 mv "conftest.tmp" "conftest.in" 4347 cp "conftest.in" "conftest.nl" 4348 $as_echo 'GREP' >> "conftest.nl" 4349 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4351 as_fn_arith $ac_count + 1 && ac_count=$as_val 4352 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4353 # Best one so far, save it but keep looking for a better one 4354 ac_cv_path_GREP="$ac_path_GREP" 4355 ac_path_GREP_max=$ac_count 4356 fi 4357 # 10*(2^10) chars as input seems more than enough 4358 test $ac_count -gt 10 && break 4359 done 4360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4361 esac 4362 4363 $ac_path_GREP_found && break 3 4364 done 4365 done 4366 done 4367 IFS=$as_save_IFS 4368 if test -z "$ac_cv_path_GREP"; then 4369 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4370 fi 4371 else 4372 ac_cv_path_GREP=$GREP 4373 fi 4374 4375 fi 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4377 $as_echo "$ac_cv_path_GREP" >&6; } 4378 GREP="$ac_cv_path_GREP" 4379 4380 4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4382 $as_echo_n "checking for egrep... " >&6; } 4383 if ${ac_cv_path_EGREP+:} false; then : 4384 $as_echo_n "(cached) " >&6 4385 else 4386 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4387 then ac_cv_path_EGREP="$GREP -E" 4388 else 4389 if test -z "$EGREP"; then 4390 ac_path_EGREP_found=false 4391 # Loop through the user's path and test for each of PROGNAME-LIST 4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4394 do 4395 IFS=$as_save_IFS 4396 test -z "$as_dir" && as_dir=. 4397 for ac_prog in egrep; do 4398 for ac_exec_ext in '' $ac_executable_extensions; do 4399 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4400 as_fn_executable_p "$ac_path_EGREP" || continue 4401 # Check for GNU ac_path_EGREP and select it if it is found. 4402 # Check for GNU $ac_path_EGREP 4403 case `"$ac_path_EGREP" --version 2>&1` in 4404 *GNU*) 4405 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4406 *) 4407 ac_count=0 4408 $as_echo_n 0123456789 >"conftest.in" 4409 while : 4410 do 4411 cat "conftest.in" "conftest.in" >"conftest.tmp" 4412 mv "conftest.tmp" "conftest.in" 4413 cp "conftest.in" "conftest.nl" 4414 $as_echo 'EGREP' >> "conftest.nl" 4415 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4417 as_fn_arith $ac_count + 1 && ac_count=$as_val 4418 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4419 # Best one so far, save it but keep looking for a better one 4420 ac_cv_path_EGREP="$ac_path_EGREP" 4421 ac_path_EGREP_max=$ac_count 4422 fi 4423 # 10*(2^10) chars as input seems more than enough 4424 test $ac_count -gt 10 && break 4425 done 4426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4427 esac 4428 4429 $ac_path_EGREP_found && break 3 4430 done 4431 done 4432 done 4433 IFS=$as_save_IFS 4434 if test -z "$ac_cv_path_EGREP"; then 4435 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4436 fi 4437 else 4438 ac_cv_path_EGREP=$EGREP 4439 fi 4440 4441 fi 4442 fi 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4444 $as_echo "$ac_cv_path_EGREP" >&6; } 4445 EGREP="$ac_cv_path_EGREP" 4446 4447 4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4449 $as_echo_n "checking for ANSI C header files... " >&6; } 4450 if ${ac_cv_header_stdc+:} false; then : 4451 $as_echo_n "(cached) " >&6 4452 else 4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4454 /* end confdefs.h. */ 4455 #include <stdlib.h> 4456 #include <stdarg.h> 4457 #include <string.h> 4458 #include <float.h> 4459 4460 int 4461 main () 4462 { 4463 4464 ; 4465 return 0; 4466 } 4467 _ACEOF 4468 if ac_fn_c_try_compile "$LINENO"; then : 4469 ac_cv_header_stdc=yes 4470 else 4471 ac_cv_header_stdc=no 4472 fi 4473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4474 4475 if test $ac_cv_header_stdc = yes; then 4476 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4478 /* end confdefs.h. */ 4479 #include <string.h> 4480 4481 _ACEOF 4482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4483 $EGREP "memchr" >/dev/null 2>&1; then : 4484 4485 else 4486 ac_cv_header_stdc=no 4487 fi 4488 rm -f conftest* 4489 4490 fi 4491 4492 if test $ac_cv_header_stdc = yes; then 4493 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4495 /* end confdefs.h. */ 4496 #include <stdlib.h> 4497 4498 _ACEOF 4499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4500 $EGREP "free" >/dev/null 2>&1; then : 4501 4502 else 4503 ac_cv_header_stdc=no 4504 fi 4505 rm -f conftest* 4506 4507 fi 4508 4509 if test $ac_cv_header_stdc = yes; then 4510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4511 if test "$cross_compiling" = yes; then : 4512 : 4513 else 4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4515 /* end confdefs.h. */ 4516 #include <ctype.h> 4517 #include <stdlib.h> 4518 #if ((' ' & 0x0FF) == 0x020) 4519 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4520 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4521 #else 4522 # define ISLOWER(c) \ 4523 (('a' <= (c) && (c) <= 'i') \ 4524 || ('j' <= (c) && (c) <= 'r') \ 4525 || ('s' <= (c) && (c) <= 'z')) 4526 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4527 #endif 4528 4529 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4530 int 4531 main () 4532 { 4533 int i; 4534 for (i = 0; i < 256; i++) 4535 if (XOR (islower (i), ISLOWER (i)) 4536 || toupper (i) != TOUPPER (i)) 4537 return 2; 4538 return 0; 4539 } 4540 _ACEOF 4541 if ac_fn_c_try_run "$LINENO"; then : 4542 4543 else 4544 ac_cv_header_stdc=no 4545 fi 4546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4547 conftest.$ac_objext conftest.beam conftest.$ac_ext 4548 fi 4549 4550 fi 4551 fi 4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4553 $as_echo "$ac_cv_header_stdc" >&6; } 4554 if test $ac_cv_header_stdc = yes; then 4555 4556 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4557 4558 fi 4559 4560 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4561 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4562 inttypes.h stdint.h unistd.h 4563 do : 4564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4565 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4566 " 4567 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4568 cat >>confdefs.h <<_ACEOF 4569 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4570 _ACEOF 4571 4572 fi 4573 4574 done 4575 4576 4577 4578 4579 4580 4581 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4582 if test "x$ac_cv_have_decl___clang__" = xyes; then : 4583 CLANGCC="yes" 4584 else 4585 CLANGCC="no" 4586 fi 4587 4588 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4589 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4590 INTELCC="yes" 4591 else 4592 INTELCC="no" 4593 fi 4594 4595 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4596 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4597 SUNCC="yes" 4598 else 4599 SUNCC="no" 4600 fi 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4611 if test -n "$ac_tool_prefix"; then 4612 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4613 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4615 $as_echo_n "checking for $ac_word... " >&6; } 4616 if ${ac_cv_path_PKG_CONFIG+:} false; then : 4617 $as_echo_n "(cached) " >&6 4618 else 4619 case $PKG_CONFIG in 4620 [\\/]* | ?:[\\/]*) 4621 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4622 ;; 4623 *) 4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4625 for as_dir in $PATH 4626 do 4627 IFS=$as_save_IFS 4628 test -z "$as_dir" && as_dir=. 4629 for ac_exec_ext in '' $ac_executable_extensions; do 4630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4631 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4633 break 2 4634 fi 4635 done 4636 done 4637 IFS=$as_save_IFS 4638 4639 ;; 4640 esac 4641 fi 4642 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4643 if test -n "$PKG_CONFIG"; then 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4645 $as_echo "$PKG_CONFIG" >&6; } 4646 else 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4648 $as_echo "no" >&6; } 4649 fi 4650 4651 4652 fi 4653 if test -z "$ac_cv_path_PKG_CONFIG"; then 4654 ac_pt_PKG_CONFIG=$PKG_CONFIG 4655 # Extract the first word of "pkg-config", so it can be a program name with args. 4656 set dummy pkg-config; ac_word=$2 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4658 $as_echo_n "checking for $ac_word... " >&6; } 4659 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4660 $as_echo_n "(cached) " >&6 4661 else 4662 case $ac_pt_PKG_CONFIG in 4663 [\\/]* | ?:[\\/]*) 4664 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4665 ;; 4666 *) 4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4668 for as_dir in $PATH 4669 do 4670 IFS=$as_save_IFS 4671 test -z "$as_dir" && as_dir=. 4672 for ac_exec_ext in '' $ac_executable_extensions; do 4673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4674 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4676 break 2 4677 fi 4678 done 4679 done 4680 IFS=$as_save_IFS 4681 4682 ;; 4683 esac 4684 fi 4685 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4686 if test -n "$ac_pt_PKG_CONFIG"; then 4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4688 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 4689 else 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4691 $as_echo "no" >&6; } 4692 fi 4693 4694 if test "x$ac_pt_PKG_CONFIG" = x; then 4695 PKG_CONFIG="" 4696 else 4697 case $cross_compiling:$ac_tool_warned in 4698 yes:) 4699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4701 ac_tool_warned=yes ;; 4702 esac 4703 PKG_CONFIG=$ac_pt_PKG_CONFIG 4704 fi 4705 else 4706 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4707 fi 4708 4709 fi 4710 if test -n "$PKG_CONFIG"; then 4711 _pkg_min_version=0.9.0 4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4713 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4714 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4716 $as_echo "yes" >&6; } 4717 else 4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4719 $as_echo "no" >&6; } 4720 PKG_CONFIG="" 4721 fi 4722 fi 4723 # Make sure we can run config.sub. 4724 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4725 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4726 4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4728 $as_echo_n "checking build system type... " >&6; } 4729 if ${ac_cv_build+:} false; then : 4730 $as_echo_n "(cached) " >&6 4731 else 4732 ac_build_alias=$build_alias 4733 test "x$ac_build_alias" = x && 4734 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4735 test "x$ac_build_alias" = x && 4736 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4737 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4738 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4739 4740 fi 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4742 $as_echo "$ac_cv_build" >&6; } 4743 case $ac_cv_build in 4744 *-*-*) ;; 4745 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4746 esac 4747 build=$ac_cv_build 4748 ac_save_IFS=$IFS; IFS='-' 4749 set x $ac_cv_build 4750 shift 4751 build_cpu=$1 4752 build_vendor=$2 4753 shift; shift 4754 # Remember, the first character of IFS is used to create $*, 4755 # except with old shells: 4756 build_os=$* 4757 IFS=$ac_save_IFS 4758 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4759 4760 4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4762 $as_echo_n "checking host system type... " >&6; } 4763 if ${ac_cv_host+:} false; then : 4764 $as_echo_n "(cached) " >&6 4765 else 4766 if test "x$host_alias" = x; then 4767 ac_cv_host=$ac_cv_build 4768 else 4769 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4770 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4771 fi 4772 4773 fi 4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4775 $as_echo "$ac_cv_host" >&6; } 4776 case $ac_cv_host in 4777 *-*-*) ;; 4778 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4779 esac 4780 host=$ac_cv_host 4781 ac_save_IFS=$IFS; IFS='-' 4782 set x $ac_cv_host 4783 shift 4784 host_cpu=$1 4785 host_vendor=$2 4786 shift; shift 4787 # Remember, the first character of IFS is used to create $*, 4788 # except with old shells: 4789 host_os=$* 4790 IFS=$ac_save_IFS 4791 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4792 4793 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4795 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4796 if ${ac_cv_path_SED+:} false; then : 4797 $as_echo_n "(cached) " >&6 4798 else 4799 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4800 for ac_i in 1 2 3 4 5 6 7; do 4801 ac_script="$ac_script$as_nl$ac_script" 4802 done 4803 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4804 { ac_script=; unset ac_script;} 4805 if test -z "$SED"; then 4806 ac_path_SED_found=false 4807 # Loop through the user's path and test for each of PROGNAME-LIST 4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4809 for as_dir in $PATH 4810 do 4811 IFS=$as_save_IFS 4812 test -z "$as_dir" && as_dir=. 4813 for ac_prog in sed gsed; do 4814 for ac_exec_ext in '' $ac_executable_extensions; do 4815 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4816 as_fn_executable_p "$ac_path_SED" || continue 4817 # Check for GNU ac_path_SED and select it if it is found. 4818 # Check for GNU $ac_path_SED 4819 case `"$ac_path_SED" --version 2>&1` in 4820 *GNU*) 4821 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4822 *) 4823 ac_count=0 4824 $as_echo_n 0123456789 >"conftest.in" 4825 while : 4826 do 4827 cat "conftest.in" "conftest.in" >"conftest.tmp" 4828 mv "conftest.tmp" "conftest.in" 4829 cp "conftest.in" "conftest.nl" 4830 $as_echo '' >> "conftest.nl" 4831 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4833 as_fn_arith $ac_count + 1 && ac_count=$as_val 4834 if test $ac_count -gt ${ac_path_SED_max-0}; then 4835 # Best one so far, save it but keep looking for a better one 4836 ac_cv_path_SED="$ac_path_SED" 4837 ac_path_SED_max=$ac_count 4838 fi 4839 # 10*(2^10) chars as input seems more than enough 4840 test $ac_count -gt 10 && break 4841 done 4842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4843 esac 4844 4845 $ac_path_SED_found && break 3 4846 done 4847 done 4848 done 4849 IFS=$as_save_IFS 4850 if test -z "$ac_cv_path_SED"; then 4851 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4852 fi 4853 else 4854 ac_cv_path_SED=$SED 4855 fi 4856 4857 fi 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4859 $as_echo "$ac_cv_path_SED" >&6; } 4860 SED="$ac_cv_path_SED" 4861 rm -f conftest.sed 4862 4863 4864 4865 4866 4867 4868 # Check whether --enable-selective-werror was given. 4869 if test "${enable_selective_werror+set}" = set; then : 4870 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4871 else 4872 SELECTIVE_WERROR=yes 4873 fi 4874 4875 4876 4877 4878 4879 # -v is too short to test reliably with XORG_TESTSET_CFLAG 4880 if test "x$SUNCC" = "xyes"; then 4881 BASE_CFLAGS="-v" 4882 else 4883 BASE_CFLAGS="" 4884 fi 4885 4886 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 xorg_testset_save_CFLAGS="$CFLAGS" 4901 4902 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4905 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4906 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4907 $as_echo_n "(cached) " >&6 4908 else 4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4910 /* end confdefs.h. */ 4911 int i; 4912 _ACEOF 4913 if ac_fn_c_try_compile "$LINENO"; then : 4914 xorg_cv_cc_flag_unknown_warning_option=yes 4915 else 4916 xorg_cv_cc_flag_unknown_warning_option=no 4917 fi 4918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4919 fi 4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4921 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4923 CFLAGS="$xorg_testset_save_CFLAGS" 4924 fi 4925 4926 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4929 fi 4930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4932 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4933 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4934 $as_echo_n "(cached) " >&6 4935 else 4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4937 /* end confdefs.h. */ 4938 int i; 4939 _ACEOF 4940 if ac_fn_c_try_compile "$LINENO"; then : 4941 xorg_cv_cc_flag_unused_command_line_argument=yes 4942 else 4943 xorg_cv_cc_flag_unused_command_line_argument=no 4944 fi 4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4946 fi 4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4948 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4950 CFLAGS="$xorg_testset_save_CFLAGS" 4951 fi 4952 4953 found="no" 4954 4955 if test $found = "no" ; then 4956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4958 fi 4959 4960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4962 fi 4963 4964 CFLAGS="$CFLAGS -Wall" 4965 4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4967 $as_echo_n "checking if $CC supports -Wall... " >&6; } 4968 cacheid=xorg_cv_cc_flag__Wall 4969 if eval \${$cacheid+:} false; then : 4970 $as_echo_n "(cached) " >&6 4971 else 4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4973 /* end confdefs.h. */ 4974 int i; 4975 int 4976 main () 4977 { 4978 4979 ; 4980 return 0; 4981 } 4982 _ACEOF 4983 if ac_fn_c_try_link "$LINENO"; then : 4984 eval $cacheid=yes 4985 else 4986 eval $cacheid=no 4987 fi 4988 rm -f core conftest.err conftest.$ac_objext \ 4989 conftest$ac_exeext conftest.$ac_ext 4990 fi 4991 4992 4993 CFLAGS="$xorg_testset_save_CFLAGS" 4994 4995 eval supported=\$$cacheid 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4997 $as_echo "$supported" >&6; } 4998 if test "$supported" = "yes" ; then 4999 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5000 found="yes" 5001 fi 5002 fi 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 xorg_testset_save_CFLAGS="$CFLAGS" 5019 5020 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5023 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5024 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5025 $as_echo_n "(cached) " >&6 5026 else 5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5028 /* end confdefs.h. */ 5029 int i; 5030 _ACEOF 5031 if ac_fn_c_try_compile "$LINENO"; then : 5032 xorg_cv_cc_flag_unknown_warning_option=yes 5033 else 5034 xorg_cv_cc_flag_unknown_warning_option=no 5035 fi 5036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5037 fi 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5039 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5041 CFLAGS="$xorg_testset_save_CFLAGS" 5042 fi 5043 5044 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5047 fi 5048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5050 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5051 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5052 $as_echo_n "(cached) " >&6 5053 else 5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5055 /* end confdefs.h. */ 5056 int i; 5057 _ACEOF 5058 if ac_fn_c_try_compile "$LINENO"; then : 5059 xorg_cv_cc_flag_unused_command_line_argument=yes 5060 else 5061 xorg_cv_cc_flag_unused_command_line_argument=no 5062 fi 5063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5064 fi 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5066 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5068 CFLAGS="$xorg_testset_save_CFLAGS" 5069 fi 5070 5071 found="no" 5072 5073 if test $found = "no" ; then 5074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5076 fi 5077 5078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5080 fi 5081 5082 CFLAGS="$CFLAGS -Wpointer-arith" 5083 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5085 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5086 cacheid=xorg_cv_cc_flag__Wpointer_arith 5087 if eval \${$cacheid+:} false; then : 5088 $as_echo_n "(cached) " >&6 5089 else 5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5091 /* end confdefs.h. */ 5092 int i; 5093 int 5094 main () 5095 { 5096 5097 ; 5098 return 0; 5099 } 5100 _ACEOF 5101 if ac_fn_c_try_link "$LINENO"; then : 5102 eval $cacheid=yes 5103 else 5104 eval $cacheid=no 5105 fi 5106 rm -f core conftest.err conftest.$ac_objext \ 5107 conftest$ac_exeext conftest.$ac_ext 5108 fi 5109 5110 5111 CFLAGS="$xorg_testset_save_CFLAGS" 5112 5113 eval supported=\$$cacheid 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5115 $as_echo "$supported" >&6; } 5116 if test "$supported" = "yes" ; then 5117 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5118 found="yes" 5119 fi 5120 fi 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 xorg_testset_save_CFLAGS="$CFLAGS" 5137 5138 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5141 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5142 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5143 $as_echo_n "(cached) " >&6 5144 else 5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5146 /* end confdefs.h. */ 5147 int i; 5148 _ACEOF 5149 if ac_fn_c_try_compile "$LINENO"; then : 5150 xorg_cv_cc_flag_unknown_warning_option=yes 5151 else 5152 xorg_cv_cc_flag_unknown_warning_option=no 5153 fi 5154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5155 fi 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5157 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5159 CFLAGS="$xorg_testset_save_CFLAGS" 5160 fi 5161 5162 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5165 fi 5166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5168 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5169 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5170 $as_echo_n "(cached) " >&6 5171 else 5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5173 /* end confdefs.h. */ 5174 int i; 5175 _ACEOF 5176 if ac_fn_c_try_compile "$LINENO"; then : 5177 xorg_cv_cc_flag_unused_command_line_argument=yes 5178 else 5179 xorg_cv_cc_flag_unused_command_line_argument=no 5180 fi 5181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5182 fi 5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5184 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5186 CFLAGS="$xorg_testset_save_CFLAGS" 5187 fi 5188 5189 found="no" 5190 5191 if test $found = "no" ; then 5192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5194 fi 5195 5196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5198 fi 5199 5200 CFLAGS="$CFLAGS -Wmissing-declarations" 5201 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5203 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5204 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5205 if eval \${$cacheid+:} false; then : 5206 $as_echo_n "(cached) " >&6 5207 else 5208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5209 /* end confdefs.h. */ 5210 int i; 5211 int 5212 main () 5213 { 5214 5215 ; 5216 return 0; 5217 } 5218 _ACEOF 5219 if ac_fn_c_try_link "$LINENO"; then : 5220 eval $cacheid=yes 5221 else 5222 eval $cacheid=no 5223 fi 5224 rm -f core conftest.err conftest.$ac_objext \ 5225 conftest$ac_exeext conftest.$ac_ext 5226 fi 5227 5228 5229 CFLAGS="$xorg_testset_save_CFLAGS" 5230 5231 eval supported=\$$cacheid 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5233 $as_echo "$supported" >&6; } 5234 if test "$supported" = "yes" ; then 5235 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5236 found="yes" 5237 fi 5238 fi 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 xorg_testset_save_CFLAGS="$CFLAGS" 5255 5256 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5259 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5260 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5261 $as_echo_n "(cached) " >&6 5262 else 5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5264 /* end confdefs.h. */ 5265 int i; 5266 _ACEOF 5267 if ac_fn_c_try_compile "$LINENO"; then : 5268 xorg_cv_cc_flag_unknown_warning_option=yes 5269 else 5270 xorg_cv_cc_flag_unknown_warning_option=no 5271 fi 5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5273 fi 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5275 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5277 CFLAGS="$xorg_testset_save_CFLAGS" 5278 fi 5279 5280 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5283 fi 5284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5286 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5287 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5288 $as_echo_n "(cached) " >&6 5289 else 5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5291 /* end confdefs.h. */ 5292 int i; 5293 _ACEOF 5294 if ac_fn_c_try_compile "$LINENO"; then : 5295 xorg_cv_cc_flag_unused_command_line_argument=yes 5296 else 5297 xorg_cv_cc_flag_unused_command_line_argument=no 5298 fi 5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5300 fi 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5302 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5304 CFLAGS="$xorg_testset_save_CFLAGS" 5305 fi 5306 5307 found="no" 5308 5309 if test $found = "no" ; then 5310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5312 fi 5313 5314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5316 fi 5317 5318 CFLAGS="$CFLAGS -Wformat=2" 5319 5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5321 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5322 cacheid=xorg_cv_cc_flag__Wformat_2 5323 if eval \${$cacheid+:} false; then : 5324 $as_echo_n "(cached) " >&6 5325 else 5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5327 /* end confdefs.h. */ 5328 int i; 5329 int 5330 main () 5331 { 5332 5333 ; 5334 return 0; 5335 } 5336 _ACEOF 5337 if ac_fn_c_try_link "$LINENO"; then : 5338 eval $cacheid=yes 5339 else 5340 eval $cacheid=no 5341 fi 5342 rm -f core conftest.err conftest.$ac_objext \ 5343 conftest$ac_exeext conftest.$ac_ext 5344 fi 5345 5346 5347 CFLAGS="$xorg_testset_save_CFLAGS" 5348 5349 eval supported=\$$cacheid 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5351 $as_echo "$supported" >&6; } 5352 if test "$supported" = "yes" ; then 5353 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5354 found="yes" 5355 fi 5356 fi 5357 5358 if test $found = "no" ; then 5359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5361 fi 5362 5363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5365 fi 5366 5367 CFLAGS="$CFLAGS -Wformat" 5368 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5370 $as_echo_n "checking if $CC supports -Wformat... " >&6; } 5371 cacheid=xorg_cv_cc_flag__Wformat 5372 if eval \${$cacheid+:} false; then : 5373 $as_echo_n "(cached) " >&6 5374 else 5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5376 /* end confdefs.h. */ 5377 int i; 5378 int 5379 main () 5380 { 5381 5382 ; 5383 return 0; 5384 } 5385 _ACEOF 5386 if ac_fn_c_try_link "$LINENO"; then : 5387 eval $cacheid=yes 5388 else 5389 eval $cacheid=no 5390 fi 5391 rm -f core conftest.err conftest.$ac_objext \ 5392 conftest$ac_exeext conftest.$ac_ext 5393 fi 5394 5395 5396 CFLAGS="$xorg_testset_save_CFLAGS" 5397 5398 eval supported=\$$cacheid 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5400 $as_echo "$supported" >&6; } 5401 if test "$supported" = "yes" ; then 5402 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5403 found="yes" 5404 fi 5405 fi 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 xorg_testset_save_CFLAGS="$CFLAGS" 5424 5425 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5428 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5429 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5430 $as_echo_n "(cached) " >&6 5431 else 5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5433 /* end confdefs.h. */ 5434 int i; 5435 _ACEOF 5436 if ac_fn_c_try_compile "$LINENO"; then : 5437 xorg_cv_cc_flag_unknown_warning_option=yes 5438 else 5439 xorg_cv_cc_flag_unknown_warning_option=no 5440 fi 5441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5442 fi 5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5444 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5446 CFLAGS="$xorg_testset_save_CFLAGS" 5447 fi 5448 5449 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5452 fi 5453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5455 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5456 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5457 $as_echo_n "(cached) " >&6 5458 else 5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5460 /* end confdefs.h. */ 5461 int i; 5462 _ACEOF 5463 if ac_fn_c_try_compile "$LINENO"; then : 5464 xorg_cv_cc_flag_unused_command_line_argument=yes 5465 else 5466 xorg_cv_cc_flag_unused_command_line_argument=no 5467 fi 5468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5469 fi 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5471 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5473 CFLAGS="$xorg_testset_save_CFLAGS" 5474 fi 5475 5476 found="no" 5477 5478 if test $found = "no" ; then 5479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5481 fi 5482 5483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5485 fi 5486 5487 CFLAGS="$CFLAGS -Wstrict-prototypes" 5488 5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5490 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5491 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5492 if eval \${$cacheid+:} false; then : 5493 $as_echo_n "(cached) " >&6 5494 else 5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5496 /* end confdefs.h. */ 5497 int i; 5498 int 5499 main () 5500 { 5501 5502 ; 5503 return 0; 5504 } 5505 _ACEOF 5506 if ac_fn_c_try_link "$LINENO"; then : 5507 eval $cacheid=yes 5508 else 5509 eval $cacheid=no 5510 fi 5511 rm -f core conftest.err conftest.$ac_objext \ 5512 conftest$ac_exeext conftest.$ac_ext 5513 fi 5514 5515 5516 CFLAGS="$xorg_testset_save_CFLAGS" 5517 5518 eval supported=\$$cacheid 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5520 $as_echo "$supported" >&6; } 5521 if test "$supported" = "yes" ; then 5522 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5523 found="yes" 5524 fi 5525 fi 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 xorg_testset_save_CFLAGS="$CFLAGS" 5542 5543 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5546 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5547 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5548 $as_echo_n "(cached) " >&6 5549 else 5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5551 /* end confdefs.h. */ 5552 int i; 5553 _ACEOF 5554 if ac_fn_c_try_compile "$LINENO"; then : 5555 xorg_cv_cc_flag_unknown_warning_option=yes 5556 else 5557 xorg_cv_cc_flag_unknown_warning_option=no 5558 fi 5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5560 fi 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5562 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5564 CFLAGS="$xorg_testset_save_CFLAGS" 5565 fi 5566 5567 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5570 fi 5571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5573 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5574 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5575 $as_echo_n "(cached) " >&6 5576 else 5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5578 /* end confdefs.h. */ 5579 int i; 5580 _ACEOF 5581 if ac_fn_c_try_compile "$LINENO"; then : 5582 xorg_cv_cc_flag_unused_command_line_argument=yes 5583 else 5584 xorg_cv_cc_flag_unused_command_line_argument=no 5585 fi 5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5587 fi 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5589 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5591 CFLAGS="$xorg_testset_save_CFLAGS" 5592 fi 5593 5594 found="no" 5595 5596 if test $found = "no" ; then 5597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5599 fi 5600 5601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5603 fi 5604 5605 CFLAGS="$CFLAGS -Wmissing-prototypes" 5606 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5608 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5609 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5610 if eval \${$cacheid+:} false; then : 5611 $as_echo_n "(cached) " >&6 5612 else 5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5614 /* end confdefs.h. */ 5615 int i; 5616 int 5617 main () 5618 { 5619 5620 ; 5621 return 0; 5622 } 5623 _ACEOF 5624 if ac_fn_c_try_link "$LINENO"; then : 5625 eval $cacheid=yes 5626 else 5627 eval $cacheid=no 5628 fi 5629 rm -f core conftest.err conftest.$ac_objext \ 5630 conftest$ac_exeext conftest.$ac_ext 5631 fi 5632 5633 5634 CFLAGS="$xorg_testset_save_CFLAGS" 5635 5636 eval supported=\$$cacheid 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5638 $as_echo "$supported" >&6; } 5639 if test "$supported" = "yes" ; then 5640 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5641 found="yes" 5642 fi 5643 fi 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 xorg_testset_save_CFLAGS="$CFLAGS" 5660 5661 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5664 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5665 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5666 $as_echo_n "(cached) " >&6 5667 else 5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5669 /* end confdefs.h. */ 5670 int i; 5671 _ACEOF 5672 if ac_fn_c_try_compile "$LINENO"; then : 5673 xorg_cv_cc_flag_unknown_warning_option=yes 5674 else 5675 xorg_cv_cc_flag_unknown_warning_option=no 5676 fi 5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5678 fi 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5680 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5682 CFLAGS="$xorg_testset_save_CFLAGS" 5683 fi 5684 5685 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5688 fi 5689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5691 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5692 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5693 $as_echo_n "(cached) " >&6 5694 else 5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5696 /* end confdefs.h. */ 5697 int i; 5698 _ACEOF 5699 if ac_fn_c_try_compile "$LINENO"; then : 5700 xorg_cv_cc_flag_unused_command_line_argument=yes 5701 else 5702 xorg_cv_cc_flag_unused_command_line_argument=no 5703 fi 5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5705 fi 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5707 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5709 CFLAGS="$xorg_testset_save_CFLAGS" 5710 fi 5711 5712 found="no" 5713 5714 if test $found = "no" ; then 5715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5717 fi 5718 5719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5721 fi 5722 5723 CFLAGS="$CFLAGS -Wnested-externs" 5724 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5726 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5727 cacheid=xorg_cv_cc_flag__Wnested_externs 5728 if eval \${$cacheid+:} false; then : 5729 $as_echo_n "(cached) " >&6 5730 else 5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5732 /* end confdefs.h. */ 5733 int i; 5734 int 5735 main () 5736 { 5737 5738 ; 5739 return 0; 5740 } 5741 _ACEOF 5742 if ac_fn_c_try_link "$LINENO"; then : 5743 eval $cacheid=yes 5744 else 5745 eval $cacheid=no 5746 fi 5747 rm -f core conftest.err conftest.$ac_objext \ 5748 conftest$ac_exeext conftest.$ac_ext 5749 fi 5750 5751 5752 CFLAGS="$xorg_testset_save_CFLAGS" 5753 5754 eval supported=\$$cacheid 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5756 $as_echo "$supported" >&6; } 5757 if test "$supported" = "yes" ; then 5758 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5759 found="yes" 5760 fi 5761 fi 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 xorg_testset_save_CFLAGS="$CFLAGS" 5778 5779 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5782 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5783 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5784 $as_echo_n "(cached) " >&6 5785 else 5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5787 /* end confdefs.h. */ 5788 int i; 5789 _ACEOF 5790 if ac_fn_c_try_compile "$LINENO"; then : 5791 xorg_cv_cc_flag_unknown_warning_option=yes 5792 else 5793 xorg_cv_cc_flag_unknown_warning_option=no 5794 fi 5795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5796 fi 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5798 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5800 CFLAGS="$xorg_testset_save_CFLAGS" 5801 fi 5802 5803 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5806 fi 5807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5809 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5810 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5811 $as_echo_n "(cached) " >&6 5812 else 5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5814 /* end confdefs.h. */ 5815 int i; 5816 _ACEOF 5817 if ac_fn_c_try_compile "$LINENO"; then : 5818 xorg_cv_cc_flag_unused_command_line_argument=yes 5819 else 5820 xorg_cv_cc_flag_unused_command_line_argument=no 5821 fi 5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5823 fi 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5825 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5827 CFLAGS="$xorg_testset_save_CFLAGS" 5828 fi 5829 5830 found="no" 5831 5832 if test $found = "no" ; then 5833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5835 fi 5836 5837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5839 fi 5840 5841 CFLAGS="$CFLAGS -Wbad-function-cast" 5842 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5844 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5845 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5846 if eval \${$cacheid+:} false; then : 5847 $as_echo_n "(cached) " >&6 5848 else 5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5850 /* end confdefs.h. */ 5851 int i; 5852 int 5853 main () 5854 { 5855 5856 ; 5857 return 0; 5858 } 5859 _ACEOF 5860 if ac_fn_c_try_link "$LINENO"; then : 5861 eval $cacheid=yes 5862 else 5863 eval $cacheid=no 5864 fi 5865 rm -f core conftest.err conftest.$ac_objext \ 5866 conftest$ac_exeext conftest.$ac_ext 5867 fi 5868 5869 5870 CFLAGS="$xorg_testset_save_CFLAGS" 5871 5872 eval supported=\$$cacheid 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5874 $as_echo "$supported" >&6; } 5875 if test "$supported" = "yes" ; then 5876 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5877 found="yes" 5878 fi 5879 fi 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 xorg_testset_save_CFLAGS="$CFLAGS" 5896 5897 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5900 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5901 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5902 $as_echo_n "(cached) " >&6 5903 else 5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5905 /* end confdefs.h. */ 5906 int i; 5907 _ACEOF 5908 if ac_fn_c_try_compile "$LINENO"; then : 5909 xorg_cv_cc_flag_unknown_warning_option=yes 5910 else 5911 xorg_cv_cc_flag_unknown_warning_option=no 5912 fi 5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5914 fi 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5916 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5918 CFLAGS="$xorg_testset_save_CFLAGS" 5919 fi 5920 5921 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5924 fi 5925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5927 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5928 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5929 $as_echo_n "(cached) " >&6 5930 else 5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5932 /* end confdefs.h. */ 5933 int i; 5934 _ACEOF 5935 if ac_fn_c_try_compile "$LINENO"; then : 5936 xorg_cv_cc_flag_unused_command_line_argument=yes 5937 else 5938 xorg_cv_cc_flag_unused_command_line_argument=no 5939 fi 5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5941 fi 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5943 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5945 CFLAGS="$xorg_testset_save_CFLAGS" 5946 fi 5947 5948 found="no" 5949 5950 if test $found = "no" ; then 5951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5953 fi 5954 5955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5957 fi 5958 5959 CFLAGS="$CFLAGS -Wold-style-definition" 5960 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5962 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5963 cacheid=xorg_cv_cc_flag__Wold_style_definition 5964 if eval \${$cacheid+:} false; then : 5965 $as_echo_n "(cached) " >&6 5966 else 5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5968 /* end confdefs.h. */ 5969 int i; 5970 int 5971 main () 5972 { 5973 5974 ; 5975 return 0; 5976 } 5977 _ACEOF 5978 if ac_fn_c_try_link "$LINENO"; then : 5979 eval $cacheid=yes 5980 else 5981 eval $cacheid=no 5982 fi 5983 rm -f core conftest.err conftest.$ac_objext \ 5984 conftest$ac_exeext conftest.$ac_ext 5985 fi 5986 5987 5988 CFLAGS="$xorg_testset_save_CFLAGS" 5989 5990 eval supported=\$$cacheid 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5992 $as_echo "$supported" >&6; } 5993 if test "$supported" = "yes" ; then 5994 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5995 found="yes" 5996 fi 5997 fi 5998 5999 if test $found = "no" ; then 6000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6002 fi 6003 6004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6006 fi 6007 6008 CFLAGS="$CFLAGS -fd" 6009 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6011 $as_echo_n "checking if $CC supports -fd... " >&6; } 6012 cacheid=xorg_cv_cc_flag__fd 6013 if eval \${$cacheid+:} false; then : 6014 $as_echo_n "(cached) " >&6 6015 else 6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6017 /* end confdefs.h. */ 6018 int i; 6019 int 6020 main () 6021 { 6022 6023 ; 6024 return 0; 6025 } 6026 _ACEOF 6027 if ac_fn_c_try_link "$LINENO"; then : 6028 eval $cacheid=yes 6029 else 6030 eval $cacheid=no 6031 fi 6032 rm -f core conftest.err conftest.$ac_objext \ 6033 conftest$ac_exeext conftest.$ac_ext 6034 fi 6035 6036 6037 CFLAGS="$xorg_testset_save_CFLAGS" 6038 6039 eval supported=\$$cacheid 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6041 $as_echo "$supported" >&6; } 6042 if test "$supported" = "yes" ; then 6043 BASE_CFLAGS="$BASE_CFLAGS -fd" 6044 found="yes" 6045 fi 6046 fi 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 xorg_testset_save_CFLAGS="$CFLAGS" 6063 6064 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6067 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6068 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6069 $as_echo_n "(cached) " >&6 6070 else 6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6072 /* end confdefs.h. */ 6073 int i; 6074 _ACEOF 6075 if ac_fn_c_try_compile "$LINENO"; then : 6076 xorg_cv_cc_flag_unknown_warning_option=yes 6077 else 6078 xorg_cv_cc_flag_unknown_warning_option=no 6079 fi 6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6081 fi 6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6083 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6085 CFLAGS="$xorg_testset_save_CFLAGS" 6086 fi 6087 6088 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6091 fi 6092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6094 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6095 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6096 $as_echo_n "(cached) " >&6 6097 else 6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6099 /* end confdefs.h. */ 6100 int i; 6101 _ACEOF 6102 if ac_fn_c_try_compile "$LINENO"; then : 6103 xorg_cv_cc_flag_unused_command_line_argument=yes 6104 else 6105 xorg_cv_cc_flag_unused_command_line_argument=no 6106 fi 6107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6108 fi 6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6110 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6112 CFLAGS="$xorg_testset_save_CFLAGS" 6113 fi 6114 6115 found="no" 6116 6117 if test $found = "no" ; then 6118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6120 fi 6121 6122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6124 fi 6125 6126 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6127 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6129 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6130 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6131 if eval \${$cacheid+:} false; then : 6132 $as_echo_n "(cached) " >&6 6133 else 6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6135 /* end confdefs.h. */ 6136 int i; 6137 int 6138 main () 6139 { 6140 6141 ; 6142 return 0; 6143 } 6144 _ACEOF 6145 if ac_fn_c_try_link "$LINENO"; then : 6146 eval $cacheid=yes 6147 else 6148 eval $cacheid=no 6149 fi 6150 rm -f core conftest.err conftest.$ac_objext \ 6151 conftest$ac_exeext conftest.$ac_ext 6152 fi 6153 6154 6155 CFLAGS="$xorg_testset_save_CFLAGS" 6156 6157 eval supported=\$$cacheid 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6159 $as_echo "$supported" >&6; } 6160 if test "$supported" = "yes" ; then 6161 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6162 found="yes" 6163 fi 6164 fi 6165 6166 6167 6168 6169 6170 # This chunk adds additional warnings that could catch undesired effects. 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 xorg_testset_save_CFLAGS="$CFLAGS" 6185 6186 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6189 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6190 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6191 $as_echo_n "(cached) " >&6 6192 else 6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6194 /* end confdefs.h. */ 6195 int i; 6196 _ACEOF 6197 if ac_fn_c_try_compile "$LINENO"; then : 6198 xorg_cv_cc_flag_unknown_warning_option=yes 6199 else 6200 xorg_cv_cc_flag_unknown_warning_option=no 6201 fi 6202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6203 fi 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6205 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6207 CFLAGS="$xorg_testset_save_CFLAGS" 6208 fi 6209 6210 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6213 fi 6214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6216 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6217 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6218 $as_echo_n "(cached) " >&6 6219 else 6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6221 /* end confdefs.h. */ 6222 int i; 6223 _ACEOF 6224 if ac_fn_c_try_compile "$LINENO"; then : 6225 xorg_cv_cc_flag_unused_command_line_argument=yes 6226 else 6227 xorg_cv_cc_flag_unused_command_line_argument=no 6228 fi 6229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6230 fi 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6232 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6234 CFLAGS="$xorg_testset_save_CFLAGS" 6235 fi 6236 6237 found="no" 6238 6239 if test $found = "no" ; then 6240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6242 fi 6243 6244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6246 fi 6247 6248 CFLAGS="$CFLAGS -Wunused" 6249 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6251 $as_echo_n "checking if $CC supports -Wunused... " >&6; } 6252 cacheid=xorg_cv_cc_flag__Wunused 6253 if eval \${$cacheid+:} false; then : 6254 $as_echo_n "(cached) " >&6 6255 else 6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6257 /* end confdefs.h. */ 6258 int i; 6259 int 6260 main () 6261 { 6262 6263 ; 6264 return 0; 6265 } 6266 _ACEOF 6267 if ac_fn_c_try_link "$LINENO"; then : 6268 eval $cacheid=yes 6269 else 6270 eval $cacheid=no 6271 fi 6272 rm -f core conftest.err conftest.$ac_objext \ 6273 conftest$ac_exeext conftest.$ac_ext 6274 fi 6275 6276 6277 CFLAGS="$xorg_testset_save_CFLAGS" 6278 6279 eval supported=\$$cacheid 6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6281 $as_echo "$supported" >&6; } 6282 if test "$supported" = "yes" ; then 6283 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6284 found="yes" 6285 fi 6286 fi 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 xorg_testset_save_CFLAGS="$CFLAGS" 6303 6304 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6307 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6308 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6309 $as_echo_n "(cached) " >&6 6310 else 6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6312 /* end confdefs.h. */ 6313 int i; 6314 _ACEOF 6315 if ac_fn_c_try_compile "$LINENO"; then : 6316 xorg_cv_cc_flag_unknown_warning_option=yes 6317 else 6318 xorg_cv_cc_flag_unknown_warning_option=no 6319 fi 6320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6321 fi 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6323 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6325 CFLAGS="$xorg_testset_save_CFLAGS" 6326 fi 6327 6328 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6331 fi 6332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6334 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6335 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6336 $as_echo_n "(cached) " >&6 6337 else 6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6339 /* end confdefs.h. */ 6340 int i; 6341 _ACEOF 6342 if ac_fn_c_try_compile "$LINENO"; then : 6343 xorg_cv_cc_flag_unused_command_line_argument=yes 6344 else 6345 xorg_cv_cc_flag_unused_command_line_argument=no 6346 fi 6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6348 fi 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6350 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6352 CFLAGS="$xorg_testset_save_CFLAGS" 6353 fi 6354 6355 found="no" 6356 6357 if test $found = "no" ; then 6358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6360 fi 6361 6362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6364 fi 6365 6366 CFLAGS="$CFLAGS -Wuninitialized" 6367 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6369 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6370 cacheid=xorg_cv_cc_flag__Wuninitialized 6371 if eval \${$cacheid+:} false; then : 6372 $as_echo_n "(cached) " >&6 6373 else 6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6375 /* end confdefs.h. */ 6376 int i; 6377 int 6378 main () 6379 { 6380 6381 ; 6382 return 0; 6383 } 6384 _ACEOF 6385 if ac_fn_c_try_link "$LINENO"; then : 6386 eval $cacheid=yes 6387 else 6388 eval $cacheid=no 6389 fi 6390 rm -f core conftest.err conftest.$ac_objext \ 6391 conftest$ac_exeext conftest.$ac_ext 6392 fi 6393 6394 6395 CFLAGS="$xorg_testset_save_CFLAGS" 6396 6397 eval supported=\$$cacheid 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6399 $as_echo "$supported" >&6; } 6400 if test "$supported" = "yes" ; then 6401 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6402 found="yes" 6403 fi 6404 fi 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 xorg_testset_save_CFLAGS="$CFLAGS" 6421 6422 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6425 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6426 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6427 $as_echo_n "(cached) " >&6 6428 else 6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6430 /* end confdefs.h. */ 6431 int i; 6432 _ACEOF 6433 if ac_fn_c_try_compile "$LINENO"; then : 6434 xorg_cv_cc_flag_unknown_warning_option=yes 6435 else 6436 xorg_cv_cc_flag_unknown_warning_option=no 6437 fi 6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6439 fi 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6441 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6443 CFLAGS="$xorg_testset_save_CFLAGS" 6444 fi 6445 6446 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6449 fi 6450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6452 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6453 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6454 $as_echo_n "(cached) " >&6 6455 else 6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6457 /* end confdefs.h. */ 6458 int i; 6459 _ACEOF 6460 if ac_fn_c_try_compile "$LINENO"; then : 6461 xorg_cv_cc_flag_unused_command_line_argument=yes 6462 else 6463 xorg_cv_cc_flag_unused_command_line_argument=no 6464 fi 6465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6466 fi 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6468 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6469 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6470 CFLAGS="$xorg_testset_save_CFLAGS" 6471 fi 6472 6473 found="no" 6474 6475 if test $found = "no" ; then 6476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6478 fi 6479 6480 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6482 fi 6483 6484 CFLAGS="$CFLAGS -Wshadow" 6485 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6487 $as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6488 cacheid=xorg_cv_cc_flag__Wshadow 6489 if eval \${$cacheid+:} false; then : 6490 $as_echo_n "(cached) " >&6 6491 else 6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6493 /* end confdefs.h. */ 6494 int i; 6495 int 6496 main () 6497 { 6498 6499 ; 6500 return 0; 6501 } 6502 _ACEOF 6503 if ac_fn_c_try_link "$LINENO"; then : 6504 eval $cacheid=yes 6505 else 6506 eval $cacheid=no 6507 fi 6508 rm -f core conftest.err conftest.$ac_objext \ 6509 conftest$ac_exeext conftest.$ac_ext 6510 fi 6511 6512 6513 CFLAGS="$xorg_testset_save_CFLAGS" 6514 6515 eval supported=\$$cacheid 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6517 $as_echo "$supported" >&6; } 6518 if test "$supported" = "yes" ; then 6519 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6520 found="yes" 6521 fi 6522 fi 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 xorg_testset_save_CFLAGS="$CFLAGS" 6539 6540 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6543 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6544 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6545 $as_echo_n "(cached) " >&6 6546 else 6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6548 /* end confdefs.h. */ 6549 int i; 6550 _ACEOF 6551 if ac_fn_c_try_compile "$LINENO"; then : 6552 xorg_cv_cc_flag_unknown_warning_option=yes 6553 else 6554 xorg_cv_cc_flag_unknown_warning_option=no 6555 fi 6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6557 fi 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6559 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6560 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6561 CFLAGS="$xorg_testset_save_CFLAGS" 6562 fi 6563 6564 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6567 fi 6568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6570 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6571 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6572 $as_echo_n "(cached) " >&6 6573 else 6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6575 /* end confdefs.h. */ 6576 int i; 6577 _ACEOF 6578 if ac_fn_c_try_compile "$LINENO"; then : 6579 xorg_cv_cc_flag_unused_command_line_argument=yes 6580 else 6581 xorg_cv_cc_flag_unused_command_line_argument=no 6582 fi 6583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6584 fi 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6586 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6587 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6588 CFLAGS="$xorg_testset_save_CFLAGS" 6589 fi 6590 6591 found="no" 6592 6593 if test $found = "no" ; then 6594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6596 fi 6597 6598 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6600 fi 6601 6602 CFLAGS="$CFLAGS -Wmissing-noreturn" 6603 6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6605 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6606 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6607 if eval \${$cacheid+:} false; then : 6608 $as_echo_n "(cached) " >&6 6609 else 6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6611 /* end confdefs.h. */ 6612 int i; 6613 int 6614 main () 6615 { 6616 6617 ; 6618 return 0; 6619 } 6620 _ACEOF 6621 if ac_fn_c_try_link "$LINENO"; then : 6622 eval $cacheid=yes 6623 else 6624 eval $cacheid=no 6625 fi 6626 rm -f core conftest.err conftest.$ac_objext \ 6627 conftest$ac_exeext conftest.$ac_ext 6628 fi 6629 6630 6631 CFLAGS="$xorg_testset_save_CFLAGS" 6632 6633 eval supported=\$$cacheid 6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6635 $as_echo "$supported" >&6; } 6636 if test "$supported" = "yes" ; then 6637 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6638 found="yes" 6639 fi 6640 fi 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 xorg_testset_save_CFLAGS="$CFLAGS" 6657 6658 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6661 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6662 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6663 $as_echo_n "(cached) " >&6 6664 else 6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6666 /* end confdefs.h. */ 6667 int i; 6668 _ACEOF 6669 if ac_fn_c_try_compile "$LINENO"; then : 6670 xorg_cv_cc_flag_unknown_warning_option=yes 6671 else 6672 xorg_cv_cc_flag_unknown_warning_option=no 6673 fi 6674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6675 fi 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6677 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6678 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6679 CFLAGS="$xorg_testset_save_CFLAGS" 6680 fi 6681 6682 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6685 fi 6686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6688 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6689 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6690 $as_echo_n "(cached) " >&6 6691 else 6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6693 /* end confdefs.h. */ 6694 int i; 6695 _ACEOF 6696 if ac_fn_c_try_compile "$LINENO"; then : 6697 xorg_cv_cc_flag_unused_command_line_argument=yes 6698 else 6699 xorg_cv_cc_flag_unused_command_line_argument=no 6700 fi 6701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6702 fi 6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6704 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6705 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6706 CFLAGS="$xorg_testset_save_CFLAGS" 6707 fi 6708 6709 found="no" 6710 6711 if test $found = "no" ; then 6712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6714 fi 6715 6716 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6718 fi 6719 6720 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6721 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6723 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6724 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6725 if eval \${$cacheid+:} false; then : 6726 $as_echo_n "(cached) " >&6 6727 else 6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6729 /* end confdefs.h. */ 6730 int i; 6731 int 6732 main () 6733 { 6734 6735 ; 6736 return 0; 6737 } 6738 _ACEOF 6739 if ac_fn_c_try_link "$LINENO"; then : 6740 eval $cacheid=yes 6741 else 6742 eval $cacheid=no 6743 fi 6744 rm -f core conftest.err conftest.$ac_objext \ 6745 conftest$ac_exeext conftest.$ac_ext 6746 fi 6747 6748 6749 CFLAGS="$xorg_testset_save_CFLAGS" 6750 6751 eval supported=\$$cacheid 6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6753 $as_echo "$supported" >&6; } 6754 if test "$supported" = "yes" ; then 6755 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6756 found="yes" 6757 fi 6758 fi 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 xorg_testset_save_CFLAGS="$CFLAGS" 6775 6776 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6779 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6780 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6781 $as_echo_n "(cached) " >&6 6782 else 6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6784 /* end confdefs.h. */ 6785 int i; 6786 _ACEOF 6787 if ac_fn_c_try_compile "$LINENO"; then : 6788 xorg_cv_cc_flag_unknown_warning_option=yes 6789 else 6790 xorg_cv_cc_flag_unknown_warning_option=no 6791 fi 6792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6793 fi 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6795 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6797 CFLAGS="$xorg_testset_save_CFLAGS" 6798 fi 6799 6800 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6803 fi 6804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6806 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6807 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6808 $as_echo_n "(cached) " >&6 6809 else 6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6811 /* end confdefs.h. */ 6812 int i; 6813 _ACEOF 6814 if ac_fn_c_try_compile "$LINENO"; then : 6815 xorg_cv_cc_flag_unused_command_line_argument=yes 6816 else 6817 xorg_cv_cc_flag_unused_command_line_argument=no 6818 fi 6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6820 fi 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6822 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6823 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6824 CFLAGS="$xorg_testset_save_CFLAGS" 6825 fi 6826 6827 found="no" 6828 6829 if test $found = "no" ; then 6830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6832 fi 6833 6834 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6836 fi 6837 6838 CFLAGS="$CFLAGS -Wredundant-decls" 6839 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6841 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6842 cacheid=xorg_cv_cc_flag__Wredundant_decls 6843 if eval \${$cacheid+:} false; then : 6844 $as_echo_n "(cached) " >&6 6845 else 6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6847 /* end confdefs.h. */ 6848 int i; 6849 int 6850 main () 6851 { 6852 6853 ; 6854 return 0; 6855 } 6856 _ACEOF 6857 if ac_fn_c_try_link "$LINENO"; then : 6858 eval $cacheid=yes 6859 else 6860 eval $cacheid=no 6861 fi 6862 rm -f core conftest.err conftest.$ac_objext \ 6863 conftest$ac_exeext conftest.$ac_ext 6864 fi 6865 6866 6867 CFLAGS="$xorg_testset_save_CFLAGS" 6868 6869 eval supported=\$$cacheid 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6871 $as_echo "$supported" >&6; } 6872 if test "$supported" = "yes" ; then 6873 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6874 found="yes" 6875 fi 6876 fi 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 xorg_testset_save_CFLAGS="$CFLAGS" 6893 6894 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6897 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6898 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6899 $as_echo_n "(cached) " >&6 6900 else 6901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6902 /* end confdefs.h. */ 6903 int i; 6904 _ACEOF 6905 if ac_fn_c_try_compile "$LINENO"; then : 6906 xorg_cv_cc_flag_unknown_warning_option=yes 6907 else 6908 xorg_cv_cc_flag_unknown_warning_option=no 6909 fi 6910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6911 fi 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6913 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6915 CFLAGS="$xorg_testset_save_CFLAGS" 6916 fi 6917 6918 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6921 fi 6922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6924 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6925 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6926 $as_echo_n "(cached) " >&6 6927 else 6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6929 /* end confdefs.h. */ 6930 int i; 6931 _ACEOF 6932 if ac_fn_c_try_compile "$LINENO"; then : 6933 xorg_cv_cc_flag_unused_command_line_argument=yes 6934 else 6935 xorg_cv_cc_flag_unused_command_line_argument=no 6936 fi 6937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6938 fi 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6940 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6942 CFLAGS="$xorg_testset_save_CFLAGS" 6943 fi 6944 6945 found="no" 6946 6947 if test $found = "no" ; then 6948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6950 fi 6951 6952 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6954 fi 6955 6956 CFLAGS="$CFLAGS -Wlogical-op" 6957 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6959 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6960 cacheid=xorg_cv_cc_flag__Wlogical_op 6961 if eval \${$cacheid+:} false; then : 6962 $as_echo_n "(cached) " >&6 6963 else 6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6965 /* end confdefs.h. */ 6966 int i; 6967 int 6968 main () 6969 { 6970 6971 ; 6972 return 0; 6973 } 6974 _ACEOF 6975 if ac_fn_c_try_link "$LINENO"; then : 6976 eval $cacheid=yes 6977 else 6978 eval $cacheid=no 6979 fi 6980 rm -f core conftest.err conftest.$ac_objext \ 6981 conftest$ac_exeext conftest.$ac_ext 6982 fi 6983 6984 6985 CFLAGS="$xorg_testset_save_CFLAGS" 6986 6987 eval supported=\$$cacheid 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6989 $as_echo "$supported" >&6; } 6990 if test "$supported" = "yes" ; then 6991 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6992 found="yes" 6993 fi 6994 fi 6995 6996 6997 6998 # These are currently disabled because they are noisy. They will be enabled 6999 # in the future once the codebase is sufficiently modernized to silence 7000 # them. For now, I don't want them to drown out the other warnings. 7001 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7002 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7003 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7004 7005 # Turn some warnings into errors, so we don't accidently get successful builds 7006 # when there are problems that should be fixed. 7007 7008 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 xorg_testset_save_CFLAGS="$CFLAGS" 7023 7024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7027 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7028 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7029 $as_echo_n "(cached) " >&6 7030 else 7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7032 /* end confdefs.h. */ 7033 int i; 7034 _ACEOF 7035 if ac_fn_c_try_compile "$LINENO"; then : 7036 xorg_cv_cc_flag_unknown_warning_option=yes 7037 else 7038 xorg_cv_cc_flag_unknown_warning_option=no 7039 fi 7040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7041 fi 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7043 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7045 CFLAGS="$xorg_testset_save_CFLAGS" 7046 fi 7047 7048 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7051 fi 7052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7054 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7055 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7056 $as_echo_n "(cached) " >&6 7057 else 7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7059 /* end confdefs.h. */ 7060 int i; 7061 _ACEOF 7062 if ac_fn_c_try_compile "$LINENO"; then : 7063 xorg_cv_cc_flag_unused_command_line_argument=yes 7064 else 7065 xorg_cv_cc_flag_unused_command_line_argument=no 7066 fi 7067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7068 fi 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7070 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7072 CFLAGS="$xorg_testset_save_CFLAGS" 7073 fi 7074 7075 found="no" 7076 7077 if test $found = "no" ; then 7078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7080 fi 7081 7082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7084 fi 7085 7086 CFLAGS="$CFLAGS -Werror=implicit" 7087 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7089 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7090 cacheid=xorg_cv_cc_flag__Werror_implicit 7091 if eval \${$cacheid+:} false; then : 7092 $as_echo_n "(cached) " >&6 7093 else 7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7095 /* end confdefs.h. */ 7096 int i; 7097 int 7098 main () 7099 { 7100 7101 ; 7102 return 0; 7103 } 7104 _ACEOF 7105 if ac_fn_c_try_link "$LINENO"; then : 7106 eval $cacheid=yes 7107 else 7108 eval $cacheid=no 7109 fi 7110 rm -f core conftest.err conftest.$ac_objext \ 7111 conftest$ac_exeext conftest.$ac_ext 7112 fi 7113 7114 7115 CFLAGS="$xorg_testset_save_CFLAGS" 7116 7117 eval supported=\$$cacheid 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7119 $as_echo "$supported" >&6; } 7120 if test "$supported" = "yes" ; then 7121 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7122 found="yes" 7123 fi 7124 fi 7125 7126 if test $found = "no" ; then 7127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7129 fi 7130 7131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7133 fi 7134 7135 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7136 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7138 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7139 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7140 if eval \${$cacheid+:} false; then : 7141 $as_echo_n "(cached) " >&6 7142 else 7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7144 /* end confdefs.h. */ 7145 int i; 7146 int 7147 main () 7148 { 7149 7150 ; 7151 return 0; 7152 } 7153 _ACEOF 7154 if ac_fn_c_try_link "$LINENO"; then : 7155 eval $cacheid=yes 7156 else 7157 eval $cacheid=no 7158 fi 7159 rm -f core conftest.err conftest.$ac_objext \ 7160 conftest$ac_exeext conftest.$ac_ext 7161 fi 7162 7163 7164 CFLAGS="$xorg_testset_save_CFLAGS" 7165 7166 eval supported=\$$cacheid 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7168 $as_echo "$supported" >&6; } 7169 if test "$supported" = "yes" ; then 7170 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7171 found="yes" 7172 fi 7173 fi 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 xorg_testset_save_CFLAGS="$CFLAGS" 7190 7191 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7194 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7195 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7196 $as_echo_n "(cached) " >&6 7197 else 7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7199 /* end confdefs.h. */ 7200 int i; 7201 _ACEOF 7202 if ac_fn_c_try_compile "$LINENO"; then : 7203 xorg_cv_cc_flag_unknown_warning_option=yes 7204 else 7205 xorg_cv_cc_flag_unknown_warning_option=no 7206 fi 7207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7208 fi 7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7210 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7212 CFLAGS="$xorg_testset_save_CFLAGS" 7213 fi 7214 7215 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7218 fi 7219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7221 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7222 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7223 $as_echo_n "(cached) " >&6 7224 else 7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7226 /* end confdefs.h. */ 7227 int i; 7228 _ACEOF 7229 if ac_fn_c_try_compile "$LINENO"; then : 7230 xorg_cv_cc_flag_unused_command_line_argument=yes 7231 else 7232 xorg_cv_cc_flag_unused_command_line_argument=no 7233 fi 7234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7235 fi 7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7237 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7239 CFLAGS="$xorg_testset_save_CFLAGS" 7240 fi 7241 7242 found="no" 7243 7244 if test $found = "no" ; then 7245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7247 fi 7248 7249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7251 fi 7252 7253 CFLAGS="$CFLAGS -Werror=nonnull" 7254 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7256 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7257 cacheid=xorg_cv_cc_flag__Werror_nonnull 7258 if eval \${$cacheid+:} false; then : 7259 $as_echo_n "(cached) " >&6 7260 else 7261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7262 /* end confdefs.h. */ 7263 int i; 7264 int 7265 main () 7266 { 7267 7268 ; 7269 return 0; 7270 } 7271 _ACEOF 7272 if ac_fn_c_try_link "$LINENO"; then : 7273 eval $cacheid=yes 7274 else 7275 eval $cacheid=no 7276 fi 7277 rm -f core conftest.err conftest.$ac_objext \ 7278 conftest$ac_exeext conftest.$ac_ext 7279 fi 7280 7281 7282 CFLAGS="$xorg_testset_save_CFLAGS" 7283 7284 eval supported=\$$cacheid 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7286 $as_echo "$supported" >&6; } 7287 if test "$supported" = "yes" ; then 7288 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7289 found="yes" 7290 fi 7291 fi 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 xorg_testset_save_CFLAGS="$CFLAGS" 7308 7309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7312 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7313 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7314 $as_echo_n "(cached) " >&6 7315 else 7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7317 /* end confdefs.h. */ 7318 int i; 7319 _ACEOF 7320 if ac_fn_c_try_compile "$LINENO"; then : 7321 xorg_cv_cc_flag_unknown_warning_option=yes 7322 else 7323 xorg_cv_cc_flag_unknown_warning_option=no 7324 fi 7325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7326 fi 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7328 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7330 CFLAGS="$xorg_testset_save_CFLAGS" 7331 fi 7332 7333 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7336 fi 7337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7339 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7340 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7341 $as_echo_n "(cached) " >&6 7342 else 7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7344 /* end confdefs.h. */ 7345 int i; 7346 _ACEOF 7347 if ac_fn_c_try_compile "$LINENO"; then : 7348 xorg_cv_cc_flag_unused_command_line_argument=yes 7349 else 7350 xorg_cv_cc_flag_unused_command_line_argument=no 7351 fi 7352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7353 fi 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7355 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7357 CFLAGS="$xorg_testset_save_CFLAGS" 7358 fi 7359 7360 found="no" 7361 7362 if test $found = "no" ; then 7363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7365 fi 7366 7367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7369 fi 7370 7371 CFLAGS="$CFLAGS -Werror=init-self" 7372 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7374 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7375 cacheid=xorg_cv_cc_flag__Werror_init_self 7376 if eval \${$cacheid+:} false; then : 7377 $as_echo_n "(cached) " >&6 7378 else 7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7380 /* end confdefs.h. */ 7381 int i; 7382 int 7383 main () 7384 { 7385 7386 ; 7387 return 0; 7388 } 7389 _ACEOF 7390 if ac_fn_c_try_link "$LINENO"; then : 7391 eval $cacheid=yes 7392 else 7393 eval $cacheid=no 7394 fi 7395 rm -f core conftest.err conftest.$ac_objext \ 7396 conftest$ac_exeext conftest.$ac_ext 7397 fi 7398 7399 7400 CFLAGS="$xorg_testset_save_CFLAGS" 7401 7402 eval supported=\$$cacheid 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7404 $as_echo "$supported" >&6; } 7405 if test "$supported" = "yes" ; then 7406 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7407 found="yes" 7408 fi 7409 fi 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 xorg_testset_save_CFLAGS="$CFLAGS" 7426 7427 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7430 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7431 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7432 $as_echo_n "(cached) " >&6 7433 else 7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7435 /* end confdefs.h. */ 7436 int i; 7437 _ACEOF 7438 if ac_fn_c_try_compile "$LINENO"; then : 7439 xorg_cv_cc_flag_unknown_warning_option=yes 7440 else 7441 xorg_cv_cc_flag_unknown_warning_option=no 7442 fi 7443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7444 fi 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7446 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7448 CFLAGS="$xorg_testset_save_CFLAGS" 7449 fi 7450 7451 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7454 fi 7455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7457 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7458 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7459 $as_echo_n "(cached) " >&6 7460 else 7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7462 /* end confdefs.h. */ 7463 int i; 7464 _ACEOF 7465 if ac_fn_c_try_compile "$LINENO"; then : 7466 xorg_cv_cc_flag_unused_command_line_argument=yes 7467 else 7468 xorg_cv_cc_flag_unused_command_line_argument=no 7469 fi 7470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7471 fi 7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7473 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7475 CFLAGS="$xorg_testset_save_CFLAGS" 7476 fi 7477 7478 found="no" 7479 7480 if test $found = "no" ; then 7481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7483 fi 7484 7485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7487 fi 7488 7489 CFLAGS="$CFLAGS -Werror=main" 7490 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7492 $as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7493 cacheid=xorg_cv_cc_flag__Werror_main 7494 if eval \${$cacheid+:} false; then : 7495 $as_echo_n "(cached) " >&6 7496 else 7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7498 /* end confdefs.h. */ 7499 int i; 7500 int 7501 main () 7502 { 7503 7504 ; 7505 return 0; 7506 } 7507 _ACEOF 7508 if ac_fn_c_try_link "$LINENO"; then : 7509 eval $cacheid=yes 7510 else 7511 eval $cacheid=no 7512 fi 7513 rm -f core conftest.err conftest.$ac_objext \ 7514 conftest$ac_exeext conftest.$ac_ext 7515 fi 7516 7517 7518 CFLAGS="$xorg_testset_save_CFLAGS" 7519 7520 eval supported=\$$cacheid 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7522 $as_echo "$supported" >&6; } 7523 if test "$supported" = "yes" ; then 7524 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7525 found="yes" 7526 fi 7527 fi 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 xorg_testset_save_CFLAGS="$CFLAGS" 7544 7545 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7548 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7549 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7550 $as_echo_n "(cached) " >&6 7551 else 7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7553 /* end confdefs.h. */ 7554 int i; 7555 _ACEOF 7556 if ac_fn_c_try_compile "$LINENO"; then : 7557 xorg_cv_cc_flag_unknown_warning_option=yes 7558 else 7559 xorg_cv_cc_flag_unknown_warning_option=no 7560 fi 7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7562 fi 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7564 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7566 CFLAGS="$xorg_testset_save_CFLAGS" 7567 fi 7568 7569 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7572 fi 7573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7575 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7576 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7577 $as_echo_n "(cached) " >&6 7578 else 7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7580 /* end confdefs.h. */ 7581 int i; 7582 _ACEOF 7583 if ac_fn_c_try_compile "$LINENO"; then : 7584 xorg_cv_cc_flag_unused_command_line_argument=yes 7585 else 7586 xorg_cv_cc_flag_unused_command_line_argument=no 7587 fi 7588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7589 fi 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7591 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7593 CFLAGS="$xorg_testset_save_CFLAGS" 7594 fi 7595 7596 found="no" 7597 7598 if test $found = "no" ; then 7599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7601 fi 7602 7603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7605 fi 7606 7607 CFLAGS="$CFLAGS -Werror=missing-braces" 7608 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7610 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7611 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7612 if eval \${$cacheid+:} false; then : 7613 $as_echo_n "(cached) " >&6 7614 else 7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7616 /* end confdefs.h. */ 7617 int i; 7618 int 7619 main () 7620 { 7621 7622 ; 7623 return 0; 7624 } 7625 _ACEOF 7626 if ac_fn_c_try_link "$LINENO"; then : 7627 eval $cacheid=yes 7628 else 7629 eval $cacheid=no 7630 fi 7631 rm -f core conftest.err conftest.$ac_objext \ 7632 conftest$ac_exeext conftest.$ac_ext 7633 fi 7634 7635 7636 CFLAGS="$xorg_testset_save_CFLAGS" 7637 7638 eval supported=\$$cacheid 7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7640 $as_echo "$supported" >&6; } 7641 if test "$supported" = "yes" ; then 7642 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7643 found="yes" 7644 fi 7645 fi 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 xorg_testset_save_CFLAGS="$CFLAGS" 7662 7663 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7666 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7667 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7668 $as_echo_n "(cached) " >&6 7669 else 7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7671 /* end confdefs.h. */ 7672 int i; 7673 _ACEOF 7674 if ac_fn_c_try_compile "$LINENO"; then : 7675 xorg_cv_cc_flag_unknown_warning_option=yes 7676 else 7677 xorg_cv_cc_flag_unknown_warning_option=no 7678 fi 7679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7680 fi 7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7682 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7684 CFLAGS="$xorg_testset_save_CFLAGS" 7685 fi 7686 7687 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7690 fi 7691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7693 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7694 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7695 $as_echo_n "(cached) " >&6 7696 else 7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7698 /* end confdefs.h. */ 7699 int i; 7700 _ACEOF 7701 if ac_fn_c_try_compile "$LINENO"; then : 7702 xorg_cv_cc_flag_unused_command_line_argument=yes 7703 else 7704 xorg_cv_cc_flag_unused_command_line_argument=no 7705 fi 7706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7707 fi 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7709 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7711 CFLAGS="$xorg_testset_save_CFLAGS" 7712 fi 7713 7714 found="no" 7715 7716 if test $found = "no" ; then 7717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7719 fi 7720 7721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7723 fi 7724 7725 CFLAGS="$CFLAGS -Werror=sequence-point" 7726 7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7728 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7729 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7730 if eval \${$cacheid+:} false; then : 7731 $as_echo_n "(cached) " >&6 7732 else 7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7734 /* end confdefs.h. */ 7735 int i; 7736 int 7737 main () 7738 { 7739 7740 ; 7741 return 0; 7742 } 7743 _ACEOF 7744 if ac_fn_c_try_link "$LINENO"; then : 7745 eval $cacheid=yes 7746 else 7747 eval $cacheid=no 7748 fi 7749 rm -f core conftest.err conftest.$ac_objext \ 7750 conftest$ac_exeext conftest.$ac_ext 7751 fi 7752 7753 7754 CFLAGS="$xorg_testset_save_CFLAGS" 7755 7756 eval supported=\$$cacheid 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7758 $as_echo "$supported" >&6; } 7759 if test "$supported" = "yes" ; then 7760 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7761 found="yes" 7762 fi 7763 fi 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 xorg_testset_save_CFLAGS="$CFLAGS" 7780 7781 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7784 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7785 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7786 $as_echo_n "(cached) " >&6 7787 else 7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7789 /* end confdefs.h. */ 7790 int i; 7791 _ACEOF 7792 if ac_fn_c_try_compile "$LINENO"; then : 7793 xorg_cv_cc_flag_unknown_warning_option=yes 7794 else 7795 xorg_cv_cc_flag_unknown_warning_option=no 7796 fi 7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7798 fi 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7800 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7802 CFLAGS="$xorg_testset_save_CFLAGS" 7803 fi 7804 7805 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7808 fi 7809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7811 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7812 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7813 $as_echo_n "(cached) " >&6 7814 else 7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7816 /* end confdefs.h. */ 7817 int i; 7818 _ACEOF 7819 if ac_fn_c_try_compile "$LINENO"; then : 7820 xorg_cv_cc_flag_unused_command_line_argument=yes 7821 else 7822 xorg_cv_cc_flag_unused_command_line_argument=no 7823 fi 7824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7825 fi 7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7827 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7829 CFLAGS="$xorg_testset_save_CFLAGS" 7830 fi 7831 7832 found="no" 7833 7834 if test $found = "no" ; then 7835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7837 fi 7838 7839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7841 fi 7842 7843 CFLAGS="$CFLAGS -Werror=return-type" 7844 7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7846 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7847 cacheid=xorg_cv_cc_flag__Werror_return_type 7848 if eval \${$cacheid+:} false; then : 7849 $as_echo_n "(cached) " >&6 7850 else 7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7852 /* end confdefs.h. */ 7853 int i; 7854 int 7855 main () 7856 { 7857 7858 ; 7859 return 0; 7860 } 7861 _ACEOF 7862 if ac_fn_c_try_link "$LINENO"; then : 7863 eval $cacheid=yes 7864 else 7865 eval $cacheid=no 7866 fi 7867 rm -f core conftest.err conftest.$ac_objext \ 7868 conftest$ac_exeext conftest.$ac_ext 7869 fi 7870 7871 7872 CFLAGS="$xorg_testset_save_CFLAGS" 7873 7874 eval supported=\$$cacheid 7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7876 $as_echo "$supported" >&6; } 7877 if test "$supported" = "yes" ; then 7878 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7879 found="yes" 7880 fi 7881 fi 7882 7883 if test $found = "no" ; then 7884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7886 fi 7887 7888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7890 fi 7891 7892 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7893 7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7895 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7896 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7897 if eval \${$cacheid+:} false; then : 7898 $as_echo_n "(cached) " >&6 7899 else 7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7901 /* end confdefs.h. */ 7902 int i; 7903 int 7904 main () 7905 { 7906 7907 ; 7908 return 0; 7909 } 7910 _ACEOF 7911 if ac_fn_c_try_link "$LINENO"; then : 7912 eval $cacheid=yes 7913 else 7914 eval $cacheid=no 7915 fi 7916 rm -f core conftest.err conftest.$ac_objext \ 7917 conftest$ac_exeext conftest.$ac_ext 7918 fi 7919 7920 7921 CFLAGS="$xorg_testset_save_CFLAGS" 7922 7923 eval supported=\$$cacheid 7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7925 $as_echo "$supported" >&6; } 7926 if test "$supported" = "yes" ; then 7927 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7928 found="yes" 7929 fi 7930 fi 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 xorg_testset_save_CFLAGS="$CFLAGS" 7947 7948 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7951 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7952 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7953 $as_echo_n "(cached) " >&6 7954 else 7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7956 /* end confdefs.h. */ 7957 int i; 7958 _ACEOF 7959 if ac_fn_c_try_compile "$LINENO"; then : 7960 xorg_cv_cc_flag_unknown_warning_option=yes 7961 else 7962 xorg_cv_cc_flag_unknown_warning_option=no 7963 fi 7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7965 fi 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7967 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7969 CFLAGS="$xorg_testset_save_CFLAGS" 7970 fi 7971 7972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7975 fi 7976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7978 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7979 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7980 $as_echo_n "(cached) " >&6 7981 else 7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7983 /* end confdefs.h. */ 7984 int i; 7985 _ACEOF 7986 if ac_fn_c_try_compile "$LINENO"; then : 7987 xorg_cv_cc_flag_unused_command_line_argument=yes 7988 else 7989 xorg_cv_cc_flag_unused_command_line_argument=no 7990 fi 7991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7992 fi 7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7994 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7996 CFLAGS="$xorg_testset_save_CFLAGS" 7997 fi 7998 7999 found="no" 8000 8001 if test $found = "no" ; then 8002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8004 fi 8005 8006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8008 fi 8009 8010 CFLAGS="$CFLAGS -Werror=trigraphs" 8011 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8013 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8014 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8015 if eval \${$cacheid+:} false; then : 8016 $as_echo_n "(cached) " >&6 8017 else 8018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8019 /* end confdefs.h. */ 8020 int i; 8021 int 8022 main () 8023 { 8024 8025 ; 8026 return 0; 8027 } 8028 _ACEOF 8029 if ac_fn_c_try_link "$LINENO"; then : 8030 eval $cacheid=yes 8031 else 8032 eval $cacheid=no 8033 fi 8034 rm -f core conftest.err conftest.$ac_objext \ 8035 conftest$ac_exeext conftest.$ac_ext 8036 fi 8037 8038 8039 CFLAGS="$xorg_testset_save_CFLAGS" 8040 8041 eval supported=\$$cacheid 8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8043 $as_echo "$supported" >&6; } 8044 if test "$supported" = "yes" ; then 8045 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8046 found="yes" 8047 fi 8048 fi 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 xorg_testset_save_CFLAGS="$CFLAGS" 8065 8066 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8069 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8070 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8071 $as_echo_n "(cached) " >&6 8072 else 8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8074 /* end confdefs.h. */ 8075 int i; 8076 _ACEOF 8077 if ac_fn_c_try_compile "$LINENO"; then : 8078 xorg_cv_cc_flag_unknown_warning_option=yes 8079 else 8080 xorg_cv_cc_flag_unknown_warning_option=no 8081 fi 8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8083 fi 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8085 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8087 CFLAGS="$xorg_testset_save_CFLAGS" 8088 fi 8089 8090 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8093 fi 8094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8096 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8097 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8098 $as_echo_n "(cached) " >&6 8099 else 8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8101 /* end confdefs.h. */ 8102 int i; 8103 _ACEOF 8104 if ac_fn_c_try_compile "$LINENO"; then : 8105 xorg_cv_cc_flag_unused_command_line_argument=yes 8106 else 8107 xorg_cv_cc_flag_unused_command_line_argument=no 8108 fi 8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8110 fi 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8112 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8114 CFLAGS="$xorg_testset_save_CFLAGS" 8115 fi 8116 8117 found="no" 8118 8119 if test $found = "no" ; then 8120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8122 fi 8123 8124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8126 fi 8127 8128 CFLAGS="$CFLAGS -Werror=array-bounds" 8129 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8131 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8132 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8133 if eval \${$cacheid+:} false; then : 8134 $as_echo_n "(cached) " >&6 8135 else 8136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8137 /* end confdefs.h. */ 8138 int i; 8139 int 8140 main () 8141 { 8142 8143 ; 8144 return 0; 8145 } 8146 _ACEOF 8147 if ac_fn_c_try_link "$LINENO"; then : 8148 eval $cacheid=yes 8149 else 8150 eval $cacheid=no 8151 fi 8152 rm -f core conftest.err conftest.$ac_objext \ 8153 conftest$ac_exeext conftest.$ac_ext 8154 fi 8155 8156 8157 CFLAGS="$xorg_testset_save_CFLAGS" 8158 8159 eval supported=\$$cacheid 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8161 $as_echo "$supported" >&6; } 8162 if test "$supported" = "yes" ; then 8163 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8164 found="yes" 8165 fi 8166 fi 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 xorg_testset_save_CFLAGS="$CFLAGS" 8183 8184 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8187 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8188 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8189 $as_echo_n "(cached) " >&6 8190 else 8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8192 /* end confdefs.h. */ 8193 int i; 8194 _ACEOF 8195 if ac_fn_c_try_compile "$LINENO"; then : 8196 xorg_cv_cc_flag_unknown_warning_option=yes 8197 else 8198 xorg_cv_cc_flag_unknown_warning_option=no 8199 fi 8200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8201 fi 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8203 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8205 CFLAGS="$xorg_testset_save_CFLAGS" 8206 fi 8207 8208 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8211 fi 8212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8214 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8215 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8216 $as_echo_n "(cached) " >&6 8217 else 8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8219 /* end confdefs.h. */ 8220 int i; 8221 _ACEOF 8222 if ac_fn_c_try_compile "$LINENO"; then : 8223 xorg_cv_cc_flag_unused_command_line_argument=yes 8224 else 8225 xorg_cv_cc_flag_unused_command_line_argument=no 8226 fi 8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8228 fi 8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8230 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8232 CFLAGS="$xorg_testset_save_CFLAGS" 8233 fi 8234 8235 found="no" 8236 8237 if test $found = "no" ; then 8238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8240 fi 8241 8242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8244 fi 8245 8246 CFLAGS="$CFLAGS -Werror=write-strings" 8247 8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8249 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8250 cacheid=xorg_cv_cc_flag__Werror_write_strings 8251 if eval \${$cacheid+:} false; then : 8252 $as_echo_n "(cached) " >&6 8253 else 8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8255 /* end confdefs.h. */ 8256 int i; 8257 int 8258 main () 8259 { 8260 8261 ; 8262 return 0; 8263 } 8264 _ACEOF 8265 if ac_fn_c_try_link "$LINENO"; then : 8266 eval $cacheid=yes 8267 else 8268 eval $cacheid=no 8269 fi 8270 rm -f core conftest.err conftest.$ac_objext \ 8271 conftest$ac_exeext conftest.$ac_ext 8272 fi 8273 8274 8275 CFLAGS="$xorg_testset_save_CFLAGS" 8276 8277 eval supported=\$$cacheid 8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8279 $as_echo "$supported" >&6; } 8280 if test "$supported" = "yes" ; then 8281 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8282 found="yes" 8283 fi 8284 fi 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 xorg_testset_save_CFLAGS="$CFLAGS" 8301 8302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8305 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8306 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8307 $as_echo_n "(cached) " >&6 8308 else 8309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8310 /* end confdefs.h. */ 8311 int i; 8312 _ACEOF 8313 if ac_fn_c_try_compile "$LINENO"; then : 8314 xorg_cv_cc_flag_unknown_warning_option=yes 8315 else 8316 xorg_cv_cc_flag_unknown_warning_option=no 8317 fi 8318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8319 fi 8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8321 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8323 CFLAGS="$xorg_testset_save_CFLAGS" 8324 fi 8325 8326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8329 fi 8330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8332 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8333 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8334 $as_echo_n "(cached) " >&6 8335 else 8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8337 /* end confdefs.h. */ 8338 int i; 8339 _ACEOF 8340 if ac_fn_c_try_compile "$LINENO"; then : 8341 xorg_cv_cc_flag_unused_command_line_argument=yes 8342 else 8343 xorg_cv_cc_flag_unused_command_line_argument=no 8344 fi 8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8346 fi 8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8348 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8350 CFLAGS="$xorg_testset_save_CFLAGS" 8351 fi 8352 8353 found="no" 8354 8355 if test $found = "no" ; then 8356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8358 fi 8359 8360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8362 fi 8363 8364 CFLAGS="$CFLAGS -Werror=address" 8365 8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8367 $as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8368 cacheid=xorg_cv_cc_flag__Werror_address 8369 if eval \${$cacheid+:} false; then : 8370 $as_echo_n "(cached) " >&6 8371 else 8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8373 /* end confdefs.h. */ 8374 int i; 8375 int 8376 main () 8377 { 8378 8379 ; 8380 return 0; 8381 } 8382 _ACEOF 8383 if ac_fn_c_try_link "$LINENO"; then : 8384 eval $cacheid=yes 8385 else 8386 eval $cacheid=no 8387 fi 8388 rm -f core conftest.err conftest.$ac_objext \ 8389 conftest$ac_exeext conftest.$ac_ext 8390 fi 8391 8392 8393 CFLAGS="$xorg_testset_save_CFLAGS" 8394 8395 eval supported=\$$cacheid 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8397 $as_echo "$supported" >&6; } 8398 if test "$supported" = "yes" ; then 8399 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8400 found="yes" 8401 fi 8402 fi 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 xorg_testset_save_CFLAGS="$CFLAGS" 8419 8420 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8423 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8424 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8425 $as_echo_n "(cached) " >&6 8426 else 8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8428 /* end confdefs.h. */ 8429 int i; 8430 _ACEOF 8431 if ac_fn_c_try_compile "$LINENO"; then : 8432 xorg_cv_cc_flag_unknown_warning_option=yes 8433 else 8434 xorg_cv_cc_flag_unknown_warning_option=no 8435 fi 8436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8437 fi 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8439 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8441 CFLAGS="$xorg_testset_save_CFLAGS" 8442 fi 8443 8444 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8447 fi 8448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8450 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8451 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8452 $as_echo_n "(cached) " >&6 8453 else 8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8455 /* end confdefs.h. */ 8456 int i; 8457 _ACEOF 8458 if ac_fn_c_try_compile "$LINENO"; then : 8459 xorg_cv_cc_flag_unused_command_line_argument=yes 8460 else 8461 xorg_cv_cc_flag_unused_command_line_argument=no 8462 fi 8463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8464 fi 8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8466 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8468 CFLAGS="$xorg_testset_save_CFLAGS" 8469 fi 8470 8471 found="no" 8472 8473 if test $found = "no" ; then 8474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8476 fi 8477 8478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8480 fi 8481 8482 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8483 8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8485 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8486 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8487 if eval \${$cacheid+:} false; then : 8488 $as_echo_n "(cached) " >&6 8489 else 8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8491 /* end confdefs.h. */ 8492 int i; 8493 int 8494 main () 8495 { 8496 8497 ; 8498 return 0; 8499 } 8500 _ACEOF 8501 if ac_fn_c_try_link "$LINENO"; then : 8502 eval $cacheid=yes 8503 else 8504 eval $cacheid=no 8505 fi 8506 rm -f core conftest.err conftest.$ac_objext \ 8507 conftest$ac_exeext conftest.$ac_ext 8508 fi 8509 8510 8511 CFLAGS="$xorg_testset_save_CFLAGS" 8512 8513 eval supported=\$$cacheid 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8515 $as_echo "$supported" >&6; } 8516 if test "$supported" = "yes" ; then 8517 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8518 found="yes" 8519 fi 8520 fi 8521 8522 if test $found = "no" ; then 8523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8525 fi 8526 8527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8529 fi 8530 8531 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8532 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8534 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8535 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8536 if eval \${$cacheid+:} false; then : 8537 $as_echo_n "(cached) " >&6 8538 else 8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8540 /* end confdefs.h. */ 8541 int i; 8542 int 8543 main () 8544 { 8545 8546 ; 8547 return 0; 8548 } 8549 _ACEOF 8550 if ac_fn_c_try_link "$LINENO"; then : 8551 eval $cacheid=yes 8552 else 8553 eval $cacheid=no 8554 fi 8555 rm -f core conftest.err conftest.$ac_objext \ 8556 conftest$ac_exeext conftest.$ac_ext 8557 fi 8558 8559 8560 CFLAGS="$xorg_testset_save_CFLAGS" 8561 8562 eval supported=\$$cacheid 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8564 $as_echo "$supported" >&6; } 8565 if test "$supported" = "yes" ; then 8566 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8567 found="yes" 8568 fi 8569 fi 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 xorg_testset_save_CFLAGS="$CFLAGS" 8586 8587 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8590 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8591 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8592 $as_echo_n "(cached) " >&6 8593 else 8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8595 /* end confdefs.h. */ 8596 int i; 8597 _ACEOF 8598 if ac_fn_c_try_compile "$LINENO"; then : 8599 xorg_cv_cc_flag_unknown_warning_option=yes 8600 else 8601 xorg_cv_cc_flag_unknown_warning_option=no 8602 fi 8603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8604 fi 8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8606 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8608 CFLAGS="$xorg_testset_save_CFLAGS" 8609 fi 8610 8611 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8614 fi 8615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8617 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8618 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8619 $as_echo_n "(cached) " >&6 8620 else 8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8622 /* end confdefs.h. */ 8623 int i; 8624 _ACEOF 8625 if ac_fn_c_try_compile "$LINENO"; then : 8626 xorg_cv_cc_flag_unused_command_line_argument=yes 8627 else 8628 xorg_cv_cc_flag_unused_command_line_argument=no 8629 fi 8630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8631 fi 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8633 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8635 CFLAGS="$xorg_testset_save_CFLAGS" 8636 fi 8637 8638 found="no" 8639 8640 if test $found = "no" ; then 8641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8643 fi 8644 8645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8647 fi 8648 8649 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8650 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8652 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8653 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8654 if eval \${$cacheid+:} false; then : 8655 $as_echo_n "(cached) " >&6 8656 else 8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8658 /* end confdefs.h. */ 8659 int i; 8660 int 8661 main () 8662 { 8663 8664 ; 8665 return 0; 8666 } 8667 _ACEOF 8668 if ac_fn_c_try_link "$LINENO"; then : 8669 eval $cacheid=yes 8670 else 8671 eval $cacheid=no 8672 fi 8673 rm -f core conftest.err conftest.$ac_objext \ 8674 conftest$ac_exeext conftest.$ac_ext 8675 fi 8676 8677 8678 CFLAGS="$xorg_testset_save_CFLAGS" 8679 8680 eval supported=\$$cacheid 8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8682 $as_echo "$supported" >&6; } 8683 if test "$supported" = "yes" ; then 8684 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8685 found="yes" 8686 fi 8687 fi 8688 8689 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8690 else 8691 { $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 8692 $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;} 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 xorg_testset_save_CFLAGS="$CFLAGS" 8707 8708 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8711 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8712 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8713 $as_echo_n "(cached) " >&6 8714 else 8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8716 /* end confdefs.h. */ 8717 int i; 8718 _ACEOF 8719 if ac_fn_c_try_compile "$LINENO"; then : 8720 xorg_cv_cc_flag_unknown_warning_option=yes 8721 else 8722 xorg_cv_cc_flag_unknown_warning_option=no 8723 fi 8724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8725 fi 8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8727 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8729 CFLAGS="$xorg_testset_save_CFLAGS" 8730 fi 8731 8732 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8735 fi 8736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8738 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8739 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8740 $as_echo_n "(cached) " >&6 8741 else 8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8743 /* end confdefs.h. */ 8744 int i; 8745 _ACEOF 8746 if ac_fn_c_try_compile "$LINENO"; then : 8747 xorg_cv_cc_flag_unused_command_line_argument=yes 8748 else 8749 xorg_cv_cc_flag_unused_command_line_argument=no 8750 fi 8751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8752 fi 8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8754 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8756 CFLAGS="$xorg_testset_save_CFLAGS" 8757 fi 8758 8759 found="no" 8760 8761 if test $found = "no" ; then 8762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8764 fi 8765 8766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8768 fi 8769 8770 CFLAGS="$CFLAGS -Wimplicit" 8771 8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8773 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8774 cacheid=xorg_cv_cc_flag__Wimplicit 8775 if eval \${$cacheid+:} false; then : 8776 $as_echo_n "(cached) " >&6 8777 else 8778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8779 /* end confdefs.h. */ 8780 int i; 8781 int 8782 main () 8783 { 8784 8785 ; 8786 return 0; 8787 } 8788 _ACEOF 8789 if ac_fn_c_try_link "$LINENO"; then : 8790 eval $cacheid=yes 8791 else 8792 eval $cacheid=no 8793 fi 8794 rm -f core conftest.err conftest.$ac_objext \ 8795 conftest$ac_exeext conftest.$ac_ext 8796 fi 8797 8798 8799 CFLAGS="$xorg_testset_save_CFLAGS" 8800 8801 eval supported=\$$cacheid 8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8803 $as_echo "$supported" >&6; } 8804 if test "$supported" = "yes" ; then 8805 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8806 found="yes" 8807 fi 8808 fi 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 xorg_testset_save_CFLAGS="$CFLAGS" 8825 8826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8829 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8830 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8831 $as_echo_n "(cached) " >&6 8832 else 8833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8834 /* end confdefs.h. */ 8835 int i; 8836 _ACEOF 8837 if ac_fn_c_try_compile "$LINENO"; then : 8838 xorg_cv_cc_flag_unknown_warning_option=yes 8839 else 8840 xorg_cv_cc_flag_unknown_warning_option=no 8841 fi 8842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8843 fi 8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8845 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8847 CFLAGS="$xorg_testset_save_CFLAGS" 8848 fi 8849 8850 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8853 fi 8854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8856 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8857 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8858 $as_echo_n "(cached) " >&6 8859 else 8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8861 /* end confdefs.h. */ 8862 int i; 8863 _ACEOF 8864 if ac_fn_c_try_compile "$LINENO"; then : 8865 xorg_cv_cc_flag_unused_command_line_argument=yes 8866 else 8867 xorg_cv_cc_flag_unused_command_line_argument=no 8868 fi 8869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8870 fi 8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8872 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8874 CFLAGS="$xorg_testset_save_CFLAGS" 8875 fi 8876 8877 found="no" 8878 8879 if test $found = "no" ; then 8880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8882 fi 8883 8884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8886 fi 8887 8888 CFLAGS="$CFLAGS -Wnonnull" 8889 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8891 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8892 cacheid=xorg_cv_cc_flag__Wnonnull 8893 if eval \${$cacheid+:} false; then : 8894 $as_echo_n "(cached) " >&6 8895 else 8896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8897 /* end confdefs.h. */ 8898 int i; 8899 int 8900 main () 8901 { 8902 8903 ; 8904 return 0; 8905 } 8906 _ACEOF 8907 if ac_fn_c_try_link "$LINENO"; then : 8908 eval $cacheid=yes 8909 else 8910 eval $cacheid=no 8911 fi 8912 rm -f core conftest.err conftest.$ac_objext \ 8913 conftest$ac_exeext conftest.$ac_ext 8914 fi 8915 8916 8917 CFLAGS="$xorg_testset_save_CFLAGS" 8918 8919 eval supported=\$$cacheid 8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8921 $as_echo "$supported" >&6; } 8922 if test "$supported" = "yes" ; then 8923 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8924 found="yes" 8925 fi 8926 fi 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 xorg_testset_save_CFLAGS="$CFLAGS" 8943 8944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8947 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8948 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8949 $as_echo_n "(cached) " >&6 8950 else 8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8952 /* end confdefs.h. */ 8953 int i; 8954 _ACEOF 8955 if ac_fn_c_try_compile "$LINENO"; then : 8956 xorg_cv_cc_flag_unknown_warning_option=yes 8957 else 8958 xorg_cv_cc_flag_unknown_warning_option=no 8959 fi 8960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8961 fi 8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8963 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8965 CFLAGS="$xorg_testset_save_CFLAGS" 8966 fi 8967 8968 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8971 fi 8972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8974 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8975 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8976 $as_echo_n "(cached) " >&6 8977 else 8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8979 /* end confdefs.h. */ 8980 int i; 8981 _ACEOF 8982 if ac_fn_c_try_compile "$LINENO"; then : 8983 xorg_cv_cc_flag_unused_command_line_argument=yes 8984 else 8985 xorg_cv_cc_flag_unused_command_line_argument=no 8986 fi 8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8988 fi 8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8990 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8992 CFLAGS="$xorg_testset_save_CFLAGS" 8993 fi 8994 8995 found="no" 8996 8997 if test $found = "no" ; then 8998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9000 fi 9001 9002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9004 fi 9005 9006 CFLAGS="$CFLAGS -Winit-self" 9007 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9009 $as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9010 cacheid=xorg_cv_cc_flag__Winit_self 9011 if eval \${$cacheid+:} false; then : 9012 $as_echo_n "(cached) " >&6 9013 else 9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9015 /* end confdefs.h. */ 9016 int i; 9017 int 9018 main () 9019 { 9020 9021 ; 9022 return 0; 9023 } 9024 _ACEOF 9025 if ac_fn_c_try_link "$LINENO"; then : 9026 eval $cacheid=yes 9027 else 9028 eval $cacheid=no 9029 fi 9030 rm -f core conftest.err conftest.$ac_objext \ 9031 conftest$ac_exeext conftest.$ac_ext 9032 fi 9033 9034 9035 CFLAGS="$xorg_testset_save_CFLAGS" 9036 9037 eval supported=\$$cacheid 9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9039 $as_echo "$supported" >&6; } 9040 if test "$supported" = "yes" ; then 9041 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9042 found="yes" 9043 fi 9044 fi 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 xorg_testset_save_CFLAGS="$CFLAGS" 9061 9062 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9065 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9066 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9067 $as_echo_n "(cached) " >&6 9068 else 9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9070 /* end confdefs.h. */ 9071 int i; 9072 _ACEOF 9073 if ac_fn_c_try_compile "$LINENO"; then : 9074 xorg_cv_cc_flag_unknown_warning_option=yes 9075 else 9076 xorg_cv_cc_flag_unknown_warning_option=no 9077 fi 9078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9079 fi 9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9081 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9083 CFLAGS="$xorg_testset_save_CFLAGS" 9084 fi 9085 9086 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9089 fi 9090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9092 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9093 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9094 $as_echo_n "(cached) " >&6 9095 else 9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9097 /* end confdefs.h. */ 9098 int i; 9099 _ACEOF 9100 if ac_fn_c_try_compile "$LINENO"; then : 9101 xorg_cv_cc_flag_unused_command_line_argument=yes 9102 else 9103 xorg_cv_cc_flag_unused_command_line_argument=no 9104 fi 9105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9106 fi 9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9108 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9110 CFLAGS="$xorg_testset_save_CFLAGS" 9111 fi 9112 9113 found="no" 9114 9115 if test $found = "no" ; then 9116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9118 fi 9119 9120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9122 fi 9123 9124 CFLAGS="$CFLAGS -Wmain" 9125 9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9127 $as_echo_n "checking if $CC supports -Wmain... " >&6; } 9128 cacheid=xorg_cv_cc_flag__Wmain 9129 if eval \${$cacheid+:} false; then : 9130 $as_echo_n "(cached) " >&6 9131 else 9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9133 /* end confdefs.h. */ 9134 int i; 9135 int 9136 main () 9137 { 9138 9139 ; 9140 return 0; 9141 } 9142 _ACEOF 9143 if ac_fn_c_try_link "$LINENO"; then : 9144 eval $cacheid=yes 9145 else 9146 eval $cacheid=no 9147 fi 9148 rm -f core conftest.err conftest.$ac_objext \ 9149 conftest$ac_exeext conftest.$ac_ext 9150 fi 9151 9152 9153 CFLAGS="$xorg_testset_save_CFLAGS" 9154 9155 eval supported=\$$cacheid 9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9157 $as_echo "$supported" >&6; } 9158 if test "$supported" = "yes" ; then 9159 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9160 found="yes" 9161 fi 9162 fi 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 xorg_testset_save_CFLAGS="$CFLAGS" 9179 9180 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9183 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9184 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9185 $as_echo_n "(cached) " >&6 9186 else 9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9188 /* end confdefs.h. */ 9189 int i; 9190 _ACEOF 9191 if ac_fn_c_try_compile "$LINENO"; then : 9192 xorg_cv_cc_flag_unknown_warning_option=yes 9193 else 9194 xorg_cv_cc_flag_unknown_warning_option=no 9195 fi 9196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9197 fi 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9199 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9201 CFLAGS="$xorg_testset_save_CFLAGS" 9202 fi 9203 9204 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9207 fi 9208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9210 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9211 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9212 $as_echo_n "(cached) " >&6 9213 else 9214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9215 /* end confdefs.h. */ 9216 int i; 9217 _ACEOF 9218 if ac_fn_c_try_compile "$LINENO"; then : 9219 xorg_cv_cc_flag_unused_command_line_argument=yes 9220 else 9221 xorg_cv_cc_flag_unused_command_line_argument=no 9222 fi 9223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9224 fi 9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9226 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9228 CFLAGS="$xorg_testset_save_CFLAGS" 9229 fi 9230 9231 found="no" 9232 9233 if test $found = "no" ; then 9234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9236 fi 9237 9238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9240 fi 9241 9242 CFLAGS="$CFLAGS -Wmissing-braces" 9243 9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9245 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9246 cacheid=xorg_cv_cc_flag__Wmissing_braces 9247 if eval \${$cacheid+:} false; then : 9248 $as_echo_n "(cached) " >&6 9249 else 9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9251 /* end confdefs.h. */ 9252 int i; 9253 int 9254 main () 9255 { 9256 9257 ; 9258 return 0; 9259 } 9260 _ACEOF 9261 if ac_fn_c_try_link "$LINENO"; then : 9262 eval $cacheid=yes 9263 else 9264 eval $cacheid=no 9265 fi 9266 rm -f core conftest.err conftest.$ac_objext \ 9267 conftest$ac_exeext conftest.$ac_ext 9268 fi 9269 9270 9271 CFLAGS="$xorg_testset_save_CFLAGS" 9272 9273 eval supported=\$$cacheid 9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9275 $as_echo "$supported" >&6; } 9276 if test "$supported" = "yes" ; then 9277 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9278 found="yes" 9279 fi 9280 fi 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 xorg_testset_save_CFLAGS="$CFLAGS" 9297 9298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9301 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9302 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9303 $as_echo_n "(cached) " >&6 9304 else 9305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9306 /* end confdefs.h. */ 9307 int i; 9308 _ACEOF 9309 if ac_fn_c_try_compile "$LINENO"; then : 9310 xorg_cv_cc_flag_unknown_warning_option=yes 9311 else 9312 xorg_cv_cc_flag_unknown_warning_option=no 9313 fi 9314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9315 fi 9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9317 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9319 CFLAGS="$xorg_testset_save_CFLAGS" 9320 fi 9321 9322 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9325 fi 9326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9328 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9329 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9330 $as_echo_n "(cached) " >&6 9331 else 9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9333 /* end confdefs.h. */ 9334 int i; 9335 _ACEOF 9336 if ac_fn_c_try_compile "$LINENO"; then : 9337 xorg_cv_cc_flag_unused_command_line_argument=yes 9338 else 9339 xorg_cv_cc_flag_unused_command_line_argument=no 9340 fi 9341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9342 fi 9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9344 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9346 CFLAGS="$xorg_testset_save_CFLAGS" 9347 fi 9348 9349 found="no" 9350 9351 if test $found = "no" ; then 9352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9354 fi 9355 9356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9358 fi 9359 9360 CFLAGS="$CFLAGS -Wsequence-point" 9361 9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9363 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9364 cacheid=xorg_cv_cc_flag__Wsequence_point 9365 if eval \${$cacheid+:} false; then : 9366 $as_echo_n "(cached) " >&6 9367 else 9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9369 /* end confdefs.h. */ 9370 int i; 9371 int 9372 main () 9373 { 9374 9375 ; 9376 return 0; 9377 } 9378 _ACEOF 9379 if ac_fn_c_try_link "$LINENO"; then : 9380 eval $cacheid=yes 9381 else 9382 eval $cacheid=no 9383 fi 9384 rm -f core conftest.err conftest.$ac_objext \ 9385 conftest$ac_exeext conftest.$ac_ext 9386 fi 9387 9388 9389 CFLAGS="$xorg_testset_save_CFLAGS" 9390 9391 eval supported=\$$cacheid 9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9393 $as_echo "$supported" >&6; } 9394 if test "$supported" = "yes" ; then 9395 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9396 found="yes" 9397 fi 9398 fi 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 xorg_testset_save_CFLAGS="$CFLAGS" 9415 9416 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9419 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9420 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9421 $as_echo_n "(cached) " >&6 9422 else 9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9424 /* end confdefs.h. */ 9425 int i; 9426 _ACEOF 9427 if ac_fn_c_try_compile "$LINENO"; then : 9428 xorg_cv_cc_flag_unknown_warning_option=yes 9429 else 9430 xorg_cv_cc_flag_unknown_warning_option=no 9431 fi 9432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9433 fi 9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9435 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9437 CFLAGS="$xorg_testset_save_CFLAGS" 9438 fi 9439 9440 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9443 fi 9444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9446 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9447 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9448 $as_echo_n "(cached) " >&6 9449 else 9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9451 /* end confdefs.h. */ 9452 int i; 9453 _ACEOF 9454 if ac_fn_c_try_compile "$LINENO"; then : 9455 xorg_cv_cc_flag_unused_command_line_argument=yes 9456 else 9457 xorg_cv_cc_flag_unused_command_line_argument=no 9458 fi 9459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9460 fi 9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9462 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9464 CFLAGS="$xorg_testset_save_CFLAGS" 9465 fi 9466 9467 found="no" 9468 9469 if test $found = "no" ; then 9470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9472 fi 9473 9474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9476 fi 9477 9478 CFLAGS="$CFLAGS -Wreturn-type" 9479 9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9481 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9482 cacheid=xorg_cv_cc_flag__Wreturn_type 9483 if eval \${$cacheid+:} false; then : 9484 $as_echo_n "(cached) " >&6 9485 else 9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9487 /* end confdefs.h. */ 9488 int i; 9489 int 9490 main () 9491 { 9492 9493 ; 9494 return 0; 9495 } 9496 _ACEOF 9497 if ac_fn_c_try_link "$LINENO"; then : 9498 eval $cacheid=yes 9499 else 9500 eval $cacheid=no 9501 fi 9502 rm -f core conftest.err conftest.$ac_objext \ 9503 conftest$ac_exeext conftest.$ac_ext 9504 fi 9505 9506 9507 CFLAGS="$xorg_testset_save_CFLAGS" 9508 9509 eval supported=\$$cacheid 9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9511 $as_echo "$supported" >&6; } 9512 if test "$supported" = "yes" ; then 9513 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9514 found="yes" 9515 fi 9516 fi 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 xorg_testset_save_CFLAGS="$CFLAGS" 9533 9534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9537 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9538 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9539 $as_echo_n "(cached) " >&6 9540 else 9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9542 /* end confdefs.h. */ 9543 int i; 9544 _ACEOF 9545 if ac_fn_c_try_compile "$LINENO"; then : 9546 xorg_cv_cc_flag_unknown_warning_option=yes 9547 else 9548 xorg_cv_cc_flag_unknown_warning_option=no 9549 fi 9550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9551 fi 9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9553 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9555 CFLAGS="$xorg_testset_save_CFLAGS" 9556 fi 9557 9558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9561 fi 9562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9564 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9565 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9566 $as_echo_n "(cached) " >&6 9567 else 9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9569 /* end confdefs.h. */ 9570 int i; 9571 _ACEOF 9572 if ac_fn_c_try_compile "$LINENO"; then : 9573 xorg_cv_cc_flag_unused_command_line_argument=yes 9574 else 9575 xorg_cv_cc_flag_unused_command_line_argument=no 9576 fi 9577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9578 fi 9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9580 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9582 CFLAGS="$xorg_testset_save_CFLAGS" 9583 fi 9584 9585 found="no" 9586 9587 if test $found = "no" ; then 9588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9590 fi 9591 9592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9594 fi 9595 9596 CFLAGS="$CFLAGS -Wtrigraphs" 9597 9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9599 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9600 cacheid=xorg_cv_cc_flag__Wtrigraphs 9601 if eval \${$cacheid+:} false; then : 9602 $as_echo_n "(cached) " >&6 9603 else 9604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9605 /* end confdefs.h. */ 9606 int i; 9607 int 9608 main () 9609 { 9610 9611 ; 9612 return 0; 9613 } 9614 _ACEOF 9615 if ac_fn_c_try_link "$LINENO"; then : 9616 eval $cacheid=yes 9617 else 9618 eval $cacheid=no 9619 fi 9620 rm -f core conftest.err conftest.$ac_objext \ 9621 conftest$ac_exeext conftest.$ac_ext 9622 fi 9623 9624 9625 CFLAGS="$xorg_testset_save_CFLAGS" 9626 9627 eval supported=\$$cacheid 9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9629 $as_echo "$supported" >&6; } 9630 if test "$supported" = "yes" ; then 9631 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9632 found="yes" 9633 fi 9634 fi 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 xorg_testset_save_CFLAGS="$CFLAGS" 9651 9652 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9655 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9656 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9657 $as_echo_n "(cached) " >&6 9658 else 9659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9660 /* end confdefs.h. */ 9661 int i; 9662 _ACEOF 9663 if ac_fn_c_try_compile "$LINENO"; then : 9664 xorg_cv_cc_flag_unknown_warning_option=yes 9665 else 9666 xorg_cv_cc_flag_unknown_warning_option=no 9667 fi 9668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9669 fi 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9671 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9673 CFLAGS="$xorg_testset_save_CFLAGS" 9674 fi 9675 9676 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9679 fi 9680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9682 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9683 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9684 $as_echo_n "(cached) " >&6 9685 else 9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9687 /* end confdefs.h. */ 9688 int i; 9689 _ACEOF 9690 if ac_fn_c_try_compile "$LINENO"; then : 9691 xorg_cv_cc_flag_unused_command_line_argument=yes 9692 else 9693 xorg_cv_cc_flag_unused_command_line_argument=no 9694 fi 9695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9696 fi 9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9698 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9700 CFLAGS="$xorg_testset_save_CFLAGS" 9701 fi 9702 9703 found="no" 9704 9705 if test $found = "no" ; then 9706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9708 fi 9709 9710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9712 fi 9713 9714 CFLAGS="$CFLAGS -Warray-bounds" 9715 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9717 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9718 cacheid=xorg_cv_cc_flag__Warray_bounds 9719 if eval \${$cacheid+:} false; then : 9720 $as_echo_n "(cached) " >&6 9721 else 9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9723 /* end confdefs.h. */ 9724 int i; 9725 int 9726 main () 9727 { 9728 9729 ; 9730 return 0; 9731 } 9732 _ACEOF 9733 if ac_fn_c_try_link "$LINENO"; then : 9734 eval $cacheid=yes 9735 else 9736 eval $cacheid=no 9737 fi 9738 rm -f core conftest.err conftest.$ac_objext \ 9739 conftest$ac_exeext conftest.$ac_ext 9740 fi 9741 9742 9743 CFLAGS="$xorg_testset_save_CFLAGS" 9744 9745 eval supported=\$$cacheid 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9747 $as_echo "$supported" >&6; } 9748 if test "$supported" = "yes" ; then 9749 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9750 found="yes" 9751 fi 9752 fi 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 xorg_testset_save_CFLAGS="$CFLAGS" 9769 9770 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9773 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9774 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9775 $as_echo_n "(cached) " >&6 9776 else 9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9778 /* end confdefs.h. */ 9779 int i; 9780 _ACEOF 9781 if ac_fn_c_try_compile "$LINENO"; then : 9782 xorg_cv_cc_flag_unknown_warning_option=yes 9783 else 9784 xorg_cv_cc_flag_unknown_warning_option=no 9785 fi 9786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9787 fi 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9789 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9791 CFLAGS="$xorg_testset_save_CFLAGS" 9792 fi 9793 9794 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9797 fi 9798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9800 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9801 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9802 $as_echo_n "(cached) " >&6 9803 else 9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9805 /* end confdefs.h. */ 9806 int i; 9807 _ACEOF 9808 if ac_fn_c_try_compile "$LINENO"; then : 9809 xorg_cv_cc_flag_unused_command_line_argument=yes 9810 else 9811 xorg_cv_cc_flag_unused_command_line_argument=no 9812 fi 9813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9814 fi 9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9816 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9817 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9818 CFLAGS="$xorg_testset_save_CFLAGS" 9819 fi 9820 9821 found="no" 9822 9823 if test $found = "no" ; then 9824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9826 fi 9827 9828 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9830 fi 9831 9832 CFLAGS="$CFLAGS -Wwrite-strings" 9833 9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9835 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9836 cacheid=xorg_cv_cc_flag__Wwrite_strings 9837 if eval \${$cacheid+:} false; then : 9838 $as_echo_n "(cached) " >&6 9839 else 9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9841 /* end confdefs.h. */ 9842 int i; 9843 int 9844 main () 9845 { 9846 9847 ; 9848 return 0; 9849 } 9850 _ACEOF 9851 if ac_fn_c_try_link "$LINENO"; then : 9852 eval $cacheid=yes 9853 else 9854 eval $cacheid=no 9855 fi 9856 rm -f core conftest.err conftest.$ac_objext \ 9857 conftest$ac_exeext conftest.$ac_ext 9858 fi 9859 9860 9861 CFLAGS="$xorg_testset_save_CFLAGS" 9862 9863 eval supported=\$$cacheid 9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9865 $as_echo "$supported" >&6; } 9866 if test "$supported" = "yes" ; then 9867 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9868 found="yes" 9869 fi 9870 fi 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 xorg_testset_save_CFLAGS="$CFLAGS" 9887 9888 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9891 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9892 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9893 $as_echo_n "(cached) " >&6 9894 else 9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9896 /* end confdefs.h. */ 9897 int i; 9898 _ACEOF 9899 if ac_fn_c_try_compile "$LINENO"; then : 9900 xorg_cv_cc_flag_unknown_warning_option=yes 9901 else 9902 xorg_cv_cc_flag_unknown_warning_option=no 9903 fi 9904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9905 fi 9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9907 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9909 CFLAGS="$xorg_testset_save_CFLAGS" 9910 fi 9911 9912 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9915 fi 9916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9918 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9919 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9920 $as_echo_n "(cached) " >&6 9921 else 9922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9923 /* end confdefs.h. */ 9924 int i; 9925 _ACEOF 9926 if ac_fn_c_try_compile "$LINENO"; then : 9927 xorg_cv_cc_flag_unused_command_line_argument=yes 9928 else 9929 xorg_cv_cc_flag_unused_command_line_argument=no 9930 fi 9931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9932 fi 9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9934 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9936 CFLAGS="$xorg_testset_save_CFLAGS" 9937 fi 9938 9939 found="no" 9940 9941 if test $found = "no" ; then 9942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9944 fi 9945 9946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9948 fi 9949 9950 CFLAGS="$CFLAGS -Waddress" 9951 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9953 $as_echo_n "checking if $CC supports -Waddress... " >&6; } 9954 cacheid=xorg_cv_cc_flag__Waddress 9955 if eval \${$cacheid+:} false; then : 9956 $as_echo_n "(cached) " >&6 9957 else 9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9959 /* end confdefs.h. */ 9960 int i; 9961 int 9962 main () 9963 { 9964 9965 ; 9966 return 0; 9967 } 9968 _ACEOF 9969 if ac_fn_c_try_link "$LINENO"; then : 9970 eval $cacheid=yes 9971 else 9972 eval $cacheid=no 9973 fi 9974 rm -f core conftest.err conftest.$ac_objext \ 9975 conftest$ac_exeext conftest.$ac_ext 9976 fi 9977 9978 9979 CFLAGS="$xorg_testset_save_CFLAGS" 9980 9981 eval supported=\$$cacheid 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9983 $as_echo "$supported" >&6; } 9984 if test "$supported" = "yes" ; then 9985 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9986 found="yes" 9987 fi 9988 fi 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 xorg_testset_save_CFLAGS="$CFLAGS" 10005 10006 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10009 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10010 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10011 $as_echo_n "(cached) " >&6 10012 else 10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10014 /* end confdefs.h. */ 10015 int i; 10016 _ACEOF 10017 if ac_fn_c_try_compile "$LINENO"; then : 10018 xorg_cv_cc_flag_unknown_warning_option=yes 10019 else 10020 xorg_cv_cc_flag_unknown_warning_option=no 10021 fi 10022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10023 fi 10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10025 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10026 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10027 CFLAGS="$xorg_testset_save_CFLAGS" 10028 fi 10029 10030 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10033 fi 10034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10036 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10037 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10038 $as_echo_n "(cached) " >&6 10039 else 10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10041 /* end confdefs.h. */ 10042 int i; 10043 _ACEOF 10044 if ac_fn_c_try_compile "$LINENO"; then : 10045 xorg_cv_cc_flag_unused_command_line_argument=yes 10046 else 10047 xorg_cv_cc_flag_unused_command_line_argument=no 10048 fi 10049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10050 fi 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10052 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10053 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10054 CFLAGS="$xorg_testset_save_CFLAGS" 10055 fi 10056 10057 found="no" 10058 10059 if test $found = "no" ; then 10060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10062 fi 10063 10064 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10066 fi 10067 10068 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10069 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10071 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10072 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10073 if eval \${$cacheid+:} false; then : 10074 $as_echo_n "(cached) " >&6 10075 else 10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10077 /* end confdefs.h. */ 10078 int i; 10079 int 10080 main () 10081 { 10082 10083 ; 10084 return 0; 10085 } 10086 _ACEOF 10087 if ac_fn_c_try_link "$LINENO"; then : 10088 eval $cacheid=yes 10089 else 10090 eval $cacheid=no 10091 fi 10092 rm -f core conftest.err conftest.$ac_objext \ 10093 conftest$ac_exeext conftest.$ac_ext 10094 fi 10095 10096 10097 CFLAGS="$xorg_testset_save_CFLAGS" 10098 10099 eval supported=\$$cacheid 10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10101 $as_echo "$supported" >&6; } 10102 if test "$supported" = "yes" ; then 10103 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10104 found="yes" 10105 fi 10106 fi 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 xorg_testset_save_CFLAGS="$CFLAGS" 10123 10124 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10127 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10128 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10129 $as_echo_n "(cached) " >&6 10130 else 10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10132 /* end confdefs.h. */ 10133 int i; 10134 _ACEOF 10135 if ac_fn_c_try_compile "$LINENO"; then : 10136 xorg_cv_cc_flag_unknown_warning_option=yes 10137 else 10138 xorg_cv_cc_flag_unknown_warning_option=no 10139 fi 10140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10141 fi 10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10143 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10144 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10145 CFLAGS="$xorg_testset_save_CFLAGS" 10146 fi 10147 10148 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10151 fi 10152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10154 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10155 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10156 $as_echo_n "(cached) " >&6 10157 else 10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10159 /* end confdefs.h. */ 10160 int i; 10161 _ACEOF 10162 if ac_fn_c_try_compile "$LINENO"; then : 10163 xorg_cv_cc_flag_unused_command_line_argument=yes 10164 else 10165 xorg_cv_cc_flag_unused_command_line_argument=no 10166 fi 10167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10168 fi 10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10170 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10172 CFLAGS="$xorg_testset_save_CFLAGS" 10173 fi 10174 10175 found="no" 10176 10177 if test $found = "no" ; then 10178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10180 fi 10181 10182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10184 fi 10185 10186 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10187 10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10189 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10190 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10191 if eval \${$cacheid+:} false; then : 10192 $as_echo_n "(cached) " >&6 10193 else 10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10195 /* end confdefs.h. */ 10196 int i; 10197 int 10198 main () 10199 { 10200 10201 ; 10202 return 0; 10203 } 10204 _ACEOF 10205 if ac_fn_c_try_link "$LINENO"; then : 10206 eval $cacheid=yes 10207 else 10208 eval $cacheid=no 10209 fi 10210 rm -f core conftest.err conftest.$ac_objext \ 10211 conftest$ac_exeext conftest.$ac_ext 10212 fi 10213 10214 10215 CFLAGS="$xorg_testset_save_CFLAGS" 10216 10217 eval supported=\$$cacheid 10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10219 $as_echo "$supported" >&6; } 10220 if test "$supported" = "yes" ; then 10221 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10222 found="yes" 10223 fi 10224 fi 10225 10226 10227 fi 10228 10229 10230 10231 10232 10233 10234 10235 CWARNFLAGS="$BASE_CFLAGS" 10236 if test "x$GCC" = xyes ; then 10237 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10238 fi 10239 10240 10241 10242 10243 10244 10245 10246 10247 # Check whether --enable-strict-compilation was given. 10248 if test "${enable_strict_compilation+set}" = set; then : 10249 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10250 else 10251 STRICT_COMPILE=no 10252 fi 10253 10254 10255 10256 10257 10258 10259 STRICT_CFLAGS="" 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 xorg_testset_save_CFLAGS="$CFLAGS" 10274 10275 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10278 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10279 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10280 $as_echo_n "(cached) " >&6 10281 else 10282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10283 /* end confdefs.h. */ 10284 int i; 10285 _ACEOF 10286 if ac_fn_c_try_compile "$LINENO"; then : 10287 xorg_cv_cc_flag_unknown_warning_option=yes 10288 else 10289 xorg_cv_cc_flag_unknown_warning_option=no 10290 fi 10291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10292 fi 10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10294 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10296 CFLAGS="$xorg_testset_save_CFLAGS" 10297 fi 10298 10299 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10302 fi 10303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10305 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10306 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10307 $as_echo_n "(cached) " >&6 10308 else 10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10310 /* end confdefs.h. */ 10311 int i; 10312 _ACEOF 10313 if ac_fn_c_try_compile "$LINENO"; then : 10314 xorg_cv_cc_flag_unused_command_line_argument=yes 10315 else 10316 xorg_cv_cc_flag_unused_command_line_argument=no 10317 fi 10318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10319 fi 10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10321 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10323 CFLAGS="$xorg_testset_save_CFLAGS" 10324 fi 10325 10326 found="no" 10327 10328 if test $found = "no" ; then 10329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10331 fi 10332 10333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10335 fi 10336 10337 CFLAGS="$CFLAGS -pedantic" 10338 10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10340 $as_echo_n "checking if $CC supports -pedantic... " >&6; } 10341 cacheid=xorg_cv_cc_flag__pedantic 10342 if eval \${$cacheid+:} false; then : 10343 $as_echo_n "(cached) " >&6 10344 else 10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10346 /* end confdefs.h. */ 10347 int i; 10348 int 10349 main () 10350 { 10351 10352 ; 10353 return 0; 10354 } 10355 _ACEOF 10356 if ac_fn_c_try_link "$LINENO"; then : 10357 eval $cacheid=yes 10358 else 10359 eval $cacheid=no 10360 fi 10361 rm -f core conftest.err conftest.$ac_objext \ 10362 conftest$ac_exeext conftest.$ac_ext 10363 fi 10364 10365 10366 CFLAGS="$xorg_testset_save_CFLAGS" 10367 10368 eval supported=\$$cacheid 10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10370 $as_echo "$supported" >&6; } 10371 if test "$supported" = "yes" ; then 10372 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10373 found="yes" 10374 fi 10375 fi 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 xorg_testset_save_CFLAGS="$CFLAGS" 10392 10393 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10396 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10397 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10398 $as_echo_n "(cached) " >&6 10399 else 10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10401 /* end confdefs.h. */ 10402 int i; 10403 _ACEOF 10404 if ac_fn_c_try_compile "$LINENO"; then : 10405 xorg_cv_cc_flag_unknown_warning_option=yes 10406 else 10407 xorg_cv_cc_flag_unknown_warning_option=no 10408 fi 10409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10410 fi 10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10412 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10414 CFLAGS="$xorg_testset_save_CFLAGS" 10415 fi 10416 10417 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10420 fi 10421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10423 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10424 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10425 $as_echo_n "(cached) " >&6 10426 else 10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10428 /* end confdefs.h. */ 10429 int i; 10430 _ACEOF 10431 if ac_fn_c_try_compile "$LINENO"; then : 10432 xorg_cv_cc_flag_unused_command_line_argument=yes 10433 else 10434 xorg_cv_cc_flag_unused_command_line_argument=no 10435 fi 10436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10437 fi 10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10439 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10441 CFLAGS="$xorg_testset_save_CFLAGS" 10442 fi 10443 10444 found="no" 10445 10446 if test $found = "no" ; then 10447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10449 fi 10450 10451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10453 fi 10454 10455 CFLAGS="$CFLAGS -Werror" 10456 10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10458 $as_echo_n "checking if $CC supports -Werror... " >&6; } 10459 cacheid=xorg_cv_cc_flag__Werror 10460 if eval \${$cacheid+:} false; then : 10461 $as_echo_n "(cached) " >&6 10462 else 10463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10464 /* end confdefs.h. */ 10465 int i; 10466 int 10467 main () 10468 { 10469 10470 ; 10471 return 0; 10472 } 10473 _ACEOF 10474 if ac_fn_c_try_link "$LINENO"; then : 10475 eval $cacheid=yes 10476 else 10477 eval $cacheid=no 10478 fi 10479 rm -f core conftest.err conftest.$ac_objext \ 10480 conftest$ac_exeext conftest.$ac_ext 10481 fi 10482 10483 10484 CFLAGS="$xorg_testset_save_CFLAGS" 10485 10486 eval supported=\$$cacheid 10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10488 $as_echo "$supported" >&6; } 10489 if test "$supported" = "yes" ; then 10490 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10491 found="yes" 10492 fi 10493 fi 10494 10495 if test $found = "no" ; then 10496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10498 fi 10499 10500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10502 fi 10503 10504 CFLAGS="$CFLAGS -errwarn" 10505 10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10507 $as_echo_n "checking if $CC supports -errwarn... " >&6; } 10508 cacheid=xorg_cv_cc_flag__errwarn 10509 if eval \${$cacheid+:} false; then : 10510 $as_echo_n "(cached) " >&6 10511 else 10512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10513 /* end confdefs.h. */ 10514 int i; 10515 int 10516 main () 10517 { 10518 10519 ; 10520 return 0; 10521 } 10522 _ACEOF 10523 if ac_fn_c_try_link "$LINENO"; then : 10524 eval $cacheid=yes 10525 else 10526 eval $cacheid=no 10527 fi 10528 rm -f core conftest.err conftest.$ac_objext \ 10529 conftest$ac_exeext conftest.$ac_ext 10530 fi 10531 10532 10533 CFLAGS="$xorg_testset_save_CFLAGS" 10534 10535 eval supported=\$$cacheid 10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10537 $as_echo "$supported" >&6; } 10538 if test "$supported" = "yes" ; then 10539 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10540 found="yes" 10541 fi 10542 fi 10543 10544 10545 10546 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10547 # activate it with -Werror, so we add it here explicitly. 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 xorg_testset_save_CFLAGS="$CFLAGS" 10562 10563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10566 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10567 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10568 $as_echo_n "(cached) " >&6 10569 else 10570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10571 /* end confdefs.h. */ 10572 int i; 10573 _ACEOF 10574 if ac_fn_c_try_compile "$LINENO"; then : 10575 xorg_cv_cc_flag_unknown_warning_option=yes 10576 else 10577 xorg_cv_cc_flag_unknown_warning_option=no 10578 fi 10579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10580 fi 10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10582 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10584 CFLAGS="$xorg_testset_save_CFLAGS" 10585 fi 10586 10587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10590 fi 10591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10593 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10594 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10595 $as_echo_n "(cached) " >&6 10596 else 10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10598 /* end confdefs.h. */ 10599 int i; 10600 _ACEOF 10601 if ac_fn_c_try_compile "$LINENO"; then : 10602 xorg_cv_cc_flag_unused_command_line_argument=yes 10603 else 10604 xorg_cv_cc_flag_unused_command_line_argument=no 10605 fi 10606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10607 fi 10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10609 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10611 CFLAGS="$xorg_testset_save_CFLAGS" 10612 fi 10613 10614 found="no" 10615 10616 if test $found = "no" ; then 10617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10619 fi 10620 10621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10623 fi 10624 10625 CFLAGS="$CFLAGS -Werror=attributes" 10626 10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10628 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10629 cacheid=xorg_cv_cc_flag__Werror_attributes 10630 if eval \${$cacheid+:} false; then : 10631 $as_echo_n "(cached) " >&6 10632 else 10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10634 /* end confdefs.h. */ 10635 int i; 10636 int 10637 main () 10638 { 10639 10640 ; 10641 return 0; 10642 } 10643 _ACEOF 10644 if ac_fn_c_try_link "$LINENO"; then : 10645 eval $cacheid=yes 10646 else 10647 eval $cacheid=no 10648 fi 10649 rm -f core conftest.err conftest.$ac_objext \ 10650 conftest$ac_exeext conftest.$ac_ext 10651 fi 10652 10653 10654 CFLAGS="$xorg_testset_save_CFLAGS" 10655 10656 eval supported=\$$cacheid 10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10658 $as_echo "$supported" >&6; } 10659 if test "$supported" = "yes" ; then 10660 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10661 found="yes" 10662 fi 10663 fi 10664 10665 10666 10667 if test "x$STRICT_COMPILE" = "xyes"; then 10668 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10669 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10670 fi 10671 10672 10673 10674 10675 10676 10677 cat >>confdefs.h <<_ACEOF 10678 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10679 _ACEOF 10680 10681 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10682 if test "x$PVM" = "x"; then 10683 PVM="0" 10684 fi 10685 10686 cat >>confdefs.h <<_ACEOF 10687 #define PACKAGE_VERSION_MINOR $PVM 10688 _ACEOF 10689 10690 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10691 if test "x$PVP" = "x"; then 10692 PVP="0" 10693 fi 10694 10695 cat >>confdefs.h <<_ACEOF 10696 #define PACKAGE_VERSION_PATCHLEVEL $PVP 10697 _ACEOF 10698 10699 10700 10701 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10702 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10703 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10704 echo 'git directory not found: installing possibly empty changelog.' >&2)" 10705 10706 10707 10708 10709 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10710 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10711 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10712 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10713 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10714 10715 10716 10717 10718 10719 10720 if test x$APP_MAN_SUFFIX = x ; then 10721 APP_MAN_SUFFIX=1 10722 fi 10723 if test x$APP_MAN_DIR = x ; then 10724 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10725 fi 10726 10727 if test x$LIB_MAN_SUFFIX = x ; then 10728 LIB_MAN_SUFFIX=3 10729 fi 10730 if test x$LIB_MAN_DIR = x ; then 10731 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10732 fi 10733 10734 if test x$FILE_MAN_SUFFIX = x ; then 10735 case $host_os in 10736 solaris*) FILE_MAN_SUFFIX=4 ;; 10737 *) FILE_MAN_SUFFIX=5 ;; 10738 esac 10739 fi 10740 if test x$FILE_MAN_DIR = x ; then 10741 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10742 fi 10743 10744 if test x$MISC_MAN_SUFFIX = x ; then 10745 case $host_os in 10746 solaris*) MISC_MAN_SUFFIX=5 ;; 10747 *) MISC_MAN_SUFFIX=7 ;; 10748 esac 10749 fi 10750 if test x$MISC_MAN_DIR = x ; then 10751 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10752 fi 10753 10754 if test x$DRIVER_MAN_SUFFIX = x ; then 10755 case $host_os in 10756 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10757 *) DRIVER_MAN_SUFFIX=4 ;; 10758 esac 10759 fi 10760 if test x$DRIVER_MAN_DIR = x ; then 10761 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10762 fi 10763 10764 if test x$ADMIN_MAN_SUFFIX = x ; then 10765 case $host_os in 10766 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10767 *) ADMIN_MAN_SUFFIX=8 ;; 10768 esac 10769 fi 10770 if test x$ADMIN_MAN_DIR = x ; then 10771 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10772 fi 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 XORG_MAN_PAGE="X Version 11" 10789 10790 MAN_SUBSTS="\ 10791 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10792 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10793 -e 's|__xservername__|Xorg|g' \ 10794 -e 's|__xconfigfile__|xorg.conf|g' \ 10795 -e 's|__projectroot__|\$(prefix)|g' \ 10796 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10797 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10798 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10799 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10800 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10801 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10802 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10803 10804 10805 10806 # Check whether --enable-silent-rules was given. 10807 if test "${enable_silent_rules+set}" = set; then : 10808 enableval=$enable_silent_rules; 10809 fi 10810 10811 case $enable_silent_rules in # ((( 10812 yes) AM_DEFAULT_VERBOSITY=0;; 10813 no) AM_DEFAULT_VERBOSITY=1;; 10814 *) AM_DEFAULT_VERBOSITY=0;; 10815 esac 10816 am_make=${MAKE-make} 10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10818 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10819 if ${am_cv_make_support_nested_variables+:} false; then : 10820 $as_echo_n "(cached) " >&6 10821 else 10822 if $as_echo 'TRUE=$(BAR$(V)) 10823 BAR0=false 10824 BAR1=true 10825 V=1 10826 am__doit: 10827 @$(TRUE) 10828 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10829 am_cv_make_support_nested_variables=yes 10830 else 10831 am_cv_make_support_nested_variables=no 10832 fi 10833 fi 10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10835 $as_echo "$am_cv_make_support_nested_variables" >&6; } 10836 if test $am_cv_make_support_nested_variables = yes; then 10837 AM_V='$(V)' 10838 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10839 else 10840 AM_V=$AM_DEFAULT_VERBOSITY 10841 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10842 fi 10843 AM_BACKSLASH='\' 10844 10845 10846 10847 # Initialize libtool 10848 # Check whether --enable-static was given. 10849 if test "${enable_static+set}" = set; then : 10850 enableval=$enable_static; p=${PACKAGE-default} 10851 case $enableval in 10852 yes) enable_static=yes ;; 10853 no) enable_static=no ;; 10854 *) 10855 enable_static=no 10856 # Look at the argument we got. We use all the common list separators. 10857 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10858 for pkg in $enableval; do 10859 IFS=$lt_save_ifs 10860 if test "X$pkg" = "X$p"; then 10861 enable_static=yes 10862 fi 10863 done 10864 IFS=$lt_save_ifs 10865 ;; 10866 esac 10867 else 10868 enable_static=no 10869 fi 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 case `pwd` in 10880 *\ * | *\ *) 10881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10882 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10883 esac 10884 10885 10886 10887 macro_version='2.4.6' 10888 macro_revision='2.4.6' 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 ltmain=$ac_aux_dir/ltmain.sh 10903 10904 # Backslashify metacharacters that are still active within 10905 # double-quoted strings. 10906 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10907 10908 # Same as above, but do not quote variable references. 10909 double_quote_subst='s/\(["`\\]\)/\\\1/g' 10910 10911 # Sed substitution to delay expansion of an escaped shell variable in a 10912 # double_quote_subst'ed string. 10913 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10914 10915 # Sed substitution to delay expansion of an escaped single quote. 10916 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10917 10918 # Sed substitution to avoid accidental globbing in evaled expressions 10919 no_glob_subst='s/\*/\\\*/g' 10920 10921 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10922 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10923 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10924 10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10926 $as_echo_n "checking how to print strings... " >&6; } 10927 # Test print first, because it will be a builtin if present. 10928 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10929 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10930 ECHO='print -r --' 10931 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10932 ECHO='printf %s\n' 10933 else 10934 # Use this function as a fallback that always works. 10935 func_fallback_echo () 10936 { 10937 eval 'cat <<_LTECHO_EOF 10938 $1 10939 _LTECHO_EOF' 10940 } 10941 ECHO='func_fallback_echo' 10942 fi 10943 10944 # func_echo_all arg... 10945 # Invoke $ECHO with all args, space-separated. 10946 func_echo_all () 10947 { 10948 $ECHO "" 10949 } 10950 10951 case $ECHO in 10952 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10953 $as_echo "printf" >&6; } ;; 10954 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10955 $as_echo "print -r" >&6; } ;; 10956 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10957 $as_echo "cat" >&6; } ;; 10958 esac 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10974 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 10975 if ${ac_cv_path_SED+:} false; then : 10976 $as_echo_n "(cached) " >&6 10977 else 10978 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10979 for ac_i in 1 2 3 4 5 6 7; do 10980 ac_script="$ac_script$as_nl$ac_script" 10981 done 10982 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 10983 { ac_script=; unset ac_script;} 10984 if test -z "$SED"; then 10985 ac_path_SED_found=false 10986 # Loop through the user's path and test for each of PROGNAME-LIST 10987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10988 for as_dir in $PATH 10989 do 10990 IFS=$as_save_IFS 10991 test -z "$as_dir" && as_dir=. 10992 for ac_prog in sed gsed; do 10993 for ac_exec_ext in '' $ac_executable_extensions; do 10994 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 10995 as_fn_executable_p "$ac_path_SED" || continue 10996 # Check for GNU ac_path_SED and select it if it is found. 10997 # Check for GNU $ac_path_SED 10998 case `"$ac_path_SED" --version 2>&1` in 10999 *GNU*) 11000 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11001 *) 11002 ac_count=0 11003 $as_echo_n 0123456789 >"conftest.in" 11004 while : 11005 do 11006 cat "conftest.in" "conftest.in" >"conftest.tmp" 11007 mv "conftest.tmp" "conftest.in" 11008 cp "conftest.in" "conftest.nl" 11009 $as_echo '' >> "conftest.nl" 11010 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11012 as_fn_arith $ac_count + 1 && ac_count=$as_val 11013 if test $ac_count -gt ${ac_path_SED_max-0}; then 11014 # Best one so far, save it but keep looking for a better one 11015 ac_cv_path_SED="$ac_path_SED" 11016 ac_path_SED_max=$ac_count 11017 fi 11018 # 10*(2^10) chars as input seems more than enough 11019 test $ac_count -gt 10 && break 11020 done 11021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11022 esac 11023 11024 $ac_path_SED_found && break 3 11025 done 11026 done 11027 done 11028 IFS=$as_save_IFS 11029 if test -z "$ac_cv_path_SED"; then 11030 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11031 fi 11032 else 11033 ac_cv_path_SED=$SED 11034 fi 11035 11036 fi 11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11038 $as_echo "$ac_cv_path_SED" >&6; } 11039 SED="$ac_cv_path_SED" 11040 rm -f conftest.sed 11041 11042 test -z "$SED" && SED=sed 11043 Xsed="$SED -e 1s/^X//" 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11056 $as_echo_n "checking for fgrep... " >&6; } 11057 if ${ac_cv_path_FGREP+:} false; then : 11058 $as_echo_n "(cached) " >&6 11059 else 11060 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11061 then ac_cv_path_FGREP="$GREP -F" 11062 else 11063 if test -z "$FGREP"; then 11064 ac_path_FGREP_found=false 11065 # Loop through the user's path and test for each of PROGNAME-LIST 11066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11067 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11068 do 11069 IFS=$as_save_IFS 11070 test -z "$as_dir" && as_dir=. 11071 for ac_prog in fgrep; do 11072 for ac_exec_ext in '' $ac_executable_extensions; do 11073 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11074 as_fn_executable_p "$ac_path_FGREP" || continue 11075 # Check for GNU ac_path_FGREP and select it if it is found. 11076 # Check for GNU $ac_path_FGREP 11077 case `"$ac_path_FGREP" --version 2>&1` in 11078 *GNU*) 11079 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11080 *) 11081 ac_count=0 11082 $as_echo_n 0123456789 >"conftest.in" 11083 while : 11084 do 11085 cat "conftest.in" "conftest.in" >"conftest.tmp" 11086 mv "conftest.tmp" "conftest.in" 11087 cp "conftest.in" "conftest.nl" 11088 $as_echo 'FGREP' >> "conftest.nl" 11089 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11091 as_fn_arith $ac_count + 1 && ac_count=$as_val 11092 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11093 # Best one so far, save it but keep looking for a better one 11094 ac_cv_path_FGREP="$ac_path_FGREP" 11095 ac_path_FGREP_max=$ac_count 11096 fi 11097 # 10*(2^10) chars as input seems more than enough 11098 test $ac_count -gt 10 && break 11099 done 11100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11101 esac 11102 11103 $ac_path_FGREP_found && break 3 11104 done 11105 done 11106 done 11107 IFS=$as_save_IFS 11108 if test -z "$ac_cv_path_FGREP"; then 11109 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11110 fi 11111 else 11112 ac_cv_path_FGREP=$FGREP 11113 fi 11114 11115 fi 11116 fi 11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11118 $as_echo "$ac_cv_path_FGREP" >&6; } 11119 FGREP="$ac_cv_path_FGREP" 11120 11121 11122 test -z "$GREP" && GREP=grep 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 # Check whether --with-gnu-ld was given. 11143 if test "${with_gnu_ld+set}" = set; then : 11144 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11145 else 11146 with_gnu_ld=no 11147 fi 11148 11149 ac_prog=ld 11150 if test yes = "$GCC"; then 11151 # Check if gcc -print-prog-name=ld gives a path. 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11153 $as_echo_n "checking for ld used by $CC... " >&6; } 11154 case $host in 11155 *-*-mingw*) 11156 # gcc leaves a trailing carriage return, which upsets mingw 11157 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11158 *) 11159 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11160 esac 11161 case $ac_prog in 11162 # Accept absolute paths. 11163 [\\/]* | ?:[\\/]*) 11164 re_direlt='/[^/][^/]*/\.\./' 11165 # Canonicalize the pathname of ld 11166 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11167 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11168 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11169 done 11170 test -z "$LD" && LD=$ac_prog 11171 ;; 11172 "") 11173 # If it fails, then pretend we aren't using GCC. 11174 ac_prog=ld 11175 ;; 11176 *) 11177 # If it is relative, then search for the first ld in PATH. 11178 with_gnu_ld=unknown 11179 ;; 11180 esac 11181 elif test yes = "$with_gnu_ld"; then 11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11183 $as_echo_n "checking for GNU ld... " >&6; } 11184 else 11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11186 $as_echo_n "checking for non-GNU ld... " >&6; } 11187 fi 11188 if ${lt_cv_path_LD+:} false; then : 11189 $as_echo_n "(cached) " >&6 11190 else 11191 if test -z "$LD"; then 11192 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11193 for ac_dir in $PATH; do 11194 IFS=$lt_save_ifs 11195 test -z "$ac_dir" && ac_dir=. 11196 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11197 lt_cv_path_LD=$ac_dir/$ac_prog 11198 # Check to see if the program is GNU ld. I'd rather use --version, 11199 # but apparently some variants of GNU ld only accept -v. 11200 # Break only if it was the GNU/non-GNU ld that we prefer. 11201 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11202 *GNU* | *'with BFD'*) 11203 test no != "$with_gnu_ld" && break 11204 ;; 11205 *) 11206 test yes != "$with_gnu_ld" && break 11207 ;; 11208 esac 11209 fi 11210 done 11211 IFS=$lt_save_ifs 11212 else 11213 lt_cv_path_LD=$LD # Let the user override the test with a path. 11214 fi 11215 fi 11216 11217 LD=$lt_cv_path_LD 11218 if test -n "$LD"; then 11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11220 $as_echo "$LD" >&6; } 11221 else 11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11223 $as_echo "no" >&6; } 11224 fi 11225 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11227 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11228 if ${lt_cv_prog_gnu_ld+:} false; then : 11229 $as_echo_n "(cached) " >&6 11230 else 11231 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11232 case `$LD -v 2>&1 </dev/null` in 11233 *GNU* | *'with BFD'*) 11234 lt_cv_prog_gnu_ld=yes 11235 ;; 11236 *) 11237 lt_cv_prog_gnu_ld=no 11238 ;; 11239 esac 11240 fi 11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11242 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 11243 with_gnu_ld=$lt_cv_prog_gnu_ld 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11254 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11255 if ${lt_cv_path_NM+:} false; then : 11256 $as_echo_n "(cached) " >&6 11257 else 11258 if test -n "$NM"; then 11259 # Let the user override the test. 11260 lt_cv_path_NM=$NM 11261 else 11262 lt_nm_to_check=${ac_tool_prefix}nm 11263 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11264 lt_nm_to_check="$lt_nm_to_check nm" 11265 fi 11266 for lt_tmp_nm in $lt_nm_to_check; do 11267 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11268 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11269 IFS=$lt_save_ifs 11270 test -z "$ac_dir" && ac_dir=. 11271 tmp_nm=$ac_dir/$lt_tmp_nm 11272 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11273 # Check to see if the nm accepts a BSD-compat flag. 11274 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11275 # nm: unknown option "B" ignored 11276 # Tru64's nm complains that /dev/null is an invalid object file 11277 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11278 case $build_os in 11279 mingw*) lt_bad_file=conftest.nm/nofile ;; 11280 *) lt_bad_file=/dev/null ;; 11281 esac 11282 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11283 *$lt_bad_file* | *'Invalid file or object type'*) 11284 lt_cv_path_NM="$tmp_nm -B" 11285 break 2 11286 ;; 11287 *) 11288 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11289 */dev/null*) 11290 lt_cv_path_NM="$tmp_nm -p" 11291 break 2 11292 ;; 11293 *) 11294 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11295 continue # so that we can try to find one that supports BSD flags 11296 ;; 11297 esac 11298 ;; 11299 esac 11300 fi 11301 done 11302 IFS=$lt_save_ifs 11303 done 11304 : ${lt_cv_path_NM=no} 11305 fi 11306 fi 11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11308 $as_echo "$lt_cv_path_NM" >&6; } 11309 if test no != "$lt_cv_path_NM"; then 11310 NM=$lt_cv_path_NM 11311 else 11312 # Didn't find any BSD compatible name lister, look for dumpbin. 11313 if test -n "$DUMPBIN"; then : 11314 # Let the user override the test. 11315 else 11316 if test -n "$ac_tool_prefix"; then 11317 for ac_prog in dumpbin "link -dump" 11318 do 11319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11322 $as_echo_n "checking for $ac_word... " >&6; } 11323 if ${ac_cv_prog_DUMPBIN+:} false; then : 11324 $as_echo_n "(cached) " >&6 11325 else 11326 if test -n "$DUMPBIN"; then 11327 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11328 else 11329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11330 for as_dir in $PATH 11331 do 11332 IFS=$as_save_IFS 11333 test -z "$as_dir" && as_dir=. 11334 for ac_exec_ext in '' $ac_executable_extensions; do 11335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11336 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11338 break 2 11339 fi 11340 done 11341 done 11342 IFS=$as_save_IFS 11343 11344 fi 11345 fi 11346 DUMPBIN=$ac_cv_prog_DUMPBIN 11347 if test -n "$DUMPBIN"; then 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11349 $as_echo "$DUMPBIN" >&6; } 11350 else 11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11352 $as_echo "no" >&6; } 11353 fi 11354 11355 11356 test -n "$DUMPBIN" && break 11357 done 11358 fi 11359 if test -z "$DUMPBIN"; then 11360 ac_ct_DUMPBIN=$DUMPBIN 11361 for ac_prog in dumpbin "link -dump" 11362 do 11363 # Extract the first word of "$ac_prog", so it can be a program name with args. 11364 set dummy $ac_prog; ac_word=$2 11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11366 $as_echo_n "checking for $ac_word... " >&6; } 11367 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11368 $as_echo_n "(cached) " >&6 11369 else 11370 if test -n "$ac_ct_DUMPBIN"; then 11371 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11372 else 11373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11374 for as_dir in $PATH 11375 do 11376 IFS=$as_save_IFS 11377 test -z "$as_dir" && as_dir=. 11378 for ac_exec_ext in '' $ac_executable_extensions; do 11379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11380 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11382 break 2 11383 fi 11384 done 11385 done 11386 IFS=$as_save_IFS 11387 11388 fi 11389 fi 11390 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11391 if test -n "$ac_ct_DUMPBIN"; then 11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11393 $as_echo "$ac_ct_DUMPBIN" >&6; } 11394 else 11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11396 $as_echo "no" >&6; } 11397 fi 11398 11399 11400 test -n "$ac_ct_DUMPBIN" && break 11401 done 11402 11403 if test "x$ac_ct_DUMPBIN" = x; then 11404 DUMPBIN=":" 11405 else 11406 case $cross_compiling:$ac_tool_warned in 11407 yes:) 11408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11410 ac_tool_warned=yes ;; 11411 esac 11412 DUMPBIN=$ac_ct_DUMPBIN 11413 fi 11414 fi 11415 11416 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11417 *COFF*) 11418 DUMPBIN="$DUMPBIN -symbols -headers" 11419 ;; 11420 *) 11421 DUMPBIN=: 11422 ;; 11423 esac 11424 fi 11425 11426 if test : != "$DUMPBIN"; then 11427 NM=$DUMPBIN 11428 fi 11429 fi 11430 test -z "$NM" && NM=nm 11431 11432 11433 11434 11435 11436 11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11438 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 11439 if ${lt_cv_nm_interface+:} false; then : 11440 $as_echo_n "(cached) " >&6 11441 else 11442 lt_cv_nm_interface="BSD nm" 11443 echo "int some_variable = 0;" > conftest.$ac_ext 11444 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11445 (eval "$ac_compile" 2>conftest.err) 11446 cat conftest.err >&5 11447 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11448 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11449 cat conftest.err >&5 11450 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11451 cat conftest.out >&5 11452 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11453 lt_cv_nm_interface="MS dumpbin" 11454 fi 11455 rm -f conftest* 11456 fi 11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11458 $as_echo "$lt_cv_nm_interface" >&6; } 11459 11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11461 $as_echo_n "checking whether ln -s works... " >&6; } 11462 LN_S=$as_ln_s 11463 if test "$LN_S" = "ln -s"; then 11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11465 $as_echo "yes" >&6; } 11466 else 11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11468 $as_echo "no, using $LN_S" >&6; } 11469 fi 11470 11471 # find the maximum length of command line arguments 11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11473 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 11474 if ${lt_cv_sys_max_cmd_len+:} false; then : 11475 $as_echo_n "(cached) " >&6 11476 else 11477 i=0 11478 teststring=ABCD 11479 11480 case $build_os in 11481 msdosdjgpp*) 11482 # On DJGPP, this test can blow up pretty badly due to problems in libc 11483 # (any single argument exceeding 2000 bytes causes a buffer overrun 11484 # during glob expansion). Even if it were fixed, the result of this 11485 # check would be larger than it should be. 11486 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11487 ;; 11488 11489 gnu*) 11490 # Under GNU Hurd, this test is not required because there is 11491 # no limit to the length of command line arguments. 11492 # Libtool will interpret -1 as no limit whatsoever 11493 lt_cv_sys_max_cmd_len=-1; 11494 ;; 11495 11496 cygwin* | mingw* | cegcc*) 11497 # On Win9x/ME, this test blows up -- it succeeds, but takes 11498 # about 5 minutes as the teststring grows exponentially. 11499 # Worse, since 9x/ME are not pre-emptively multitasking, 11500 # you end up with a "frozen" computer, even though with patience 11501 # the test eventually succeeds (with a max line length of 256k). 11502 # Instead, let's just punt: use the minimum linelength reported by 11503 # all of the supported platforms: 8192 (on NT/2K/XP). 11504 lt_cv_sys_max_cmd_len=8192; 11505 ;; 11506 11507 mint*) 11508 # On MiNT this can take a long time and run out of memory. 11509 lt_cv_sys_max_cmd_len=8192; 11510 ;; 11511 11512 amigaos*) 11513 # On AmigaOS with pdksh, this test takes hours, literally. 11514 # So we just punt and use a minimum line length of 8192. 11515 lt_cv_sys_max_cmd_len=8192; 11516 ;; 11517 11518 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11519 # This has been around since 386BSD, at least. Likely further. 11520 if test -x /sbin/sysctl; then 11521 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11522 elif test -x /usr/sbin/sysctl; then 11523 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11524 else 11525 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11526 fi 11527 # And add a safety zone 11528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11530 ;; 11531 11532 interix*) 11533 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11534 lt_cv_sys_max_cmd_len=196608 11535 ;; 11536 11537 os2*) 11538 # The test takes a long time on OS/2. 11539 lt_cv_sys_max_cmd_len=8192 11540 ;; 11541 11542 osf*) 11543 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11544 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11545 # nice to cause kernel panics so lets avoid the loop below. 11546 # First set a reasonable default. 11547 lt_cv_sys_max_cmd_len=16384 11548 # 11549 if test -x /sbin/sysconfig; then 11550 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11551 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11552 esac 11553 fi 11554 ;; 11555 sco3.2v5*) 11556 lt_cv_sys_max_cmd_len=102400 11557 ;; 11558 sysv5* | sco5v6* | sysv4.2uw2*) 11559 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11560 if test -n "$kargmax"; then 11561 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11562 else 11563 lt_cv_sys_max_cmd_len=32768 11564 fi 11565 ;; 11566 *) 11567 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11568 if test -n "$lt_cv_sys_max_cmd_len" && \ 11569 test undefined != "$lt_cv_sys_max_cmd_len"; then 11570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11572 else 11573 # Make teststring a little bigger before we do anything with it. 11574 # a 1K string should be a reasonable start. 11575 for i in 1 2 3 4 5 6 7 8; do 11576 teststring=$teststring$teststring 11577 done 11578 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11579 # If test is not a shell built-in, we'll probably end up computing a 11580 # maximum length that is only half of the actual maximum length, but 11581 # we can't tell. 11582 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11583 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11584 test 17 != "$i" # 1/2 MB should be enough 11585 do 11586 i=`expr $i + 1` 11587 teststring=$teststring$teststring 11588 done 11589 # Only check the string length outside the loop. 11590 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11591 teststring= 11592 # Add a significant safety factor because C++ compilers can tack on 11593 # massive amounts of additional arguments before passing them to the 11594 # linker. It appears as though 1/2 is a usable value. 11595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11596 fi 11597 ;; 11598 esac 11599 11600 fi 11601 11602 if test -n "$lt_cv_sys_max_cmd_len"; then 11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11604 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11605 else 11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11607 $as_echo "none" >&6; } 11608 fi 11609 max_cmd_len=$lt_cv_sys_max_cmd_len 11610 11611 11612 11613 11614 11615 11616 : ${CP="cp -f"} 11617 : ${MV="mv -f"} 11618 : ${RM="rm -f"} 11619 11620 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11621 lt_unset=unset 11622 else 11623 lt_unset=false 11624 fi 11625 11626 11627 11628 11629 11630 # test EBCDIC or ASCII 11631 case `echo X|tr X '\101'` in 11632 A) # ASCII based system 11633 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11634 lt_SP2NL='tr \040 \012' 11635 lt_NL2SP='tr \015\012 \040\040' 11636 ;; 11637 *) # EBCDIC based system 11638 lt_SP2NL='tr \100 \n' 11639 lt_NL2SP='tr \r\n \100\100' 11640 ;; 11641 esac 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11652 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11653 if ${lt_cv_to_host_file_cmd+:} false; then : 11654 $as_echo_n "(cached) " >&6 11655 else 11656 case $host in 11657 *-*-mingw* ) 11658 case $build in 11659 *-*-mingw* ) # actually msys 11660 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11661 ;; 11662 *-*-cygwin* ) 11663 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11664 ;; 11665 * ) # otherwise, assume *nix 11666 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11667 ;; 11668 esac 11669 ;; 11670 *-*-cygwin* ) 11671 case $build in 11672 *-*-mingw* ) # actually msys 11673 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11674 ;; 11675 *-*-cygwin* ) 11676 lt_cv_to_host_file_cmd=func_convert_file_noop 11677 ;; 11678 * ) # otherwise, assume *nix 11679 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11680 ;; 11681 esac 11682 ;; 11683 * ) # unhandled hosts (and "normal" native builds) 11684 lt_cv_to_host_file_cmd=func_convert_file_noop 11685 ;; 11686 esac 11687 11688 fi 11689 11690 to_host_file_cmd=$lt_cv_to_host_file_cmd 11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11692 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 11693 11694 11695 11696 11697 11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11699 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11700 if ${lt_cv_to_tool_file_cmd+:} false; then : 11701 $as_echo_n "(cached) " >&6 11702 else 11703 #assume ordinary cross tools, or native build. 11704 lt_cv_to_tool_file_cmd=func_convert_file_noop 11705 case $host in 11706 *-*-mingw* ) 11707 case $build in 11708 *-*-mingw* ) # actually msys 11709 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11710 ;; 11711 esac 11712 ;; 11713 esac 11714 11715 fi 11716 11717 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11719 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11720 11721 11722 11723 11724 11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11726 $as_echo_n "checking for $LD option to reload object files... " >&6; } 11727 if ${lt_cv_ld_reload_flag+:} false; then : 11728 $as_echo_n "(cached) " >&6 11729 else 11730 lt_cv_ld_reload_flag='-r' 11731 fi 11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11733 $as_echo "$lt_cv_ld_reload_flag" >&6; } 11734 reload_flag=$lt_cv_ld_reload_flag 11735 case $reload_flag in 11736 "" | " "*) ;; 11737 *) reload_flag=" $reload_flag" ;; 11738 esac 11739 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11740 case $host_os in 11741 cygwin* | mingw* | pw32* | cegcc*) 11742 if test yes != "$GCC"; then 11743 reload_cmds=false 11744 fi 11745 ;; 11746 darwin*) 11747 if test yes = "$GCC"; then 11748 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 11749 else 11750 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11751 fi 11752 ;; 11753 esac 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 if test -n "$ac_tool_prefix"; then 11764 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11765 set dummy ${ac_tool_prefix}objdump; ac_word=$2 11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11767 $as_echo_n "checking for $ac_word... " >&6; } 11768 if ${ac_cv_prog_OBJDUMP+:} false; then : 11769 $as_echo_n "(cached) " >&6 11770 else 11771 if test -n "$OBJDUMP"; then 11772 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11773 else 11774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11775 for as_dir in $PATH 11776 do 11777 IFS=$as_save_IFS 11778 test -z "$as_dir" && as_dir=. 11779 for ac_exec_ext in '' $ac_executable_extensions; do 11780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11781 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11783 break 2 11784 fi 11785 done 11786 done 11787 IFS=$as_save_IFS 11788 11789 fi 11790 fi 11791 OBJDUMP=$ac_cv_prog_OBJDUMP 11792 if test -n "$OBJDUMP"; then 11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11794 $as_echo "$OBJDUMP" >&6; } 11795 else 11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11797 $as_echo "no" >&6; } 11798 fi 11799 11800 11801 fi 11802 if test -z "$ac_cv_prog_OBJDUMP"; then 11803 ac_ct_OBJDUMP=$OBJDUMP 11804 # Extract the first word of "objdump", so it can be a program name with args. 11805 set dummy objdump; ac_word=$2 11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11807 $as_echo_n "checking for $ac_word... " >&6; } 11808 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11809 $as_echo_n "(cached) " >&6 11810 else 11811 if test -n "$ac_ct_OBJDUMP"; then 11812 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11813 else 11814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11815 for as_dir in $PATH 11816 do 11817 IFS=$as_save_IFS 11818 test -z "$as_dir" && as_dir=. 11819 for ac_exec_ext in '' $ac_executable_extensions; do 11820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11821 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11823 break 2 11824 fi 11825 done 11826 done 11827 IFS=$as_save_IFS 11828 11829 fi 11830 fi 11831 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11832 if test -n "$ac_ct_OBJDUMP"; then 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11834 $as_echo "$ac_ct_OBJDUMP" >&6; } 11835 else 11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11837 $as_echo "no" >&6; } 11838 fi 11839 11840 if test "x$ac_ct_OBJDUMP" = x; then 11841 OBJDUMP="false" 11842 else 11843 case $cross_compiling:$ac_tool_warned in 11844 yes:) 11845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11847 ac_tool_warned=yes ;; 11848 esac 11849 OBJDUMP=$ac_ct_OBJDUMP 11850 fi 11851 else 11852 OBJDUMP="$ac_cv_prog_OBJDUMP" 11853 fi 11854 11855 test -z "$OBJDUMP" && OBJDUMP=objdump 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11866 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 11867 if ${lt_cv_deplibs_check_method+:} false; then : 11868 $as_echo_n "(cached) " >&6 11869 else 11870 lt_cv_file_magic_cmd='$MAGIC_CMD' 11871 lt_cv_file_magic_test_file= 11872 lt_cv_deplibs_check_method='unknown' 11873 # Need to set the preceding variable on all platforms that support 11874 # interlibrary dependencies. 11875 # 'none' -- dependencies not supported. 11876 # 'unknown' -- same as none, but documents that we really don't know. 11877 # 'pass_all' -- all dependencies passed with no checks. 11878 # 'test_compile' -- check by making test program. 11879 # 'file_magic [[regex]]' -- check by looking for files in library path 11880 # that responds to the $file_magic_cmd with a given extended regex. 11881 # If you have 'file' or equivalent on your system and you're not sure 11882 # whether 'pass_all' will *always* work, you probably want this one. 11883 11884 case $host_os in 11885 aix[4-9]*) 11886 lt_cv_deplibs_check_method=pass_all 11887 ;; 11888 11889 beos*) 11890 lt_cv_deplibs_check_method=pass_all 11891 ;; 11892 11893 bsdi[45]*) 11894 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11895 lt_cv_file_magic_cmd='/usr/bin/file -L' 11896 lt_cv_file_magic_test_file=/shlib/libc.so 11897 ;; 11898 11899 cygwin*) 11900 # func_win32_libid is a shell function defined in ltmain.sh 11901 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11902 lt_cv_file_magic_cmd='func_win32_libid' 11903 ;; 11904 11905 mingw* | pw32*) 11906 # Base MSYS/MinGW do not provide the 'file' command needed by 11907 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11908 # unless we find 'file', for example because we are cross-compiling. 11909 if ( file / ) >/dev/null 2>&1; then 11910 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11911 lt_cv_file_magic_cmd='func_win32_libid' 11912 else 11913 # Keep this pattern in sync with the one in func_win32_libid. 11914 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11915 lt_cv_file_magic_cmd='$OBJDUMP -f' 11916 fi 11917 ;; 11918 11919 cegcc*) 11920 # use the weaker test based on 'objdump'. See mingw*. 11921 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11922 lt_cv_file_magic_cmd='$OBJDUMP -f' 11923 ;; 11924 11925 darwin* | rhapsody*) 11926 lt_cv_deplibs_check_method=pass_all 11927 ;; 11928 11929 freebsd* | dragonfly*) 11930 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11931 case $host_cpu in 11932 i*86 ) 11933 # Not sure whether the presence of OpenBSD here was a mistake. 11934 # Let's accept both of them until this is cleared up. 11935 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11936 lt_cv_file_magic_cmd=/usr/bin/file 11937 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11938 ;; 11939 esac 11940 else 11941 lt_cv_deplibs_check_method=pass_all 11942 fi 11943 ;; 11944 11945 haiku*) 11946 lt_cv_deplibs_check_method=pass_all 11947 ;; 11948 11949 hpux10.20* | hpux11*) 11950 lt_cv_file_magic_cmd=/usr/bin/file 11951 case $host_cpu in 11952 ia64*) 11953 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11954 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11955 ;; 11956 hppa*64*) 11957 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]' 11958 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11959 ;; 11960 *) 11961 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11962 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11963 ;; 11964 esac 11965 ;; 11966 11967 interix[3-9]*) 11968 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11969 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11970 ;; 11971 11972 irix5* | irix6* | nonstopux*) 11973 case $LD in 11974 *-32|*"-32 ") libmagic=32-bit;; 11975 *-n32|*"-n32 ") libmagic=N32;; 11976 *-64|*"-64 ") libmagic=64-bit;; 11977 *) libmagic=never-match;; 11978 esac 11979 lt_cv_deplibs_check_method=pass_all 11980 ;; 11981 11982 # This must be glibc/ELF. 11983 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11984 lt_cv_deplibs_check_method=pass_all 11985 ;; 11986 11987 netbsd* | netbsdelf*-gnu) 11988 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11989 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11990 else 11991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 11992 fi 11993 ;; 11994 11995 newos6*) 11996 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 11997 lt_cv_file_magic_cmd=/usr/bin/file 11998 lt_cv_file_magic_test_file=/usr/lib/libnls.so 11999 ;; 12000 12001 *nto* | *qnx*) 12002 lt_cv_deplibs_check_method=pass_all 12003 ;; 12004 12005 openbsd* | bitrig*) 12006 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12008 else 12009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12010 fi 12011 ;; 12012 12013 osf3* | osf4* | osf5*) 12014 lt_cv_deplibs_check_method=pass_all 12015 ;; 12016 12017 rdos*) 12018 lt_cv_deplibs_check_method=pass_all 12019 ;; 12020 12021 solaris*) 12022 lt_cv_deplibs_check_method=pass_all 12023 ;; 12024 12025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12026 lt_cv_deplibs_check_method=pass_all 12027 ;; 12028 12029 sysv4 | sysv4.3*) 12030 case $host_vendor in 12031 motorola) 12032 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]' 12033 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12034 ;; 12035 ncr) 12036 lt_cv_deplibs_check_method=pass_all 12037 ;; 12038 sequent) 12039 lt_cv_file_magic_cmd='/bin/file' 12040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12041 ;; 12042 sni) 12043 lt_cv_file_magic_cmd='/bin/file' 12044 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12045 lt_cv_file_magic_test_file=/lib/libc.so 12046 ;; 12047 siemens) 12048 lt_cv_deplibs_check_method=pass_all 12049 ;; 12050 pc) 12051 lt_cv_deplibs_check_method=pass_all 12052 ;; 12053 esac 12054 ;; 12055 12056 tpf*) 12057 lt_cv_deplibs_check_method=pass_all 12058 ;; 12059 os2*) 12060 lt_cv_deplibs_check_method=pass_all 12061 ;; 12062 esac 12063 12064 fi 12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12066 $as_echo "$lt_cv_deplibs_check_method" >&6; } 12067 12068 file_magic_glob= 12069 want_nocaseglob=no 12070 if test "$build" = "$host"; then 12071 case $host_os in 12072 mingw* | pw32*) 12073 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12074 want_nocaseglob=yes 12075 else 12076 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12077 fi 12078 ;; 12079 esac 12080 fi 12081 12082 file_magic_cmd=$lt_cv_file_magic_cmd 12083 deplibs_check_method=$lt_cv_deplibs_check_method 12084 test -z "$deplibs_check_method" && deplibs_check_method=unknown 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 if test -n "$ac_tool_prefix"; then 12108 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12109 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12111 $as_echo_n "checking for $ac_word... " >&6; } 12112 if ${ac_cv_prog_DLLTOOL+:} false; then : 12113 $as_echo_n "(cached) " >&6 12114 else 12115 if test -n "$DLLTOOL"; then 12116 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12117 else 12118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12119 for as_dir in $PATH 12120 do 12121 IFS=$as_save_IFS 12122 test -z "$as_dir" && as_dir=. 12123 for ac_exec_ext in '' $ac_executable_extensions; do 12124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12125 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12127 break 2 12128 fi 12129 done 12130 done 12131 IFS=$as_save_IFS 12132 12133 fi 12134 fi 12135 DLLTOOL=$ac_cv_prog_DLLTOOL 12136 if test -n "$DLLTOOL"; then 12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12138 $as_echo "$DLLTOOL" >&6; } 12139 else 12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12141 $as_echo "no" >&6; } 12142 fi 12143 12144 12145 fi 12146 if test -z "$ac_cv_prog_DLLTOOL"; then 12147 ac_ct_DLLTOOL=$DLLTOOL 12148 # Extract the first word of "dlltool", so it can be a program name with args. 12149 set dummy dlltool; ac_word=$2 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12151 $as_echo_n "checking for $ac_word... " >&6; } 12152 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12153 $as_echo_n "(cached) " >&6 12154 else 12155 if test -n "$ac_ct_DLLTOOL"; then 12156 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12157 else 12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12159 for as_dir in $PATH 12160 do 12161 IFS=$as_save_IFS 12162 test -z "$as_dir" && as_dir=. 12163 for ac_exec_ext in '' $ac_executable_extensions; do 12164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12165 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12167 break 2 12168 fi 12169 done 12170 done 12171 IFS=$as_save_IFS 12172 12173 fi 12174 fi 12175 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12176 if test -n "$ac_ct_DLLTOOL"; then 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12178 $as_echo "$ac_ct_DLLTOOL" >&6; } 12179 else 12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12181 $as_echo "no" >&6; } 12182 fi 12183 12184 if test "x$ac_ct_DLLTOOL" = x; then 12185 DLLTOOL="false" 12186 else 12187 case $cross_compiling:$ac_tool_warned in 12188 yes:) 12189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12191 ac_tool_warned=yes ;; 12192 esac 12193 DLLTOOL=$ac_ct_DLLTOOL 12194 fi 12195 else 12196 DLLTOOL="$ac_cv_prog_DLLTOOL" 12197 fi 12198 12199 test -z "$DLLTOOL" && DLLTOOL=dlltool 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12211 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12212 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12213 $as_echo_n "(cached) " >&6 12214 else 12215 lt_cv_sharedlib_from_linklib_cmd='unknown' 12216 12217 case $host_os in 12218 cygwin* | mingw* | pw32* | cegcc*) 12219 # two different shell functions defined in ltmain.sh; 12220 # decide which one to use based on capabilities of $DLLTOOL 12221 case `$DLLTOOL --help 2>&1` in 12222 *--identify-strict*) 12223 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12224 ;; 12225 *) 12226 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12227 ;; 12228 esac 12229 ;; 12230 *) 12231 # fallback: assume linklib IS sharedlib 12232 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12233 ;; 12234 esac 12235 12236 fi 12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12238 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12239 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12240 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12241 12242 12243 12244 12245 12246 12247 12248 if test -n "$ac_tool_prefix"; then 12249 for ac_prog in ar 12250 do 12251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12254 $as_echo_n "checking for $ac_word... " >&6; } 12255 if ${ac_cv_prog_AR+:} false; then : 12256 $as_echo_n "(cached) " >&6 12257 else 12258 if test -n "$AR"; then 12259 ac_cv_prog_AR="$AR" # Let the user override the test. 12260 else 12261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12262 for as_dir in $PATH 12263 do 12264 IFS=$as_save_IFS 12265 test -z "$as_dir" && as_dir=. 12266 for ac_exec_ext in '' $ac_executable_extensions; do 12267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12268 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12270 break 2 12271 fi 12272 done 12273 done 12274 IFS=$as_save_IFS 12275 12276 fi 12277 fi 12278 AR=$ac_cv_prog_AR 12279 if test -n "$AR"; then 12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12281 $as_echo "$AR" >&6; } 12282 else 12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12284 $as_echo "no" >&6; } 12285 fi 12286 12287 12288 test -n "$AR" && break 12289 done 12290 fi 12291 if test -z "$AR"; then 12292 ac_ct_AR=$AR 12293 for ac_prog in ar 12294 do 12295 # Extract the first word of "$ac_prog", so it can be a program name with args. 12296 set dummy $ac_prog; ac_word=$2 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12298 $as_echo_n "checking for $ac_word... " >&6; } 12299 if ${ac_cv_prog_ac_ct_AR+:} false; then : 12300 $as_echo_n "(cached) " >&6 12301 else 12302 if test -n "$ac_ct_AR"; then 12303 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12304 else 12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12306 for as_dir in $PATH 12307 do 12308 IFS=$as_save_IFS 12309 test -z "$as_dir" && as_dir=. 12310 for ac_exec_ext in '' $ac_executable_extensions; do 12311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12312 ac_cv_prog_ac_ct_AR="$ac_prog" 12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12314 break 2 12315 fi 12316 done 12317 done 12318 IFS=$as_save_IFS 12319 12320 fi 12321 fi 12322 ac_ct_AR=$ac_cv_prog_ac_ct_AR 12323 if test -n "$ac_ct_AR"; then 12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12325 $as_echo "$ac_ct_AR" >&6; } 12326 else 12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12328 $as_echo "no" >&6; } 12329 fi 12330 12331 12332 test -n "$ac_ct_AR" && break 12333 done 12334 12335 if test "x$ac_ct_AR" = x; then 12336 AR="false" 12337 else 12338 case $cross_compiling:$ac_tool_warned in 12339 yes:) 12340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12342 ac_tool_warned=yes ;; 12343 esac 12344 AR=$ac_ct_AR 12345 fi 12346 fi 12347 12348 : ${AR=ar} 12349 : ${AR_FLAGS=cru} 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12362 $as_echo_n "checking for archiver @FILE support... " >&6; } 12363 if ${lt_cv_ar_at_file+:} false; then : 12364 $as_echo_n "(cached) " >&6 12365 else 12366 lt_cv_ar_at_file=no 12367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12368 /* end confdefs.h. */ 12369 12370 int 12371 main () 12372 { 12373 12374 ; 12375 return 0; 12376 } 12377 _ACEOF 12378 if ac_fn_c_try_compile "$LINENO"; then : 12379 echo conftest.$ac_objext > conftest.lst 12380 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12382 (eval $lt_ar_try) 2>&5 12383 ac_status=$? 12384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12385 test $ac_status = 0; } 12386 if test 0 -eq "$ac_status"; then 12387 # Ensure the archiver fails upon bogus file names. 12388 rm -f conftest.$ac_objext libconftest.a 12389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12390 (eval $lt_ar_try) 2>&5 12391 ac_status=$? 12392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12393 test $ac_status = 0; } 12394 if test 0 -ne "$ac_status"; then 12395 lt_cv_ar_at_file=@ 12396 fi 12397 fi 12398 rm -f conftest.* libconftest.a 12399 12400 fi 12401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12402 12403 fi 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12405 $as_echo "$lt_cv_ar_at_file" >&6; } 12406 12407 if test no = "$lt_cv_ar_at_file"; then 12408 archiver_list_spec= 12409 else 12410 archiver_list_spec=$lt_cv_ar_at_file 12411 fi 12412 12413 12414 12415 12416 12417 12418 12419 if test -n "$ac_tool_prefix"; then 12420 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12421 set dummy ${ac_tool_prefix}strip; ac_word=$2 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12423 $as_echo_n "checking for $ac_word... " >&6; } 12424 if ${ac_cv_prog_STRIP+:} false; then : 12425 $as_echo_n "(cached) " >&6 12426 else 12427 if test -n "$STRIP"; then 12428 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12429 else 12430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12431 for as_dir in $PATH 12432 do 12433 IFS=$as_save_IFS 12434 test -z "$as_dir" && as_dir=. 12435 for ac_exec_ext in '' $ac_executable_extensions; do 12436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12437 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12439 break 2 12440 fi 12441 done 12442 done 12443 IFS=$as_save_IFS 12444 12445 fi 12446 fi 12447 STRIP=$ac_cv_prog_STRIP 12448 if test -n "$STRIP"; then 12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12450 $as_echo "$STRIP" >&6; } 12451 else 12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12453 $as_echo "no" >&6; } 12454 fi 12455 12456 12457 fi 12458 if test -z "$ac_cv_prog_STRIP"; then 12459 ac_ct_STRIP=$STRIP 12460 # Extract the first word of "strip", so it can be a program name with args. 12461 set dummy strip; ac_word=$2 12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12463 $as_echo_n "checking for $ac_word... " >&6; } 12464 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12465 $as_echo_n "(cached) " >&6 12466 else 12467 if test -n "$ac_ct_STRIP"; then 12468 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12469 else 12470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12471 for as_dir in $PATH 12472 do 12473 IFS=$as_save_IFS 12474 test -z "$as_dir" && as_dir=. 12475 for ac_exec_ext in '' $ac_executable_extensions; do 12476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12477 ac_cv_prog_ac_ct_STRIP="strip" 12478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12479 break 2 12480 fi 12481 done 12482 done 12483 IFS=$as_save_IFS 12484 12485 fi 12486 fi 12487 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12488 if test -n "$ac_ct_STRIP"; then 12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12490 $as_echo "$ac_ct_STRIP" >&6; } 12491 else 12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12493 $as_echo "no" >&6; } 12494 fi 12495 12496 if test "x$ac_ct_STRIP" = x; then 12497 STRIP=":" 12498 else 12499 case $cross_compiling:$ac_tool_warned in 12500 yes:) 12501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12503 ac_tool_warned=yes ;; 12504 esac 12505 STRIP=$ac_ct_STRIP 12506 fi 12507 else 12508 STRIP="$ac_cv_prog_STRIP" 12509 fi 12510 12511 test -z "$STRIP" && STRIP=: 12512 12513 12514 12515 12516 12517 12518 if test -n "$ac_tool_prefix"; then 12519 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12520 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12522 $as_echo_n "checking for $ac_word... " >&6; } 12523 if ${ac_cv_prog_RANLIB+:} false; then : 12524 $as_echo_n "(cached) " >&6 12525 else 12526 if test -n "$RANLIB"; then 12527 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12528 else 12529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12530 for as_dir in $PATH 12531 do 12532 IFS=$as_save_IFS 12533 test -z "$as_dir" && as_dir=. 12534 for ac_exec_ext in '' $ac_executable_extensions; do 12535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12536 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12538 break 2 12539 fi 12540 done 12541 done 12542 IFS=$as_save_IFS 12543 12544 fi 12545 fi 12546 RANLIB=$ac_cv_prog_RANLIB 12547 if test -n "$RANLIB"; then 12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12549 $as_echo "$RANLIB" >&6; } 12550 else 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12552 $as_echo "no" >&6; } 12553 fi 12554 12555 12556 fi 12557 if test -z "$ac_cv_prog_RANLIB"; then 12558 ac_ct_RANLIB=$RANLIB 12559 # Extract the first word of "ranlib", so it can be a program name with args. 12560 set dummy ranlib; ac_word=$2 12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12562 $as_echo_n "checking for $ac_word... " >&6; } 12563 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12564 $as_echo_n "(cached) " >&6 12565 else 12566 if test -n "$ac_ct_RANLIB"; then 12567 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12568 else 12569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12570 for as_dir in $PATH 12571 do 12572 IFS=$as_save_IFS 12573 test -z "$as_dir" && as_dir=. 12574 for ac_exec_ext in '' $ac_executable_extensions; do 12575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12576 ac_cv_prog_ac_ct_RANLIB="ranlib" 12577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12578 break 2 12579 fi 12580 done 12581 done 12582 IFS=$as_save_IFS 12583 12584 fi 12585 fi 12586 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12587 if test -n "$ac_ct_RANLIB"; then 12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12589 $as_echo "$ac_ct_RANLIB" >&6; } 12590 else 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12592 $as_echo "no" >&6; } 12593 fi 12594 12595 if test "x$ac_ct_RANLIB" = x; then 12596 RANLIB=":" 12597 else 12598 case $cross_compiling:$ac_tool_warned in 12599 yes:) 12600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12602 ac_tool_warned=yes ;; 12603 esac 12604 RANLIB=$ac_ct_RANLIB 12605 fi 12606 else 12607 RANLIB="$ac_cv_prog_RANLIB" 12608 fi 12609 12610 test -z "$RANLIB" && RANLIB=: 12611 12612 12613 12614 12615 12616 12617 # Determine commands to create old-style static archives. 12618 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12619 old_postinstall_cmds='chmod 644 $oldlib' 12620 old_postuninstall_cmds= 12621 12622 if test -n "$RANLIB"; then 12623 case $host_os in 12624 bitrig* | openbsd*) 12625 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12626 ;; 12627 *) 12628 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12629 ;; 12630 esac 12631 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12632 fi 12633 12634 case $host_os in 12635 darwin*) 12636 lock_old_archive_extraction=yes ;; 12637 *) 12638 lock_old_archive_extraction=no ;; 12639 esac 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 # If no C compiler was specified, use CC. 12680 LTCC=${LTCC-"$CC"} 12681 12682 # If no C compiler flags were specified, use CFLAGS. 12683 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12684 12685 # Allow CC to be a program name with arguments. 12686 compiler=$CC 12687 12688 12689 # Check for command to grab the raw symbol name followed by C symbol from nm. 12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12691 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12692 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12693 $as_echo_n "(cached) " >&6 12694 else 12695 12696 # These are sane defaults that work on at least a few old systems. 12697 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 12698 12699 # Character class describing NM global symbol codes. 12700 symcode='[BCDEGRST]' 12701 12702 # Regexp to match symbols that can be accessed directly from C. 12703 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12704 12705 # Define system-specific variables. 12706 case $host_os in 12707 aix*) 12708 symcode='[BCDT]' 12709 ;; 12710 cygwin* | mingw* | pw32* | cegcc*) 12711 symcode='[ABCDGISTW]' 12712 ;; 12713 hpux*) 12714 if test ia64 = "$host_cpu"; then 12715 symcode='[ABCDEGRST]' 12716 fi 12717 ;; 12718 irix* | nonstopux*) 12719 symcode='[BCDEGRST]' 12720 ;; 12721 osf*) 12722 symcode='[BCDEGQRST]' 12723 ;; 12724 solaris*) 12725 symcode='[BDRT]' 12726 ;; 12727 sco3.2v5*) 12728 symcode='[DT]' 12729 ;; 12730 sysv4.2uw2*) 12731 symcode='[DT]' 12732 ;; 12733 sysv5* | sco5v6* | unixware* | OpenUNIX*) 12734 symcode='[ABDT]' 12735 ;; 12736 sysv4) 12737 symcode='[DFNSTU]' 12738 ;; 12739 esac 12740 12741 # If we're using GNU nm, then use its standard symbol codes. 12742 case `$NM -V 2>&1` in 12743 *GNU* | *'with BFD'*) 12744 symcode='[ABCDGIRSTW]' ;; 12745 esac 12746 12747 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12748 # Gets list of data symbols to import. 12749 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 12750 # Adjust the below global symbol transforms to fixup imported variables. 12751 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 12752 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 12753 lt_c_name_lib_hook="\ 12754 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 12755 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 12756 else 12757 # Disable hooks by default. 12758 lt_cv_sys_global_symbol_to_import= 12759 lt_cdecl_hook= 12760 lt_c_name_hook= 12761 lt_c_name_lib_hook= 12762 fi 12763 12764 # Transform an extracted symbol line into a proper C declaration. 12765 # Some systems (esp. on ia64) link data and code symbols differently, 12766 # so use this general approach. 12767 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 12768 $lt_cdecl_hook\ 12769 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 12770 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 12771 12772 # Transform an extracted symbol line into symbol name and symbol address 12773 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 12774 $lt_c_name_hook\ 12775 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12776 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 12777 12778 # Transform an extracted symbol line into symbol name with lib prefix and 12779 # symbol address. 12780 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 12781 $lt_c_name_lib_hook\ 12782 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12783 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 12784 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 12785 12786 # Handle CRLF in mingw tool chain 12787 opt_cr= 12788 case $build_os in 12789 mingw*) 12790 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12791 ;; 12792 esac 12793 12794 # Try without a prefix underscore, then with it. 12795 for ac_symprfx in "" "_"; do 12796 12797 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12798 symxfrm="\\1 $ac_symprfx\\2 \\2" 12799 12800 # Write the raw and C identifiers. 12801 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12802 # Fake it for dumpbin and say T for any non-static function, 12803 # D for any global variable and I for any imported variable. 12804 # Also find C++ and __fastcall symbols from MSVC++, 12805 # which start with @ or ?. 12806 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12807 " {last_section=section; section=\$ 3};"\ 12808 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12809 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12810 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 12811 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 12812 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 12813 " \$ 0!~/External *\|/{next};"\ 12814 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12815 " {if(hide[section]) next};"\ 12816 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 12817 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 12818 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 12819 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 12820 " ' prfx=^$ac_symprfx" 12821 else 12822 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12823 fi 12824 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12825 12826 # Check to see that the pipe works correctly. 12827 pipe_works=no 12828 12829 rm -f conftest* 12830 cat > conftest.$ac_ext <<_LT_EOF 12831 #ifdef __cplusplus 12832 extern "C" { 12833 #endif 12834 char nm_test_var; 12835 void nm_test_func(void); 12836 void nm_test_func(void){} 12837 #ifdef __cplusplus 12838 } 12839 #endif 12840 int main(){nm_test_var='a';nm_test_func();return(0);} 12841 _LT_EOF 12842 12843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12844 (eval $ac_compile) 2>&5 12845 ac_status=$? 12846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12847 test $ac_status = 0; }; then 12848 # Now try to grab the symbols. 12849 nlist=conftest.nm 12850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12851 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12852 ac_status=$? 12853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12854 test $ac_status = 0; } && test -s "$nlist"; then 12855 # Try sorting and uniquifying the output. 12856 if sort "$nlist" | uniq > "$nlist"T; then 12857 mv -f "$nlist"T "$nlist" 12858 else 12859 rm -f "$nlist"T 12860 fi 12861 12862 # Make sure that we snagged all the symbols we need. 12863 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12864 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12865 cat <<_LT_EOF > conftest.$ac_ext 12866 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12867 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 12868 /* DATA imports from DLLs on WIN32 can't be const, because runtime 12869 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12870 # define LT_DLSYM_CONST 12871 #elif defined __osf__ 12872 /* This system does not cope well with relocations in const data. */ 12873 # define LT_DLSYM_CONST 12874 #else 12875 # define LT_DLSYM_CONST const 12876 #endif 12877 12878 #ifdef __cplusplus 12879 extern "C" { 12880 #endif 12881 12882 _LT_EOF 12883 # Now generate the symbol file. 12884 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12885 12886 cat <<_LT_EOF >> conftest.$ac_ext 12887 12888 /* The mapping between symbol names and symbols. */ 12889 LT_DLSYM_CONST struct { 12890 const char *name; 12891 void *address; 12892 } 12893 lt__PROGRAM__LTX_preloaded_symbols[] = 12894 { 12895 { "@PROGRAM@", (void *) 0 }, 12896 _LT_EOF 12897 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12898 cat <<\_LT_EOF >> conftest.$ac_ext 12899 {0, (void *) 0} 12900 }; 12901 12902 /* This works around a problem in FreeBSD linker */ 12903 #ifdef FREEBSD_WORKAROUND 12904 static const void *lt_preloaded_setup() { 12905 return lt__PROGRAM__LTX_preloaded_symbols; 12906 } 12907 #endif 12908 12909 #ifdef __cplusplus 12910 } 12911 #endif 12912 _LT_EOF 12913 # Now try linking the two files. 12914 mv conftest.$ac_objext conftstm.$ac_objext 12915 lt_globsym_save_LIBS=$LIBS 12916 lt_globsym_save_CFLAGS=$CFLAGS 12917 LIBS=conftstm.$ac_objext 12918 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12920 (eval $ac_link) 2>&5 12921 ac_status=$? 12922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12923 test $ac_status = 0; } && test -s conftest$ac_exeext; then 12924 pipe_works=yes 12925 fi 12926 LIBS=$lt_globsym_save_LIBS 12927 CFLAGS=$lt_globsym_save_CFLAGS 12928 else 12929 echo "cannot find nm_test_func in $nlist" >&5 12930 fi 12931 else 12932 echo "cannot find nm_test_var in $nlist" >&5 12933 fi 12934 else 12935 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12936 fi 12937 else 12938 echo "$progname: failed program was:" >&5 12939 cat conftest.$ac_ext >&5 12940 fi 12941 rm -rf conftest* conftst* 12942 12943 # Do not use the global_symbol_pipe unless it works. 12944 if test yes = "$pipe_works"; then 12945 break 12946 else 12947 lt_cv_sys_global_symbol_pipe= 12948 fi 12949 done 12950 12951 fi 12952 12953 if test -z "$lt_cv_sys_global_symbol_pipe"; then 12954 lt_cv_sys_global_symbol_to_cdecl= 12955 fi 12956 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12958 $as_echo "failed" >&6; } 12959 else 12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12961 $as_echo "ok" >&6; } 12962 fi 12963 12964 # Response file support. 12965 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12966 nm_file_list_spec='@' 12967 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12968 nm_file_list_spec='@' 12969 fi 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13008 $as_echo_n "checking for sysroot... " >&6; } 13009 13010 # Check whether --with-sysroot was given. 13011 if test "${with_sysroot+set}" = set; then : 13012 withval=$with_sysroot; 13013 else 13014 with_sysroot=no 13015 fi 13016 13017 13018 lt_sysroot= 13019 case $with_sysroot in #( 13020 yes) 13021 if test yes = "$GCC"; then 13022 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13023 fi 13024 ;; #( 13025 /*) 13026 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13027 ;; #( 13028 no|'') 13029 ;; #( 13030 *) 13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13032 $as_echo "$with_sysroot" >&6; } 13033 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13034 ;; 13035 esac 13036 13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13038 $as_echo "${lt_sysroot:-no}" >&6; } 13039 13040 13041 13042 13043 13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13045 $as_echo_n "checking for a working dd... " >&6; } 13046 if ${ac_cv_path_lt_DD+:} false; then : 13047 $as_echo_n "(cached) " >&6 13048 else 13049 printf 0123456789abcdef0123456789abcdef >conftest.i 13050 cat conftest.i conftest.i >conftest2.i 13051 : ${lt_DD:=$DD} 13052 if test -z "$lt_DD"; then 13053 ac_path_lt_DD_found=false 13054 # Loop through the user's path and test for each of PROGNAME-LIST 13055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13056 for as_dir in $PATH 13057 do 13058 IFS=$as_save_IFS 13059 test -z "$as_dir" && as_dir=. 13060 for ac_prog in dd; do 13061 for ac_exec_ext in '' $ac_executable_extensions; do 13062 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13063 as_fn_executable_p "$ac_path_lt_DD" || continue 13064 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13065 cmp -s conftest.i conftest.out \ 13066 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13067 fi 13068 $ac_path_lt_DD_found && break 3 13069 done 13070 done 13071 done 13072 IFS=$as_save_IFS 13073 if test -z "$ac_cv_path_lt_DD"; then 13074 : 13075 fi 13076 else 13077 ac_cv_path_lt_DD=$lt_DD 13078 fi 13079 13080 rm -f conftest.i conftest2.i conftest.out 13081 fi 13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13083 $as_echo "$ac_cv_path_lt_DD" >&6; } 13084 13085 13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13087 $as_echo_n "checking how to truncate binary pipes... " >&6; } 13088 if ${lt_cv_truncate_bin+:} false; then : 13089 $as_echo_n "(cached) " >&6 13090 else 13091 printf 0123456789abcdef0123456789abcdef >conftest.i 13092 cat conftest.i conftest.i >conftest2.i 13093 lt_cv_truncate_bin= 13094 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13095 cmp -s conftest.i conftest.out \ 13096 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13097 fi 13098 rm -f conftest.i conftest2.i conftest.out 13099 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13100 fi 13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13102 $as_echo "$lt_cv_truncate_bin" >&6; } 13103 13104 13105 13106 13107 13108 13109 13110 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13111 func_cc_basename () 13112 { 13113 for cc_temp in $*""; do 13114 case $cc_temp in 13115 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13116 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13117 \-*) ;; 13118 *) break;; 13119 esac 13120 done 13121 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13122 } 13123 13124 # Check whether --enable-libtool-lock was given. 13125 if test "${enable_libtool_lock+set}" = set; then : 13126 enableval=$enable_libtool_lock; 13127 fi 13128 13129 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13130 13131 # Some flags need to be propagated to the compiler or linker for good 13132 # libtool support. 13133 case $host in 13134 ia64-*-hpux*) 13135 # Find out what ABI is being produced by ac_compile, and set mode 13136 # options accordingly. 13137 echo 'int i;' > conftest.$ac_ext 13138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13139 (eval $ac_compile) 2>&5 13140 ac_status=$? 13141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13142 test $ac_status = 0; }; then 13143 case `/usr/bin/file conftest.$ac_objext` in 13144 *ELF-32*) 13145 HPUX_IA64_MODE=32 13146 ;; 13147 *ELF-64*) 13148 HPUX_IA64_MODE=64 13149 ;; 13150 esac 13151 fi 13152 rm -rf conftest* 13153 ;; 13154 *-*-irix6*) 13155 # Find out what ABI is being produced by ac_compile, and set linker 13156 # options accordingly. 13157 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13159 (eval $ac_compile) 2>&5 13160 ac_status=$? 13161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13162 test $ac_status = 0; }; then 13163 if test yes = "$lt_cv_prog_gnu_ld"; then 13164 case `/usr/bin/file conftest.$ac_objext` in 13165 *32-bit*) 13166 LD="${LD-ld} -melf32bsmip" 13167 ;; 13168 *N32*) 13169 LD="${LD-ld} -melf32bmipn32" 13170 ;; 13171 *64-bit*) 13172 LD="${LD-ld} -melf64bmip" 13173 ;; 13174 esac 13175 else 13176 case `/usr/bin/file conftest.$ac_objext` in 13177 *32-bit*) 13178 LD="${LD-ld} -32" 13179 ;; 13180 *N32*) 13181 LD="${LD-ld} -n32" 13182 ;; 13183 *64-bit*) 13184 LD="${LD-ld} -64" 13185 ;; 13186 esac 13187 fi 13188 fi 13189 rm -rf conftest* 13190 ;; 13191 13192 mips64*-*linux*) 13193 # Find out what ABI is being produced by ac_compile, and set linker 13194 # options accordingly. 13195 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13197 (eval $ac_compile) 2>&5 13198 ac_status=$? 13199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13200 test $ac_status = 0; }; then 13201 emul=elf 13202 case `/usr/bin/file conftest.$ac_objext` in 13203 *32-bit*) 13204 emul="${emul}32" 13205 ;; 13206 *64-bit*) 13207 emul="${emul}64" 13208 ;; 13209 esac 13210 case `/usr/bin/file conftest.$ac_objext` in 13211 *MSB*) 13212 emul="${emul}btsmip" 13213 ;; 13214 *LSB*) 13215 emul="${emul}ltsmip" 13216 ;; 13217 esac 13218 case `/usr/bin/file conftest.$ac_objext` in 13219 *N32*) 13220 emul="${emul}n32" 13221 ;; 13222 esac 13223 LD="${LD-ld} -m $emul" 13224 fi 13225 rm -rf conftest* 13226 ;; 13227 13228 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13229 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13230 # Find out what ABI is being produced by ac_compile, and set linker 13231 # options accordingly. Note that the listed cases only cover the 13232 # situations where additional linker options are needed (such as when 13233 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13234 # vice versa); the common cases where no linker options are needed do 13235 # not appear in the list. 13236 echo 'int i;' > conftest.$ac_ext 13237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13238 (eval $ac_compile) 2>&5 13239 ac_status=$? 13240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13241 test $ac_status = 0; }; then 13242 case `/usr/bin/file conftest.o` in 13243 *32-bit*) 13244 case $host in 13245 x86_64-*kfreebsd*-gnu) 13246 LD="${LD-ld} -m elf_i386_fbsd" 13247 ;; 13248 x86_64-*linux*) 13249 case `/usr/bin/file conftest.o` in 13250 *x86-64*) 13251 LD="${LD-ld} -m elf32_x86_64" 13252 ;; 13253 *) 13254 LD="${LD-ld} -m elf_i386" 13255 ;; 13256 esac 13257 ;; 13258 powerpc64le-*linux*) 13259 LD="${LD-ld} -m elf32lppclinux" 13260 ;; 13261 powerpc64-*linux*) 13262 LD="${LD-ld} -m elf32ppclinux" 13263 ;; 13264 s390x-*linux*) 13265 LD="${LD-ld} -m elf_s390" 13266 ;; 13267 sparc64-*linux*) 13268 LD="${LD-ld} -m elf32_sparc" 13269 ;; 13270 esac 13271 ;; 13272 *64-bit*) 13273 case $host in 13274 x86_64-*kfreebsd*-gnu) 13275 LD="${LD-ld} -m elf_x86_64_fbsd" 13276 ;; 13277 x86_64-*linux*) 13278 LD="${LD-ld} -m elf_x86_64" 13279 ;; 13280 powerpcle-*linux*) 13281 LD="${LD-ld} -m elf64lppc" 13282 ;; 13283 powerpc-*linux*) 13284 LD="${LD-ld} -m elf64ppc" 13285 ;; 13286 s390*-*linux*|s390*-*tpf*) 13287 LD="${LD-ld} -m elf64_s390" 13288 ;; 13289 sparc*-*linux*) 13290 LD="${LD-ld} -m elf64_sparc" 13291 ;; 13292 esac 13293 ;; 13294 esac 13295 fi 13296 rm -rf conftest* 13297 ;; 13298 13299 *-*-sco3.2v5*) 13300 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13301 SAVE_CFLAGS=$CFLAGS 13302 CFLAGS="$CFLAGS -belf" 13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13304 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13305 if ${lt_cv_cc_needs_belf+:} false; then : 13306 $as_echo_n "(cached) " >&6 13307 else 13308 ac_ext=c 13309 ac_cpp='$CPP $CPPFLAGS' 13310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13312 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13313 13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13315 /* end confdefs.h. */ 13316 13317 int 13318 main () 13319 { 13320 13321 ; 13322 return 0; 13323 } 13324 _ACEOF 13325 if ac_fn_c_try_link "$LINENO"; then : 13326 lt_cv_cc_needs_belf=yes 13327 else 13328 lt_cv_cc_needs_belf=no 13329 fi 13330 rm -f core conftest.err conftest.$ac_objext \ 13331 conftest$ac_exeext conftest.$ac_ext 13332 ac_ext=c 13333 ac_cpp='$CPP $CPPFLAGS' 13334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13336 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13337 13338 fi 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13340 $as_echo "$lt_cv_cc_needs_belf" >&6; } 13341 if test yes != "$lt_cv_cc_needs_belf"; then 13342 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13343 CFLAGS=$SAVE_CFLAGS 13344 fi 13345 ;; 13346 *-*solaris*) 13347 # Find out what ABI is being produced by ac_compile, and set linker 13348 # options accordingly. 13349 echo 'int i;' > conftest.$ac_ext 13350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13351 (eval $ac_compile) 2>&5 13352 ac_status=$? 13353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13354 test $ac_status = 0; }; then 13355 case `/usr/bin/file conftest.o` in 13356 *64-bit*) 13357 case $lt_cv_prog_gnu_ld in 13358 yes*) 13359 case $host in 13360 i?86-*-solaris*|x86_64-*-solaris*) 13361 LD="${LD-ld} -m elf_x86_64" 13362 ;; 13363 sparc*-*-solaris*) 13364 LD="${LD-ld} -m elf64_sparc" 13365 ;; 13366 esac 13367 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13368 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13369 LD=${LD-ld}_sol2 13370 fi 13371 ;; 13372 *) 13373 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13374 LD="${LD-ld} -64" 13375 fi 13376 ;; 13377 esac 13378 ;; 13379 esac 13380 fi 13381 rm -rf conftest* 13382 ;; 13383 esac 13384 13385 need_locks=$enable_libtool_lock 13386 13387 if test -n "$ac_tool_prefix"; then 13388 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13389 set dummy ${ac_tool_prefix}mt; ac_word=$2 13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13391 $as_echo_n "checking for $ac_word... " >&6; } 13392 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13393 $as_echo_n "(cached) " >&6 13394 else 13395 if test -n "$MANIFEST_TOOL"; then 13396 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13397 else 13398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13399 for as_dir in $PATH 13400 do 13401 IFS=$as_save_IFS 13402 test -z "$as_dir" && as_dir=. 13403 for ac_exec_ext in '' $ac_executable_extensions; do 13404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13405 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13407 break 2 13408 fi 13409 done 13410 done 13411 IFS=$as_save_IFS 13412 13413 fi 13414 fi 13415 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13416 if test -n "$MANIFEST_TOOL"; then 13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13418 $as_echo "$MANIFEST_TOOL" >&6; } 13419 else 13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13421 $as_echo "no" >&6; } 13422 fi 13423 13424 13425 fi 13426 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13427 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13428 # Extract the first word of "mt", so it can be a program name with args. 13429 set dummy mt; ac_word=$2 13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13431 $as_echo_n "checking for $ac_word... " >&6; } 13432 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13433 $as_echo_n "(cached) " >&6 13434 else 13435 if test -n "$ac_ct_MANIFEST_TOOL"; then 13436 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13437 else 13438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13439 for as_dir in $PATH 13440 do 13441 IFS=$as_save_IFS 13442 test -z "$as_dir" && as_dir=. 13443 for ac_exec_ext in '' $ac_executable_extensions; do 13444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13445 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13447 break 2 13448 fi 13449 done 13450 done 13451 IFS=$as_save_IFS 13452 13453 fi 13454 fi 13455 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13456 if test -n "$ac_ct_MANIFEST_TOOL"; then 13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13458 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13459 else 13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13461 $as_echo "no" >&6; } 13462 fi 13463 13464 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13465 MANIFEST_TOOL=":" 13466 else 13467 case $cross_compiling:$ac_tool_warned in 13468 yes:) 13469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13471 ac_tool_warned=yes ;; 13472 esac 13473 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13474 fi 13475 else 13476 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13477 fi 13478 13479 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13481 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13482 if ${lt_cv_path_mainfest_tool+:} false; then : 13483 $as_echo_n "(cached) " >&6 13484 else 13485 lt_cv_path_mainfest_tool=no 13486 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13487 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13488 cat conftest.err >&5 13489 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13490 lt_cv_path_mainfest_tool=yes 13491 fi 13492 rm -f conftest* 13493 fi 13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13495 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 13496 if test yes != "$lt_cv_path_mainfest_tool"; then 13497 MANIFEST_TOOL=: 13498 fi 13499 13500 13501 13502 13503 13504 13505 case $host_os in 13506 rhapsody* | darwin*) 13507 if test -n "$ac_tool_prefix"; then 13508 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13509 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13511 $as_echo_n "checking for $ac_word... " >&6; } 13512 if ${ac_cv_prog_DSYMUTIL+:} false; then : 13513 $as_echo_n "(cached) " >&6 13514 else 13515 if test -n "$DSYMUTIL"; then 13516 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13517 else 13518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13519 for as_dir in $PATH 13520 do 13521 IFS=$as_save_IFS 13522 test -z "$as_dir" && as_dir=. 13523 for ac_exec_ext in '' $ac_executable_extensions; do 13524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13525 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13527 break 2 13528 fi 13529 done 13530 done 13531 IFS=$as_save_IFS 13532 13533 fi 13534 fi 13535 DSYMUTIL=$ac_cv_prog_DSYMUTIL 13536 if test -n "$DSYMUTIL"; then 13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13538 $as_echo "$DSYMUTIL" >&6; } 13539 else 13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13541 $as_echo "no" >&6; } 13542 fi 13543 13544 13545 fi 13546 if test -z "$ac_cv_prog_DSYMUTIL"; then 13547 ac_ct_DSYMUTIL=$DSYMUTIL 13548 # Extract the first word of "dsymutil", so it can be a program name with args. 13549 set dummy dsymutil; ac_word=$2 13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13551 $as_echo_n "checking for $ac_word... " >&6; } 13552 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13553 $as_echo_n "(cached) " >&6 13554 else 13555 if test -n "$ac_ct_DSYMUTIL"; then 13556 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13557 else 13558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13559 for as_dir in $PATH 13560 do 13561 IFS=$as_save_IFS 13562 test -z "$as_dir" && as_dir=. 13563 for ac_exec_ext in '' $ac_executable_extensions; do 13564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13565 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13567 break 2 13568 fi 13569 done 13570 done 13571 IFS=$as_save_IFS 13572 13573 fi 13574 fi 13575 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13576 if test -n "$ac_ct_DSYMUTIL"; then 13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13578 $as_echo "$ac_ct_DSYMUTIL" >&6; } 13579 else 13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13581 $as_echo "no" >&6; } 13582 fi 13583 13584 if test "x$ac_ct_DSYMUTIL" = x; then 13585 DSYMUTIL=":" 13586 else 13587 case $cross_compiling:$ac_tool_warned in 13588 yes:) 13589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13591 ac_tool_warned=yes ;; 13592 esac 13593 DSYMUTIL=$ac_ct_DSYMUTIL 13594 fi 13595 else 13596 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13597 fi 13598 13599 if test -n "$ac_tool_prefix"; then 13600 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13601 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13603 $as_echo_n "checking for $ac_word... " >&6; } 13604 if ${ac_cv_prog_NMEDIT+:} false; then : 13605 $as_echo_n "(cached) " >&6 13606 else 13607 if test -n "$NMEDIT"; then 13608 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13609 else 13610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13611 for as_dir in $PATH 13612 do 13613 IFS=$as_save_IFS 13614 test -z "$as_dir" && as_dir=. 13615 for ac_exec_ext in '' $ac_executable_extensions; do 13616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13617 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13619 break 2 13620 fi 13621 done 13622 done 13623 IFS=$as_save_IFS 13624 13625 fi 13626 fi 13627 NMEDIT=$ac_cv_prog_NMEDIT 13628 if test -n "$NMEDIT"; then 13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13630 $as_echo "$NMEDIT" >&6; } 13631 else 13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13633 $as_echo "no" >&6; } 13634 fi 13635 13636 13637 fi 13638 if test -z "$ac_cv_prog_NMEDIT"; then 13639 ac_ct_NMEDIT=$NMEDIT 13640 # Extract the first word of "nmedit", so it can be a program name with args. 13641 set dummy nmedit; ac_word=$2 13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13643 $as_echo_n "checking for $ac_word... " >&6; } 13644 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13645 $as_echo_n "(cached) " >&6 13646 else 13647 if test -n "$ac_ct_NMEDIT"; then 13648 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13649 else 13650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13651 for as_dir in $PATH 13652 do 13653 IFS=$as_save_IFS 13654 test -z "$as_dir" && as_dir=. 13655 for ac_exec_ext in '' $ac_executable_extensions; do 13656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13657 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13659 break 2 13660 fi 13661 done 13662 done 13663 IFS=$as_save_IFS 13664 13665 fi 13666 fi 13667 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13668 if test -n "$ac_ct_NMEDIT"; then 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13670 $as_echo "$ac_ct_NMEDIT" >&6; } 13671 else 13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13673 $as_echo "no" >&6; } 13674 fi 13675 13676 if test "x$ac_ct_NMEDIT" = x; then 13677 NMEDIT=":" 13678 else 13679 case $cross_compiling:$ac_tool_warned in 13680 yes:) 13681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13683 ac_tool_warned=yes ;; 13684 esac 13685 NMEDIT=$ac_ct_NMEDIT 13686 fi 13687 else 13688 NMEDIT="$ac_cv_prog_NMEDIT" 13689 fi 13690 13691 if test -n "$ac_tool_prefix"; then 13692 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13693 set dummy ${ac_tool_prefix}lipo; ac_word=$2 13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13695 $as_echo_n "checking for $ac_word... " >&6; } 13696 if ${ac_cv_prog_LIPO+:} false; then : 13697 $as_echo_n "(cached) " >&6 13698 else 13699 if test -n "$LIPO"; then 13700 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13701 else 13702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13703 for as_dir in $PATH 13704 do 13705 IFS=$as_save_IFS 13706 test -z "$as_dir" && as_dir=. 13707 for ac_exec_ext in '' $ac_executable_extensions; do 13708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13709 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13711 break 2 13712 fi 13713 done 13714 done 13715 IFS=$as_save_IFS 13716 13717 fi 13718 fi 13719 LIPO=$ac_cv_prog_LIPO 13720 if test -n "$LIPO"; then 13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13722 $as_echo "$LIPO" >&6; } 13723 else 13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13725 $as_echo "no" >&6; } 13726 fi 13727 13728 13729 fi 13730 if test -z "$ac_cv_prog_LIPO"; then 13731 ac_ct_LIPO=$LIPO 13732 # Extract the first word of "lipo", so it can be a program name with args. 13733 set dummy lipo; ac_word=$2 13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13735 $as_echo_n "checking for $ac_word... " >&6; } 13736 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13737 $as_echo_n "(cached) " >&6 13738 else 13739 if test -n "$ac_ct_LIPO"; then 13740 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13741 else 13742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13743 for as_dir in $PATH 13744 do 13745 IFS=$as_save_IFS 13746 test -z "$as_dir" && as_dir=. 13747 for ac_exec_ext in '' $ac_executable_extensions; do 13748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13749 ac_cv_prog_ac_ct_LIPO="lipo" 13750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13751 break 2 13752 fi 13753 done 13754 done 13755 IFS=$as_save_IFS 13756 13757 fi 13758 fi 13759 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13760 if test -n "$ac_ct_LIPO"; then 13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13762 $as_echo "$ac_ct_LIPO" >&6; } 13763 else 13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13765 $as_echo "no" >&6; } 13766 fi 13767 13768 if test "x$ac_ct_LIPO" = x; then 13769 LIPO=":" 13770 else 13771 case $cross_compiling:$ac_tool_warned in 13772 yes:) 13773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13775 ac_tool_warned=yes ;; 13776 esac 13777 LIPO=$ac_ct_LIPO 13778 fi 13779 else 13780 LIPO="$ac_cv_prog_LIPO" 13781 fi 13782 13783 if test -n "$ac_tool_prefix"; then 13784 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13785 set dummy ${ac_tool_prefix}otool; ac_word=$2 13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13787 $as_echo_n "checking for $ac_word... " >&6; } 13788 if ${ac_cv_prog_OTOOL+:} false; then : 13789 $as_echo_n "(cached) " >&6 13790 else 13791 if test -n "$OTOOL"; then 13792 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13793 else 13794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13795 for as_dir in $PATH 13796 do 13797 IFS=$as_save_IFS 13798 test -z "$as_dir" && as_dir=. 13799 for ac_exec_ext in '' $ac_executable_extensions; do 13800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13801 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13803 break 2 13804 fi 13805 done 13806 done 13807 IFS=$as_save_IFS 13808 13809 fi 13810 fi 13811 OTOOL=$ac_cv_prog_OTOOL 13812 if test -n "$OTOOL"; then 13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13814 $as_echo "$OTOOL" >&6; } 13815 else 13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13817 $as_echo "no" >&6; } 13818 fi 13819 13820 13821 fi 13822 if test -z "$ac_cv_prog_OTOOL"; then 13823 ac_ct_OTOOL=$OTOOL 13824 # Extract the first word of "otool", so it can be a program name with args. 13825 set dummy otool; ac_word=$2 13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13827 $as_echo_n "checking for $ac_word... " >&6; } 13828 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13829 $as_echo_n "(cached) " >&6 13830 else 13831 if test -n "$ac_ct_OTOOL"; then 13832 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13833 else 13834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13835 for as_dir in $PATH 13836 do 13837 IFS=$as_save_IFS 13838 test -z "$as_dir" && as_dir=. 13839 for ac_exec_ext in '' $ac_executable_extensions; do 13840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13841 ac_cv_prog_ac_ct_OTOOL="otool" 13842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13843 break 2 13844 fi 13845 done 13846 done 13847 IFS=$as_save_IFS 13848 13849 fi 13850 fi 13851 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13852 if test -n "$ac_ct_OTOOL"; then 13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13854 $as_echo "$ac_ct_OTOOL" >&6; } 13855 else 13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13857 $as_echo "no" >&6; } 13858 fi 13859 13860 if test "x$ac_ct_OTOOL" = x; then 13861 OTOOL=":" 13862 else 13863 case $cross_compiling:$ac_tool_warned in 13864 yes:) 13865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13867 ac_tool_warned=yes ;; 13868 esac 13869 OTOOL=$ac_ct_OTOOL 13870 fi 13871 else 13872 OTOOL="$ac_cv_prog_OTOOL" 13873 fi 13874 13875 if test -n "$ac_tool_prefix"; then 13876 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13877 set dummy ${ac_tool_prefix}otool64; ac_word=$2 13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13879 $as_echo_n "checking for $ac_word... " >&6; } 13880 if ${ac_cv_prog_OTOOL64+:} false; then : 13881 $as_echo_n "(cached) " >&6 13882 else 13883 if test -n "$OTOOL64"; then 13884 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13885 else 13886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13887 for as_dir in $PATH 13888 do 13889 IFS=$as_save_IFS 13890 test -z "$as_dir" && as_dir=. 13891 for ac_exec_ext in '' $ac_executable_extensions; do 13892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13893 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13895 break 2 13896 fi 13897 done 13898 done 13899 IFS=$as_save_IFS 13900 13901 fi 13902 fi 13903 OTOOL64=$ac_cv_prog_OTOOL64 13904 if test -n "$OTOOL64"; then 13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13906 $as_echo "$OTOOL64" >&6; } 13907 else 13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13909 $as_echo "no" >&6; } 13910 fi 13911 13912 13913 fi 13914 if test -z "$ac_cv_prog_OTOOL64"; then 13915 ac_ct_OTOOL64=$OTOOL64 13916 # Extract the first word of "otool64", so it can be a program name with args. 13917 set dummy otool64; ac_word=$2 13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13919 $as_echo_n "checking for $ac_word... " >&6; } 13920 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13921 $as_echo_n "(cached) " >&6 13922 else 13923 if test -n "$ac_ct_OTOOL64"; then 13924 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13925 else 13926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13927 for as_dir in $PATH 13928 do 13929 IFS=$as_save_IFS 13930 test -z "$as_dir" && as_dir=. 13931 for ac_exec_ext in '' $ac_executable_extensions; do 13932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13933 ac_cv_prog_ac_ct_OTOOL64="otool64" 13934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13935 break 2 13936 fi 13937 done 13938 done 13939 IFS=$as_save_IFS 13940 13941 fi 13942 fi 13943 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13944 if test -n "$ac_ct_OTOOL64"; then 13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13946 $as_echo "$ac_ct_OTOOL64" >&6; } 13947 else 13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13949 $as_echo "no" >&6; } 13950 fi 13951 13952 if test "x$ac_ct_OTOOL64" = x; then 13953 OTOOL64=":" 13954 else 13955 case $cross_compiling:$ac_tool_warned in 13956 yes:) 13957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13959 ac_tool_warned=yes ;; 13960 esac 13961 OTOOL64=$ac_ct_OTOOL64 13962 fi 13963 else 13964 OTOOL64="$ac_cv_prog_OTOOL64" 13965 fi 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13994 $as_echo_n "checking for -single_module linker flag... " >&6; } 13995 if ${lt_cv_apple_cc_single_mod+:} false; then : 13996 $as_echo_n "(cached) " >&6 13997 else 13998 lt_cv_apple_cc_single_mod=no 13999 if test -z "$LT_MULTI_MODULE"; then 14000 # By default we will add the -single_module flag. You can override 14001 # by either setting the environment variable LT_MULTI_MODULE 14002 # non-empty at configure time, or by adding -multi_module to the 14003 # link flags. 14004 rm -rf libconftest.dylib* 14005 echo "int foo(void){return 1;}" > conftest.c 14006 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14007 -dynamiclib -Wl,-single_module conftest.c" >&5 14008 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14009 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14010 _lt_result=$? 14011 # If there is a non-empty error log, and "single_module" 14012 # appears in it, assume the flag caused a linker warning 14013 if test -s conftest.err && $GREP single_module conftest.err; then 14014 cat conftest.err >&5 14015 # Otherwise, if the output was created with a 0 exit code from 14016 # the compiler, it worked. 14017 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14018 lt_cv_apple_cc_single_mod=yes 14019 else 14020 cat conftest.err >&5 14021 fi 14022 rm -rf libconftest.dylib* 14023 rm -f conftest.* 14024 fi 14025 fi 14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14027 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14028 14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14030 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14031 if ${lt_cv_ld_exported_symbols_list+:} false; then : 14032 $as_echo_n "(cached) " >&6 14033 else 14034 lt_cv_ld_exported_symbols_list=no 14035 save_LDFLAGS=$LDFLAGS 14036 echo "_main" > conftest.sym 14037 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14039 /* end confdefs.h. */ 14040 14041 int 14042 main () 14043 { 14044 14045 ; 14046 return 0; 14047 } 14048 _ACEOF 14049 if ac_fn_c_try_link "$LINENO"; then : 14050 lt_cv_ld_exported_symbols_list=yes 14051 else 14052 lt_cv_ld_exported_symbols_list=no 14053 fi 14054 rm -f core conftest.err conftest.$ac_objext \ 14055 conftest$ac_exeext conftest.$ac_ext 14056 LDFLAGS=$save_LDFLAGS 14057 14058 fi 14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14060 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14061 14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14063 $as_echo_n "checking for -force_load linker flag... " >&6; } 14064 if ${lt_cv_ld_force_load+:} false; then : 14065 $as_echo_n "(cached) " >&6 14066 else 14067 lt_cv_ld_force_load=no 14068 cat > conftest.c << _LT_EOF 14069 int forced_loaded() { return 2;} 14070 _LT_EOF 14071 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14072 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14073 echo "$AR cru libconftest.a conftest.o" >&5 14074 $AR cru libconftest.a conftest.o 2>&5 14075 echo "$RANLIB libconftest.a" >&5 14076 $RANLIB libconftest.a 2>&5 14077 cat > conftest.c << _LT_EOF 14078 int main() { return 0;} 14079 _LT_EOF 14080 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14081 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14082 _lt_result=$? 14083 if test -s conftest.err && $GREP force_load conftest.err; then 14084 cat conftest.err >&5 14085 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14086 lt_cv_ld_force_load=yes 14087 else 14088 cat conftest.err >&5 14089 fi 14090 rm -f conftest.err libconftest.a conftest conftest.c 14091 rm -rf conftest.dSYM 14092 14093 fi 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14095 $as_echo "$lt_cv_ld_force_load" >&6; } 14096 case $host_os in 14097 rhapsody* | darwin1.[012]) 14098 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14099 darwin1.*) 14100 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14101 darwin*) # darwin 5.x on 14102 # if running on 10.5 or later, the deployment target defaults 14103 # to the OS version, if on x86, and 10.4, the deployment 14104 # target defaults to 10.4. Don't you love it? 14105 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14106 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14107 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14108 10.[012][,.]*) 14109 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14110 10.*) 14111 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14112 esac 14113 ;; 14114 esac 14115 if test yes = "$lt_cv_apple_cc_single_mod"; then 14116 _lt_dar_single_mod='$single_module' 14117 fi 14118 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14119 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14120 else 14121 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14122 fi 14123 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14124 _lt_dsymutil='~$DSYMUTIL $lib || :' 14125 else 14126 _lt_dsymutil= 14127 fi 14128 ;; 14129 esac 14130 14131 # func_munge_path_list VARIABLE PATH 14132 # ----------------------------------- 14133 # VARIABLE is name of variable containing _space_ separated list of 14134 # directories to be munged by the contents of PATH, which is string 14135 # having a format: 14136 # "DIR[:DIR]:" 14137 # string "DIR[ DIR]" will be prepended to VARIABLE 14138 # ":DIR[:DIR]" 14139 # string "DIR[ DIR]" will be appended to VARIABLE 14140 # "DIRP[:DIRP]::[DIRA:]DIRA" 14141 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14142 # "DIRA[ DIRA]" will be appended to VARIABLE 14143 # "DIR[:DIR]" 14144 # VARIABLE will be replaced by "DIR[ DIR]" 14145 func_munge_path_list () 14146 { 14147 case x$2 in 14148 x) 14149 ;; 14150 *:) 14151 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14152 ;; 14153 x:*) 14154 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14155 ;; 14156 *::*) 14157 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14158 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14159 ;; 14160 *) 14161 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14162 ;; 14163 esac 14164 } 14165 14166 for ac_header in dlfcn.h 14167 do : 14168 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14169 " 14170 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14171 cat >>confdefs.h <<_ACEOF 14172 #define HAVE_DLFCN_H 1 14173 _ACEOF 14174 14175 fi 14176 14177 done 14178 14179 14180 14181 14182 14183 # Set options 14184 14185 14186 14187 enable_dlopen=no 14188 14189 14190 enable_win32_dll=no 14191 14192 14193 # Check whether --enable-shared was given. 14194 if test "${enable_shared+set}" = set; then : 14195 enableval=$enable_shared; p=${PACKAGE-default} 14196 case $enableval in 14197 yes) enable_shared=yes ;; 14198 no) enable_shared=no ;; 14199 *) 14200 enable_shared=no 14201 # Look at the argument we got. We use all the common list separators. 14202 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14203 for pkg in $enableval; do 14204 IFS=$lt_save_ifs 14205 if test "X$pkg" = "X$p"; then 14206 enable_shared=yes 14207 fi 14208 done 14209 IFS=$lt_save_ifs 14210 ;; 14211 esac 14212 else 14213 enable_shared=yes 14214 fi 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 # Check whether --with-pic was given. 14227 if test "${with_pic+set}" = set; then : 14228 withval=$with_pic; lt_p=${PACKAGE-default} 14229 case $withval in 14230 yes|no) pic_mode=$withval ;; 14231 *) 14232 pic_mode=default 14233 # Look at the argument we got. We use all the common list separators. 14234 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14235 for lt_pkg in $withval; do 14236 IFS=$lt_save_ifs 14237 if test "X$lt_pkg" = "X$lt_p"; then 14238 pic_mode=yes 14239 fi 14240 done 14241 IFS=$lt_save_ifs 14242 ;; 14243 esac 14244 else 14245 pic_mode=default 14246 fi 14247 14248 14249 14250 14251 14252 14253 14254 14255 # Check whether --enable-fast-install was given. 14256 if test "${enable_fast_install+set}" = set; then : 14257 enableval=$enable_fast_install; p=${PACKAGE-default} 14258 case $enableval in 14259 yes) enable_fast_install=yes ;; 14260 no) enable_fast_install=no ;; 14261 *) 14262 enable_fast_install=no 14263 # Look at the argument we got. We use all the common list separators. 14264 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14265 for pkg in $enableval; do 14266 IFS=$lt_save_ifs 14267 if test "X$pkg" = "X$p"; then 14268 enable_fast_install=yes 14269 fi 14270 done 14271 IFS=$lt_save_ifs 14272 ;; 14273 esac 14274 else 14275 enable_fast_install=yes 14276 fi 14277 14278 14279 14280 14281 14282 14283 14284 14285 shared_archive_member_spec= 14286 case $host,$enable_shared in 14287 power*-*-aix[5-9]*,yes) 14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14289 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14290 14291 # Check whether --with-aix-soname was given. 14292 if test "${with_aix_soname+set}" = set; then : 14293 withval=$with_aix_soname; case $withval in 14294 aix|svr4|both) 14295 ;; 14296 *) 14297 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14298 ;; 14299 esac 14300 lt_cv_with_aix_soname=$with_aix_soname 14301 else 14302 if ${lt_cv_with_aix_soname+:} false; then : 14303 $as_echo_n "(cached) " >&6 14304 else 14305 lt_cv_with_aix_soname=aix 14306 fi 14307 14308 with_aix_soname=$lt_cv_with_aix_soname 14309 fi 14310 14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14312 $as_echo "$with_aix_soname" >&6; } 14313 if test aix != "$with_aix_soname"; then 14314 # For the AIX way of multilib, we name the shared archive member 14315 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14316 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14317 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14318 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14319 if test 64 = "${OBJECT_MODE-32}"; then 14320 shared_archive_member_spec=shr_64 14321 else 14322 shared_archive_member_spec=shr 14323 fi 14324 fi 14325 ;; 14326 *) 14327 with_aix_soname=aix 14328 ;; 14329 esac 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 # This can be used to rebuild libtool when needed 14341 LIBTOOL_DEPS=$ltmain 14342 14343 # Always use our own libtool. 14344 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 test -z "$LN_S" && LN_S="ln -s" 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 if test -n "${ZSH_VERSION+set}"; then 14391 setopt NO_GLOB_SUBST 14392 fi 14393 14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14395 $as_echo_n "checking for objdir... " >&6; } 14396 if ${lt_cv_objdir+:} false; then : 14397 $as_echo_n "(cached) " >&6 14398 else 14399 rm -f .libs 2>/dev/null 14400 mkdir .libs 2>/dev/null 14401 if test -d .libs; then 14402 lt_cv_objdir=.libs 14403 else 14404 # MS-DOS does not allow filenames that begin with a dot. 14405 lt_cv_objdir=_libs 14406 fi 14407 rmdir .libs 2>/dev/null 14408 fi 14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14410 $as_echo "$lt_cv_objdir" >&6; } 14411 objdir=$lt_cv_objdir 14412 14413 14414 14415 14416 14417 cat >>confdefs.h <<_ACEOF 14418 #define LT_OBJDIR "$lt_cv_objdir/" 14419 _ACEOF 14420 14421 14422 14423 14424 case $host_os in 14425 aix3*) 14426 # AIX sometimes has problems with the GCC collect2 program. For some 14427 # reason, if we set the COLLECT_NAMES environment variable, the problems 14428 # vanish in a puff of smoke. 14429 if test set != "${COLLECT_NAMES+set}"; then 14430 COLLECT_NAMES= 14431 export COLLECT_NAMES 14432 fi 14433 ;; 14434 esac 14435 14436 # Global variables: 14437 ofile=libtool 14438 can_build_shared=yes 14439 14440 # All known linkers require a '.a' archive for static linking (except MSVC, 14441 # which needs '.lib'). 14442 libext=a 14443 14444 with_gnu_ld=$lt_cv_prog_gnu_ld 14445 14446 old_CC=$CC 14447 old_CFLAGS=$CFLAGS 14448 14449 # Set sane defaults for various variables 14450 test -z "$CC" && CC=cc 14451 test -z "$LTCC" && LTCC=$CC 14452 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14453 test -z "$LD" && LD=ld 14454 test -z "$ac_objext" && ac_objext=o 14455 14456 func_cc_basename $compiler 14457 cc_basename=$func_cc_basename_result 14458 14459 14460 # Only perform the check for file, if the check method requires it 14461 test -z "$MAGIC_CMD" && MAGIC_CMD=file 14462 case $deplibs_check_method in 14463 file_magic*) 14464 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14466 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14467 if ${lt_cv_path_MAGIC_CMD+:} false; then : 14468 $as_echo_n "(cached) " >&6 14469 else 14470 case $MAGIC_CMD in 14471 [\\/*] | ?:[\\/]*) 14472 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14473 ;; 14474 *) 14475 lt_save_MAGIC_CMD=$MAGIC_CMD 14476 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14477 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14478 for ac_dir in $ac_dummy; do 14479 IFS=$lt_save_ifs 14480 test -z "$ac_dir" && ac_dir=. 14481 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14482 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14483 if test -n "$file_magic_test_file"; then 14484 case $deplibs_check_method in 14485 "file_magic "*) 14486 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14487 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14488 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14489 $EGREP "$file_magic_regex" > /dev/null; then 14490 : 14491 else 14492 cat <<_LT_EOF 1>&2 14493 14494 *** Warning: the command libtool uses to detect shared libraries, 14495 *** $file_magic_cmd, produces output that libtool cannot recognize. 14496 *** The result is that libtool may fail to recognize shared libraries 14497 *** as such. This will affect the creation of libtool libraries that 14498 *** depend on shared libraries, but programs linked with such libtool 14499 *** libraries will work regardless of this problem. Nevertheless, you 14500 *** may want to report the problem to your system manager and/or to 14501 *** bug-libtool (at] gnu.org 14502 14503 _LT_EOF 14504 fi ;; 14505 esac 14506 fi 14507 break 14508 fi 14509 done 14510 IFS=$lt_save_ifs 14511 MAGIC_CMD=$lt_save_MAGIC_CMD 14512 ;; 14513 esac 14514 fi 14515 14516 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14517 if test -n "$MAGIC_CMD"; then 14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14519 $as_echo "$MAGIC_CMD" >&6; } 14520 else 14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14522 $as_echo "no" >&6; } 14523 fi 14524 14525 14526 14527 14528 14529 if test -z "$lt_cv_path_MAGIC_CMD"; then 14530 if test -n "$ac_tool_prefix"; then 14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14532 $as_echo_n "checking for file... " >&6; } 14533 if ${lt_cv_path_MAGIC_CMD+:} false; then : 14534 $as_echo_n "(cached) " >&6 14535 else 14536 case $MAGIC_CMD in 14537 [\\/*] | ?:[\\/]*) 14538 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14539 ;; 14540 *) 14541 lt_save_MAGIC_CMD=$MAGIC_CMD 14542 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14543 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14544 for ac_dir in $ac_dummy; do 14545 IFS=$lt_save_ifs 14546 test -z "$ac_dir" && ac_dir=. 14547 if test -f "$ac_dir/file"; then 14548 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14549 if test -n "$file_magic_test_file"; then 14550 case $deplibs_check_method in 14551 "file_magic "*) 14552 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14553 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14554 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14555 $EGREP "$file_magic_regex" > /dev/null; then 14556 : 14557 else 14558 cat <<_LT_EOF 1>&2 14559 14560 *** Warning: the command libtool uses to detect shared libraries, 14561 *** $file_magic_cmd, produces output that libtool cannot recognize. 14562 *** The result is that libtool may fail to recognize shared libraries 14563 *** as such. This will affect the creation of libtool libraries that 14564 *** depend on shared libraries, but programs linked with such libtool 14565 *** libraries will work regardless of this problem. Nevertheless, you 14566 *** may want to report the problem to your system manager and/or to 14567 *** bug-libtool (at] gnu.org 14568 14569 _LT_EOF 14570 fi ;; 14571 esac 14572 fi 14573 break 14574 fi 14575 done 14576 IFS=$lt_save_ifs 14577 MAGIC_CMD=$lt_save_MAGIC_CMD 14578 ;; 14579 esac 14580 fi 14581 14582 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14583 if test -n "$MAGIC_CMD"; then 14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14585 $as_echo "$MAGIC_CMD" >&6; } 14586 else 14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14588 $as_echo "no" >&6; } 14589 fi 14590 14591 14592 else 14593 MAGIC_CMD=: 14594 fi 14595 fi 14596 14597 fi 14598 ;; 14599 esac 14600 14601 # Use C for the default configuration in the libtool script 14602 14603 lt_save_CC=$CC 14604 ac_ext=c 14605 ac_cpp='$CPP $CPPFLAGS' 14606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14608 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14609 14610 14611 # Source file extension for C test sources. 14612 ac_ext=c 14613 14614 # Object file extension for compiled C test sources. 14615 objext=o 14616 objext=$objext 14617 14618 # Code to be used in simple compile tests 14619 lt_simple_compile_test_code="int some_variable = 0;" 14620 14621 # Code to be used in simple link tests 14622 lt_simple_link_test_code='int main(){return(0);}' 14623 14624 14625 14626 14627 14628 14629 14630 # If no C compiler was specified, use CC. 14631 LTCC=${LTCC-"$CC"} 14632 14633 # If no C compiler flags were specified, use CFLAGS. 14634 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14635 14636 # Allow CC to be a program name with arguments. 14637 compiler=$CC 14638 14639 # Save the default compiler, since it gets overwritten when the other 14640 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14641 compiler_DEFAULT=$CC 14642 14643 # save warnings/boilerplate of simple test code 14644 ac_outfile=conftest.$ac_objext 14645 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14646 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14647 _lt_compiler_boilerplate=`cat conftest.err` 14648 $RM conftest* 14649 14650 ac_outfile=conftest.$ac_objext 14651 echo "$lt_simple_link_test_code" >conftest.$ac_ext 14652 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14653 _lt_linker_boilerplate=`cat conftest.err` 14654 $RM -r conftest* 14655 14656 14657 if test -n "$compiler"; then 14658 14659 lt_prog_compiler_no_builtin_flag= 14660 14661 if test yes = "$GCC"; then 14662 case $cc_basename in 14663 nvcc*) 14664 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14665 *) 14666 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14667 esac 14668 14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14670 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14671 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14672 $as_echo_n "(cached) " >&6 14673 else 14674 lt_cv_prog_compiler_rtti_exceptions=no 14675 ac_outfile=conftest.$ac_objext 14676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14677 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14678 # Insert the option either (1) after the last *FLAGS variable, or 14679 # (2) before a word containing "conftest.", or (3) at the end. 14680 # Note that $ac_compile itself does not contain backslashes and begins 14681 # with a dollar sign (not a hyphen), so the echo should work correctly. 14682 # The option is referenced via a variable to avoid confusing sed. 14683 lt_compile=`echo "$ac_compile" | $SED \ 14684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14686 -e 's:$: $lt_compiler_flag:'` 14687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14688 (eval "$lt_compile" 2>conftest.err) 14689 ac_status=$? 14690 cat conftest.err >&5 14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14692 if (exit $ac_status) && test -s "$ac_outfile"; then 14693 # The compiler can only warn and ignore the option if not recognized 14694 # So say no if there are warnings other than the usual output. 14695 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14697 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14698 lt_cv_prog_compiler_rtti_exceptions=yes 14699 fi 14700 fi 14701 $RM conftest* 14702 14703 fi 14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14705 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14706 14707 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 14708 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14709 else 14710 : 14711 fi 14712 14713 fi 14714 14715 14716 14717 14718 14719 14720 lt_prog_compiler_wl= 14721 lt_prog_compiler_pic= 14722 lt_prog_compiler_static= 14723 14724 14725 if test yes = "$GCC"; then 14726 lt_prog_compiler_wl='-Wl,' 14727 lt_prog_compiler_static='-static' 14728 14729 case $host_os in 14730 aix*) 14731 # All AIX code is PIC. 14732 if test ia64 = "$host_cpu"; then 14733 # AIX 5 now supports IA64 processor 14734 lt_prog_compiler_static='-Bstatic' 14735 fi 14736 lt_prog_compiler_pic='-fPIC' 14737 ;; 14738 14739 amigaos*) 14740 case $host_cpu in 14741 powerpc) 14742 # see comment about AmigaOS4 .so support 14743 lt_prog_compiler_pic='-fPIC' 14744 ;; 14745 m68k) 14746 # FIXME: we need at least 68020 code to build shared libraries, but 14747 # adding the '-m68020' flag to GCC prevents building anything better, 14748 # like '-m68040'. 14749 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14750 ;; 14751 esac 14752 ;; 14753 14754 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14755 # PIC is the default for these OSes. 14756 ;; 14757 14758 mingw* | cygwin* | pw32* | os2* | cegcc*) 14759 # This hack is so that the source file can tell whether it is being 14760 # built for inclusion in a dll (and should export symbols for example). 14761 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14762 # (--disable-auto-import) libraries 14763 lt_prog_compiler_pic='-DDLL_EXPORT' 14764 case $host_os in 14765 os2*) 14766 lt_prog_compiler_static='$wl-static' 14767 ;; 14768 esac 14769 ;; 14770 14771 darwin* | rhapsody*) 14772 # PIC is the default on this platform 14773 # Common symbols not allowed in MH_DYLIB files 14774 lt_prog_compiler_pic='-fno-common' 14775 ;; 14776 14777 haiku*) 14778 # PIC is the default for Haiku. 14779 # The "-static" flag exists, but is broken. 14780 lt_prog_compiler_static= 14781 ;; 14782 14783 hpux*) 14784 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14785 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14786 # sets the default TLS model and affects inlining. 14787 case $host_cpu in 14788 hppa*64*) 14789 # +Z the default 14790 ;; 14791 *) 14792 lt_prog_compiler_pic='-fPIC' 14793 ;; 14794 esac 14795 ;; 14796 14797 interix[3-9]*) 14798 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14799 # Instead, we relocate shared libraries at runtime. 14800 ;; 14801 14802 msdosdjgpp*) 14803 # Just because we use GCC doesn't mean we suddenly get shared libraries 14804 # on systems that don't support them. 14805 lt_prog_compiler_can_build_shared=no 14806 enable_shared=no 14807 ;; 14808 14809 *nto* | *qnx*) 14810 # QNX uses GNU C++, but need to define -shared option too, otherwise 14811 # it will coredump. 14812 lt_prog_compiler_pic='-fPIC -shared' 14813 ;; 14814 14815 sysv4*MP*) 14816 if test -d /usr/nec; then 14817 lt_prog_compiler_pic=-Kconform_pic 14818 fi 14819 ;; 14820 14821 *) 14822 lt_prog_compiler_pic='-fPIC' 14823 ;; 14824 esac 14825 14826 case $cc_basename in 14827 nvcc*) # Cuda Compiler Driver 2.2 14828 lt_prog_compiler_wl='-Xlinker ' 14829 if test -n "$lt_prog_compiler_pic"; then 14830 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14831 fi 14832 ;; 14833 esac 14834 else 14835 # PORTME Check for flag to pass linker flags through the system compiler. 14836 case $host_os in 14837 aix*) 14838 lt_prog_compiler_wl='-Wl,' 14839 if test ia64 = "$host_cpu"; then 14840 # AIX 5 now supports IA64 processor 14841 lt_prog_compiler_static='-Bstatic' 14842 else 14843 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14844 fi 14845 ;; 14846 14847 darwin* | rhapsody*) 14848 # PIC is the default on this platform 14849 # Common symbols not allowed in MH_DYLIB files 14850 lt_prog_compiler_pic='-fno-common' 14851 case $cc_basename in 14852 nagfor*) 14853 # NAG Fortran compiler 14854 lt_prog_compiler_wl='-Wl,-Wl,,' 14855 lt_prog_compiler_pic='-PIC' 14856 lt_prog_compiler_static='-Bstatic' 14857 ;; 14858 esac 14859 ;; 14860 14861 mingw* | cygwin* | pw32* | os2* | cegcc*) 14862 # This hack is so that the source file can tell whether it is being 14863 # built for inclusion in a dll (and should export symbols for example). 14864 lt_prog_compiler_pic='-DDLL_EXPORT' 14865 case $host_os in 14866 os2*) 14867 lt_prog_compiler_static='$wl-static' 14868 ;; 14869 esac 14870 ;; 14871 14872 hpux9* | hpux10* | hpux11*) 14873 lt_prog_compiler_wl='-Wl,' 14874 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14875 # not for PA HP-UX. 14876 case $host_cpu in 14877 hppa*64*|ia64*) 14878 # +Z the default 14879 ;; 14880 *) 14881 lt_prog_compiler_pic='+Z' 14882 ;; 14883 esac 14884 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14885 lt_prog_compiler_static='$wl-a ${wl}archive' 14886 ;; 14887 14888 irix5* | irix6* | nonstopux*) 14889 lt_prog_compiler_wl='-Wl,' 14890 # PIC (with -KPIC) is the default. 14891 lt_prog_compiler_static='-non_shared' 14892 ;; 14893 14894 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14895 case $cc_basename in 14896 # old Intel for x86_64, which still supported -KPIC. 14897 ecc*) 14898 lt_prog_compiler_wl='-Wl,' 14899 lt_prog_compiler_pic='-KPIC' 14900 lt_prog_compiler_static='-static' 14901 ;; 14902 # icc used to be incompatible with GCC. 14903 # ICC 10 doesn't accept -KPIC any more. 14904 icc* | ifort*) 14905 lt_prog_compiler_wl='-Wl,' 14906 lt_prog_compiler_pic='-fPIC' 14907 lt_prog_compiler_static='-static' 14908 ;; 14909 # Lahey Fortran 8.1. 14910 lf95*) 14911 lt_prog_compiler_wl='-Wl,' 14912 lt_prog_compiler_pic='--shared' 14913 lt_prog_compiler_static='--static' 14914 ;; 14915 nagfor*) 14916 # NAG Fortran compiler 14917 lt_prog_compiler_wl='-Wl,-Wl,,' 14918 lt_prog_compiler_pic='-PIC' 14919 lt_prog_compiler_static='-Bstatic' 14920 ;; 14921 tcc*) 14922 # Fabrice Bellard et al's Tiny C Compiler 14923 lt_prog_compiler_wl='-Wl,' 14924 lt_prog_compiler_pic='-fPIC' 14925 lt_prog_compiler_static='-static' 14926 ;; 14927 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14928 # Portland Group compilers (*not* the Pentium gcc compiler, 14929 # which looks to be a dead project) 14930 lt_prog_compiler_wl='-Wl,' 14931 lt_prog_compiler_pic='-fpic' 14932 lt_prog_compiler_static='-Bstatic' 14933 ;; 14934 ccc*) 14935 lt_prog_compiler_wl='-Wl,' 14936 # All Alpha code is PIC. 14937 lt_prog_compiler_static='-non_shared' 14938 ;; 14939 xl* | bgxl* | bgf* | mpixl*) 14940 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14941 lt_prog_compiler_wl='-Wl,' 14942 lt_prog_compiler_pic='-qpic' 14943 lt_prog_compiler_static='-qstaticlink' 14944 ;; 14945 *) 14946 case `$CC -V 2>&1 | sed 5q` in 14947 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14948 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14949 lt_prog_compiler_pic='-KPIC' 14950 lt_prog_compiler_static='-Bstatic' 14951 lt_prog_compiler_wl='' 14952 ;; 14953 *Sun\ F* | *Sun*Fortran*) 14954 lt_prog_compiler_pic='-KPIC' 14955 lt_prog_compiler_static='-Bstatic' 14956 lt_prog_compiler_wl='-Qoption ld ' 14957 ;; 14958 *Sun\ C*) 14959 # Sun C 5.9 14960 lt_prog_compiler_pic='-KPIC' 14961 lt_prog_compiler_static='-Bstatic' 14962 lt_prog_compiler_wl='-Wl,' 14963 ;; 14964 *Intel*\ [CF]*Compiler*) 14965 lt_prog_compiler_wl='-Wl,' 14966 lt_prog_compiler_pic='-fPIC' 14967 lt_prog_compiler_static='-static' 14968 ;; 14969 *Portland\ Group*) 14970 lt_prog_compiler_wl='-Wl,' 14971 lt_prog_compiler_pic='-fpic' 14972 lt_prog_compiler_static='-Bstatic' 14973 ;; 14974 esac 14975 ;; 14976 esac 14977 ;; 14978 14979 newsos6) 14980 lt_prog_compiler_pic='-KPIC' 14981 lt_prog_compiler_static='-Bstatic' 14982 ;; 14983 14984 *nto* | *qnx*) 14985 # QNX uses GNU C++, but need to define -shared option too, otherwise 14986 # it will coredump. 14987 lt_prog_compiler_pic='-fPIC -shared' 14988 ;; 14989 14990 osf3* | osf4* | osf5*) 14991 lt_prog_compiler_wl='-Wl,' 14992 # All OSF/1 code is PIC. 14993 lt_prog_compiler_static='-non_shared' 14994 ;; 14995 14996 rdos*) 14997 lt_prog_compiler_static='-non_shared' 14998 ;; 14999 15000 solaris*) 15001 lt_prog_compiler_pic='-KPIC' 15002 lt_prog_compiler_static='-Bstatic' 15003 case $cc_basename in 15004 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15005 lt_prog_compiler_wl='-Qoption ld ';; 15006 *) 15007 lt_prog_compiler_wl='-Wl,';; 15008 esac 15009 ;; 15010 15011 sunos4*) 15012 lt_prog_compiler_wl='-Qoption ld ' 15013 lt_prog_compiler_pic='-PIC' 15014 lt_prog_compiler_static='-Bstatic' 15015 ;; 15016 15017 sysv4 | sysv4.2uw2* | sysv4.3*) 15018 lt_prog_compiler_wl='-Wl,' 15019 lt_prog_compiler_pic='-KPIC' 15020 lt_prog_compiler_static='-Bstatic' 15021 ;; 15022 15023 sysv4*MP*) 15024 if test -d /usr/nec; then 15025 lt_prog_compiler_pic='-Kconform_pic' 15026 lt_prog_compiler_static='-Bstatic' 15027 fi 15028 ;; 15029 15030 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15031 lt_prog_compiler_wl='-Wl,' 15032 lt_prog_compiler_pic='-KPIC' 15033 lt_prog_compiler_static='-Bstatic' 15034 ;; 15035 15036 unicos*) 15037 lt_prog_compiler_wl='-Wl,' 15038 lt_prog_compiler_can_build_shared=no 15039 ;; 15040 15041 uts4*) 15042 lt_prog_compiler_pic='-pic' 15043 lt_prog_compiler_static='-Bstatic' 15044 ;; 15045 15046 *) 15047 lt_prog_compiler_can_build_shared=no 15048 ;; 15049 esac 15050 fi 15051 15052 case $host_os in 15053 # For platforms that do not support PIC, -DPIC is meaningless: 15054 *djgpp*) 15055 lt_prog_compiler_pic= 15056 ;; 15057 *) 15058 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15059 ;; 15060 esac 15061 15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15063 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15064 if ${lt_cv_prog_compiler_pic+:} false; then : 15065 $as_echo_n "(cached) " >&6 15066 else 15067 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15068 fi 15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15070 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 15071 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15072 15073 # 15074 # Check to make sure the PIC flag actually works. 15075 # 15076 if test -n "$lt_prog_compiler_pic"; then 15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15078 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15079 if ${lt_cv_prog_compiler_pic_works+:} false; then : 15080 $as_echo_n "(cached) " >&6 15081 else 15082 lt_cv_prog_compiler_pic_works=no 15083 ac_outfile=conftest.$ac_objext 15084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15085 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15086 # Insert the option either (1) after the last *FLAGS variable, or 15087 # (2) before a word containing "conftest.", or (3) at the end. 15088 # Note that $ac_compile itself does not contain backslashes and begins 15089 # with a dollar sign (not a hyphen), so the echo should work correctly. 15090 # The option is referenced via a variable to avoid confusing sed. 15091 lt_compile=`echo "$ac_compile" | $SED \ 15092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15094 -e 's:$: $lt_compiler_flag:'` 15095 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15096 (eval "$lt_compile" 2>conftest.err) 15097 ac_status=$? 15098 cat conftest.err >&5 15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15100 if (exit $ac_status) && test -s "$ac_outfile"; then 15101 # The compiler can only warn and ignore the option if not recognized 15102 # So say no if there are warnings other than the usual output. 15103 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15105 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15106 lt_cv_prog_compiler_pic_works=yes 15107 fi 15108 fi 15109 $RM conftest* 15110 15111 fi 15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15113 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15114 15115 if test yes = "$lt_cv_prog_compiler_pic_works"; then 15116 case $lt_prog_compiler_pic in 15117 "" | " "*) ;; 15118 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15119 esac 15120 else 15121 lt_prog_compiler_pic= 15122 lt_prog_compiler_can_build_shared=no 15123 fi 15124 15125 fi 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 # 15138 # Check to make sure the static flag actually works. 15139 # 15140 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15142 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15143 if ${lt_cv_prog_compiler_static_works+:} false; then : 15144 $as_echo_n "(cached) " >&6 15145 else 15146 lt_cv_prog_compiler_static_works=no 15147 save_LDFLAGS=$LDFLAGS 15148 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15149 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15150 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15151 # The linker can only warn and ignore the option if not recognized 15152 # So say no if there are warnings 15153 if test -s conftest.err; then 15154 # Append any errors to the config.log. 15155 cat conftest.err 1>&5 15156 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15158 if diff conftest.exp conftest.er2 >/dev/null; then 15159 lt_cv_prog_compiler_static_works=yes 15160 fi 15161 else 15162 lt_cv_prog_compiler_static_works=yes 15163 fi 15164 fi 15165 $RM -r conftest* 15166 LDFLAGS=$save_LDFLAGS 15167 15168 fi 15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15170 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15171 15172 if test yes = "$lt_cv_prog_compiler_static_works"; then 15173 : 15174 else 15175 lt_prog_compiler_static= 15176 fi 15177 15178 15179 15180 15181 15182 15183 15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15185 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15186 if ${lt_cv_prog_compiler_c_o+:} false; then : 15187 $as_echo_n "(cached) " >&6 15188 else 15189 lt_cv_prog_compiler_c_o=no 15190 $RM -r conftest 2>/dev/null 15191 mkdir conftest 15192 cd conftest 15193 mkdir out 15194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15195 15196 lt_compiler_flag="-o out/conftest2.$ac_objext" 15197 # Insert the option either (1) after the last *FLAGS variable, or 15198 # (2) before a word containing "conftest.", or (3) at the end. 15199 # Note that $ac_compile itself does not contain backslashes and begins 15200 # with a dollar sign (not a hyphen), so the echo should work correctly. 15201 lt_compile=`echo "$ac_compile" | $SED \ 15202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15204 -e 's:$: $lt_compiler_flag:'` 15205 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15206 (eval "$lt_compile" 2>out/conftest.err) 15207 ac_status=$? 15208 cat out/conftest.err >&5 15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15210 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15211 then 15212 # The compiler can only warn and ignore the option if not recognized 15213 # So say no if there are warnings 15214 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15215 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15216 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15217 lt_cv_prog_compiler_c_o=yes 15218 fi 15219 fi 15220 chmod u+w . 2>&5 15221 $RM conftest* 15222 # SGI C++ compiler will create directory out/ii_files/ for 15223 # template instantiation 15224 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15225 $RM out/* && rmdir out 15226 cd .. 15227 $RM -r conftest 15228 $RM conftest* 15229 15230 fi 15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15232 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15233 15234 15235 15236 15237 15238 15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15240 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15241 if ${lt_cv_prog_compiler_c_o+:} false; then : 15242 $as_echo_n "(cached) " >&6 15243 else 15244 lt_cv_prog_compiler_c_o=no 15245 $RM -r conftest 2>/dev/null 15246 mkdir conftest 15247 cd conftest 15248 mkdir out 15249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15250 15251 lt_compiler_flag="-o out/conftest2.$ac_objext" 15252 # Insert the option either (1) after the last *FLAGS variable, or 15253 # (2) before a word containing "conftest.", or (3) at the end. 15254 # Note that $ac_compile itself does not contain backslashes and begins 15255 # with a dollar sign (not a hyphen), so the echo should work correctly. 15256 lt_compile=`echo "$ac_compile" | $SED \ 15257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15259 -e 's:$: $lt_compiler_flag:'` 15260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15261 (eval "$lt_compile" 2>out/conftest.err) 15262 ac_status=$? 15263 cat out/conftest.err >&5 15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15265 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15266 then 15267 # The compiler can only warn and ignore the option if not recognized 15268 # So say no if there are warnings 15269 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15270 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15271 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15272 lt_cv_prog_compiler_c_o=yes 15273 fi 15274 fi 15275 chmod u+w . 2>&5 15276 $RM conftest* 15277 # SGI C++ compiler will create directory out/ii_files/ for 15278 # template instantiation 15279 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15280 $RM out/* && rmdir out 15281 cd .. 15282 $RM -r conftest 15283 $RM conftest* 15284 15285 fi 15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15287 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15288 15289 15290 15291 15292 hard_links=nottested 15293 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15294 # do not overwrite the value of need_locks provided by the user 15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15296 $as_echo_n "checking if we can lock with hard links... " >&6; } 15297 hard_links=yes 15298 $RM conftest* 15299 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15300 touch conftest.a 15301 ln conftest.a conftest.b 2>&5 || hard_links=no 15302 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15304 $as_echo "$hard_links" >&6; } 15305 if test no = "$hard_links"; then 15306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15307 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15308 need_locks=warn 15309 fi 15310 else 15311 need_locks=no 15312 fi 15313 15314 15315 15316 15317 15318 15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15320 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15321 15322 runpath_var= 15323 allow_undefined_flag= 15324 always_export_symbols=no 15325 archive_cmds= 15326 archive_expsym_cmds= 15327 compiler_needs_object=no 15328 enable_shared_with_static_runtimes=no 15329 export_dynamic_flag_spec= 15330 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15331 hardcode_automatic=no 15332 hardcode_direct=no 15333 hardcode_direct_absolute=no 15334 hardcode_libdir_flag_spec= 15335 hardcode_libdir_separator= 15336 hardcode_minus_L=no 15337 hardcode_shlibpath_var=unsupported 15338 inherit_rpath=no 15339 link_all_deplibs=unknown 15340 module_cmds= 15341 module_expsym_cmds= 15342 old_archive_from_new_cmds= 15343 old_archive_from_expsyms_cmds= 15344 thread_safe_flag_spec= 15345 whole_archive_flag_spec= 15346 # include_expsyms should be a list of space-separated symbols to be *always* 15347 # included in the symbol list 15348 include_expsyms= 15349 # exclude_expsyms can be an extended regexp of symbols to exclude 15350 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15351 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15352 # as well as any symbol that contains 'd'. 15353 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15354 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15355 # platforms (ab)use it in PIC code, but their linkers get confused if 15356 # the symbol is explicitly referenced. Since portable code cannot 15357 # rely on this symbol name, it's probably fine to never include it in 15358 # preloaded symbol tables. 15359 # Exclude shared library initialization/finalization symbols. 15360 extract_expsyms_cmds= 15361 15362 case $host_os in 15363 cygwin* | mingw* | pw32* | cegcc*) 15364 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15365 # When not using gcc, we currently assume that we are using 15366 # Microsoft Visual C++. 15367 if test yes != "$GCC"; then 15368 with_gnu_ld=no 15369 fi 15370 ;; 15371 interix*) 15372 # we just hope/assume this is gcc and not c89 (= MSVC++) 15373 with_gnu_ld=yes 15374 ;; 15375 openbsd* | bitrig*) 15376 with_gnu_ld=no 15377 ;; 15378 linux* | k*bsd*-gnu | gnu*) 15379 link_all_deplibs=no 15380 ;; 15381 esac 15382 15383 ld_shlibs=yes 15384 15385 # On some targets, GNU ld is compatible enough with the native linker 15386 # that we're better off using the native interface for both. 15387 lt_use_gnu_ld_interface=no 15388 if test yes = "$with_gnu_ld"; then 15389 case $host_os in 15390 aix*) 15391 # The AIX port of GNU ld has always aspired to compatibility 15392 # with the native linker. However, as the warning in the GNU ld 15393 # block says, versions before 2.19.5* couldn't really create working 15394 # shared libraries, regardless of the interface used. 15395 case `$LD -v 2>&1` in 15396 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15397 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15398 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15399 *) 15400 lt_use_gnu_ld_interface=yes 15401 ;; 15402 esac 15403 ;; 15404 *) 15405 lt_use_gnu_ld_interface=yes 15406 ;; 15407 esac 15408 fi 15409 15410 if test yes = "$lt_use_gnu_ld_interface"; then 15411 # If archive_cmds runs LD, not CC, wlarc should be empty 15412 wlarc='$wl' 15413 15414 # Set some defaults for GNU ld with shared library support. These 15415 # are reset later if shared libraries are not supported. Putting them 15416 # here allows them to be overridden if necessary. 15417 runpath_var=LD_RUN_PATH 15418 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15419 export_dynamic_flag_spec='$wl--export-dynamic' 15420 # ancient GNU ld didn't support --whole-archive et. al. 15421 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15422 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15423 else 15424 whole_archive_flag_spec= 15425 fi 15426 supports_anon_versioning=no 15427 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15428 *GNU\ gold*) supports_anon_versioning=yes ;; 15429 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15430 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15431 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15432 *\ 2.11.*) ;; # other 2.11 versions 15433 *) supports_anon_versioning=yes ;; 15434 esac 15435 15436 # See if GNU ld supports shared libraries. 15437 case $host_os in 15438 aix[3-9]*) 15439 # On AIX/PPC, the GNU linker is very broken 15440 if test ia64 != "$host_cpu"; then 15441 ld_shlibs=no 15442 cat <<_LT_EOF 1>&2 15443 15444 *** Warning: the GNU linker, at least up to release 2.19, is reported 15445 *** to be unable to reliably create shared libraries on AIX. 15446 *** Therefore, libtool is disabling shared libraries support. If you 15447 *** really care for shared libraries, you may want to install binutils 15448 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15449 *** You will then need to restart the configuration process. 15450 15451 _LT_EOF 15452 fi 15453 ;; 15454 15455 amigaos*) 15456 case $host_cpu in 15457 powerpc) 15458 # see comment about AmigaOS4 .so support 15459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15460 archive_expsym_cmds='' 15461 ;; 15462 m68k) 15463 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)' 15464 hardcode_libdir_flag_spec='-L$libdir' 15465 hardcode_minus_L=yes 15466 ;; 15467 esac 15468 ;; 15469 15470 beos*) 15471 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15472 allow_undefined_flag=unsupported 15473 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 15474 # support --undefined. This deserves some investigation. FIXME 15475 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15476 else 15477 ld_shlibs=no 15478 fi 15479 ;; 15480 15481 cygwin* | mingw* | pw32* | cegcc*) 15482 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15483 # as there is no search path for DLLs. 15484 hardcode_libdir_flag_spec='-L$libdir' 15485 export_dynamic_flag_spec='$wl--export-all-symbols' 15486 allow_undefined_flag=unsupported 15487 always_export_symbols=no 15488 enable_shared_with_static_runtimes=yes 15489 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' 15490 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15491 15492 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15494 # If the export-symbols file already is a .def file, use it as 15495 # is; otherwise, prepend EXPORTS... 15496 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15497 cp $export_symbols $output_objdir/$soname.def; 15498 else 15499 echo EXPORTS > $output_objdir/$soname.def; 15500 cat $export_symbols >> $output_objdir/$soname.def; 15501 fi~ 15502 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15503 else 15504 ld_shlibs=no 15505 fi 15506 ;; 15507 15508 haiku*) 15509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15510 link_all_deplibs=yes 15511 ;; 15512 15513 os2*) 15514 hardcode_libdir_flag_spec='-L$libdir' 15515 hardcode_minus_L=yes 15516 allow_undefined_flag=unsupported 15517 shrext_cmds=.dll 15518 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15519 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15520 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15521 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15522 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15523 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15524 emximp -o $lib $output_objdir/$libname.def' 15525 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15526 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15527 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15528 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15529 prefix_cmds="$SED"~ 15530 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15531 prefix_cmds="$prefix_cmds -e 1d"; 15532 fi~ 15533 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15534 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15535 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15536 emximp -o $lib $output_objdir/$libname.def' 15537 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15538 enable_shared_with_static_runtimes=yes 15539 ;; 15540 15541 interix[3-9]*) 15542 hardcode_direct=no 15543 hardcode_shlibpath_var=no 15544 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15545 export_dynamic_flag_spec='$wl-E' 15546 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15547 # Instead, shared libraries are loaded at an image base (0x10000000 by 15548 # default) and relocated if they conflict, which is a slow very memory 15549 # consuming and fragmenting process. To avoid this, we pick a random, 15550 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15551 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15552 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15553 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' 15554 ;; 15555 15556 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15557 tmp_diet=no 15558 if test linux-dietlibc = "$host_os"; then 15559 case $cc_basename in 15560 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15561 esac 15562 fi 15563 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15564 && test no = "$tmp_diet" 15565 then 15566 tmp_addflag=' $pic_flag' 15567 tmp_sharedflag='-shared' 15568 case $cc_basename,$host_cpu in 15569 pgcc*) # Portland Group C compiler 15570 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' 15571 tmp_addflag=' $pic_flag' 15572 ;; 15573 pgf77* | pgf90* | pgf95* | pgfortran*) 15574 # Portland Group f77 and f90 compilers 15575 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' 15576 tmp_addflag=' $pic_flag -Mnomain' ;; 15577 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15578 tmp_addflag=' -i_dynamic' ;; 15579 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15580 tmp_addflag=' -i_dynamic -nofor_main' ;; 15581 ifc* | ifort*) # Intel Fortran compiler 15582 tmp_addflag=' -nofor_main' ;; 15583 lf95*) # Lahey Fortran 8.1 15584 whole_archive_flag_spec= 15585 tmp_sharedflag='--shared' ;; 15586 nagfor*) # NAGFOR 5.3 15587 tmp_sharedflag='-Wl,-shared' ;; 15588 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15589 tmp_sharedflag='-qmkshrobj' 15590 tmp_addflag= ;; 15591 nvcc*) # Cuda Compiler Driver 2.2 15592 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' 15593 compiler_needs_object=yes 15594 ;; 15595 esac 15596 case `$CC -V 2>&1 | sed 5q` in 15597 *Sun\ C*) # Sun C 5.9 15598 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' 15599 compiler_needs_object=yes 15600 tmp_sharedflag='-G' ;; 15601 *Sun\ F*) # Sun Fortran 8.3 15602 tmp_sharedflag='-G' ;; 15603 esac 15604 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15605 15606 if test yes = "$supports_anon_versioning"; then 15607 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15609 echo "local: *; };" >> $output_objdir/$libname.ver~ 15610 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15611 fi 15612 15613 case $cc_basename in 15614 tcc*) 15615 export_dynamic_flag_spec='-rdynamic' 15616 ;; 15617 xlf* | bgf* | bgxlf* | mpixlf*) 15618 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15619 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15620 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15621 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15622 if test yes = "$supports_anon_versioning"; then 15623 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15624 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15625 echo "local: *; };" >> $output_objdir/$libname.ver~ 15626 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15627 fi 15628 ;; 15629 esac 15630 else 15631 ld_shlibs=no 15632 fi 15633 ;; 15634 15635 netbsd* | netbsdelf*-gnu) 15636 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15637 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15638 wlarc= 15639 else 15640 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15641 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15642 fi 15643 ;; 15644 15645 solaris*) 15646 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15647 ld_shlibs=no 15648 cat <<_LT_EOF 1>&2 15649 15650 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 15651 *** create shared libraries on Solaris systems. Therefore, libtool 15652 *** is disabling shared libraries support. We urge you to upgrade GNU 15653 *** binutils to release 2.9.1 or newer. Another option is to modify 15654 *** your PATH or compiler configuration so that the native linker is 15655 *** used, and then restart. 15656 15657 _LT_EOF 15658 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15659 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15660 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15661 else 15662 ld_shlibs=no 15663 fi 15664 ;; 15665 15666 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15667 case `$LD -v 2>&1` in 15668 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15669 ld_shlibs=no 15670 cat <<_LT_EOF 1>&2 15671 15672 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15673 *** reliably create shared libraries on SCO systems. Therefore, libtool 15674 *** is disabling shared libraries support. We urge you to upgrade GNU 15675 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15676 *** your PATH or compiler configuration so that the native linker is 15677 *** used, and then restart. 15678 15679 _LT_EOF 15680 ;; 15681 *) 15682 # For security reasons, it is highly recommended that you always 15683 # use absolute paths for naming shared libraries, and exclude the 15684 # DT_RUNPATH tag from executables and libraries. But doing so 15685 # requires that you compile everything twice, which is a pain. 15686 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15687 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15689 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15690 else 15691 ld_shlibs=no 15692 fi 15693 ;; 15694 esac 15695 ;; 15696 15697 sunos4*) 15698 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15699 wlarc= 15700 hardcode_direct=yes 15701 hardcode_shlibpath_var=no 15702 ;; 15703 15704 *) 15705 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15706 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15707 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15708 else 15709 ld_shlibs=no 15710 fi 15711 ;; 15712 esac 15713 15714 if test no = "$ld_shlibs"; then 15715 runpath_var= 15716 hardcode_libdir_flag_spec= 15717 export_dynamic_flag_spec= 15718 whole_archive_flag_spec= 15719 fi 15720 else 15721 # PORTME fill in a description of your system's linker (not GNU ld) 15722 case $host_os in 15723 aix3*) 15724 allow_undefined_flag=unsupported 15725 always_export_symbols=yes 15726 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' 15727 # Note: this linker hardcodes the directories in LIBPATH if there 15728 # are no directories specified by -L. 15729 hardcode_minus_L=yes 15730 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 15731 # Neither direct hardcoding nor static linking is supported with a 15732 # broken collect2. 15733 hardcode_direct=unsupported 15734 fi 15735 ;; 15736 15737 aix[4-9]*) 15738 if test ia64 = "$host_cpu"; then 15739 # On IA64, the linker does run time linking by default, so we don't 15740 # have to do anything special. 15741 aix_use_runtimelinking=no 15742 exp_sym_flag='-Bexport' 15743 no_entry_flag= 15744 else 15745 # If we're using GNU nm, then we don't want the "-C" option. 15746 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15747 # Without the "-l" option, or with the "-B" option, AIX nm treats 15748 # weak defined symbols like other global defined symbols, whereas 15749 # GNU nm marks them as "W". 15750 # While the 'weak' keyword is ignored in the Export File, we need 15751 # it in the Import File for the 'aix-soname' feature, so we have 15752 # to replace the "-B" option with "-P" for AIX nm. 15753 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15754 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' 15755 else 15756 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' 15757 fi 15758 aix_use_runtimelinking=no 15759 15760 # Test if we are trying to use run time linking or normal 15761 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15762 # have runtime linking enabled, and use it for executables. 15763 # For shared libraries, we enable/disable runtime linking 15764 # depending on the kind of the shared library created - 15765 # when "with_aix_soname,aix_use_runtimelinking" is: 15766 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15767 # "aix,yes" lib.so shared, rtl:yes, for executables 15768 # lib.a static archive 15769 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15770 # lib.a(lib.so.V) shared, rtl:no, for executables 15771 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15772 # lib.a(lib.so.V) shared, rtl:no 15773 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15774 # lib.a static archive 15775 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15776 for ld_flag in $LDFLAGS; do 15777 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 15778 aix_use_runtimelinking=yes 15779 break 15780 fi 15781 done 15782 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15783 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15784 # so we don't have lib.a shared libs to link our executables. 15785 # We have to force runtime linking in this case. 15786 aix_use_runtimelinking=yes 15787 LDFLAGS="$LDFLAGS -Wl,-brtl" 15788 fi 15789 ;; 15790 esac 15791 15792 exp_sym_flag='-bexport' 15793 no_entry_flag='-bnoentry' 15794 fi 15795 15796 # When large executables or shared objects are built, AIX ld can 15797 # have problems creating the table of contents. If linking a library 15798 # or program results in "error TOC overflow" add -mminimal-toc to 15799 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15800 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15801 15802 archive_cmds='' 15803 hardcode_direct=yes 15804 hardcode_direct_absolute=yes 15805 hardcode_libdir_separator=':' 15806 link_all_deplibs=yes 15807 file_list_spec='$wl-f,' 15808 case $with_aix_soname,$aix_use_runtimelinking in 15809 aix,*) ;; # traditional, no import file 15810 svr4,* | *,yes) # use import file 15811 # The Import File defines what to hardcode. 15812 hardcode_direct=no 15813 hardcode_direct_absolute=no 15814 ;; 15815 esac 15816 15817 if test yes = "$GCC"; then 15818 case $host_os in aix4.[012]|aix4.[012].*) 15819 # We only want to do this on AIX 4.2 and lower, the check 15820 # below for broken collect2 doesn't work under 4.3+ 15821 collect2name=`$CC -print-prog-name=collect2` 15822 if test -f "$collect2name" && 15823 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15824 then 15825 # We have reworked collect2 15826 : 15827 else 15828 # We have old collect2 15829 hardcode_direct=unsupported 15830 # It fails to find uninstalled libraries when the uninstalled 15831 # path is not listed in the libpath. Setting hardcode_minus_L 15832 # to unsupported forces relinking 15833 hardcode_minus_L=yes 15834 hardcode_libdir_flag_spec='-L$libdir' 15835 hardcode_libdir_separator= 15836 fi 15837 ;; 15838 esac 15839 shared_flag='-shared' 15840 if test yes = "$aix_use_runtimelinking"; then 15841 shared_flag="$shared_flag "'$wl-G' 15842 fi 15843 # Need to ensure runtime linking is disabled for the traditional 15844 # shared library, or the linker may eventually find shared libraries 15845 # /with/ Import File - we do not want to mix them. 15846 shared_flag_aix='-shared' 15847 shared_flag_svr4='-shared $wl-G' 15848 else 15849 # not using gcc 15850 if test ia64 = "$host_cpu"; then 15851 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15852 # chokes on -Wl,-G. The following line is correct: 15853 shared_flag='-G' 15854 else 15855 if test yes = "$aix_use_runtimelinking"; then 15856 shared_flag='$wl-G' 15857 else 15858 shared_flag='$wl-bM:SRE' 15859 fi 15860 shared_flag_aix='$wl-bM:SRE' 15861 shared_flag_svr4='$wl-G' 15862 fi 15863 fi 15864 15865 export_dynamic_flag_spec='$wl-bexpall' 15866 # It seems that -bexpall does not export symbols beginning with 15867 # underscore (_), so it is better to generate a list of symbols to export. 15868 always_export_symbols=yes 15869 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15870 # Warning - without using the other runtime loading flags (-brtl), 15871 # -berok will link without error, but may produce a broken library. 15872 allow_undefined_flag='-berok' 15873 # Determine the default libpath from the value encoded in an 15874 # empty executable. 15875 if test set = "${lt_cv_aix_libpath+set}"; then 15876 aix_libpath=$lt_cv_aix_libpath 15877 else 15878 if ${lt_cv_aix_libpath_+:} false; then : 15879 $as_echo_n "(cached) " >&6 15880 else 15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15882 /* end confdefs.h. */ 15883 15884 int 15885 main () 15886 { 15887 15888 ; 15889 return 0; 15890 } 15891 _ACEOF 15892 if ac_fn_c_try_link "$LINENO"; then : 15893 15894 lt_aix_libpath_sed=' 15895 /Import File Strings/,/^$/ { 15896 /^0/ { 15897 s/^0 *\([^ ]*\) *$/\1/ 15898 p 15899 } 15900 }' 15901 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15902 # Check for a 64-bit object if we didn't find anything. 15903 if test -z "$lt_cv_aix_libpath_"; then 15904 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15905 fi 15906 fi 15907 rm -f core conftest.err conftest.$ac_objext \ 15908 conftest$ac_exeext conftest.$ac_ext 15909 if test -z "$lt_cv_aix_libpath_"; then 15910 lt_cv_aix_libpath_=/usr/lib:/lib 15911 fi 15912 15913 fi 15914 15915 aix_libpath=$lt_cv_aix_libpath_ 15916 fi 15917 15918 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15919 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 15920 else 15921 if test ia64 = "$host_cpu"; then 15922 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 15923 allow_undefined_flag="-z nodefs" 15924 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" 15925 else 15926 # Determine the default libpath from the value encoded in an 15927 # empty executable. 15928 if test set = "${lt_cv_aix_libpath+set}"; then 15929 aix_libpath=$lt_cv_aix_libpath 15930 else 15931 if ${lt_cv_aix_libpath_+:} false; then : 15932 $as_echo_n "(cached) " >&6 15933 else 15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15935 /* end confdefs.h. */ 15936 15937 int 15938 main () 15939 { 15940 15941 ; 15942 return 0; 15943 } 15944 _ACEOF 15945 if ac_fn_c_try_link "$LINENO"; then : 15946 15947 lt_aix_libpath_sed=' 15948 /Import File Strings/,/^$/ { 15949 /^0/ { 15950 s/^0 *\([^ ]*\) *$/\1/ 15951 p 15952 } 15953 }' 15954 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15955 # Check for a 64-bit object if we didn't find anything. 15956 if test -z "$lt_cv_aix_libpath_"; then 15957 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15958 fi 15959 fi 15960 rm -f core conftest.err conftest.$ac_objext \ 15961 conftest$ac_exeext conftest.$ac_ext 15962 if test -z "$lt_cv_aix_libpath_"; then 15963 lt_cv_aix_libpath_=/usr/lib:/lib 15964 fi 15965 15966 fi 15967 15968 aix_libpath=$lt_cv_aix_libpath_ 15969 fi 15970 15971 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15972 # Warning - without using the other run time loading flags, 15973 # -berok will link without error, but may produce a broken library. 15974 no_undefined_flag=' $wl-bernotok' 15975 allow_undefined_flag=' $wl-berok' 15976 if test yes = "$with_gnu_ld"; then 15977 # We only use this code for GNU lds that support --whole-archive. 15978 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 15979 else 15980 # Exported symbols can be pulled into shared objects from archives 15981 whole_archive_flag_spec='$convenience' 15982 fi 15983 archive_cmds_need_lc=yes 15984 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 15985 # -brtl affects multiple linker settings, -berok does not and is overridden later 15986 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 15987 if test svr4 != "$with_aix_soname"; then 15988 # This is similar to how AIX traditionally builds its shared libraries. 15989 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' 15990 fi 15991 if test aix != "$with_aix_soname"; then 15992 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' 15993 else 15994 # used by -dlpreopen to get the symbols 15995 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 15996 fi 15997 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 15998 fi 15999 fi 16000 ;; 16001 16002 amigaos*) 16003 case $host_cpu in 16004 powerpc) 16005 # see comment about AmigaOS4 .so support 16006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16007 archive_expsym_cmds='' 16008 ;; 16009 m68k) 16010 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)' 16011 hardcode_libdir_flag_spec='-L$libdir' 16012 hardcode_minus_L=yes 16013 ;; 16014 esac 16015 ;; 16016 16017 bsdi[45]*) 16018 export_dynamic_flag_spec=-rdynamic 16019 ;; 16020 16021 cygwin* | mingw* | pw32* | cegcc*) 16022 # When not using gcc, we currently assume that we are using 16023 # Microsoft Visual C++. 16024 # hardcode_libdir_flag_spec is actually meaningless, as there is 16025 # no search path for DLLs. 16026 case $cc_basename in 16027 cl*) 16028 # Native MSVC 16029 hardcode_libdir_flag_spec=' ' 16030 allow_undefined_flag=unsupported 16031 always_export_symbols=yes 16032 file_list_spec='@' 16033 # Tell ltmain to make .lib files, not .a files. 16034 libext=lib 16035 # Tell ltmain to make .dll files, not .so files. 16036 shrext_cmds=.dll 16037 # FIXME: Setting linknames here is a bad hack. 16038 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16039 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16040 cp "$export_symbols" "$output_objdir/$soname.def"; 16041 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16042 else 16043 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16044 fi~ 16045 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16046 linknames=' 16047 # The linker will not automatically build a static lib if we build a DLL. 16048 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16049 enable_shared_with_static_runtimes=yes 16050 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16051 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16052 # Don't use ranlib 16053 old_postinstall_cmds='chmod 644 $oldlib' 16054 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16055 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16056 case $lt_outputfile in 16057 *.exe|*.EXE) ;; 16058 *) 16059 lt_outputfile=$lt_outputfile.exe 16060 lt_tool_outputfile=$lt_tool_outputfile.exe 16061 ;; 16062 esac~ 16063 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16064 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16065 $RM "$lt_outputfile.manifest"; 16066 fi' 16067 ;; 16068 *) 16069 # Assume MSVC wrapper 16070 hardcode_libdir_flag_spec=' ' 16071 allow_undefined_flag=unsupported 16072 # Tell ltmain to make .lib files, not .a files. 16073 libext=lib 16074 # Tell ltmain to make .dll files, not .so files. 16075 shrext_cmds=.dll 16076 # FIXME: Setting linknames here is a bad hack. 16077 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16078 # The linker will automatically build a .lib file if we build a DLL. 16079 old_archive_from_new_cmds='true' 16080 # FIXME: Should let the user specify the lib program. 16081 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16082 enable_shared_with_static_runtimes=yes 16083 ;; 16084 esac 16085 ;; 16086 16087 darwin* | rhapsody*) 16088 16089 16090 archive_cmds_need_lc=no 16091 hardcode_direct=no 16092 hardcode_automatic=yes 16093 hardcode_shlibpath_var=unsupported 16094 if test yes = "$lt_cv_ld_force_load"; then 16095 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\"`' 16096 16097 else 16098 whole_archive_flag_spec='' 16099 fi 16100 link_all_deplibs=yes 16101 allow_undefined_flag=$_lt_dar_allow_undefined 16102 case $cc_basename in 16103 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16104 *) _lt_dar_can_shared=$GCC ;; 16105 esac 16106 if test yes = "$_lt_dar_can_shared"; then 16107 output_verbose_link_cmd=func_echo_all 16108 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16109 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16110 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" 16111 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" 16112 16113 else 16114 ld_shlibs=no 16115 fi 16116 16117 ;; 16118 16119 dgux*) 16120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16121 hardcode_libdir_flag_spec='-L$libdir' 16122 hardcode_shlibpath_var=no 16123 ;; 16124 16125 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16126 # support. Future versions do this automatically, but an explicit c++rt0.o 16127 # does not break anything, and helps significantly (at the cost of a little 16128 # extra space). 16129 freebsd2.2*) 16130 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16131 hardcode_libdir_flag_spec='-R$libdir' 16132 hardcode_direct=yes 16133 hardcode_shlibpath_var=no 16134 ;; 16135 16136 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16137 freebsd2.*) 16138 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16139 hardcode_direct=yes 16140 hardcode_minus_L=yes 16141 hardcode_shlibpath_var=no 16142 ;; 16143 16144 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16145 freebsd* | dragonfly*) 16146 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16147 hardcode_libdir_flag_spec='-R$libdir' 16148 hardcode_direct=yes 16149 hardcode_shlibpath_var=no 16150 ;; 16151 16152 hpux9*) 16153 if test yes = "$GCC"; then 16154 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' 16155 else 16156 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' 16157 fi 16158 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16159 hardcode_libdir_separator=: 16160 hardcode_direct=yes 16161 16162 # hardcode_minus_L: Not really in the search PATH, 16163 # but as the default location of the library. 16164 hardcode_minus_L=yes 16165 export_dynamic_flag_spec='$wl-E' 16166 ;; 16167 16168 hpux10*) 16169 if test yes,no = "$GCC,$with_gnu_ld"; then 16170 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16171 else 16172 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16173 fi 16174 if test no = "$with_gnu_ld"; then 16175 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16176 hardcode_libdir_separator=: 16177 hardcode_direct=yes 16178 hardcode_direct_absolute=yes 16179 export_dynamic_flag_spec='$wl-E' 16180 # hardcode_minus_L: Not really in the search PATH, 16181 # but as the default location of the library. 16182 hardcode_minus_L=yes 16183 fi 16184 ;; 16185 16186 hpux11*) 16187 if test yes,no = "$GCC,$with_gnu_ld"; then 16188 case $host_cpu in 16189 hppa*64*) 16190 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16191 ;; 16192 ia64*) 16193 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16194 ;; 16195 *) 16196 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16197 ;; 16198 esac 16199 else 16200 case $host_cpu in 16201 hppa*64*) 16202 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16203 ;; 16204 ia64*) 16205 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16206 ;; 16207 *) 16208 16209 # Older versions of the 11.00 compiler do not understand -b yet 16210 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16212 $as_echo_n "checking if $CC understands -b... " >&6; } 16213 if ${lt_cv_prog_compiler__b+:} false; then : 16214 $as_echo_n "(cached) " >&6 16215 else 16216 lt_cv_prog_compiler__b=no 16217 save_LDFLAGS=$LDFLAGS 16218 LDFLAGS="$LDFLAGS -b" 16219 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16220 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16221 # The linker can only warn and ignore the option if not recognized 16222 # So say no if there are warnings 16223 if test -s conftest.err; then 16224 # Append any errors to the config.log. 16225 cat conftest.err 1>&5 16226 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16227 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16228 if diff conftest.exp conftest.er2 >/dev/null; then 16229 lt_cv_prog_compiler__b=yes 16230 fi 16231 else 16232 lt_cv_prog_compiler__b=yes 16233 fi 16234 fi 16235 $RM -r conftest* 16236 LDFLAGS=$save_LDFLAGS 16237 16238 fi 16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16240 $as_echo "$lt_cv_prog_compiler__b" >&6; } 16241 16242 if test yes = "$lt_cv_prog_compiler__b"; then 16243 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16244 else 16245 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16246 fi 16247 16248 ;; 16249 esac 16250 fi 16251 if test no = "$with_gnu_ld"; then 16252 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16253 hardcode_libdir_separator=: 16254 16255 case $host_cpu in 16256 hppa*64*|ia64*) 16257 hardcode_direct=no 16258 hardcode_shlibpath_var=no 16259 ;; 16260 *) 16261 hardcode_direct=yes 16262 hardcode_direct_absolute=yes 16263 export_dynamic_flag_spec='$wl-E' 16264 16265 # hardcode_minus_L: Not really in the search PATH, 16266 # but as the default location of the library. 16267 hardcode_minus_L=yes 16268 ;; 16269 esac 16270 fi 16271 ;; 16272 16273 irix5* | irix6* | nonstopux*) 16274 if test yes = "$GCC"; then 16275 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' 16276 # Try to use the -exported_symbol ld option, if it does not 16277 # work, assume that -exports_file does not work either and 16278 # implicitly export all symbols. 16279 # This should be the same for all languages, so no per-tag cache variable. 16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16281 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16282 if ${lt_cv_irix_exported_symbol+:} false; then : 16283 $as_echo_n "(cached) " >&6 16284 else 16285 save_LDFLAGS=$LDFLAGS 16286 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16288 /* end confdefs.h. */ 16289 int foo (void) { return 0; } 16290 _ACEOF 16291 if ac_fn_c_try_link "$LINENO"; then : 16292 lt_cv_irix_exported_symbol=yes 16293 else 16294 lt_cv_irix_exported_symbol=no 16295 fi 16296 rm -f core conftest.err conftest.$ac_objext \ 16297 conftest$ac_exeext conftest.$ac_ext 16298 LDFLAGS=$save_LDFLAGS 16299 fi 16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16301 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 16302 if test yes = "$lt_cv_irix_exported_symbol"; then 16303 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' 16304 fi 16305 link_all_deplibs=no 16306 else 16307 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' 16308 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' 16309 fi 16310 archive_cmds_need_lc='no' 16311 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16312 hardcode_libdir_separator=: 16313 inherit_rpath=yes 16314 link_all_deplibs=yes 16315 ;; 16316 16317 linux*) 16318 case $cc_basename in 16319 tcc*) 16320 # Fabrice Bellard et al's Tiny C Compiler 16321 ld_shlibs=yes 16322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16323 ;; 16324 esac 16325 ;; 16326 16327 netbsd* | netbsdelf*-gnu) 16328 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16330 else 16331 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16332 fi 16333 hardcode_libdir_flag_spec='-R$libdir' 16334 hardcode_direct=yes 16335 hardcode_shlibpath_var=no 16336 ;; 16337 16338 newsos6) 16339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16340 hardcode_direct=yes 16341 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16342 hardcode_libdir_separator=: 16343 hardcode_shlibpath_var=no 16344 ;; 16345 16346 *nto* | *qnx*) 16347 ;; 16348 16349 openbsd* | bitrig*) 16350 if test -f /usr/libexec/ld.so; then 16351 hardcode_direct=yes 16352 hardcode_shlibpath_var=no 16353 hardcode_direct_absolute=yes 16354 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16355 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16356 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16357 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16358 export_dynamic_flag_spec='$wl-E' 16359 else 16360 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16361 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16362 fi 16363 else 16364 ld_shlibs=no 16365 fi 16366 ;; 16367 16368 os2*) 16369 hardcode_libdir_flag_spec='-L$libdir' 16370 hardcode_minus_L=yes 16371 allow_undefined_flag=unsupported 16372 shrext_cmds=.dll 16373 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16374 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16375 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16376 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16377 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16378 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16379 emximp -o $lib $output_objdir/$libname.def' 16380 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16381 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16382 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16383 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16384 prefix_cmds="$SED"~ 16385 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16386 prefix_cmds="$prefix_cmds -e 1d"; 16387 fi~ 16388 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16389 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16390 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16391 emximp -o $lib $output_objdir/$libname.def' 16392 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16393 enable_shared_with_static_runtimes=yes 16394 ;; 16395 16396 osf3*) 16397 if test yes = "$GCC"; then 16398 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16399 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' 16400 else 16401 allow_undefined_flag=' -expect_unresolved \*' 16402 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' 16403 fi 16404 archive_cmds_need_lc='no' 16405 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16406 hardcode_libdir_separator=: 16407 ;; 16408 16409 osf4* | osf5*) # as osf3* with the addition of -msym flag 16410 if test yes = "$GCC"; then 16411 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16412 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' 16413 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16414 else 16415 allow_undefined_flag=' -expect_unresolved \*' 16416 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' 16417 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~ 16418 $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' 16419 16420 # Both c and cxx compiler support -rpath directly 16421 hardcode_libdir_flag_spec='-rpath $libdir' 16422 fi 16423 archive_cmds_need_lc='no' 16424 hardcode_libdir_separator=: 16425 ;; 16426 16427 solaris*) 16428 no_undefined_flag=' -z defs' 16429 if test yes = "$GCC"; then 16430 wlarc='$wl' 16431 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16432 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16433 $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' 16434 else 16435 case `$CC -V 2>&1` in 16436 *"Compilers 5.0"*) 16437 wlarc='' 16438 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16439 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16440 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16441 ;; 16442 *) 16443 wlarc='$wl' 16444 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16445 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16446 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16447 ;; 16448 esac 16449 fi 16450 hardcode_libdir_flag_spec='-R$libdir' 16451 hardcode_shlibpath_var=no 16452 case $host_os in 16453 solaris2.[0-5] | solaris2.[0-5].*) ;; 16454 *) 16455 # The compiler driver will combine and reorder linker options, 16456 # but understands '-z linker_flag'. GCC discards it without '$wl', 16457 # but is careful enough not to reorder. 16458 # Supported since Solaris 2.6 (maybe 2.5.1?) 16459 if test yes = "$GCC"; then 16460 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16461 else 16462 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16463 fi 16464 ;; 16465 esac 16466 link_all_deplibs=yes 16467 ;; 16468 16469 sunos4*) 16470 if test sequent = "$host_vendor"; then 16471 # Use $CC to link under sequent, because it throws in some extra .o 16472 # files that make .init and .fini sections work. 16473 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16474 else 16475 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16476 fi 16477 hardcode_libdir_flag_spec='-L$libdir' 16478 hardcode_direct=yes 16479 hardcode_minus_L=yes 16480 hardcode_shlibpath_var=no 16481 ;; 16482 16483 sysv4) 16484 case $host_vendor in 16485 sni) 16486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16487 hardcode_direct=yes # is this really true??? 16488 ;; 16489 siemens) 16490 ## LD is ld it makes a PLAMLIB 16491 ## CC just makes a GrossModule. 16492 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16493 reload_cmds='$CC -r -o $output$reload_objs' 16494 hardcode_direct=no 16495 ;; 16496 motorola) 16497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16498 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16499 ;; 16500 esac 16501 runpath_var='LD_RUN_PATH' 16502 hardcode_shlibpath_var=no 16503 ;; 16504 16505 sysv4.3*) 16506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16507 hardcode_shlibpath_var=no 16508 export_dynamic_flag_spec='-Bexport' 16509 ;; 16510 16511 sysv4*MP*) 16512 if test -d /usr/nec; then 16513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16514 hardcode_shlibpath_var=no 16515 runpath_var=LD_RUN_PATH 16516 hardcode_runpath_var=yes 16517 ld_shlibs=yes 16518 fi 16519 ;; 16520 16521 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16522 no_undefined_flag='$wl-z,text' 16523 archive_cmds_need_lc=no 16524 hardcode_shlibpath_var=no 16525 runpath_var='LD_RUN_PATH' 16526 16527 if test yes = "$GCC"; then 16528 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16529 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16530 else 16531 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16532 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16533 fi 16534 ;; 16535 16536 sysv5* | sco3.2v5* | sco5v6*) 16537 # Note: We CANNOT use -z defs as we might desire, because we do not 16538 # link with -lc, and that would cause any symbols used from libc to 16539 # always be unresolved, which means just about no library would 16540 # ever link correctly. If we're not using GNU ld we use -z text 16541 # though, which does catch some bad symbols but isn't as heavy-handed 16542 # as -z defs. 16543 no_undefined_flag='$wl-z,text' 16544 allow_undefined_flag='$wl-z,nodefs' 16545 archive_cmds_need_lc=no 16546 hardcode_shlibpath_var=no 16547 hardcode_libdir_flag_spec='$wl-R,$libdir' 16548 hardcode_libdir_separator=':' 16549 link_all_deplibs=yes 16550 export_dynamic_flag_spec='$wl-Bexport' 16551 runpath_var='LD_RUN_PATH' 16552 16553 if test yes = "$GCC"; then 16554 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16555 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16556 else 16557 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16558 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16559 fi 16560 ;; 16561 16562 uts4*) 16563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16564 hardcode_libdir_flag_spec='-L$libdir' 16565 hardcode_shlibpath_var=no 16566 ;; 16567 16568 *) 16569 ld_shlibs=no 16570 ;; 16571 esac 16572 16573 if test sni = "$host_vendor"; then 16574 case $host in 16575 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16576 export_dynamic_flag_spec='$wl-Blargedynsym' 16577 ;; 16578 esac 16579 fi 16580 fi 16581 16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16583 $as_echo "$ld_shlibs" >&6; } 16584 test no = "$ld_shlibs" && can_build_shared=no 16585 16586 with_gnu_ld=$with_gnu_ld 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 # 16603 # Do we need to explicitly link libc? 16604 # 16605 case "x$archive_cmds_need_lc" in 16606 x|xyes) 16607 # Assume -lc should be added 16608 archive_cmds_need_lc=yes 16609 16610 if test yes,yes = "$GCC,$enable_shared"; then 16611 case $archive_cmds in 16612 *'~'*) 16613 # FIXME: we may have to deal with multi-command sequences. 16614 ;; 16615 '$CC '*) 16616 # Test whether the compiler implicitly links with -lc since on some 16617 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16618 # to ld, don't add -lc before -lgcc. 16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16620 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16621 if ${lt_cv_archive_cmds_need_lc+:} false; then : 16622 $as_echo_n "(cached) " >&6 16623 else 16624 $RM conftest* 16625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16626 16627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16628 (eval $ac_compile) 2>&5 16629 ac_status=$? 16630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16631 test $ac_status = 0; } 2>conftest.err; then 16632 soname=conftest 16633 lib=conftest 16634 libobjs=conftest.$ac_objext 16635 deplibs= 16636 wl=$lt_prog_compiler_wl 16637 pic_flag=$lt_prog_compiler_pic 16638 compiler_flags=-v 16639 linker_flags=-v 16640 verstring= 16641 output_objdir=. 16642 libname=conftest 16643 lt_save_allow_undefined_flag=$allow_undefined_flag 16644 allow_undefined_flag= 16645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16646 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16647 ac_status=$? 16648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16649 test $ac_status = 0; } 16650 then 16651 lt_cv_archive_cmds_need_lc=no 16652 else 16653 lt_cv_archive_cmds_need_lc=yes 16654 fi 16655 allow_undefined_flag=$lt_save_allow_undefined_flag 16656 else 16657 cat conftest.err 1>&5 16658 fi 16659 $RM conftest* 16660 16661 fi 16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16663 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16664 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16665 ;; 16666 esac 16667 fi 16668 ;; 16669 esac 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16823 $as_echo_n "checking dynamic linker characteristics... " >&6; } 16824 16825 if test yes = "$GCC"; then 16826 case $host_os in 16827 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 16828 *) lt_awk_arg='/^libraries:/' ;; 16829 esac 16830 case $host_os in 16831 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 16832 *) lt_sed_strip_eq='s|=/|/|g' ;; 16833 esac 16834 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16835 case $lt_search_path_spec in 16836 *\;*) 16837 # if the path contains ";" then we assume it to be the separator 16838 # otherwise default to the standard path separator (i.e. ":") - it is 16839 # assumed that no part of a normal pathname contains ";" but that should 16840 # okay in the real world where ";" in dirpaths is itself problematic. 16841 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16842 ;; 16843 *) 16844 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16845 ;; 16846 esac 16847 # Ok, now we have the path, separated by spaces, we can step through it 16848 # and add multilib dir if necessary... 16849 lt_tmp_lt_search_path_spec= 16850 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16851 # ...but if some path component already ends with the multilib dir we assume 16852 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 16853 case "$lt_multi_os_dir; $lt_search_path_spec " in 16854 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 16855 lt_multi_os_dir= 16856 ;; 16857 esac 16858 for lt_sys_path in $lt_search_path_spec; do 16859 if test -d "$lt_sys_path$lt_multi_os_dir"; then 16860 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 16861 elif test -n "$lt_multi_os_dir"; then 16862 test -d "$lt_sys_path" && \ 16863 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16864 fi 16865 done 16866 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16867 BEGIN {RS = " "; FS = "/|\n";} { 16868 lt_foo = ""; 16869 lt_count = 0; 16870 for (lt_i = NF; lt_i > 0; lt_i--) { 16871 if ($lt_i != "" && $lt_i != ".") { 16872 if ($lt_i == "..") { 16873 lt_count++; 16874 } else { 16875 if (lt_count == 0) { 16876 lt_foo = "/" $lt_i lt_foo; 16877 } else { 16878 lt_count--; 16879 } 16880 } 16881 } 16882 } 16883 if (lt_foo != "") { lt_freq[lt_foo]++; } 16884 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16885 }'` 16886 # AWK program above erroneously prepends '/' to C:/dos/paths 16887 # for these hosts. 16888 case $host_os in 16889 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16890 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 16891 esac 16892 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16893 else 16894 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16895 fi 16896 library_names_spec= 16897 libname_spec='lib$name' 16898 soname_spec= 16899 shrext_cmds=.so 16900 postinstall_cmds= 16901 postuninstall_cmds= 16902 finish_cmds= 16903 finish_eval= 16904 shlibpath_var= 16905 shlibpath_overrides_runpath=unknown 16906 version_type=none 16907 dynamic_linker="$host_os ld.so" 16908 sys_lib_dlsearch_path_spec="/lib /usr/lib" 16909 need_lib_prefix=unknown 16910 hardcode_into_libs=no 16911 16912 # when you set need_version to no, make sure it does not cause -set_version 16913 # flags to be left without arguments 16914 need_version=unknown 16915 16916 16917 16918 case $host_os in 16919 aix3*) 16920 version_type=linux # correct to gnu/linux during the next big refactor 16921 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16922 shlibpath_var=LIBPATH 16923 16924 # AIX 3 has no versioning support, so we append a major version to the name. 16925 soname_spec='$libname$release$shared_ext$major' 16926 ;; 16927 16928 aix[4-9]*) 16929 version_type=linux # correct to gnu/linux during the next big refactor 16930 need_lib_prefix=no 16931 need_version=no 16932 hardcode_into_libs=yes 16933 if test ia64 = "$host_cpu"; then 16934 # AIX 5 supports IA64 16935 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16936 shlibpath_var=LD_LIBRARY_PATH 16937 else 16938 # With GCC up to 2.95.x, collect2 would create an import file 16939 # for dependence libraries. The import file would start with 16940 # the line '#! .'. This would cause the generated library to 16941 # depend on '.', always an invalid library. This was fixed in 16942 # development snapshots of GCC prior to 3.0. 16943 case $host_os in 16944 aix4 | aix4.[01] | aix4.[01].*) 16945 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16946 echo ' yes ' 16947 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16948 : 16949 else 16950 can_build_shared=no 16951 fi 16952 ;; 16953 esac 16954 # Using Import Files as archive members, it is possible to support 16955 # filename-based versioning of shared library archives on AIX. While 16956 # this would work for both with and without runtime linking, it will 16957 # prevent static linking of such archives. So we do filename-based 16958 # shared library versioning with .so extension only, which is used 16959 # when both runtime linking and shared linking is enabled. 16960 # Unfortunately, runtime linking may impact performance, so we do 16961 # not want this to be the default eventually. Also, we use the 16962 # versioned .so libs for executables only if there is the -brtl 16963 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16964 # To allow for filename-based versioning support, we need to create 16965 # libNAME.so.V as an archive file, containing: 16966 # *) an Import File, referring to the versioned filename of the 16967 # archive as well as the shared archive member, telling the 16968 # bitwidth (32 or 64) of that shared object, and providing the 16969 # list of exported symbols of that shared object, eventually 16970 # decorated with the 'weak' keyword 16971 # *) the shared object with the F_LOADONLY flag set, to really avoid 16972 # it being seen by the linker. 16973 # At run time we better use the real file rather than another symlink, 16974 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16975 16976 case $with_aix_soname,$aix_use_runtimelinking in 16977 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16978 # soname into executable. Probably we can add versioning support to 16979 # collect2, so additional links can be useful in future. 16980 aix,yes) # traditional libtool 16981 dynamic_linker='AIX unversionable lib.so' 16982 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16983 # instead of lib<name>.a to let people know that these are not 16984 # typical AIX shared libraries. 16985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16986 ;; 16987 aix,no) # traditional AIX only 16988 dynamic_linker='AIX lib.a(lib.so.V)' 16989 # We preserve .a as extension for shared libraries through AIX4.2 16990 # and later when we are not doing run time linking. 16991 library_names_spec='$libname$release.a $libname.a' 16992 soname_spec='$libname$release$shared_ext$major' 16993 ;; 16994 svr4,*) # full svr4 only 16995 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16996 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16997 # We do not specify a path in Import Files, so LIBPATH fires. 16998 shlibpath_overrides_runpath=yes 16999 ;; 17000 *,yes) # both, prefer svr4 17001 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17002 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17003 # unpreferred sharedlib libNAME.a needs extra handling 17004 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"' 17005 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"' 17006 # We do not specify a path in Import Files, so LIBPATH fires. 17007 shlibpath_overrides_runpath=yes 17008 ;; 17009 *,no) # both, prefer aix 17010 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17011 library_names_spec='$libname$release.a $libname.a' 17012 soname_spec='$libname$release$shared_ext$major' 17013 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17014 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)' 17015 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"' 17016 ;; 17017 esac 17018 shlibpath_var=LIBPATH 17019 fi 17020 ;; 17021 17022 amigaos*) 17023 case $host_cpu in 17024 powerpc) 17025 # Since July 2007 AmigaOS4 officially supports .so libraries. 17026 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17028 ;; 17029 m68k) 17030 library_names_spec='$libname.ixlibrary $libname.a' 17031 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17032 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' 17033 ;; 17034 esac 17035 ;; 17036 17037 beos*) 17038 library_names_spec='$libname$shared_ext' 17039 dynamic_linker="$host_os ld.so" 17040 shlibpath_var=LIBRARY_PATH 17041 ;; 17042 17043 bsdi[45]*) 17044 version_type=linux # correct to gnu/linux during the next big refactor 17045 need_version=no 17046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17047 soname_spec='$libname$release$shared_ext$major' 17048 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17049 shlibpath_var=LD_LIBRARY_PATH 17050 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17051 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17052 # the default ld.so.conf also contains /usr/contrib/lib and 17053 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17054 # libtool to hard-code these into programs 17055 ;; 17056 17057 cygwin* | mingw* | pw32* | cegcc*) 17058 version_type=windows 17059 shrext_cmds=.dll 17060 need_version=no 17061 need_lib_prefix=no 17062 17063 case $GCC,$cc_basename in 17064 yes,*) 17065 # gcc 17066 library_names_spec='$libname.dll.a' 17067 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17068 postinstall_cmds='base_file=`basename \$file`~ 17069 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17070 dldir=$destdir/`dirname \$dlpath`~ 17071 test -d \$dldir || mkdir -p \$dldir~ 17072 $install_prog $dir/$dlname \$dldir/$dlname~ 17073 chmod a+x \$dldir/$dlname~ 17074 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17075 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17076 fi' 17077 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17078 dlpath=$dir/\$dldll~ 17079 $RM \$dlpath' 17080 shlibpath_overrides_runpath=yes 17081 17082 case $host_os in 17083 cygwin*) 17084 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17085 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17086 17087 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17088 ;; 17089 mingw* | cegcc*) 17090 # MinGW DLLs use traditional 'lib' prefix 17091 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17092 ;; 17093 pw32*) 17094 # pw32 DLLs use 'pw' prefix rather than 'lib' 17095 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17096 ;; 17097 esac 17098 dynamic_linker='Win32 ld.exe' 17099 ;; 17100 17101 *,cl*) 17102 # Native MSVC 17103 libname_spec='$name' 17104 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17105 library_names_spec='$libname.dll.lib' 17106 17107 case $build_os in 17108 mingw*) 17109 sys_lib_search_path_spec= 17110 lt_save_ifs=$IFS 17111 IFS=';' 17112 for lt_path in $LIB 17113 do 17114 IFS=$lt_save_ifs 17115 # Let DOS variable expansion print the short 8.3 style file name. 17116 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17117 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17118 done 17119 IFS=$lt_save_ifs 17120 # Convert to MSYS style. 17121 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17122 ;; 17123 cygwin*) 17124 # Convert to unix form, then to dos form, then back to unix form 17125 # but this time dos style (no spaces!) so that the unix form looks 17126 # like /cygdrive/c/PROGRA~1:/cygdr... 17127 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17128 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17129 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17130 ;; 17131 *) 17132 sys_lib_search_path_spec=$LIB 17133 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17134 # It is most probably a Windows format PATH. 17135 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17136 else 17137 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17138 fi 17139 # FIXME: find the short name or the path components, as spaces are 17140 # common. (e.g. "Program Files" -> "PROGRA~1") 17141 ;; 17142 esac 17143 17144 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17145 postinstall_cmds='base_file=`basename \$file`~ 17146 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17147 dldir=$destdir/`dirname \$dlpath`~ 17148 test -d \$dldir || mkdir -p \$dldir~ 17149 $install_prog $dir/$dlname \$dldir/$dlname' 17150 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17151 dlpath=$dir/\$dldll~ 17152 $RM \$dlpath' 17153 shlibpath_overrides_runpath=yes 17154 dynamic_linker='Win32 link.exe' 17155 ;; 17156 17157 *) 17158 # Assume MSVC wrapper 17159 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17160 dynamic_linker='Win32 ld.exe' 17161 ;; 17162 esac 17163 # FIXME: first we should search . and the directory the executable is in 17164 shlibpath_var=PATH 17165 ;; 17166 17167 darwin* | rhapsody*) 17168 dynamic_linker="$host_os dyld" 17169 version_type=darwin 17170 need_lib_prefix=no 17171 need_version=no 17172 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17173 soname_spec='$libname$release$major$shared_ext' 17174 shlibpath_overrides_runpath=yes 17175 shlibpath_var=DYLD_LIBRARY_PATH 17176 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17177 17178 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17179 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17180 ;; 17181 17182 dgux*) 17183 version_type=linux # correct to gnu/linux during the next big refactor 17184 need_lib_prefix=no 17185 need_version=no 17186 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17187 soname_spec='$libname$release$shared_ext$major' 17188 shlibpath_var=LD_LIBRARY_PATH 17189 ;; 17190 17191 freebsd* | dragonfly*) 17192 # DragonFly does not have aout. When/if they implement a new 17193 # versioning mechanism, adjust this. 17194 if test -x /usr/bin/objformat; then 17195 objformat=`/usr/bin/objformat` 17196 else 17197 case $host_os in 17198 freebsd[23].*) objformat=aout ;; 17199 *) objformat=elf ;; 17200 esac 17201 fi 17202 version_type=freebsd-$objformat 17203 case $version_type in 17204 freebsd-elf*) 17205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17206 soname_spec='$libname$release$shared_ext$major' 17207 need_version=no 17208 need_lib_prefix=no 17209 ;; 17210 freebsd-*) 17211 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17212 need_version=yes 17213 ;; 17214 esac 17215 shlibpath_var=LD_LIBRARY_PATH 17216 case $host_os in 17217 freebsd2.*) 17218 shlibpath_overrides_runpath=yes 17219 ;; 17220 freebsd3.[01]* | freebsdelf3.[01]*) 17221 shlibpath_overrides_runpath=yes 17222 hardcode_into_libs=yes 17223 ;; 17224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17226 shlibpath_overrides_runpath=no 17227 hardcode_into_libs=yes 17228 ;; 17229 *) # from 4.6 on, and DragonFly 17230 shlibpath_overrides_runpath=yes 17231 hardcode_into_libs=yes 17232 ;; 17233 esac 17234 ;; 17235 17236 haiku*) 17237 version_type=linux # correct to gnu/linux during the next big refactor 17238 need_lib_prefix=no 17239 need_version=no 17240 dynamic_linker="$host_os runtime_loader" 17241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17242 soname_spec='$libname$release$shared_ext$major' 17243 shlibpath_var=LIBRARY_PATH 17244 shlibpath_overrides_runpath=no 17245 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17246 hardcode_into_libs=yes 17247 ;; 17248 17249 hpux9* | hpux10* | hpux11*) 17250 # Give a soname corresponding to the major version so that dld.sl refuses to 17251 # link against other versions. 17252 version_type=sunos 17253 need_lib_prefix=no 17254 need_version=no 17255 case $host_cpu in 17256 ia64*) 17257 shrext_cmds='.so' 17258 hardcode_into_libs=yes 17259 dynamic_linker="$host_os dld.so" 17260 shlibpath_var=LD_LIBRARY_PATH 17261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17263 soname_spec='$libname$release$shared_ext$major' 17264 if test 32 = "$HPUX_IA64_MODE"; then 17265 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17266 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17267 else 17268 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17269 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17270 fi 17271 ;; 17272 hppa*64*) 17273 shrext_cmds='.sl' 17274 hardcode_into_libs=yes 17275 dynamic_linker="$host_os dld.sl" 17276 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17279 soname_spec='$libname$release$shared_ext$major' 17280 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17282 ;; 17283 *) 17284 shrext_cmds='.sl' 17285 dynamic_linker="$host_os dld.sl" 17286 shlibpath_var=SHLIB_PATH 17287 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17289 soname_spec='$libname$release$shared_ext$major' 17290 ;; 17291 esac 17292 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17293 postinstall_cmds='chmod 555 $lib' 17294 # or fails outright, so override atomically: 17295 install_override_mode=555 17296 ;; 17297 17298 interix[3-9]*) 17299 version_type=linux # correct to gnu/linux during the next big refactor 17300 need_lib_prefix=no 17301 need_version=no 17302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17303 soname_spec='$libname$release$shared_ext$major' 17304 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17305 shlibpath_var=LD_LIBRARY_PATH 17306 shlibpath_overrides_runpath=no 17307 hardcode_into_libs=yes 17308 ;; 17309 17310 irix5* | irix6* | nonstopux*) 17311 case $host_os in 17312 nonstopux*) version_type=nonstopux ;; 17313 *) 17314 if test yes = "$lt_cv_prog_gnu_ld"; then 17315 version_type=linux # correct to gnu/linux during the next big refactor 17316 else 17317 version_type=irix 17318 fi ;; 17319 esac 17320 need_lib_prefix=no 17321 need_version=no 17322 soname_spec='$libname$release$shared_ext$major' 17323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17324 case $host_os in 17325 irix5* | nonstopux*) 17326 libsuff= shlibsuff= 17327 ;; 17328 *) 17329 case $LD in # libtool.m4 will add one of these switches to LD 17330 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17331 libsuff= shlibsuff= libmagic=32-bit;; 17332 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17333 libsuff=32 shlibsuff=N32 libmagic=N32;; 17334 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17335 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17336 *) libsuff= shlibsuff= libmagic=never-match;; 17337 esac 17338 ;; 17339 esac 17340 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17341 shlibpath_overrides_runpath=no 17342 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17343 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17344 hardcode_into_libs=yes 17345 ;; 17346 17347 # No shared lib support for Linux oldld, aout, or coff. 17348 linux*oldld* | linux*aout* | linux*coff*) 17349 dynamic_linker=no 17350 ;; 17351 17352 linux*android*) 17353 version_type=none # Android doesn't support versioned libraries. 17354 need_lib_prefix=no 17355 need_version=no 17356 library_names_spec='$libname$release$shared_ext' 17357 soname_spec='$libname$release$shared_ext' 17358 finish_cmds= 17359 shlibpath_var=LD_LIBRARY_PATH 17360 shlibpath_overrides_runpath=yes 17361 17362 # This implies no fast_install, which is unacceptable. 17363 # Some rework will be needed to allow for fast_install 17364 # before this can be enabled. 17365 hardcode_into_libs=yes 17366 17367 dynamic_linker='Android linker' 17368 # Don't embed -rpath directories since the linker doesn't support them. 17369 hardcode_libdir_flag_spec='-L$libdir' 17370 ;; 17371 17372 # This must be glibc/ELF. 17373 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17374 version_type=linux # correct to gnu/linux during the next big refactor 17375 need_lib_prefix=no 17376 need_version=no 17377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17378 soname_spec='$libname$release$shared_ext$major' 17379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17380 shlibpath_var=LD_LIBRARY_PATH 17381 shlibpath_overrides_runpath=no 17382 17383 # Some binutils ld are patched to set DT_RUNPATH 17384 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17385 $as_echo_n "(cached) " >&6 17386 else 17387 lt_cv_shlibpath_overrides_runpath=no 17388 save_LDFLAGS=$LDFLAGS 17389 save_libdir=$libdir 17390 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17391 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17393 /* end confdefs.h. */ 17394 17395 int 17396 main () 17397 { 17398 17399 ; 17400 return 0; 17401 } 17402 _ACEOF 17403 if ac_fn_c_try_link "$LINENO"; then : 17404 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17405 lt_cv_shlibpath_overrides_runpath=yes 17406 fi 17407 fi 17408 rm -f core conftest.err conftest.$ac_objext \ 17409 conftest$ac_exeext conftest.$ac_ext 17410 LDFLAGS=$save_LDFLAGS 17411 libdir=$save_libdir 17412 17413 fi 17414 17415 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17416 17417 # This implies no fast_install, which is unacceptable. 17418 # Some rework will be needed to allow for fast_install 17419 # before this can be enabled. 17420 hardcode_into_libs=yes 17421 17422 # Ideally, we could use ldconfig to report *all* directores which are 17423 # searched for libraries, however this is still not possible. Aside from not 17424 # being certain /sbin/ldconfig is available, command 17425 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17426 # even though it is searched at run-time. Try to do the best guess by 17427 # appending ld.so.conf contents (and includes) to the search path. 17428 if test -f /etc/ld.so.conf; then 17429 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' ' '` 17430 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17431 fi 17432 17433 # We used to test for /lib/ld.so.1 and disable shared libraries on 17434 # powerpc, because MkLinux only supported shared libraries with the 17435 # GNU dynamic linker. Since this was broken with cross compilers, 17436 # most powerpc-linux boxes support dynamic linking these days and 17437 # people can always --disable-shared, the test was removed, and we 17438 # assume the GNU/Linux dynamic linker is in use. 17439 dynamic_linker='GNU/Linux ld.so' 17440 ;; 17441 17442 netbsdelf*-gnu) 17443 version_type=linux 17444 need_lib_prefix=no 17445 need_version=no 17446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17447 soname_spec='${libname}${release}${shared_ext}$major' 17448 shlibpath_var=LD_LIBRARY_PATH 17449 shlibpath_overrides_runpath=no 17450 hardcode_into_libs=yes 17451 dynamic_linker='NetBSD ld.elf_so' 17452 ;; 17453 17454 netbsd*) 17455 version_type=sunos 17456 need_lib_prefix=no 17457 need_version=no 17458 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17459 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17461 dynamic_linker='NetBSD (a.out) ld.so' 17462 else 17463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17464 soname_spec='$libname$release$shared_ext$major' 17465 dynamic_linker='NetBSD ld.elf_so' 17466 fi 17467 shlibpath_var=LD_LIBRARY_PATH 17468 shlibpath_overrides_runpath=yes 17469 hardcode_into_libs=yes 17470 ;; 17471 17472 newsos6) 17473 version_type=linux # correct to gnu/linux during the next big refactor 17474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17475 shlibpath_var=LD_LIBRARY_PATH 17476 shlibpath_overrides_runpath=yes 17477 ;; 17478 17479 *nto* | *qnx*) 17480 version_type=qnx 17481 need_lib_prefix=no 17482 need_version=no 17483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17484 soname_spec='$libname$release$shared_ext$major' 17485 shlibpath_var=LD_LIBRARY_PATH 17486 shlibpath_overrides_runpath=no 17487 hardcode_into_libs=yes 17488 dynamic_linker='ldqnx.so' 17489 ;; 17490 17491 openbsd* | bitrig*) 17492 version_type=sunos 17493 sys_lib_dlsearch_path_spec=/usr/lib 17494 need_lib_prefix=no 17495 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17496 need_version=no 17497 else 17498 need_version=yes 17499 fi 17500 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17502 shlibpath_var=LD_LIBRARY_PATH 17503 shlibpath_overrides_runpath=yes 17504 ;; 17505 17506 os2*) 17507 libname_spec='$name' 17508 version_type=windows 17509 shrext_cmds=.dll 17510 need_version=no 17511 need_lib_prefix=no 17512 # OS/2 can only load a DLL with a base name of 8 characters or less. 17513 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17514 v=$($ECHO $release$versuffix | tr -d .-); 17515 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17516 $ECHO $n$v`$shared_ext' 17517 library_names_spec='${libname}_dll.$libext' 17518 dynamic_linker='OS/2 ld.exe' 17519 shlibpath_var=BEGINLIBPATH 17520 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17522 postinstall_cmds='base_file=`basename \$file`~ 17523 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17524 dldir=$destdir/`dirname \$dlpath`~ 17525 test -d \$dldir || mkdir -p \$dldir~ 17526 $install_prog $dir/$dlname \$dldir/$dlname~ 17527 chmod a+x \$dldir/$dlname~ 17528 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17529 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17530 fi' 17531 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17532 dlpath=$dir/\$dldll~ 17533 $RM \$dlpath' 17534 ;; 17535 17536 osf3* | osf4* | osf5*) 17537 version_type=osf 17538 need_lib_prefix=no 17539 need_version=no 17540 soname_spec='$libname$release$shared_ext$major' 17541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17542 shlibpath_var=LD_LIBRARY_PATH 17543 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17545 ;; 17546 17547 rdos*) 17548 dynamic_linker=no 17549 ;; 17550 17551 solaris*) 17552 version_type=linux # correct to gnu/linux during the next big refactor 17553 need_lib_prefix=no 17554 need_version=no 17555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17556 soname_spec='$libname$release$shared_ext$major' 17557 shlibpath_var=LD_LIBRARY_PATH 17558 shlibpath_overrides_runpath=yes 17559 hardcode_into_libs=yes 17560 # ldd complains unless libraries are executable 17561 postinstall_cmds='chmod +x $lib' 17562 ;; 17563 17564 sunos4*) 17565 version_type=sunos 17566 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17567 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17568 shlibpath_var=LD_LIBRARY_PATH 17569 shlibpath_overrides_runpath=yes 17570 if test yes = "$with_gnu_ld"; then 17571 need_lib_prefix=no 17572 fi 17573 need_version=yes 17574 ;; 17575 17576 sysv4 | sysv4.3*) 17577 version_type=linux # correct to gnu/linux during the next big refactor 17578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17579 soname_spec='$libname$release$shared_ext$major' 17580 shlibpath_var=LD_LIBRARY_PATH 17581 case $host_vendor in 17582 sni) 17583 shlibpath_overrides_runpath=no 17584 need_lib_prefix=no 17585 runpath_var=LD_RUN_PATH 17586 ;; 17587 siemens) 17588 need_lib_prefix=no 17589 ;; 17590 motorola) 17591 need_lib_prefix=no 17592 need_version=no 17593 shlibpath_overrides_runpath=no 17594 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17595 ;; 17596 esac 17597 ;; 17598 17599 sysv4*MP*) 17600 if test -d /usr/nec; then 17601 version_type=linux # correct to gnu/linux during the next big refactor 17602 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17603 soname_spec='$libname$shared_ext.$major' 17604 shlibpath_var=LD_LIBRARY_PATH 17605 fi 17606 ;; 17607 17608 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17609 version_type=sco 17610 need_lib_prefix=no 17611 need_version=no 17612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17613 soname_spec='$libname$release$shared_ext$major' 17614 shlibpath_var=LD_LIBRARY_PATH 17615 shlibpath_overrides_runpath=yes 17616 hardcode_into_libs=yes 17617 if test yes = "$with_gnu_ld"; then 17618 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17619 else 17620 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17621 case $host_os in 17622 sco3.2v5*) 17623 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17624 ;; 17625 esac 17626 fi 17627 sys_lib_dlsearch_path_spec='/usr/lib' 17628 ;; 17629 17630 tpf*) 17631 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17632 version_type=linux # correct to gnu/linux during the next big refactor 17633 need_lib_prefix=no 17634 need_version=no 17635 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17636 shlibpath_var=LD_LIBRARY_PATH 17637 shlibpath_overrides_runpath=no 17638 hardcode_into_libs=yes 17639 ;; 17640 17641 uts4*) 17642 version_type=linux # correct to gnu/linux during the next big refactor 17643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17644 soname_spec='$libname$release$shared_ext$major' 17645 shlibpath_var=LD_LIBRARY_PATH 17646 ;; 17647 17648 *) 17649 dynamic_linker=no 17650 ;; 17651 esac 17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17653 $as_echo "$dynamic_linker" >&6; } 17654 test no = "$dynamic_linker" && can_build_shared=no 17655 17656 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17657 if test yes = "$GCC"; then 17658 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17659 fi 17660 17661 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17662 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17663 fi 17664 17665 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17666 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17667 fi 17668 17669 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17670 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17671 17672 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17673 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17674 17675 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17676 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17775 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17776 hardcode_action= 17777 if test -n "$hardcode_libdir_flag_spec" || 17778 test -n "$runpath_var" || 17779 test yes = "$hardcode_automatic"; then 17780 17781 # We can hardcode non-existent directories. 17782 if test no != "$hardcode_direct" && 17783 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17784 # have to relink, otherwise we might link with an installed library 17785 # when we should be linking with a yet-to-be-installed one 17786 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 17787 test no != "$hardcode_minus_L"; then 17788 # Linking always hardcodes the temporary library directory. 17789 hardcode_action=relink 17790 else 17791 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17792 hardcode_action=immediate 17793 fi 17794 else 17795 # We cannot hardcode anything, or else we can only hardcode existing 17796 # directories. 17797 hardcode_action=unsupported 17798 fi 17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17800 $as_echo "$hardcode_action" >&6; } 17801 17802 if test relink = "$hardcode_action" || 17803 test yes = "$inherit_rpath"; then 17804 # Fast installation is not supported 17805 enable_fast_install=no 17806 elif test yes = "$shlibpath_overrides_runpath" || 17807 test no = "$enable_shared"; then 17808 # Fast installation is not necessary 17809 enable_fast_install=needless 17810 fi 17811 17812 17813 17814 17815 17816 17817 if test yes != "$enable_dlopen"; then 17818 enable_dlopen=unknown 17819 enable_dlopen_self=unknown 17820 enable_dlopen_self_static=unknown 17821 else 17822 lt_cv_dlopen=no 17823 lt_cv_dlopen_libs= 17824 17825 case $host_os in 17826 beos*) 17827 lt_cv_dlopen=load_add_on 17828 lt_cv_dlopen_libs= 17829 lt_cv_dlopen_self=yes 17830 ;; 17831 17832 mingw* | pw32* | cegcc*) 17833 lt_cv_dlopen=LoadLibrary 17834 lt_cv_dlopen_libs= 17835 ;; 17836 17837 cygwin*) 17838 lt_cv_dlopen=dlopen 17839 lt_cv_dlopen_libs= 17840 ;; 17841 17842 darwin*) 17843 # if libdl is installed we need to link against it 17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17845 $as_echo_n "checking for dlopen in -ldl... " >&6; } 17846 if ${ac_cv_lib_dl_dlopen+:} false; then : 17847 $as_echo_n "(cached) " >&6 17848 else 17849 ac_check_lib_save_LIBS=$LIBS 17850 LIBS="-ldl $LIBS" 17851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17852 /* end confdefs.h. */ 17853 17854 /* Override any GCC internal prototype to avoid an error. 17855 Use char because int might match the return type of a GCC 17856 builtin and then its argument prototype would still apply. */ 17857 #ifdef __cplusplus 17858 extern "C" 17859 #endif 17860 char dlopen (); 17861 int 17862 main () 17863 { 17864 return dlopen (); 17865 ; 17866 return 0; 17867 } 17868 _ACEOF 17869 if ac_fn_c_try_link "$LINENO"; then : 17870 ac_cv_lib_dl_dlopen=yes 17871 else 17872 ac_cv_lib_dl_dlopen=no 17873 fi 17874 rm -f core conftest.err conftest.$ac_objext \ 17875 conftest$ac_exeext conftest.$ac_ext 17876 LIBS=$ac_check_lib_save_LIBS 17877 fi 17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17879 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17880 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17881 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17882 else 17883 17884 lt_cv_dlopen=dyld 17885 lt_cv_dlopen_libs= 17886 lt_cv_dlopen_self=yes 17887 17888 fi 17889 17890 ;; 17891 17892 tpf*) 17893 # Don't try to run any link tests for TPF. We know it's impossible 17894 # because TPF is a cross-compiler, and we know how we open DSOs. 17895 lt_cv_dlopen=dlopen 17896 lt_cv_dlopen_libs= 17897 lt_cv_dlopen_self=no 17898 ;; 17899 17900 *) 17901 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17902 if test "x$ac_cv_func_shl_load" = xyes; then : 17903 lt_cv_dlopen=shl_load 17904 else 17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17906 $as_echo_n "checking for shl_load in -ldld... " >&6; } 17907 if ${ac_cv_lib_dld_shl_load+:} false; then : 17908 $as_echo_n "(cached) " >&6 17909 else 17910 ac_check_lib_save_LIBS=$LIBS 17911 LIBS="-ldld $LIBS" 17912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17913 /* end confdefs.h. */ 17914 17915 /* Override any GCC internal prototype to avoid an error. 17916 Use char because int might match the return type of a GCC 17917 builtin and then its argument prototype would still apply. */ 17918 #ifdef __cplusplus 17919 extern "C" 17920 #endif 17921 char shl_load (); 17922 int 17923 main () 17924 { 17925 return shl_load (); 17926 ; 17927 return 0; 17928 } 17929 _ACEOF 17930 if ac_fn_c_try_link "$LINENO"; then : 17931 ac_cv_lib_dld_shl_load=yes 17932 else 17933 ac_cv_lib_dld_shl_load=no 17934 fi 17935 rm -f core conftest.err conftest.$ac_objext \ 17936 conftest$ac_exeext conftest.$ac_ext 17937 LIBS=$ac_check_lib_save_LIBS 17938 fi 17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17940 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17941 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17942 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 17943 else 17944 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17945 if test "x$ac_cv_func_dlopen" = xyes; then : 17946 lt_cv_dlopen=dlopen 17947 else 17948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17949 $as_echo_n "checking for dlopen in -ldl... " >&6; } 17950 if ${ac_cv_lib_dl_dlopen+:} false; then : 17951 $as_echo_n "(cached) " >&6 17952 else 17953 ac_check_lib_save_LIBS=$LIBS 17954 LIBS="-ldl $LIBS" 17955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17956 /* end confdefs.h. */ 17957 17958 /* Override any GCC internal prototype to avoid an error. 17959 Use char because int might match the return type of a GCC 17960 builtin and then its argument prototype would still apply. */ 17961 #ifdef __cplusplus 17962 extern "C" 17963 #endif 17964 char dlopen (); 17965 int 17966 main () 17967 { 17968 return dlopen (); 17969 ; 17970 return 0; 17971 } 17972 _ACEOF 17973 if ac_fn_c_try_link "$LINENO"; then : 17974 ac_cv_lib_dl_dlopen=yes 17975 else 17976 ac_cv_lib_dl_dlopen=no 17977 fi 17978 rm -f core conftest.err conftest.$ac_objext \ 17979 conftest$ac_exeext conftest.$ac_ext 17980 LIBS=$ac_check_lib_save_LIBS 17981 fi 17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17983 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17984 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17985 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17986 else 17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17988 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 17989 if ${ac_cv_lib_svld_dlopen+:} false; then : 17990 $as_echo_n "(cached) " >&6 17991 else 17992 ac_check_lib_save_LIBS=$LIBS 17993 LIBS="-lsvld $LIBS" 17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17995 /* end confdefs.h. */ 17996 17997 /* Override any GCC internal prototype to avoid an error. 17998 Use char because int might match the return type of a GCC 17999 builtin and then its argument prototype would still apply. */ 18000 #ifdef __cplusplus 18001 extern "C" 18002 #endif 18003 char dlopen (); 18004 int 18005 main () 18006 { 18007 return dlopen (); 18008 ; 18009 return 0; 18010 } 18011 _ACEOF 18012 if ac_fn_c_try_link "$LINENO"; then : 18013 ac_cv_lib_svld_dlopen=yes 18014 else 18015 ac_cv_lib_svld_dlopen=no 18016 fi 18017 rm -f core conftest.err conftest.$ac_objext \ 18018 conftest$ac_exeext conftest.$ac_ext 18019 LIBS=$ac_check_lib_save_LIBS 18020 fi 18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18022 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18023 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18024 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18025 else 18026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18027 $as_echo_n "checking for dld_link in -ldld... " >&6; } 18028 if ${ac_cv_lib_dld_dld_link+:} false; then : 18029 $as_echo_n "(cached) " >&6 18030 else 18031 ac_check_lib_save_LIBS=$LIBS 18032 LIBS="-ldld $LIBS" 18033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18034 /* end confdefs.h. */ 18035 18036 /* Override any GCC internal prototype to avoid an error. 18037 Use char because int might match the return type of a GCC 18038 builtin and then its argument prototype would still apply. */ 18039 #ifdef __cplusplus 18040 extern "C" 18041 #endif 18042 char dld_link (); 18043 int 18044 main () 18045 { 18046 return dld_link (); 18047 ; 18048 return 0; 18049 } 18050 _ACEOF 18051 if ac_fn_c_try_link "$LINENO"; then : 18052 ac_cv_lib_dld_dld_link=yes 18053 else 18054 ac_cv_lib_dld_dld_link=no 18055 fi 18056 rm -f core conftest.err conftest.$ac_objext \ 18057 conftest$ac_exeext conftest.$ac_ext 18058 LIBS=$ac_check_lib_save_LIBS 18059 fi 18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18061 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18062 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18063 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18064 fi 18065 18066 18067 fi 18068 18069 18070 fi 18071 18072 18073 fi 18074 18075 18076 fi 18077 18078 18079 fi 18080 18081 ;; 18082 esac 18083 18084 if test no = "$lt_cv_dlopen"; then 18085 enable_dlopen=no 18086 else 18087 enable_dlopen=yes 18088 fi 18089 18090 case $lt_cv_dlopen in 18091 dlopen) 18092 save_CPPFLAGS=$CPPFLAGS 18093 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18094 18095 save_LDFLAGS=$LDFLAGS 18096 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18097 18098 save_LIBS=$LIBS 18099 LIBS="$lt_cv_dlopen_libs $LIBS" 18100 18101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18102 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 18103 if ${lt_cv_dlopen_self+:} false; then : 18104 $as_echo_n "(cached) " >&6 18105 else 18106 if test yes = "$cross_compiling"; then : 18107 lt_cv_dlopen_self=cross 18108 else 18109 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18110 lt_status=$lt_dlunknown 18111 cat > conftest.$ac_ext <<_LT_EOF 18112 #line $LINENO "configure" 18113 #include "confdefs.h" 18114 18115 #if HAVE_DLFCN_H 18116 #include <dlfcn.h> 18117 #endif 18118 18119 #include <stdio.h> 18120 18121 #ifdef RTLD_GLOBAL 18122 # define LT_DLGLOBAL RTLD_GLOBAL 18123 #else 18124 # ifdef DL_GLOBAL 18125 # define LT_DLGLOBAL DL_GLOBAL 18126 # else 18127 # define LT_DLGLOBAL 0 18128 # endif 18129 #endif 18130 18131 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18132 find out it does not work in some platform. */ 18133 #ifndef LT_DLLAZY_OR_NOW 18134 # ifdef RTLD_LAZY 18135 # define LT_DLLAZY_OR_NOW RTLD_LAZY 18136 # else 18137 # ifdef DL_LAZY 18138 # define LT_DLLAZY_OR_NOW DL_LAZY 18139 # else 18140 # ifdef RTLD_NOW 18141 # define LT_DLLAZY_OR_NOW RTLD_NOW 18142 # else 18143 # ifdef DL_NOW 18144 # define LT_DLLAZY_OR_NOW DL_NOW 18145 # else 18146 # define LT_DLLAZY_OR_NOW 0 18147 # endif 18148 # endif 18149 # endif 18150 # endif 18151 #endif 18152 18153 /* When -fvisibility=hidden is used, assume the code has been annotated 18154 correspondingly for the symbols needed. */ 18155 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18156 int fnord () __attribute__((visibility("default"))); 18157 #endif 18158 18159 int fnord () { return 42; } 18160 int main () 18161 { 18162 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18163 int status = $lt_dlunknown; 18164 18165 if (self) 18166 { 18167 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18168 else 18169 { 18170 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18171 else puts (dlerror ()); 18172 } 18173 /* dlclose (self); */ 18174 } 18175 else 18176 puts (dlerror ()); 18177 18178 return status; 18179 } 18180 _LT_EOF 18181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18182 (eval $ac_link) 2>&5 18183 ac_status=$? 18184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18185 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18186 (./conftest; exit; ) >&5 2>/dev/null 18187 lt_status=$? 18188 case x$lt_status in 18189 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18190 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18191 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18192 esac 18193 else : 18194 # compilation failed 18195 lt_cv_dlopen_self=no 18196 fi 18197 fi 18198 rm -fr conftest* 18199 18200 18201 fi 18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18203 $as_echo "$lt_cv_dlopen_self" >&6; } 18204 18205 if test yes = "$lt_cv_dlopen_self"; then 18206 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18208 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18209 if ${lt_cv_dlopen_self_static+:} false; then : 18210 $as_echo_n "(cached) " >&6 18211 else 18212 if test yes = "$cross_compiling"; then : 18213 lt_cv_dlopen_self_static=cross 18214 else 18215 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18216 lt_status=$lt_dlunknown 18217 cat > conftest.$ac_ext <<_LT_EOF 18218 #line $LINENO "configure" 18219 #include "confdefs.h" 18220 18221 #if HAVE_DLFCN_H 18222 #include <dlfcn.h> 18223 #endif 18224 18225 #include <stdio.h> 18226 18227 #ifdef RTLD_GLOBAL 18228 # define LT_DLGLOBAL RTLD_GLOBAL 18229 #else 18230 # ifdef DL_GLOBAL 18231 # define LT_DLGLOBAL DL_GLOBAL 18232 # else 18233 # define LT_DLGLOBAL 0 18234 # endif 18235 #endif 18236 18237 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18238 find out it does not work in some platform. */ 18239 #ifndef LT_DLLAZY_OR_NOW 18240 # ifdef RTLD_LAZY 18241 # define LT_DLLAZY_OR_NOW RTLD_LAZY 18242 # else 18243 # ifdef DL_LAZY 18244 # define LT_DLLAZY_OR_NOW DL_LAZY 18245 # else 18246 # ifdef RTLD_NOW 18247 # define LT_DLLAZY_OR_NOW RTLD_NOW 18248 # else 18249 # ifdef DL_NOW 18250 # define LT_DLLAZY_OR_NOW DL_NOW 18251 # else 18252 # define LT_DLLAZY_OR_NOW 0 18253 # endif 18254 # endif 18255 # endif 18256 # endif 18257 #endif 18258 18259 /* When -fvisibility=hidden is used, assume the code has been annotated 18260 correspondingly for the symbols needed. */ 18261 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18262 int fnord () __attribute__((visibility("default"))); 18263 #endif 18264 18265 int fnord () { return 42; } 18266 int main () 18267 { 18268 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18269 int status = $lt_dlunknown; 18270 18271 if (self) 18272 { 18273 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18274 else 18275 { 18276 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18277 else puts (dlerror ()); 18278 } 18279 /* dlclose (self); */ 18280 } 18281 else 18282 puts (dlerror ()); 18283 18284 return status; 18285 } 18286 _LT_EOF 18287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18288 (eval $ac_link) 2>&5 18289 ac_status=$? 18290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18291 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18292 (./conftest; exit; ) >&5 2>/dev/null 18293 lt_status=$? 18294 case x$lt_status in 18295 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18296 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18297 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18298 esac 18299 else : 18300 # compilation failed 18301 lt_cv_dlopen_self_static=no 18302 fi 18303 fi 18304 rm -fr conftest* 18305 18306 18307 fi 18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18309 $as_echo "$lt_cv_dlopen_self_static" >&6; } 18310 fi 18311 18312 CPPFLAGS=$save_CPPFLAGS 18313 LDFLAGS=$save_LDFLAGS 18314 LIBS=$save_LIBS 18315 ;; 18316 esac 18317 18318 case $lt_cv_dlopen_self in 18319 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18320 *) enable_dlopen_self=unknown ;; 18321 esac 18322 18323 case $lt_cv_dlopen_self_static in 18324 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18325 *) enable_dlopen_self_static=unknown ;; 18326 esac 18327 fi 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 striplib= 18346 old_striplib= 18347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18348 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 18349 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18350 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18351 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18353 $as_echo "yes" >&6; } 18354 else 18355 # FIXME - insert some real tests, host_os isn't really good enough 18356 case $host_os in 18357 darwin*) 18358 if test -n "$STRIP"; then 18359 striplib="$STRIP -x" 18360 old_striplib="$STRIP -S" 18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18362 $as_echo "yes" >&6; } 18363 else 18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18365 $as_echo "no" >&6; } 18366 fi 18367 ;; 18368 *) 18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18370 $as_echo "no" >&6; } 18371 ;; 18372 esac 18373 fi 18374 18375 18376 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 # Report what library types will actually be built 18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18388 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18390 $as_echo "$can_build_shared" >&6; } 18391 18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18393 $as_echo_n "checking whether to build shared libraries... " >&6; } 18394 test no = "$can_build_shared" && enable_shared=no 18395 18396 # On AIX, shared libraries and static libraries use the same namespace, and 18397 # are all built from PIC. 18398 case $host_os in 18399 aix3*) 18400 test yes = "$enable_shared" && enable_static=no 18401 if test -n "$RANLIB"; then 18402 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18403 postinstall_cmds='$RANLIB $lib' 18404 fi 18405 ;; 18406 18407 aix[4-9]*) 18408 if test ia64 != "$host_cpu"; then 18409 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18410 yes,aix,yes) ;; # shared object as lib.so file only 18411 yes,svr4,*) ;; # shared object as lib.so archive member only 18412 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18413 esac 18414 fi 18415 ;; 18416 esac 18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18418 $as_echo "$enable_shared" >&6; } 18419 18420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18421 $as_echo_n "checking whether to build static libraries... " >&6; } 18422 # Make sure either enable_shared or enable_static is yes. 18423 test yes = "$enable_shared" || enable_static=yes 18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18425 $as_echo "$enable_static" >&6; } 18426 18427 18428 18429 18430 fi 18431 ac_ext=c 18432 ac_cpp='$CPP $CPPFLAGS' 18433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18435 ac_compiler_gnu=$ac_cv_c_compiler_gnu 18436 18437 CC=$lt_save_CC 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 ac_config_commands="$ac_config_commands libtool" 18454 18455 18456 18457 18458 # Only expand once: 18459 18460 18461 18462 18463 18464 # Define a configure option for an alternate module directory 18465 18466 # Check whether --with-xorg-module-dir was given. 18467 if test "${with_xorg_module_dir+set}" = set; then : 18468 withval=$with_xorg_module_dir; moduledir="$withval" 18469 else 18470 moduledir="$libdir/xorg/modules" 18471 fi 18472 18473 18474 # Store the list of server defined optional extensions in REQUIRED_MODULES 18475 18476 18477 SAVE_CFLAGS="$CFLAGS" 18478 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18480 /* end confdefs.h. */ 18481 18482 #include "xorg-server.h" 18483 #if !defined RANDR 18484 #error RANDR not defined 18485 #endif 18486 18487 int 18488 main () 18489 { 18490 18491 ; 18492 return 0; 18493 } 18494 _ACEOF 18495 if ac_fn_c_try_compile "$LINENO"; then : 18496 _EXT_CHECK=yes 18497 else 18498 _EXT_CHECK=no 18499 fi 18500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18501 CFLAGS="$SAVE_CFLAGS" 18502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18503 $as_echo_n "checking if RANDR is defined... " >&6; } 18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18505 $as_echo "$_EXT_CHECK" >&6; } 18506 if test "$_EXT_CHECK" != no; then 18507 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18508 fi 18509 18510 18511 18512 SAVE_CFLAGS="$CFLAGS" 18513 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18515 /* end confdefs.h. */ 18516 18517 #include "xorg-server.h" 18518 #if !defined RENDER 18519 #error RENDER not defined 18520 #endif 18521 18522 int 18523 main () 18524 { 18525 18526 ; 18527 return 0; 18528 } 18529 _ACEOF 18530 if ac_fn_c_try_compile "$LINENO"; then : 18531 _EXT_CHECK=yes 18532 else 18533 _EXT_CHECK=no 18534 fi 18535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18536 CFLAGS="$SAVE_CFLAGS" 18537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 18538 $as_echo_n "checking if RENDER is defined... " >&6; } 18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18540 $as_echo "$_EXT_CHECK" >&6; } 18541 if test "$_EXT_CHECK" != no; then 18542 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 18543 fi 18544 18545 18546 18547 SAVE_CFLAGS="$CFLAGS" 18548 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18550 /* end confdefs.h. */ 18551 18552 #include "xorg-server.h" 18553 #if !defined XV 18554 #error XV not defined 18555 #endif 18556 18557 int 18558 main () 18559 { 18560 18561 ; 18562 return 0; 18563 } 18564 _ACEOF 18565 if ac_fn_c_try_compile "$LINENO"; then : 18566 _EXT_CHECK=yes 18567 else 18568 _EXT_CHECK=no 18569 fi 18570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18571 CFLAGS="$SAVE_CFLAGS" 18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 18573 $as_echo_n "checking if XV is defined... " >&6; } 18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18575 $as_echo "$_EXT_CHECK" >&6; } 18576 if test "$_EXT_CHECK" != no; then 18577 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 18578 fi 18579 18580 18581 18582 SAVE_CFLAGS="$CFLAGS" 18583 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18585 /* end confdefs.h. */ 18586 18587 #include "xorg-server.h" 18588 #if !defined DPMSExtension 18589 #error DPMSExtension not defined 18590 #endif 18591 18592 int 18593 main () 18594 { 18595 18596 ; 18597 return 0; 18598 } 18599 _ACEOF 18600 if ac_fn_c_try_compile "$LINENO"; then : 18601 _EXT_CHECK=yes 18602 else 18603 _EXT_CHECK=no 18604 fi 18605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18606 CFLAGS="$SAVE_CFLAGS" 18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 18608 $as_echo_n "checking if DPMSExtension is defined... " >&6; } 18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18610 $as_echo "$_EXT_CHECK" >&6; } 18611 if test "$_EXT_CHECK" != no; then 18612 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 18613 fi 18614 18615 18616 # Obtain compiler/linker options for the driver dependencies 18617 18618 pkg_failed=no 18619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 18620 $as_echo_n "checking for XORG... " >&6; } 18621 18622 if test -n "$XORG_CFLAGS"; then 18623 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18624 elif test -n "$PKG_CONFIG"; then 18625 if test -n "$PKG_CONFIG" && \ 18626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18627 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 18628 ac_status=$? 18629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18630 test $ac_status = 0; }; then 18631 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18632 test "x$?" != "x0" && pkg_failed=yes 18633 else 18634 pkg_failed=yes 18635 fi 18636 else 18637 pkg_failed=untried 18638 fi 18639 if test -n "$XORG_LIBS"; then 18640 pkg_cv_XORG_LIBS="$XORG_LIBS" 18641 elif test -n "$PKG_CONFIG"; then 18642 if test -n "$PKG_CONFIG" && \ 18643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18644 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 18645 ac_status=$? 18646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18647 test $ac_status = 0; }; then 18648 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18649 test "x$?" != "x0" && pkg_failed=yes 18650 else 18651 pkg_failed=yes 18652 fi 18653 else 18654 pkg_failed=untried 18655 fi 18656 18657 18658 18659 if test $pkg_failed = yes; then 18660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18661 $as_echo "no" >&6; } 18662 18663 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18664 _pkg_short_errors_supported=yes 18665 else 18666 _pkg_short_errors_supported=no 18667 fi 18668 if test $_pkg_short_errors_supported = yes; then 18669 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18670 else 18671 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18672 fi 18673 # Put the nasty error message in config.log where it belongs 18674 echo "$XORG_PKG_ERRORS" >&5 18675 18676 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 18677 18678 $XORG_PKG_ERRORS 18679 18680 Consider adjusting the PKG_CONFIG_PATH environment variable if you 18681 installed software in a non-standard prefix. 18682 18683 Alternatively, you may set the environment variables XORG_CFLAGS 18684 and XORG_LIBS to avoid the need to call pkg-config. 18685 See the pkg-config man page for more details." "$LINENO" 5 18686 elif test $pkg_failed = untried; then 18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18688 $as_echo "no" >&6; } 18689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18691 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18692 is in your PATH or set the PKG_CONFIG environment variable to the full 18693 path to pkg-config. 18694 18695 Alternatively, you may set the environment variables XORG_CFLAGS 18696 and XORG_LIBS to avoid the need to call pkg-config. 18697 See the pkg-config man page for more details. 18698 18699 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18700 See \`config.log' for more details" "$LINENO" 5; } 18701 else 18702 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18703 XORG_LIBS=$pkg_cv_XORG_LIBS 18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18705 $as_echo "yes" >&6; } 18706 18707 fi 18708 18709 # Checks for libraries. 18710 SAVE_CPPFLAGS="$CPPFLAGS" 18711 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 18712 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 18713 " 18714 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 18715 XSERVER_LIBPCIACCESS=yes 18716 else 18717 XSERVER_LIBPCIACCESS=no 18718 fi 18719 18720 CPPFLAGS="$SAVE_CPPFLAGS" 18721 18722 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18723 18724 pkg_failed=no 18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 18726 $as_echo_n "checking for PCIACCESS... " >&6; } 18727 18728 if test -n "$PCIACCESS_CFLAGS"; then 18729 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 18730 elif test -n "$PKG_CONFIG"; then 18731 if test -n "$PKG_CONFIG" && \ 18732 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18733 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18734 ac_status=$? 18735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18736 test $ac_status = 0; }; then 18737 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 18738 test "x$?" != "x0" && pkg_failed=yes 18739 else 18740 pkg_failed=yes 18741 fi 18742 else 18743 pkg_failed=untried 18744 fi 18745 if test -n "$PCIACCESS_LIBS"; then 18746 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 18747 elif test -n "$PKG_CONFIG"; then 18748 if test -n "$PKG_CONFIG" && \ 18749 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18750 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18751 ac_status=$? 18752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18753 test $ac_status = 0; }; then 18754 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 18755 test "x$?" != "x0" && pkg_failed=yes 18756 else 18757 pkg_failed=yes 18758 fi 18759 else 18760 pkg_failed=untried 18761 fi 18762 18763 18764 18765 if test $pkg_failed = yes; then 18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18767 $as_echo "no" >&6; } 18768 18769 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18770 _pkg_short_errors_supported=yes 18771 else 18772 _pkg_short_errors_supported=no 18773 fi 18774 if test $_pkg_short_errors_supported = yes; then 18775 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 18776 else 18777 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 18778 fi 18779 # Put the nasty error message in config.log where it belongs 18780 echo "$PCIACCESS_PKG_ERRORS" >&5 18781 18782 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 18783 18784 $PCIACCESS_PKG_ERRORS 18785 18786 Consider adjusting the PKG_CONFIG_PATH environment variable if you 18787 installed software in a non-standard prefix. 18788 18789 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18790 and PCIACCESS_LIBS to avoid the need to call pkg-config. 18791 See the pkg-config man page for more details." "$LINENO" 5 18792 elif test $pkg_failed = untried; then 18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18794 $as_echo "no" >&6; } 18795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18797 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18798 is in your PATH or set the PKG_CONFIG environment variable to the full 18799 path to pkg-config. 18800 18801 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18802 and PCIACCESS_LIBS to avoid the need to call pkg-config. 18803 See the pkg-config man page for more details. 18804 18805 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18806 See \`config.log' for more details" "$LINENO" 5; } 18807 else 18808 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 18809 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 18810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18811 $as_echo "yes" >&6; } 18812 18813 fi 18814 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 18815 fi 18816 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18817 XSERVER_LIBPCIACCESS_TRUE= 18818 XSERVER_LIBPCIACCESS_FALSE='#' 18819 else 18820 XSERVER_LIBPCIACCESS_TRUE='#' 18821 XSERVER_LIBPCIACCESS_FALSE= 18822 fi 18823 18824 18825 # Check whether --enable-xaa was given. 18826 if test "${enable_xaa+set}" = set; then : 18827 enableval=$enable_xaa; XAA="$enableval" 18828 else 18829 XAA=auto 18830 fi 18831 18832 if test "x$XAA" != xno; then 18833 save_CFLAGS=$CFLAGS 18834 save_CPPFLAGS=$CPPFLAGS 18835 CFLAGS=$XORG_CFLAGS 18836 CPPFLAGS="$XORG_CFLAGS" 18837 for ac_header in xaa.h 18838 do : 18839 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 18840 if test "x$ac_cv_header_xaa_h" = xyes; then : 18841 cat >>confdefs.h <<_ACEOF 18842 #define HAVE_XAA_H 1 18843 _ACEOF 18844 XAA=yes 18845 else 18846 XAA=no 18847 fi 18848 18849 done 18850 18851 CFLAGS=$save_CFLAGS 18852 CPPFLAGS=$save_CPPFLAGS 18853 fi 18854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 18855 $as_echo_n "checking whether to include XAA support... " >&6; } 18856 if test "x$XAA" = xyes; then 18857 XAA_TRUE= 18858 XAA_FALSE='#' 18859 else 18860 XAA_TRUE='#' 18861 XAA_FALSE= 18862 fi 18863 18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 18865 $as_echo "$XAA" >&6; } 18866 18867 18868 18869 DRIVER_NAME=i740 18870 18871 18872 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 18873 18874 cat >confcache <<\_ACEOF 18875 # This file is a shell script that caches the results of configure 18876 # tests run on this system so they can be shared between configure 18877 # scripts and configure runs, see configure's option --config-cache. 18878 # It is not useful on other systems. If it contains results you don't 18879 # want to keep, you may remove or edit it. 18880 # 18881 # config.status only pays attention to the cache file if you give it 18882 # the --recheck option to rerun configure. 18883 # 18884 # `ac_cv_env_foo' variables (set or unset) will be overridden when 18885 # loading this file, other *unset* `ac_cv_foo' will be assigned the 18886 # following values. 18887 18888 _ACEOF 18889 18890 # The following way of writing the cache mishandles newlines in values, 18891 # but we know of no workaround that is simple, portable, and efficient. 18892 # So, we kill variables containing newlines. 18893 # Ultrix sh set writes to stderr and can't be redirected directly, 18894 # and sets the high bit in the cache file unless we assign to the vars. 18895 ( 18896 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18897 eval ac_val=\$$ac_var 18898 case $ac_val in #( 18899 *${as_nl}*) 18900 case $ac_var in #( 18901 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18902 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18903 esac 18904 case $ac_var in #( 18905 _ | IFS | as_nl) ;; #( 18906 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18907 *) { eval $ac_var=; unset $ac_var;} ;; 18908 esac ;; 18909 esac 18910 done 18911 18912 (set) 2>&1 | 18913 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18914 *${as_nl}ac_space=\ *) 18915 # `set' does not quote correctly, so add quotes: double-quote 18916 # substitution turns \\\\ into \\, and sed turns \\ into \. 18917 sed -n \ 18918 "s/'/'\\\\''/g; 18919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18920 ;; #( 18921 *) 18922 # `set' quotes correctly as required by POSIX, so do not add quotes. 18923 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18924 ;; 18925 esac | 18926 sort 18927 ) | 18928 sed ' 18929 /^ac_cv_env_/b end 18930 t clear 18931 :clear 18932 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18933 t end 18934 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18935 :end' >>confcache 18936 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18937 if test -w "$cache_file"; then 18938 if test "x$cache_file" != "x/dev/null"; then 18939 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18940 $as_echo "$as_me: updating cache $cache_file" >&6;} 18941 if test ! -f "$cache_file" || test -h "$cache_file"; then 18942 cat confcache >"$cache_file" 18943 else 18944 case $cache_file in #( 18945 */* | ?:*) 18946 mv -f confcache "$cache_file"$$ && 18947 mv -f "$cache_file"$$ "$cache_file" ;; #( 18948 *) 18949 mv -f confcache "$cache_file" ;; 18950 esac 18951 fi 18952 fi 18953 else 18954 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18955 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18956 fi 18957 fi 18958 rm -f confcache 18959 18960 test "x$prefix" = xNONE && prefix=$ac_default_prefix 18961 # Let make expand exec_prefix. 18962 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18963 18964 DEFS=-DHAVE_CONFIG_H 18965 18966 ac_libobjs= 18967 ac_ltlibobjs= 18968 U= 18969 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18970 # 1. Remove the extension, and $U if already installed. 18971 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18972 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18973 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18974 # will be set to the directory where LIBOBJS objects are built. 18975 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18976 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18977 done 18978 LIBOBJS=$ac_libobjs 18979 18980 LTLIBOBJS=$ac_ltlibobjs 18981 18982 18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18984 $as_echo_n "checking that generated files are newer than configure... " >&6; } 18985 if test -n "$am_sleep_pid"; then 18986 # Hide warnings about reused PIDs. 18987 wait $am_sleep_pid 2>/dev/null 18988 fi 18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18990 $as_echo "done" >&6; } 18991 if test -n "$EXEEXT"; then 18992 am__EXEEXT_TRUE= 18993 am__EXEEXT_FALSE='#' 18994 else 18995 am__EXEEXT_TRUE='#' 18996 am__EXEEXT_FALSE= 18997 fi 18998 18999 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19000 as_fn_error $? "conditional \"AMDEP\" was never defined. 19001 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19002 fi 19003 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19004 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19005 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19006 fi 19007 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 19008 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 19009 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19010 fi 19011 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 19012 as_fn_error $? "conditional \"XAA\" was never defined. 19013 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19014 fi 19015 19016 : "${CONFIG_STATUS=./config.status}" 19017 ac_write_fail=0 19018 ac_clean_files_save=$ac_clean_files 19019 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19020 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19021 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19022 as_write_fail=0 19023 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19024 #! $SHELL 19025 # Generated by $as_me. 19026 # Run this file to recreate the current configuration. 19027 # Compiler output produced by configure, useful for debugging 19028 # configure, is in config.log if it exists. 19029 19030 debug=false 19031 ac_cs_recheck=false 19032 ac_cs_silent=false 19033 19034 SHELL=\${CONFIG_SHELL-$SHELL} 19035 export SHELL 19036 _ASEOF 19037 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19038 ## -------------------- ## 19039 ## M4sh Initialization. ## 19040 ## -------------------- ## 19041 19042 # Be more Bourne compatible 19043 DUALCASE=1; export DUALCASE # for MKS sh 19044 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19045 emulate sh 19046 NULLCMD=: 19047 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19048 # is contrary to our usage. Disable this feature. 19049 alias -g '${1+"$@"}'='"$@"' 19050 setopt NO_GLOB_SUBST 19051 else 19052 case `(set -o) 2>/dev/null` in #( 19053 *posix*) : 19054 set -o posix ;; #( 19055 *) : 19056 ;; 19057 esac 19058 fi 19059 19060 19061 as_nl=' 19062 ' 19063 export as_nl 19064 # Printing a long string crashes Solaris 7 /usr/bin/printf. 19065 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19066 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19067 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19068 # Prefer a ksh shell builtin over an external printf program on Solaris, 19069 # but without wasting forks for bash or zsh. 19070 if test -z "$BASH_VERSION$ZSH_VERSION" \ 19071 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19072 as_echo='print -r --' 19073 as_echo_n='print -rn --' 19074 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19075 as_echo='printf %s\n' 19076 as_echo_n='printf %s' 19077 else 19078 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19079 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19080 as_echo_n='/usr/ucb/echo -n' 19081 else 19082 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19083 as_echo_n_body='eval 19084 arg=$1; 19085 case $arg in #( 19086 *"$as_nl"*) 19087 expr "X$arg" : "X\\(.*\\)$as_nl"; 19088 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19089 esac; 19090 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19091 ' 19092 export as_echo_n_body 19093 as_echo_n='sh -c $as_echo_n_body as_echo' 19094 fi 19095 export as_echo_body 19096 as_echo='sh -c $as_echo_body as_echo' 19097 fi 19098 19099 # The user is always right. 19100 if test "${PATH_SEPARATOR+set}" != set; then 19101 PATH_SEPARATOR=: 19102 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19103 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19104 PATH_SEPARATOR=';' 19105 } 19106 fi 19107 19108 19109 # IFS 19110 # We need space, tab and new line, in precisely that order. Quoting is 19111 # there to prevent editors from complaining about space-tab. 19112 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 19113 # splitting by setting IFS to empty value.) 19114 IFS=" "" $as_nl" 19115 19116 # Find who we are. Look in the path if we contain no directory separator. 19117 as_myself= 19118 case $0 in #(( 19119 *[\\/]* ) as_myself=$0 ;; 19120 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19121 for as_dir in $PATH 19122 do 19123 IFS=$as_save_IFS 19124 test -z "$as_dir" && as_dir=. 19125 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19126 done 19127 IFS=$as_save_IFS 19128 19129 ;; 19130 esac 19131 # We did not find ourselves, most probably we were run as `sh COMMAND' 19132 # in which case we are not to be found in the path. 19133 if test "x$as_myself" = x; then 19134 as_myself=$0 19135 fi 19136 if test ! -f "$as_myself"; then 19137 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19138 exit 1 19139 fi 19140 19141 # Unset variables that we do not need and which cause bugs (e.g. in 19142 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19143 # suppresses any "Segmentation fault" message there. '((' could 19144 # trigger a bug in pdksh 5.2.14. 19145 for as_var in BASH_ENV ENV MAIL MAILPATH 19146 do eval test x\${$as_var+set} = xset \ 19147 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19148 done 19149 PS1='$ ' 19150 PS2='> ' 19151 PS4='+ ' 19152 19153 # NLS nuisances. 19154 LC_ALL=C 19155 export LC_ALL 19156 LANGUAGE=C 19157 export LANGUAGE 19158 19159 # CDPATH. 19160 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19161 19162 19163 # as_fn_error STATUS ERROR [LINENO LOG_FD] 19164 # ---------------------------------------- 19165 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19166 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19167 # script with STATUS, using 1 if that was 0. 19168 as_fn_error () 19169 { 19170 as_status=$1; test $as_status -eq 0 && as_status=1 19171 if test "$4"; then 19172 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19173 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19174 fi 19175 $as_echo "$as_me: error: $2" >&2 19176 as_fn_exit $as_status 19177 } # as_fn_error 19178 19179 19180 # as_fn_set_status STATUS 19181 # ----------------------- 19182 # Set $? to STATUS, without forking. 19183 as_fn_set_status () 19184 { 19185 return $1 19186 } # as_fn_set_status 19187 19188 # as_fn_exit STATUS 19189 # ----------------- 19190 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19191 as_fn_exit () 19192 { 19193 set +e 19194 as_fn_set_status $1 19195 exit $1 19196 } # as_fn_exit 19197 19198 # as_fn_unset VAR 19199 # --------------- 19200 # Portably unset VAR. 19201 as_fn_unset () 19202 { 19203 { eval $1=; unset $1;} 19204 } 19205 as_unset=as_fn_unset 19206 # as_fn_append VAR VALUE 19207 # ---------------------- 19208 # Append the text in VALUE to the end of the definition contained in VAR. Take 19209 # advantage of any shell optimizations that allow amortized linear growth over 19210 # repeated appends, instead of the typical quadratic growth present in naive 19211 # implementations. 19212 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19213 eval 'as_fn_append () 19214 { 19215 eval $1+=\$2 19216 }' 19217 else 19218 as_fn_append () 19219 { 19220 eval $1=\$$1\$2 19221 } 19222 fi # as_fn_append 19223 19224 # as_fn_arith ARG... 19225 # ------------------ 19226 # Perform arithmetic evaluation on the ARGs, and store the result in the 19227 # global $as_val. Take advantage of shells that can avoid forks. The arguments 19228 # must be portable across $(()) and expr. 19229 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19230 eval 'as_fn_arith () 19231 { 19232 as_val=$(( $* )) 19233 }' 19234 else 19235 as_fn_arith () 19236 { 19237 as_val=`expr "$@" || test $? -eq 1` 19238 } 19239 fi # as_fn_arith 19240 19241 19242 if expr a : '\(a\)' >/dev/null 2>&1 && 19243 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19244 as_expr=expr 19245 else 19246 as_expr=false 19247 fi 19248 19249 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19250 as_basename=basename 19251 else 19252 as_basename=false 19253 fi 19254 19255 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19256 as_dirname=dirname 19257 else 19258 as_dirname=false 19259 fi 19260 19261 as_me=`$as_basename -- "$0" || 19262 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19263 X"$0" : 'X\(//\)$' \| \ 19264 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19265 $as_echo X/"$0" | 19266 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19267 s//\1/ 19268 q 19269 } 19270 /^X\/\(\/\/\)$/{ 19271 s//\1/ 19272 q 19273 } 19274 /^X\/\(\/\).*/{ 19275 s//\1/ 19276 q 19277 } 19278 s/.*/./; q'` 19279 19280 # Avoid depending upon Character Ranges. 19281 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19282 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19283 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19284 as_cr_digits='0123456789' 19285 as_cr_alnum=$as_cr_Letters$as_cr_digits 19286 19287 ECHO_C= ECHO_N= ECHO_T= 19288 case `echo -n x` in #((((( 19289 -n*) 19290 case `echo 'xy\c'` in 19291 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19292 xy) ECHO_C='\c';; 19293 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19294 ECHO_T=' ';; 19295 esac;; 19296 *) 19297 ECHO_N='-n';; 19298 esac 19299 19300 rm -f conf$$ conf$$.exe conf$$.file 19301 if test -d conf$$.dir; then 19302 rm -f conf$$.dir/conf$$.file 19303 else 19304 rm -f conf$$.dir 19305 mkdir conf$$.dir 2>/dev/null 19306 fi 19307 if (echo >conf$$.file) 2>/dev/null; then 19308 if ln -s conf$$.file conf$$ 2>/dev/null; then 19309 as_ln_s='ln -s' 19310 # ... but there are two gotchas: 19311 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19312 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19313 # In both cases, we have to default to `cp -pR'. 19314 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19315 as_ln_s='cp -pR' 19316 elif ln conf$$.file conf$$ 2>/dev/null; then 19317 as_ln_s=ln 19318 else 19319 as_ln_s='cp -pR' 19320 fi 19321 else 19322 as_ln_s='cp -pR' 19323 fi 19324 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19325 rmdir conf$$.dir 2>/dev/null 19326 19327 19328 # as_fn_mkdir_p 19329 # ------------- 19330 # Create "$as_dir" as a directory, including parents if necessary. 19331 as_fn_mkdir_p () 19332 { 19333 19334 case $as_dir in #( 19335 -*) as_dir=./$as_dir;; 19336 esac 19337 test -d "$as_dir" || eval $as_mkdir_p || { 19338 as_dirs= 19339 while :; do 19340 case $as_dir in #( 19341 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19342 *) as_qdir=$as_dir;; 19343 esac 19344 as_dirs="'$as_qdir' $as_dirs" 19345 as_dir=`$as_dirname -- "$as_dir" || 19346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19347 X"$as_dir" : 'X\(//\)[^/]' \| \ 19348 X"$as_dir" : 'X\(//\)$' \| \ 19349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19350 $as_echo X"$as_dir" | 19351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19352 s//\1/ 19353 q 19354 } 19355 /^X\(\/\/\)[^/].*/{ 19356 s//\1/ 19357 q 19358 } 19359 /^X\(\/\/\)$/{ 19360 s//\1/ 19361 q 19362 } 19363 /^X\(\/\).*/{ 19364 s//\1/ 19365 q 19366 } 19367 s/.*/./; q'` 19368 test -d "$as_dir" && break 19369 done 19370 test -z "$as_dirs" || eval "mkdir $as_dirs" 19371 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19372 19373 19374 } # as_fn_mkdir_p 19375 if mkdir -p . 2>/dev/null; then 19376 as_mkdir_p='mkdir -p "$as_dir"' 19377 else 19378 test -d ./-p && rmdir ./-p 19379 as_mkdir_p=false 19380 fi 19381 19382 19383 # as_fn_executable_p FILE 19384 # ----------------------- 19385 # Test if FILE is an executable regular file. 19386 as_fn_executable_p () 19387 { 19388 test -f "$1" && test -x "$1" 19389 } # as_fn_executable_p 19390 as_test_x='test -x' 19391 as_executable_p=as_fn_executable_p 19392 19393 # Sed expression to map a string onto a valid CPP name. 19394 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19395 19396 # Sed expression to map a string onto a valid variable name. 19397 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19398 19399 19400 exec 6>&1 19401 ## ----------------------------------- ## 19402 ## Main body of $CONFIG_STATUS script. ## 19403 ## ----------------------------------- ## 19404 _ASEOF 19405 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19406 19407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19408 # Save the log message, to keep $0 and so on meaningful, and to 19409 # report actual input values of CONFIG_FILES etc. instead of their 19410 # values after options handling. 19411 ac_log=" 19412 This file was extended by xf86-video-i740 $as_me 1.4.0, which was 19413 generated by GNU Autoconf 2.69. Invocation command line was 19414 19415 CONFIG_FILES = $CONFIG_FILES 19416 CONFIG_HEADERS = $CONFIG_HEADERS 19417 CONFIG_LINKS = $CONFIG_LINKS 19418 CONFIG_COMMANDS = $CONFIG_COMMANDS 19419 $ $0 $@ 19420 19421 on `(hostname || uname -n) 2>/dev/null | sed 1q` 19422 " 19423 19424 _ACEOF 19425 19426 case $ac_config_files in *" 19427 "*) set x $ac_config_files; shift; ac_config_files=$*;; 19428 esac 19429 19430 case $ac_config_headers in *" 19431 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19432 esac 19433 19434 19435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19436 # Files that config.status was made for. 19437 config_files="$ac_config_files" 19438 config_headers="$ac_config_headers" 19439 config_commands="$ac_config_commands" 19440 19441 _ACEOF 19442 19443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19444 ac_cs_usage="\ 19445 \`$as_me' instantiates files and other configuration actions 19446 from templates according to the current configuration. Unless the files 19447 and actions are specified as TAGs, all are instantiated by default. 19448 19449 Usage: $0 [OPTION]... [TAG]... 19450 19451 -h, --help print this help, then exit 19452 -V, --version print version number and configuration settings, then exit 19453 --config print configuration, then exit 19454 -q, --quiet, --silent 19455 do not print progress messages 19456 -d, --debug don't remove temporary files 19457 --recheck update $as_me by reconfiguring in the same conditions 19458 --file=FILE[:TEMPLATE] 19459 instantiate the configuration file FILE 19460 --header=FILE[:TEMPLATE] 19461 instantiate the configuration header FILE 19462 19463 Configuration files: 19464 $config_files 19465 19466 Configuration headers: 19467 $config_headers 19468 19469 Configuration commands: 19470 $config_commands 19471 19472 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-i740/issues>." 19473 19474 _ACEOF 19475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19476 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19477 ac_cs_version="\\ 19478 xf86-video-i740 config.status 1.4.0 19479 configured by $0, generated by GNU Autoconf 2.69, 19480 with options \\"\$ac_cs_config\\" 19481 19482 Copyright (C) 2012 Free Software Foundation, Inc. 19483 This config.status script is free software; the Free Software Foundation 19484 gives unlimited permission to copy, distribute and modify it." 19485 19486 ac_pwd='$ac_pwd' 19487 srcdir='$srcdir' 19488 INSTALL='$INSTALL' 19489 MKDIR_P='$MKDIR_P' 19490 AWK='$AWK' 19491 test -n "\$AWK" || AWK=awk 19492 _ACEOF 19493 19494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19495 # The default lists apply if the user does not specify any file. 19496 ac_need_defaults=: 19497 while test $# != 0 19498 do 19499 case $1 in 19500 --*=?*) 19501 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19502 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19503 ac_shift=: 19504 ;; 19505 --*=) 19506 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19507 ac_optarg= 19508 ac_shift=: 19509 ;; 19510 *) 19511 ac_option=$1 19512 ac_optarg=$2 19513 ac_shift=shift 19514 ;; 19515 esac 19516 19517 case $ac_option in 19518 # Handling of the options. 19519 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19520 ac_cs_recheck=: ;; 19521 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19522 $as_echo "$ac_cs_version"; exit ;; 19523 --config | --confi | --conf | --con | --co | --c ) 19524 $as_echo "$ac_cs_config"; exit ;; 19525 --debug | --debu | --deb | --de | --d | -d ) 19526 debug=: ;; 19527 --file | --fil | --fi | --f ) 19528 $ac_shift 19529 case $ac_optarg in 19530 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19531 '') as_fn_error $? "missing file argument" ;; 19532 esac 19533 as_fn_append CONFIG_FILES " '$ac_optarg'" 19534 ac_need_defaults=false;; 19535 --header | --heade | --head | --hea ) 19536 $ac_shift 19537 case $ac_optarg in 19538 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19539 esac 19540 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19541 ac_need_defaults=false;; 19542 --he | --h) 19543 # Conflict between --help and --header 19544 as_fn_error $? "ambiguous option: \`$1' 19545 Try \`$0 --help' for more information.";; 19546 --help | --hel | -h ) 19547 $as_echo "$ac_cs_usage"; exit ;; 19548 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19549 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19550 ac_cs_silent=: ;; 19551 19552 # This is an error. 19553 -*) as_fn_error $? "unrecognized option: \`$1' 19554 Try \`$0 --help' for more information." ;; 19555 19556 *) as_fn_append ac_config_targets " $1" 19557 ac_need_defaults=false ;; 19558 19559 esac 19560 shift 19561 done 19562 19563 ac_configure_extra_args= 19564 19565 if $ac_cs_silent; then 19566 exec 6>/dev/null 19567 ac_configure_extra_args="$ac_configure_extra_args --silent" 19568 fi 19569 19570 _ACEOF 19571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19572 if \$ac_cs_recheck; then 19573 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19574 shift 19575 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19576 CONFIG_SHELL='$SHELL' 19577 export CONFIG_SHELL 19578 exec "\$@" 19579 fi 19580 19581 _ACEOF 19582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19583 exec 5>>config.log 19584 { 19585 echo 19586 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19587 ## Running $as_me. ## 19588 _ASBOX 19589 $as_echo "$ac_log" 19590 } >&5 19591 19592 _ACEOF 19593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19594 # 19595 # INIT-COMMANDS 19596 # 19597 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19598 19599 19600 # The HP-UX ksh and POSIX shell print the target directory to stdout 19601 # if CDPATH is set. 19602 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19603 19604 sed_quote_subst='$sed_quote_subst' 19605 double_quote_subst='$double_quote_subst' 19606 delay_variable_subst='$delay_variable_subst' 19607 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19608 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19609 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19610 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19611 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19612 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19613 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19614 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19615 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19616 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19617 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19618 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19619 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19620 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19621 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19622 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19623 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19624 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19625 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19626 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19627 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19628 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19629 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19630 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19631 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19632 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19633 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19634 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19635 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19636 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19637 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19638 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19639 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19640 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19641 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19642 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19643 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19644 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19645 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19646 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19647 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19648 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19649 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19650 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19651 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19652 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19653 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19654 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19655 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19656 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19657 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19658 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19659 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19660 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19661 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19662 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19663 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19664 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19665 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 19666 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19667 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19668 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19669 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19670 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19671 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19672 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19673 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19674 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19675 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19676 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19677 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19678 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19679 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19680 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19681 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19682 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19683 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19684 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19685 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19686 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19687 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19688 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19689 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19690 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19691 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19692 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19693 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19694 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19695 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19696 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19697 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19698 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19699 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19700 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19701 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19702 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19703 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19704 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19705 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19706 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19707 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19708 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19709 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19710 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19711 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19712 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19713 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19714 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19715 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19716 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19717 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19718 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19719 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19720 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19721 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19722 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19723 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19724 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19725 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19726 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19727 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19728 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19729 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19730 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19731 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19732 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19733 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19734 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19735 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19736 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19737 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19738 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19739 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19740 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19741 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19742 19743 LTCC='$LTCC' 19744 LTCFLAGS='$LTCFLAGS' 19745 compiler='$compiler_DEFAULT' 19746 19747 # A function that is used when there is no print builtin or printf. 19748 func_fallback_echo () 19749 { 19750 eval 'cat <<_LTECHO_EOF 19751 \$1 19752 _LTECHO_EOF' 19753 } 19754 19755 # Quote evaled strings. 19756 for var in SHELL \ 19757 ECHO \ 19758 PATH_SEPARATOR \ 19759 SED \ 19760 GREP \ 19761 EGREP \ 19762 FGREP \ 19763 LD \ 19764 NM \ 19765 LN_S \ 19766 lt_SP2NL \ 19767 lt_NL2SP \ 19768 reload_flag \ 19769 OBJDUMP \ 19770 deplibs_check_method \ 19771 file_magic_cmd \ 19772 file_magic_glob \ 19773 want_nocaseglob \ 19774 DLLTOOL \ 19775 sharedlib_from_linklib_cmd \ 19776 AR \ 19777 AR_FLAGS \ 19778 archiver_list_spec \ 19779 STRIP \ 19780 RANLIB \ 19781 CC \ 19782 CFLAGS \ 19783 compiler \ 19784 lt_cv_sys_global_symbol_pipe \ 19785 lt_cv_sys_global_symbol_to_cdecl \ 19786 lt_cv_sys_global_symbol_to_import \ 19787 lt_cv_sys_global_symbol_to_c_name_address \ 19788 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19789 lt_cv_nm_interface \ 19790 nm_file_list_spec \ 19791 lt_cv_truncate_bin \ 19792 lt_prog_compiler_no_builtin_flag \ 19793 lt_prog_compiler_pic \ 19794 lt_prog_compiler_wl \ 19795 lt_prog_compiler_static \ 19796 lt_cv_prog_compiler_c_o \ 19797 need_locks \ 19798 MANIFEST_TOOL \ 19799 DSYMUTIL \ 19800 NMEDIT \ 19801 LIPO \ 19802 OTOOL \ 19803 OTOOL64 \ 19804 shrext_cmds \ 19805 export_dynamic_flag_spec \ 19806 whole_archive_flag_spec \ 19807 compiler_needs_object \ 19808 with_gnu_ld \ 19809 allow_undefined_flag \ 19810 no_undefined_flag \ 19811 hardcode_libdir_flag_spec \ 19812 hardcode_libdir_separator \ 19813 exclude_expsyms \ 19814 include_expsyms \ 19815 file_list_spec \ 19816 variables_saved_for_relink \ 19817 libname_spec \ 19818 library_names_spec \ 19819 soname_spec \ 19820 install_override_mode \ 19821 finish_eval \ 19822 old_striplib \ 19823 striplib; do 19824 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19825 *[\\\\\\\`\\"\\\$]*) 19826 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19827 ;; 19828 *) 19829 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19830 ;; 19831 esac 19832 done 19833 19834 # Double-quote double-evaled strings. 19835 for var in reload_cmds \ 19836 old_postinstall_cmds \ 19837 old_postuninstall_cmds \ 19838 old_archive_cmds \ 19839 extract_expsyms_cmds \ 19840 old_archive_from_new_cmds \ 19841 old_archive_from_expsyms_cmds \ 19842 archive_cmds \ 19843 archive_expsym_cmds \ 19844 module_cmds \ 19845 module_expsym_cmds \ 19846 export_symbols_cmds \ 19847 prelink_cmds \ 19848 postlink_cmds \ 19849 postinstall_cmds \ 19850 postuninstall_cmds \ 19851 finish_cmds \ 19852 sys_lib_search_path_spec \ 19853 configure_time_dlsearch_path \ 19854 configure_time_lt_sys_library_path; do 19855 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19856 *[\\\\\\\`\\"\\\$]*) 19857 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19858 ;; 19859 *) 19860 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19861 ;; 19862 esac 19863 done 19864 19865 ac_aux_dir='$ac_aux_dir' 19866 19867 # See if we are running on zsh, and set the options that allow our 19868 # commands through without removal of \ escapes INIT. 19869 if test -n "\${ZSH_VERSION+set}"; then 19870 setopt NO_GLOB_SUBST 19871 fi 19872 19873 19874 PACKAGE='$PACKAGE' 19875 VERSION='$VERSION' 19876 RM='$RM' 19877 ofile='$ofile' 19878 19879 19880 19881 19882 _ACEOF 19883 19884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19885 19886 # Handling of arguments. 19887 for ac_config_target in $ac_config_targets 19888 do 19889 case $ac_config_target in 19890 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19891 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19892 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19893 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19894 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19895 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19896 19897 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19898 esac 19899 done 19900 19901 19902 # If the user did not use the arguments to specify the items to instantiate, 19903 # then the envvar interface is used. Set only those that are not. 19904 # We use the long form for the default assignment because of an extremely 19905 # bizarre bug on SunOS 4.1.3. 19906 if $ac_need_defaults; then 19907 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19908 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19909 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19910 fi 19911 19912 # Have a temporary directory for convenience. Make it in the build tree 19913 # simply because there is no reason against having it here, and in addition, 19914 # creating and moving files from /tmp can sometimes cause problems. 19915 # Hook for its removal unless debugging. 19916 # Note that there is a small window in which the directory will not be cleaned: 19917 # after its creation but before its name has been assigned to `$tmp'. 19918 $debug || 19919 { 19920 tmp= ac_tmp= 19921 trap 'exit_status=$? 19922 : "${ac_tmp:=$tmp}" 19923 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19924 ' 0 19925 trap 'as_fn_exit 1' 1 2 13 15 19926 } 19927 # Create a (secure) tmp directory for tmp files. 19928 19929 { 19930 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19931 test -d "$tmp" 19932 } || 19933 { 19934 tmp=./conf$$-$RANDOM 19935 (umask 077 && mkdir "$tmp") 19936 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19937 ac_tmp=$tmp 19938 19939 # Set up the scripts for CONFIG_FILES section. 19940 # No need to generate them if there are no CONFIG_FILES. 19941 # This happens for instance with `./config.status config.h'. 19942 if test -n "$CONFIG_FILES"; then 19943 19944 19945 ac_cr=`echo X | tr X '\015'` 19946 # On cygwin, bash can eat \r inside `` if the user requested igncr. 19947 # But we know of no other shell where ac_cr would be empty at this 19948 # point, so we can use a bashism as a fallback. 19949 if test "x$ac_cr" = x; then 19950 eval ac_cr=\$\'\\r\' 19951 fi 19952 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19953 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19954 ac_cs_awk_cr='\\r' 19955 else 19956 ac_cs_awk_cr=$ac_cr 19957 fi 19958 19959 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19960 _ACEOF 19961 19962 19963 { 19964 echo "cat >conf$$subs.awk <<_ACEOF" && 19965 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19966 echo "_ACEOF" 19967 } >conf$$subs.sh || 19968 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19969 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19970 ac_delim='%!_!# ' 19971 for ac_last_try in false false false false false :; do 19972 . ./conf$$subs.sh || 19973 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19974 19975 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19976 if test $ac_delim_n = $ac_delim_num; then 19977 break 19978 elif $ac_last_try; then 19979 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19980 else 19981 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19982 fi 19983 done 19984 rm -f conf$$subs.sh 19985 19986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19987 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19988 _ACEOF 19989 sed -n ' 19990 h 19991 s/^/S["/; s/!.*/"]=/ 19992 p 19993 g 19994 s/^[^!]*!// 19995 :repl 19996 t repl 19997 s/'"$ac_delim"'$// 19998 t delim 19999 :nl 20000 h 20001 s/\(.\{148\}\)..*/\1/ 20002 t more1 20003 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20004 p 20005 n 20006 b repl 20007 :more1 20008 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20009 p 20010 g 20011 s/.\{148\}// 20012 t nl 20013 :delim 20014 h 20015 s/\(.\{148\}\)..*/\1/ 20016 t more2 20017 s/["\\]/\\&/g; s/^/"/; s/$/"/ 20018 p 20019 b 20020 :more2 20021 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20022 p 20023 g 20024 s/.\{148\}// 20025 t delim 20026 ' <conf$$subs.awk | sed ' 20027 /^[^""]/{ 20028 N 20029 s/\n// 20030 } 20031 ' >>$CONFIG_STATUS || ac_write_fail=1 20032 rm -f conf$$subs.awk 20033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20034 _ACAWK 20035 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20036 for (key in S) S_is_set[key] = 1 20037 FS = "" 20038 20039 } 20040 { 20041 line = $ 0 20042 nfields = split(line, field, "@") 20043 substed = 0 20044 len = length(field[1]) 20045 for (i = 2; i < nfields; i++) { 20046 key = field[i] 20047 keylen = length(key) 20048 if (S_is_set[key]) { 20049 value = S[key] 20050 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20051 len += length(value) + length(field[++i]) 20052 substed = 1 20053 } else 20054 len += 1 + keylen 20055 } 20056 20057 print line 20058 } 20059 20060 _ACAWK 20061 _ACEOF 20062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20063 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20064 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20065 else 20066 cat 20067 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20068 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20069 _ACEOF 20070 20071 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20072 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20073 # trailing colons and then remove the whole line if VPATH becomes empty 20074 # (actually we leave an empty line to preserve line numbers). 20075 if test "x$srcdir" = x.; then 20076 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20077 h 20078 s/// 20079 s/^/:/ 20080 s/[ ]*$/:/ 20081 s/:\$(srcdir):/:/g 20082 s/:\${srcdir}:/:/g 20083 s/:@srcdir@:/:/g 20084 s/^:*// 20085 s/:*$// 20086 x 20087 s/\(=[ ]*\).*/\1/ 20088 G 20089 s/\n// 20090 s/^[^=]*=[ ]*$// 20091 }' 20092 fi 20093 20094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20095 fi # test -n "$CONFIG_FILES" 20096 20097 # Set up the scripts for CONFIG_HEADERS section. 20098 # No need to generate them if there are no CONFIG_HEADERS. 20099 # This happens for instance with `./config.status Makefile'. 20100 if test -n "$CONFIG_HEADERS"; then 20101 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20102 BEGIN { 20103 _ACEOF 20104 20105 # Transform confdefs.h into an awk script `defines.awk', embedded as 20106 # here-document in config.status, that substitutes the proper values into 20107 # config.h.in to produce config.h. 20108 20109 # Create a delimiter string that does not exist in confdefs.h, to ease 20110 # handling of long lines. 20111 ac_delim='%!_!# ' 20112 for ac_last_try in false false :; do 20113 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20114 if test -z "$ac_tt"; then 20115 break 20116 elif $ac_last_try; then 20117 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20118 else 20119 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20120 fi 20121 done 20122 20123 # For the awk script, D is an array of macro values keyed by name, 20124 # likewise P contains macro parameters if any. Preserve backslash 20125 # newline sequences. 20126 20127 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20128 sed -n ' 20129 s/.\{148\}/&'"$ac_delim"'/g 20130 t rset 20131 :rset 20132 s/^[ ]*#[ ]*define[ ][ ]*/ / 20133 t def 20134 d 20135 :def 20136 s/\\$// 20137 t bsnl 20138 s/["\\]/\\&/g 20139 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20140 D["\1"]=" \3"/p 20141 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20142 d 20143 :bsnl 20144 s/["\\]/\\&/g 20145 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20146 D["\1"]=" \3\\\\\\n"\\/p 20147 t cont 20148 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20149 t cont 20150 d 20151 :cont 20152 n 20153 s/.\{148\}/&'"$ac_delim"'/g 20154 t clear 20155 :clear 20156 s/\\$// 20157 t bsnlc 20158 s/["\\]/\\&/g; s/^/"/; s/$/"/p 20159 d 20160 :bsnlc 20161 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20162 b cont 20163 ' <confdefs.h | sed ' 20164 s/'"$ac_delim"'/"\\\ 20165 "/g' >>$CONFIG_STATUS || ac_write_fail=1 20166 20167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20168 for (key in D) D_is_set[key] = 1 20169 FS = "" 20170 } 20171 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20172 line = \$ 0 20173 split(line, arg, " ") 20174 if (arg[1] == "#") { 20175 defundef = arg[2] 20176 mac1 = arg[3] 20177 } else { 20178 defundef = substr(arg[1], 2) 20179 mac1 = arg[2] 20180 } 20181 split(mac1, mac2, "(") #) 20182 macro = mac2[1] 20183 prefix = substr(line, 1, index(line, defundef) - 1) 20184 if (D_is_set[macro]) { 20185 # Preserve the white space surrounding the "#". 20186 print prefix "define", macro P[macro] D[macro] 20187 next 20188 } else { 20189 # Replace #undef with comments. This is necessary, for example, 20190 # in the case of _POSIX_SOURCE, which is predefined and required 20191 # on some systems where configure will not decide to define it. 20192 if (defundef == "undef") { 20193 print "/*", prefix defundef, macro, "*/" 20194 next 20195 } 20196 } 20197 } 20198 { print } 20199 _ACAWK 20200 _ACEOF 20201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20202 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20203 fi # test -n "$CONFIG_HEADERS" 20204 20205 20206 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20207 shift 20208 for ac_tag 20209 do 20210 case $ac_tag in 20211 :[FHLC]) ac_mode=$ac_tag; continue;; 20212 esac 20213 case $ac_mode$ac_tag in 20214 :[FHL]*:*);; 20215 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20216 :[FH]-) ac_tag=-:-;; 20217 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20218 esac 20219 ac_save_IFS=$IFS 20220 IFS=: 20221 set x $ac_tag 20222 IFS=$ac_save_IFS 20223 shift 20224 ac_file=$1 20225 shift 20226 20227 case $ac_mode in 20228 :L) ac_source=$1;; 20229 :[FH]) 20230 ac_file_inputs= 20231 for ac_f 20232 do 20233 case $ac_f in 20234 -) ac_f="$ac_tmp/stdin";; 20235 *) # Look for the file first in the build tree, then in the source tree 20236 # (if the path is not absolute). The absolute path cannot be DOS-style, 20237 # because $ac_f cannot contain `:'. 20238 test -f "$ac_f" || 20239 case $ac_f in 20240 [\\/$]*) false;; 20241 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20242 esac || 20243 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20244 esac 20245 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20246 as_fn_append ac_file_inputs " '$ac_f'" 20247 done 20248 20249 # Let's still pretend it is `configure' which instantiates (i.e., don't 20250 # use $as_me), people would be surprised to read: 20251 # /* config.h. Generated by config.status. */ 20252 configure_input='Generated from '` 20253 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20254 `' by configure.' 20255 if test x"$ac_file" != x-; then 20256 configure_input="$ac_file. $configure_input" 20257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20258 $as_echo "$as_me: creating $ac_file" >&6;} 20259 fi 20260 # Neutralize special characters interpreted by sed in replacement strings. 20261 case $configure_input in #( 20262 *\&* | *\|* | *\\* ) 20263 ac_sed_conf_input=`$as_echo "$configure_input" | 20264 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20265 *) ac_sed_conf_input=$configure_input;; 20266 esac 20267 20268 case $ac_tag in 20269 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20270 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20271 esac 20272 ;; 20273 esac 20274 20275 ac_dir=`$as_dirname -- "$ac_file" || 20276 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20277 X"$ac_file" : 'X\(//\)[^/]' \| \ 20278 X"$ac_file" : 'X\(//\)$' \| \ 20279 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20280 $as_echo X"$ac_file" | 20281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20282 s//\1/ 20283 q 20284 } 20285 /^X\(\/\/\)[^/].*/{ 20286 s//\1/ 20287 q 20288 } 20289 /^X\(\/\/\)$/{ 20290 s//\1/ 20291 q 20292 } 20293 /^X\(\/\).*/{ 20294 s//\1/ 20295 q 20296 } 20297 s/.*/./; q'` 20298 as_dir="$ac_dir"; as_fn_mkdir_p 20299 ac_builddir=. 20300 20301 case "$ac_dir" in 20302 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20303 *) 20304 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20305 # A ".." for each directory in $ac_dir_suffix. 20306 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20307 case $ac_top_builddir_sub in 20308 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20309 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20310 esac ;; 20311 esac 20312 ac_abs_top_builddir=$ac_pwd 20313 ac_abs_builddir=$ac_pwd$ac_dir_suffix 20314 # for backward compatibility: 20315 ac_top_builddir=$ac_top_build_prefix 20316 20317 case $srcdir in 20318 .) # We are building in place. 20319 ac_srcdir=. 20320 ac_top_srcdir=$ac_top_builddir_sub 20321 ac_abs_top_srcdir=$ac_pwd ;; 20322 [\\/]* | ?:[\\/]* ) # Absolute name. 20323 ac_srcdir=$srcdir$ac_dir_suffix; 20324 ac_top_srcdir=$srcdir 20325 ac_abs_top_srcdir=$srcdir ;; 20326 *) # Relative name. 20327 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20328 ac_top_srcdir=$ac_top_build_prefix$srcdir 20329 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20330 esac 20331 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20332 20333 20334 case $ac_mode in 20335 :F) 20336 # 20337 # CONFIG_FILE 20338 # 20339 20340 case $INSTALL in 20341 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20342 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20343 esac 20344 ac_MKDIR_P=$MKDIR_P 20345 case $MKDIR_P in 20346 [\\/$]* | ?:[\\/]* ) ;; 20347 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20348 esac 20349 _ACEOF 20350 20351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20352 # If the template does not know about datarootdir, expand it. 20353 # FIXME: This hack should be removed a few years after 2.60. 20354 ac_datarootdir_hack=; ac_datarootdir_seen= 20355 ac_sed_dataroot=' 20356 /datarootdir/ { 20357 p 20358 q 20359 } 20360 /@datadir@/p 20361 /@docdir@/p 20362 /@infodir@/p 20363 /@localedir@/p 20364 /@mandir@/p' 20365 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20366 *datarootdir*) ac_datarootdir_seen=yes;; 20367 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20369 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20370 _ACEOF 20371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20372 ac_datarootdir_hack=' 20373 s&@datadir@&$datadir&g 20374 s&@docdir@&$docdir&g 20375 s&@infodir@&$infodir&g 20376 s&@localedir@&$localedir&g 20377 s&@mandir@&$mandir&g 20378 s&\\\${datarootdir}&$datarootdir&g' ;; 20379 esac 20380 _ACEOF 20381 20382 # Neutralize VPATH when `$srcdir' = `.'. 20383 # Shell code in configure.ac might set extrasub. 20384 # FIXME: do we really want to maintain this feature? 20385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20386 ac_sed_extra="$ac_vpsub 20387 $extrasub 20388 _ACEOF 20389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20390 :t 20391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20392 s|@configure_input@|$ac_sed_conf_input|;t t 20393 s&@top_builddir@&$ac_top_builddir_sub&;t t 20394 s&@top_build_prefix@&$ac_top_build_prefix&;t t 20395 s&@srcdir@&$ac_srcdir&;t t 20396 s&@abs_srcdir@&$ac_abs_srcdir&;t t 20397 s&@top_srcdir@&$ac_top_srcdir&;t t 20398 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20399 s&@builddir@&$ac_builddir&;t t 20400 s&@abs_builddir@&$ac_abs_builddir&;t t 20401 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20402 s&@INSTALL@&$ac_INSTALL&;t t 20403 s&@MKDIR_P@&$ac_MKDIR_P&;t t 20404 $ac_datarootdir_hack 20405 " 20406 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20407 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20408 20409 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20410 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20411 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20412 "$ac_tmp/out"`; test -z "$ac_out"; } && 20413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20414 which seems to be undefined. Please make sure it is defined" >&5 20415 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20416 which seems to be undefined. Please make sure it is defined" >&2;} 20417 20418 rm -f "$ac_tmp/stdin" 20419 case $ac_file in 20420 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20421 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20422 esac \ 20423 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20424 ;; 20425 :H) 20426 # 20427 # CONFIG_HEADER 20428 # 20429 if test x"$ac_file" != x-; then 20430 { 20431 $as_echo "/* $configure_input */" \ 20432 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20433 } >"$ac_tmp/config.h" \ 20434 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20435 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20436 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20437 $as_echo "$as_me: $ac_file is unchanged" >&6;} 20438 else 20439 rm -f "$ac_file" 20440 mv "$ac_tmp/config.h" "$ac_file" \ 20441 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20442 fi 20443 else 20444 $as_echo "/* $configure_input */" \ 20445 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20446 || as_fn_error $? "could not create -" "$LINENO" 5 20447 fi 20448 # Compute "$ac_file"'s index in $config_headers. 20449 _am_arg="$ac_file" 20450 _am_stamp_count=1 20451 for _am_header in $config_headers :; do 20452 case $_am_header in 20453 $_am_arg | $_am_arg:* ) 20454 break ;; 20455 * ) 20456 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20457 esac 20458 done 20459 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20460 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20461 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20462 X"$_am_arg" : 'X\(//\)$' \| \ 20463 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20464 $as_echo X"$_am_arg" | 20465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20466 s//\1/ 20467 q 20468 } 20469 /^X\(\/\/\)[^/].*/{ 20470 s//\1/ 20471 q 20472 } 20473 /^X\(\/\/\)$/{ 20474 s//\1/ 20475 q 20476 } 20477 /^X\(\/\).*/{ 20478 s//\1/ 20479 q 20480 } 20481 s/.*/./; q'`/stamp-h$_am_stamp_count 20482 ;; 20483 20484 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20485 $as_echo "$as_me: executing $ac_file commands" >&6;} 20486 ;; 20487 esac 20488 20489 20490 case $ac_file$ac_mode in 20491 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20492 # Older Autoconf quotes --file arguments for eval, but not when files 20493 # are listed without --file. Let's play safe and only enable the eval 20494 # if we detect the quoting. 20495 case $CONFIG_FILES in 20496 *\'*) eval set x "$CONFIG_FILES" ;; 20497 *) set x $CONFIG_FILES ;; 20498 esac 20499 shift 20500 for mf 20501 do 20502 # Strip MF so we end up with the name of the file. 20503 mf=`echo "$mf" | sed -e 's/:.*$//'` 20504 # Check whether this is an Automake generated Makefile or not. 20505 # We used to match only the files named 'Makefile.in', but 20506 # some people rename them; so instead we look at the file content. 20507 # Grep'ing the first line is not enough: some people post-process 20508 # each Makefile.in and add a new line on top of each file to say so. 20509 # Grep'ing the whole file is not good either: AIX grep has a line 20510 # limit of 2048, but all sed's we know have understand at least 4000. 20511 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20512 dirpart=`$as_dirname -- "$mf" || 20513 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20514 X"$mf" : 'X\(//\)[^/]' \| \ 20515 X"$mf" : 'X\(//\)$' \| \ 20516 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20517 $as_echo X"$mf" | 20518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20519 s//\1/ 20520 q 20521 } 20522 /^X\(\/\/\)[^/].*/{ 20523 s//\1/ 20524 q 20525 } 20526 /^X\(\/\/\)$/{ 20527 s//\1/ 20528 q 20529 } 20530 /^X\(\/\).*/{ 20531 s//\1/ 20532 q 20533 } 20534 s/.*/./; q'` 20535 else 20536 continue 20537 fi 20538 # Extract the definition of DEPDIR, am__include, and am__quote 20539 # from the Makefile without running 'make'. 20540 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20541 test -z "$DEPDIR" && continue 20542 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20543 test -z "$am__include" && continue 20544 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20545 # Find all dependency output files, they are included files with 20546 # $(DEPDIR) in their names. We invoke sed twice because it is the 20547 # simplest approach to changing $(DEPDIR) to its actual value in the 20548 # expansion. 20549 for file in `sed -n " 20550 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20551 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20552 # Make sure the directory exists. 20553 test -f "$dirpart/$file" && continue 20554 fdir=`$as_dirname -- "$file" || 20555 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20556 X"$file" : 'X\(//\)[^/]' \| \ 20557 X"$file" : 'X\(//\)$' \| \ 20558 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20559 $as_echo X"$file" | 20560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20561 s//\1/ 20562 q 20563 } 20564 /^X\(\/\/\)[^/].*/{ 20565 s//\1/ 20566 q 20567 } 20568 /^X\(\/\/\)$/{ 20569 s//\1/ 20570 q 20571 } 20572 /^X\(\/\).*/{ 20573 s//\1/ 20574 q 20575 } 20576 s/.*/./; q'` 20577 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20578 # echo "creating $dirpart/$file" 20579 echo '# dummy' > "$dirpart/$file" 20580 done 20581 done 20582 } 20583 ;; 20584 "libtool":C) 20585 20586 # See if we are running on zsh, and set the options that allow our 20587 # commands through without removal of \ escapes. 20588 if test -n "${ZSH_VERSION+set}"; then 20589 setopt NO_GLOB_SUBST 20590 fi 20591 20592 cfgfile=${ofile}T 20593 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20594 $RM "$cfgfile" 20595 20596 cat <<_LT_EOF >> "$cfgfile" 20597 #! $SHELL 20598 # Generated automatically by $as_me ($PACKAGE) $VERSION 20599 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20600 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 20601 20602 # Provide generalized library-building support services. 20603 # Written by Gordon Matzigkeit, 1996 20604 20605 # Copyright (C) 2014 Free Software Foundation, Inc. 20606 # This is free software; see the source for copying conditions. There is NO 20607 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20608 20609 # GNU Libtool is free software; you can redistribute it and/or modify 20610 # it under the terms of the GNU General Public License as published by 20611 # the Free Software Foundation; either version 2 of of the License, or 20612 # (at your option) any later version. 20613 # 20614 # As a special exception to the GNU General Public License, if you 20615 # distribute this file as part of a program or library that is built 20616 # using GNU Libtool, you may include this file under the same 20617 # distribution terms that you use for the rest of that program. 20618 # 20619 # GNU Libtool is distributed in the hope that it will be useful, but 20620 # WITHOUT ANY WARRANTY; without even the implied warranty of 20621 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20622 # GNU General Public License for more details. 20623 # 20624 # You should have received a copy of the GNU General Public License 20625 # along with this program. If not, see <http://www.gnu.org/licenses/>. 20626 20627 20628 # The names of the tagged configurations supported by this script. 20629 available_tags='' 20630 20631 # Configured defaults for sys_lib_dlsearch_path munging. 20632 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20633 20634 # ### BEGIN LIBTOOL CONFIG 20635 20636 # Whether or not to build static libraries. 20637 build_old_libs=$enable_static 20638 20639 # Which release of libtool.m4 was used? 20640 macro_version=$macro_version 20641 macro_revision=$macro_revision 20642 20643 # Whether or not to build shared libraries. 20644 build_libtool_libs=$enable_shared 20645 20646 # What type of objects to build. 20647 pic_mode=$pic_mode 20648 20649 # Whether or not to optimize for fast installation. 20650 fast_install=$enable_fast_install 20651 20652 # Shared archive member basename,for filename based shared library versioning on AIX. 20653 shared_archive_member_spec=$shared_archive_member_spec 20654 20655 # Shell to use when invoking shell scripts. 20656 SHELL=$lt_SHELL 20657 20658 # An echo program that protects backslashes. 20659 ECHO=$lt_ECHO 20660 20661 # The PATH separator for the build system. 20662 PATH_SEPARATOR=$lt_PATH_SEPARATOR 20663 20664 # The host system. 20665 host_alias=$host_alias 20666 host=$host 20667 host_os=$host_os 20668 20669 # The build system. 20670 build_alias=$build_alias 20671 build=$build 20672 build_os=$build_os 20673 20674 # A sed program that does not truncate output. 20675 SED=$lt_SED 20676 20677 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 20678 Xsed="\$SED -e 1s/^X//" 20679 20680 # A grep program that handles long lines. 20681 GREP=$lt_GREP 20682 20683 # An ERE matcher. 20684 EGREP=$lt_EGREP 20685 20686 # A literal string matcher. 20687 FGREP=$lt_FGREP 20688 20689 # A BSD- or MS-compatible name lister. 20690 NM=$lt_NM 20691 20692 # Whether we need soft or hard links. 20693 LN_S=$lt_LN_S 20694 20695 # What is the maximum length of a command? 20696 max_cmd_len=$max_cmd_len 20697 20698 # Object file suffix (normally "o"). 20699 objext=$ac_objext 20700 20701 # Executable file suffix (normally ""). 20702 exeext=$exeext 20703 20704 # whether the shell understands "unset". 20705 lt_unset=$lt_unset 20706 20707 # turn spaces into newlines. 20708 SP2NL=$lt_lt_SP2NL 20709 20710 # turn newlines into spaces. 20711 NL2SP=$lt_lt_NL2SP 20712 20713 # convert \$build file names to \$host format. 20714 to_host_file_cmd=$lt_cv_to_host_file_cmd 20715 20716 # convert \$build files to toolchain format. 20717 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20718 20719 # An object symbol dumper. 20720 OBJDUMP=$lt_OBJDUMP 20721 20722 # Method to check whether dependent libraries are shared objects. 20723 deplibs_check_method=$lt_deplibs_check_method 20724 20725 # Command to use when deplibs_check_method = "file_magic". 20726 file_magic_cmd=$lt_file_magic_cmd 20727 20728 # How to find potential files when deplibs_check_method = "file_magic". 20729 file_magic_glob=$lt_file_magic_glob 20730 20731 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20732 want_nocaseglob=$lt_want_nocaseglob 20733 20734 # DLL creation program. 20735 DLLTOOL=$lt_DLLTOOL 20736 20737 # Command to associate shared and link libraries. 20738 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20739 20740 # The archiver. 20741 AR=$lt_AR 20742 20743 # Flags to create an archive. 20744 AR_FLAGS=$lt_AR_FLAGS 20745 20746 # How to feed a file listing to the archiver. 20747 archiver_list_spec=$lt_archiver_list_spec 20748 20749 # A symbol stripping program. 20750 STRIP=$lt_STRIP 20751 20752 # Commands used to install an old-style archive. 20753 RANLIB=$lt_RANLIB 20754 old_postinstall_cmds=$lt_old_postinstall_cmds 20755 old_postuninstall_cmds=$lt_old_postuninstall_cmds 20756 20757 # Whether to use a lock for old archive extraction. 20758 lock_old_archive_extraction=$lock_old_archive_extraction 20759 20760 # A C compiler. 20761 LTCC=$lt_CC 20762 20763 # LTCC compiler flags. 20764 LTCFLAGS=$lt_CFLAGS 20765 20766 # Take the output of nm and produce a listing of raw symbols and C names. 20767 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20768 20769 # Transform the output of nm in a proper C declaration. 20770 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20771 20772 # Transform the output of nm into a list of symbols to manually relocate. 20773 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20774 20775 # Transform the output of nm in a C name address pair. 20776 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20777 20778 # Transform the output of nm in a C name address pair when lib prefix is needed. 20779 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20780 20781 # The name lister interface. 20782 nm_interface=$lt_lt_cv_nm_interface 20783 20784 # Specify filename containing input files for \$NM. 20785 nm_file_list_spec=$lt_nm_file_list_spec 20786 20787 # The root where to search for dependent libraries,and where our libraries should be installed. 20788 lt_sysroot=$lt_sysroot 20789 20790 # Command to truncate a binary pipe. 20791 lt_truncate_bin=$lt_lt_cv_truncate_bin 20792 20793 # The name of the directory that contains temporary libtool files. 20794 objdir=$objdir 20795 20796 # Used to examine libraries when file_magic_cmd begins with "file". 20797 MAGIC_CMD=$MAGIC_CMD 20798 20799 # Must we lock files when doing compilation? 20800 need_locks=$lt_need_locks 20801 20802 # Manifest tool. 20803 MANIFEST_TOOL=$lt_MANIFEST_TOOL 20804 20805 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20806 DSYMUTIL=$lt_DSYMUTIL 20807 20808 # Tool to change global to local symbols on Mac OS X. 20809 NMEDIT=$lt_NMEDIT 20810 20811 # Tool to manipulate fat objects and archives on Mac OS X. 20812 LIPO=$lt_LIPO 20813 20814 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 20815 OTOOL=$lt_OTOOL 20816 20817 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20818 OTOOL64=$lt_OTOOL64 20819 20820 # Old archive suffix (normally "a"). 20821 libext=$libext 20822 20823 # Shared library suffix (normally ".so"). 20824 shrext_cmds=$lt_shrext_cmds 20825 20826 # The commands to extract the exported symbol list from a shared archive. 20827 extract_expsyms_cmds=$lt_extract_expsyms_cmds 20828 20829 # Variables whose values should be saved in libtool wrapper scripts and 20830 # restored at link time. 20831 variables_saved_for_relink=$lt_variables_saved_for_relink 20832 20833 # Do we need the "lib" prefix for modules? 20834 need_lib_prefix=$need_lib_prefix 20835 20836 # Do we need a version for libraries? 20837 need_version=$need_version 20838 20839 # Library versioning type. 20840 version_type=$version_type 20841 20842 # Shared library runtime path variable. 20843 runpath_var=$runpath_var 20844 20845 # Shared library path variable. 20846 shlibpath_var=$shlibpath_var 20847 20848 # Is shlibpath searched before the hard-coded library search path? 20849 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20850 20851 # Format of library name prefix. 20852 libname_spec=$lt_libname_spec 20853 20854 # List of archive names. First name is the real one, the rest are links. 20855 # The last name is the one that the linker finds with -lNAME 20856 library_names_spec=$lt_library_names_spec 20857 20858 # The coded name of the library, if different from the real name. 20859 soname_spec=$lt_soname_spec 20860 20861 # Permission mode override for installation of shared libraries. 20862 install_override_mode=$lt_install_override_mode 20863 20864 # Command to use after installation of a shared archive. 20865 postinstall_cmds=$lt_postinstall_cmds 20866 20867 # Command to use after uninstallation of a shared archive. 20868 postuninstall_cmds=$lt_postuninstall_cmds 20869 20870 # Commands used to finish a libtool library installation in a directory. 20871 finish_cmds=$lt_finish_cmds 20872 20873 # As "finish_cmds", except a single script fragment to be evaled but 20874 # not shown. 20875 finish_eval=$lt_finish_eval 20876 20877 # Whether we should hardcode library paths into libraries. 20878 hardcode_into_libs=$hardcode_into_libs 20879 20880 # Compile-time system search path for libraries. 20881 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20882 20883 # Detected run-time system search path for libraries. 20884 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20885 20886 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20887 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20888 20889 # Whether dlopen is supported. 20890 dlopen_support=$enable_dlopen 20891 20892 # Whether dlopen of programs is supported. 20893 dlopen_self=$enable_dlopen_self 20894 20895 # Whether dlopen of statically linked programs is supported. 20896 dlopen_self_static=$enable_dlopen_self_static 20897 20898 # Commands to strip libraries. 20899 old_striplib=$lt_old_striplib 20900 striplib=$lt_striplib 20901 20902 20903 # The linker used to build libraries. 20904 LD=$lt_LD 20905 20906 # How to create reloadable object files. 20907 reload_flag=$lt_reload_flag 20908 reload_cmds=$lt_reload_cmds 20909 20910 # Commands used to build an old-style archive. 20911 old_archive_cmds=$lt_old_archive_cmds 20912 20913 # A language specific compiler. 20914 CC=$lt_compiler 20915 20916 # Is the compiler the GNU compiler? 20917 with_gcc=$GCC 20918 20919 # Compiler flag to turn off builtin functions. 20920 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20921 20922 # Additional compiler flags for building library objects. 20923 pic_flag=$lt_lt_prog_compiler_pic 20924 20925 # How to pass a linker flag through the compiler. 20926 wl=$lt_lt_prog_compiler_wl 20927 20928 # Compiler flag to prevent dynamic linking. 20929 link_static_flag=$lt_lt_prog_compiler_static 20930 20931 # Does compiler simultaneously support -c and -o options? 20932 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20933 20934 # Whether or not to add -lc for building shared libraries. 20935 build_libtool_need_lc=$archive_cmds_need_lc 20936 20937 # Whether or not to disallow shared libs when runtime libs are static. 20938 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20939 20940 # Compiler flag to allow reflexive dlopens. 20941 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20942 20943 # Compiler flag to generate shared objects directly from archives. 20944 whole_archive_flag_spec=$lt_whole_archive_flag_spec 20945 20946 # Whether the compiler copes with passing no objects directly. 20947 compiler_needs_object=$lt_compiler_needs_object 20948 20949 # Create an old-style archive from a shared archive. 20950 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20951 20952 # Create a temporary old-style archive to link instead of a shared archive. 20953 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20954 20955 # Commands used to build a shared archive. 20956 archive_cmds=$lt_archive_cmds 20957 archive_expsym_cmds=$lt_archive_expsym_cmds 20958 20959 # Commands used to build a loadable module if different from building 20960 # a shared archive. 20961 module_cmds=$lt_module_cmds 20962 module_expsym_cmds=$lt_module_expsym_cmds 20963 20964 # Whether we are building with GNU ld or not. 20965 with_gnu_ld=$lt_with_gnu_ld 20966 20967 # Flag that allows shared libraries with undefined symbols to be built. 20968 allow_undefined_flag=$lt_allow_undefined_flag 20969 20970 # Flag that enforces no undefined symbols. 20971 no_undefined_flag=$lt_no_undefined_flag 20972 20973 # Flag to hardcode \$libdir into a binary during linking. 20974 # This must work even if \$libdir does not exist 20975 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20976 20977 # Whether we need a single "-rpath" flag with a separated argument. 20978 hardcode_libdir_separator=$lt_hardcode_libdir_separator 20979 20980 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20981 # DIR into the resulting binary. 20982 hardcode_direct=$hardcode_direct 20983 20984 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20985 # DIR into the resulting binary and the resulting library dependency is 20986 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 20987 # library is relocated. 20988 hardcode_direct_absolute=$hardcode_direct_absolute 20989 20990 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20991 # into the resulting binary. 20992 hardcode_minus_L=$hardcode_minus_L 20993 20994 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20995 # into the resulting binary. 20996 hardcode_shlibpath_var=$hardcode_shlibpath_var 20997 20998 # Set to "yes" if building a shared library automatically hardcodes DIR 20999 # into the library and all subsequent libraries and executables linked 21000 # against it. 21001 hardcode_automatic=$hardcode_automatic 21002 21003 # Set to yes if linker adds runtime paths of dependent libraries 21004 # to runtime path list. 21005 inherit_rpath=$inherit_rpath 21006 21007 # Whether libtool must link a program against all its dependency libraries. 21008 link_all_deplibs=$link_all_deplibs 21009 21010 # Set to "yes" if exported symbols are required. 21011 always_export_symbols=$always_export_symbols 21012 21013 # The commands to list exported symbols. 21014 export_symbols_cmds=$lt_export_symbols_cmds 21015 21016 # Symbols that should not be listed in the preloaded symbols. 21017 exclude_expsyms=$lt_exclude_expsyms 21018 21019 # Symbols that must always be exported. 21020 include_expsyms=$lt_include_expsyms 21021 21022 # Commands necessary for linking programs (against libraries) with templates. 21023 prelink_cmds=$lt_prelink_cmds 21024 21025 # Commands necessary for finishing linking programs. 21026 postlink_cmds=$lt_postlink_cmds 21027 21028 # Specify filename containing input files. 21029 file_list_spec=$lt_file_list_spec 21030 21031 # How to hardcode a shared library path into an executable. 21032 hardcode_action=$hardcode_action 21033 21034 # ### END LIBTOOL CONFIG 21035 21036 _LT_EOF 21037 21038 cat <<'_LT_EOF' >> "$cfgfile" 21039 21040 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21041 21042 # func_munge_path_list VARIABLE PATH 21043 # ----------------------------------- 21044 # VARIABLE is name of variable containing _space_ separated list of 21045 # directories to be munged by the contents of PATH, which is string 21046 # having a format: 21047 # "DIR[:DIR]:" 21048 # string "DIR[ DIR]" will be prepended to VARIABLE 21049 # ":DIR[:DIR]" 21050 # string "DIR[ DIR]" will be appended to VARIABLE 21051 # "DIRP[:DIRP]::[DIRA:]DIRA" 21052 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21053 # "DIRA[ DIRA]" will be appended to VARIABLE 21054 # "DIR[:DIR]" 21055 # VARIABLE will be replaced by "DIR[ DIR]" 21056 func_munge_path_list () 21057 { 21058 case x$2 in 21059 x) 21060 ;; 21061 *:) 21062 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21063 ;; 21064 x:*) 21065 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21066 ;; 21067 *::*) 21068 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21069 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21070 ;; 21071 *) 21072 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21073 ;; 21074 esac 21075 } 21076 21077 21078 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21079 func_cc_basename () 21080 { 21081 for cc_temp in $*""; do 21082 case $cc_temp in 21083 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21084 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21085 \-*) ;; 21086 *) break;; 21087 esac 21088 done 21089 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21090 } 21091 21092 21093 # ### END FUNCTIONS SHARED WITH CONFIGURE 21094 21095 _LT_EOF 21096 21097 case $host_os in 21098 aix3*) 21099 cat <<\_LT_EOF >> "$cfgfile" 21100 # AIX sometimes has problems with the GCC collect2 program. For some 21101 # reason, if we set the COLLECT_NAMES environment variable, the problems 21102 # vanish in a puff of smoke. 21103 if test set != "${COLLECT_NAMES+set}"; then 21104 COLLECT_NAMES= 21105 export COLLECT_NAMES 21106 fi 21107 _LT_EOF 21108 ;; 21109 esac 21110 21111 21112 ltmain=$ac_aux_dir/ltmain.sh 21113 21114 21115 # We use sed instead of cat because bash on DJGPP gets confused if 21116 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21117 # text mode, it properly converts lines to CR/LF. This bash problem 21118 # is reportedly fixed, but why not run on old versions too? 21119 sed '$q' "$ltmain" >> "$cfgfile" \ 21120 || (rm -f "$cfgfile"; exit 1) 21121 21122 mv -f "$cfgfile" "$ofile" || 21123 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21124 chmod +x "$ofile" 21125 21126 ;; 21127 21128 esac 21129 done # for ac_tag 21130 21131 21132 as_fn_exit 0 21133 _ACEOF 21134 ac_clean_files=$ac_clean_files_save 21135 21136 test $ac_write_fail = 0 || 21137 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21138 21139 21140 # configure is writing to config.log, and then calls config.status. 21141 # config.status does its own redirection, appending to config.log. 21142 # Unfortunately, on DOS this fails, as config.log is still kept open 21143 # by configure, so config.status won't be able to write to it; its 21144 # output is simply discarded. So we exec the FD to /dev/null, 21145 # effectively closing config.log, so it can be properly (re)opened and 21146 # appended to by config.status. When coming back to configure, we 21147 # need to make the FD available again. 21148 if test "$no_create" != yes; then 21149 ac_cs_success=: 21150 ac_config_status_args= 21151 test "$silent" = yes && 21152 ac_config_status_args="$ac_config_status_args --quiet" 21153 exec 5>/dev/null 21154 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21155 exec 5>>config.log 21156 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21157 # would make configure fail if this is the last instruction. 21158 $ac_cs_success || as_fn_exit 1 21159 fi 21160 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21162 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21163 fi 21164 21165