1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.68 for xf86-video-tseng 1.2.5. 4 # 5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6 # 7 # 8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10 # Foundation, Inc. 11 # 12 # 13 # This configure script is free software; the Free Software Foundation 14 # gives unlimited permission to copy, distribute and modify it. 15 ## -------------------- ## 16 ## M4sh Initialization. ## 17 ## -------------------- ## 18 19 # Be more Bourne compatible 20 DUALCASE=1; export DUALCASE # for MKS sh 21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac 35 fi 36 37 38 as_nl=' 39 ' 40 export as_nl 41 # Printing a long string crashes Solaris 7 /usr/bin/printf. 42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45 # Prefer a ksh shell builtin over an external printf program on Solaris, 46 # but without wasting forks for bash or zsh. 47 if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54 else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74 fi 75 76 # The user is always right. 77 if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83 fi 84 85 86 # IFS 87 # We need space, tab and new line, in precisely that order. Quoting is 88 # there to prevent editors from complaining about space-tab. 89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 90 # splitting by setting IFS to empty value.) 91 IFS=" "" $as_nl" 92 93 # Find who we are. Look in the path if we contain no directory separator. 94 as_myself= 95 case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98 for as_dir in $PATH 99 do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104 IFS=$as_save_IFS 105 106 ;; 107 esac 108 # We did not find ourselves, most probably we were run as `sh COMMAND' 109 # in which case we are not to be found in the path. 110 if test "x$as_myself" = x; then 111 as_myself=$0 112 fi 113 if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116 fi 117 118 # Unset variables that we do not need and which cause bugs (e.g. in 119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120 # suppresses any "Segmentation fault" message there. '((' could 121 # trigger a bug in pdksh 5.2.14. 122 for as_var in BASH_ENV ENV MAIL MAILPATH 123 do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125 done 126 PS1='$ ' 127 PS2='> ' 128 PS4='+ ' 129 130 # NLS nuisances. 131 LC_ALL=C 132 export LC_ALL 133 LANGUAGE=C 134 export LANGUAGE 135 136 # CDPATH. 137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139 if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147 else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153 esac 154 fi 155 " 156 as_required="as_fn_return () { (exit \$1); } 157 as_fn_success () { as_fn_return 0; } 158 as_fn_failure () { as_fn_return 1; } 159 as_fn_ret_success () { return 0; } 160 as_fn_ret_failure () { return 1; } 161 162 exitcode=0 163 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169 else 170 exitcode=1; echo positional parameters were not saved. 171 fi 172 test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 test \$(( 1 + 1 )) = 2 || exit 1 178 179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 183 PATH=/empty FPATH=/empty; export PATH FPATH 184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188 else 189 as_have_required=no 190 fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193 else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195 as_found=false 196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197 do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211 fi 212 fi 213 done;; 214 esac 215 as_found=false 216 done 217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220 fi; } 221 IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240 fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and 250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251 $0: about your system, including any error possibly output 252 $0: before this message. Then install a modern shell, or 253 $0: manually run the script under such a shell if you do 254 $0: have one." 255 fi 256 exit 1 257 fi 258 fi 259 fi 260 SHELL=${CONFIG_SHELL-/bin/sh} 261 export SHELL 262 # Unset more variables known to interfere with behavior of common tools. 263 CLICOLOR_FORCE= GREP_OPTIONS= 264 unset CLICOLOR_FORCE GREP_OPTIONS 265 266 ## --------------------- ## 267 ## M4sh Shell Functions. ## 268 ## --------------------- ## 269 # as_fn_unset VAR 270 # --------------- 271 # Portably unset VAR. 272 as_fn_unset () 273 { 274 { eval $1=; unset $1;} 275 } 276 as_unset=as_fn_unset 277 278 # as_fn_set_status STATUS 279 # ----------------------- 280 # Set $? to STATUS, without forking. 281 as_fn_set_status () 282 { 283 return $1 284 } # as_fn_set_status 285 286 # as_fn_exit STATUS 287 # ----------------- 288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289 as_fn_exit () 290 { 291 set +e 292 as_fn_set_status $1 293 exit $1 294 } # as_fn_exit 295 296 # as_fn_mkdir_p 297 # ------------- 298 # Create "$as_dir" as a directory, including parents if necessary. 299 as_fn_mkdir_p () 300 { 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318 $as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342 } # as_fn_mkdir_p 343 # as_fn_append VAR VALUE 344 # ---------------------- 345 # Append the text in VALUE to the end of the definition contained in VAR. Take 346 # advantage of any shell optimizations that allow amortized linear growth over 347 # repeated appends, instead of the typical quadratic growth present in naive 348 # implementations. 349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354 else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359 fi # as_fn_append 360 361 # as_fn_arith ARG... 362 # ------------------ 363 # Perform arithmetic evaluation on the ARGs, and store the result in the 364 # global $as_val. Take advantage of shells that can avoid forks. The arguments 365 # must be portable across $(()) and expr. 366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371 else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376 fi # as_fn_arith 377 378 379 # as_fn_error STATUS ERROR [LINENO LOG_FD] 380 # ---------------------------------------- 381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383 # script with STATUS, using 1 if that was 0. 384 as_fn_error () 385 { 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393 } # as_fn_error 394 395 if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398 else 399 as_expr=false 400 fi 401 402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404 else 405 as_basename=false 406 fi 407 408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410 else 411 as_dirname=false 412 fi 413 414 as_me=`$as_basename -- "$0" || 415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418 $as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433 # Avoid depending upon Character Ranges. 434 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437 as_cr_digits='0123456789' 438 as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470 } 471 472 ECHO_C= ECHO_N= ECHO_T= 473 case `echo -n x` in #((((( 474 -n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481 *) 482 ECHO_N='-n';; 483 esac 484 485 rm -f conf$$ conf$$.exe conf$$.file 486 if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488 else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491 fi 492 if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506 else 507 as_ln_s='cp -p' 508 fi 509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510 rmdir conf$$.dir 2>/dev/null 511 512 if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514 else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517 fi 518 519 if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521 else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539 fi 540 as_executable_p=$as_test_x 541 542 # Sed expression to map a string onto a valid CPP name. 543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545 # Sed expression to map a string onto a valid variable name. 546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548 SHELL=${CONFIG_SHELL-/bin/sh} 549 550 551 test -n "$DJDIR" || exec 7<&0 </dev/null 552 exec 6>&1 553 554 # Name of the host. 555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 556 # so uname gets run too. 557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559 # 560 # Initializations. 561 # 562 ac_default_prefix=/usr/local 563 ac_clean_files= 564 ac_config_libobj_dir=. 565 LIBOBJS= 566 cross_compiling=no 567 subdirs= 568 MFLAGS= 569 MAKEFLAGS= 570 571 # Identity of this package. 572 PACKAGE_NAME='xf86-video-tseng' 573 PACKAGE_TARNAME='xf86-video-tseng' 574 PACKAGE_VERSION='1.2.5' 575 PACKAGE_STRING='xf86-video-tseng 1.2.5' 576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 577 PACKAGE_URL='' 578 579 ac_unique_file="Makefile.am" 580 # Factoring default headers for most tests. 581 ac_includes_default="\ 582 #include <stdio.h> 583 #ifdef HAVE_SYS_TYPES_H 584 # include <sys/types.h> 585 #endif 586 #ifdef HAVE_SYS_STAT_H 587 # include <sys/stat.h> 588 #endif 589 #ifdef STDC_HEADERS 590 # include <stdlib.h> 591 # include <stddef.h> 592 #else 593 # ifdef HAVE_STDLIB_H 594 # include <stdlib.h> 595 # endif 596 #endif 597 #ifdef HAVE_STRING_H 598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599 # include <memory.h> 600 # endif 601 # include <string.h> 602 #endif 603 #ifdef HAVE_STRINGS_H 604 # include <strings.h> 605 #endif 606 #ifdef HAVE_INTTYPES_H 607 # include <inttypes.h> 608 #endif 609 #ifdef HAVE_STDINT_H 610 # include <stdint.h> 611 #endif 612 #ifdef HAVE_UNISTD_H 613 # include <unistd.h> 614 #endif" 615 616 ac_subst_vars='am__EXEEXT_FALSE 617 am__EXEEXT_TRUE 618 LTLIBOBJS 619 LIBOBJS 620 DRIVER_NAME 621 moduledir 622 XAA_FALSE 623 XAA_TRUE 624 XSERVER_LIBPCIACCESS_FALSE 625 XSERVER_LIBPCIACCESS_TRUE 626 PCIACCESS_LIBS 627 PCIACCESS_CFLAGS 628 XORG_LIBS 629 XORG_CFLAGS 630 OTOOL64 631 OTOOL 632 LIPO 633 NMEDIT 634 DSYMUTIL 635 MANIFEST_TOOL 636 RANLIB 637 ac_ct_AR 638 AR 639 DLLTOOL 640 OBJDUMP 641 LN_S 642 NM 643 ac_ct_DUMPBIN 644 DUMPBIN 645 LD 646 FGREP 647 LIBTOOL 648 AM_BACKSLASH 649 AM_DEFAULT_VERBOSITY 650 AM_DEFAULT_V 651 AM_V 652 MAN_SUBSTS 653 XORG_MAN_PAGE 654 ADMIN_MAN_DIR 655 DRIVER_MAN_DIR 656 MISC_MAN_DIR 657 FILE_MAN_DIR 658 LIB_MAN_DIR 659 APP_MAN_DIR 660 ADMIN_MAN_SUFFIX 661 DRIVER_MAN_SUFFIX 662 MISC_MAN_SUFFIX 663 FILE_MAN_SUFFIX 664 LIB_MAN_SUFFIX 665 APP_MAN_SUFFIX 666 SED 667 host_os 668 host_vendor 669 host_cpu 670 host 671 build_os 672 build_vendor 673 build_cpu 674 build 675 INSTALL_CMD 676 PKG_CONFIG_LIBDIR 677 PKG_CONFIG_PATH 678 PKG_CONFIG 679 CHANGELOG_CMD 680 STRICT_CFLAGS 681 CWARNFLAGS 682 BASE_CFLAGS 683 EGREP 684 GREP 685 CPP 686 am__fastdepCC_FALSE 687 am__fastdepCC_TRUE 688 CCDEPMODE 689 am__nodep 690 AMDEPBACKSLASH 691 AMDEP_FALSE 692 AMDEP_TRUE 693 am__quote 694 am__include 695 DEPDIR 696 OBJEXT 697 EXEEXT 698 ac_ct_CC 699 CPPFLAGS 700 LDFLAGS 701 CFLAGS 702 CC 703 MAINT 704 MAINTAINER_MODE_FALSE 705 MAINTAINER_MODE_TRUE 706 am__untar 707 am__tar 708 AMTAR 709 am__leading_dot 710 SET_MAKE 711 AWK 712 mkdir_p 713 MKDIR_P 714 INSTALL_STRIP_PROGRAM 715 STRIP 716 install_sh 717 MAKEINFO 718 AUTOHEADER 719 AUTOMAKE 720 AUTOCONF 721 ACLOCAL 722 VERSION 723 PACKAGE 724 CYGPATH_W 725 am__isrc 726 INSTALL_DATA 727 INSTALL_SCRIPT 728 INSTALL_PROGRAM 729 target_alias 730 host_alias 731 build_alias 732 LIBS 733 ECHO_T 734 ECHO_N 735 ECHO_C 736 DEFS 737 mandir 738 localedir 739 libdir 740 psdir 741 pdfdir 742 dvidir 743 htmldir 744 infodir 745 docdir 746 oldincludedir 747 includedir 748 localstatedir 749 sharedstatedir 750 sysconfdir 751 datadir 752 datarootdir 753 libexecdir 754 sbindir 755 bindir 756 program_transform_name 757 prefix 758 exec_prefix 759 PACKAGE_URL 760 PACKAGE_BUGREPORT 761 PACKAGE_STRING 762 PACKAGE_VERSION 763 PACKAGE_TARNAME 764 PACKAGE_NAME 765 PATH_SEPARATOR 766 SHELL' 767 ac_subst_files='' 768 ac_user_opts=' 769 enable_option_checking 770 enable_maintainer_mode 771 enable_dependency_tracking 772 enable_selective_werror 773 enable_strict_compilation 774 enable_silent_rules 775 enable_static 776 enable_shared 777 with_pic 778 enable_fast_install 779 with_gnu_ld 780 with_sysroot 781 enable_libtool_lock 782 with_xorg_module_dir 783 enable_xaa 784 ' 785 ac_precious_vars='build_alias 786 host_alias 787 target_alias 788 CC 789 CFLAGS 790 LDFLAGS 791 LIBS 792 CPPFLAGS 793 CPP 794 PKG_CONFIG 795 PKG_CONFIG_PATH 796 PKG_CONFIG_LIBDIR 797 XORG_CFLAGS 798 XORG_LIBS 799 PCIACCESS_CFLAGS 800 PCIACCESS_LIBS' 801 802 803 # Initialize some variables set by options. 804 ac_init_help= 805 ac_init_version=false 806 ac_unrecognized_opts= 807 ac_unrecognized_sep= 808 # The variables have the same names as the options, with 809 # dashes changed to underlines. 810 cache_file=/dev/null 811 exec_prefix=NONE 812 no_create= 813 no_recursion= 814 prefix=NONE 815 program_prefix=NONE 816 program_suffix=NONE 817 program_transform_name=s,x,x, 818 silent= 819 site= 820 srcdir= 821 verbose= 822 x_includes=NONE 823 x_libraries=NONE 824 825 # Installation directory options. 826 # These are left unexpanded so users can "make install exec_prefix=/foo" 827 # and all the variables that are supposed to be based on exec_prefix 828 # by default will actually change. 829 # Use braces instead of parens because sh, perl, etc. also accept them. 830 # (The list follows the same order as the GNU Coding Standards.) 831 bindir='${exec_prefix}/bin' 832 sbindir='${exec_prefix}/sbin' 833 libexecdir='${exec_prefix}/libexec' 834 datarootdir='${prefix}/share' 835 datadir='${datarootdir}' 836 sysconfdir='${prefix}/etc' 837 sharedstatedir='${prefix}/com' 838 localstatedir='${prefix}/var' 839 includedir='${prefix}/include' 840 oldincludedir='/usr/include' 841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 842 infodir='${datarootdir}/info' 843 htmldir='${docdir}' 844 dvidir='${docdir}' 845 pdfdir='${docdir}' 846 psdir='${docdir}' 847 libdir='${exec_prefix}/lib' 848 localedir='${datarootdir}/locale' 849 mandir='${datarootdir}/man' 850 851 ac_prev= 852 ac_dashdash= 853 for ac_option 854 do 855 # If the previous option needs an argument, assign it. 856 if test -n "$ac_prev"; then 857 eval $ac_prev=\$ac_option 858 ac_prev= 859 continue 860 fi 861 862 case $ac_option in 863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 864 *=) ac_optarg= ;; 865 *) ac_optarg=yes ;; 866 esac 867 868 # Accept the important Cygnus configure options, so we can diagnose typos. 869 870 case $ac_dashdash$ac_option in 871 --) 872 ac_dashdash=yes ;; 873 874 -bindir | --bindir | --bindi | --bind | --bin | --bi) 875 ac_prev=bindir ;; 876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 877 bindir=$ac_optarg ;; 878 879 -build | --build | --buil | --bui | --bu) 880 ac_prev=build_alias ;; 881 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 882 build_alias=$ac_optarg ;; 883 884 -cache-file | --cache-file | --cache-fil | --cache-fi \ 885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 886 ac_prev=cache_file ;; 887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 889 cache_file=$ac_optarg ;; 890 891 --config-cache | -C) 892 cache_file=config.cache ;; 893 894 -datadir | --datadir | --datadi | --datad) 895 ac_prev=datadir ;; 896 -datadir=* | --datadir=* | --datadi=* | --datad=*) 897 datadir=$ac_optarg ;; 898 899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 900 | --dataroo | --dataro | --datar) 901 ac_prev=datarootdir ;; 902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 904 datarootdir=$ac_optarg ;; 905 906 -disable-* | --disable-*) 907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 908 # Reject names that are not valid shell variable names. 909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 910 as_fn_error $? "invalid feature name: $ac_useropt" 911 ac_useropt_orig=$ac_useropt 912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 913 case $ac_user_opts in 914 *" 915 "enable_$ac_useropt" 916 "*) ;; 917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 918 ac_unrecognized_sep=', ';; 919 esac 920 eval enable_$ac_useropt=no ;; 921 922 -docdir | --docdir | --docdi | --doc | --do) 923 ac_prev=docdir ;; 924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 925 docdir=$ac_optarg ;; 926 927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 928 ac_prev=dvidir ;; 929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 930 dvidir=$ac_optarg ;; 931 932 -enable-* | --enable-*) 933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 934 # Reject names that are not valid shell variable names. 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 936 as_fn_error $? "invalid feature name: $ac_useropt" 937 ac_useropt_orig=$ac_useropt 938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 939 case $ac_user_opts in 940 *" 941 "enable_$ac_useropt" 942 "*) ;; 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 944 ac_unrecognized_sep=', ';; 945 esac 946 eval enable_$ac_useropt=\$ac_optarg ;; 947 948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 950 | --exec | --exe | --ex) 951 ac_prev=exec_prefix ;; 952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 954 | --exec=* | --exe=* | --ex=*) 955 exec_prefix=$ac_optarg ;; 956 957 -gas | --gas | --ga | --g) 958 # Obsolete; use --with-gas. 959 with_gas=yes ;; 960 961 -help | --help | --hel | --he | -h) 962 ac_init_help=long ;; 963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 964 ac_init_help=recursive ;; 965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 966 ac_init_help=short ;; 967 968 -host | --host | --hos | --ho) 969 ac_prev=host_alias ;; 970 -host=* | --host=* | --hos=* | --ho=*) 971 host_alias=$ac_optarg ;; 972 973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 974 ac_prev=htmldir ;; 975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 976 | --ht=*) 977 htmldir=$ac_optarg ;; 978 979 -includedir | --includedir | --includedi | --included | --include \ 980 | --includ | --inclu | --incl | --inc) 981 ac_prev=includedir ;; 982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 983 | --includ=* | --inclu=* | --incl=* | --inc=*) 984 includedir=$ac_optarg ;; 985 986 -infodir | --infodir | --infodi | --infod | --info | --inf) 987 ac_prev=infodir ;; 988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 989 infodir=$ac_optarg ;; 990 991 -libdir | --libdir | --libdi | --libd) 992 ac_prev=libdir ;; 993 -libdir=* | --libdir=* | --libdi=* | --libd=*) 994 libdir=$ac_optarg ;; 995 996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 997 | --libexe | --libex | --libe) 998 ac_prev=libexecdir ;; 999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1000 | --libexe=* | --libex=* | --libe=*) 1001 libexecdir=$ac_optarg ;; 1002 1003 -localedir | --localedir | --localedi | --localed | --locale) 1004 ac_prev=localedir ;; 1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1006 localedir=$ac_optarg ;; 1007 1008 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1009 | --localstate | --localstat | --localsta | --localst | --locals) 1010 ac_prev=localstatedir ;; 1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1013 localstatedir=$ac_optarg ;; 1014 1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1016 ac_prev=mandir ;; 1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1018 mandir=$ac_optarg ;; 1019 1020 -nfp | --nfp | --nf) 1021 # Obsolete; use --without-fp. 1022 with_fp=no ;; 1023 1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1025 | --no-cr | --no-c | -n) 1026 no_create=yes ;; 1027 1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1030 no_recursion=yes ;; 1031 1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1034 | --oldin | --oldi | --old | --ol | --o) 1035 ac_prev=oldincludedir ;; 1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1039 oldincludedir=$ac_optarg ;; 1040 1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1042 ac_prev=prefix ;; 1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1044 prefix=$ac_optarg ;; 1045 1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1047 | --program-pre | --program-pr | --program-p) 1048 ac_prev=program_prefix ;; 1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1051 program_prefix=$ac_optarg ;; 1052 1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1054 | --program-suf | --program-su | --program-s) 1055 ac_prev=program_suffix ;; 1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1058 program_suffix=$ac_optarg ;; 1059 1060 -program-transform-name | --program-transform-name \ 1061 | --program-transform-nam | --program-transform-na \ 1062 | --program-transform-n | --program-transform- \ 1063 | --program-transform | --program-transfor \ 1064 | --program-transfo | --program-transf \ 1065 | --program-trans | --program-tran \ 1066 | --progr-tra | --program-tr | --program-t) 1067 ac_prev=program_transform_name ;; 1068 -program-transform-name=* | --program-transform-name=* \ 1069 | --program-transform-nam=* | --program-transform-na=* \ 1070 | --program-transform-n=* | --program-transform-=* \ 1071 | --program-transform=* | --program-transfor=* \ 1072 | --program-transfo=* | --program-transf=* \ 1073 | --program-trans=* | --program-tran=* \ 1074 | --progr-tra=* | --program-tr=* | --program-t=*) 1075 program_transform_name=$ac_optarg ;; 1076 1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1078 ac_prev=pdfdir ;; 1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1080 pdfdir=$ac_optarg ;; 1081 1082 -psdir | --psdir | --psdi | --psd | --ps) 1083 ac_prev=psdir ;; 1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1085 psdir=$ac_optarg ;; 1086 1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1088 | -silent | --silent | --silen | --sile | --sil) 1089 silent=yes ;; 1090 1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1092 ac_prev=sbindir ;; 1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1094 | --sbi=* | --sb=*) 1095 sbindir=$ac_optarg ;; 1096 1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1099 | --sharedst | --shareds | --shared | --share | --shar \ 1100 | --sha | --sh) 1101 ac_prev=sharedstatedir ;; 1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1105 | --sha=* | --sh=*) 1106 sharedstatedir=$ac_optarg ;; 1107 1108 -site | --site | --sit) 1109 ac_prev=site ;; 1110 -site=* | --site=* | --sit=*) 1111 site=$ac_optarg ;; 1112 1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1114 ac_prev=srcdir ;; 1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1116 srcdir=$ac_optarg ;; 1117 1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1119 | --syscon | --sysco | --sysc | --sys | --sy) 1120 ac_prev=sysconfdir ;; 1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1123 sysconfdir=$ac_optarg ;; 1124 1125 -target | --target | --targe | --targ | --tar | --ta | --t) 1126 ac_prev=target_alias ;; 1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1128 target_alias=$ac_optarg ;; 1129 1130 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1131 verbose=yes ;; 1132 1133 -version | --version | --versio | --versi | --vers | -V) 1134 ac_init_version=: ;; 1135 1136 -with-* | --with-*) 1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1138 # Reject names that are not valid shell variable names. 1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1140 as_fn_error $? "invalid package name: $ac_useropt" 1141 ac_useropt_orig=$ac_useropt 1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1143 case $ac_user_opts in 1144 *" 1145 "with_$ac_useropt" 1146 "*) ;; 1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1148 ac_unrecognized_sep=', ';; 1149 esac 1150 eval with_$ac_useropt=\$ac_optarg ;; 1151 1152 -without-* | --without-*) 1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1154 # Reject names that are not valid shell variable names. 1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1156 as_fn_error $? "invalid package name: $ac_useropt" 1157 ac_useropt_orig=$ac_useropt 1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1159 case $ac_user_opts in 1160 *" 1161 "with_$ac_useropt" 1162 "*) ;; 1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1164 ac_unrecognized_sep=', ';; 1165 esac 1166 eval with_$ac_useropt=no ;; 1167 1168 --x) 1169 # Obsolete; use --with-x. 1170 with_x=yes ;; 1171 1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1173 | --x-incl | --x-inc | --x-in | --x-i) 1174 ac_prev=x_includes ;; 1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1177 x_includes=$ac_optarg ;; 1178 1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1181 ac_prev=x_libraries ;; 1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1184 x_libraries=$ac_optarg ;; 1185 1186 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1187 Try \`$0 --help' for more information" 1188 ;; 1189 1190 *=*) 1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1192 # Reject names that are not valid shell variable names. 1193 case $ac_envvar in #( 1194 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1196 esac 1197 eval $ac_envvar=\$ac_optarg 1198 export $ac_envvar ;; 1199 1200 *) 1201 # FIXME: should be removed in autoconf 3.0. 1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1205 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1206 ;; 1207 1208 esac 1209 done 1210 1211 if test -n "$ac_prev"; then 1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1213 as_fn_error $? "missing argument to $ac_option" 1214 fi 1215 1216 if test -n "$ac_unrecognized_opts"; then 1217 case $enable_option_checking in 1218 no) ;; 1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1221 esac 1222 fi 1223 1224 # Check all directory arguments for consistency. 1225 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1226 datadir sysconfdir sharedstatedir localstatedir includedir \ 1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1228 libdir localedir mandir 1229 do 1230 eval ac_val=\$$ac_var 1231 # Remove trailing slashes. 1232 case $ac_val in 1233 */ ) 1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1235 eval $ac_var=\$ac_val;; 1236 esac 1237 # Be sure to have absolute directory names. 1238 case $ac_val in 1239 [\\/$]* | ?:[\\/]* ) continue;; 1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1241 esac 1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1243 done 1244 1245 # There might be people who depend on the old broken behavior: `$host' 1246 # used to hold the argument of --host etc. 1247 # FIXME: To remove some day. 1248 build=$build_alias 1249 host=$host_alias 1250 target=$target_alias 1251 1252 # FIXME: To remove some day. 1253 if test "x$host_alias" != x; then 1254 if test "x$build_alias" = x; then 1255 cross_compiling=maybe 1256 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1257 If a cross compiler is detected then cross compile mode will be used" >&2 1258 elif test "x$build_alias" != "x$host_alias"; then 1259 cross_compiling=yes 1260 fi 1261 fi 1262 1263 ac_tool_prefix= 1264 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1265 1266 test "$silent" = yes && exec 6>/dev/null 1267 1268 1269 ac_pwd=`pwd` && test -n "$ac_pwd" && 1270 ac_ls_di=`ls -di .` && 1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1272 as_fn_error $? "working directory cannot be determined" 1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1274 as_fn_error $? "pwd does not report name of working directory" 1275 1276 1277 # Find the source files, if location was not specified. 1278 if test -z "$srcdir"; then 1279 ac_srcdir_defaulted=yes 1280 # Try the directory containing this script, then the parent directory. 1281 ac_confdir=`$as_dirname -- "$as_myself" || 1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1283 X"$as_myself" : 'X\(//\)[^/]' \| \ 1284 X"$as_myself" : 'X\(//\)$' \| \ 1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1286 $as_echo X"$as_myself" | 1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1288 s//\1/ 1289 q 1290 } 1291 /^X\(\/\/\)[^/].*/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\/\)$/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\).*/{ 1300 s//\1/ 1301 q 1302 } 1303 s/.*/./; q'` 1304 srcdir=$ac_confdir 1305 if test ! -r "$srcdir/$ac_unique_file"; then 1306 srcdir=.. 1307 fi 1308 else 1309 ac_srcdir_defaulted=no 1310 fi 1311 if test ! -r "$srcdir/$ac_unique_file"; then 1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1314 fi 1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1316 ac_abs_confdir=`( 1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1318 pwd)` 1319 # When building in place, set srcdir=. 1320 if test "$ac_abs_confdir" = "$ac_pwd"; then 1321 srcdir=. 1322 fi 1323 # Remove unnecessary trailing slashes from srcdir. 1324 # Double slashes in file names in object file debugging info 1325 # mess up M-x gdb in Emacs. 1326 case $srcdir in 1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1328 esac 1329 for ac_var in $ac_precious_vars; do 1330 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1331 eval ac_env_${ac_var}_value=\$${ac_var} 1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1333 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1334 done 1335 1336 # 1337 # Report the --help message. 1338 # 1339 if test "$ac_init_help" = "long"; then 1340 # Omit some internal or obsolete options to make the list less imposing. 1341 # This message is too long to be a string in the A/UX 3.1 sh. 1342 cat <<_ACEOF 1343 \`configure' configures xf86-video-tseng 1.2.5 to adapt to many kinds of systems. 1344 1345 Usage: $0 [OPTION]... [VAR=VALUE]... 1346 1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1348 VAR=VALUE. See below for descriptions of some of the useful variables. 1349 1350 Defaults for the options are specified in brackets. 1351 1352 Configuration: 1353 -h, --help display this help and exit 1354 --help=short display options specific to this package 1355 --help=recursive display the short help of all the included packages 1356 -V, --version display version information and exit 1357 -q, --quiet, --silent do not print \`checking ...' messages 1358 --cache-file=FILE cache test results in FILE [disabled] 1359 -C, --config-cache alias for \`--cache-file=config.cache' 1360 -n, --no-create do not create output files 1361 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1362 1363 Installation directories: 1364 --prefix=PREFIX install architecture-independent files in PREFIX 1365 [$ac_default_prefix] 1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1367 [PREFIX] 1368 1369 By default, \`make install' will install all the files in 1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1372 for instance \`--prefix=\$HOME'. 1373 1374 For better control, use the options below. 1375 1376 Fine tuning of the installation directories: 1377 --bindir=DIR user executables [EPREFIX/bin] 1378 --sbindir=DIR system admin executables [EPREFIX/sbin] 1379 --libexecdir=DIR program executables [EPREFIX/libexec] 1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1383 --libdir=DIR object code libraries [EPREFIX/lib] 1384 --includedir=DIR C header files [PREFIX/include] 1385 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1388 --infodir=DIR info documentation [DATAROOTDIR/info] 1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1390 --mandir=DIR man documentation [DATAROOTDIR/man] 1391 --docdir=DIR documentation root 1392 [DATAROOTDIR/doc/xf86-video-tseng] 1393 --htmldir=DIR html documentation [DOCDIR] 1394 --dvidir=DIR dvi documentation [DOCDIR] 1395 --pdfdir=DIR pdf documentation [DOCDIR] 1396 --psdir=DIR ps documentation [DOCDIR] 1397 _ACEOF 1398 1399 cat <<\_ACEOF 1400 1401 Program names: 1402 --program-prefix=PREFIX prepend PREFIX to installed program names 1403 --program-suffix=SUFFIX append SUFFIX to installed program names 1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1405 1406 System types: 1407 --build=BUILD configure for building on BUILD [guessed] 1408 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1409 _ACEOF 1410 fi 1411 1412 if test -n "$ac_init_help"; then 1413 case $ac_init_help in 1414 short | recursive ) echo "Configuration of xf86-video-tseng 1.2.5:";; 1415 esac 1416 cat <<\_ACEOF 1417 1418 Optional Features: 1419 --disable-option-checking ignore unrecognized --enable/--with options 1420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1422 --enable-maintainer-mode enable make rules and dependencies not useful 1423 (and sometimes confusing) to the casual installer 1424 --disable-dependency-tracking speeds up one-time build 1425 --enable-dependency-tracking do not reject slow dependency extractors 1426 --disable-selective-werror 1427 Turn off selective compiler errors. (default: 1428 enabled) 1429 --enable-strict-compilation 1430 Enable all warnings from compiler and make them 1431 errors (default: disabled) 1432 --enable-silent-rules less verbose build output (undo: `make V=1') 1433 --disable-silent-rules verbose build output (undo: `make V=0') 1434 --enable-static[=PKGS] build static libraries [default=no] 1435 --enable-shared[=PKGS] build shared libraries [default=yes] 1436 --enable-fast-install[=PKGS] 1437 optimize for fast installation [default=yes] 1438 --disable-libtool-lock avoid locking (might break parallel builds) 1439 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1440 [default=auto] 1441 1442 Optional Packages: 1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1445 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1446 both] 1447 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1448 --with-sysroot=DIR Search for dependent libraries within DIR 1449 (or the compiler's sysroot if not specified). 1450 --with-xorg-module-dir=DIR 1451 Default xorg module directory 1452 [[default=$libdir/xorg/modules]] 1453 1454 Some influential environment variables: 1455 CC C compiler command 1456 CFLAGS C compiler flags 1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1458 nonstandard directory <lib dir> 1459 LIBS libraries to pass to the linker, e.g. -l<library> 1460 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1461 you have headers in a nonstandard directory <include dir> 1462 CPP C preprocessor 1463 PKG_CONFIG path to pkg-config utility 1464 PKG_CONFIG_PATH 1465 directories to add to pkg-config's search path 1466 PKG_CONFIG_LIBDIR 1467 path overriding pkg-config's built-in search path 1468 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1469 XORG_LIBS linker flags for XORG, overriding pkg-config 1470 PCIACCESS_CFLAGS 1471 C compiler flags for PCIACCESS, overriding pkg-config 1472 PCIACCESS_LIBS 1473 linker flags for PCIACCESS, overriding pkg-config 1474 1475 Use these variables to override the choices made by `configure' or to help 1476 it to find libraries and programs with nonstandard names/locations. 1477 1478 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1479 _ACEOF 1480 ac_status=$? 1481 fi 1482 1483 if test "$ac_init_help" = "recursive"; then 1484 # If there are subdirs, report their specific --help. 1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1486 test -d "$ac_dir" || 1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1488 continue 1489 ac_builddir=. 1490 1491 case "$ac_dir" in 1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1493 *) 1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1495 # A ".." for each directory in $ac_dir_suffix. 1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1497 case $ac_top_builddir_sub in 1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1500 esac ;; 1501 esac 1502 ac_abs_top_builddir=$ac_pwd 1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1504 # for backward compatibility: 1505 ac_top_builddir=$ac_top_build_prefix 1506 1507 case $srcdir in 1508 .) # We are building in place. 1509 ac_srcdir=. 1510 ac_top_srcdir=$ac_top_builddir_sub 1511 ac_abs_top_srcdir=$ac_pwd ;; 1512 [\\/]* | ?:[\\/]* ) # Absolute name. 1513 ac_srcdir=$srcdir$ac_dir_suffix; 1514 ac_top_srcdir=$srcdir 1515 ac_abs_top_srcdir=$srcdir ;; 1516 *) # Relative name. 1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1518 ac_top_srcdir=$ac_top_build_prefix$srcdir 1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1520 esac 1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1522 1523 cd "$ac_dir" || { ac_status=$?; continue; } 1524 # Check for guested configure. 1525 if test -f "$ac_srcdir/configure.gnu"; then 1526 echo && 1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1528 elif test -f "$ac_srcdir/configure"; then 1529 echo && 1530 $SHELL "$ac_srcdir/configure" --help=recursive 1531 else 1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1533 fi || ac_status=$? 1534 cd "$ac_pwd" || { ac_status=$?; break; } 1535 done 1536 fi 1537 1538 test -n "$ac_init_help" && exit $ac_status 1539 if $ac_init_version; then 1540 cat <<\_ACEOF 1541 xf86-video-tseng configure 1.2.5 1542 generated by GNU Autoconf 2.68 1543 1544 Copyright (C) 2010 Free Software Foundation, Inc. 1545 This configure script is free software; the Free Software Foundation 1546 gives unlimited permission to copy, distribute and modify it. 1547 _ACEOF 1548 exit 1549 fi 1550 1551 ## ------------------------ ## 1552 ## Autoconf initialization. ## 1553 ## ------------------------ ## 1554 1555 # ac_fn_c_try_compile LINENO 1556 # -------------------------- 1557 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1558 ac_fn_c_try_compile () 1559 { 1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1561 rm -f conftest.$ac_objext 1562 if { { ac_try="$ac_compile" 1563 case "(($ac_try" in 1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1565 *) ac_try_echo=$ac_try;; 1566 esac 1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1568 $as_echo "$ac_try_echo"; } >&5 1569 (eval "$ac_compile") 2>conftest.err 1570 ac_status=$? 1571 if test -s conftest.err; then 1572 grep -v '^ *+' conftest.err >conftest.er1 1573 cat conftest.er1 >&5 1574 mv -f conftest.er1 conftest.err 1575 fi 1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1577 test $ac_status = 0; } && { 1578 test -z "$ac_c_werror_flag" || 1579 test ! -s conftest.err 1580 } && test -s conftest.$ac_objext; then : 1581 ac_retval=0 1582 else 1583 $as_echo "$as_me: failed program was:" >&5 1584 sed 's/^/| /' conftest.$ac_ext >&5 1585 1586 ac_retval=1 1587 fi 1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1589 as_fn_set_status $ac_retval 1590 1591 } # ac_fn_c_try_compile 1592 1593 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1594 # --------------------------------------------- 1595 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1596 # accordingly. 1597 ac_fn_c_check_decl () 1598 { 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1600 as_decl_name=`echo $2|sed 's/ *(.*//'` 1601 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1603 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1604 if eval \${$3+:} false; then : 1605 $as_echo_n "(cached) " >&6 1606 else 1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1608 /* end confdefs.h. */ 1609 $4 1610 int 1611 main () 1612 { 1613 #ifndef $as_decl_name 1614 #ifdef __cplusplus 1615 (void) $as_decl_use; 1616 #else 1617 (void) $as_decl_name; 1618 #endif 1619 #endif 1620 1621 ; 1622 return 0; 1623 } 1624 _ACEOF 1625 if ac_fn_c_try_compile "$LINENO"; then : 1626 eval "$3=yes" 1627 else 1628 eval "$3=no" 1629 fi 1630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1631 fi 1632 eval ac_res=\$$3 1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1634 $as_echo "$ac_res" >&6; } 1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1636 1637 } # ac_fn_c_check_decl 1638 1639 # ac_fn_c_try_cpp LINENO 1640 # ---------------------- 1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1642 ac_fn_c_try_cpp () 1643 { 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 if { { ac_try="$ac_cpp conftest.$ac_ext" 1646 case "(($ac_try" in 1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1648 *) ac_try_echo=$ac_try;; 1649 esac 1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1651 $as_echo "$ac_try_echo"; } >&5 1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1653 ac_status=$? 1654 if test -s conftest.err; then 1655 grep -v '^ *+' conftest.err >conftest.er1 1656 cat conftest.er1 >&5 1657 mv -f conftest.er1 conftest.err 1658 fi 1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1660 test $ac_status = 0; } > conftest.i && { 1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1662 test ! -s conftest.err 1663 }; then : 1664 ac_retval=0 1665 else 1666 $as_echo "$as_me: failed program was:" >&5 1667 sed 's/^/| /' conftest.$ac_ext >&5 1668 1669 ac_retval=1 1670 fi 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 as_fn_set_status $ac_retval 1673 1674 } # ac_fn_c_try_cpp 1675 1676 # ac_fn_c_try_run LINENO 1677 # ---------------------- 1678 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1679 # that executables *can* be run. 1680 ac_fn_c_try_run () 1681 { 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1683 if { { ac_try="$ac_link" 1684 case "(($ac_try" in 1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1686 *) ac_try_echo=$ac_try;; 1687 esac 1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1689 $as_echo "$ac_try_echo"; } >&5 1690 (eval "$ac_link") 2>&5 1691 ac_status=$? 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1694 { { case "(($ac_try" in 1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1696 *) ac_try_echo=$ac_try;; 1697 esac 1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1699 $as_echo "$ac_try_echo"; } >&5 1700 (eval "$ac_try") 2>&5 1701 ac_status=$? 1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1703 test $ac_status = 0; }; }; then : 1704 ac_retval=0 1705 else 1706 $as_echo "$as_me: program exited with status $ac_status" >&5 1707 $as_echo "$as_me: failed program was:" >&5 1708 sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=$ac_status 1711 fi 1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 as_fn_set_status $ac_retval 1715 1716 } # ac_fn_c_try_run 1717 1718 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1719 # ------------------------------------------------------- 1720 # Tests whether HEADER exists and can be compiled using the include files in 1721 # INCLUDES, setting the cache variable VAR accordingly. 1722 ac_fn_c_check_header_compile () 1723 { 1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1726 $as_echo_n "checking for $2... " >&6; } 1727 if eval \${$3+:} false; then : 1728 $as_echo_n "(cached) " >&6 1729 else 1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1731 /* end confdefs.h. */ 1732 $4 1733 #include <$2> 1734 _ACEOF 1735 if ac_fn_c_try_compile "$LINENO"; then : 1736 eval "$3=yes" 1737 else 1738 eval "$3=no" 1739 fi 1740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1741 fi 1742 eval ac_res=\$$3 1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1744 $as_echo "$ac_res" >&6; } 1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1746 1747 } # ac_fn_c_check_header_compile 1748 1749 # ac_fn_c_try_link LINENO 1750 # ----------------------- 1751 # Try to link conftest.$ac_ext, and return whether this succeeded. 1752 ac_fn_c_try_link () 1753 { 1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1755 rm -f conftest.$ac_objext conftest$ac_exeext 1756 if { { ac_try="$ac_link" 1757 case "(($ac_try" in 1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1759 *) ac_try_echo=$ac_try;; 1760 esac 1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1762 $as_echo "$ac_try_echo"; } >&5 1763 (eval "$ac_link") 2>conftest.err 1764 ac_status=$? 1765 if test -s conftest.err; then 1766 grep -v '^ *+' conftest.err >conftest.er1 1767 cat conftest.er1 >&5 1768 mv -f conftest.er1 conftest.err 1769 fi 1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1771 test $ac_status = 0; } && { 1772 test -z "$ac_c_werror_flag" || 1773 test ! -s conftest.err 1774 } && test -s conftest$ac_exeext && { 1775 test "$cross_compiling" = yes || 1776 $as_test_x conftest$ac_exeext 1777 }; then : 1778 ac_retval=0 1779 else 1780 $as_echo "$as_me: failed program was:" >&5 1781 sed 's/^/| /' conftest.$ac_ext >&5 1782 1783 ac_retval=1 1784 fi 1785 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1786 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1787 # interfere with the next link command; also delete a directory that is 1788 # left behind by Apple's compiler. We do this before executing the actions. 1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1791 as_fn_set_status $ac_retval 1792 1793 } # ac_fn_c_try_link 1794 1795 # ac_fn_c_check_func LINENO FUNC VAR 1796 # ---------------------------------- 1797 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1798 ac_fn_c_check_func () 1799 { 1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1802 $as_echo_n "checking for $2... " >&6; } 1803 if eval \${$3+:} false; then : 1804 $as_echo_n "(cached) " >&6 1805 else 1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1807 /* end confdefs.h. */ 1808 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1809 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1810 #define $2 innocuous_$2 1811 1812 /* System header to define __stub macros and hopefully few prototypes, 1813 which can conflict with char $2 (); below. 1814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1815 <limits.h> exists even on freestanding compilers. */ 1816 1817 #ifdef __STDC__ 1818 # include <limits.h> 1819 #else 1820 # include <assert.h> 1821 #endif 1822 1823 #undef $2 1824 1825 /* Override any GCC internal prototype to avoid an error. 1826 Use char because int might match the return type of a GCC 1827 builtin and then its argument prototype would still apply. */ 1828 #ifdef __cplusplus 1829 extern "C" 1830 #endif 1831 char $2 (); 1832 /* The GNU C library defines this for functions which it implements 1833 to always fail with ENOSYS. Some functions are actually named 1834 something starting with __ and the normal name is an alias. */ 1835 #if defined __stub_$2 || defined __stub___$2 1836 choke me 1837 #endif 1838 1839 int 1840 main () 1841 { 1842 return $2 (); 1843 ; 1844 return 0; 1845 } 1846 _ACEOF 1847 if ac_fn_c_try_link "$LINENO"; then : 1848 eval "$3=yes" 1849 else 1850 eval "$3=no" 1851 fi 1852 rm -f core conftest.err conftest.$ac_objext \ 1853 conftest$ac_exeext conftest.$ac_ext 1854 fi 1855 eval ac_res=\$$3 1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1857 $as_echo "$ac_res" >&6; } 1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1859 1860 } # ac_fn_c_check_func 1861 1862 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1863 # ------------------------------------------------------- 1864 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1865 # the include files in INCLUDES and setting the cache variable VAR 1866 # accordingly. 1867 ac_fn_c_check_header_mongrel () 1868 { 1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1870 if eval \${$3+:} false; then : 1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1872 $as_echo_n "checking for $2... " >&6; } 1873 if eval \${$3+:} false; then : 1874 $as_echo_n "(cached) " >&6 1875 fi 1876 eval ac_res=\$$3 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1878 $as_echo "$ac_res" >&6; } 1879 else 1880 # Is the header compilable? 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1882 $as_echo_n "checking $2 usability... " >&6; } 1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1884 /* end confdefs.h. */ 1885 $4 1886 #include <$2> 1887 _ACEOF 1888 if ac_fn_c_try_compile "$LINENO"; then : 1889 ac_header_compiler=yes 1890 else 1891 ac_header_compiler=no 1892 fi 1893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1895 $as_echo "$ac_header_compiler" >&6; } 1896 1897 # Is the header present? 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1899 $as_echo_n "checking $2 presence... " >&6; } 1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1901 /* end confdefs.h. */ 1902 #include <$2> 1903 _ACEOF 1904 if ac_fn_c_try_cpp "$LINENO"; then : 1905 ac_header_preproc=yes 1906 else 1907 ac_header_preproc=no 1908 fi 1909 rm -f conftest.err conftest.i conftest.$ac_ext 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1911 $as_echo "$ac_header_preproc" >&6; } 1912 1913 # So? What about this header? 1914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1915 yes:no: ) 1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1917 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1919 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1920 ;; 1921 no:yes:* ) 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1923 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1925 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1927 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1929 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1931 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1932 ( $as_echo "## ---------------------------------------------------------------------- ## 1933 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1934 ## ---------------------------------------------------------------------- ##" 1935 ) | sed "s/^/$as_me: WARNING: /" >&2 1936 ;; 1937 esac 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1939 $as_echo_n "checking for $2... " >&6; } 1940 if eval \${$3+:} false; then : 1941 $as_echo_n "(cached) " >&6 1942 else 1943 eval "$3=\$ac_header_compiler" 1944 fi 1945 eval ac_res=\$$3 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1947 $as_echo "$ac_res" >&6; } 1948 fi 1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1950 1951 } # ac_fn_c_check_header_mongrel 1952 cat >config.log <<_ACEOF 1953 This file contains any messages produced by compilers while 1954 running configure, to aid debugging if configure makes a mistake. 1955 1956 It was created by xf86-video-tseng $as_me 1.2.5, which was 1957 generated by GNU Autoconf 2.68. Invocation command line was 1958 1959 $ $0 $@ 1960 1961 _ACEOF 1962 exec 5>>config.log 1963 { 1964 cat <<_ASUNAME 1965 ## --------- ## 1966 ## Platform. ## 1967 ## --------- ## 1968 1969 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1970 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1971 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1972 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1973 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1974 1975 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1976 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1977 1978 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1979 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1980 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1981 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1982 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1983 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1984 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1985 1986 _ASUNAME 1987 1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1989 for as_dir in $PATH 1990 do 1991 IFS=$as_save_IFS 1992 test -z "$as_dir" && as_dir=. 1993 $as_echo "PATH: $as_dir" 1994 done 1995 IFS=$as_save_IFS 1996 1997 } >&5 1998 1999 cat >&5 <<_ACEOF 2000 2001 2002 ## ----------- ## 2003 ## Core tests. ## 2004 ## ----------- ## 2005 2006 _ACEOF 2007 2008 2009 # Keep a trace of the command line. 2010 # Strip out --no-create and --no-recursion so they do not pile up. 2011 # Strip out --silent because we don't want to record it for future runs. 2012 # Also quote any args containing shell meta-characters. 2013 # Make two passes to allow for proper duplicate-argument suppression. 2014 ac_configure_args= 2015 ac_configure_args0= 2016 ac_configure_args1= 2017 ac_must_keep_next=false 2018 for ac_pass in 1 2 2019 do 2020 for ac_arg 2021 do 2022 case $ac_arg in 2023 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2025 | -silent | --silent | --silen | --sile | --sil) 2026 continue ;; 2027 *\'*) 2028 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2029 esac 2030 case $ac_pass in 2031 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2032 2) 2033 as_fn_append ac_configure_args1 " '$ac_arg'" 2034 if test $ac_must_keep_next = true; then 2035 ac_must_keep_next=false # Got value, back to normal. 2036 else 2037 case $ac_arg in 2038 *=* | --config-cache | -C | -disable-* | --disable-* \ 2039 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2040 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2041 | -with-* | --with-* | -without-* | --without-* | --x) 2042 case "$ac_configure_args0 " in 2043 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2044 esac 2045 ;; 2046 -* ) ac_must_keep_next=true ;; 2047 esac 2048 fi 2049 as_fn_append ac_configure_args " '$ac_arg'" 2050 ;; 2051 esac 2052 done 2053 done 2054 { ac_configure_args0=; unset ac_configure_args0;} 2055 { ac_configure_args1=; unset ac_configure_args1;} 2056 2057 # When interrupted or exit'd, cleanup temporary files, and complete 2058 # config.log. We remove comments because anyway the quotes in there 2059 # would cause problems or look ugly. 2060 # WARNING: Use '\'' to represent an apostrophe within the trap. 2061 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2062 trap 'exit_status=$? 2063 # Save into config.log some information that might help in debugging. 2064 { 2065 echo 2066 2067 $as_echo "## ---------------- ## 2068 ## Cache variables. ## 2069 ## ---------------- ##" 2070 echo 2071 # The following way of writing the cache mishandles newlines in values, 2072 ( 2073 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2074 eval ac_val=\$$ac_var 2075 case $ac_val in #( 2076 *${as_nl}*) 2077 case $ac_var in #( 2078 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2079 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2080 esac 2081 case $ac_var in #( 2082 _ | IFS | as_nl) ;; #( 2083 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2084 *) { eval $ac_var=; unset $ac_var;} ;; 2085 esac ;; 2086 esac 2087 done 2088 (set) 2>&1 | 2089 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2090 *${as_nl}ac_space=\ *) 2091 sed -n \ 2092 "s/'\''/'\''\\\\'\'''\''/g; 2093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2094 ;; #( 2095 *) 2096 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2097 ;; 2098 esac | 2099 sort 2100 ) 2101 echo 2102 2103 $as_echo "## ----------------- ## 2104 ## Output variables. ## 2105 ## ----------------- ##" 2106 echo 2107 for ac_var in $ac_subst_vars 2108 do 2109 eval ac_val=\$$ac_var 2110 case $ac_val in 2111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2112 esac 2113 $as_echo "$ac_var='\''$ac_val'\''" 2114 done | sort 2115 echo 2116 2117 if test -n "$ac_subst_files"; then 2118 $as_echo "## ------------------- ## 2119 ## File substitutions. ## 2120 ## ------------------- ##" 2121 echo 2122 for ac_var in $ac_subst_files 2123 do 2124 eval ac_val=\$$ac_var 2125 case $ac_val in 2126 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2127 esac 2128 $as_echo "$ac_var='\''$ac_val'\''" 2129 done | sort 2130 echo 2131 fi 2132 2133 if test -s confdefs.h; then 2134 $as_echo "## ----------- ## 2135 ## confdefs.h. ## 2136 ## ----------- ##" 2137 echo 2138 cat confdefs.h 2139 echo 2140 fi 2141 test "$ac_signal" != 0 && 2142 $as_echo "$as_me: caught signal $ac_signal" 2143 $as_echo "$as_me: exit $exit_status" 2144 } >&5 2145 rm -f core *.core core.conftest.* && 2146 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2147 exit $exit_status 2148 ' 0 2149 for ac_signal in 1 2 13 15; do 2150 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2151 done 2152 ac_signal=0 2153 2154 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2155 rm -f -r conftest* confdefs.h 2156 2157 $as_echo "/* confdefs.h */" > confdefs.h 2158 2159 # Predefined preprocessor variables. 2160 2161 cat >>confdefs.h <<_ACEOF 2162 #define PACKAGE_NAME "$PACKAGE_NAME" 2163 _ACEOF 2164 2165 cat >>confdefs.h <<_ACEOF 2166 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2167 _ACEOF 2168 2169 cat >>confdefs.h <<_ACEOF 2170 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2171 _ACEOF 2172 2173 cat >>confdefs.h <<_ACEOF 2174 #define PACKAGE_STRING "$PACKAGE_STRING" 2175 _ACEOF 2176 2177 cat >>confdefs.h <<_ACEOF 2178 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2179 _ACEOF 2180 2181 cat >>confdefs.h <<_ACEOF 2182 #define PACKAGE_URL "$PACKAGE_URL" 2183 _ACEOF 2184 2185 2186 # Let the site file select an alternate cache file if it wants to. 2187 # Prefer an explicitly selected file to automatically selected ones. 2188 ac_site_file1=NONE 2189 ac_site_file2=NONE 2190 if test -n "$CONFIG_SITE"; then 2191 # We do not want a PATH search for config.site. 2192 case $CONFIG_SITE in #(( 2193 -*) ac_site_file1=./$CONFIG_SITE;; 2194 */*) ac_site_file1=$CONFIG_SITE;; 2195 *) ac_site_file1=./$CONFIG_SITE;; 2196 esac 2197 elif test "x$prefix" != xNONE; then 2198 ac_site_file1=$prefix/share/config.site 2199 ac_site_file2=$prefix/etc/config.site 2200 else 2201 ac_site_file1=$ac_default_prefix/share/config.site 2202 ac_site_file2=$ac_default_prefix/etc/config.site 2203 fi 2204 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2205 do 2206 test "x$ac_site_file" = xNONE && continue 2207 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2209 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2210 sed 's/^/| /' "$ac_site_file" >&5 2211 . "$ac_site_file" \ 2212 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2214 as_fn_error $? "failed to load site script $ac_site_file 2215 See \`config.log' for more details" "$LINENO" 5; } 2216 fi 2217 done 2218 2219 if test -r "$cache_file"; then 2220 # Some versions of bash will fail to source /dev/null (special files 2221 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2222 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2224 $as_echo "$as_me: loading cache $cache_file" >&6;} 2225 case $cache_file in 2226 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2227 *) . "./$cache_file";; 2228 esac 2229 fi 2230 else 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2232 $as_echo "$as_me: creating cache $cache_file" >&6;} 2233 >$cache_file 2234 fi 2235 2236 # Check that the precious variables saved in the cache have kept the same 2237 # value. 2238 ac_cache_corrupted=false 2239 for ac_var in $ac_precious_vars; do 2240 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2241 eval ac_new_set=\$ac_env_${ac_var}_set 2242 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2243 eval ac_new_val=\$ac_env_${ac_var}_value 2244 case $ac_old_set,$ac_new_set in 2245 set,) 2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2247 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2248 ac_cache_corrupted=: ;; 2249 ,set) 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2251 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2252 ac_cache_corrupted=: ;; 2253 ,);; 2254 *) 2255 if test "x$ac_old_val" != "x$ac_new_val"; then 2256 # differences in whitespace do not lead to failure. 2257 ac_old_val_w=`echo x $ac_old_val` 2258 ac_new_val_w=`echo x $ac_new_val` 2259 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2261 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2262 ac_cache_corrupted=: 2263 else 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2265 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2266 eval $ac_var=\$ac_old_val 2267 fi 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2269 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2271 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2272 fi;; 2273 esac 2274 # Pass precious variables to config.status. 2275 if test "$ac_new_set" = set; then 2276 case $ac_new_val in 2277 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2278 *) ac_arg=$ac_var=$ac_new_val ;; 2279 esac 2280 case " $ac_configure_args " in 2281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2282 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2283 esac 2284 fi 2285 done 2286 if $ac_cache_corrupted; then 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2290 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2291 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2292 fi 2293 ## -------------------- ## 2294 ## Main body of script. ## 2295 ## -------------------- ## 2296 2297 ac_ext=c 2298 ac_cpp='$CPP $CPPFLAGS' 2299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2301 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2302 2303 2304 2305 ac_config_headers="$ac_config_headers config.h" 2306 2307 ac_aux_dir= 2308 for ac_dir in . "$srcdir"/.; do 2309 if test -f "$ac_dir/install-sh"; then 2310 ac_aux_dir=$ac_dir 2311 ac_install_sh="$ac_aux_dir/install-sh -c" 2312 break 2313 elif test -f "$ac_dir/install.sh"; then 2314 ac_aux_dir=$ac_dir 2315 ac_install_sh="$ac_aux_dir/install.sh -c" 2316 break 2317 elif test -f "$ac_dir/shtool"; then 2318 ac_aux_dir=$ac_dir 2319 ac_install_sh="$ac_aux_dir/shtool install -c" 2320 break 2321 fi 2322 done 2323 if test -z "$ac_aux_dir"; then 2324 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2325 fi 2326 2327 # These three variables are undocumented and unsupported, 2328 # and are intended to be withdrawn in a future Autoconf release. 2329 # They can cause serious problems if a builder's source tree is in a directory 2330 # whose full name contains unusual characters. 2331 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2332 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2333 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2334 2335 2336 2337 # Initialize Automake 2338 am__api_version='1.11' 2339 2340 # Find a good install program. We prefer a C program (faster), 2341 # so one script is as good as another. But avoid the broken or 2342 # incompatible versions: 2343 # SysV /etc/install, /usr/sbin/install 2344 # SunOS /usr/etc/install 2345 # IRIX /sbin/install 2346 # AIX /bin/install 2347 # AmigaOS /C/install, which installs bootblocks on floppy discs 2348 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2349 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2350 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2351 # OS/2's system install, which has a completely different semantic 2352 # ./install, which can be erroneously created by make from ./install.sh. 2353 # Reject install programs that cannot install multiple files. 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2355 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2356 if test -z "$INSTALL"; then 2357 if ${ac_cv_path_install+:} false; then : 2358 $as_echo_n "(cached) " >&6 2359 else 2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2361 for as_dir in $PATH 2362 do 2363 IFS=$as_save_IFS 2364 test -z "$as_dir" && as_dir=. 2365 # Account for people who put trailing slashes in PATH elements. 2366 case $as_dir/ in #(( 2367 ./ | .// | /[cC]/* | \ 2368 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2369 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2370 /usr/ucb/* ) ;; 2371 *) 2372 # OSF1 and SCO ODT 3.0 have their own names for install. 2373 # Don't use installbsd from OSF since it installs stuff as root 2374 # by default. 2375 for ac_prog in ginstall scoinst install; do 2376 for ac_exec_ext in '' $ac_executable_extensions; do 2377 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2378 if test $ac_prog = install && 2379 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2380 # AIX install. It has an incompatible calling convention. 2381 : 2382 elif test $ac_prog = install && 2383 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2384 # program-specific install script used by HP pwplus--don't use. 2385 : 2386 else 2387 rm -rf conftest.one conftest.two conftest.dir 2388 echo one > conftest.one 2389 echo two > conftest.two 2390 mkdir conftest.dir 2391 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2392 test -s conftest.one && test -s conftest.two && 2393 test -s conftest.dir/conftest.one && 2394 test -s conftest.dir/conftest.two 2395 then 2396 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2397 break 3 2398 fi 2399 fi 2400 fi 2401 done 2402 done 2403 ;; 2404 esac 2405 2406 done 2407 IFS=$as_save_IFS 2408 2409 rm -rf conftest.one conftest.two conftest.dir 2410 2411 fi 2412 if test "${ac_cv_path_install+set}" = set; then 2413 INSTALL=$ac_cv_path_install 2414 else 2415 # As a last resort, use the slow shell script. Don't cache a 2416 # value for INSTALL within a source directory, because that will 2417 # break other packages using the cache if that directory is 2418 # removed, or if the value is a relative name. 2419 INSTALL=$ac_install_sh 2420 fi 2421 fi 2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2423 $as_echo "$INSTALL" >&6; } 2424 2425 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2426 # It thinks the first close brace ends the variable substitution. 2427 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2428 2429 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2430 2431 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2432 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2434 $as_echo_n "checking whether build environment is sane... " >&6; } 2435 # Just in case 2436 sleep 1 2437 echo timestamp > conftest.file 2438 # Reject unsafe characters in $srcdir or the absolute working directory 2439 # name. Accept space and tab only in the latter. 2440 am_lf=' 2441 ' 2442 case `pwd` in 2443 *[\\\"\#\$\&\'\`$am_lf]*) 2444 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2445 esac 2446 case $srcdir in 2447 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2448 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2449 esac 2450 2451 # Do `set' in a subshell so we don't clobber the current shell's 2452 # arguments. Must try -L first in case configure is actually a 2453 # symlink; some systems play weird games with the mod time of symlinks 2454 # (eg FreeBSD returns the mod time of the symlink's containing 2455 # directory). 2456 if ( 2457 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2458 if test "$*" = "X"; then 2459 # -L didn't work. 2460 set X `ls -t "$srcdir/configure" conftest.file` 2461 fi 2462 rm -f conftest.file 2463 if test "$*" != "X $srcdir/configure conftest.file" \ 2464 && test "$*" != "X conftest.file $srcdir/configure"; then 2465 2466 # If neither matched, then we have a broken ls. This can happen 2467 # if, for instance, CONFIG_SHELL is bash and it inherits a 2468 # broken ls alias from the environment. This has actually 2469 # happened. Such a system could not be considered "sane". 2470 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2471 alias in your environment" "$LINENO" 5 2472 fi 2473 2474 test "$2" = conftest.file 2475 ) 2476 then 2477 # Ok. 2478 : 2479 else 2480 as_fn_error $? "newly created file is older than distributed files! 2481 Check your system clock" "$LINENO" 5 2482 fi 2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2484 $as_echo "yes" >&6; } 2485 test "$program_prefix" != NONE && 2486 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2487 # Use a double $ so make ignores it. 2488 test "$program_suffix" != NONE && 2489 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2490 # Double any \ or $. 2491 # By default was `s,x,x', remove it if useless. 2492 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2493 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2494 2495 # expand $ac_aux_dir to an absolute path 2496 am_aux_dir=`cd $ac_aux_dir && pwd` 2497 2498 if test x"${MISSING+set}" != xset; then 2499 case $am_aux_dir in 2500 *\ * | *\ *) 2501 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2502 *) 2503 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2504 esac 2505 fi 2506 # Use eval to expand $SHELL 2507 if eval "$MISSING --run true"; then 2508 am_missing_run="$MISSING --run " 2509 else 2510 am_missing_run= 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2512 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2513 fi 2514 2515 if test x"${install_sh}" != xset; then 2516 case $am_aux_dir in 2517 *\ * | *\ *) 2518 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2519 *) 2520 install_sh="\${SHELL} $am_aux_dir/install-sh" 2521 esac 2522 fi 2523 2524 # Installed binaries are usually stripped using `strip' when the user 2525 # run `make install-strip'. However `strip' might not be the right 2526 # tool to use in cross-compilation environments, therefore Automake 2527 # will honor the `STRIP' environment variable to overrule this program. 2528 if test "$cross_compiling" != no; then 2529 if test -n "$ac_tool_prefix"; then 2530 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2531 set dummy ${ac_tool_prefix}strip; ac_word=$2 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2533 $as_echo_n "checking for $ac_word... " >&6; } 2534 if ${ac_cv_prog_STRIP+:} false; then : 2535 $as_echo_n "(cached) " >&6 2536 else 2537 if test -n "$STRIP"; then 2538 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2539 else 2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2541 for as_dir in $PATH 2542 do 2543 IFS=$as_save_IFS 2544 test -z "$as_dir" && as_dir=. 2545 for ac_exec_ext in '' $ac_executable_extensions; do 2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2547 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2549 break 2 2550 fi 2551 done 2552 done 2553 IFS=$as_save_IFS 2554 2555 fi 2556 fi 2557 STRIP=$ac_cv_prog_STRIP 2558 if test -n "$STRIP"; then 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2560 $as_echo "$STRIP" >&6; } 2561 else 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2563 $as_echo "no" >&6; } 2564 fi 2565 2566 2567 fi 2568 if test -z "$ac_cv_prog_STRIP"; then 2569 ac_ct_STRIP=$STRIP 2570 # Extract the first word of "strip", so it can be a program name with args. 2571 set dummy strip; ac_word=$2 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2573 $as_echo_n "checking for $ac_word... " >&6; } 2574 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2575 $as_echo_n "(cached) " >&6 2576 else 2577 if test -n "$ac_ct_STRIP"; then 2578 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2579 else 2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2581 for as_dir in $PATH 2582 do 2583 IFS=$as_save_IFS 2584 test -z "$as_dir" && as_dir=. 2585 for ac_exec_ext in '' $ac_executable_extensions; do 2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2587 ac_cv_prog_ac_ct_STRIP="strip" 2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2589 break 2 2590 fi 2591 done 2592 done 2593 IFS=$as_save_IFS 2594 2595 fi 2596 fi 2597 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2598 if test -n "$ac_ct_STRIP"; then 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2600 $as_echo "$ac_ct_STRIP" >&6; } 2601 else 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2603 $as_echo "no" >&6; } 2604 fi 2605 2606 if test "x$ac_ct_STRIP" = x; then 2607 STRIP=":" 2608 else 2609 case $cross_compiling:$ac_tool_warned in 2610 yes:) 2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2613 ac_tool_warned=yes ;; 2614 esac 2615 STRIP=$ac_ct_STRIP 2616 fi 2617 else 2618 STRIP="$ac_cv_prog_STRIP" 2619 fi 2620 2621 fi 2622 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2623 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2625 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2626 if test -z "$MKDIR_P"; then 2627 if ${ac_cv_path_mkdir+:} false; then : 2628 $as_echo_n "(cached) " >&6 2629 else 2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2631 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2632 do 2633 IFS=$as_save_IFS 2634 test -z "$as_dir" && as_dir=. 2635 for ac_prog in mkdir gmkdir; do 2636 for ac_exec_ext in '' $ac_executable_extensions; do 2637 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2638 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2639 'mkdir (GNU coreutils) '* | \ 2640 'mkdir (coreutils) '* | \ 2641 'mkdir (fileutils) '4.1*) 2642 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2643 break 3;; 2644 esac 2645 done 2646 done 2647 done 2648 IFS=$as_save_IFS 2649 2650 fi 2651 2652 test -d ./--version && rmdir ./--version 2653 if test "${ac_cv_path_mkdir+set}" = set; then 2654 MKDIR_P="$ac_cv_path_mkdir -p" 2655 else 2656 # As a last resort, use the slow shell script. Don't cache a 2657 # value for MKDIR_P within a source directory, because that will 2658 # break other packages using the cache if that directory is 2659 # removed, or if the value is a relative name. 2660 MKDIR_P="$ac_install_sh -d" 2661 fi 2662 fi 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2664 $as_echo "$MKDIR_P" >&6; } 2665 2666 mkdir_p="$MKDIR_P" 2667 case $mkdir_p in 2668 [\\/$]* | ?:[\\/]*) ;; 2669 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2670 esac 2671 2672 for ac_prog in gawk mawk nawk awk 2673 do 2674 # Extract the first word of "$ac_prog", so it can be a program name with args. 2675 set dummy $ac_prog; ac_word=$2 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2677 $as_echo_n "checking for $ac_word... " >&6; } 2678 if ${ac_cv_prog_AWK+:} false; then : 2679 $as_echo_n "(cached) " >&6 2680 else 2681 if test -n "$AWK"; then 2682 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2683 else 2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2685 for as_dir in $PATH 2686 do 2687 IFS=$as_save_IFS 2688 test -z "$as_dir" && as_dir=. 2689 for ac_exec_ext in '' $ac_executable_extensions; do 2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2691 ac_cv_prog_AWK="$ac_prog" 2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2693 break 2 2694 fi 2695 done 2696 done 2697 IFS=$as_save_IFS 2698 2699 fi 2700 fi 2701 AWK=$ac_cv_prog_AWK 2702 if test -n "$AWK"; then 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2704 $as_echo "$AWK" >&6; } 2705 else 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2707 $as_echo "no" >&6; } 2708 fi 2709 2710 2711 test -n "$AWK" && break 2712 done 2713 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2715 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2716 set x ${MAKE-make} 2717 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2718 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2719 $as_echo_n "(cached) " >&6 2720 else 2721 cat >conftest.make <<\_ACEOF 2722 SHELL = /bin/sh 2723 all: 2724 @echo '@@@%%%=$(MAKE)=@@@%%%' 2725 _ACEOF 2726 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2727 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2728 *@@@%%%=?*=@@@%%%*) 2729 eval ac_cv_prog_make_${ac_make}_set=yes;; 2730 *) 2731 eval ac_cv_prog_make_${ac_make}_set=no;; 2732 esac 2733 rm -f conftest.make 2734 fi 2735 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2737 $as_echo "yes" >&6; } 2738 SET_MAKE= 2739 else 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2741 $as_echo "no" >&6; } 2742 SET_MAKE="MAKE=${MAKE-make}" 2743 fi 2744 2745 rm -rf .tst 2>/dev/null 2746 mkdir .tst 2>/dev/null 2747 if test -d .tst; then 2748 am__leading_dot=. 2749 else 2750 am__leading_dot=_ 2751 fi 2752 rmdir .tst 2>/dev/null 2753 2754 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2755 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2756 # is not polluted with repeated "-I." 2757 am__isrc=' -I$(srcdir)' 2758 # test to see if srcdir already configured 2759 if test -f $srcdir/config.status; then 2760 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2761 fi 2762 fi 2763 2764 # test whether we have cygpath 2765 if test -z "$CYGPATH_W"; then 2766 if (cygpath --version) >/dev/null 2>/dev/null; then 2767 CYGPATH_W='cygpath -w' 2768 else 2769 CYGPATH_W=echo 2770 fi 2771 fi 2772 2773 2774 # Define the identity of the package. 2775 PACKAGE='xf86-video-tseng' 2776 VERSION='1.2.5' 2777 2778 2779 cat >>confdefs.h <<_ACEOF 2780 #define PACKAGE "$PACKAGE" 2781 _ACEOF 2782 2783 2784 cat >>confdefs.h <<_ACEOF 2785 #define VERSION "$VERSION" 2786 _ACEOF 2787 2788 # Some tools Automake needs. 2789 2790 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2791 2792 2793 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2794 2795 2796 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2797 2798 2799 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2800 2801 2802 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2803 2804 # We need awk for the "check" target. The system "awk" is bad on 2805 # some platforms. 2806 # Always define AMTAR for backward compatibility. Yes, it's still used 2807 # in the wild :-( We should find a proper way to deprecate it ... 2808 AMTAR='$${TAR-tar}' 2809 2810 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2811 2812 2813 2814 2815 2816 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2818 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2819 # Check whether --enable-maintainer-mode was given. 2820 if test "${enable_maintainer_mode+set}" = set; then : 2821 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2822 else 2823 USE_MAINTAINER_MODE=no 2824 fi 2825 2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2827 $as_echo "$USE_MAINTAINER_MODE" >&6; } 2828 if test $USE_MAINTAINER_MODE = yes; then 2829 MAINTAINER_MODE_TRUE= 2830 MAINTAINER_MODE_FALSE='#' 2831 else 2832 MAINTAINER_MODE_TRUE='#' 2833 MAINTAINER_MODE_FALSE= 2834 fi 2835 2836 MAINT=$MAINTAINER_MODE_TRUE 2837 2838 2839 2840 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 DEPDIR="${am__leading_dot}deps" 2853 2854 ac_config_commands="$ac_config_commands depfiles" 2855 2856 2857 am_make=${MAKE-make} 2858 cat > confinc << 'END' 2859 am__doit: 2860 @echo this is the am__doit target 2861 .PHONY: am__doit 2862 END 2863 # If we don't find an include directive, just comment out the code. 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2865 $as_echo_n "checking for style of include used by $am_make... " >&6; } 2866 am__include="#" 2867 am__quote= 2868 _am_result=none 2869 # First try GNU make style include. 2870 echo "include confinc" > confmf 2871 # Ignore all kinds of additional output from `make'. 2872 case `$am_make -s -f confmf 2> /dev/null` in #( 2873 *the\ am__doit\ target*) 2874 am__include=include 2875 am__quote= 2876 _am_result=GNU 2877 ;; 2878 esac 2879 # Now try BSD make style include. 2880 if test "$am__include" = "#"; then 2881 echo '.include "confinc"' > confmf 2882 case `$am_make -s -f confmf 2> /dev/null` in #( 2883 *the\ am__doit\ target*) 2884 am__include=.include 2885 am__quote="\"" 2886 _am_result=BSD 2887 ;; 2888 esac 2889 fi 2890 2891 2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2893 $as_echo "$_am_result" >&6; } 2894 rm -f confinc confmf 2895 2896 # Check whether --enable-dependency-tracking was given. 2897 if test "${enable_dependency_tracking+set}" = set; then : 2898 enableval=$enable_dependency_tracking; 2899 fi 2900 2901 if test "x$enable_dependency_tracking" != xno; then 2902 am_depcomp="$ac_aux_dir/depcomp" 2903 AMDEPBACKSLASH='\' 2904 am__nodep='_no' 2905 fi 2906 if test "x$enable_dependency_tracking" != xno; then 2907 AMDEP_TRUE= 2908 AMDEP_FALSE='#' 2909 else 2910 AMDEP_TRUE='#' 2911 AMDEP_FALSE= 2912 fi 2913 2914 2915 ac_ext=c 2916 ac_cpp='$CPP $CPPFLAGS' 2917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2919 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2920 if test -n "$ac_tool_prefix"; then 2921 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2922 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2924 $as_echo_n "checking for $ac_word... " >&6; } 2925 if ${ac_cv_prog_CC+:} false; then : 2926 $as_echo_n "(cached) " >&6 2927 else 2928 if test -n "$CC"; then 2929 ac_cv_prog_CC="$CC" # Let the user override the test. 2930 else 2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2932 for as_dir in $PATH 2933 do 2934 IFS=$as_save_IFS 2935 test -z "$as_dir" && as_dir=. 2936 for ac_exec_ext in '' $ac_executable_extensions; do 2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2938 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2940 break 2 2941 fi 2942 done 2943 done 2944 IFS=$as_save_IFS 2945 2946 fi 2947 fi 2948 CC=$ac_cv_prog_CC 2949 if test -n "$CC"; then 2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2951 $as_echo "$CC" >&6; } 2952 else 2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2954 $as_echo "no" >&6; } 2955 fi 2956 2957 2958 fi 2959 if test -z "$ac_cv_prog_CC"; then 2960 ac_ct_CC=$CC 2961 # Extract the first word of "gcc", so it can be a program name with args. 2962 set dummy gcc; ac_word=$2 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2964 $as_echo_n "checking for $ac_word... " >&6; } 2965 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2966 $as_echo_n "(cached) " >&6 2967 else 2968 if test -n "$ac_ct_CC"; then 2969 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2970 else 2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2972 for as_dir in $PATH 2973 do 2974 IFS=$as_save_IFS 2975 test -z "$as_dir" && as_dir=. 2976 for ac_exec_ext in '' $ac_executable_extensions; do 2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2978 ac_cv_prog_ac_ct_CC="gcc" 2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2980 break 2 2981 fi 2982 done 2983 done 2984 IFS=$as_save_IFS 2985 2986 fi 2987 fi 2988 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2989 if test -n "$ac_ct_CC"; then 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2991 $as_echo "$ac_ct_CC" >&6; } 2992 else 2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2994 $as_echo "no" >&6; } 2995 fi 2996 2997 if test "x$ac_ct_CC" = x; then 2998 CC="" 2999 else 3000 case $cross_compiling:$ac_tool_warned in 3001 yes:) 3002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3004 ac_tool_warned=yes ;; 3005 esac 3006 CC=$ac_ct_CC 3007 fi 3008 else 3009 CC="$ac_cv_prog_CC" 3010 fi 3011 3012 if test -z "$CC"; then 3013 if test -n "$ac_tool_prefix"; then 3014 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3015 set dummy ${ac_tool_prefix}cc; ac_word=$2 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3017 $as_echo_n "checking for $ac_word... " >&6; } 3018 if ${ac_cv_prog_CC+:} false; then : 3019 $as_echo_n "(cached) " >&6 3020 else 3021 if test -n "$CC"; then 3022 ac_cv_prog_CC="$CC" # Let the user override the test. 3023 else 3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3025 for as_dir in $PATH 3026 do 3027 IFS=$as_save_IFS 3028 test -z "$as_dir" && as_dir=. 3029 for ac_exec_ext in '' $ac_executable_extensions; do 3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3031 ac_cv_prog_CC="${ac_tool_prefix}cc" 3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3033 break 2 3034 fi 3035 done 3036 done 3037 IFS=$as_save_IFS 3038 3039 fi 3040 fi 3041 CC=$ac_cv_prog_CC 3042 if test -n "$CC"; then 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3044 $as_echo "$CC" >&6; } 3045 else 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3047 $as_echo "no" >&6; } 3048 fi 3049 3050 3051 fi 3052 fi 3053 if test -z "$CC"; then 3054 # Extract the first word of "cc", so it can be a program name with args. 3055 set dummy cc; ac_word=$2 3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3057 $as_echo_n "checking for $ac_word... " >&6; } 3058 if ${ac_cv_prog_CC+:} false; then : 3059 $as_echo_n "(cached) " >&6 3060 else 3061 if test -n "$CC"; then 3062 ac_cv_prog_CC="$CC" # Let the user override the test. 3063 else 3064 ac_prog_rejected=no 3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3066 for as_dir in $PATH 3067 do 3068 IFS=$as_save_IFS 3069 test -z "$as_dir" && as_dir=. 3070 for ac_exec_ext in '' $ac_executable_extensions; do 3071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3072 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3073 ac_prog_rejected=yes 3074 continue 3075 fi 3076 ac_cv_prog_CC="cc" 3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3078 break 2 3079 fi 3080 done 3081 done 3082 IFS=$as_save_IFS 3083 3084 if test $ac_prog_rejected = yes; then 3085 # We found a bogon in the path, so make sure we never use it. 3086 set dummy $ac_cv_prog_CC 3087 shift 3088 if test $# != 0; then 3089 # We chose a different compiler from the bogus one. 3090 # However, it has the same basename, so the bogon will be chosen 3091 # first if we set CC to just the basename; use the full file name. 3092 shift 3093 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3094 fi 3095 fi 3096 fi 3097 fi 3098 CC=$ac_cv_prog_CC 3099 if test -n "$CC"; then 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3101 $as_echo "$CC" >&6; } 3102 else 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3104 $as_echo "no" >&6; } 3105 fi 3106 3107 3108 fi 3109 if test -z "$CC"; then 3110 if test -n "$ac_tool_prefix"; then 3111 for ac_prog in cl.exe 3112 do 3113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3116 $as_echo_n "checking for $ac_word... " >&6; } 3117 if ${ac_cv_prog_CC+:} false; then : 3118 $as_echo_n "(cached) " >&6 3119 else 3120 if test -n "$CC"; then 3121 ac_cv_prog_CC="$CC" # Let the user override the test. 3122 else 3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3124 for as_dir in $PATH 3125 do 3126 IFS=$as_save_IFS 3127 test -z "$as_dir" && as_dir=. 3128 for ac_exec_ext in '' $ac_executable_extensions; do 3129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3130 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3132 break 2 3133 fi 3134 done 3135 done 3136 IFS=$as_save_IFS 3137 3138 fi 3139 fi 3140 CC=$ac_cv_prog_CC 3141 if test -n "$CC"; then 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3143 $as_echo "$CC" >&6; } 3144 else 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3146 $as_echo "no" >&6; } 3147 fi 3148 3149 3150 test -n "$CC" && break 3151 done 3152 fi 3153 if test -z "$CC"; then 3154 ac_ct_CC=$CC 3155 for ac_prog in cl.exe 3156 do 3157 # Extract the first word of "$ac_prog", so it can be a program name with args. 3158 set dummy $ac_prog; ac_word=$2 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3160 $as_echo_n "checking for $ac_word... " >&6; } 3161 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3162 $as_echo_n "(cached) " >&6 3163 else 3164 if test -n "$ac_ct_CC"; then 3165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3166 else 3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3168 for as_dir in $PATH 3169 do 3170 IFS=$as_save_IFS 3171 test -z "$as_dir" && as_dir=. 3172 for ac_exec_ext in '' $ac_executable_extensions; do 3173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3174 ac_cv_prog_ac_ct_CC="$ac_prog" 3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3176 break 2 3177 fi 3178 done 3179 done 3180 IFS=$as_save_IFS 3181 3182 fi 3183 fi 3184 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3185 if test -n "$ac_ct_CC"; then 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3187 $as_echo "$ac_ct_CC" >&6; } 3188 else 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3190 $as_echo "no" >&6; } 3191 fi 3192 3193 3194 test -n "$ac_ct_CC" && break 3195 done 3196 3197 if test "x$ac_ct_CC" = x; then 3198 CC="" 3199 else 3200 case $cross_compiling:$ac_tool_warned in 3201 yes:) 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3204 ac_tool_warned=yes ;; 3205 esac 3206 CC=$ac_ct_CC 3207 fi 3208 fi 3209 3210 fi 3211 3212 3213 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3215 as_fn_error $? "no acceptable C compiler found in \$PATH 3216 See \`config.log' for more details" "$LINENO" 5; } 3217 3218 # Provide some information about the compiler. 3219 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3220 set X $ac_compile 3221 ac_compiler=$2 3222 for ac_option in --version -v -V -qversion; do 3223 { { ac_try="$ac_compiler $ac_option >&5" 3224 case "(($ac_try" in 3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3226 *) ac_try_echo=$ac_try;; 3227 esac 3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3229 $as_echo "$ac_try_echo"; } >&5 3230 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3231 ac_status=$? 3232 if test -s conftest.err; then 3233 sed '10a\ 3234 ... rest of stderr output deleted ... 3235 10q' conftest.err >conftest.er1 3236 cat conftest.er1 >&5 3237 fi 3238 rm -f conftest.er1 conftest.err 3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3240 test $ac_status = 0; } 3241 done 3242 3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3244 /* end confdefs.h. */ 3245 3246 int 3247 main () 3248 { 3249 3250 ; 3251 return 0; 3252 } 3253 _ACEOF 3254 ac_clean_files_save=$ac_clean_files 3255 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3256 # Try to create an executable without -o first, disregard a.out. 3257 # It will help us diagnose broken compilers, and finding out an intuition 3258 # of exeext. 3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3260 $as_echo_n "checking whether the C compiler works... " >&6; } 3261 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3262 3263 # The possible output files: 3264 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3265 3266 ac_rmfiles= 3267 for ac_file in $ac_files 3268 do 3269 case $ac_file in 3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3271 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3272 esac 3273 done 3274 rm -f $ac_rmfiles 3275 3276 if { { ac_try="$ac_link_default" 3277 case "(($ac_try" in 3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3279 *) ac_try_echo=$ac_try;; 3280 esac 3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3282 $as_echo "$ac_try_echo"; } >&5 3283 (eval "$ac_link_default") 2>&5 3284 ac_status=$? 3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3286 test $ac_status = 0; }; then : 3287 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3288 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3289 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3290 # so that the user can short-circuit this test for compilers unknown to 3291 # Autoconf. 3292 for ac_file in $ac_files '' 3293 do 3294 test -f "$ac_file" || continue 3295 case $ac_file in 3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3297 ;; 3298 [ab].out ) 3299 # We found the default executable, but exeext='' is most 3300 # certainly right. 3301 break;; 3302 *.* ) 3303 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3304 then :; else 3305 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3306 fi 3307 # We set ac_cv_exeext here because the later test for it is not 3308 # safe: cross compilers may not add the suffix if given an `-o' 3309 # argument, so we may need to know it at that point already. 3310 # Even if this section looks crufty: it has the advantage of 3311 # actually working. 3312 break;; 3313 * ) 3314 break;; 3315 esac 3316 done 3317 test "$ac_cv_exeext" = no && ac_cv_exeext= 3318 3319 else 3320 ac_file='' 3321 fi 3322 if test -z "$ac_file"; then : 3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3324 $as_echo "no" >&6; } 3325 $as_echo "$as_me: failed program was:" >&5 3326 sed 's/^/| /' conftest.$ac_ext >&5 3327 3328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3330 as_fn_error 77 "C compiler cannot create executables 3331 See \`config.log' for more details" "$LINENO" 5; } 3332 else 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3334 $as_echo "yes" >&6; } 3335 fi 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3337 $as_echo_n "checking for C compiler default output file name... " >&6; } 3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3339 $as_echo "$ac_file" >&6; } 3340 ac_exeext=$ac_cv_exeext 3341 3342 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3343 ac_clean_files=$ac_clean_files_save 3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3345 $as_echo_n "checking for suffix of executables... " >&6; } 3346 if { { ac_try="$ac_link" 3347 case "(($ac_try" in 3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3349 *) ac_try_echo=$ac_try;; 3350 esac 3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3352 $as_echo "$ac_try_echo"; } >&5 3353 (eval "$ac_link") 2>&5 3354 ac_status=$? 3355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3356 test $ac_status = 0; }; then : 3357 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3358 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3359 # work properly (i.e., refer to `conftest.exe'), while it won't with 3360 # `rm'. 3361 for ac_file in conftest.exe conftest conftest.*; do 3362 test -f "$ac_file" || continue 3363 case $ac_file in 3364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3366 break;; 3367 * ) break;; 3368 esac 3369 done 3370 else 3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3373 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3374 See \`config.log' for more details" "$LINENO" 5; } 3375 fi 3376 rm -f conftest conftest$ac_cv_exeext 3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3378 $as_echo "$ac_cv_exeext" >&6; } 3379 3380 rm -f conftest.$ac_ext 3381 EXEEXT=$ac_cv_exeext 3382 ac_exeext=$EXEEXT 3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3384 /* end confdefs.h. */ 3385 #include <stdio.h> 3386 int 3387 main () 3388 { 3389 FILE *f = fopen ("conftest.out", "w"); 3390 return ferror (f) || fclose (f) != 0; 3391 3392 ; 3393 return 0; 3394 } 3395 _ACEOF 3396 ac_clean_files="$ac_clean_files conftest.out" 3397 # Check that the compiler produces executables we can run. If not, either 3398 # the compiler is broken, or we cross compile. 3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3400 $as_echo_n "checking whether we are cross compiling... " >&6; } 3401 if test "$cross_compiling" != yes; then 3402 { { ac_try="$ac_link" 3403 case "(($ac_try" in 3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3405 *) ac_try_echo=$ac_try;; 3406 esac 3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3408 $as_echo "$ac_try_echo"; } >&5 3409 (eval "$ac_link") 2>&5 3410 ac_status=$? 3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3412 test $ac_status = 0; } 3413 if { ac_try='./conftest$ac_cv_exeext' 3414 { { case "(($ac_try" in 3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3416 *) ac_try_echo=$ac_try;; 3417 esac 3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3419 $as_echo "$ac_try_echo"; } >&5 3420 (eval "$ac_try") 2>&5 3421 ac_status=$? 3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3423 test $ac_status = 0; }; }; then 3424 cross_compiling=no 3425 else 3426 if test "$cross_compiling" = maybe; then 3427 cross_compiling=yes 3428 else 3429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3431 as_fn_error $? "cannot run C compiled programs. 3432 If you meant to cross compile, use \`--host'. 3433 See \`config.log' for more details" "$LINENO" 5; } 3434 fi 3435 fi 3436 fi 3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3438 $as_echo "$cross_compiling" >&6; } 3439 3440 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3441 ac_clean_files=$ac_clean_files_save 3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3443 $as_echo_n "checking for suffix of object files... " >&6; } 3444 if ${ac_cv_objext+:} false; then : 3445 $as_echo_n "(cached) " >&6 3446 else 3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3448 /* end confdefs.h. */ 3449 3450 int 3451 main () 3452 { 3453 3454 ; 3455 return 0; 3456 } 3457 _ACEOF 3458 rm -f conftest.o conftest.obj 3459 if { { ac_try="$ac_compile" 3460 case "(($ac_try" in 3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3462 *) ac_try_echo=$ac_try;; 3463 esac 3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3465 $as_echo "$ac_try_echo"; } >&5 3466 (eval "$ac_compile") 2>&5 3467 ac_status=$? 3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3469 test $ac_status = 0; }; then : 3470 for ac_file in conftest.o conftest.obj conftest.*; do 3471 test -f "$ac_file" || continue; 3472 case $ac_file in 3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3475 break;; 3476 esac 3477 done 3478 else 3479 $as_echo "$as_me: failed program was:" >&5 3480 sed 's/^/| /' conftest.$ac_ext >&5 3481 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 object files: cannot compile 3485 See \`config.log' for more details" "$LINENO" 5; } 3486 fi 3487 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3488 fi 3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3490 $as_echo "$ac_cv_objext" >&6; } 3491 OBJEXT=$ac_cv_objext 3492 ac_objext=$OBJEXT 3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3494 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3495 if ${ac_cv_c_compiler_gnu+:} false; then : 3496 $as_echo_n "(cached) " >&6 3497 else 3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3499 /* end confdefs.h. */ 3500 3501 int 3502 main () 3503 { 3504 #ifndef __GNUC__ 3505 choke me 3506 #endif 3507 3508 ; 3509 return 0; 3510 } 3511 _ACEOF 3512 if ac_fn_c_try_compile "$LINENO"; then : 3513 ac_compiler_gnu=yes 3514 else 3515 ac_compiler_gnu=no 3516 fi 3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3518 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3519 3520 fi 3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3522 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3523 if test $ac_compiler_gnu = yes; then 3524 GCC=yes 3525 else 3526 GCC= 3527 fi 3528 ac_test_CFLAGS=${CFLAGS+set} 3529 ac_save_CFLAGS=$CFLAGS 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3531 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3532 if ${ac_cv_prog_cc_g+:} false; then : 3533 $as_echo_n "(cached) " >&6 3534 else 3535 ac_save_c_werror_flag=$ac_c_werror_flag 3536 ac_c_werror_flag=yes 3537 ac_cv_prog_cc_g=no 3538 CFLAGS="-g" 3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3540 /* end confdefs.h. */ 3541 3542 int 3543 main () 3544 { 3545 3546 ; 3547 return 0; 3548 } 3549 _ACEOF 3550 if ac_fn_c_try_compile "$LINENO"; then : 3551 ac_cv_prog_cc_g=yes 3552 else 3553 CFLAGS="" 3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3555 /* end confdefs.h. */ 3556 3557 int 3558 main () 3559 { 3560 3561 ; 3562 return 0; 3563 } 3564 _ACEOF 3565 if ac_fn_c_try_compile "$LINENO"; then : 3566 3567 else 3568 ac_c_werror_flag=$ac_save_c_werror_flag 3569 CFLAGS="-g" 3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3571 /* end confdefs.h. */ 3572 3573 int 3574 main () 3575 { 3576 3577 ; 3578 return 0; 3579 } 3580 _ACEOF 3581 if ac_fn_c_try_compile "$LINENO"; then : 3582 ac_cv_prog_cc_g=yes 3583 fi 3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3585 fi 3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3587 fi 3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3589 ac_c_werror_flag=$ac_save_c_werror_flag 3590 fi 3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3592 $as_echo "$ac_cv_prog_cc_g" >&6; } 3593 if test "$ac_test_CFLAGS" = set; then 3594 CFLAGS=$ac_save_CFLAGS 3595 elif test $ac_cv_prog_cc_g = yes; then 3596 if test "$GCC" = yes; then 3597 CFLAGS="-g -O2" 3598 else 3599 CFLAGS="-g" 3600 fi 3601 else 3602 if test "$GCC" = yes; then 3603 CFLAGS="-O2" 3604 else 3605 CFLAGS= 3606 fi 3607 fi 3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3609 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3610 if ${ac_cv_prog_cc_c89+:} false; then : 3611 $as_echo_n "(cached) " >&6 3612 else 3613 ac_cv_prog_cc_c89=no 3614 ac_save_CC=$CC 3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3616 /* end confdefs.h. */ 3617 #include <stdarg.h> 3618 #include <stdio.h> 3619 #include <sys/types.h> 3620 #include <sys/stat.h> 3621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3622 struct buf { int x; }; 3623 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3624 static char *e (p, i) 3625 char **p; 3626 int i; 3627 { 3628 return p[i]; 3629 } 3630 static char *f (char * (*g) (char **, int), char **p, ...) 3631 { 3632 char *s; 3633 va_list v; 3634 va_start (v,p); 3635 s = g (p, va_arg (v,int)); 3636 va_end (v); 3637 return s; 3638 } 3639 3640 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3641 function prototypes and stuff, but not '\xHH' hex character constants. 3642 These don't provoke an error unfortunately, instead are silently treated 3643 as 'x'. The following induces an error, until -std is added to get 3644 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3645 array size at least. It's necessary to write '\x00'==0 to get something 3646 that's true only with -std. */ 3647 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3648 3649 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3650 inside strings and character constants. */ 3651 #define FOO(x) 'x' 3652 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3653 3654 int test (int i, double x); 3655 struct s1 {int (*f) (int a);}; 3656 struct s2 {int (*f) (double a);}; 3657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3658 int argc; 3659 char **argv; 3660 int 3661 main () 3662 { 3663 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3664 ; 3665 return 0; 3666 } 3667 _ACEOF 3668 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3669 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3670 do 3671 CC="$ac_save_CC $ac_arg" 3672 if ac_fn_c_try_compile "$LINENO"; then : 3673 ac_cv_prog_cc_c89=$ac_arg 3674 fi 3675 rm -f core conftest.err conftest.$ac_objext 3676 test "x$ac_cv_prog_cc_c89" != "xno" && break 3677 done 3678 rm -f conftest.$ac_ext 3679 CC=$ac_save_CC 3680 3681 fi 3682 # AC_CACHE_VAL 3683 case "x$ac_cv_prog_cc_c89" in 3684 x) 3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3686 $as_echo "none needed" >&6; } ;; 3687 xno) 3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3689 $as_echo "unsupported" >&6; } ;; 3690 *) 3691 CC="$CC $ac_cv_prog_cc_c89" 3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3693 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3694 esac 3695 if test "x$ac_cv_prog_cc_c89" != xno; then : 3696 3697 fi 3698 3699 ac_ext=c 3700 ac_cpp='$CPP $CPPFLAGS' 3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3704 3705 depcc="$CC" am_compiler_list= 3706 3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3708 $as_echo_n "checking dependency style of $depcc... " >&6; } 3709 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3710 $as_echo_n "(cached) " >&6 3711 else 3712 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3713 # We make a subdir and do the tests there. Otherwise we can end up 3714 # making bogus files that we don't know about and never remove. For 3715 # instance it was reported that on HP-UX the gcc test will end up 3716 # making a dummy file named `D' -- because `-MD' means `put the output 3717 # in D'. 3718 rm -rf conftest.dir 3719 mkdir conftest.dir 3720 # Copy depcomp to subdir because otherwise we won't find it if we're 3721 # using a relative directory. 3722 cp "$am_depcomp" conftest.dir 3723 cd conftest.dir 3724 # We will build objects and dependencies in a subdirectory because 3725 # it helps to detect inapplicable dependency modes. For instance 3726 # both Tru64's cc and ICC support -MD to output dependencies as a 3727 # side effect of compilation, but ICC will put the dependencies in 3728 # the current directory while Tru64 will put them in the object 3729 # directory. 3730 mkdir sub 3731 3732 am_cv_CC_dependencies_compiler_type=none 3733 if test "$am_compiler_list" = ""; then 3734 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3735 fi 3736 am__universal=false 3737 case " $depcc " in #( 3738 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3739 esac 3740 3741 for depmode in $am_compiler_list; do 3742 # Setup a source with many dependencies, because some compilers 3743 # like to wrap large dependency lists on column 80 (with \), and 3744 # we should not choose a depcomp mode which is confused by this. 3745 # 3746 # We need to recreate these files for each test, as the compiler may 3747 # overwrite some of them when testing with obscure command lines. 3748 # This happens at least with the AIX C compiler. 3749 : > sub/conftest.c 3750 for i in 1 2 3 4 5 6; do 3751 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3752 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3753 # Solaris 8's {/usr,}/bin/sh. 3754 touch sub/conftst$i.h 3755 done 3756 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3757 3758 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3759 # mode. It turns out that the SunPro C++ compiler does not properly 3760 # handle `-M -o', and we need to detect this. Also, some Intel 3761 # versions had trouble with output in subdirs 3762 am__obj=sub/conftest.${OBJEXT-o} 3763 am__minus_obj="-o $am__obj" 3764 case $depmode in 3765 gcc) 3766 # This depmode causes a compiler race in universal mode. 3767 test "$am__universal" = false || continue 3768 ;; 3769 nosideeffect) 3770 # after this tag, mechanisms are not by side-effect, so they'll 3771 # only be used when explicitly requested 3772 if test "x$enable_dependency_tracking" = xyes; then 3773 continue 3774 else 3775 break 3776 fi 3777 ;; 3778 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3779 # This compiler won't grok `-c -o', but also, the minuso test has 3780 # not run yet. These depmodes are late enough in the game, and 3781 # so weak that their functioning should not be impacted. 3782 am__obj=conftest.${OBJEXT-o} 3783 am__minus_obj= 3784 ;; 3785 none) break ;; 3786 esac 3787 if depmode=$depmode \ 3788 source=sub/conftest.c object=$am__obj \ 3789 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3790 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3791 >/dev/null 2>conftest.err && 3792 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3793 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3794 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3795 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3796 # icc doesn't choke on unknown options, it will just issue warnings 3797 # or remarks (even with -Werror). So we grep stderr for any message 3798 # that says an option was ignored or not supported. 3799 # When given -MP, icc 7.0 and 7.1 complain thusly: 3800 # icc: Command line warning: ignoring option '-M'; no argument required 3801 # The diagnosis changed in icc 8.0: 3802 # icc: Command line remark: option '-MP' not supported 3803 if (grep 'ignoring option' conftest.err || 3804 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3805 am_cv_CC_dependencies_compiler_type=$depmode 3806 break 3807 fi 3808 fi 3809 done 3810 3811 cd .. 3812 rm -rf conftest.dir 3813 else 3814 am_cv_CC_dependencies_compiler_type=none 3815 fi 3816 3817 fi 3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3819 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3820 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3821 3822 if 3823 test "x$enable_dependency_tracking" != xno \ 3824 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3825 am__fastdepCC_TRUE= 3826 am__fastdepCC_FALSE='#' 3827 else 3828 am__fastdepCC_TRUE='#' 3829 am__fastdepCC_FALSE= 3830 fi 3831 3832 3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3834 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3835 if ${ac_cv_prog_cc_c99+:} false; then : 3836 $as_echo_n "(cached) " >&6 3837 else 3838 ac_cv_prog_cc_c99=no 3839 ac_save_CC=$CC 3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3841 /* end confdefs.h. */ 3842 #include <stdarg.h> 3843 #include <stdbool.h> 3844 #include <stdlib.h> 3845 #include <wchar.h> 3846 #include <stdio.h> 3847 3848 // Check varargs macros. These examples are taken from C99 6.10.3.5. 3849 #define debug(...) fprintf (stderr, __VA_ARGS__) 3850 #define showlist(...) puts (#__VA_ARGS__) 3851 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3852 static void 3853 test_varargs_macros (void) 3854 { 3855 int x = 1234; 3856 int y = 5678; 3857 debug ("Flag"); 3858 debug ("X = %d\n", x); 3859 showlist (The first, second, and third items.); 3860 report (x>y, "x is %d but y is %d", x, y); 3861 } 3862 3863 // Check long long types. 3864 #define BIG64 18446744073709551615ull 3865 #define BIG32 4294967295ul 3866 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3867 #if !BIG_OK 3868 your preprocessor is broken; 3869 #endif 3870 #if BIG_OK 3871 #else 3872 your preprocessor is broken; 3873 #endif 3874 static long long int bignum = -9223372036854775807LL; 3875 static unsigned long long int ubignum = BIG64; 3876 3877 struct incomplete_array 3878 { 3879 int datasize; 3880 double data[]; 3881 }; 3882 3883 struct named_init { 3884 int number; 3885 const wchar_t *name; 3886 double average; 3887 }; 3888 3889 typedef const char *ccp; 3890 3891 static inline int 3892 test_restrict (ccp restrict text) 3893 { 3894 // See if C++-style comments work. 3895 // Iterate through items via the restricted pointer. 3896 // Also check for declarations in for loops. 3897 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3898 continue; 3899 return 0; 3900 } 3901 3902 // Check varargs and va_copy. 3903 static void 3904 test_varargs (const char *format, ...) 3905 { 3906 va_list args; 3907 va_start (args, format); 3908 va_list args_copy; 3909 va_copy (args_copy, args); 3910 3911 const char *str; 3912 int number; 3913 float fnumber; 3914 3915 while (*format) 3916 { 3917 switch (*format++) 3918 { 3919 case 's': // string 3920 str = va_arg (args_copy, const char *); 3921 break; 3922 case 'd': // int 3923 number = va_arg (args_copy, int); 3924 break; 3925 case 'f': // float 3926 fnumber = va_arg (args_copy, double); 3927 break; 3928 default: 3929 break; 3930 } 3931 } 3932 va_end (args_copy); 3933 va_end (args); 3934 } 3935 3936 int 3937 main () 3938 { 3939 3940 // Check bool. 3941 _Bool success = false; 3942 3943 // Check restrict. 3944 if (test_restrict ("String literal") == 0) 3945 success = true; 3946 char *restrict newvar = "Another string"; 3947 3948 // Check varargs. 3949 test_varargs ("s, d' f .", "string", 65, 34.234); 3950 test_varargs_macros (); 3951 3952 // Check flexible array members. 3953 struct incomplete_array *ia = 3954 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3955 ia->datasize = 10; 3956 for (int i = 0; i < ia->datasize; ++i) 3957 ia->data[i] = i * 1.234; 3958 3959 // Check named initializers. 3960 struct named_init ni = { 3961 .number = 34, 3962 .name = L"Test wide string", 3963 .average = 543.34343, 3964 }; 3965 3966 ni.number = 58; 3967 3968 int dynamic_array[ni.number]; 3969 dynamic_array[ni.number - 1] = 543; 3970 3971 // work around unused variable warnings 3972 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3973 || dynamic_array[ni.number - 1] != 543); 3974 3975 ; 3976 return 0; 3977 } 3978 _ACEOF 3979 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3980 do 3981 CC="$ac_save_CC $ac_arg" 3982 if ac_fn_c_try_compile "$LINENO"; then : 3983 ac_cv_prog_cc_c99=$ac_arg 3984 fi 3985 rm -f core conftest.err conftest.$ac_objext 3986 test "x$ac_cv_prog_cc_c99" != "xno" && break 3987 done 3988 rm -f conftest.$ac_ext 3989 CC=$ac_save_CC 3990 3991 fi 3992 # AC_CACHE_VAL 3993 case "x$ac_cv_prog_cc_c99" in 3994 x) 3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3996 $as_echo "none needed" >&6; } ;; 3997 xno) 3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3999 $as_echo "unsupported" >&6; } ;; 4000 *) 4001 CC="$CC $ac_cv_prog_cc_c99" 4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4003 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4004 esac 4005 if test "x$ac_cv_prog_cc_c99" != xno; then : 4006 4007 fi 4008 4009 4010 4011 ac_ext=c 4012 ac_cpp='$CPP $CPPFLAGS' 4013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4015 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4017 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4018 # On Suns, sometimes $CPP names a directory. 4019 if test -n "$CPP" && test -d "$CPP"; then 4020 CPP= 4021 fi 4022 if test -z "$CPP"; then 4023 if ${ac_cv_prog_CPP+:} false; then : 4024 $as_echo_n "(cached) " >&6 4025 else 4026 # Double quotes because CPP needs to be expanded 4027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4028 do 4029 ac_preproc_ok=false 4030 for ac_c_preproc_warn_flag in '' yes 4031 do 4032 # Use a header file that comes with gcc, so configuring glibc 4033 # with a fresh cross-compiler works. 4034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4035 # <limits.h> exists even on freestanding compilers. 4036 # On the NeXT, cc -E runs the code through the compiler's parser, 4037 # not just through cpp. "Syntax error" is here to catch this case. 4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4039 /* end confdefs.h. */ 4040 #ifdef __STDC__ 4041 # include <limits.h> 4042 #else 4043 # include <assert.h> 4044 #endif 4045 Syntax error 4046 _ACEOF 4047 if ac_fn_c_try_cpp "$LINENO"; then : 4048 4049 else 4050 # Broken: fails on valid input. 4051 continue 4052 fi 4053 rm -f conftest.err conftest.i conftest.$ac_ext 4054 4055 # OK, works on sane cases. Now check whether nonexistent headers 4056 # can be detected and how. 4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4058 /* end confdefs.h. */ 4059 #include <ac_nonexistent.h> 4060 _ACEOF 4061 if ac_fn_c_try_cpp "$LINENO"; then : 4062 # Broken: success on invalid input. 4063 continue 4064 else 4065 # Passes both tests. 4066 ac_preproc_ok=: 4067 break 4068 fi 4069 rm -f conftest.err conftest.i conftest.$ac_ext 4070 4071 done 4072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4073 rm -f conftest.i conftest.err conftest.$ac_ext 4074 if $ac_preproc_ok; then : 4075 break 4076 fi 4077 4078 done 4079 ac_cv_prog_CPP=$CPP 4080 4081 fi 4082 CPP=$ac_cv_prog_CPP 4083 else 4084 ac_cv_prog_CPP=$CPP 4085 fi 4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4087 $as_echo "$CPP" >&6; } 4088 ac_preproc_ok=false 4089 for ac_c_preproc_warn_flag in '' yes 4090 do 4091 # Use a header file that comes with gcc, so configuring glibc 4092 # with a fresh cross-compiler works. 4093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4094 # <limits.h> exists even on freestanding compilers. 4095 # On the NeXT, cc -E runs the code through the compiler's parser, 4096 # not just through cpp. "Syntax error" is here to catch this case. 4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4098 /* end confdefs.h. */ 4099 #ifdef __STDC__ 4100 # include <limits.h> 4101 #else 4102 # include <assert.h> 4103 #endif 4104 Syntax error 4105 _ACEOF 4106 if ac_fn_c_try_cpp "$LINENO"; then : 4107 4108 else 4109 # Broken: fails on valid input. 4110 continue 4111 fi 4112 rm -f conftest.err conftest.i conftest.$ac_ext 4113 4114 # OK, works on sane cases. Now check whether nonexistent headers 4115 # can be detected and how. 4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4117 /* end confdefs.h. */ 4118 #include <ac_nonexistent.h> 4119 _ACEOF 4120 if ac_fn_c_try_cpp "$LINENO"; then : 4121 # Broken: success on invalid input. 4122 continue 4123 else 4124 # Passes both tests. 4125 ac_preproc_ok=: 4126 break 4127 fi 4128 rm -f conftest.err conftest.i conftest.$ac_ext 4129 4130 done 4131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4132 rm -f conftest.i conftest.err conftest.$ac_ext 4133 if $ac_preproc_ok; then : 4134 4135 else 4136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4138 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4139 See \`config.log' for more details" "$LINENO" 5; } 4140 fi 4141 4142 ac_ext=c 4143 ac_cpp='$CPP $CPPFLAGS' 4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4147 4148 4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4150 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4151 if ${ac_cv_path_GREP+:} false; then : 4152 $as_echo_n "(cached) " >&6 4153 else 4154 if test -z "$GREP"; then 4155 ac_path_GREP_found=false 4156 # Loop through the user's path and test for each of PROGNAME-LIST 4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4158 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4159 do 4160 IFS=$as_save_IFS 4161 test -z "$as_dir" && as_dir=. 4162 for ac_prog in grep ggrep; do 4163 for ac_exec_ext in '' $ac_executable_extensions; do 4164 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4165 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4166 # Check for GNU ac_path_GREP and select it if it is found. 4167 # Check for GNU $ac_path_GREP 4168 case `"$ac_path_GREP" --version 2>&1` in 4169 *GNU*) 4170 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4171 *) 4172 ac_count=0 4173 $as_echo_n 0123456789 >"conftest.in" 4174 while : 4175 do 4176 cat "conftest.in" "conftest.in" >"conftest.tmp" 4177 mv "conftest.tmp" "conftest.in" 4178 cp "conftest.in" "conftest.nl" 4179 $as_echo 'GREP' >> "conftest.nl" 4180 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4182 as_fn_arith $ac_count + 1 && ac_count=$as_val 4183 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4184 # Best one so far, save it but keep looking for a better one 4185 ac_cv_path_GREP="$ac_path_GREP" 4186 ac_path_GREP_max=$ac_count 4187 fi 4188 # 10*(2^10) chars as input seems more than enough 4189 test $ac_count -gt 10 && break 4190 done 4191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4192 esac 4193 4194 $ac_path_GREP_found && break 3 4195 done 4196 done 4197 done 4198 IFS=$as_save_IFS 4199 if test -z "$ac_cv_path_GREP"; then 4200 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4201 fi 4202 else 4203 ac_cv_path_GREP=$GREP 4204 fi 4205 4206 fi 4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4208 $as_echo "$ac_cv_path_GREP" >&6; } 4209 GREP="$ac_cv_path_GREP" 4210 4211 4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4213 $as_echo_n "checking for egrep... " >&6; } 4214 if ${ac_cv_path_EGREP+:} false; then : 4215 $as_echo_n "(cached) " >&6 4216 else 4217 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4218 then ac_cv_path_EGREP="$GREP -E" 4219 else 4220 if test -z "$EGREP"; then 4221 ac_path_EGREP_found=false 4222 # Loop through the user's path and test for each of PROGNAME-LIST 4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4224 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4225 do 4226 IFS=$as_save_IFS 4227 test -z "$as_dir" && as_dir=. 4228 for ac_prog in egrep; do 4229 for ac_exec_ext in '' $ac_executable_extensions; do 4230 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4231 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4232 # Check for GNU ac_path_EGREP and select it if it is found. 4233 # Check for GNU $ac_path_EGREP 4234 case `"$ac_path_EGREP" --version 2>&1` in 4235 *GNU*) 4236 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4237 *) 4238 ac_count=0 4239 $as_echo_n 0123456789 >"conftest.in" 4240 while : 4241 do 4242 cat "conftest.in" "conftest.in" >"conftest.tmp" 4243 mv "conftest.tmp" "conftest.in" 4244 cp "conftest.in" "conftest.nl" 4245 $as_echo 'EGREP' >> "conftest.nl" 4246 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4248 as_fn_arith $ac_count + 1 && ac_count=$as_val 4249 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4250 # Best one so far, save it but keep looking for a better one 4251 ac_cv_path_EGREP="$ac_path_EGREP" 4252 ac_path_EGREP_max=$ac_count 4253 fi 4254 # 10*(2^10) chars as input seems more than enough 4255 test $ac_count -gt 10 && break 4256 done 4257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4258 esac 4259 4260 $ac_path_EGREP_found && break 3 4261 done 4262 done 4263 done 4264 IFS=$as_save_IFS 4265 if test -z "$ac_cv_path_EGREP"; then 4266 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4267 fi 4268 else 4269 ac_cv_path_EGREP=$EGREP 4270 fi 4271 4272 fi 4273 fi 4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4275 $as_echo "$ac_cv_path_EGREP" >&6; } 4276 EGREP="$ac_cv_path_EGREP" 4277 4278 4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4280 $as_echo_n "checking for ANSI C header files... " >&6; } 4281 if ${ac_cv_header_stdc+:} false; then : 4282 $as_echo_n "(cached) " >&6 4283 else 4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4285 /* end confdefs.h. */ 4286 #include <stdlib.h> 4287 #include <stdarg.h> 4288 #include <string.h> 4289 #include <float.h> 4290 4291 int 4292 main () 4293 { 4294 4295 ; 4296 return 0; 4297 } 4298 _ACEOF 4299 if ac_fn_c_try_compile "$LINENO"; then : 4300 ac_cv_header_stdc=yes 4301 else 4302 ac_cv_header_stdc=no 4303 fi 4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4305 4306 if test $ac_cv_header_stdc = yes; then 4307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4309 /* end confdefs.h. */ 4310 #include <string.h> 4311 4312 _ACEOF 4313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4314 $EGREP "memchr" >/dev/null 2>&1; then : 4315 4316 else 4317 ac_cv_header_stdc=no 4318 fi 4319 rm -f conftest* 4320 4321 fi 4322 4323 if test $ac_cv_header_stdc = yes; then 4324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4326 /* end confdefs.h. */ 4327 #include <stdlib.h> 4328 4329 _ACEOF 4330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4331 $EGREP "free" >/dev/null 2>&1; then : 4332 4333 else 4334 ac_cv_header_stdc=no 4335 fi 4336 rm -f conftest* 4337 4338 fi 4339 4340 if test $ac_cv_header_stdc = yes; then 4341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4342 if test "$cross_compiling" = yes; then : 4343 : 4344 else 4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4346 /* end confdefs.h. */ 4347 #include <ctype.h> 4348 #include <stdlib.h> 4349 #if ((' ' & 0x0FF) == 0x020) 4350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4352 #else 4353 # define ISLOWER(c) \ 4354 (('a' <= (c) && (c) <= 'i') \ 4355 || ('j' <= (c) && (c) <= 'r') \ 4356 || ('s' <= (c) && (c) <= 'z')) 4357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4358 #endif 4359 4360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4361 int 4362 main () 4363 { 4364 int i; 4365 for (i = 0; i < 256; i++) 4366 if (XOR (islower (i), ISLOWER (i)) 4367 || toupper (i) != TOUPPER (i)) 4368 return 2; 4369 return 0; 4370 } 4371 _ACEOF 4372 if ac_fn_c_try_run "$LINENO"; then : 4373 4374 else 4375 ac_cv_header_stdc=no 4376 fi 4377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4378 conftest.$ac_objext conftest.beam conftest.$ac_ext 4379 fi 4380 4381 fi 4382 fi 4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4384 $as_echo "$ac_cv_header_stdc" >&6; } 4385 if test $ac_cv_header_stdc = yes; then 4386 4387 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4388 4389 fi 4390 4391 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4392 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4393 inttypes.h stdint.h unistd.h 4394 do : 4395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4396 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4397 " 4398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4399 cat >>confdefs.h <<_ACEOF 4400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4401 _ACEOF 4402 4403 fi 4404 4405 done 4406 4407 4408 4409 4410 4411 4412 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4413 if test "x$ac_cv_have_decl___clang__" = xyes; then : 4414 CLANGCC="yes" 4415 else 4416 CLANGCC="no" 4417 fi 4418 4419 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4420 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4421 INTELCC="yes" 4422 else 4423 INTELCC="no" 4424 fi 4425 4426 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4427 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4428 SUNCC="yes" 4429 else 4430 SUNCC="no" 4431 fi 4432 4433 4434 4435 4436 4437 4438 4439 4440 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4441 if test -n "$ac_tool_prefix"; then 4442 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4443 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4445 $as_echo_n "checking for $ac_word... " >&6; } 4446 if ${ac_cv_path_PKG_CONFIG+:} false; then : 4447 $as_echo_n "(cached) " >&6 4448 else 4449 case $PKG_CONFIG in 4450 [\\/]* | ?:[\\/]*) 4451 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4452 ;; 4453 *) 4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4455 for as_dir in $PATH 4456 do 4457 IFS=$as_save_IFS 4458 test -z "$as_dir" && as_dir=. 4459 for ac_exec_ext in '' $ac_executable_extensions; do 4460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4461 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4463 break 2 4464 fi 4465 done 4466 done 4467 IFS=$as_save_IFS 4468 4469 ;; 4470 esac 4471 fi 4472 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4473 if test -n "$PKG_CONFIG"; then 4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4475 $as_echo "$PKG_CONFIG" >&6; } 4476 else 4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4478 $as_echo "no" >&6; } 4479 fi 4480 4481 4482 fi 4483 if test -z "$ac_cv_path_PKG_CONFIG"; then 4484 ac_pt_PKG_CONFIG=$PKG_CONFIG 4485 # Extract the first word of "pkg-config", so it can be a program name with args. 4486 set dummy pkg-config; ac_word=$2 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4488 $as_echo_n "checking for $ac_word... " >&6; } 4489 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4490 $as_echo_n "(cached) " >&6 4491 else 4492 case $ac_pt_PKG_CONFIG in 4493 [\\/]* | ?:[\\/]*) 4494 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4495 ;; 4496 *) 4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4498 for as_dir in $PATH 4499 do 4500 IFS=$as_save_IFS 4501 test -z "$as_dir" && as_dir=. 4502 for ac_exec_ext in '' $ac_executable_extensions; do 4503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4504 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4506 break 2 4507 fi 4508 done 4509 done 4510 IFS=$as_save_IFS 4511 4512 ;; 4513 esac 4514 fi 4515 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4516 if test -n "$ac_pt_PKG_CONFIG"; then 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4518 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 4519 else 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4521 $as_echo "no" >&6; } 4522 fi 4523 4524 if test "x$ac_pt_PKG_CONFIG" = x; then 4525 PKG_CONFIG="" 4526 else 4527 case $cross_compiling:$ac_tool_warned in 4528 yes:) 4529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4531 ac_tool_warned=yes ;; 4532 esac 4533 PKG_CONFIG=$ac_pt_PKG_CONFIG 4534 fi 4535 else 4536 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4537 fi 4538 4539 fi 4540 if test -n "$PKG_CONFIG"; then 4541 _pkg_min_version=0.9.0 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4543 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4544 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4546 $as_echo "yes" >&6; } 4547 else 4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4549 $as_echo "no" >&6; } 4550 PKG_CONFIG="" 4551 fi 4552 fi 4553 # Make sure we can run config.sub. 4554 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4555 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4556 4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4558 $as_echo_n "checking build system type... " >&6; } 4559 if ${ac_cv_build+:} false; then : 4560 $as_echo_n "(cached) " >&6 4561 else 4562 ac_build_alias=$build_alias 4563 test "x$ac_build_alias" = x && 4564 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4565 test "x$ac_build_alias" = x && 4566 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4567 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4568 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4569 4570 fi 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4572 $as_echo "$ac_cv_build" >&6; } 4573 case $ac_cv_build in 4574 *-*-*) ;; 4575 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4576 esac 4577 build=$ac_cv_build 4578 ac_save_IFS=$IFS; IFS='-' 4579 set x $ac_cv_build 4580 shift 4581 build_cpu=$1 4582 build_vendor=$2 4583 shift; shift 4584 # Remember, the first character of IFS is used to create $*, 4585 # except with old shells: 4586 build_os=$* 4587 IFS=$ac_save_IFS 4588 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4589 4590 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4592 $as_echo_n "checking host system type... " >&6; } 4593 if ${ac_cv_host+:} false; then : 4594 $as_echo_n "(cached) " >&6 4595 else 4596 if test "x$host_alias" = x; then 4597 ac_cv_host=$ac_cv_build 4598 else 4599 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4600 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4601 fi 4602 4603 fi 4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4605 $as_echo "$ac_cv_host" >&6; } 4606 case $ac_cv_host in 4607 *-*-*) ;; 4608 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4609 esac 4610 host=$ac_cv_host 4611 ac_save_IFS=$IFS; IFS='-' 4612 set x $ac_cv_host 4613 shift 4614 host_cpu=$1 4615 host_vendor=$2 4616 shift; shift 4617 # Remember, the first character of IFS is used to create $*, 4618 # except with old shells: 4619 host_os=$* 4620 IFS=$ac_save_IFS 4621 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4622 4623 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4625 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4626 if ${ac_cv_path_SED+:} false; then : 4627 $as_echo_n "(cached) " >&6 4628 else 4629 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4630 for ac_i in 1 2 3 4 5 6 7; do 4631 ac_script="$ac_script$as_nl$ac_script" 4632 done 4633 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4634 { ac_script=; unset ac_script;} 4635 if test -z "$SED"; then 4636 ac_path_SED_found=false 4637 # Loop through the user's path and test for each of PROGNAME-LIST 4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4639 for as_dir in $PATH 4640 do 4641 IFS=$as_save_IFS 4642 test -z "$as_dir" && as_dir=. 4643 for ac_prog in sed gsed; do 4644 for ac_exec_ext in '' $ac_executable_extensions; do 4645 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4646 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4647 # Check for GNU ac_path_SED and select it if it is found. 4648 # Check for GNU $ac_path_SED 4649 case `"$ac_path_SED" --version 2>&1` in 4650 *GNU*) 4651 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4652 *) 4653 ac_count=0 4654 $as_echo_n 0123456789 >"conftest.in" 4655 while : 4656 do 4657 cat "conftest.in" "conftest.in" >"conftest.tmp" 4658 mv "conftest.tmp" "conftest.in" 4659 cp "conftest.in" "conftest.nl" 4660 $as_echo '' >> "conftest.nl" 4661 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4663 as_fn_arith $ac_count + 1 && ac_count=$as_val 4664 if test $ac_count -gt ${ac_path_SED_max-0}; then 4665 # Best one so far, save it but keep looking for a better one 4666 ac_cv_path_SED="$ac_path_SED" 4667 ac_path_SED_max=$ac_count 4668 fi 4669 # 10*(2^10) chars as input seems more than enough 4670 test $ac_count -gt 10 && break 4671 done 4672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4673 esac 4674 4675 $ac_path_SED_found && break 3 4676 done 4677 done 4678 done 4679 IFS=$as_save_IFS 4680 if test -z "$ac_cv_path_SED"; then 4681 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4682 fi 4683 else 4684 ac_cv_path_SED=$SED 4685 fi 4686 4687 fi 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4689 $as_echo "$ac_cv_path_SED" >&6; } 4690 SED="$ac_cv_path_SED" 4691 rm -f conftest.sed 4692 4693 4694 4695 4696 4697 4698 # Check whether --enable-selective-werror was given. 4699 if test "${enable_selective_werror+set}" = set; then : 4700 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4701 else 4702 SELECTIVE_WERROR=yes 4703 fi 4704 4705 4706 4707 4708 4709 # -v is too short to test reliably with XORG_TESTSET_CFLAG 4710 if test "x$SUNCC" = "xyes"; then 4711 BASE_CFLAGS="-v" 4712 else 4713 BASE_CFLAGS="" 4714 fi 4715 4716 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 xorg_testset_save_CFLAGS="$CFLAGS" 4731 4732 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4735 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4736 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4737 $as_echo_n "(cached) " >&6 4738 else 4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4740 /* end confdefs.h. */ 4741 int i; 4742 _ACEOF 4743 if ac_fn_c_try_compile "$LINENO"; then : 4744 xorg_cv_cc_flag_unknown_warning_option=yes 4745 else 4746 xorg_cv_cc_flag_unknown_warning_option=no 4747 fi 4748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4749 fi 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4751 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4753 CFLAGS="$xorg_testset_save_CFLAGS" 4754 fi 4755 4756 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4759 fi 4760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4762 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4763 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4764 $as_echo_n "(cached) " >&6 4765 else 4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4767 /* end confdefs.h. */ 4768 int i; 4769 _ACEOF 4770 if ac_fn_c_try_compile "$LINENO"; then : 4771 xorg_cv_cc_flag_unused_command_line_argument=yes 4772 else 4773 xorg_cv_cc_flag_unused_command_line_argument=no 4774 fi 4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4776 fi 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4778 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4780 CFLAGS="$xorg_testset_save_CFLAGS" 4781 fi 4782 4783 found="no" 4784 4785 if test $found = "no" ; then 4786 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4788 fi 4789 4790 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4792 fi 4793 4794 CFLAGS="$CFLAGS -Wall" 4795 4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4797 $as_echo_n "checking if $CC supports -Wall... " >&6; } 4798 cacheid=xorg_cv_cc_flag__Wall 4799 if eval \${$cacheid+:} false; then : 4800 $as_echo_n "(cached) " >&6 4801 else 4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4803 /* end confdefs.h. */ 4804 int i; 4805 int 4806 main () 4807 { 4808 4809 ; 4810 return 0; 4811 } 4812 _ACEOF 4813 if ac_fn_c_try_link "$LINENO"; then : 4814 eval $cacheid=yes 4815 else 4816 eval $cacheid=no 4817 fi 4818 rm -f core conftest.err conftest.$ac_objext \ 4819 conftest$ac_exeext conftest.$ac_ext 4820 fi 4821 4822 4823 CFLAGS="$xorg_testset_save_CFLAGS" 4824 4825 eval supported=\$$cacheid 4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4827 $as_echo "$supported" >&6; } 4828 if test "$supported" = "yes" ; then 4829 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4830 found="yes" 4831 fi 4832 fi 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 xorg_testset_save_CFLAGS="$CFLAGS" 4849 4850 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4853 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4854 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4855 $as_echo_n "(cached) " >&6 4856 else 4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4858 /* end confdefs.h. */ 4859 int i; 4860 _ACEOF 4861 if ac_fn_c_try_compile "$LINENO"; then : 4862 xorg_cv_cc_flag_unknown_warning_option=yes 4863 else 4864 xorg_cv_cc_flag_unknown_warning_option=no 4865 fi 4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4867 fi 4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4869 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4871 CFLAGS="$xorg_testset_save_CFLAGS" 4872 fi 4873 4874 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4877 fi 4878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4880 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4881 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4882 $as_echo_n "(cached) " >&6 4883 else 4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4885 /* end confdefs.h. */ 4886 int i; 4887 _ACEOF 4888 if ac_fn_c_try_compile "$LINENO"; then : 4889 xorg_cv_cc_flag_unused_command_line_argument=yes 4890 else 4891 xorg_cv_cc_flag_unused_command_line_argument=no 4892 fi 4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4894 fi 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4896 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4898 CFLAGS="$xorg_testset_save_CFLAGS" 4899 fi 4900 4901 found="no" 4902 4903 if test $found = "no" ; then 4904 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4906 fi 4907 4908 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4910 fi 4911 4912 CFLAGS="$CFLAGS -Wpointer-arith" 4913 4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4915 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4916 cacheid=xorg_cv_cc_flag__Wpointer_arith 4917 if eval \${$cacheid+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919 else 4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4921 /* end confdefs.h. */ 4922 int i; 4923 int 4924 main () 4925 { 4926 4927 ; 4928 return 0; 4929 } 4930 _ACEOF 4931 if ac_fn_c_try_link "$LINENO"; then : 4932 eval $cacheid=yes 4933 else 4934 eval $cacheid=no 4935 fi 4936 rm -f core conftest.err conftest.$ac_objext \ 4937 conftest$ac_exeext conftest.$ac_ext 4938 fi 4939 4940 4941 CFLAGS="$xorg_testset_save_CFLAGS" 4942 4943 eval supported=\$$cacheid 4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4945 $as_echo "$supported" >&6; } 4946 if test "$supported" = "yes" ; then 4947 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4948 found="yes" 4949 fi 4950 fi 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 xorg_testset_save_CFLAGS="$CFLAGS" 4967 4968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4971 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4972 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4973 $as_echo_n "(cached) " >&6 4974 else 4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4976 /* end confdefs.h. */ 4977 int i; 4978 _ACEOF 4979 if ac_fn_c_try_compile "$LINENO"; then : 4980 xorg_cv_cc_flag_unknown_warning_option=yes 4981 else 4982 xorg_cv_cc_flag_unknown_warning_option=no 4983 fi 4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4985 fi 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4987 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4989 CFLAGS="$xorg_testset_save_CFLAGS" 4990 fi 4991 4992 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4995 fi 4996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4998 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4999 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5000 $as_echo_n "(cached) " >&6 5001 else 5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5003 /* end confdefs.h. */ 5004 int i; 5005 _ACEOF 5006 if ac_fn_c_try_compile "$LINENO"; then : 5007 xorg_cv_cc_flag_unused_command_line_argument=yes 5008 else 5009 xorg_cv_cc_flag_unused_command_line_argument=no 5010 fi 5011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5012 fi 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5014 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5016 CFLAGS="$xorg_testset_save_CFLAGS" 5017 fi 5018 5019 found="no" 5020 5021 if test $found = "no" ; then 5022 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5024 fi 5025 5026 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5028 fi 5029 5030 CFLAGS="$CFLAGS -Wmissing-declarations" 5031 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5033 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5034 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5035 if eval \${$cacheid+:} false; then : 5036 $as_echo_n "(cached) " >&6 5037 else 5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5039 /* end confdefs.h. */ 5040 int i; 5041 int 5042 main () 5043 { 5044 5045 ; 5046 return 0; 5047 } 5048 _ACEOF 5049 if ac_fn_c_try_link "$LINENO"; then : 5050 eval $cacheid=yes 5051 else 5052 eval $cacheid=no 5053 fi 5054 rm -f core conftest.err conftest.$ac_objext \ 5055 conftest$ac_exeext conftest.$ac_ext 5056 fi 5057 5058 5059 CFLAGS="$xorg_testset_save_CFLAGS" 5060 5061 eval supported=\$$cacheid 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5063 $as_echo "$supported" >&6; } 5064 if test "$supported" = "yes" ; then 5065 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5066 found="yes" 5067 fi 5068 fi 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 xorg_testset_save_CFLAGS="$CFLAGS" 5085 5086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5089 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5090 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5091 $as_echo_n "(cached) " >&6 5092 else 5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5094 /* end confdefs.h. */ 5095 int i; 5096 _ACEOF 5097 if ac_fn_c_try_compile "$LINENO"; then : 5098 xorg_cv_cc_flag_unknown_warning_option=yes 5099 else 5100 xorg_cv_cc_flag_unknown_warning_option=no 5101 fi 5102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5103 fi 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5105 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5107 CFLAGS="$xorg_testset_save_CFLAGS" 5108 fi 5109 5110 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5113 fi 5114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5116 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5117 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5118 $as_echo_n "(cached) " >&6 5119 else 5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5121 /* end confdefs.h. */ 5122 int i; 5123 _ACEOF 5124 if ac_fn_c_try_compile "$LINENO"; then : 5125 xorg_cv_cc_flag_unused_command_line_argument=yes 5126 else 5127 xorg_cv_cc_flag_unused_command_line_argument=no 5128 fi 5129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5130 fi 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5132 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5134 CFLAGS="$xorg_testset_save_CFLAGS" 5135 fi 5136 5137 found="no" 5138 5139 if test $found = "no" ; then 5140 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5142 fi 5143 5144 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5146 fi 5147 5148 CFLAGS="$CFLAGS -Wformat=2" 5149 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5151 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5152 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5153 if eval \${$cacheid+:} false; then : 5154 $as_echo_n "(cached) " >&6 5155 else 5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5157 /* end confdefs.h. */ 5158 int i; 5159 int 5160 main () 5161 { 5162 5163 ; 5164 return 0; 5165 } 5166 _ACEOF 5167 if ac_fn_c_try_link "$LINENO"; then : 5168 eval $cacheid=yes 5169 else 5170 eval $cacheid=no 5171 fi 5172 rm -f core conftest.err conftest.$ac_objext \ 5173 conftest$ac_exeext conftest.$ac_ext 5174 fi 5175 5176 5177 CFLAGS="$xorg_testset_save_CFLAGS" 5178 5179 eval supported=\$$cacheid 5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5181 $as_echo "$supported" >&6; } 5182 if test "$supported" = "yes" ; then 5183 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5184 found="yes" 5185 fi 5186 fi 5187 5188 if test $found = "no" ; then 5189 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5191 fi 5192 5193 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5195 fi 5196 5197 CFLAGS="$CFLAGS -Wformat" 5198 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5200 $as_echo_n "checking if $CC supports -Wformat... " >&6; } 5201 cacheid=xorg_cv_cc_flag__Wformat 5202 if eval \${$cacheid+:} false; then : 5203 $as_echo_n "(cached) " >&6 5204 else 5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5206 /* end confdefs.h. */ 5207 int i; 5208 int 5209 main () 5210 { 5211 5212 ; 5213 return 0; 5214 } 5215 _ACEOF 5216 if ac_fn_c_try_link "$LINENO"; then : 5217 eval $cacheid=yes 5218 else 5219 eval $cacheid=no 5220 fi 5221 rm -f core conftest.err conftest.$ac_objext \ 5222 conftest$ac_exeext conftest.$ac_ext 5223 fi 5224 5225 5226 CFLAGS="$xorg_testset_save_CFLAGS" 5227 5228 eval supported=\$$cacheid 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5230 $as_echo "$supported" >&6; } 5231 if test "$supported" = "yes" ; then 5232 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5233 found="yes" 5234 fi 5235 fi 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 xorg_testset_save_CFLAGS="$CFLAGS" 5254 5255 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5258 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5259 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5260 $as_echo_n "(cached) " >&6 5261 else 5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5263 /* end confdefs.h. */ 5264 int i; 5265 _ACEOF 5266 if ac_fn_c_try_compile "$LINENO"; then : 5267 xorg_cv_cc_flag_unknown_warning_option=yes 5268 else 5269 xorg_cv_cc_flag_unknown_warning_option=no 5270 fi 5271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5272 fi 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5274 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5276 CFLAGS="$xorg_testset_save_CFLAGS" 5277 fi 5278 5279 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5282 fi 5283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5285 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5286 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5287 $as_echo_n "(cached) " >&6 5288 else 5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5290 /* end confdefs.h. */ 5291 int i; 5292 _ACEOF 5293 if ac_fn_c_try_compile "$LINENO"; then : 5294 xorg_cv_cc_flag_unused_command_line_argument=yes 5295 else 5296 xorg_cv_cc_flag_unused_command_line_argument=no 5297 fi 5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5299 fi 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5301 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5303 CFLAGS="$xorg_testset_save_CFLAGS" 5304 fi 5305 5306 found="no" 5307 5308 if test $found = "no" ; then 5309 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5311 fi 5312 5313 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5315 fi 5316 5317 CFLAGS="$CFLAGS -Wstrict-prototypes" 5318 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5320 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5321 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5322 if eval \${$cacheid+:} false; then : 5323 $as_echo_n "(cached) " >&6 5324 else 5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5326 /* end confdefs.h. */ 5327 int i; 5328 int 5329 main () 5330 { 5331 5332 ; 5333 return 0; 5334 } 5335 _ACEOF 5336 if ac_fn_c_try_link "$LINENO"; then : 5337 eval $cacheid=yes 5338 else 5339 eval $cacheid=no 5340 fi 5341 rm -f core conftest.err conftest.$ac_objext \ 5342 conftest$ac_exeext conftest.$ac_ext 5343 fi 5344 5345 5346 CFLAGS="$xorg_testset_save_CFLAGS" 5347 5348 eval supported=\$$cacheid 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5350 $as_echo "$supported" >&6; } 5351 if test "$supported" = "yes" ; then 5352 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5353 found="yes" 5354 fi 5355 fi 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 xorg_testset_save_CFLAGS="$CFLAGS" 5372 5373 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5376 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5377 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5378 $as_echo_n "(cached) " >&6 5379 else 5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5381 /* end confdefs.h. */ 5382 int i; 5383 _ACEOF 5384 if ac_fn_c_try_compile "$LINENO"; then : 5385 xorg_cv_cc_flag_unknown_warning_option=yes 5386 else 5387 xorg_cv_cc_flag_unknown_warning_option=no 5388 fi 5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5390 fi 5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5392 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5394 CFLAGS="$xorg_testset_save_CFLAGS" 5395 fi 5396 5397 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5400 fi 5401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5403 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5404 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5405 $as_echo_n "(cached) " >&6 5406 else 5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5408 /* end confdefs.h. */ 5409 int i; 5410 _ACEOF 5411 if ac_fn_c_try_compile "$LINENO"; then : 5412 xorg_cv_cc_flag_unused_command_line_argument=yes 5413 else 5414 xorg_cv_cc_flag_unused_command_line_argument=no 5415 fi 5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5417 fi 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5419 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5421 CFLAGS="$xorg_testset_save_CFLAGS" 5422 fi 5423 5424 found="no" 5425 5426 if test $found = "no" ; then 5427 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5429 fi 5430 5431 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5433 fi 5434 5435 CFLAGS="$CFLAGS -Wmissing-prototypes" 5436 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5438 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5439 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5440 if eval \${$cacheid+:} false; then : 5441 $as_echo_n "(cached) " >&6 5442 else 5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5444 /* end confdefs.h. */ 5445 int i; 5446 int 5447 main () 5448 { 5449 5450 ; 5451 return 0; 5452 } 5453 _ACEOF 5454 if ac_fn_c_try_link "$LINENO"; then : 5455 eval $cacheid=yes 5456 else 5457 eval $cacheid=no 5458 fi 5459 rm -f core conftest.err conftest.$ac_objext \ 5460 conftest$ac_exeext conftest.$ac_ext 5461 fi 5462 5463 5464 CFLAGS="$xorg_testset_save_CFLAGS" 5465 5466 eval supported=\$$cacheid 5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5468 $as_echo "$supported" >&6; } 5469 if test "$supported" = "yes" ; then 5470 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5471 found="yes" 5472 fi 5473 fi 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 xorg_testset_save_CFLAGS="$CFLAGS" 5490 5491 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5494 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5495 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5496 $as_echo_n "(cached) " >&6 5497 else 5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5499 /* end confdefs.h. */ 5500 int i; 5501 _ACEOF 5502 if ac_fn_c_try_compile "$LINENO"; then : 5503 xorg_cv_cc_flag_unknown_warning_option=yes 5504 else 5505 xorg_cv_cc_flag_unknown_warning_option=no 5506 fi 5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5508 fi 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5510 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5511 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5512 CFLAGS="$xorg_testset_save_CFLAGS" 5513 fi 5514 5515 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5518 fi 5519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5521 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5522 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5523 $as_echo_n "(cached) " >&6 5524 else 5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5526 /* end confdefs.h. */ 5527 int i; 5528 _ACEOF 5529 if ac_fn_c_try_compile "$LINENO"; then : 5530 xorg_cv_cc_flag_unused_command_line_argument=yes 5531 else 5532 xorg_cv_cc_flag_unused_command_line_argument=no 5533 fi 5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5535 fi 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5537 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5539 CFLAGS="$xorg_testset_save_CFLAGS" 5540 fi 5541 5542 found="no" 5543 5544 if test $found = "no" ; then 5545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5547 fi 5548 5549 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5551 fi 5552 5553 CFLAGS="$CFLAGS -Wnested-externs" 5554 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5556 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5557 cacheid=xorg_cv_cc_flag__Wnested_externs 5558 if eval \${$cacheid+:} false; then : 5559 $as_echo_n "(cached) " >&6 5560 else 5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5562 /* end confdefs.h. */ 5563 int i; 5564 int 5565 main () 5566 { 5567 5568 ; 5569 return 0; 5570 } 5571 _ACEOF 5572 if ac_fn_c_try_link "$LINENO"; then : 5573 eval $cacheid=yes 5574 else 5575 eval $cacheid=no 5576 fi 5577 rm -f core conftest.err conftest.$ac_objext \ 5578 conftest$ac_exeext conftest.$ac_ext 5579 fi 5580 5581 5582 CFLAGS="$xorg_testset_save_CFLAGS" 5583 5584 eval supported=\$$cacheid 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5586 $as_echo "$supported" >&6; } 5587 if test "$supported" = "yes" ; then 5588 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5589 found="yes" 5590 fi 5591 fi 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 xorg_testset_save_CFLAGS="$CFLAGS" 5608 5609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5612 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5613 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5614 $as_echo_n "(cached) " >&6 5615 else 5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5617 /* end confdefs.h. */ 5618 int i; 5619 _ACEOF 5620 if ac_fn_c_try_compile "$LINENO"; then : 5621 xorg_cv_cc_flag_unknown_warning_option=yes 5622 else 5623 xorg_cv_cc_flag_unknown_warning_option=no 5624 fi 5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5626 fi 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5628 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5630 CFLAGS="$xorg_testset_save_CFLAGS" 5631 fi 5632 5633 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5636 fi 5637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5639 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5640 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5641 $as_echo_n "(cached) " >&6 5642 else 5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5644 /* end confdefs.h. */ 5645 int i; 5646 _ACEOF 5647 if ac_fn_c_try_compile "$LINENO"; then : 5648 xorg_cv_cc_flag_unused_command_line_argument=yes 5649 else 5650 xorg_cv_cc_flag_unused_command_line_argument=no 5651 fi 5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5653 fi 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5655 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5657 CFLAGS="$xorg_testset_save_CFLAGS" 5658 fi 5659 5660 found="no" 5661 5662 if test $found = "no" ; then 5663 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5665 fi 5666 5667 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5669 fi 5670 5671 CFLAGS="$CFLAGS -Wbad-function-cast" 5672 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5674 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5675 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5676 if eval \${$cacheid+:} false; then : 5677 $as_echo_n "(cached) " >&6 5678 else 5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5680 /* end confdefs.h. */ 5681 int i; 5682 int 5683 main () 5684 { 5685 5686 ; 5687 return 0; 5688 } 5689 _ACEOF 5690 if ac_fn_c_try_link "$LINENO"; then : 5691 eval $cacheid=yes 5692 else 5693 eval $cacheid=no 5694 fi 5695 rm -f core conftest.err conftest.$ac_objext \ 5696 conftest$ac_exeext conftest.$ac_ext 5697 fi 5698 5699 5700 CFLAGS="$xorg_testset_save_CFLAGS" 5701 5702 eval supported=\$$cacheid 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5704 $as_echo "$supported" >&6; } 5705 if test "$supported" = "yes" ; then 5706 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5707 found="yes" 5708 fi 5709 fi 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 xorg_testset_save_CFLAGS="$CFLAGS" 5726 5727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5732 $as_echo_n "(cached) " >&6 5733 else 5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5735 /* end confdefs.h. */ 5736 int i; 5737 _ACEOF 5738 if ac_fn_c_try_compile "$LINENO"; then : 5739 xorg_cv_cc_flag_unknown_warning_option=yes 5740 else 5741 xorg_cv_cc_flag_unknown_warning_option=no 5742 fi 5743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5744 fi 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5748 CFLAGS="$xorg_testset_save_CFLAGS" 5749 fi 5750 5751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5754 fi 5755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5759 $as_echo_n "(cached) " >&6 5760 else 5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5762 /* end confdefs.h. */ 5763 int i; 5764 _ACEOF 5765 if ac_fn_c_try_compile "$LINENO"; then : 5766 xorg_cv_cc_flag_unused_command_line_argument=yes 5767 else 5768 xorg_cv_cc_flag_unused_command_line_argument=no 5769 fi 5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5771 fi 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5775 CFLAGS="$xorg_testset_save_CFLAGS" 5776 fi 5777 5778 found="no" 5779 5780 if test $found = "no" ; then 5781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5783 fi 5784 5785 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5787 fi 5788 5789 CFLAGS="$CFLAGS -Wold-style-definition" 5790 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5792 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5793 cacheid=xorg_cv_cc_flag__Wold_style_definition 5794 if eval \${$cacheid+:} false; then : 5795 $as_echo_n "(cached) " >&6 5796 else 5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5798 /* end confdefs.h. */ 5799 int i; 5800 int 5801 main () 5802 { 5803 5804 ; 5805 return 0; 5806 } 5807 _ACEOF 5808 if ac_fn_c_try_link "$LINENO"; then : 5809 eval $cacheid=yes 5810 else 5811 eval $cacheid=no 5812 fi 5813 rm -f core conftest.err conftest.$ac_objext \ 5814 conftest$ac_exeext conftest.$ac_ext 5815 fi 5816 5817 5818 CFLAGS="$xorg_testset_save_CFLAGS" 5819 5820 eval supported=\$$cacheid 5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5822 $as_echo "$supported" >&6; } 5823 if test "$supported" = "yes" ; then 5824 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5825 found="yes" 5826 fi 5827 fi 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 xorg_testset_save_CFLAGS="$CFLAGS" 5844 5845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5848 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5849 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5850 $as_echo_n "(cached) " >&6 5851 else 5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5853 /* end confdefs.h. */ 5854 int i; 5855 _ACEOF 5856 if ac_fn_c_try_compile "$LINENO"; then : 5857 xorg_cv_cc_flag_unknown_warning_option=yes 5858 else 5859 xorg_cv_cc_flag_unknown_warning_option=no 5860 fi 5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5862 fi 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5864 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5866 CFLAGS="$xorg_testset_save_CFLAGS" 5867 fi 5868 5869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5872 fi 5873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5875 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5876 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5877 $as_echo_n "(cached) " >&6 5878 else 5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5880 /* end confdefs.h. */ 5881 int i; 5882 _ACEOF 5883 if ac_fn_c_try_compile "$LINENO"; then : 5884 xorg_cv_cc_flag_unused_command_line_argument=yes 5885 else 5886 xorg_cv_cc_flag_unused_command_line_argument=no 5887 fi 5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5889 fi 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5891 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5893 CFLAGS="$xorg_testset_save_CFLAGS" 5894 fi 5895 5896 found="no" 5897 5898 if test $found = "no" ; then 5899 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5901 fi 5902 5903 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5905 fi 5906 5907 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5908 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5910 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5911 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5912 if eval \${$cacheid+:} false; then : 5913 $as_echo_n "(cached) " >&6 5914 else 5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5916 /* end confdefs.h. */ 5917 int i; 5918 int 5919 main () 5920 { 5921 5922 ; 5923 return 0; 5924 } 5925 _ACEOF 5926 if ac_fn_c_try_link "$LINENO"; then : 5927 eval $cacheid=yes 5928 else 5929 eval $cacheid=no 5930 fi 5931 rm -f core conftest.err conftest.$ac_objext \ 5932 conftest$ac_exeext conftest.$ac_ext 5933 fi 5934 5935 5936 CFLAGS="$xorg_testset_save_CFLAGS" 5937 5938 eval supported=\$$cacheid 5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5940 $as_echo "$supported" >&6; } 5941 if test "$supported" = "yes" ; then 5942 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5943 found="yes" 5944 fi 5945 fi 5946 5947 5948 5949 5950 5951 # This chunk adds additional warnings that could catch undesired effects. 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 xorg_testset_save_CFLAGS="$CFLAGS" 5966 5967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5970 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5971 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5972 $as_echo_n "(cached) " >&6 5973 else 5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5975 /* end confdefs.h. */ 5976 int i; 5977 _ACEOF 5978 if ac_fn_c_try_compile "$LINENO"; then : 5979 xorg_cv_cc_flag_unknown_warning_option=yes 5980 else 5981 xorg_cv_cc_flag_unknown_warning_option=no 5982 fi 5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5984 fi 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5986 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5988 CFLAGS="$xorg_testset_save_CFLAGS" 5989 fi 5990 5991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5994 fi 5995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5997 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5998 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5999 $as_echo_n "(cached) " >&6 6000 else 6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6002 /* end confdefs.h. */ 6003 int i; 6004 _ACEOF 6005 if ac_fn_c_try_compile "$LINENO"; then : 6006 xorg_cv_cc_flag_unused_command_line_argument=yes 6007 else 6008 xorg_cv_cc_flag_unused_command_line_argument=no 6009 fi 6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6011 fi 6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6013 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6015 CFLAGS="$xorg_testset_save_CFLAGS" 6016 fi 6017 6018 found="no" 6019 6020 if test $found = "no" ; then 6021 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6023 fi 6024 6025 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6027 fi 6028 6029 CFLAGS="$CFLAGS -Wunused" 6030 6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6032 $as_echo_n "checking if $CC supports -Wunused... " >&6; } 6033 cacheid=xorg_cv_cc_flag__Wunused 6034 if eval \${$cacheid+:} false; then : 6035 $as_echo_n "(cached) " >&6 6036 else 6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6038 /* end confdefs.h. */ 6039 int i; 6040 int 6041 main () 6042 { 6043 6044 ; 6045 return 0; 6046 } 6047 _ACEOF 6048 if ac_fn_c_try_link "$LINENO"; then : 6049 eval $cacheid=yes 6050 else 6051 eval $cacheid=no 6052 fi 6053 rm -f core conftest.err conftest.$ac_objext \ 6054 conftest$ac_exeext conftest.$ac_ext 6055 fi 6056 6057 6058 CFLAGS="$xorg_testset_save_CFLAGS" 6059 6060 eval supported=\$$cacheid 6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6062 $as_echo "$supported" >&6; } 6063 if test "$supported" = "yes" ; then 6064 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6065 found="yes" 6066 fi 6067 fi 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 xorg_testset_save_CFLAGS="$CFLAGS" 6084 6085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6089 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6090 $as_echo_n "(cached) " >&6 6091 else 6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6093 /* end confdefs.h. */ 6094 int i; 6095 _ACEOF 6096 if ac_fn_c_try_compile "$LINENO"; then : 6097 xorg_cv_cc_flag_unknown_warning_option=yes 6098 else 6099 xorg_cv_cc_flag_unknown_warning_option=no 6100 fi 6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6102 fi 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6104 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6106 CFLAGS="$xorg_testset_save_CFLAGS" 6107 fi 6108 6109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6112 fi 6113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6115 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6116 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6117 $as_echo_n "(cached) " >&6 6118 else 6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6120 /* end confdefs.h. */ 6121 int i; 6122 _ACEOF 6123 if ac_fn_c_try_compile "$LINENO"; then : 6124 xorg_cv_cc_flag_unused_command_line_argument=yes 6125 else 6126 xorg_cv_cc_flag_unused_command_line_argument=no 6127 fi 6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6129 fi 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6131 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6133 CFLAGS="$xorg_testset_save_CFLAGS" 6134 fi 6135 6136 found="no" 6137 6138 if test $found = "no" ; then 6139 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6141 fi 6142 6143 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6145 fi 6146 6147 CFLAGS="$CFLAGS -Wuninitialized" 6148 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6150 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6151 cacheid=xorg_cv_cc_flag__Wuninitialized 6152 if eval \${$cacheid+:} false; then : 6153 $as_echo_n "(cached) " >&6 6154 else 6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6156 /* end confdefs.h. */ 6157 int i; 6158 int 6159 main () 6160 { 6161 6162 ; 6163 return 0; 6164 } 6165 _ACEOF 6166 if ac_fn_c_try_link "$LINENO"; then : 6167 eval $cacheid=yes 6168 else 6169 eval $cacheid=no 6170 fi 6171 rm -f core conftest.err conftest.$ac_objext \ 6172 conftest$ac_exeext conftest.$ac_ext 6173 fi 6174 6175 6176 CFLAGS="$xorg_testset_save_CFLAGS" 6177 6178 eval supported=\$$cacheid 6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6180 $as_echo "$supported" >&6; } 6181 if test "$supported" = "yes" ; then 6182 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6183 found="yes" 6184 fi 6185 fi 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 xorg_testset_save_CFLAGS="$CFLAGS" 6202 6203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6208 $as_echo_n "(cached) " >&6 6209 else 6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6211 /* end confdefs.h. */ 6212 int i; 6213 _ACEOF 6214 if ac_fn_c_try_compile "$LINENO"; then : 6215 xorg_cv_cc_flag_unknown_warning_option=yes 6216 else 6217 xorg_cv_cc_flag_unknown_warning_option=no 6218 fi 6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6220 fi 6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6224 CFLAGS="$xorg_testset_save_CFLAGS" 6225 fi 6226 6227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6230 fi 6231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6235 $as_echo_n "(cached) " >&6 6236 else 6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6238 /* end confdefs.h. */ 6239 int i; 6240 _ACEOF 6241 if ac_fn_c_try_compile "$LINENO"; then : 6242 xorg_cv_cc_flag_unused_command_line_argument=yes 6243 else 6244 xorg_cv_cc_flag_unused_command_line_argument=no 6245 fi 6246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6247 fi 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6251 CFLAGS="$xorg_testset_save_CFLAGS" 6252 fi 6253 6254 found="no" 6255 6256 if test $found = "no" ; then 6257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6259 fi 6260 6261 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6263 fi 6264 6265 CFLAGS="$CFLAGS -Wshadow" 6266 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6268 $as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6269 cacheid=xorg_cv_cc_flag__Wshadow 6270 if eval \${$cacheid+:} false; then : 6271 $as_echo_n "(cached) " >&6 6272 else 6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6274 /* end confdefs.h. */ 6275 int i; 6276 int 6277 main () 6278 { 6279 6280 ; 6281 return 0; 6282 } 6283 _ACEOF 6284 if ac_fn_c_try_link "$LINENO"; then : 6285 eval $cacheid=yes 6286 else 6287 eval $cacheid=no 6288 fi 6289 rm -f core conftest.err conftest.$ac_objext \ 6290 conftest$ac_exeext conftest.$ac_ext 6291 fi 6292 6293 6294 CFLAGS="$xorg_testset_save_CFLAGS" 6295 6296 eval supported=\$$cacheid 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6298 $as_echo "$supported" >&6; } 6299 if test "$supported" = "yes" ; then 6300 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6301 found="yes" 6302 fi 6303 fi 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 xorg_testset_save_CFLAGS="$CFLAGS" 6320 6321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6326 $as_echo_n "(cached) " >&6 6327 else 6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6329 /* end confdefs.h. */ 6330 int i; 6331 _ACEOF 6332 if ac_fn_c_try_compile "$LINENO"; then : 6333 xorg_cv_cc_flag_unknown_warning_option=yes 6334 else 6335 xorg_cv_cc_flag_unknown_warning_option=no 6336 fi 6337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6338 fi 6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6342 CFLAGS="$xorg_testset_save_CFLAGS" 6343 fi 6344 6345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6348 fi 6349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6353 $as_echo_n "(cached) " >&6 6354 else 6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6356 /* end confdefs.h. */ 6357 int i; 6358 _ACEOF 6359 if ac_fn_c_try_compile "$LINENO"; then : 6360 xorg_cv_cc_flag_unused_command_line_argument=yes 6361 else 6362 xorg_cv_cc_flag_unused_command_line_argument=no 6363 fi 6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6365 fi 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6369 CFLAGS="$xorg_testset_save_CFLAGS" 6370 fi 6371 6372 found="no" 6373 6374 if test $found = "no" ; then 6375 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6377 fi 6378 6379 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6381 fi 6382 6383 CFLAGS="$CFLAGS -Wcast-qual" 6384 6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6386 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6387 cacheid=xorg_cv_cc_flag__Wcast_qual 6388 if eval \${$cacheid+:} false; then : 6389 $as_echo_n "(cached) " >&6 6390 else 6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6392 /* end confdefs.h. */ 6393 int i; 6394 int 6395 main () 6396 { 6397 6398 ; 6399 return 0; 6400 } 6401 _ACEOF 6402 if ac_fn_c_try_link "$LINENO"; then : 6403 eval $cacheid=yes 6404 else 6405 eval $cacheid=no 6406 fi 6407 rm -f core conftest.err conftest.$ac_objext \ 6408 conftest$ac_exeext conftest.$ac_ext 6409 fi 6410 6411 6412 CFLAGS="$xorg_testset_save_CFLAGS" 6413 6414 eval supported=\$$cacheid 6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6416 $as_echo "$supported" >&6; } 6417 if test "$supported" = "yes" ; then 6418 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6419 found="yes" 6420 fi 6421 fi 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 xorg_testset_save_CFLAGS="$CFLAGS" 6438 6439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6442 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6443 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6444 $as_echo_n "(cached) " >&6 6445 else 6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6447 /* end confdefs.h. */ 6448 int i; 6449 _ACEOF 6450 if ac_fn_c_try_compile "$LINENO"; then : 6451 xorg_cv_cc_flag_unknown_warning_option=yes 6452 else 6453 xorg_cv_cc_flag_unknown_warning_option=no 6454 fi 6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6456 fi 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6458 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6460 CFLAGS="$xorg_testset_save_CFLAGS" 6461 fi 6462 6463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6466 fi 6467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6469 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6470 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6471 $as_echo_n "(cached) " >&6 6472 else 6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6474 /* end confdefs.h. */ 6475 int i; 6476 _ACEOF 6477 if ac_fn_c_try_compile "$LINENO"; then : 6478 xorg_cv_cc_flag_unused_command_line_argument=yes 6479 else 6480 xorg_cv_cc_flag_unused_command_line_argument=no 6481 fi 6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6483 fi 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6485 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6487 CFLAGS="$xorg_testset_save_CFLAGS" 6488 fi 6489 6490 found="no" 6491 6492 if test $found = "no" ; then 6493 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6495 fi 6496 6497 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6499 fi 6500 6501 CFLAGS="$CFLAGS -Wmissing-noreturn" 6502 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6504 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6505 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6506 if eval \${$cacheid+:} false; then : 6507 $as_echo_n "(cached) " >&6 6508 else 6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6510 /* end confdefs.h. */ 6511 int i; 6512 int 6513 main () 6514 { 6515 6516 ; 6517 return 0; 6518 } 6519 _ACEOF 6520 if ac_fn_c_try_link "$LINENO"; then : 6521 eval $cacheid=yes 6522 else 6523 eval $cacheid=no 6524 fi 6525 rm -f core conftest.err conftest.$ac_objext \ 6526 conftest$ac_exeext conftest.$ac_ext 6527 fi 6528 6529 6530 CFLAGS="$xorg_testset_save_CFLAGS" 6531 6532 eval supported=\$$cacheid 6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6534 $as_echo "$supported" >&6; } 6535 if test "$supported" = "yes" ; then 6536 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6537 found="yes" 6538 fi 6539 fi 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 xorg_testset_save_CFLAGS="$CFLAGS" 6556 6557 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6560 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6561 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6562 $as_echo_n "(cached) " >&6 6563 else 6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6565 /* end confdefs.h. */ 6566 int i; 6567 _ACEOF 6568 if ac_fn_c_try_compile "$LINENO"; then : 6569 xorg_cv_cc_flag_unknown_warning_option=yes 6570 else 6571 xorg_cv_cc_flag_unknown_warning_option=no 6572 fi 6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6574 fi 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6576 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6578 CFLAGS="$xorg_testset_save_CFLAGS" 6579 fi 6580 6581 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6584 fi 6585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6587 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6588 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6589 $as_echo_n "(cached) " >&6 6590 else 6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6592 /* end confdefs.h. */ 6593 int i; 6594 _ACEOF 6595 if ac_fn_c_try_compile "$LINENO"; then : 6596 xorg_cv_cc_flag_unused_command_line_argument=yes 6597 else 6598 xorg_cv_cc_flag_unused_command_line_argument=no 6599 fi 6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6601 fi 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6603 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6605 CFLAGS="$xorg_testset_save_CFLAGS" 6606 fi 6607 6608 found="no" 6609 6610 if test $found = "no" ; then 6611 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6613 fi 6614 6615 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6617 fi 6618 6619 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6620 6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6622 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6623 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6624 if eval \${$cacheid+:} false; then : 6625 $as_echo_n "(cached) " >&6 6626 else 6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6628 /* end confdefs.h. */ 6629 int i; 6630 int 6631 main () 6632 { 6633 6634 ; 6635 return 0; 6636 } 6637 _ACEOF 6638 if ac_fn_c_try_link "$LINENO"; then : 6639 eval $cacheid=yes 6640 else 6641 eval $cacheid=no 6642 fi 6643 rm -f core conftest.err conftest.$ac_objext \ 6644 conftest$ac_exeext conftest.$ac_ext 6645 fi 6646 6647 6648 CFLAGS="$xorg_testset_save_CFLAGS" 6649 6650 eval supported=\$$cacheid 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6652 $as_echo "$supported" >&6; } 6653 if test "$supported" = "yes" ; then 6654 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6655 found="yes" 6656 fi 6657 fi 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 xorg_testset_save_CFLAGS="$CFLAGS" 6674 6675 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6678 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6679 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6680 $as_echo_n "(cached) " >&6 6681 else 6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6683 /* end confdefs.h. */ 6684 int i; 6685 _ACEOF 6686 if ac_fn_c_try_compile "$LINENO"; then : 6687 xorg_cv_cc_flag_unknown_warning_option=yes 6688 else 6689 xorg_cv_cc_flag_unknown_warning_option=no 6690 fi 6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6692 fi 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6694 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6696 CFLAGS="$xorg_testset_save_CFLAGS" 6697 fi 6698 6699 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6702 fi 6703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6705 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6706 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6707 $as_echo_n "(cached) " >&6 6708 else 6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6710 /* end confdefs.h. */ 6711 int i; 6712 _ACEOF 6713 if ac_fn_c_try_compile "$LINENO"; then : 6714 xorg_cv_cc_flag_unused_command_line_argument=yes 6715 else 6716 xorg_cv_cc_flag_unused_command_line_argument=no 6717 fi 6718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6719 fi 6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6721 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6723 CFLAGS="$xorg_testset_save_CFLAGS" 6724 fi 6725 6726 found="no" 6727 6728 if test $found = "no" ; then 6729 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6731 fi 6732 6733 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6735 fi 6736 6737 CFLAGS="$CFLAGS -Wredundant-decls" 6738 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6740 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6741 cacheid=xorg_cv_cc_flag__Wredundant_decls 6742 if eval \${$cacheid+:} false; then : 6743 $as_echo_n "(cached) " >&6 6744 else 6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6746 /* end confdefs.h. */ 6747 int i; 6748 int 6749 main () 6750 { 6751 6752 ; 6753 return 0; 6754 } 6755 _ACEOF 6756 if ac_fn_c_try_link "$LINENO"; then : 6757 eval $cacheid=yes 6758 else 6759 eval $cacheid=no 6760 fi 6761 rm -f core conftest.err conftest.$ac_objext \ 6762 conftest$ac_exeext conftest.$ac_ext 6763 fi 6764 6765 6766 CFLAGS="$xorg_testset_save_CFLAGS" 6767 6768 eval supported=\$$cacheid 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6770 $as_echo "$supported" >&6; } 6771 if test "$supported" = "yes" ; then 6772 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6773 found="yes" 6774 fi 6775 fi 6776 6777 6778 6779 # These are currently disabled because they are noisy. They will be enabled 6780 # in the future once the codebase is sufficiently modernized to silence 6781 # them. For now, I don't want them to drown out the other warnings. 6782 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6783 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6784 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6785 6786 # Turn some warnings into errors, so we don't accidently get successful builds 6787 # when there are problems that should be fixed. 6788 6789 if test "x$SELECTIVE_WERROR" = "xyes" ; then 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 xorg_testset_save_CFLAGS="$CFLAGS" 6804 6805 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6808 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6809 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6810 $as_echo_n "(cached) " >&6 6811 else 6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6813 /* end confdefs.h. */ 6814 int i; 6815 _ACEOF 6816 if ac_fn_c_try_compile "$LINENO"; then : 6817 xorg_cv_cc_flag_unknown_warning_option=yes 6818 else 6819 xorg_cv_cc_flag_unknown_warning_option=no 6820 fi 6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6822 fi 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6824 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6826 CFLAGS="$xorg_testset_save_CFLAGS" 6827 fi 6828 6829 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6832 fi 6833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6835 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6836 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6837 $as_echo_n "(cached) " >&6 6838 else 6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6840 /* end confdefs.h. */ 6841 int i; 6842 _ACEOF 6843 if ac_fn_c_try_compile "$LINENO"; then : 6844 xorg_cv_cc_flag_unused_command_line_argument=yes 6845 else 6846 xorg_cv_cc_flag_unused_command_line_argument=no 6847 fi 6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6849 fi 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6851 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6853 CFLAGS="$xorg_testset_save_CFLAGS" 6854 fi 6855 6856 found="no" 6857 6858 if test $found = "no" ; then 6859 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6861 fi 6862 6863 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6865 fi 6866 6867 CFLAGS="$CFLAGS -Werror=implicit" 6868 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6870 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6871 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6872 if eval \${$cacheid+:} false; then : 6873 $as_echo_n "(cached) " >&6 6874 else 6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6876 /* end confdefs.h. */ 6877 int i; 6878 int 6879 main () 6880 { 6881 6882 ; 6883 return 0; 6884 } 6885 _ACEOF 6886 if ac_fn_c_try_link "$LINENO"; then : 6887 eval $cacheid=yes 6888 else 6889 eval $cacheid=no 6890 fi 6891 rm -f core conftest.err conftest.$ac_objext \ 6892 conftest$ac_exeext conftest.$ac_ext 6893 fi 6894 6895 6896 CFLAGS="$xorg_testset_save_CFLAGS" 6897 6898 eval supported=\$$cacheid 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6900 $as_echo "$supported" >&6; } 6901 if test "$supported" = "yes" ; then 6902 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6903 found="yes" 6904 fi 6905 fi 6906 6907 if test $found = "no" ; then 6908 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6910 fi 6911 6912 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6914 fi 6915 6916 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6917 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6919 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6920 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6921 if eval \${$cacheid+:} false; then : 6922 $as_echo_n "(cached) " >&6 6923 else 6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6925 /* end confdefs.h. */ 6926 int i; 6927 int 6928 main () 6929 { 6930 6931 ; 6932 return 0; 6933 } 6934 _ACEOF 6935 if ac_fn_c_try_link "$LINENO"; then : 6936 eval $cacheid=yes 6937 else 6938 eval $cacheid=no 6939 fi 6940 rm -f core conftest.err conftest.$ac_objext \ 6941 conftest$ac_exeext conftest.$ac_ext 6942 fi 6943 6944 6945 CFLAGS="$xorg_testset_save_CFLAGS" 6946 6947 eval supported=\$$cacheid 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6949 $as_echo "$supported" >&6; } 6950 if test "$supported" = "yes" ; then 6951 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6952 found="yes" 6953 fi 6954 fi 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 xorg_testset_save_CFLAGS="$CFLAGS" 6971 6972 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6975 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6976 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6977 $as_echo_n "(cached) " >&6 6978 else 6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6980 /* end confdefs.h. */ 6981 int i; 6982 _ACEOF 6983 if ac_fn_c_try_compile "$LINENO"; then : 6984 xorg_cv_cc_flag_unknown_warning_option=yes 6985 else 6986 xorg_cv_cc_flag_unknown_warning_option=no 6987 fi 6988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6989 fi 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6991 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6993 CFLAGS="$xorg_testset_save_CFLAGS" 6994 fi 6995 6996 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6999 fi 7000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7002 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7003 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7004 $as_echo_n "(cached) " >&6 7005 else 7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7007 /* end confdefs.h. */ 7008 int i; 7009 _ACEOF 7010 if ac_fn_c_try_compile "$LINENO"; then : 7011 xorg_cv_cc_flag_unused_command_line_argument=yes 7012 else 7013 xorg_cv_cc_flag_unused_command_line_argument=no 7014 fi 7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7016 fi 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7018 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7020 CFLAGS="$xorg_testset_save_CFLAGS" 7021 fi 7022 7023 found="no" 7024 7025 if test $found = "no" ; then 7026 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7028 fi 7029 7030 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7032 fi 7033 7034 CFLAGS="$CFLAGS -Werror=nonnull" 7035 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7037 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7038 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 7039 if eval \${$cacheid+:} false; then : 7040 $as_echo_n "(cached) " >&6 7041 else 7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7043 /* end confdefs.h. */ 7044 int i; 7045 int 7046 main () 7047 { 7048 7049 ; 7050 return 0; 7051 } 7052 _ACEOF 7053 if ac_fn_c_try_link "$LINENO"; then : 7054 eval $cacheid=yes 7055 else 7056 eval $cacheid=no 7057 fi 7058 rm -f core conftest.err conftest.$ac_objext \ 7059 conftest$ac_exeext conftest.$ac_ext 7060 fi 7061 7062 7063 CFLAGS="$xorg_testset_save_CFLAGS" 7064 7065 eval supported=\$$cacheid 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7067 $as_echo "$supported" >&6; } 7068 if test "$supported" = "yes" ; then 7069 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7070 found="yes" 7071 fi 7072 fi 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 xorg_testset_save_CFLAGS="$CFLAGS" 7089 7090 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7093 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7094 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7095 $as_echo_n "(cached) " >&6 7096 else 7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7098 /* end confdefs.h. */ 7099 int i; 7100 _ACEOF 7101 if ac_fn_c_try_compile "$LINENO"; then : 7102 xorg_cv_cc_flag_unknown_warning_option=yes 7103 else 7104 xorg_cv_cc_flag_unknown_warning_option=no 7105 fi 7106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7107 fi 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7109 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7111 CFLAGS="$xorg_testset_save_CFLAGS" 7112 fi 7113 7114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7117 fi 7118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7120 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7121 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7122 $as_echo_n "(cached) " >&6 7123 else 7124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7125 /* end confdefs.h. */ 7126 int i; 7127 _ACEOF 7128 if ac_fn_c_try_compile "$LINENO"; then : 7129 xorg_cv_cc_flag_unused_command_line_argument=yes 7130 else 7131 xorg_cv_cc_flag_unused_command_line_argument=no 7132 fi 7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7134 fi 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7136 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7138 CFLAGS="$xorg_testset_save_CFLAGS" 7139 fi 7140 7141 found="no" 7142 7143 if test $found = "no" ; then 7144 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7146 fi 7147 7148 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7150 fi 7151 7152 CFLAGS="$CFLAGS -Werror=init-self" 7153 7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7155 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7156 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7157 if eval \${$cacheid+:} false; then : 7158 $as_echo_n "(cached) " >&6 7159 else 7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7161 /* end confdefs.h. */ 7162 int i; 7163 int 7164 main () 7165 { 7166 7167 ; 7168 return 0; 7169 } 7170 _ACEOF 7171 if ac_fn_c_try_link "$LINENO"; then : 7172 eval $cacheid=yes 7173 else 7174 eval $cacheid=no 7175 fi 7176 rm -f core conftest.err conftest.$ac_objext \ 7177 conftest$ac_exeext conftest.$ac_ext 7178 fi 7179 7180 7181 CFLAGS="$xorg_testset_save_CFLAGS" 7182 7183 eval supported=\$$cacheid 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7185 $as_echo "$supported" >&6; } 7186 if test "$supported" = "yes" ; then 7187 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7188 found="yes" 7189 fi 7190 fi 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 xorg_testset_save_CFLAGS="$CFLAGS" 7207 7208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7211 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7212 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7213 $as_echo_n "(cached) " >&6 7214 else 7215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7216 /* end confdefs.h. */ 7217 int i; 7218 _ACEOF 7219 if ac_fn_c_try_compile "$LINENO"; then : 7220 xorg_cv_cc_flag_unknown_warning_option=yes 7221 else 7222 xorg_cv_cc_flag_unknown_warning_option=no 7223 fi 7224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7225 fi 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7227 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7229 CFLAGS="$xorg_testset_save_CFLAGS" 7230 fi 7231 7232 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7235 fi 7236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7238 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7239 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7240 $as_echo_n "(cached) " >&6 7241 else 7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7243 /* end confdefs.h. */ 7244 int i; 7245 _ACEOF 7246 if ac_fn_c_try_compile "$LINENO"; then : 7247 xorg_cv_cc_flag_unused_command_line_argument=yes 7248 else 7249 xorg_cv_cc_flag_unused_command_line_argument=no 7250 fi 7251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7252 fi 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7254 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7256 CFLAGS="$xorg_testset_save_CFLAGS" 7257 fi 7258 7259 found="no" 7260 7261 if test $found = "no" ; then 7262 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7264 fi 7265 7266 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7268 fi 7269 7270 CFLAGS="$CFLAGS -Werror=main" 7271 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7273 $as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7274 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7275 if eval \${$cacheid+:} false; then : 7276 $as_echo_n "(cached) " >&6 7277 else 7278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7279 /* end confdefs.h. */ 7280 int i; 7281 int 7282 main () 7283 { 7284 7285 ; 7286 return 0; 7287 } 7288 _ACEOF 7289 if ac_fn_c_try_link "$LINENO"; then : 7290 eval $cacheid=yes 7291 else 7292 eval $cacheid=no 7293 fi 7294 rm -f core conftest.err conftest.$ac_objext \ 7295 conftest$ac_exeext conftest.$ac_ext 7296 fi 7297 7298 7299 CFLAGS="$xorg_testset_save_CFLAGS" 7300 7301 eval supported=\$$cacheid 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7303 $as_echo "$supported" >&6; } 7304 if test "$supported" = "yes" ; then 7305 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7306 found="yes" 7307 fi 7308 fi 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 xorg_testset_save_CFLAGS="$CFLAGS" 7325 7326 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7329 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7330 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7331 $as_echo_n "(cached) " >&6 7332 else 7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7334 /* end confdefs.h. */ 7335 int i; 7336 _ACEOF 7337 if ac_fn_c_try_compile "$LINENO"; then : 7338 xorg_cv_cc_flag_unknown_warning_option=yes 7339 else 7340 xorg_cv_cc_flag_unknown_warning_option=no 7341 fi 7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7343 fi 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7345 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7347 CFLAGS="$xorg_testset_save_CFLAGS" 7348 fi 7349 7350 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7353 fi 7354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7356 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7357 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7358 $as_echo_n "(cached) " >&6 7359 else 7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7361 /* end confdefs.h. */ 7362 int i; 7363 _ACEOF 7364 if ac_fn_c_try_compile "$LINENO"; then : 7365 xorg_cv_cc_flag_unused_command_line_argument=yes 7366 else 7367 xorg_cv_cc_flag_unused_command_line_argument=no 7368 fi 7369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7370 fi 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7372 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7374 CFLAGS="$xorg_testset_save_CFLAGS" 7375 fi 7376 7377 found="no" 7378 7379 if test $found = "no" ; then 7380 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7382 fi 7383 7384 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7386 fi 7387 7388 CFLAGS="$CFLAGS -Werror=missing-braces" 7389 7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7391 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7392 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7393 if eval \${$cacheid+:} false; then : 7394 $as_echo_n "(cached) " >&6 7395 else 7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7397 /* end confdefs.h. */ 7398 int i; 7399 int 7400 main () 7401 { 7402 7403 ; 7404 return 0; 7405 } 7406 _ACEOF 7407 if ac_fn_c_try_link "$LINENO"; then : 7408 eval $cacheid=yes 7409 else 7410 eval $cacheid=no 7411 fi 7412 rm -f core conftest.err conftest.$ac_objext \ 7413 conftest$ac_exeext conftest.$ac_ext 7414 fi 7415 7416 7417 CFLAGS="$xorg_testset_save_CFLAGS" 7418 7419 eval supported=\$$cacheid 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7421 $as_echo "$supported" >&6; } 7422 if test "$supported" = "yes" ; then 7423 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7424 found="yes" 7425 fi 7426 fi 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 xorg_testset_save_CFLAGS="$CFLAGS" 7443 7444 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7447 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7448 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7449 $as_echo_n "(cached) " >&6 7450 else 7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7452 /* end confdefs.h. */ 7453 int i; 7454 _ACEOF 7455 if ac_fn_c_try_compile "$LINENO"; then : 7456 xorg_cv_cc_flag_unknown_warning_option=yes 7457 else 7458 xorg_cv_cc_flag_unknown_warning_option=no 7459 fi 7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7461 fi 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7463 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7465 CFLAGS="$xorg_testset_save_CFLAGS" 7466 fi 7467 7468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7471 fi 7472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7474 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7475 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7476 $as_echo_n "(cached) " >&6 7477 else 7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7479 /* end confdefs.h. */ 7480 int i; 7481 _ACEOF 7482 if ac_fn_c_try_compile "$LINENO"; then : 7483 xorg_cv_cc_flag_unused_command_line_argument=yes 7484 else 7485 xorg_cv_cc_flag_unused_command_line_argument=no 7486 fi 7487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7488 fi 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7490 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7492 CFLAGS="$xorg_testset_save_CFLAGS" 7493 fi 7494 7495 found="no" 7496 7497 if test $found = "no" ; then 7498 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7500 fi 7501 7502 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7504 fi 7505 7506 CFLAGS="$CFLAGS -Werror=sequence-point" 7507 7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7509 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7510 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7511 if eval \${$cacheid+:} false; then : 7512 $as_echo_n "(cached) " >&6 7513 else 7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7515 /* end confdefs.h. */ 7516 int i; 7517 int 7518 main () 7519 { 7520 7521 ; 7522 return 0; 7523 } 7524 _ACEOF 7525 if ac_fn_c_try_link "$LINENO"; then : 7526 eval $cacheid=yes 7527 else 7528 eval $cacheid=no 7529 fi 7530 rm -f core conftest.err conftest.$ac_objext \ 7531 conftest$ac_exeext conftest.$ac_ext 7532 fi 7533 7534 7535 CFLAGS="$xorg_testset_save_CFLAGS" 7536 7537 eval supported=\$$cacheid 7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7539 $as_echo "$supported" >&6; } 7540 if test "$supported" = "yes" ; then 7541 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7542 found="yes" 7543 fi 7544 fi 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 xorg_testset_save_CFLAGS="$CFLAGS" 7561 7562 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7565 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7566 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7567 $as_echo_n "(cached) " >&6 7568 else 7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7570 /* end confdefs.h. */ 7571 int i; 7572 _ACEOF 7573 if ac_fn_c_try_compile "$LINENO"; then : 7574 xorg_cv_cc_flag_unknown_warning_option=yes 7575 else 7576 xorg_cv_cc_flag_unknown_warning_option=no 7577 fi 7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7579 fi 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7581 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7583 CFLAGS="$xorg_testset_save_CFLAGS" 7584 fi 7585 7586 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7589 fi 7590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7592 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7593 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7594 $as_echo_n "(cached) " >&6 7595 else 7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7597 /* end confdefs.h. */ 7598 int i; 7599 _ACEOF 7600 if ac_fn_c_try_compile "$LINENO"; then : 7601 xorg_cv_cc_flag_unused_command_line_argument=yes 7602 else 7603 xorg_cv_cc_flag_unused_command_line_argument=no 7604 fi 7605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7606 fi 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7608 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7610 CFLAGS="$xorg_testset_save_CFLAGS" 7611 fi 7612 7613 found="no" 7614 7615 if test $found = "no" ; then 7616 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7618 fi 7619 7620 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7622 fi 7623 7624 CFLAGS="$CFLAGS -Werror=return-type" 7625 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7627 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7628 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7629 if eval \${$cacheid+:} false; then : 7630 $as_echo_n "(cached) " >&6 7631 else 7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7633 /* end confdefs.h. */ 7634 int i; 7635 int 7636 main () 7637 { 7638 7639 ; 7640 return 0; 7641 } 7642 _ACEOF 7643 if ac_fn_c_try_link "$LINENO"; then : 7644 eval $cacheid=yes 7645 else 7646 eval $cacheid=no 7647 fi 7648 rm -f core conftest.err conftest.$ac_objext \ 7649 conftest$ac_exeext conftest.$ac_ext 7650 fi 7651 7652 7653 CFLAGS="$xorg_testset_save_CFLAGS" 7654 7655 eval supported=\$$cacheid 7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7657 $as_echo "$supported" >&6; } 7658 if test "$supported" = "yes" ; then 7659 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7660 found="yes" 7661 fi 7662 fi 7663 7664 if test $found = "no" ; then 7665 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7667 fi 7668 7669 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7671 fi 7672 7673 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7674 7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7676 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7677 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7678 if eval \${$cacheid+:} false; then : 7679 $as_echo_n "(cached) " >&6 7680 else 7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7682 /* end confdefs.h. */ 7683 int i; 7684 int 7685 main () 7686 { 7687 7688 ; 7689 return 0; 7690 } 7691 _ACEOF 7692 if ac_fn_c_try_link "$LINENO"; then : 7693 eval $cacheid=yes 7694 else 7695 eval $cacheid=no 7696 fi 7697 rm -f core conftest.err conftest.$ac_objext \ 7698 conftest$ac_exeext conftest.$ac_ext 7699 fi 7700 7701 7702 CFLAGS="$xorg_testset_save_CFLAGS" 7703 7704 eval supported=\$$cacheid 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7706 $as_echo "$supported" >&6; } 7707 if test "$supported" = "yes" ; then 7708 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7709 found="yes" 7710 fi 7711 fi 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 xorg_testset_save_CFLAGS="$CFLAGS" 7728 7729 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7732 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7733 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7734 $as_echo_n "(cached) " >&6 7735 else 7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7737 /* end confdefs.h. */ 7738 int i; 7739 _ACEOF 7740 if ac_fn_c_try_compile "$LINENO"; then : 7741 xorg_cv_cc_flag_unknown_warning_option=yes 7742 else 7743 xorg_cv_cc_flag_unknown_warning_option=no 7744 fi 7745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7746 fi 7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7748 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7749 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7750 CFLAGS="$xorg_testset_save_CFLAGS" 7751 fi 7752 7753 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7756 fi 7757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7759 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7760 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7761 $as_echo_n "(cached) " >&6 7762 else 7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7764 /* end confdefs.h. */ 7765 int i; 7766 _ACEOF 7767 if ac_fn_c_try_compile "$LINENO"; then : 7768 xorg_cv_cc_flag_unused_command_line_argument=yes 7769 else 7770 xorg_cv_cc_flag_unused_command_line_argument=no 7771 fi 7772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7773 fi 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7775 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7777 CFLAGS="$xorg_testset_save_CFLAGS" 7778 fi 7779 7780 found="no" 7781 7782 if test $found = "no" ; then 7783 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7785 fi 7786 7787 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7789 fi 7790 7791 CFLAGS="$CFLAGS -Werror=trigraphs" 7792 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7794 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7795 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7796 if eval \${$cacheid+:} false; then : 7797 $as_echo_n "(cached) " >&6 7798 else 7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7800 /* end confdefs.h. */ 7801 int i; 7802 int 7803 main () 7804 { 7805 7806 ; 7807 return 0; 7808 } 7809 _ACEOF 7810 if ac_fn_c_try_link "$LINENO"; then : 7811 eval $cacheid=yes 7812 else 7813 eval $cacheid=no 7814 fi 7815 rm -f core conftest.err conftest.$ac_objext \ 7816 conftest$ac_exeext conftest.$ac_ext 7817 fi 7818 7819 7820 CFLAGS="$xorg_testset_save_CFLAGS" 7821 7822 eval supported=\$$cacheid 7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7824 $as_echo "$supported" >&6; } 7825 if test "$supported" = "yes" ; then 7826 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7827 found="yes" 7828 fi 7829 fi 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 xorg_testset_save_CFLAGS="$CFLAGS" 7846 7847 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7850 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7851 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7852 $as_echo_n "(cached) " >&6 7853 else 7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7855 /* end confdefs.h. */ 7856 int i; 7857 _ACEOF 7858 if ac_fn_c_try_compile "$LINENO"; then : 7859 xorg_cv_cc_flag_unknown_warning_option=yes 7860 else 7861 xorg_cv_cc_flag_unknown_warning_option=no 7862 fi 7863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7864 fi 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7866 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7868 CFLAGS="$xorg_testset_save_CFLAGS" 7869 fi 7870 7871 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7874 fi 7875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7877 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7878 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7879 $as_echo_n "(cached) " >&6 7880 else 7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7882 /* end confdefs.h. */ 7883 int i; 7884 _ACEOF 7885 if ac_fn_c_try_compile "$LINENO"; then : 7886 xorg_cv_cc_flag_unused_command_line_argument=yes 7887 else 7888 xorg_cv_cc_flag_unused_command_line_argument=no 7889 fi 7890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7891 fi 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7893 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7895 CFLAGS="$xorg_testset_save_CFLAGS" 7896 fi 7897 7898 found="no" 7899 7900 if test $found = "no" ; then 7901 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7903 fi 7904 7905 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7907 fi 7908 7909 CFLAGS="$CFLAGS -Werror=array-bounds" 7910 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7912 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7913 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7914 if eval \${$cacheid+:} false; then : 7915 $as_echo_n "(cached) " >&6 7916 else 7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7918 /* end confdefs.h. */ 7919 int i; 7920 int 7921 main () 7922 { 7923 7924 ; 7925 return 0; 7926 } 7927 _ACEOF 7928 if ac_fn_c_try_link "$LINENO"; then : 7929 eval $cacheid=yes 7930 else 7931 eval $cacheid=no 7932 fi 7933 rm -f core conftest.err conftest.$ac_objext \ 7934 conftest$ac_exeext conftest.$ac_ext 7935 fi 7936 7937 7938 CFLAGS="$xorg_testset_save_CFLAGS" 7939 7940 eval supported=\$$cacheid 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7942 $as_echo "$supported" >&6; } 7943 if test "$supported" = "yes" ; then 7944 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7945 found="yes" 7946 fi 7947 fi 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 xorg_testset_save_CFLAGS="$CFLAGS" 7964 7965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7968 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7969 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7970 $as_echo_n "(cached) " >&6 7971 else 7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7973 /* end confdefs.h. */ 7974 int i; 7975 _ACEOF 7976 if ac_fn_c_try_compile "$LINENO"; then : 7977 xorg_cv_cc_flag_unknown_warning_option=yes 7978 else 7979 xorg_cv_cc_flag_unknown_warning_option=no 7980 fi 7981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7982 fi 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7984 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7986 CFLAGS="$xorg_testset_save_CFLAGS" 7987 fi 7988 7989 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7992 fi 7993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7995 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7996 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7997 $as_echo_n "(cached) " >&6 7998 else 7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8000 /* end confdefs.h. */ 8001 int i; 8002 _ACEOF 8003 if ac_fn_c_try_compile "$LINENO"; then : 8004 xorg_cv_cc_flag_unused_command_line_argument=yes 8005 else 8006 xorg_cv_cc_flag_unused_command_line_argument=no 8007 fi 8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8009 fi 8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8011 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8013 CFLAGS="$xorg_testset_save_CFLAGS" 8014 fi 8015 8016 found="no" 8017 8018 if test $found = "no" ; then 8019 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8021 fi 8022 8023 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8025 fi 8026 8027 CFLAGS="$CFLAGS -Werror=write-strings" 8028 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8030 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8031 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 8032 if eval \${$cacheid+:} false; then : 8033 $as_echo_n "(cached) " >&6 8034 else 8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8036 /* end confdefs.h. */ 8037 int i; 8038 int 8039 main () 8040 { 8041 8042 ; 8043 return 0; 8044 } 8045 _ACEOF 8046 if ac_fn_c_try_link "$LINENO"; then : 8047 eval $cacheid=yes 8048 else 8049 eval $cacheid=no 8050 fi 8051 rm -f core conftest.err conftest.$ac_objext \ 8052 conftest$ac_exeext conftest.$ac_ext 8053 fi 8054 8055 8056 CFLAGS="$xorg_testset_save_CFLAGS" 8057 8058 eval supported=\$$cacheid 8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8060 $as_echo "$supported" >&6; } 8061 if test "$supported" = "yes" ; then 8062 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8063 found="yes" 8064 fi 8065 fi 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 xorg_testset_save_CFLAGS="$CFLAGS" 8082 8083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8086 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8087 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8088 $as_echo_n "(cached) " >&6 8089 else 8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8091 /* end confdefs.h. */ 8092 int i; 8093 _ACEOF 8094 if ac_fn_c_try_compile "$LINENO"; then : 8095 xorg_cv_cc_flag_unknown_warning_option=yes 8096 else 8097 xorg_cv_cc_flag_unknown_warning_option=no 8098 fi 8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8100 fi 8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8102 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8104 CFLAGS="$xorg_testset_save_CFLAGS" 8105 fi 8106 8107 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8110 fi 8111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8113 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8114 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8115 $as_echo_n "(cached) " >&6 8116 else 8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8118 /* end confdefs.h. */ 8119 int i; 8120 _ACEOF 8121 if ac_fn_c_try_compile "$LINENO"; then : 8122 xorg_cv_cc_flag_unused_command_line_argument=yes 8123 else 8124 xorg_cv_cc_flag_unused_command_line_argument=no 8125 fi 8126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8127 fi 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8129 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8131 CFLAGS="$xorg_testset_save_CFLAGS" 8132 fi 8133 8134 found="no" 8135 8136 if test $found = "no" ; then 8137 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8139 fi 8140 8141 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8143 fi 8144 8145 CFLAGS="$CFLAGS -Werror=address" 8146 8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8148 $as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8149 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8150 if eval \${$cacheid+:} false; then : 8151 $as_echo_n "(cached) " >&6 8152 else 8153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8154 /* end confdefs.h. */ 8155 int i; 8156 int 8157 main () 8158 { 8159 8160 ; 8161 return 0; 8162 } 8163 _ACEOF 8164 if ac_fn_c_try_link "$LINENO"; then : 8165 eval $cacheid=yes 8166 else 8167 eval $cacheid=no 8168 fi 8169 rm -f core conftest.err conftest.$ac_objext \ 8170 conftest$ac_exeext conftest.$ac_ext 8171 fi 8172 8173 8174 CFLAGS="$xorg_testset_save_CFLAGS" 8175 8176 eval supported=\$$cacheid 8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8178 $as_echo "$supported" >&6; } 8179 if test "$supported" = "yes" ; then 8180 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8181 found="yes" 8182 fi 8183 fi 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 xorg_testset_save_CFLAGS="$CFLAGS" 8200 8201 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8204 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8205 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8206 $as_echo_n "(cached) " >&6 8207 else 8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8209 /* end confdefs.h. */ 8210 int i; 8211 _ACEOF 8212 if ac_fn_c_try_compile "$LINENO"; then : 8213 xorg_cv_cc_flag_unknown_warning_option=yes 8214 else 8215 xorg_cv_cc_flag_unknown_warning_option=no 8216 fi 8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8218 fi 8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8220 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8222 CFLAGS="$xorg_testset_save_CFLAGS" 8223 fi 8224 8225 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8228 fi 8229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8231 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8232 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8233 $as_echo_n "(cached) " >&6 8234 else 8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8236 /* end confdefs.h. */ 8237 int i; 8238 _ACEOF 8239 if ac_fn_c_try_compile "$LINENO"; then : 8240 xorg_cv_cc_flag_unused_command_line_argument=yes 8241 else 8242 xorg_cv_cc_flag_unused_command_line_argument=no 8243 fi 8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8245 fi 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8247 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8249 CFLAGS="$xorg_testset_save_CFLAGS" 8250 fi 8251 8252 found="no" 8253 8254 if test $found = "no" ; then 8255 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8257 fi 8258 8259 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8261 fi 8262 8263 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8264 8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8266 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8267 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8268 if eval \${$cacheid+:} false; then : 8269 $as_echo_n "(cached) " >&6 8270 else 8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8272 /* end confdefs.h. */ 8273 int i; 8274 int 8275 main () 8276 { 8277 8278 ; 8279 return 0; 8280 } 8281 _ACEOF 8282 if ac_fn_c_try_link "$LINENO"; then : 8283 eval $cacheid=yes 8284 else 8285 eval $cacheid=no 8286 fi 8287 rm -f core conftest.err conftest.$ac_objext \ 8288 conftest$ac_exeext conftest.$ac_ext 8289 fi 8290 8291 8292 CFLAGS="$xorg_testset_save_CFLAGS" 8293 8294 eval supported=\$$cacheid 8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8296 $as_echo "$supported" >&6; } 8297 if test "$supported" = "yes" ; then 8298 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8299 found="yes" 8300 fi 8301 fi 8302 8303 if test $found = "no" ; then 8304 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8306 fi 8307 8308 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8310 fi 8311 8312 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8313 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8315 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8316 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8317 if eval \${$cacheid+:} false; then : 8318 $as_echo_n "(cached) " >&6 8319 else 8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8321 /* end confdefs.h. */ 8322 int i; 8323 int 8324 main () 8325 { 8326 8327 ; 8328 return 0; 8329 } 8330 _ACEOF 8331 if ac_fn_c_try_link "$LINENO"; then : 8332 eval $cacheid=yes 8333 else 8334 eval $cacheid=no 8335 fi 8336 rm -f core conftest.err conftest.$ac_objext \ 8337 conftest$ac_exeext conftest.$ac_ext 8338 fi 8339 8340 8341 CFLAGS="$xorg_testset_save_CFLAGS" 8342 8343 eval supported=\$$cacheid 8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8345 $as_echo "$supported" >&6; } 8346 if test "$supported" = "yes" ; then 8347 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8348 found="yes" 8349 fi 8350 fi 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 xorg_testset_save_CFLAGS="$CFLAGS" 8367 8368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8371 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8372 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8373 $as_echo_n "(cached) " >&6 8374 else 8375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8376 /* end confdefs.h. */ 8377 int i; 8378 _ACEOF 8379 if ac_fn_c_try_compile "$LINENO"; then : 8380 xorg_cv_cc_flag_unknown_warning_option=yes 8381 else 8382 xorg_cv_cc_flag_unknown_warning_option=no 8383 fi 8384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8385 fi 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8387 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8389 CFLAGS="$xorg_testset_save_CFLAGS" 8390 fi 8391 8392 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8395 fi 8396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8398 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8399 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8400 $as_echo_n "(cached) " >&6 8401 else 8402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8403 /* end confdefs.h. */ 8404 int i; 8405 _ACEOF 8406 if ac_fn_c_try_compile "$LINENO"; then : 8407 xorg_cv_cc_flag_unused_command_line_argument=yes 8408 else 8409 xorg_cv_cc_flag_unused_command_line_argument=no 8410 fi 8411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8412 fi 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8414 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8416 CFLAGS="$xorg_testset_save_CFLAGS" 8417 fi 8418 8419 found="no" 8420 8421 if test $found = "no" ; then 8422 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8424 fi 8425 8426 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8428 fi 8429 8430 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8431 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8433 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8434 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8435 if eval \${$cacheid+:} false; then : 8436 $as_echo_n "(cached) " >&6 8437 else 8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8439 /* end confdefs.h. */ 8440 int i; 8441 int 8442 main () 8443 { 8444 8445 ; 8446 return 0; 8447 } 8448 _ACEOF 8449 if ac_fn_c_try_link "$LINENO"; then : 8450 eval $cacheid=yes 8451 else 8452 eval $cacheid=no 8453 fi 8454 rm -f core conftest.err conftest.$ac_objext \ 8455 conftest$ac_exeext conftest.$ac_ext 8456 fi 8457 8458 8459 CFLAGS="$xorg_testset_save_CFLAGS" 8460 8461 eval supported=\$$cacheid 8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8463 $as_echo "$supported" >&6; } 8464 if test "$supported" = "yes" ; then 8465 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8466 found="yes" 8467 fi 8468 fi 8469 8470 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8471 else 8472 { $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 8473 $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;} 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 xorg_testset_save_CFLAGS="$CFLAGS" 8488 8489 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8492 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8493 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8494 $as_echo_n "(cached) " >&6 8495 else 8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8497 /* end confdefs.h. */ 8498 int i; 8499 _ACEOF 8500 if ac_fn_c_try_compile "$LINENO"; then : 8501 xorg_cv_cc_flag_unknown_warning_option=yes 8502 else 8503 xorg_cv_cc_flag_unknown_warning_option=no 8504 fi 8505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8506 fi 8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8508 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8510 CFLAGS="$xorg_testset_save_CFLAGS" 8511 fi 8512 8513 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8516 fi 8517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8519 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8520 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8521 $as_echo_n "(cached) " >&6 8522 else 8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8524 /* end confdefs.h. */ 8525 int i; 8526 _ACEOF 8527 if ac_fn_c_try_compile "$LINENO"; then : 8528 xorg_cv_cc_flag_unused_command_line_argument=yes 8529 else 8530 xorg_cv_cc_flag_unused_command_line_argument=no 8531 fi 8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8533 fi 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8535 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8537 CFLAGS="$xorg_testset_save_CFLAGS" 8538 fi 8539 8540 found="no" 8541 8542 if test $found = "no" ; then 8543 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8545 fi 8546 8547 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8549 fi 8550 8551 CFLAGS="$CFLAGS -Wimplicit" 8552 8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8554 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8555 cacheid=xorg_cv_cc_flag__Wimplicit 8556 if eval \${$cacheid+:} false; then : 8557 $as_echo_n "(cached) " >&6 8558 else 8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8560 /* end confdefs.h. */ 8561 int i; 8562 int 8563 main () 8564 { 8565 8566 ; 8567 return 0; 8568 } 8569 _ACEOF 8570 if ac_fn_c_try_link "$LINENO"; then : 8571 eval $cacheid=yes 8572 else 8573 eval $cacheid=no 8574 fi 8575 rm -f core conftest.err conftest.$ac_objext \ 8576 conftest$ac_exeext conftest.$ac_ext 8577 fi 8578 8579 8580 CFLAGS="$xorg_testset_save_CFLAGS" 8581 8582 eval supported=\$$cacheid 8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8584 $as_echo "$supported" >&6; } 8585 if test "$supported" = "yes" ; then 8586 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8587 found="yes" 8588 fi 8589 fi 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 xorg_testset_save_CFLAGS="$CFLAGS" 8606 8607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8610 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8611 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8612 $as_echo_n "(cached) " >&6 8613 else 8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8615 /* end confdefs.h. */ 8616 int i; 8617 _ACEOF 8618 if ac_fn_c_try_compile "$LINENO"; then : 8619 xorg_cv_cc_flag_unknown_warning_option=yes 8620 else 8621 xorg_cv_cc_flag_unknown_warning_option=no 8622 fi 8623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8624 fi 8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8626 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8628 CFLAGS="$xorg_testset_save_CFLAGS" 8629 fi 8630 8631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8634 fi 8635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8637 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8638 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8639 $as_echo_n "(cached) " >&6 8640 else 8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8642 /* end confdefs.h. */ 8643 int i; 8644 _ACEOF 8645 if ac_fn_c_try_compile "$LINENO"; then : 8646 xorg_cv_cc_flag_unused_command_line_argument=yes 8647 else 8648 xorg_cv_cc_flag_unused_command_line_argument=no 8649 fi 8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8651 fi 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8653 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8655 CFLAGS="$xorg_testset_save_CFLAGS" 8656 fi 8657 8658 found="no" 8659 8660 if test $found = "no" ; then 8661 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8663 fi 8664 8665 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8667 fi 8668 8669 CFLAGS="$CFLAGS -Wnonnull" 8670 8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8672 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8673 cacheid=xorg_cv_cc_flag__Wnonnull 8674 if eval \${$cacheid+:} false; then : 8675 $as_echo_n "(cached) " >&6 8676 else 8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8678 /* end confdefs.h. */ 8679 int i; 8680 int 8681 main () 8682 { 8683 8684 ; 8685 return 0; 8686 } 8687 _ACEOF 8688 if ac_fn_c_try_link "$LINENO"; then : 8689 eval $cacheid=yes 8690 else 8691 eval $cacheid=no 8692 fi 8693 rm -f core conftest.err conftest.$ac_objext \ 8694 conftest$ac_exeext conftest.$ac_ext 8695 fi 8696 8697 8698 CFLAGS="$xorg_testset_save_CFLAGS" 8699 8700 eval supported=\$$cacheid 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8702 $as_echo "$supported" >&6; } 8703 if test "$supported" = "yes" ; then 8704 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8705 found="yes" 8706 fi 8707 fi 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 xorg_testset_save_CFLAGS="$CFLAGS" 8724 8725 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8728 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8729 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8730 $as_echo_n "(cached) " >&6 8731 else 8732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8733 /* end confdefs.h. */ 8734 int i; 8735 _ACEOF 8736 if ac_fn_c_try_compile "$LINENO"; then : 8737 xorg_cv_cc_flag_unknown_warning_option=yes 8738 else 8739 xorg_cv_cc_flag_unknown_warning_option=no 8740 fi 8741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8742 fi 8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8744 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8746 CFLAGS="$xorg_testset_save_CFLAGS" 8747 fi 8748 8749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8752 fi 8753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8755 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8756 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8757 $as_echo_n "(cached) " >&6 8758 else 8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8760 /* end confdefs.h. */ 8761 int i; 8762 _ACEOF 8763 if ac_fn_c_try_compile "$LINENO"; then : 8764 xorg_cv_cc_flag_unused_command_line_argument=yes 8765 else 8766 xorg_cv_cc_flag_unused_command_line_argument=no 8767 fi 8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8769 fi 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8771 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8773 CFLAGS="$xorg_testset_save_CFLAGS" 8774 fi 8775 8776 found="no" 8777 8778 if test $found = "no" ; then 8779 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8781 fi 8782 8783 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8785 fi 8786 8787 CFLAGS="$CFLAGS -Winit-self" 8788 8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8790 $as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8791 cacheid=xorg_cv_cc_flag__Winit_self 8792 if eval \${$cacheid+:} false; then : 8793 $as_echo_n "(cached) " >&6 8794 else 8795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8796 /* end confdefs.h. */ 8797 int i; 8798 int 8799 main () 8800 { 8801 8802 ; 8803 return 0; 8804 } 8805 _ACEOF 8806 if ac_fn_c_try_link "$LINENO"; then : 8807 eval $cacheid=yes 8808 else 8809 eval $cacheid=no 8810 fi 8811 rm -f core conftest.err conftest.$ac_objext \ 8812 conftest$ac_exeext conftest.$ac_ext 8813 fi 8814 8815 8816 CFLAGS="$xorg_testset_save_CFLAGS" 8817 8818 eval supported=\$$cacheid 8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8820 $as_echo "$supported" >&6; } 8821 if test "$supported" = "yes" ; then 8822 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8823 found="yes" 8824 fi 8825 fi 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 xorg_testset_save_CFLAGS="$CFLAGS" 8842 8843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8846 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8847 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8848 $as_echo_n "(cached) " >&6 8849 else 8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8851 /* end confdefs.h. */ 8852 int i; 8853 _ACEOF 8854 if ac_fn_c_try_compile "$LINENO"; then : 8855 xorg_cv_cc_flag_unknown_warning_option=yes 8856 else 8857 xorg_cv_cc_flag_unknown_warning_option=no 8858 fi 8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8860 fi 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8862 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8864 CFLAGS="$xorg_testset_save_CFLAGS" 8865 fi 8866 8867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8870 fi 8871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8873 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8874 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8875 $as_echo_n "(cached) " >&6 8876 else 8877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8878 /* end confdefs.h. */ 8879 int i; 8880 _ACEOF 8881 if ac_fn_c_try_compile "$LINENO"; then : 8882 xorg_cv_cc_flag_unused_command_line_argument=yes 8883 else 8884 xorg_cv_cc_flag_unused_command_line_argument=no 8885 fi 8886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8887 fi 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8889 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8891 CFLAGS="$xorg_testset_save_CFLAGS" 8892 fi 8893 8894 found="no" 8895 8896 if test $found = "no" ; then 8897 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8899 fi 8900 8901 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8903 fi 8904 8905 CFLAGS="$CFLAGS -Wmain" 8906 8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8908 $as_echo_n "checking if $CC supports -Wmain... " >&6; } 8909 cacheid=xorg_cv_cc_flag__Wmain 8910 if eval \${$cacheid+:} false; then : 8911 $as_echo_n "(cached) " >&6 8912 else 8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8914 /* end confdefs.h. */ 8915 int i; 8916 int 8917 main () 8918 { 8919 8920 ; 8921 return 0; 8922 } 8923 _ACEOF 8924 if ac_fn_c_try_link "$LINENO"; then : 8925 eval $cacheid=yes 8926 else 8927 eval $cacheid=no 8928 fi 8929 rm -f core conftest.err conftest.$ac_objext \ 8930 conftest$ac_exeext conftest.$ac_ext 8931 fi 8932 8933 8934 CFLAGS="$xorg_testset_save_CFLAGS" 8935 8936 eval supported=\$$cacheid 8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8938 $as_echo "$supported" >&6; } 8939 if test "$supported" = "yes" ; then 8940 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8941 found="yes" 8942 fi 8943 fi 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 xorg_testset_save_CFLAGS="$CFLAGS" 8960 8961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8964 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8965 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8966 $as_echo_n "(cached) " >&6 8967 else 8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8969 /* end confdefs.h. */ 8970 int i; 8971 _ACEOF 8972 if ac_fn_c_try_compile "$LINENO"; then : 8973 xorg_cv_cc_flag_unknown_warning_option=yes 8974 else 8975 xorg_cv_cc_flag_unknown_warning_option=no 8976 fi 8977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8978 fi 8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8980 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8982 CFLAGS="$xorg_testset_save_CFLAGS" 8983 fi 8984 8985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8988 fi 8989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8991 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8992 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8993 $as_echo_n "(cached) " >&6 8994 else 8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8996 /* end confdefs.h. */ 8997 int i; 8998 _ACEOF 8999 if ac_fn_c_try_compile "$LINENO"; then : 9000 xorg_cv_cc_flag_unused_command_line_argument=yes 9001 else 9002 xorg_cv_cc_flag_unused_command_line_argument=no 9003 fi 9004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9005 fi 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9007 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9009 CFLAGS="$xorg_testset_save_CFLAGS" 9010 fi 9011 9012 found="no" 9013 9014 if test $found = "no" ; then 9015 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9017 fi 9018 9019 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9021 fi 9022 9023 CFLAGS="$CFLAGS -Wmissing-braces" 9024 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9026 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9027 cacheid=xorg_cv_cc_flag__Wmissing_braces 9028 if eval \${$cacheid+:} false; then : 9029 $as_echo_n "(cached) " >&6 9030 else 9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9032 /* end confdefs.h. */ 9033 int i; 9034 int 9035 main () 9036 { 9037 9038 ; 9039 return 0; 9040 } 9041 _ACEOF 9042 if ac_fn_c_try_link "$LINENO"; then : 9043 eval $cacheid=yes 9044 else 9045 eval $cacheid=no 9046 fi 9047 rm -f core conftest.err conftest.$ac_objext \ 9048 conftest$ac_exeext conftest.$ac_ext 9049 fi 9050 9051 9052 CFLAGS="$xorg_testset_save_CFLAGS" 9053 9054 eval supported=\$$cacheid 9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9056 $as_echo "$supported" >&6; } 9057 if test "$supported" = "yes" ; then 9058 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9059 found="yes" 9060 fi 9061 fi 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 xorg_testset_save_CFLAGS="$CFLAGS" 9078 9079 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9082 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9083 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9084 $as_echo_n "(cached) " >&6 9085 else 9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9087 /* end confdefs.h. */ 9088 int i; 9089 _ACEOF 9090 if ac_fn_c_try_compile "$LINENO"; then : 9091 xorg_cv_cc_flag_unknown_warning_option=yes 9092 else 9093 xorg_cv_cc_flag_unknown_warning_option=no 9094 fi 9095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9096 fi 9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9098 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9100 CFLAGS="$xorg_testset_save_CFLAGS" 9101 fi 9102 9103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9106 fi 9107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9109 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9110 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9111 $as_echo_n "(cached) " >&6 9112 else 9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9114 /* end confdefs.h. */ 9115 int i; 9116 _ACEOF 9117 if ac_fn_c_try_compile "$LINENO"; then : 9118 xorg_cv_cc_flag_unused_command_line_argument=yes 9119 else 9120 xorg_cv_cc_flag_unused_command_line_argument=no 9121 fi 9122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9123 fi 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9125 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9127 CFLAGS="$xorg_testset_save_CFLAGS" 9128 fi 9129 9130 found="no" 9131 9132 if test $found = "no" ; then 9133 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9135 fi 9136 9137 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9139 fi 9140 9141 CFLAGS="$CFLAGS -Wsequence-point" 9142 9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9144 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9145 cacheid=xorg_cv_cc_flag__Wsequence_point 9146 if eval \${$cacheid+:} false; then : 9147 $as_echo_n "(cached) " >&6 9148 else 9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9150 /* end confdefs.h. */ 9151 int i; 9152 int 9153 main () 9154 { 9155 9156 ; 9157 return 0; 9158 } 9159 _ACEOF 9160 if ac_fn_c_try_link "$LINENO"; then : 9161 eval $cacheid=yes 9162 else 9163 eval $cacheid=no 9164 fi 9165 rm -f core conftest.err conftest.$ac_objext \ 9166 conftest$ac_exeext conftest.$ac_ext 9167 fi 9168 9169 9170 CFLAGS="$xorg_testset_save_CFLAGS" 9171 9172 eval supported=\$$cacheid 9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9174 $as_echo "$supported" >&6; } 9175 if test "$supported" = "yes" ; then 9176 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9177 found="yes" 9178 fi 9179 fi 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 xorg_testset_save_CFLAGS="$CFLAGS" 9196 9197 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9200 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9201 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9202 $as_echo_n "(cached) " >&6 9203 else 9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9205 /* end confdefs.h. */ 9206 int i; 9207 _ACEOF 9208 if ac_fn_c_try_compile "$LINENO"; then : 9209 xorg_cv_cc_flag_unknown_warning_option=yes 9210 else 9211 xorg_cv_cc_flag_unknown_warning_option=no 9212 fi 9213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9214 fi 9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9216 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9218 CFLAGS="$xorg_testset_save_CFLAGS" 9219 fi 9220 9221 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9224 fi 9225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9227 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9228 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9229 $as_echo_n "(cached) " >&6 9230 else 9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9232 /* end confdefs.h. */ 9233 int i; 9234 _ACEOF 9235 if ac_fn_c_try_compile "$LINENO"; then : 9236 xorg_cv_cc_flag_unused_command_line_argument=yes 9237 else 9238 xorg_cv_cc_flag_unused_command_line_argument=no 9239 fi 9240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9241 fi 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9243 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9245 CFLAGS="$xorg_testset_save_CFLAGS" 9246 fi 9247 9248 found="no" 9249 9250 if test $found = "no" ; then 9251 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9253 fi 9254 9255 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9257 fi 9258 9259 CFLAGS="$CFLAGS -Wreturn-type" 9260 9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9262 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9263 cacheid=xorg_cv_cc_flag__Wreturn_type 9264 if eval \${$cacheid+:} false; then : 9265 $as_echo_n "(cached) " >&6 9266 else 9267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9268 /* end confdefs.h. */ 9269 int i; 9270 int 9271 main () 9272 { 9273 9274 ; 9275 return 0; 9276 } 9277 _ACEOF 9278 if ac_fn_c_try_link "$LINENO"; then : 9279 eval $cacheid=yes 9280 else 9281 eval $cacheid=no 9282 fi 9283 rm -f core conftest.err conftest.$ac_objext \ 9284 conftest$ac_exeext conftest.$ac_ext 9285 fi 9286 9287 9288 CFLAGS="$xorg_testset_save_CFLAGS" 9289 9290 eval supported=\$$cacheid 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9292 $as_echo "$supported" >&6; } 9293 if test "$supported" = "yes" ; then 9294 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9295 found="yes" 9296 fi 9297 fi 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 xorg_testset_save_CFLAGS="$CFLAGS" 9314 9315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9318 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9319 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9320 $as_echo_n "(cached) " >&6 9321 else 9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9323 /* end confdefs.h. */ 9324 int i; 9325 _ACEOF 9326 if ac_fn_c_try_compile "$LINENO"; then : 9327 xorg_cv_cc_flag_unknown_warning_option=yes 9328 else 9329 xorg_cv_cc_flag_unknown_warning_option=no 9330 fi 9331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9332 fi 9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9334 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9336 CFLAGS="$xorg_testset_save_CFLAGS" 9337 fi 9338 9339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9342 fi 9343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9345 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9346 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9347 $as_echo_n "(cached) " >&6 9348 else 9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9350 /* end confdefs.h. */ 9351 int i; 9352 _ACEOF 9353 if ac_fn_c_try_compile "$LINENO"; then : 9354 xorg_cv_cc_flag_unused_command_line_argument=yes 9355 else 9356 xorg_cv_cc_flag_unused_command_line_argument=no 9357 fi 9358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9359 fi 9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9361 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9363 CFLAGS="$xorg_testset_save_CFLAGS" 9364 fi 9365 9366 found="no" 9367 9368 if test $found = "no" ; then 9369 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9371 fi 9372 9373 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9375 fi 9376 9377 CFLAGS="$CFLAGS -Wtrigraphs" 9378 9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9380 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9381 cacheid=xorg_cv_cc_flag__Wtrigraphs 9382 if eval \${$cacheid+:} false; then : 9383 $as_echo_n "(cached) " >&6 9384 else 9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9386 /* end confdefs.h. */ 9387 int i; 9388 int 9389 main () 9390 { 9391 9392 ; 9393 return 0; 9394 } 9395 _ACEOF 9396 if ac_fn_c_try_link "$LINENO"; then : 9397 eval $cacheid=yes 9398 else 9399 eval $cacheid=no 9400 fi 9401 rm -f core conftest.err conftest.$ac_objext \ 9402 conftest$ac_exeext conftest.$ac_ext 9403 fi 9404 9405 9406 CFLAGS="$xorg_testset_save_CFLAGS" 9407 9408 eval supported=\$$cacheid 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9410 $as_echo "$supported" >&6; } 9411 if test "$supported" = "yes" ; then 9412 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9413 found="yes" 9414 fi 9415 fi 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 xorg_testset_save_CFLAGS="$CFLAGS" 9432 9433 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9436 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9437 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9438 $as_echo_n "(cached) " >&6 9439 else 9440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9441 /* end confdefs.h. */ 9442 int i; 9443 _ACEOF 9444 if ac_fn_c_try_compile "$LINENO"; then : 9445 xorg_cv_cc_flag_unknown_warning_option=yes 9446 else 9447 xorg_cv_cc_flag_unknown_warning_option=no 9448 fi 9449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9450 fi 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9452 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9454 CFLAGS="$xorg_testset_save_CFLAGS" 9455 fi 9456 9457 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9460 fi 9461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9463 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9464 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9465 $as_echo_n "(cached) " >&6 9466 else 9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9468 /* end confdefs.h. */ 9469 int i; 9470 _ACEOF 9471 if ac_fn_c_try_compile "$LINENO"; then : 9472 xorg_cv_cc_flag_unused_command_line_argument=yes 9473 else 9474 xorg_cv_cc_flag_unused_command_line_argument=no 9475 fi 9476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9477 fi 9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9479 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9481 CFLAGS="$xorg_testset_save_CFLAGS" 9482 fi 9483 9484 found="no" 9485 9486 if test $found = "no" ; then 9487 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9489 fi 9490 9491 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9493 fi 9494 9495 CFLAGS="$CFLAGS -Warray-bounds" 9496 9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9498 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9499 cacheid=xorg_cv_cc_flag__Warray_bounds 9500 if eval \${$cacheid+:} false; then : 9501 $as_echo_n "(cached) " >&6 9502 else 9503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9504 /* end confdefs.h. */ 9505 int i; 9506 int 9507 main () 9508 { 9509 9510 ; 9511 return 0; 9512 } 9513 _ACEOF 9514 if ac_fn_c_try_link "$LINENO"; then : 9515 eval $cacheid=yes 9516 else 9517 eval $cacheid=no 9518 fi 9519 rm -f core conftest.err conftest.$ac_objext \ 9520 conftest$ac_exeext conftest.$ac_ext 9521 fi 9522 9523 9524 CFLAGS="$xorg_testset_save_CFLAGS" 9525 9526 eval supported=\$$cacheid 9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9528 $as_echo "$supported" >&6; } 9529 if test "$supported" = "yes" ; then 9530 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9531 found="yes" 9532 fi 9533 fi 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 xorg_testset_save_CFLAGS="$CFLAGS" 9550 9551 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9554 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9555 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9556 $as_echo_n "(cached) " >&6 9557 else 9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9559 /* end confdefs.h. */ 9560 int i; 9561 _ACEOF 9562 if ac_fn_c_try_compile "$LINENO"; then : 9563 xorg_cv_cc_flag_unknown_warning_option=yes 9564 else 9565 xorg_cv_cc_flag_unknown_warning_option=no 9566 fi 9567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9568 fi 9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9570 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9572 CFLAGS="$xorg_testset_save_CFLAGS" 9573 fi 9574 9575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9578 fi 9579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9581 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9582 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9583 $as_echo_n "(cached) " >&6 9584 else 9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9586 /* end confdefs.h. */ 9587 int i; 9588 _ACEOF 9589 if ac_fn_c_try_compile "$LINENO"; then : 9590 xorg_cv_cc_flag_unused_command_line_argument=yes 9591 else 9592 xorg_cv_cc_flag_unused_command_line_argument=no 9593 fi 9594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9595 fi 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9597 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9599 CFLAGS="$xorg_testset_save_CFLAGS" 9600 fi 9601 9602 found="no" 9603 9604 if test $found = "no" ; then 9605 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9607 fi 9608 9609 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9611 fi 9612 9613 CFLAGS="$CFLAGS -Wwrite-strings" 9614 9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9616 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9617 cacheid=xorg_cv_cc_flag__Wwrite_strings 9618 if eval \${$cacheid+:} false; then : 9619 $as_echo_n "(cached) " >&6 9620 else 9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9622 /* end confdefs.h. */ 9623 int i; 9624 int 9625 main () 9626 { 9627 9628 ; 9629 return 0; 9630 } 9631 _ACEOF 9632 if ac_fn_c_try_link "$LINENO"; then : 9633 eval $cacheid=yes 9634 else 9635 eval $cacheid=no 9636 fi 9637 rm -f core conftest.err conftest.$ac_objext \ 9638 conftest$ac_exeext conftest.$ac_ext 9639 fi 9640 9641 9642 CFLAGS="$xorg_testset_save_CFLAGS" 9643 9644 eval supported=\$$cacheid 9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9646 $as_echo "$supported" >&6; } 9647 if test "$supported" = "yes" ; then 9648 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9649 found="yes" 9650 fi 9651 fi 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 xorg_testset_save_CFLAGS="$CFLAGS" 9668 9669 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9672 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9673 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9674 $as_echo_n "(cached) " >&6 9675 else 9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9677 /* end confdefs.h. */ 9678 int i; 9679 _ACEOF 9680 if ac_fn_c_try_compile "$LINENO"; then : 9681 xorg_cv_cc_flag_unknown_warning_option=yes 9682 else 9683 xorg_cv_cc_flag_unknown_warning_option=no 9684 fi 9685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9686 fi 9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9688 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9690 CFLAGS="$xorg_testset_save_CFLAGS" 9691 fi 9692 9693 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9696 fi 9697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9699 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9700 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9701 $as_echo_n "(cached) " >&6 9702 else 9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9704 /* end confdefs.h. */ 9705 int i; 9706 _ACEOF 9707 if ac_fn_c_try_compile "$LINENO"; then : 9708 xorg_cv_cc_flag_unused_command_line_argument=yes 9709 else 9710 xorg_cv_cc_flag_unused_command_line_argument=no 9711 fi 9712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9713 fi 9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9715 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9717 CFLAGS="$xorg_testset_save_CFLAGS" 9718 fi 9719 9720 found="no" 9721 9722 if test $found = "no" ; then 9723 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9725 fi 9726 9727 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9729 fi 9730 9731 CFLAGS="$CFLAGS -Waddress" 9732 9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9734 $as_echo_n "checking if $CC supports -Waddress... " >&6; } 9735 cacheid=xorg_cv_cc_flag__Waddress 9736 if eval \${$cacheid+:} false; then : 9737 $as_echo_n "(cached) " >&6 9738 else 9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9740 /* end confdefs.h. */ 9741 int i; 9742 int 9743 main () 9744 { 9745 9746 ; 9747 return 0; 9748 } 9749 _ACEOF 9750 if ac_fn_c_try_link "$LINENO"; then : 9751 eval $cacheid=yes 9752 else 9753 eval $cacheid=no 9754 fi 9755 rm -f core conftest.err conftest.$ac_objext \ 9756 conftest$ac_exeext conftest.$ac_ext 9757 fi 9758 9759 9760 CFLAGS="$xorg_testset_save_CFLAGS" 9761 9762 eval supported=\$$cacheid 9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9764 $as_echo "$supported" >&6; } 9765 if test "$supported" = "yes" ; then 9766 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9767 found="yes" 9768 fi 9769 fi 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 xorg_testset_save_CFLAGS="$CFLAGS" 9786 9787 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9790 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9791 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9792 $as_echo_n "(cached) " >&6 9793 else 9794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9795 /* end confdefs.h. */ 9796 int i; 9797 _ACEOF 9798 if ac_fn_c_try_compile "$LINENO"; then : 9799 xorg_cv_cc_flag_unknown_warning_option=yes 9800 else 9801 xorg_cv_cc_flag_unknown_warning_option=no 9802 fi 9803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9804 fi 9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9806 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9807 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9808 CFLAGS="$xorg_testset_save_CFLAGS" 9809 fi 9810 9811 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9814 fi 9815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9817 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9818 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9819 $as_echo_n "(cached) " >&6 9820 else 9821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9822 /* end confdefs.h. */ 9823 int i; 9824 _ACEOF 9825 if ac_fn_c_try_compile "$LINENO"; then : 9826 xorg_cv_cc_flag_unused_command_line_argument=yes 9827 else 9828 xorg_cv_cc_flag_unused_command_line_argument=no 9829 fi 9830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9831 fi 9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9833 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9834 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9835 CFLAGS="$xorg_testset_save_CFLAGS" 9836 fi 9837 9838 found="no" 9839 9840 if test $found = "no" ; then 9841 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9843 fi 9844 9845 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9847 fi 9848 9849 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9850 9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9852 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9853 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9854 if eval \${$cacheid+:} false; then : 9855 $as_echo_n "(cached) " >&6 9856 else 9857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9858 /* end confdefs.h. */ 9859 int i; 9860 int 9861 main () 9862 { 9863 9864 ; 9865 return 0; 9866 } 9867 _ACEOF 9868 if ac_fn_c_try_link "$LINENO"; then : 9869 eval $cacheid=yes 9870 else 9871 eval $cacheid=no 9872 fi 9873 rm -f core conftest.err conftest.$ac_objext \ 9874 conftest$ac_exeext conftest.$ac_ext 9875 fi 9876 9877 9878 CFLAGS="$xorg_testset_save_CFLAGS" 9879 9880 eval supported=\$$cacheid 9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9882 $as_echo "$supported" >&6; } 9883 if test "$supported" = "yes" ; then 9884 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9885 found="yes" 9886 fi 9887 fi 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 xorg_testset_save_CFLAGS="$CFLAGS" 9904 9905 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9908 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9909 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9910 $as_echo_n "(cached) " >&6 9911 else 9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9913 /* end confdefs.h. */ 9914 int i; 9915 _ACEOF 9916 if ac_fn_c_try_compile "$LINENO"; then : 9917 xorg_cv_cc_flag_unknown_warning_option=yes 9918 else 9919 xorg_cv_cc_flag_unknown_warning_option=no 9920 fi 9921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9922 fi 9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9924 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9926 CFLAGS="$xorg_testset_save_CFLAGS" 9927 fi 9928 9929 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9932 fi 9933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9935 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9936 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9937 $as_echo_n "(cached) " >&6 9938 else 9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9940 /* end confdefs.h. */ 9941 int i; 9942 _ACEOF 9943 if ac_fn_c_try_compile "$LINENO"; then : 9944 xorg_cv_cc_flag_unused_command_line_argument=yes 9945 else 9946 xorg_cv_cc_flag_unused_command_line_argument=no 9947 fi 9948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9949 fi 9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9951 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9953 CFLAGS="$xorg_testset_save_CFLAGS" 9954 fi 9955 9956 found="no" 9957 9958 if test $found = "no" ; then 9959 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9961 fi 9962 9963 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9965 fi 9966 9967 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9968 9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9970 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9971 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9972 if eval \${$cacheid+:} false; then : 9973 $as_echo_n "(cached) " >&6 9974 else 9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9976 /* end confdefs.h. */ 9977 int i; 9978 int 9979 main () 9980 { 9981 9982 ; 9983 return 0; 9984 } 9985 _ACEOF 9986 if ac_fn_c_try_link "$LINENO"; then : 9987 eval $cacheid=yes 9988 else 9989 eval $cacheid=no 9990 fi 9991 rm -f core conftest.err conftest.$ac_objext \ 9992 conftest$ac_exeext conftest.$ac_ext 9993 fi 9994 9995 9996 CFLAGS="$xorg_testset_save_CFLAGS" 9997 9998 eval supported=\$$cacheid 9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10000 $as_echo "$supported" >&6; } 10001 if test "$supported" = "yes" ; then 10002 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10003 found="yes" 10004 fi 10005 fi 10006 10007 10008 fi 10009 10010 10011 10012 10013 10014 10015 10016 CWARNFLAGS="$BASE_CFLAGS" 10017 if test "x$GCC" = xyes ; then 10018 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10019 fi 10020 10021 10022 10023 10024 10025 10026 10027 10028 # Check whether --enable-strict-compilation was given. 10029 if test "${enable_strict_compilation+set}" = set; then : 10030 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10031 else 10032 STRICT_COMPILE=no 10033 fi 10034 10035 10036 10037 10038 10039 10040 STRICT_CFLAGS="" 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 xorg_testset_save_CFLAGS="$CFLAGS" 10055 10056 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10059 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10060 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10061 $as_echo_n "(cached) " >&6 10062 else 10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10064 /* end confdefs.h. */ 10065 int i; 10066 _ACEOF 10067 if ac_fn_c_try_compile "$LINENO"; then : 10068 xorg_cv_cc_flag_unknown_warning_option=yes 10069 else 10070 xorg_cv_cc_flag_unknown_warning_option=no 10071 fi 10072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10073 fi 10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10075 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10077 CFLAGS="$xorg_testset_save_CFLAGS" 10078 fi 10079 10080 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10083 fi 10084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10086 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10087 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10088 $as_echo_n "(cached) " >&6 10089 else 10090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10091 /* end confdefs.h. */ 10092 int i; 10093 _ACEOF 10094 if ac_fn_c_try_compile "$LINENO"; then : 10095 xorg_cv_cc_flag_unused_command_line_argument=yes 10096 else 10097 xorg_cv_cc_flag_unused_command_line_argument=no 10098 fi 10099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10100 fi 10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10102 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10104 CFLAGS="$xorg_testset_save_CFLAGS" 10105 fi 10106 10107 found="no" 10108 10109 if test $found = "no" ; then 10110 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10112 fi 10113 10114 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10116 fi 10117 10118 CFLAGS="$CFLAGS -pedantic" 10119 10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10121 $as_echo_n "checking if $CC supports -pedantic... " >&6; } 10122 cacheid=xorg_cv_cc_flag__pedantic 10123 if eval \${$cacheid+:} false; then : 10124 $as_echo_n "(cached) " >&6 10125 else 10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10127 /* end confdefs.h. */ 10128 int i; 10129 int 10130 main () 10131 { 10132 10133 ; 10134 return 0; 10135 } 10136 _ACEOF 10137 if ac_fn_c_try_link "$LINENO"; then : 10138 eval $cacheid=yes 10139 else 10140 eval $cacheid=no 10141 fi 10142 rm -f core conftest.err conftest.$ac_objext \ 10143 conftest$ac_exeext conftest.$ac_ext 10144 fi 10145 10146 10147 CFLAGS="$xorg_testset_save_CFLAGS" 10148 10149 eval supported=\$$cacheid 10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10151 $as_echo "$supported" >&6; } 10152 if test "$supported" = "yes" ; then 10153 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10154 found="yes" 10155 fi 10156 fi 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 xorg_testset_save_CFLAGS="$CFLAGS" 10173 10174 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10177 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10178 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10179 $as_echo_n "(cached) " >&6 10180 else 10181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10182 /* end confdefs.h. */ 10183 int i; 10184 _ACEOF 10185 if ac_fn_c_try_compile "$LINENO"; then : 10186 xorg_cv_cc_flag_unknown_warning_option=yes 10187 else 10188 xorg_cv_cc_flag_unknown_warning_option=no 10189 fi 10190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10191 fi 10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10193 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10195 CFLAGS="$xorg_testset_save_CFLAGS" 10196 fi 10197 10198 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10201 fi 10202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10204 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10205 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10206 $as_echo_n "(cached) " >&6 10207 else 10208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10209 /* end confdefs.h. */ 10210 int i; 10211 _ACEOF 10212 if ac_fn_c_try_compile "$LINENO"; then : 10213 xorg_cv_cc_flag_unused_command_line_argument=yes 10214 else 10215 xorg_cv_cc_flag_unused_command_line_argument=no 10216 fi 10217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10218 fi 10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10220 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10222 CFLAGS="$xorg_testset_save_CFLAGS" 10223 fi 10224 10225 found="no" 10226 10227 if test $found = "no" ; then 10228 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10230 fi 10231 10232 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10234 fi 10235 10236 CFLAGS="$CFLAGS -Werror" 10237 10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10239 $as_echo_n "checking if $CC supports -Werror... " >&6; } 10240 cacheid=xorg_cv_cc_flag__Werror 10241 if eval \${$cacheid+:} false; then : 10242 $as_echo_n "(cached) " >&6 10243 else 10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10245 /* end confdefs.h. */ 10246 int i; 10247 int 10248 main () 10249 { 10250 10251 ; 10252 return 0; 10253 } 10254 _ACEOF 10255 if ac_fn_c_try_link "$LINENO"; then : 10256 eval $cacheid=yes 10257 else 10258 eval $cacheid=no 10259 fi 10260 rm -f core conftest.err conftest.$ac_objext \ 10261 conftest$ac_exeext conftest.$ac_ext 10262 fi 10263 10264 10265 CFLAGS="$xorg_testset_save_CFLAGS" 10266 10267 eval supported=\$$cacheid 10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10269 $as_echo "$supported" >&6; } 10270 if test "$supported" = "yes" ; then 10271 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10272 found="yes" 10273 fi 10274 fi 10275 10276 if test $found = "no" ; then 10277 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10279 fi 10280 10281 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10283 fi 10284 10285 CFLAGS="$CFLAGS -errwarn" 10286 10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10288 $as_echo_n "checking if $CC supports -errwarn... " >&6; } 10289 cacheid=xorg_cv_cc_flag__errwarn 10290 if eval \${$cacheid+:} false; then : 10291 $as_echo_n "(cached) " >&6 10292 else 10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10294 /* end confdefs.h. */ 10295 int i; 10296 int 10297 main () 10298 { 10299 10300 ; 10301 return 0; 10302 } 10303 _ACEOF 10304 if ac_fn_c_try_link "$LINENO"; then : 10305 eval $cacheid=yes 10306 else 10307 eval $cacheid=no 10308 fi 10309 rm -f core conftest.err conftest.$ac_objext \ 10310 conftest$ac_exeext conftest.$ac_ext 10311 fi 10312 10313 10314 CFLAGS="$xorg_testset_save_CFLAGS" 10315 10316 eval supported=\$$cacheid 10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10318 $as_echo "$supported" >&6; } 10319 if test "$supported" = "yes" ; then 10320 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10321 found="yes" 10322 fi 10323 fi 10324 10325 10326 10327 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10328 # activate it with -Werror, so we add it here explicitly. 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 xorg_testset_save_CFLAGS="$CFLAGS" 10343 10344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10347 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10348 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10349 $as_echo_n "(cached) " >&6 10350 else 10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10352 /* end confdefs.h. */ 10353 int i; 10354 _ACEOF 10355 if ac_fn_c_try_compile "$LINENO"; then : 10356 xorg_cv_cc_flag_unknown_warning_option=yes 10357 else 10358 xorg_cv_cc_flag_unknown_warning_option=no 10359 fi 10360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10361 fi 10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10363 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10365 CFLAGS="$xorg_testset_save_CFLAGS" 10366 fi 10367 10368 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10371 fi 10372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10374 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10375 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10376 $as_echo_n "(cached) " >&6 10377 else 10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10379 /* end confdefs.h. */ 10380 int i; 10381 _ACEOF 10382 if ac_fn_c_try_compile "$LINENO"; then : 10383 xorg_cv_cc_flag_unused_command_line_argument=yes 10384 else 10385 xorg_cv_cc_flag_unused_command_line_argument=no 10386 fi 10387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10388 fi 10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10390 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10392 CFLAGS="$xorg_testset_save_CFLAGS" 10393 fi 10394 10395 found="no" 10396 10397 if test $found = "no" ; then 10398 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10400 fi 10401 10402 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10404 fi 10405 10406 CFLAGS="$CFLAGS -Werror=attributes" 10407 10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10409 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10410 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10411 if eval \${$cacheid+:} false; then : 10412 $as_echo_n "(cached) " >&6 10413 else 10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10415 /* end confdefs.h. */ 10416 int i; 10417 int 10418 main () 10419 { 10420 10421 ; 10422 return 0; 10423 } 10424 _ACEOF 10425 if ac_fn_c_try_link "$LINENO"; then : 10426 eval $cacheid=yes 10427 else 10428 eval $cacheid=no 10429 fi 10430 rm -f core conftest.err conftest.$ac_objext \ 10431 conftest$ac_exeext conftest.$ac_ext 10432 fi 10433 10434 10435 CFLAGS="$xorg_testset_save_CFLAGS" 10436 10437 eval supported=\$$cacheid 10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10439 $as_echo "$supported" >&6; } 10440 if test "$supported" = "yes" ; then 10441 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10442 found="yes" 10443 fi 10444 fi 10445 10446 10447 10448 if test "x$STRICT_COMPILE" = "xyes"; then 10449 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10450 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10451 fi 10452 10453 10454 10455 10456 10457 10458 cat >>confdefs.h <<_ACEOF 10459 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10460 _ACEOF 10461 10462 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10463 if test "x$PVM" = "x"; then 10464 PVM="0" 10465 fi 10466 10467 cat >>confdefs.h <<_ACEOF 10468 #define PACKAGE_VERSION_MINOR $PVM 10469 _ACEOF 10470 10471 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10472 if test "x$PVP" = "x"; then 10473 PVP="0" 10474 fi 10475 10476 cat >>confdefs.h <<_ACEOF 10477 #define PACKAGE_VERSION_PATCHLEVEL $PVP 10478 _ACEOF 10479 10480 10481 10482 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10483 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10484 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10485 echo 'git directory not found: installing possibly empty changelog.' >&2)" 10486 10487 10488 10489 10490 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10491 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10492 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10493 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10494 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10495 10496 10497 10498 10499 10500 10501 if test x$APP_MAN_SUFFIX = x ; then 10502 APP_MAN_SUFFIX=1 10503 fi 10504 if test x$APP_MAN_DIR = x ; then 10505 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10506 fi 10507 10508 if test x$LIB_MAN_SUFFIX = x ; then 10509 LIB_MAN_SUFFIX=3 10510 fi 10511 if test x$LIB_MAN_DIR = x ; then 10512 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10513 fi 10514 10515 if test x$FILE_MAN_SUFFIX = x ; then 10516 case $host_os in 10517 solaris*) FILE_MAN_SUFFIX=4 ;; 10518 *) FILE_MAN_SUFFIX=5 ;; 10519 esac 10520 fi 10521 if test x$FILE_MAN_DIR = x ; then 10522 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10523 fi 10524 10525 if test x$MISC_MAN_SUFFIX = x ; then 10526 case $host_os in 10527 solaris*) MISC_MAN_SUFFIX=5 ;; 10528 *) MISC_MAN_SUFFIX=7 ;; 10529 esac 10530 fi 10531 if test x$MISC_MAN_DIR = x ; then 10532 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10533 fi 10534 10535 if test x$DRIVER_MAN_SUFFIX = x ; then 10536 case $host_os in 10537 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10538 *) DRIVER_MAN_SUFFIX=4 ;; 10539 esac 10540 fi 10541 if test x$DRIVER_MAN_DIR = x ; then 10542 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10543 fi 10544 10545 if test x$ADMIN_MAN_SUFFIX = x ; then 10546 case $host_os in 10547 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10548 *) ADMIN_MAN_SUFFIX=8 ;; 10549 esac 10550 fi 10551 if test x$ADMIN_MAN_DIR = x ; then 10552 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10553 fi 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 XORG_MAN_PAGE="X Version 11" 10570 10571 MAN_SUBSTS="\ 10572 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10573 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10574 -e 's|__xservername__|Xorg|g' \ 10575 -e 's|__xconfigfile__|xorg.conf|g' \ 10576 -e 's|__projectroot__|\$(prefix)|g' \ 10577 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10578 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10579 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10580 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10581 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10582 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10583 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10584 10585 10586 10587 # Check whether --enable-silent-rules was given. 10588 if test "${enable_silent_rules+set}" = set; then : 10589 enableval=$enable_silent_rules; 10590 fi 10591 10592 case $enable_silent_rules in 10593 yes) AM_DEFAULT_VERBOSITY=0;; 10594 no) AM_DEFAULT_VERBOSITY=1;; 10595 *) AM_DEFAULT_VERBOSITY=0;; 10596 esac 10597 am_make=${MAKE-make} 10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10599 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10600 if ${am_cv_make_support_nested_variables+:} false; then : 10601 $as_echo_n "(cached) " >&6 10602 else 10603 if $as_echo 'TRUE=$(BAR$(V)) 10604 BAR0=false 10605 BAR1=true 10606 V=1 10607 am__doit: 10608 @$(TRUE) 10609 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10610 am_cv_make_support_nested_variables=yes 10611 else 10612 am_cv_make_support_nested_variables=no 10613 fi 10614 fi 10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10616 $as_echo "$am_cv_make_support_nested_variables" >&6; } 10617 if test $am_cv_make_support_nested_variables = yes; then 10618 AM_V='$(V)' 10619 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10620 else 10621 AM_V=$AM_DEFAULT_VERBOSITY 10622 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10623 fi 10624 AM_BACKSLASH='\' 10625 10626 10627 10628 # Initialize libtool 10629 # Check whether --enable-static was given. 10630 if test "${enable_static+set}" = set; then : 10631 enableval=$enable_static; p=${PACKAGE-default} 10632 case $enableval in 10633 yes) enable_static=yes ;; 10634 no) enable_static=no ;; 10635 *) 10636 enable_static=no 10637 # Look at the argument we got. We use all the common list separators. 10638 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10639 for pkg in $enableval; do 10640 IFS="$lt_save_ifs" 10641 if test "X$pkg" = "X$p"; then 10642 enable_static=yes 10643 fi 10644 done 10645 IFS="$lt_save_ifs" 10646 ;; 10647 esac 10648 else 10649 enable_static=no 10650 fi 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 case `pwd` in 10661 *\ * | *\ *) 10662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10663 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10664 esac 10665 10666 10667 10668 macro_version='2.4.2' 10669 macro_revision='1.3337' 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 ltmain="$ac_aux_dir/ltmain.sh" 10684 10685 # Backslashify metacharacters that are still active within 10686 # double-quoted strings. 10687 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10688 10689 # Same as above, but do not quote variable references. 10690 double_quote_subst='s/\(["`\\]\)/\\\1/g' 10691 10692 # Sed substitution to delay expansion of an escaped shell variable in a 10693 # double_quote_subst'ed string. 10694 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10695 10696 # Sed substitution to delay expansion of an escaped single quote. 10697 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10698 10699 # Sed substitution to avoid accidental globbing in evaled expressions 10700 no_glob_subst='s/\*/\\\*/g' 10701 10702 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10703 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10704 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10705 10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10707 $as_echo_n "checking how to print strings... " >&6; } 10708 # Test print first, because it will be a builtin if present. 10709 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10710 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10711 ECHO='print -r --' 10712 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10713 ECHO='printf %s\n' 10714 else 10715 # Use this function as a fallback that always works. 10716 func_fallback_echo () 10717 { 10718 eval 'cat <<_LTECHO_EOF 10719 $1 10720 _LTECHO_EOF' 10721 } 10722 ECHO='func_fallback_echo' 10723 fi 10724 10725 # func_echo_all arg... 10726 # Invoke $ECHO with all args, space-separated. 10727 func_echo_all () 10728 { 10729 $ECHO "" 10730 } 10731 10732 case "$ECHO" in 10733 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10734 $as_echo "printf" >&6; } ;; 10735 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10736 $as_echo "print -r" >&6; } ;; 10737 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10738 $as_echo "cat" >&6; } ;; 10739 esac 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10755 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 10756 if ${ac_cv_path_SED+:} false; then : 10757 $as_echo_n "(cached) " >&6 10758 else 10759 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10760 for ac_i in 1 2 3 4 5 6 7; do 10761 ac_script="$ac_script$as_nl$ac_script" 10762 done 10763 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 10764 { ac_script=; unset ac_script;} 10765 if test -z "$SED"; then 10766 ac_path_SED_found=false 10767 # Loop through the user's path and test for each of PROGNAME-LIST 10768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10769 for as_dir in $PATH 10770 do 10771 IFS=$as_save_IFS 10772 test -z "$as_dir" && as_dir=. 10773 for ac_prog in sed gsed; do 10774 for ac_exec_ext in '' $ac_executable_extensions; do 10775 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 10776 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 10777 # Check for GNU ac_path_SED and select it if it is found. 10778 # Check for GNU $ac_path_SED 10779 case `"$ac_path_SED" --version 2>&1` in 10780 *GNU*) 10781 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 10782 *) 10783 ac_count=0 10784 $as_echo_n 0123456789 >"conftest.in" 10785 while : 10786 do 10787 cat "conftest.in" "conftest.in" >"conftest.tmp" 10788 mv "conftest.tmp" "conftest.in" 10789 cp "conftest.in" "conftest.nl" 10790 $as_echo '' >> "conftest.nl" 10791 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 10792 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10793 as_fn_arith $ac_count + 1 && ac_count=$as_val 10794 if test $ac_count -gt ${ac_path_SED_max-0}; then 10795 # Best one so far, save it but keep looking for a better one 10796 ac_cv_path_SED="$ac_path_SED" 10797 ac_path_SED_max=$ac_count 10798 fi 10799 # 10*(2^10) chars as input seems more than enough 10800 test $ac_count -gt 10 && break 10801 done 10802 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10803 esac 10804 10805 $ac_path_SED_found && break 3 10806 done 10807 done 10808 done 10809 IFS=$as_save_IFS 10810 if test -z "$ac_cv_path_SED"; then 10811 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 10812 fi 10813 else 10814 ac_cv_path_SED=$SED 10815 fi 10816 10817 fi 10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 10819 $as_echo "$ac_cv_path_SED" >&6; } 10820 SED="$ac_cv_path_SED" 10821 rm -f conftest.sed 10822 10823 test -z "$SED" && SED=sed 10824 Xsed="$SED -e 1s/^X//" 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 10837 $as_echo_n "checking for fgrep... " >&6; } 10838 if ${ac_cv_path_FGREP+:} false; then : 10839 $as_echo_n "(cached) " >&6 10840 else 10841 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 10842 then ac_cv_path_FGREP="$GREP -F" 10843 else 10844 if test -z "$FGREP"; then 10845 ac_path_FGREP_found=false 10846 # Loop through the user's path and test for each of PROGNAME-LIST 10847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10848 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10849 do 10850 IFS=$as_save_IFS 10851 test -z "$as_dir" && as_dir=. 10852 for ac_prog in fgrep; do 10853 for ac_exec_ext in '' $ac_executable_extensions; do 10854 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 10855 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 10856 # Check for GNU ac_path_FGREP and select it if it is found. 10857 # Check for GNU $ac_path_FGREP 10858 case `"$ac_path_FGREP" --version 2>&1` in 10859 *GNU*) 10860 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 10861 *) 10862 ac_count=0 10863 $as_echo_n 0123456789 >"conftest.in" 10864 while : 10865 do 10866 cat "conftest.in" "conftest.in" >"conftest.tmp" 10867 mv "conftest.tmp" "conftest.in" 10868 cp "conftest.in" "conftest.nl" 10869 $as_echo 'FGREP' >> "conftest.nl" 10870 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 10871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10872 as_fn_arith $ac_count + 1 && ac_count=$as_val 10873 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 10874 # Best one so far, save it but keep looking for a better one 10875 ac_cv_path_FGREP="$ac_path_FGREP" 10876 ac_path_FGREP_max=$ac_count 10877 fi 10878 # 10*(2^10) chars as input seems more than enough 10879 test $ac_count -gt 10 && break 10880 done 10881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10882 esac 10883 10884 $ac_path_FGREP_found && break 3 10885 done 10886 done 10887 done 10888 IFS=$as_save_IFS 10889 if test -z "$ac_cv_path_FGREP"; then 10890 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 10891 fi 10892 else 10893 ac_cv_path_FGREP=$FGREP 10894 fi 10895 10896 fi 10897 fi 10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 10899 $as_echo "$ac_cv_path_FGREP" >&6; } 10900 FGREP="$ac_cv_path_FGREP" 10901 10902 10903 test -z "$GREP" && GREP=grep 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 # Check whether --with-gnu-ld was given. 10924 if test "${with_gnu_ld+set}" = set; then : 10925 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10926 else 10927 with_gnu_ld=no 10928 fi 10929 10930 ac_prog=ld 10931 if test "$GCC" = yes; then 10932 # Check if gcc -print-prog-name=ld gives a path. 10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 10934 $as_echo_n "checking for ld used by $CC... " >&6; } 10935 case $host in 10936 *-*-mingw*) 10937 # gcc leaves a trailing carriage return which upsets mingw 10938 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10939 *) 10940 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10941 esac 10942 case $ac_prog in 10943 # Accept absolute paths. 10944 [\\/]* | ?:[\\/]*) 10945 re_direlt='/[^/][^/]*/\.\./' 10946 # Canonicalize the pathname of ld 10947 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 10948 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 10949 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 10950 done 10951 test -z "$LD" && LD="$ac_prog" 10952 ;; 10953 "") 10954 # If it fails, then pretend we aren't using GCC. 10955 ac_prog=ld 10956 ;; 10957 *) 10958 # If it is relative, then search for the first ld in PATH. 10959 with_gnu_ld=unknown 10960 ;; 10961 esac 10962 elif test "$with_gnu_ld" = yes; then 10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 10964 $as_echo_n "checking for GNU ld... " >&6; } 10965 else 10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 10967 $as_echo_n "checking for non-GNU ld... " >&6; } 10968 fi 10969 if ${lt_cv_path_LD+:} false; then : 10970 $as_echo_n "(cached) " >&6 10971 else 10972 if test -z "$LD"; then 10973 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10974 for ac_dir in $PATH; do 10975 IFS="$lt_save_ifs" 10976 test -z "$ac_dir" && ac_dir=. 10977 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10978 lt_cv_path_LD="$ac_dir/$ac_prog" 10979 # Check to see if the program is GNU ld. I'd rather use --version, 10980 # but apparently some variants of GNU ld only accept -v. 10981 # Break only if it was the GNU/non-GNU ld that we prefer. 10982 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10983 *GNU* | *'with BFD'*) 10984 test "$with_gnu_ld" != no && break 10985 ;; 10986 *) 10987 test "$with_gnu_ld" != yes && break 10988 ;; 10989 esac 10990 fi 10991 done 10992 IFS="$lt_save_ifs" 10993 else 10994 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10995 fi 10996 fi 10997 10998 LD="$lt_cv_path_LD" 10999 if test -n "$LD"; then 11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11001 $as_echo "$LD" >&6; } 11002 else 11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11004 $as_echo "no" >&6; } 11005 fi 11006 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11008 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11009 if ${lt_cv_prog_gnu_ld+:} false; then : 11010 $as_echo_n "(cached) " >&6 11011 else 11012 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11013 case `$LD -v 2>&1 </dev/null` in 11014 *GNU* | *'with BFD'*) 11015 lt_cv_prog_gnu_ld=yes 11016 ;; 11017 *) 11018 lt_cv_prog_gnu_ld=no 11019 ;; 11020 esac 11021 fi 11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11023 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 11024 with_gnu_ld=$lt_cv_prog_gnu_ld 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11035 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11036 if ${lt_cv_path_NM+:} false; then : 11037 $as_echo_n "(cached) " >&6 11038 else 11039 if test -n "$NM"; then 11040 # Let the user override the test. 11041 lt_cv_path_NM="$NM" 11042 else 11043 lt_nm_to_check="${ac_tool_prefix}nm" 11044 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11045 lt_nm_to_check="$lt_nm_to_check nm" 11046 fi 11047 for lt_tmp_nm in $lt_nm_to_check; do 11048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11049 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11050 IFS="$lt_save_ifs" 11051 test -z "$ac_dir" && ac_dir=. 11052 tmp_nm="$ac_dir/$lt_tmp_nm" 11053 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 11054 # Check to see if the nm accepts a BSD-compat flag. 11055 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 11056 # nm: unknown option "B" ignored 11057 # Tru64's nm complains that /dev/null is an invalid object file 11058 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 11059 */dev/null* | *'Invalid file or object type'*) 11060 lt_cv_path_NM="$tmp_nm -B" 11061 break 11062 ;; 11063 *) 11064 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11065 */dev/null*) 11066 lt_cv_path_NM="$tmp_nm -p" 11067 break 11068 ;; 11069 *) 11070 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11071 continue # so that we can try to find one that supports BSD flags 11072 ;; 11073 esac 11074 ;; 11075 esac 11076 fi 11077 done 11078 IFS="$lt_save_ifs" 11079 done 11080 : ${lt_cv_path_NM=no} 11081 fi 11082 fi 11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11084 $as_echo "$lt_cv_path_NM" >&6; } 11085 if test "$lt_cv_path_NM" != "no"; then 11086 NM="$lt_cv_path_NM" 11087 else 11088 # Didn't find any BSD compatible name lister, look for dumpbin. 11089 if test -n "$DUMPBIN"; then : 11090 # Let the user override the test. 11091 else 11092 if test -n "$ac_tool_prefix"; then 11093 for ac_prog in dumpbin "link -dump" 11094 do 11095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11098 $as_echo_n "checking for $ac_word... " >&6; } 11099 if ${ac_cv_prog_DUMPBIN+:} false; then : 11100 $as_echo_n "(cached) " >&6 11101 else 11102 if test -n "$DUMPBIN"; then 11103 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11104 else 11105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11106 for as_dir in $PATH 11107 do 11108 IFS=$as_save_IFS 11109 test -z "$as_dir" && as_dir=. 11110 for ac_exec_ext in '' $ac_executable_extensions; do 11111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11112 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11114 break 2 11115 fi 11116 done 11117 done 11118 IFS=$as_save_IFS 11119 11120 fi 11121 fi 11122 DUMPBIN=$ac_cv_prog_DUMPBIN 11123 if test -n "$DUMPBIN"; then 11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11125 $as_echo "$DUMPBIN" >&6; } 11126 else 11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11128 $as_echo "no" >&6; } 11129 fi 11130 11131 11132 test -n "$DUMPBIN" && break 11133 done 11134 fi 11135 if test -z "$DUMPBIN"; then 11136 ac_ct_DUMPBIN=$DUMPBIN 11137 for ac_prog in dumpbin "link -dump" 11138 do 11139 # Extract the first word of "$ac_prog", so it can be a program name with args. 11140 set dummy $ac_prog; ac_word=$2 11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11142 $as_echo_n "checking for $ac_word... " >&6; } 11143 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11144 $as_echo_n "(cached) " >&6 11145 else 11146 if test -n "$ac_ct_DUMPBIN"; then 11147 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11148 else 11149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11150 for as_dir in $PATH 11151 do 11152 IFS=$as_save_IFS 11153 test -z "$as_dir" && as_dir=. 11154 for ac_exec_ext in '' $ac_executable_extensions; do 11155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11156 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11158 break 2 11159 fi 11160 done 11161 done 11162 IFS=$as_save_IFS 11163 11164 fi 11165 fi 11166 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11167 if test -n "$ac_ct_DUMPBIN"; then 11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11169 $as_echo "$ac_ct_DUMPBIN" >&6; } 11170 else 11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11172 $as_echo "no" >&6; } 11173 fi 11174 11175 11176 test -n "$ac_ct_DUMPBIN" && break 11177 done 11178 11179 if test "x$ac_ct_DUMPBIN" = x; then 11180 DUMPBIN=":" 11181 else 11182 case $cross_compiling:$ac_tool_warned in 11183 yes:) 11184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11186 ac_tool_warned=yes ;; 11187 esac 11188 DUMPBIN=$ac_ct_DUMPBIN 11189 fi 11190 fi 11191 11192 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 11193 *COFF*) 11194 DUMPBIN="$DUMPBIN -symbols" 11195 ;; 11196 *) 11197 DUMPBIN=: 11198 ;; 11199 esac 11200 fi 11201 11202 if test "$DUMPBIN" != ":"; then 11203 NM="$DUMPBIN" 11204 fi 11205 fi 11206 test -z "$NM" && NM=nm 11207 11208 11209 11210 11211 11212 11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11214 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 11215 if ${lt_cv_nm_interface+:} false; then : 11216 $as_echo_n "(cached) " >&6 11217 else 11218 lt_cv_nm_interface="BSD nm" 11219 echo "int some_variable = 0;" > conftest.$ac_ext 11220 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11221 (eval "$ac_compile" 2>conftest.err) 11222 cat conftest.err >&5 11223 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11224 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11225 cat conftest.err >&5 11226 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11227 cat conftest.out >&5 11228 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11229 lt_cv_nm_interface="MS dumpbin" 11230 fi 11231 rm -f conftest* 11232 fi 11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11234 $as_echo "$lt_cv_nm_interface" >&6; } 11235 11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11237 $as_echo_n "checking whether ln -s works... " >&6; } 11238 LN_S=$as_ln_s 11239 if test "$LN_S" = "ln -s"; then 11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11241 $as_echo "yes" >&6; } 11242 else 11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11244 $as_echo "no, using $LN_S" >&6; } 11245 fi 11246 11247 # find the maximum length of command line arguments 11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11249 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 11250 if ${lt_cv_sys_max_cmd_len+:} false; then : 11251 $as_echo_n "(cached) " >&6 11252 else 11253 i=0 11254 teststring="ABCD" 11255 11256 case $build_os in 11257 msdosdjgpp*) 11258 # On DJGPP, this test can blow up pretty badly due to problems in libc 11259 # (any single argument exceeding 2000 bytes causes a buffer overrun 11260 # during glob expansion). Even if it were fixed, the result of this 11261 # check would be larger than it should be. 11262 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11263 ;; 11264 11265 gnu*) 11266 # Under GNU Hurd, this test is not required because there is 11267 # no limit to the length of command line arguments. 11268 # Libtool will interpret -1 as no limit whatsoever 11269 lt_cv_sys_max_cmd_len=-1; 11270 ;; 11271 11272 cygwin* | mingw* | cegcc*) 11273 # On Win9x/ME, this test blows up -- it succeeds, but takes 11274 # about 5 minutes as the teststring grows exponentially. 11275 # Worse, since 9x/ME are not pre-emptively multitasking, 11276 # you end up with a "frozen" computer, even though with patience 11277 # the test eventually succeeds (with a max line length of 256k). 11278 # Instead, let's just punt: use the minimum linelength reported by 11279 # all of the supported platforms: 8192 (on NT/2K/XP). 11280 lt_cv_sys_max_cmd_len=8192; 11281 ;; 11282 11283 mint*) 11284 # On MiNT this can take a long time and run out of memory. 11285 lt_cv_sys_max_cmd_len=8192; 11286 ;; 11287 11288 amigaos*) 11289 # On AmigaOS with pdksh, this test takes hours, literally. 11290 # So we just punt and use a minimum line length of 8192. 11291 lt_cv_sys_max_cmd_len=8192; 11292 ;; 11293 11294 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 11295 # This has been around since 386BSD, at least. Likely further. 11296 if test -x /sbin/sysctl; then 11297 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11298 elif test -x /usr/sbin/sysctl; then 11299 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11300 else 11301 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11302 fi 11303 # And add a safety zone 11304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11306 ;; 11307 11308 interix*) 11309 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11310 lt_cv_sys_max_cmd_len=196608 11311 ;; 11312 11313 os2*) 11314 # The test takes a long time on OS/2. 11315 lt_cv_sys_max_cmd_len=8192 11316 ;; 11317 11318 osf*) 11319 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11320 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11321 # nice to cause kernel panics so lets avoid the loop below. 11322 # First set a reasonable default. 11323 lt_cv_sys_max_cmd_len=16384 11324 # 11325 if test -x /sbin/sysconfig; then 11326 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11327 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11328 esac 11329 fi 11330 ;; 11331 sco3.2v5*) 11332 lt_cv_sys_max_cmd_len=102400 11333 ;; 11334 sysv5* | sco5v6* | sysv4.2uw2*) 11335 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11336 if test -n "$kargmax"; then 11337 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11338 else 11339 lt_cv_sys_max_cmd_len=32768 11340 fi 11341 ;; 11342 *) 11343 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11344 if test -n "$lt_cv_sys_max_cmd_len"; then 11345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11346 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11347 else 11348 # Make teststring a little bigger before we do anything with it. 11349 # a 1K string should be a reasonable start. 11350 for i in 1 2 3 4 5 6 7 8 ; do 11351 teststring=$teststring$teststring 11352 done 11353 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11354 # If test is not a shell built-in, we'll probably end up computing a 11355 # maximum length that is only half of the actual maximum length, but 11356 # we can't tell. 11357 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 11358 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11359 test $i != 17 # 1/2 MB should be enough 11360 do 11361 i=`expr $i + 1` 11362 teststring=$teststring$teststring 11363 done 11364 # Only check the string length outside the loop. 11365 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11366 teststring= 11367 # Add a significant safety factor because C++ compilers can tack on 11368 # massive amounts of additional arguments before passing them to the 11369 # linker. It appears as though 1/2 is a usable value. 11370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11371 fi 11372 ;; 11373 esac 11374 11375 fi 11376 11377 if test -n $lt_cv_sys_max_cmd_len ; then 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11379 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11380 else 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11382 $as_echo "none" >&6; } 11383 fi 11384 max_cmd_len=$lt_cv_sys_max_cmd_len 11385 11386 11387 11388 11389 11390 11391 : ${CP="cp -f"} 11392 : ${MV="mv -f"} 11393 : ${RM="rm -f"} 11394 11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 11396 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 11397 # Try some XSI features 11398 xsi_shell=no 11399 ( _lt_dummy="a/b/c" 11400 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 11401 = c,a/b,b/c, \ 11402 && eval 'test $(( 1 + 1 )) -eq 2 \ 11403 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 11404 && xsi_shell=yes 11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 11406 $as_echo "$xsi_shell" >&6; } 11407 11408 11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 11410 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 11411 lt_shell_append=no 11412 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 11413 >/dev/null 2>&1 \ 11414 && lt_shell_append=yes 11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 11416 $as_echo "$lt_shell_append" >&6; } 11417 11418 11419 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11420 lt_unset=unset 11421 else 11422 lt_unset=false 11423 fi 11424 11425 11426 11427 11428 11429 # test EBCDIC or ASCII 11430 case `echo X|tr X '\101'` in 11431 A) # ASCII based system 11432 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11433 lt_SP2NL='tr \040 \012' 11434 lt_NL2SP='tr \015\012 \040\040' 11435 ;; 11436 *) # EBCDIC based system 11437 lt_SP2NL='tr \100 \n' 11438 lt_NL2SP='tr \r\n \100\100' 11439 ;; 11440 esac 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11451 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11452 if ${lt_cv_to_host_file_cmd+:} false; then : 11453 $as_echo_n "(cached) " >&6 11454 else 11455 case $host in 11456 *-*-mingw* ) 11457 case $build in 11458 *-*-mingw* ) # actually msys 11459 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11460 ;; 11461 *-*-cygwin* ) 11462 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11463 ;; 11464 * ) # otherwise, assume *nix 11465 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11466 ;; 11467 esac 11468 ;; 11469 *-*-cygwin* ) 11470 case $build in 11471 *-*-mingw* ) # actually msys 11472 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11473 ;; 11474 *-*-cygwin* ) 11475 lt_cv_to_host_file_cmd=func_convert_file_noop 11476 ;; 11477 * ) # otherwise, assume *nix 11478 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11479 ;; 11480 esac 11481 ;; 11482 * ) # unhandled hosts (and "normal" native builds) 11483 lt_cv_to_host_file_cmd=func_convert_file_noop 11484 ;; 11485 esac 11486 11487 fi 11488 11489 to_host_file_cmd=$lt_cv_to_host_file_cmd 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11491 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 11492 11493 11494 11495 11496 11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11498 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11499 if ${lt_cv_to_tool_file_cmd+:} false; then : 11500 $as_echo_n "(cached) " >&6 11501 else 11502 #assume ordinary cross tools, or native build. 11503 lt_cv_to_tool_file_cmd=func_convert_file_noop 11504 case $host in 11505 *-*-mingw* ) 11506 case $build in 11507 *-*-mingw* ) # actually msys 11508 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11509 ;; 11510 esac 11511 ;; 11512 esac 11513 11514 fi 11515 11516 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11518 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11519 11520 11521 11522 11523 11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11525 $as_echo_n "checking for $LD option to reload object files... " >&6; } 11526 if ${lt_cv_ld_reload_flag+:} false; then : 11527 $as_echo_n "(cached) " >&6 11528 else 11529 lt_cv_ld_reload_flag='-r' 11530 fi 11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11532 $as_echo "$lt_cv_ld_reload_flag" >&6; } 11533 reload_flag=$lt_cv_ld_reload_flag 11534 case $reload_flag in 11535 "" | " "*) ;; 11536 *) reload_flag=" $reload_flag" ;; 11537 esac 11538 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11539 case $host_os in 11540 cygwin* | mingw* | pw32* | cegcc*) 11541 if test "$GCC" != yes; then 11542 reload_cmds=false 11543 fi 11544 ;; 11545 darwin*) 11546 if test "$GCC" = yes; then 11547 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 11548 else 11549 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11550 fi 11551 ;; 11552 esac 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 if test -n "$ac_tool_prefix"; then 11563 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11564 set dummy ${ac_tool_prefix}objdump; ac_word=$2 11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11566 $as_echo_n "checking for $ac_word... " >&6; } 11567 if ${ac_cv_prog_OBJDUMP+:} false; then : 11568 $as_echo_n "(cached) " >&6 11569 else 11570 if test -n "$OBJDUMP"; then 11571 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11572 else 11573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11574 for as_dir in $PATH 11575 do 11576 IFS=$as_save_IFS 11577 test -z "$as_dir" && as_dir=. 11578 for ac_exec_ext in '' $ac_executable_extensions; do 11579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11580 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11582 break 2 11583 fi 11584 done 11585 done 11586 IFS=$as_save_IFS 11587 11588 fi 11589 fi 11590 OBJDUMP=$ac_cv_prog_OBJDUMP 11591 if test -n "$OBJDUMP"; then 11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11593 $as_echo "$OBJDUMP" >&6; } 11594 else 11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11596 $as_echo "no" >&6; } 11597 fi 11598 11599 11600 fi 11601 if test -z "$ac_cv_prog_OBJDUMP"; then 11602 ac_ct_OBJDUMP=$OBJDUMP 11603 # Extract the first word of "objdump", so it can be a program name with args. 11604 set dummy objdump; ac_word=$2 11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11606 $as_echo_n "checking for $ac_word... " >&6; } 11607 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11608 $as_echo_n "(cached) " >&6 11609 else 11610 if test -n "$ac_ct_OBJDUMP"; then 11611 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11612 else 11613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11614 for as_dir in $PATH 11615 do 11616 IFS=$as_save_IFS 11617 test -z "$as_dir" && as_dir=. 11618 for ac_exec_ext in '' $ac_executable_extensions; do 11619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11620 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11622 break 2 11623 fi 11624 done 11625 done 11626 IFS=$as_save_IFS 11627 11628 fi 11629 fi 11630 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11631 if test -n "$ac_ct_OBJDUMP"; then 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11633 $as_echo "$ac_ct_OBJDUMP" >&6; } 11634 else 11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11636 $as_echo "no" >&6; } 11637 fi 11638 11639 if test "x$ac_ct_OBJDUMP" = x; then 11640 OBJDUMP="false" 11641 else 11642 case $cross_compiling:$ac_tool_warned in 11643 yes:) 11644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11646 ac_tool_warned=yes ;; 11647 esac 11648 OBJDUMP=$ac_ct_OBJDUMP 11649 fi 11650 else 11651 OBJDUMP="$ac_cv_prog_OBJDUMP" 11652 fi 11653 11654 test -z "$OBJDUMP" && OBJDUMP=objdump 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11665 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 11666 if ${lt_cv_deplibs_check_method+:} false; then : 11667 $as_echo_n "(cached) " >&6 11668 else 11669 lt_cv_file_magic_cmd='$MAGIC_CMD' 11670 lt_cv_file_magic_test_file= 11671 lt_cv_deplibs_check_method='unknown' 11672 # Need to set the preceding variable on all platforms that support 11673 # interlibrary dependencies. 11674 # 'none' -- dependencies not supported. 11675 # `unknown' -- same as none, but documents that we really don't know. 11676 # 'pass_all' -- all dependencies passed with no checks. 11677 # 'test_compile' -- check by making test program. 11678 # 'file_magic [[regex]]' -- check by looking for files in library path 11679 # which responds to the $file_magic_cmd with a given extended regex. 11680 # If you have `file' or equivalent on your system and you're not sure 11681 # whether `pass_all' will *always* work, you probably want this one. 11682 11683 case $host_os in 11684 aix[4-9]*) 11685 lt_cv_deplibs_check_method=pass_all 11686 ;; 11687 11688 beos*) 11689 lt_cv_deplibs_check_method=pass_all 11690 ;; 11691 11692 bsdi[45]*) 11693 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11694 lt_cv_file_magic_cmd='/usr/bin/file -L' 11695 lt_cv_file_magic_test_file=/shlib/libc.so 11696 ;; 11697 11698 cygwin*) 11699 # func_win32_libid is a shell function defined in ltmain.sh 11700 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11701 lt_cv_file_magic_cmd='func_win32_libid' 11702 ;; 11703 11704 mingw* | pw32*) 11705 # Base MSYS/MinGW do not provide the 'file' command needed by 11706 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11707 # unless we find 'file', for example because we are cross-compiling. 11708 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 11709 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 11710 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11711 lt_cv_file_magic_cmd='func_win32_libid' 11712 else 11713 # Keep this pattern in sync with the one in func_win32_libid. 11714 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11715 lt_cv_file_magic_cmd='$OBJDUMP -f' 11716 fi 11717 ;; 11718 11719 cegcc*) 11720 # use the weaker test based on 'objdump'. See mingw*. 11721 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11722 lt_cv_file_magic_cmd='$OBJDUMP -f' 11723 ;; 11724 11725 darwin* | rhapsody*) 11726 lt_cv_deplibs_check_method=pass_all 11727 ;; 11728 11729 freebsd* | dragonfly*) 11730 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11731 case $host_cpu in 11732 i*86 ) 11733 # Not sure whether the presence of OpenBSD here was a mistake. 11734 # Let's accept both of them until this is cleared up. 11735 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11736 lt_cv_file_magic_cmd=/usr/bin/file 11737 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11738 ;; 11739 esac 11740 else 11741 lt_cv_deplibs_check_method=pass_all 11742 fi 11743 ;; 11744 11745 gnu*) 11746 lt_cv_deplibs_check_method=pass_all 11747 ;; 11748 11749 haiku*) 11750 lt_cv_deplibs_check_method=pass_all 11751 ;; 11752 11753 hpux10.20* | hpux11*) 11754 lt_cv_file_magic_cmd=/usr/bin/file 11755 case $host_cpu in 11756 ia64*) 11757 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11758 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11759 ;; 11760 hppa*64*) 11761 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]' 11762 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11763 ;; 11764 *) 11765 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11766 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11767 ;; 11768 esac 11769 ;; 11770 11771 interix[3-9]*) 11772 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11774 ;; 11775 11776 irix5* | irix6* | nonstopux*) 11777 case $LD in 11778 *-32|*"-32 ") libmagic=32-bit;; 11779 *-n32|*"-n32 ") libmagic=N32;; 11780 *-64|*"-64 ") libmagic=64-bit;; 11781 *) libmagic=never-match;; 11782 esac 11783 lt_cv_deplibs_check_method=pass_all 11784 ;; 11785 11786 # This must be glibc/ELF. 11787 linux* | k*bsd*-gnu | kopensolaris*-gnu) 11788 lt_cv_deplibs_check_method=pass_all 11789 ;; 11790 11791 netbsd*) 11792 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11793 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11794 else 11795 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 11796 fi 11797 ;; 11798 11799 newos6*) 11800 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 11801 lt_cv_file_magic_cmd=/usr/bin/file 11802 lt_cv_file_magic_test_file=/usr/lib/libnls.so 11803 ;; 11804 11805 *nto* | *qnx*) 11806 lt_cv_deplibs_check_method=pass_all 11807 ;; 11808 11809 openbsd*) 11810 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11811 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 11812 else 11813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11814 fi 11815 ;; 11816 11817 osf3* | osf4* | osf5*) 11818 lt_cv_deplibs_check_method=pass_all 11819 ;; 11820 11821 rdos*) 11822 lt_cv_deplibs_check_method=pass_all 11823 ;; 11824 11825 solaris*) 11826 lt_cv_deplibs_check_method=pass_all 11827 ;; 11828 11829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11830 lt_cv_deplibs_check_method=pass_all 11831 ;; 11832 11833 sysv4 | sysv4.3*) 11834 case $host_vendor in 11835 motorola) 11836 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]' 11837 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 11838 ;; 11839 ncr) 11840 lt_cv_deplibs_check_method=pass_all 11841 ;; 11842 sequent) 11843 lt_cv_file_magic_cmd='/bin/file' 11844 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 11845 ;; 11846 sni) 11847 lt_cv_file_magic_cmd='/bin/file' 11848 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 11849 lt_cv_file_magic_test_file=/lib/libc.so 11850 ;; 11851 siemens) 11852 lt_cv_deplibs_check_method=pass_all 11853 ;; 11854 pc) 11855 lt_cv_deplibs_check_method=pass_all 11856 ;; 11857 esac 11858 ;; 11859 11860 tpf*) 11861 lt_cv_deplibs_check_method=pass_all 11862 ;; 11863 esac 11864 11865 fi 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 11867 $as_echo "$lt_cv_deplibs_check_method" >&6; } 11868 11869 file_magic_glob= 11870 want_nocaseglob=no 11871 if test "$build" = "$host"; then 11872 case $host_os in 11873 mingw* | pw32*) 11874 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 11875 want_nocaseglob=yes 11876 else 11877 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 11878 fi 11879 ;; 11880 esac 11881 fi 11882 11883 file_magic_cmd=$lt_cv_file_magic_cmd 11884 deplibs_check_method=$lt_cv_deplibs_check_method 11885 test -z "$deplibs_check_method" && deplibs_check_method=unknown 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 if test -n "$ac_tool_prefix"; then 11909 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 11910 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11912 $as_echo_n "checking for $ac_word... " >&6; } 11913 if ${ac_cv_prog_DLLTOOL+:} false; then : 11914 $as_echo_n "(cached) " >&6 11915 else 11916 if test -n "$DLLTOOL"; then 11917 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 11918 else 11919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11920 for as_dir in $PATH 11921 do 11922 IFS=$as_save_IFS 11923 test -z "$as_dir" && as_dir=. 11924 for ac_exec_ext in '' $ac_executable_extensions; do 11925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11926 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 11927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11928 break 2 11929 fi 11930 done 11931 done 11932 IFS=$as_save_IFS 11933 11934 fi 11935 fi 11936 DLLTOOL=$ac_cv_prog_DLLTOOL 11937 if test -n "$DLLTOOL"; then 11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 11939 $as_echo "$DLLTOOL" >&6; } 11940 else 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11942 $as_echo "no" >&6; } 11943 fi 11944 11945 11946 fi 11947 if test -z "$ac_cv_prog_DLLTOOL"; then 11948 ac_ct_DLLTOOL=$DLLTOOL 11949 # Extract the first word of "dlltool", so it can be a program name with args. 11950 set dummy dlltool; ac_word=$2 11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11952 $as_echo_n "checking for $ac_word... " >&6; } 11953 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 11954 $as_echo_n "(cached) " >&6 11955 else 11956 if test -n "$ac_ct_DLLTOOL"; then 11957 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 11958 else 11959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11960 for as_dir in $PATH 11961 do 11962 IFS=$as_save_IFS 11963 test -z "$as_dir" && as_dir=. 11964 for ac_exec_ext in '' $ac_executable_extensions; do 11965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11966 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 11967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11968 break 2 11969 fi 11970 done 11971 done 11972 IFS=$as_save_IFS 11973 11974 fi 11975 fi 11976 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 11977 if test -n "$ac_ct_DLLTOOL"; then 11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 11979 $as_echo "$ac_ct_DLLTOOL" >&6; } 11980 else 11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11982 $as_echo "no" >&6; } 11983 fi 11984 11985 if test "x$ac_ct_DLLTOOL" = x; then 11986 DLLTOOL="false" 11987 else 11988 case $cross_compiling:$ac_tool_warned in 11989 yes:) 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11992 ac_tool_warned=yes ;; 11993 esac 11994 DLLTOOL=$ac_ct_DLLTOOL 11995 fi 11996 else 11997 DLLTOOL="$ac_cv_prog_DLLTOOL" 11998 fi 11999 12000 test -z "$DLLTOOL" && DLLTOOL=dlltool 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12012 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12013 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12014 $as_echo_n "(cached) " >&6 12015 else 12016 lt_cv_sharedlib_from_linklib_cmd='unknown' 12017 12018 case $host_os in 12019 cygwin* | mingw* | pw32* | cegcc*) 12020 # two different shell functions defined in ltmain.sh 12021 # decide which to use based on capabilities of $DLLTOOL 12022 case `$DLLTOOL --help 2>&1` in 12023 *--identify-strict*) 12024 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12025 ;; 12026 *) 12027 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12028 ;; 12029 esac 12030 ;; 12031 *) 12032 # fallback: assume linklib IS sharedlib 12033 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 12034 ;; 12035 esac 12036 12037 fi 12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12039 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12040 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12041 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12042 12043 12044 12045 12046 12047 12048 12049 if test -n "$ac_tool_prefix"; then 12050 for ac_prog in ar 12051 do 12052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12055 $as_echo_n "checking for $ac_word... " >&6; } 12056 if ${ac_cv_prog_AR+:} false; then : 12057 $as_echo_n "(cached) " >&6 12058 else 12059 if test -n "$AR"; then 12060 ac_cv_prog_AR="$AR" # Let the user override the test. 12061 else 12062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12063 for as_dir in $PATH 12064 do 12065 IFS=$as_save_IFS 12066 test -z "$as_dir" && as_dir=. 12067 for ac_exec_ext in '' $ac_executable_extensions; do 12068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12069 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12071 break 2 12072 fi 12073 done 12074 done 12075 IFS=$as_save_IFS 12076 12077 fi 12078 fi 12079 AR=$ac_cv_prog_AR 12080 if test -n "$AR"; then 12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12082 $as_echo "$AR" >&6; } 12083 else 12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12085 $as_echo "no" >&6; } 12086 fi 12087 12088 12089 test -n "$AR" && break 12090 done 12091 fi 12092 if test -z "$AR"; then 12093 ac_ct_AR=$AR 12094 for ac_prog in ar 12095 do 12096 # Extract the first word of "$ac_prog", so it can be a program name with args. 12097 set dummy $ac_prog; ac_word=$2 12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12099 $as_echo_n "checking for $ac_word... " >&6; } 12100 if ${ac_cv_prog_ac_ct_AR+:} false; then : 12101 $as_echo_n "(cached) " >&6 12102 else 12103 if test -n "$ac_ct_AR"; then 12104 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12105 else 12106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12107 for as_dir in $PATH 12108 do 12109 IFS=$as_save_IFS 12110 test -z "$as_dir" && as_dir=. 12111 for ac_exec_ext in '' $ac_executable_extensions; do 12112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12113 ac_cv_prog_ac_ct_AR="$ac_prog" 12114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12115 break 2 12116 fi 12117 done 12118 done 12119 IFS=$as_save_IFS 12120 12121 fi 12122 fi 12123 ac_ct_AR=$ac_cv_prog_ac_ct_AR 12124 if test -n "$ac_ct_AR"; then 12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12126 $as_echo "$ac_ct_AR" >&6; } 12127 else 12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12129 $as_echo "no" >&6; } 12130 fi 12131 12132 12133 test -n "$ac_ct_AR" && break 12134 done 12135 12136 if test "x$ac_ct_AR" = x; then 12137 AR="false" 12138 else 12139 case $cross_compiling:$ac_tool_warned in 12140 yes:) 12141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12143 ac_tool_warned=yes ;; 12144 esac 12145 AR=$ac_ct_AR 12146 fi 12147 fi 12148 12149 : ${AR=ar} 12150 : ${AR_FLAGS=cru} 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12163 $as_echo_n "checking for archiver @FILE support... " >&6; } 12164 if ${lt_cv_ar_at_file+:} false; then : 12165 $as_echo_n "(cached) " >&6 12166 else 12167 lt_cv_ar_at_file=no 12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12169 /* end confdefs.h. */ 12170 12171 int 12172 main () 12173 { 12174 12175 ; 12176 return 0; 12177 } 12178 _ACEOF 12179 if ac_fn_c_try_compile "$LINENO"; then : 12180 echo conftest.$ac_objext > conftest.lst 12181 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12183 (eval $lt_ar_try) 2>&5 12184 ac_status=$? 12185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12186 test $ac_status = 0; } 12187 if test "$ac_status" -eq 0; then 12188 # Ensure the archiver fails upon bogus file names. 12189 rm -f conftest.$ac_objext libconftest.a 12190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12191 (eval $lt_ar_try) 2>&5 12192 ac_status=$? 12193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12194 test $ac_status = 0; } 12195 if test "$ac_status" -ne 0; then 12196 lt_cv_ar_at_file=@ 12197 fi 12198 fi 12199 rm -f conftest.* libconftest.a 12200 12201 fi 12202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12203 12204 fi 12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12206 $as_echo "$lt_cv_ar_at_file" >&6; } 12207 12208 if test "x$lt_cv_ar_at_file" = xno; then 12209 archiver_list_spec= 12210 else 12211 archiver_list_spec=$lt_cv_ar_at_file 12212 fi 12213 12214 12215 12216 12217 12218 12219 12220 if test -n "$ac_tool_prefix"; then 12221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12222 set dummy ${ac_tool_prefix}strip; ac_word=$2 12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12224 $as_echo_n "checking for $ac_word... " >&6; } 12225 if ${ac_cv_prog_STRIP+:} false; then : 12226 $as_echo_n "(cached) " >&6 12227 else 12228 if test -n "$STRIP"; then 12229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12230 else 12231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12232 for as_dir in $PATH 12233 do 12234 IFS=$as_save_IFS 12235 test -z "$as_dir" && as_dir=. 12236 for ac_exec_ext in '' $ac_executable_extensions; do 12237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12238 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12240 break 2 12241 fi 12242 done 12243 done 12244 IFS=$as_save_IFS 12245 12246 fi 12247 fi 12248 STRIP=$ac_cv_prog_STRIP 12249 if test -n "$STRIP"; then 12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12251 $as_echo "$STRIP" >&6; } 12252 else 12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12254 $as_echo "no" >&6; } 12255 fi 12256 12257 12258 fi 12259 if test -z "$ac_cv_prog_STRIP"; then 12260 ac_ct_STRIP=$STRIP 12261 # Extract the first word of "strip", so it can be a program name with args. 12262 set dummy strip; ac_word=$2 12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12264 $as_echo_n "checking for $ac_word... " >&6; } 12265 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12266 $as_echo_n "(cached) " >&6 12267 else 12268 if test -n "$ac_ct_STRIP"; then 12269 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12270 else 12271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12272 for as_dir in $PATH 12273 do 12274 IFS=$as_save_IFS 12275 test -z "$as_dir" && as_dir=. 12276 for ac_exec_ext in '' $ac_executable_extensions; do 12277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12278 ac_cv_prog_ac_ct_STRIP="strip" 12279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12280 break 2 12281 fi 12282 done 12283 done 12284 IFS=$as_save_IFS 12285 12286 fi 12287 fi 12288 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12289 if test -n "$ac_ct_STRIP"; then 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12291 $as_echo "$ac_ct_STRIP" >&6; } 12292 else 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12294 $as_echo "no" >&6; } 12295 fi 12296 12297 if test "x$ac_ct_STRIP" = x; then 12298 STRIP=":" 12299 else 12300 case $cross_compiling:$ac_tool_warned in 12301 yes:) 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12304 ac_tool_warned=yes ;; 12305 esac 12306 STRIP=$ac_ct_STRIP 12307 fi 12308 else 12309 STRIP="$ac_cv_prog_STRIP" 12310 fi 12311 12312 test -z "$STRIP" && STRIP=: 12313 12314 12315 12316 12317 12318 12319 if test -n "$ac_tool_prefix"; then 12320 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12321 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12323 $as_echo_n "checking for $ac_word... " >&6; } 12324 if ${ac_cv_prog_RANLIB+:} false; then : 12325 $as_echo_n "(cached) " >&6 12326 else 12327 if test -n "$RANLIB"; then 12328 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12329 else 12330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12331 for as_dir in $PATH 12332 do 12333 IFS=$as_save_IFS 12334 test -z "$as_dir" && as_dir=. 12335 for ac_exec_ext in '' $ac_executable_extensions; do 12336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12337 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12339 break 2 12340 fi 12341 done 12342 done 12343 IFS=$as_save_IFS 12344 12345 fi 12346 fi 12347 RANLIB=$ac_cv_prog_RANLIB 12348 if test -n "$RANLIB"; then 12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12350 $as_echo "$RANLIB" >&6; } 12351 else 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12353 $as_echo "no" >&6; } 12354 fi 12355 12356 12357 fi 12358 if test -z "$ac_cv_prog_RANLIB"; then 12359 ac_ct_RANLIB=$RANLIB 12360 # Extract the first word of "ranlib", so it can be a program name with args. 12361 set dummy ranlib; ac_word=$2 12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12363 $as_echo_n "checking for $ac_word... " >&6; } 12364 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12365 $as_echo_n "(cached) " >&6 12366 else 12367 if test -n "$ac_ct_RANLIB"; then 12368 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12369 else 12370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12371 for as_dir in $PATH 12372 do 12373 IFS=$as_save_IFS 12374 test -z "$as_dir" && as_dir=. 12375 for ac_exec_ext in '' $ac_executable_extensions; do 12376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12377 ac_cv_prog_ac_ct_RANLIB="ranlib" 12378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12379 break 2 12380 fi 12381 done 12382 done 12383 IFS=$as_save_IFS 12384 12385 fi 12386 fi 12387 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12388 if test -n "$ac_ct_RANLIB"; then 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12390 $as_echo "$ac_ct_RANLIB" >&6; } 12391 else 12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12393 $as_echo "no" >&6; } 12394 fi 12395 12396 if test "x$ac_ct_RANLIB" = x; then 12397 RANLIB=":" 12398 else 12399 case $cross_compiling:$ac_tool_warned in 12400 yes:) 12401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12403 ac_tool_warned=yes ;; 12404 esac 12405 RANLIB=$ac_ct_RANLIB 12406 fi 12407 else 12408 RANLIB="$ac_cv_prog_RANLIB" 12409 fi 12410 12411 test -z "$RANLIB" && RANLIB=: 12412 12413 12414 12415 12416 12417 12418 # Determine commands to create old-style static archives. 12419 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12420 old_postinstall_cmds='chmod 644 $oldlib' 12421 old_postuninstall_cmds= 12422 12423 if test -n "$RANLIB"; then 12424 case $host_os in 12425 openbsd*) 12426 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12427 ;; 12428 *) 12429 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12430 ;; 12431 esac 12432 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12433 fi 12434 12435 case $host_os in 12436 darwin*) 12437 lock_old_archive_extraction=yes ;; 12438 *) 12439 lock_old_archive_extraction=no ;; 12440 esac 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 # If no C compiler was specified, use CC. 12481 LTCC=${LTCC-"$CC"} 12482 12483 # If no C compiler flags were specified, use CFLAGS. 12484 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12485 12486 # Allow CC to be a program name with arguments. 12487 compiler=$CC 12488 12489 12490 # Check for command to grab the raw symbol name followed by C symbol from nm. 12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12492 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12493 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12494 $as_echo_n "(cached) " >&6 12495 else 12496 12497 # These are sane defaults that work on at least a few old systems. 12498 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 12499 12500 # Character class describing NM global symbol codes. 12501 symcode='[BCDEGRST]' 12502 12503 # Regexp to match symbols that can be accessed directly from C. 12504 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12505 12506 # Define system-specific variables. 12507 case $host_os in 12508 aix*) 12509 symcode='[BCDT]' 12510 ;; 12511 cygwin* | mingw* | pw32* | cegcc*) 12512 symcode='[ABCDGISTW]' 12513 ;; 12514 hpux*) 12515 if test "$host_cpu" = ia64; then 12516 symcode='[ABCDEGRST]' 12517 fi 12518 ;; 12519 irix* | nonstopux*) 12520 symcode='[BCDEGRST]' 12521 ;; 12522 osf*) 12523 symcode='[BCDEGQRST]' 12524 ;; 12525 solaris*) 12526 symcode='[BDRT]' 12527 ;; 12528 sco3.2v5*) 12529 symcode='[DT]' 12530 ;; 12531 sysv4.2uw2*) 12532 symcode='[DT]' 12533 ;; 12534 sysv5* | sco5v6* | unixware* | OpenUNIX*) 12535 symcode='[ABDT]' 12536 ;; 12537 sysv4) 12538 symcode='[DFNSTU]' 12539 ;; 12540 esac 12541 12542 # If we're using GNU nm, then use its standard symbol codes. 12543 case `$NM -V 2>&1` in 12544 *GNU* | *'with BFD'*) 12545 symcode='[ABCDGIRSTW]' ;; 12546 esac 12547 12548 # Transform an extracted symbol line into a proper C declaration. 12549 # Some systems (esp. on ia64) link data and code symbols differently, 12550 # so use this general approach. 12551 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 12552 12553 # Transform an extracted symbol line into symbol name and symbol address 12554 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 12555 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 12556 12557 # Handle CRLF in mingw tool chain 12558 opt_cr= 12559 case $build_os in 12560 mingw*) 12561 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12562 ;; 12563 esac 12564 12565 # Try without a prefix underscore, then with it. 12566 for ac_symprfx in "" "_"; do 12567 12568 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12569 symxfrm="\\1 $ac_symprfx\\2 \\2" 12570 12571 # Write the raw and C identifiers. 12572 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12573 # Fake it for dumpbin and say T for any non-static function 12574 # and D for any global variable. 12575 # Also find C++ and __fastcall symbols from MSVC++, 12576 # which start with @ or ?. 12577 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12578 " {last_section=section; section=\$ 3};"\ 12579 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12580 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12581 " \$ 0!~/External *\|/{next};"\ 12582 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12583 " {if(hide[section]) next};"\ 12584 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 12585 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 12586 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 12587 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 12588 " ' prfx=^$ac_symprfx" 12589 else 12590 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12591 fi 12592 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12593 12594 # Check to see that the pipe works correctly. 12595 pipe_works=no 12596 12597 rm -f conftest* 12598 cat > conftest.$ac_ext <<_LT_EOF 12599 #ifdef __cplusplus 12600 extern "C" { 12601 #endif 12602 char nm_test_var; 12603 void nm_test_func(void); 12604 void nm_test_func(void){} 12605 #ifdef __cplusplus 12606 } 12607 #endif 12608 int main(){nm_test_var='a';nm_test_func();return(0);} 12609 _LT_EOF 12610 12611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12612 (eval $ac_compile) 2>&5 12613 ac_status=$? 12614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12615 test $ac_status = 0; }; then 12616 # Now try to grab the symbols. 12617 nlist=conftest.nm 12618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12619 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12620 ac_status=$? 12621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12622 test $ac_status = 0; } && test -s "$nlist"; then 12623 # Try sorting and uniquifying the output. 12624 if sort "$nlist" | uniq > "$nlist"T; then 12625 mv -f "$nlist"T "$nlist" 12626 else 12627 rm -f "$nlist"T 12628 fi 12629 12630 # Make sure that we snagged all the symbols we need. 12631 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12632 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12633 cat <<_LT_EOF > conftest.$ac_ext 12634 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12635 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 12636 /* DATA imports from DLLs on WIN32 con't be const, because runtime 12637 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12638 # define LT_DLSYM_CONST 12639 #elif defined(__osf__) 12640 /* This system does not cope well with relocations in const data. */ 12641 # define LT_DLSYM_CONST 12642 #else 12643 # define LT_DLSYM_CONST const 12644 #endif 12645 12646 #ifdef __cplusplus 12647 extern "C" { 12648 #endif 12649 12650 _LT_EOF 12651 # Now generate the symbol file. 12652 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12653 12654 cat <<_LT_EOF >> conftest.$ac_ext 12655 12656 /* The mapping between symbol names and symbols. */ 12657 LT_DLSYM_CONST struct { 12658 const char *name; 12659 void *address; 12660 } 12661 lt__PROGRAM__LTX_preloaded_symbols[] = 12662 { 12663 { "@PROGRAM@", (void *) 0 }, 12664 _LT_EOF 12665 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12666 cat <<\_LT_EOF >> conftest.$ac_ext 12667 {0, (void *) 0} 12668 }; 12669 12670 /* This works around a problem in FreeBSD linker */ 12671 #ifdef FREEBSD_WORKAROUND 12672 static const void *lt_preloaded_setup() { 12673 return lt__PROGRAM__LTX_preloaded_symbols; 12674 } 12675 #endif 12676 12677 #ifdef __cplusplus 12678 } 12679 #endif 12680 _LT_EOF 12681 # Now try linking the two files. 12682 mv conftest.$ac_objext conftstm.$ac_objext 12683 lt_globsym_save_LIBS=$LIBS 12684 lt_globsym_save_CFLAGS=$CFLAGS 12685 LIBS="conftstm.$ac_objext" 12686 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12688 (eval $ac_link) 2>&5 12689 ac_status=$? 12690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12691 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 12692 pipe_works=yes 12693 fi 12694 LIBS=$lt_globsym_save_LIBS 12695 CFLAGS=$lt_globsym_save_CFLAGS 12696 else 12697 echo "cannot find nm_test_func in $nlist" >&5 12698 fi 12699 else 12700 echo "cannot find nm_test_var in $nlist" >&5 12701 fi 12702 else 12703 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12704 fi 12705 else 12706 echo "$progname: failed program was:" >&5 12707 cat conftest.$ac_ext >&5 12708 fi 12709 rm -rf conftest* conftst* 12710 12711 # Do not use the global_symbol_pipe unless it works. 12712 if test "$pipe_works" = yes; then 12713 break 12714 else 12715 lt_cv_sys_global_symbol_pipe= 12716 fi 12717 done 12718 12719 fi 12720 12721 if test -z "$lt_cv_sys_global_symbol_pipe"; then 12722 lt_cv_sys_global_symbol_to_cdecl= 12723 fi 12724 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12726 $as_echo "failed" >&6; } 12727 else 12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12729 $as_echo "ok" >&6; } 12730 fi 12731 12732 # Response file support. 12733 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12734 nm_file_list_spec='@' 12735 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12736 nm_file_list_spec='@' 12737 fi 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 12766 $as_echo_n "checking for sysroot... " >&6; } 12767 12768 # Check whether --with-sysroot was given. 12769 if test "${with_sysroot+set}" = set; then : 12770 withval=$with_sysroot; 12771 else 12772 with_sysroot=no 12773 fi 12774 12775 12776 lt_sysroot= 12777 case ${with_sysroot} in #( 12778 yes) 12779 if test "$GCC" = yes; then 12780 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 12781 fi 12782 ;; #( 12783 /*) 12784 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 12785 ;; #( 12786 no|'') 12787 ;; #( 12788 *) 12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 12790 $as_echo "${with_sysroot}" >&6; } 12791 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 12792 ;; 12793 esac 12794 12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 12796 $as_echo "${lt_sysroot:-no}" >&6; } 12797 12798 12799 12800 12801 12802 # Check whether --enable-libtool-lock was given. 12803 if test "${enable_libtool_lock+set}" = set; then : 12804 enableval=$enable_libtool_lock; 12805 fi 12806 12807 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 12808 12809 # Some flags need to be propagated to the compiler or linker for good 12810 # libtool support. 12811 case $host in 12812 ia64-*-hpux*) 12813 # Find out which ABI we are using. 12814 echo 'int i;' > conftest.$ac_ext 12815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12816 (eval $ac_compile) 2>&5 12817 ac_status=$? 12818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12819 test $ac_status = 0; }; then 12820 case `/usr/bin/file conftest.$ac_objext` in 12821 *ELF-32*) 12822 HPUX_IA64_MODE="32" 12823 ;; 12824 *ELF-64*) 12825 HPUX_IA64_MODE="64" 12826 ;; 12827 esac 12828 fi 12829 rm -rf conftest* 12830 ;; 12831 *-*-irix6*) 12832 # Find out which ABI we are using. 12833 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 12834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12835 (eval $ac_compile) 2>&5 12836 ac_status=$? 12837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12838 test $ac_status = 0; }; then 12839 if test "$lt_cv_prog_gnu_ld" = yes; then 12840 case `/usr/bin/file conftest.$ac_objext` in 12841 *32-bit*) 12842 LD="${LD-ld} -melf32bsmip" 12843 ;; 12844 *N32*) 12845 LD="${LD-ld} -melf32bmipn32" 12846 ;; 12847 *64-bit*) 12848 LD="${LD-ld} -melf64bmip" 12849 ;; 12850 esac 12851 else 12852 case `/usr/bin/file conftest.$ac_objext` in 12853 *32-bit*) 12854 LD="${LD-ld} -32" 12855 ;; 12856 *N32*) 12857 LD="${LD-ld} -n32" 12858 ;; 12859 *64-bit*) 12860 LD="${LD-ld} -64" 12861 ;; 12862 esac 12863 fi 12864 fi 12865 rm -rf conftest* 12866 ;; 12867 12868 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 12869 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 12870 # Find out which ABI we are using. 12871 echo 'int i;' > conftest.$ac_ext 12872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12873 (eval $ac_compile) 2>&5 12874 ac_status=$? 12875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12876 test $ac_status = 0; }; then 12877 case `/usr/bin/file conftest.o` in 12878 *32-bit*) 12879 case $host in 12880 x86_64-*kfreebsd*-gnu) 12881 LD="${LD-ld} -m elf_i386_fbsd" 12882 ;; 12883 x86_64-*linux*) 12884 LD="${LD-ld} -m elf_i386" 12885 ;; 12886 ppc64-*linux*|powerpc64-*linux*) 12887 LD="${LD-ld} -m elf32ppclinux" 12888 ;; 12889 s390x-*linux*) 12890 LD="${LD-ld} -m elf_s390" 12891 ;; 12892 sparc64-*linux*) 12893 LD="${LD-ld} -m elf32_sparc" 12894 ;; 12895 esac 12896 ;; 12897 *64-bit*) 12898 case $host in 12899 x86_64-*kfreebsd*-gnu) 12900 LD="${LD-ld} -m elf_x86_64_fbsd" 12901 ;; 12902 x86_64-*linux*) 12903 LD="${LD-ld} -m elf_x86_64" 12904 ;; 12905 ppc*-*linux*|powerpc*-*linux*) 12906 LD="${LD-ld} -m elf64ppc" 12907 ;; 12908 s390*-*linux*|s390*-*tpf*) 12909 LD="${LD-ld} -m elf64_s390" 12910 ;; 12911 sparc*-*linux*) 12912 LD="${LD-ld} -m elf64_sparc" 12913 ;; 12914 esac 12915 ;; 12916 esac 12917 fi 12918 rm -rf conftest* 12919 ;; 12920 12921 *-*-sco3.2v5*) 12922 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 12923 SAVE_CFLAGS="$CFLAGS" 12924 CFLAGS="$CFLAGS -belf" 12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 12926 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 12927 if ${lt_cv_cc_needs_belf+:} false; then : 12928 $as_echo_n "(cached) " >&6 12929 else 12930 ac_ext=c 12931 ac_cpp='$CPP $CPPFLAGS' 12932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12934 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12935 12936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12937 /* end confdefs.h. */ 12938 12939 int 12940 main () 12941 { 12942 12943 ; 12944 return 0; 12945 } 12946 _ACEOF 12947 if ac_fn_c_try_link "$LINENO"; then : 12948 lt_cv_cc_needs_belf=yes 12949 else 12950 lt_cv_cc_needs_belf=no 12951 fi 12952 rm -f core conftest.err conftest.$ac_objext \ 12953 conftest$ac_exeext conftest.$ac_ext 12954 ac_ext=c 12955 ac_cpp='$CPP $CPPFLAGS' 12956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12958 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12959 12960 fi 12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 12962 $as_echo "$lt_cv_cc_needs_belf" >&6; } 12963 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 12964 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 12965 CFLAGS="$SAVE_CFLAGS" 12966 fi 12967 ;; 12968 *-*solaris*) 12969 # Find out which ABI we are using. 12970 echo 'int i;' > conftest.$ac_ext 12971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12972 (eval $ac_compile) 2>&5 12973 ac_status=$? 12974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12975 test $ac_status = 0; }; then 12976 case `/usr/bin/file conftest.o` in 12977 *64-bit*) 12978 case $lt_cv_prog_gnu_ld in 12979 yes*) 12980 case $host in 12981 i?86-*-solaris*) 12982 LD="${LD-ld} -m elf_x86_64" 12983 ;; 12984 sparc*-*-solaris*) 12985 LD="${LD-ld} -m elf64_sparc" 12986 ;; 12987 esac 12988 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 12989 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 12990 LD="${LD-ld}_sol2" 12991 fi 12992 ;; 12993 *) 12994 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 12995 LD="${LD-ld} -64" 12996 fi 12997 ;; 12998 esac 12999 ;; 13000 esac 13001 fi 13002 rm -rf conftest* 13003 ;; 13004 esac 13005 13006 need_locks="$enable_libtool_lock" 13007 13008 if test -n "$ac_tool_prefix"; then 13009 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13010 set dummy ${ac_tool_prefix}mt; ac_word=$2 13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13012 $as_echo_n "checking for $ac_word... " >&6; } 13013 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13014 $as_echo_n "(cached) " >&6 13015 else 13016 if test -n "$MANIFEST_TOOL"; then 13017 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13018 else 13019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13020 for as_dir in $PATH 13021 do 13022 IFS=$as_save_IFS 13023 test -z "$as_dir" && as_dir=. 13024 for ac_exec_ext in '' $ac_executable_extensions; do 13025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13026 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13028 break 2 13029 fi 13030 done 13031 done 13032 IFS=$as_save_IFS 13033 13034 fi 13035 fi 13036 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13037 if test -n "$MANIFEST_TOOL"; then 13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13039 $as_echo "$MANIFEST_TOOL" >&6; } 13040 else 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13042 $as_echo "no" >&6; } 13043 fi 13044 13045 13046 fi 13047 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13048 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13049 # Extract the first word of "mt", so it can be a program name with args. 13050 set dummy mt; ac_word=$2 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13052 $as_echo_n "checking for $ac_word... " >&6; } 13053 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13054 $as_echo_n "(cached) " >&6 13055 else 13056 if test -n "$ac_ct_MANIFEST_TOOL"; then 13057 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13058 else 13059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13060 for as_dir in $PATH 13061 do 13062 IFS=$as_save_IFS 13063 test -z "$as_dir" && as_dir=. 13064 for ac_exec_ext in '' $ac_executable_extensions; do 13065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13066 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13068 break 2 13069 fi 13070 done 13071 done 13072 IFS=$as_save_IFS 13073 13074 fi 13075 fi 13076 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13077 if test -n "$ac_ct_MANIFEST_TOOL"; then 13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13079 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13080 else 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13082 $as_echo "no" >&6; } 13083 fi 13084 13085 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13086 MANIFEST_TOOL=":" 13087 else 13088 case $cross_compiling:$ac_tool_warned in 13089 yes:) 13090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13092 ac_tool_warned=yes ;; 13093 esac 13094 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13095 fi 13096 else 13097 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13098 fi 13099 13100 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13102 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13103 if ${lt_cv_path_mainfest_tool+:} false; then : 13104 $as_echo_n "(cached) " >&6 13105 else 13106 lt_cv_path_mainfest_tool=no 13107 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13108 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13109 cat conftest.err >&5 13110 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13111 lt_cv_path_mainfest_tool=yes 13112 fi 13113 rm -f conftest* 13114 fi 13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13116 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 13117 if test "x$lt_cv_path_mainfest_tool" != xyes; then 13118 MANIFEST_TOOL=: 13119 fi 13120 13121 13122 13123 13124 13125 13126 case $host_os in 13127 rhapsody* | darwin*) 13128 if test -n "$ac_tool_prefix"; then 13129 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13130 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13132 $as_echo_n "checking for $ac_word... " >&6; } 13133 if ${ac_cv_prog_DSYMUTIL+:} false; then : 13134 $as_echo_n "(cached) " >&6 13135 else 13136 if test -n "$DSYMUTIL"; then 13137 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13138 else 13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13140 for as_dir in $PATH 13141 do 13142 IFS=$as_save_IFS 13143 test -z "$as_dir" && as_dir=. 13144 for ac_exec_ext in '' $ac_executable_extensions; do 13145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13146 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13148 break 2 13149 fi 13150 done 13151 done 13152 IFS=$as_save_IFS 13153 13154 fi 13155 fi 13156 DSYMUTIL=$ac_cv_prog_DSYMUTIL 13157 if test -n "$DSYMUTIL"; then 13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13159 $as_echo "$DSYMUTIL" >&6; } 13160 else 13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13162 $as_echo "no" >&6; } 13163 fi 13164 13165 13166 fi 13167 if test -z "$ac_cv_prog_DSYMUTIL"; then 13168 ac_ct_DSYMUTIL=$DSYMUTIL 13169 # Extract the first word of "dsymutil", so it can be a program name with args. 13170 set dummy dsymutil; ac_word=$2 13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13172 $as_echo_n "checking for $ac_word... " >&6; } 13173 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13174 $as_echo_n "(cached) " >&6 13175 else 13176 if test -n "$ac_ct_DSYMUTIL"; then 13177 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13178 else 13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13180 for as_dir in $PATH 13181 do 13182 IFS=$as_save_IFS 13183 test -z "$as_dir" && as_dir=. 13184 for ac_exec_ext in '' $ac_executable_extensions; do 13185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13186 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13188 break 2 13189 fi 13190 done 13191 done 13192 IFS=$as_save_IFS 13193 13194 fi 13195 fi 13196 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13197 if test -n "$ac_ct_DSYMUTIL"; then 13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13199 $as_echo "$ac_ct_DSYMUTIL" >&6; } 13200 else 13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13202 $as_echo "no" >&6; } 13203 fi 13204 13205 if test "x$ac_ct_DSYMUTIL" = x; then 13206 DSYMUTIL=":" 13207 else 13208 case $cross_compiling:$ac_tool_warned in 13209 yes:) 13210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13212 ac_tool_warned=yes ;; 13213 esac 13214 DSYMUTIL=$ac_ct_DSYMUTIL 13215 fi 13216 else 13217 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13218 fi 13219 13220 if test -n "$ac_tool_prefix"; then 13221 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13222 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13224 $as_echo_n "checking for $ac_word... " >&6; } 13225 if ${ac_cv_prog_NMEDIT+:} false; then : 13226 $as_echo_n "(cached) " >&6 13227 else 13228 if test -n "$NMEDIT"; then 13229 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13230 else 13231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13232 for as_dir in $PATH 13233 do 13234 IFS=$as_save_IFS 13235 test -z "$as_dir" && as_dir=. 13236 for ac_exec_ext in '' $ac_executable_extensions; do 13237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13238 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13240 break 2 13241 fi 13242 done 13243 done 13244 IFS=$as_save_IFS 13245 13246 fi 13247 fi 13248 NMEDIT=$ac_cv_prog_NMEDIT 13249 if test -n "$NMEDIT"; then 13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13251 $as_echo "$NMEDIT" >&6; } 13252 else 13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13254 $as_echo "no" >&6; } 13255 fi 13256 13257 13258 fi 13259 if test -z "$ac_cv_prog_NMEDIT"; then 13260 ac_ct_NMEDIT=$NMEDIT 13261 # Extract the first word of "nmedit", so it can be a program name with args. 13262 set dummy nmedit; ac_word=$2 13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13264 $as_echo_n "checking for $ac_word... " >&6; } 13265 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13266 $as_echo_n "(cached) " >&6 13267 else 13268 if test -n "$ac_ct_NMEDIT"; then 13269 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13270 else 13271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13272 for as_dir in $PATH 13273 do 13274 IFS=$as_save_IFS 13275 test -z "$as_dir" && as_dir=. 13276 for ac_exec_ext in '' $ac_executable_extensions; do 13277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13278 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13280 break 2 13281 fi 13282 done 13283 done 13284 IFS=$as_save_IFS 13285 13286 fi 13287 fi 13288 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13289 if test -n "$ac_ct_NMEDIT"; then 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13291 $as_echo "$ac_ct_NMEDIT" >&6; } 13292 else 13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13294 $as_echo "no" >&6; } 13295 fi 13296 13297 if test "x$ac_ct_NMEDIT" = x; then 13298 NMEDIT=":" 13299 else 13300 case $cross_compiling:$ac_tool_warned in 13301 yes:) 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13304 ac_tool_warned=yes ;; 13305 esac 13306 NMEDIT=$ac_ct_NMEDIT 13307 fi 13308 else 13309 NMEDIT="$ac_cv_prog_NMEDIT" 13310 fi 13311 13312 if test -n "$ac_tool_prefix"; then 13313 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13314 set dummy ${ac_tool_prefix}lipo; ac_word=$2 13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13316 $as_echo_n "checking for $ac_word... " >&6; } 13317 if ${ac_cv_prog_LIPO+:} false; then : 13318 $as_echo_n "(cached) " >&6 13319 else 13320 if test -n "$LIPO"; then 13321 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13322 else 13323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13324 for as_dir in $PATH 13325 do 13326 IFS=$as_save_IFS 13327 test -z "$as_dir" && as_dir=. 13328 for ac_exec_ext in '' $ac_executable_extensions; do 13329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13330 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13332 break 2 13333 fi 13334 done 13335 done 13336 IFS=$as_save_IFS 13337 13338 fi 13339 fi 13340 LIPO=$ac_cv_prog_LIPO 13341 if test -n "$LIPO"; then 13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13343 $as_echo "$LIPO" >&6; } 13344 else 13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13346 $as_echo "no" >&6; } 13347 fi 13348 13349 13350 fi 13351 if test -z "$ac_cv_prog_LIPO"; then 13352 ac_ct_LIPO=$LIPO 13353 # Extract the first word of "lipo", so it can be a program name with args. 13354 set dummy lipo; ac_word=$2 13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13356 $as_echo_n "checking for $ac_word... " >&6; } 13357 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13358 $as_echo_n "(cached) " >&6 13359 else 13360 if test -n "$ac_ct_LIPO"; then 13361 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13362 else 13363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13364 for as_dir in $PATH 13365 do 13366 IFS=$as_save_IFS 13367 test -z "$as_dir" && as_dir=. 13368 for ac_exec_ext in '' $ac_executable_extensions; do 13369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13370 ac_cv_prog_ac_ct_LIPO="lipo" 13371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13372 break 2 13373 fi 13374 done 13375 done 13376 IFS=$as_save_IFS 13377 13378 fi 13379 fi 13380 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13381 if test -n "$ac_ct_LIPO"; then 13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13383 $as_echo "$ac_ct_LIPO" >&6; } 13384 else 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13386 $as_echo "no" >&6; } 13387 fi 13388 13389 if test "x$ac_ct_LIPO" = x; then 13390 LIPO=":" 13391 else 13392 case $cross_compiling:$ac_tool_warned in 13393 yes:) 13394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13396 ac_tool_warned=yes ;; 13397 esac 13398 LIPO=$ac_ct_LIPO 13399 fi 13400 else 13401 LIPO="$ac_cv_prog_LIPO" 13402 fi 13403 13404 if test -n "$ac_tool_prefix"; then 13405 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13406 set dummy ${ac_tool_prefix}otool; ac_word=$2 13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13408 $as_echo_n "checking for $ac_word... " >&6; } 13409 if ${ac_cv_prog_OTOOL+:} false; then : 13410 $as_echo_n "(cached) " >&6 13411 else 13412 if test -n "$OTOOL"; then 13413 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13414 else 13415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13416 for as_dir in $PATH 13417 do 13418 IFS=$as_save_IFS 13419 test -z "$as_dir" && as_dir=. 13420 for ac_exec_ext in '' $ac_executable_extensions; do 13421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13422 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13424 break 2 13425 fi 13426 done 13427 done 13428 IFS=$as_save_IFS 13429 13430 fi 13431 fi 13432 OTOOL=$ac_cv_prog_OTOOL 13433 if test -n "$OTOOL"; then 13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13435 $as_echo "$OTOOL" >&6; } 13436 else 13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13438 $as_echo "no" >&6; } 13439 fi 13440 13441 13442 fi 13443 if test -z "$ac_cv_prog_OTOOL"; then 13444 ac_ct_OTOOL=$OTOOL 13445 # Extract the first word of "otool", so it can be a program name with args. 13446 set dummy otool; ac_word=$2 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13448 $as_echo_n "checking for $ac_word... " >&6; } 13449 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13450 $as_echo_n "(cached) " >&6 13451 else 13452 if test -n "$ac_ct_OTOOL"; then 13453 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13454 else 13455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13456 for as_dir in $PATH 13457 do 13458 IFS=$as_save_IFS 13459 test -z "$as_dir" && as_dir=. 13460 for ac_exec_ext in '' $ac_executable_extensions; do 13461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13462 ac_cv_prog_ac_ct_OTOOL="otool" 13463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13464 break 2 13465 fi 13466 done 13467 done 13468 IFS=$as_save_IFS 13469 13470 fi 13471 fi 13472 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13473 if test -n "$ac_ct_OTOOL"; then 13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13475 $as_echo "$ac_ct_OTOOL" >&6; } 13476 else 13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13478 $as_echo "no" >&6; } 13479 fi 13480 13481 if test "x$ac_ct_OTOOL" = x; then 13482 OTOOL=":" 13483 else 13484 case $cross_compiling:$ac_tool_warned in 13485 yes:) 13486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13488 ac_tool_warned=yes ;; 13489 esac 13490 OTOOL=$ac_ct_OTOOL 13491 fi 13492 else 13493 OTOOL="$ac_cv_prog_OTOOL" 13494 fi 13495 13496 if test -n "$ac_tool_prefix"; then 13497 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13498 set dummy ${ac_tool_prefix}otool64; ac_word=$2 13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13500 $as_echo_n "checking for $ac_word... " >&6; } 13501 if ${ac_cv_prog_OTOOL64+:} false; then : 13502 $as_echo_n "(cached) " >&6 13503 else 13504 if test -n "$OTOOL64"; then 13505 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13506 else 13507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13508 for as_dir in $PATH 13509 do 13510 IFS=$as_save_IFS 13511 test -z "$as_dir" && as_dir=. 13512 for ac_exec_ext in '' $ac_executable_extensions; do 13513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13514 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13516 break 2 13517 fi 13518 done 13519 done 13520 IFS=$as_save_IFS 13521 13522 fi 13523 fi 13524 OTOOL64=$ac_cv_prog_OTOOL64 13525 if test -n "$OTOOL64"; then 13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13527 $as_echo "$OTOOL64" >&6; } 13528 else 13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13530 $as_echo "no" >&6; } 13531 fi 13532 13533 13534 fi 13535 if test -z "$ac_cv_prog_OTOOL64"; then 13536 ac_ct_OTOOL64=$OTOOL64 13537 # Extract the first word of "otool64", so it can be a program name with args. 13538 set dummy otool64; ac_word=$2 13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13540 $as_echo_n "checking for $ac_word... " >&6; } 13541 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13542 $as_echo_n "(cached) " >&6 13543 else 13544 if test -n "$ac_ct_OTOOL64"; then 13545 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13546 else 13547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13548 for as_dir in $PATH 13549 do 13550 IFS=$as_save_IFS 13551 test -z "$as_dir" && as_dir=. 13552 for ac_exec_ext in '' $ac_executable_extensions; do 13553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13554 ac_cv_prog_ac_ct_OTOOL64="otool64" 13555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13556 break 2 13557 fi 13558 done 13559 done 13560 IFS=$as_save_IFS 13561 13562 fi 13563 fi 13564 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13565 if test -n "$ac_ct_OTOOL64"; then 13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13567 $as_echo "$ac_ct_OTOOL64" >&6; } 13568 else 13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13570 $as_echo "no" >&6; } 13571 fi 13572 13573 if test "x$ac_ct_OTOOL64" = x; then 13574 OTOOL64=":" 13575 else 13576 case $cross_compiling:$ac_tool_warned in 13577 yes:) 13578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13580 ac_tool_warned=yes ;; 13581 esac 13582 OTOOL64=$ac_ct_OTOOL64 13583 fi 13584 else 13585 OTOOL64="$ac_cv_prog_OTOOL64" 13586 fi 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13615 $as_echo_n "checking for -single_module linker flag... " >&6; } 13616 if ${lt_cv_apple_cc_single_mod+:} false; then : 13617 $as_echo_n "(cached) " >&6 13618 else 13619 lt_cv_apple_cc_single_mod=no 13620 if test -z "${LT_MULTI_MODULE}"; then 13621 # By default we will add the -single_module flag. You can override 13622 # by either setting the environment variable LT_MULTI_MODULE 13623 # non-empty at configure time, or by adding -multi_module to the 13624 # link flags. 13625 rm -rf libconftest.dylib* 13626 echo "int foo(void){return 1;}" > conftest.c 13627 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13628 -dynamiclib -Wl,-single_module conftest.c" >&5 13629 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13630 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 13631 _lt_result=$? 13632 # If there is a non-empty error log, and "single_module" 13633 # appears in it, assume the flag caused a linker warning 13634 if test -s conftest.err && $GREP single_module conftest.err; then 13635 cat conftest.err >&5 13636 # Otherwise, if the output was created with a 0 exit code from 13637 # the compiler, it worked. 13638 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 13639 lt_cv_apple_cc_single_mod=yes 13640 else 13641 cat conftest.err >&5 13642 fi 13643 rm -rf libconftest.dylib* 13644 rm -f conftest.* 13645 fi 13646 fi 13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 13648 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 13649 13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 13651 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 13652 if ${lt_cv_ld_exported_symbols_list+:} false; then : 13653 $as_echo_n "(cached) " >&6 13654 else 13655 lt_cv_ld_exported_symbols_list=no 13656 save_LDFLAGS=$LDFLAGS 13657 echo "_main" > conftest.sym 13658 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13660 /* end confdefs.h. */ 13661 13662 int 13663 main () 13664 { 13665 13666 ; 13667 return 0; 13668 } 13669 _ACEOF 13670 if ac_fn_c_try_link "$LINENO"; then : 13671 lt_cv_ld_exported_symbols_list=yes 13672 else 13673 lt_cv_ld_exported_symbols_list=no 13674 fi 13675 rm -f core conftest.err conftest.$ac_objext \ 13676 conftest$ac_exeext conftest.$ac_ext 13677 LDFLAGS="$save_LDFLAGS" 13678 13679 fi 13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 13681 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 13682 13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 13684 $as_echo_n "checking for -force_load linker flag... " >&6; } 13685 if ${lt_cv_ld_force_load+:} false; then : 13686 $as_echo_n "(cached) " >&6 13687 else 13688 lt_cv_ld_force_load=no 13689 cat > conftest.c << _LT_EOF 13690 int forced_loaded() { return 2;} 13691 _LT_EOF 13692 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 13693 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 13694 echo "$AR cru libconftest.a conftest.o" >&5 13695 $AR cru libconftest.a conftest.o 2>&5 13696 echo "$RANLIB libconftest.a" >&5 13697 $RANLIB libconftest.a 2>&5 13698 cat > conftest.c << _LT_EOF 13699 int main() { return 0;} 13700 _LT_EOF 13701 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 13702 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 13703 _lt_result=$? 13704 if test -s conftest.err && $GREP force_load conftest.err; then 13705 cat conftest.err >&5 13706 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 13707 lt_cv_ld_force_load=yes 13708 else 13709 cat conftest.err >&5 13710 fi 13711 rm -f conftest.err libconftest.a conftest conftest.c 13712 rm -rf conftest.dSYM 13713 13714 fi 13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 13716 $as_echo "$lt_cv_ld_force_load" >&6; } 13717 case $host_os in 13718 rhapsody* | darwin1.[012]) 13719 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 13720 darwin1.*) 13721 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13722 darwin*) # darwin 5.x on 13723 # if running on 10.5 or later, the deployment target defaults 13724 # to the OS version, if on x86, and 10.4, the deployment 13725 # target defaults to 10.4. Don't you love it? 13726 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 13727 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 13728 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13729 10.[012]*) 13730 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13731 10.*) 13732 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13733 esac 13734 ;; 13735 esac 13736 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 13737 _lt_dar_single_mod='$single_module' 13738 fi 13739 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 13740 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 13741 else 13742 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 13743 fi 13744 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 13745 _lt_dsymutil='~$DSYMUTIL $lib || :' 13746 else 13747 _lt_dsymutil= 13748 fi 13749 ;; 13750 esac 13751 13752 for ac_header in dlfcn.h 13753 do : 13754 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 13755 " 13756 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13757 cat >>confdefs.h <<_ACEOF 13758 #define HAVE_DLFCN_H 1 13759 _ACEOF 13760 13761 fi 13762 13763 done 13764 13765 13766 13767 13768 13769 # Set options 13770 13771 13772 13773 enable_dlopen=no 13774 13775 13776 enable_win32_dll=no 13777 13778 13779 # Check whether --enable-shared was given. 13780 if test "${enable_shared+set}" = set; then : 13781 enableval=$enable_shared; p=${PACKAGE-default} 13782 case $enableval in 13783 yes) enable_shared=yes ;; 13784 no) enable_shared=no ;; 13785 *) 13786 enable_shared=no 13787 # Look at the argument we got. We use all the common list separators. 13788 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13789 for pkg in $enableval; do 13790 IFS="$lt_save_ifs" 13791 if test "X$pkg" = "X$p"; then 13792 enable_shared=yes 13793 fi 13794 done 13795 IFS="$lt_save_ifs" 13796 ;; 13797 esac 13798 else 13799 enable_shared=yes 13800 fi 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 # Check whether --with-pic was given. 13813 if test "${with_pic+set}" = set; then : 13814 withval=$with_pic; lt_p=${PACKAGE-default} 13815 case $withval in 13816 yes|no) pic_mode=$withval ;; 13817 *) 13818 pic_mode=default 13819 # Look at the argument we got. We use all the common list separators. 13820 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13821 for lt_pkg in $withval; do 13822 IFS="$lt_save_ifs" 13823 if test "X$lt_pkg" = "X$lt_p"; then 13824 pic_mode=yes 13825 fi 13826 done 13827 IFS="$lt_save_ifs" 13828 ;; 13829 esac 13830 else 13831 pic_mode=default 13832 fi 13833 13834 13835 test -z "$pic_mode" && pic_mode=default 13836 13837 13838 13839 13840 13841 13842 13843 # Check whether --enable-fast-install was given. 13844 if test "${enable_fast_install+set}" = set; then : 13845 enableval=$enable_fast_install; p=${PACKAGE-default} 13846 case $enableval in 13847 yes) enable_fast_install=yes ;; 13848 no) enable_fast_install=no ;; 13849 *) 13850 enable_fast_install=no 13851 # Look at the argument we got. We use all the common list separators. 13852 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13853 for pkg in $enableval; do 13854 IFS="$lt_save_ifs" 13855 if test "X$pkg" = "X$p"; then 13856 enable_fast_install=yes 13857 fi 13858 done 13859 IFS="$lt_save_ifs" 13860 ;; 13861 esac 13862 else 13863 enable_fast_install=yes 13864 fi 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 # This can be used to rebuild libtool when needed 13877 LIBTOOL_DEPS="$ltmain" 13878 13879 # Always use our own libtool. 13880 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 test -z "$LN_S" && LN_S="ln -s" 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 if test -n "${ZSH_VERSION+set}" ; then 13927 setopt NO_GLOB_SUBST 13928 fi 13929 13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 13931 $as_echo_n "checking for objdir... " >&6; } 13932 if ${lt_cv_objdir+:} false; then : 13933 $as_echo_n "(cached) " >&6 13934 else 13935 rm -f .libs 2>/dev/null 13936 mkdir .libs 2>/dev/null 13937 if test -d .libs; then 13938 lt_cv_objdir=.libs 13939 else 13940 # MS-DOS does not allow filenames that begin with a dot. 13941 lt_cv_objdir=_libs 13942 fi 13943 rmdir .libs 2>/dev/null 13944 fi 13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 13946 $as_echo "$lt_cv_objdir" >&6; } 13947 objdir=$lt_cv_objdir 13948 13949 13950 13951 13952 13953 cat >>confdefs.h <<_ACEOF 13954 #define LT_OBJDIR "$lt_cv_objdir/" 13955 _ACEOF 13956 13957 13958 13959 13960 case $host_os in 13961 aix3*) 13962 # AIX sometimes has problems with the GCC collect2 program. For some 13963 # reason, if we set the COLLECT_NAMES environment variable, the problems 13964 # vanish in a puff of smoke. 13965 if test "X${COLLECT_NAMES+set}" != Xset; then 13966 COLLECT_NAMES= 13967 export COLLECT_NAMES 13968 fi 13969 ;; 13970 esac 13971 13972 # Global variables: 13973 ofile=libtool 13974 can_build_shared=yes 13975 13976 # All known linkers require a `.a' archive for static linking (except MSVC, 13977 # which needs '.lib'). 13978 libext=a 13979 13980 with_gnu_ld="$lt_cv_prog_gnu_ld" 13981 13982 old_CC="$CC" 13983 old_CFLAGS="$CFLAGS" 13984 13985 # Set sane defaults for various variables 13986 test -z "$CC" && CC=cc 13987 test -z "$LTCC" && LTCC=$CC 13988 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 13989 test -z "$LD" && LD=ld 13990 test -z "$ac_objext" && ac_objext=o 13991 13992 for cc_temp in $compiler""; do 13993 case $cc_temp in 13994 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13995 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13996 \-*) ;; 13997 *) break;; 13998 esac 13999 done 14000 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14001 14002 14003 # Only perform the check for file, if the check method requires it 14004 test -z "$MAGIC_CMD" && MAGIC_CMD=file 14005 case $deplibs_check_method in 14006 file_magic*) 14007 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14009 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14010 if ${lt_cv_path_MAGIC_CMD+:} false; then : 14011 $as_echo_n "(cached) " >&6 14012 else 14013 case $MAGIC_CMD in 14014 [\\/*] | ?:[\\/]*) 14015 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14016 ;; 14017 *) 14018 lt_save_MAGIC_CMD="$MAGIC_CMD" 14019 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14020 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14021 for ac_dir in $ac_dummy; do 14022 IFS="$lt_save_ifs" 14023 test -z "$ac_dir" && ac_dir=. 14024 if test -f $ac_dir/${ac_tool_prefix}file; then 14025 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 14026 if test -n "$file_magic_test_file"; then 14027 case $deplibs_check_method in 14028 "file_magic "*) 14029 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14030 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14031 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14032 $EGREP "$file_magic_regex" > /dev/null; then 14033 : 14034 else 14035 cat <<_LT_EOF 1>&2 14036 14037 *** Warning: the command libtool uses to detect shared libraries, 14038 *** $file_magic_cmd, produces output that libtool cannot recognize. 14039 *** The result is that libtool may fail to recognize shared libraries 14040 *** as such. This will affect the creation of libtool libraries that 14041 *** depend on shared libraries, but programs linked with such libtool 14042 *** libraries will work regardless of this problem. Nevertheless, you 14043 *** may want to report the problem to your system manager and/or to 14044 *** bug-libtool@gnu.org 14045 14046 _LT_EOF 14047 fi ;; 14048 esac 14049 fi 14050 break 14051 fi 14052 done 14053 IFS="$lt_save_ifs" 14054 MAGIC_CMD="$lt_save_MAGIC_CMD" 14055 ;; 14056 esac 14057 fi 14058 14059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14060 if test -n "$MAGIC_CMD"; then 14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14062 $as_echo "$MAGIC_CMD" >&6; } 14063 else 14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14065 $as_echo "no" >&6; } 14066 fi 14067 14068 14069 14070 14071 14072 if test -z "$lt_cv_path_MAGIC_CMD"; then 14073 if test -n "$ac_tool_prefix"; then 14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14075 $as_echo_n "checking for file... " >&6; } 14076 if ${lt_cv_path_MAGIC_CMD+:} false; then : 14077 $as_echo_n "(cached) " >&6 14078 else 14079 case $MAGIC_CMD in 14080 [\\/*] | ?:[\\/]*) 14081 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14082 ;; 14083 *) 14084 lt_save_MAGIC_CMD="$MAGIC_CMD" 14085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14086 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14087 for ac_dir in $ac_dummy; do 14088 IFS="$lt_save_ifs" 14089 test -z "$ac_dir" && ac_dir=. 14090 if test -f $ac_dir/file; then 14091 lt_cv_path_MAGIC_CMD="$ac_dir/file" 14092 if test -n "$file_magic_test_file"; then 14093 case $deplibs_check_method in 14094 "file_magic "*) 14095 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14098 $EGREP "$file_magic_regex" > /dev/null; then 14099 : 14100 else 14101 cat <<_LT_EOF 1>&2 14102 14103 *** Warning: the command libtool uses to detect shared libraries, 14104 *** $file_magic_cmd, produces output that libtool cannot recognize. 14105 *** The result is that libtool may fail to recognize shared libraries 14106 *** as such. This will affect the creation of libtool libraries that 14107 *** depend on shared libraries, but programs linked with such libtool 14108 *** libraries will work regardless of this problem. Nevertheless, you 14109 *** may want to report the problem to your system manager and/or to 14110 *** bug-libtool@gnu.org 14111 14112 _LT_EOF 14113 fi ;; 14114 esac 14115 fi 14116 break 14117 fi 14118 done 14119 IFS="$lt_save_ifs" 14120 MAGIC_CMD="$lt_save_MAGIC_CMD" 14121 ;; 14122 esac 14123 fi 14124 14125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14126 if test -n "$MAGIC_CMD"; then 14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14128 $as_echo "$MAGIC_CMD" >&6; } 14129 else 14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14131 $as_echo "no" >&6; } 14132 fi 14133 14134 14135 else 14136 MAGIC_CMD=: 14137 fi 14138 fi 14139 14140 fi 14141 ;; 14142 esac 14143 14144 # Use C for the default configuration in the libtool script 14145 14146 lt_save_CC="$CC" 14147 ac_ext=c 14148 ac_cpp='$CPP $CPPFLAGS' 14149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14151 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14152 14153 14154 # Source file extension for C test sources. 14155 ac_ext=c 14156 14157 # Object file extension for compiled C test sources. 14158 objext=o 14159 objext=$objext 14160 14161 # Code to be used in simple compile tests 14162 lt_simple_compile_test_code="int some_variable = 0;" 14163 14164 # Code to be used in simple link tests 14165 lt_simple_link_test_code='int main(){return(0);}' 14166 14167 14168 14169 14170 14171 14172 14173 # If no C compiler was specified, use CC. 14174 LTCC=${LTCC-"$CC"} 14175 14176 # If no C compiler flags were specified, use CFLAGS. 14177 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14178 14179 # Allow CC to be a program name with arguments. 14180 compiler=$CC 14181 14182 # Save the default compiler, since it gets overwritten when the other 14183 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14184 compiler_DEFAULT=$CC 14185 14186 # save warnings/boilerplate of simple test code 14187 ac_outfile=conftest.$ac_objext 14188 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14189 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14190 _lt_compiler_boilerplate=`cat conftest.err` 14191 $RM conftest* 14192 14193 ac_outfile=conftest.$ac_objext 14194 echo "$lt_simple_link_test_code" >conftest.$ac_ext 14195 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14196 _lt_linker_boilerplate=`cat conftest.err` 14197 $RM -r conftest* 14198 14199 14200 if test -n "$compiler"; then 14201 14202 lt_prog_compiler_no_builtin_flag= 14203 14204 if test "$GCC" = yes; then 14205 case $cc_basename in 14206 nvcc*) 14207 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14208 *) 14209 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14210 esac 14211 14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14213 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14214 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14215 $as_echo_n "(cached) " >&6 14216 else 14217 lt_cv_prog_compiler_rtti_exceptions=no 14218 ac_outfile=conftest.$ac_objext 14219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14220 lt_compiler_flag="-fno-rtti -fno-exceptions" 14221 # Insert the option either (1) after the last *FLAGS variable, or 14222 # (2) before a word containing "conftest.", or (3) at the end. 14223 # Note that $ac_compile itself does not contain backslashes and begins 14224 # with a dollar sign (not a hyphen), so the echo should work correctly. 14225 # The option is referenced via a variable to avoid confusing sed. 14226 lt_compile=`echo "$ac_compile" | $SED \ 14227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14229 -e 's:$: $lt_compiler_flag:'` 14230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14231 (eval "$lt_compile" 2>conftest.err) 14232 ac_status=$? 14233 cat conftest.err >&5 14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14235 if (exit $ac_status) && test -s "$ac_outfile"; then 14236 # The compiler can only warn and ignore the option if not recognized 14237 # So say no if there are warnings other than the usual output. 14238 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14240 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14241 lt_cv_prog_compiler_rtti_exceptions=yes 14242 fi 14243 fi 14244 $RM conftest* 14245 14246 fi 14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14248 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14249 14250 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14251 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14252 else 14253 : 14254 fi 14255 14256 fi 14257 14258 14259 14260 14261 14262 14263 lt_prog_compiler_wl= 14264 lt_prog_compiler_pic= 14265 lt_prog_compiler_static= 14266 14267 14268 if test "$GCC" = yes; then 14269 lt_prog_compiler_wl='-Wl,' 14270 lt_prog_compiler_static='-static' 14271 14272 case $host_os in 14273 aix*) 14274 # All AIX code is PIC. 14275 if test "$host_cpu" = ia64; then 14276 # AIX 5 now supports IA64 processor 14277 lt_prog_compiler_static='-Bstatic' 14278 fi 14279 ;; 14280 14281 amigaos*) 14282 case $host_cpu in 14283 powerpc) 14284 # see comment about AmigaOS4 .so support 14285 lt_prog_compiler_pic='-fPIC' 14286 ;; 14287 m68k) 14288 # FIXME: we need at least 68020 code to build shared libraries, but 14289 # adding the `-m68020' flag to GCC prevents building anything better, 14290 # like `-m68040'. 14291 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14292 ;; 14293 esac 14294 ;; 14295 14296 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14297 # PIC is the default for these OSes. 14298 ;; 14299 14300 mingw* | cygwin* | pw32* | os2* | cegcc*) 14301 # This hack is so that the source file can tell whether it is being 14302 # built for inclusion in a dll (and should export symbols for example). 14303 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14304 # (--disable-auto-import) libraries 14305 lt_prog_compiler_pic='-DDLL_EXPORT' 14306 ;; 14307 14308 darwin* | rhapsody*) 14309 # PIC is the default on this platform 14310 # Common symbols not allowed in MH_DYLIB files 14311 lt_prog_compiler_pic='-fno-common' 14312 ;; 14313 14314 haiku*) 14315 # PIC is the default for Haiku. 14316 # The "-static" flag exists, but is broken. 14317 lt_prog_compiler_static= 14318 ;; 14319 14320 hpux*) 14321 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14322 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14323 # sets the default TLS model and affects inlining. 14324 case $host_cpu in 14325 hppa*64*) 14326 # +Z the default 14327 ;; 14328 *) 14329 lt_prog_compiler_pic='-fPIC' 14330 ;; 14331 esac 14332 ;; 14333 14334 interix[3-9]*) 14335 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14336 # Instead, we relocate shared libraries at runtime. 14337 ;; 14338 14339 msdosdjgpp*) 14340 # Just because we use GCC doesn't mean we suddenly get shared libraries 14341 # on systems that don't support them. 14342 lt_prog_compiler_can_build_shared=no 14343 enable_shared=no 14344 ;; 14345 14346 *nto* | *qnx*) 14347 # QNX uses GNU C++, but need to define -shared option too, otherwise 14348 # it will coredump. 14349 lt_prog_compiler_pic='-fPIC -shared' 14350 ;; 14351 14352 sysv4*MP*) 14353 if test -d /usr/nec; then 14354 lt_prog_compiler_pic=-Kconform_pic 14355 fi 14356 ;; 14357 14358 *) 14359 lt_prog_compiler_pic='-fPIC' 14360 ;; 14361 esac 14362 14363 case $cc_basename in 14364 nvcc*) # Cuda Compiler Driver 2.2 14365 lt_prog_compiler_wl='-Xlinker ' 14366 if test -n "$lt_prog_compiler_pic"; then 14367 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14368 fi 14369 ;; 14370 esac 14371 else 14372 # PORTME Check for flag to pass linker flags through the system compiler. 14373 case $host_os in 14374 aix*) 14375 lt_prog_compiler_wl='-Wl,' 14376 if test "$host_cpu" = ia64; then 14377 # AIX 5 now supports IA64 processor 14378 lt_prog_compiler_static='-Bstatic' 14379 else 14380 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14381 fi 14382 ;; 14383 14384 mingw* | cygwin* | pw32* | os2* | cegcc*) 14385 # This hack is so that the source file can tell whether it is being 14386 # built for inclusion in a dll (and should export symbols for example). 14387 lt_prog_compiler_pic='-DDLL_EXPORT' 14388 ;; 14389 14390 hpux9* | hpux10* | hpux11*) 14391 lt_prog_compiler_wl='-Wl,' 14392 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14393 # not for PA HP-UX. 14394 case $host_cpu in 14395 hppa*64*|ia64*) 14396 # +Z the default 14397 ;; 14398 *) 14399 lt_prog_compiler_pic='+Z' 14400 ;; 14401 esac 14402 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14403 lt_prog_compiler_static='${wl}-a ${wl}archive' 14404 ;; 14405 14406 irix5* | irix6* | nonstopux*) 14407 lt_prog_compiler_wl='-Wl,' 14408 # PIC (with -KPIC) is the default. 14409 lt_prog_compiler_static='-non_shared' 14410 ;; 14411 14412 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14413 case $cc_basename in 14414 # old Intel for x86_64 which still supported -KPIC. 14415 ecc*) 14416 lt_prog_compiler_wl='-Wl,' 14417 lt_prog_compiler_pic='-KPIC' 14418 lt_prog_compiler_static='-static' 14419 ;; 14420 # icc used to be incompatible with GCC. 14421 # ICC 10 doesn't accept -KPIC any more. 14422 icc* | ifort*) 14423 lt_prog_compiler_wl='-Wl,' 14424 lt_prog_compiler_pic='-fPIC' 14425 lt_prog_compiler_static='-static' 14426 ;; 14427 # Lahey Fortran 8.1. 14428 lf95*) 14429 lt_prog_compiler_wl='-Wl,' 14430 lt_prog_compiler_pic='--shared' 14431 lt_prog_compiler_static='--static' 14432 ;; 14433 nagfor*) 14434 # NAG Fortran compiler 14435 lt_prog_compiler_wl='-Wl,-Wl,,' 14436 lt_prog_compiler_pic='-PIC' 14437 lt_prog_compiler_static='-Bstatic' 14438 ;; 14439 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14440 # Portland Group compilers (*not* the Pentium gcc compiler, 14441 # which looks to be a dead project) 14442 lt_prog_compiler_wl='-Wl,' 14443 lt_prog_compiler_pic='-fpic' 14444 lt_prog_compiler_static='-Bstatic' 14445 ;; 14446 ccc*) 14447 lt_prog_compiler_wl='-Wl,' 14448 # All Alpha code is PIC. 14449 lt_prog_compiler_static='-non_shared' 14450 ;; 14451 xl* | bgxl* | bgf* | mpixl*) 14452 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14453 lt_prog_compiler_wl='-Wl,' 14454 lt_prog_compiler_pic='-qpic' 14455 lt_prog_compiler_static='-qstaticlink' 14456 ;; 14457 *) 14458 case `$CC -V 2>&1 | sed 5q` in 14459 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14460 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14461 lt_prog_compiler_pic='-KPIC' 14462 lt_prog_compiler_static='-Bstatic' 14463 lt_prog_compiler_wl='' 14464 ;; 14465 *Sun\ F* | *Sun*Fortran*) 14466 lt_prog_compiler_pic='-KPIC' 14467 lt_prog_compiler_static='-Bstatic' 14468 lt_prog_compiler_wl='-Qoption ld ' 14469 ;; 14470 *Sun\ C*) 14471 # Sun C 5.9 14472 lt_prog_compiler_pic='-KPIC' 14473 lt_prog_compiler_static='-Bstatic' 14474 lt_prog_compiler_wl='-Wl,' 14475 ;; 14476 *Intel*\ [CF]*Compiler*) 14477 lt_prog_compiler_wl='-Wl,' 14478 lt_prog_compiler_pic='-fPIC' 14479 lt_prog_compiler_static='-static' 14480 ;; 14481 *Portland\ Group*) 14482 lt_prog_compiler_wl='-Wl,' 14483 lt_prog_compiler_pic='-fpic' 14484 lt_prog_compiler_static='-Bstatic' 14485 ;; 14486 esac 14487 ;; 14488 esac 14489 ;; 14490 14491 newsos6) 14492 lt_prog_compiler_pic='-KPIC' 14493 lt_prog_compiler_static='-Bstatic' 14494 ;; 14495 14496 *nto* | *qnx*) 14497 # QNX uses GNU C++, but need to define -shared option too, otherwise 14498 # it will coredump. 14499 lt_prog_compiler_pic='-fPIC -shared' 14500 ;; 14501 14502 osf3* | osf4* | osf5*) 14503 lt_prog_compiler_wl='-Wl,' 14504 # All OSF/1 code is PIC. 14505 lt_prog_compiler_static='-non_shared' 14506 ;; 14507 14508 rdos*) 14509 lt_prog_compiler_static='-non_shared' 14510 ;; 14511 14512 solaris*) 14513 lt_prog_compiler_pic='-KPIC' 14514 lt_prog_compiler_static='-Bstatic' 14515 case $cc_basename in 14516 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14517 lt_prog_compiler_wl='-Qoption ld ';; 14518 *) 14519 lt_prog_compiler_wl='-Wl,';; 14520 esac 14521 ;; 14522 14523 sunos4*) 14524 lt_prog_compiler_wl='-Qoption ld ' 14525 lt_prog_compiler_pic='-PIC' 14526 lt_prog_compiler_static='-Bstatic' 14527 ;; 14528 14529 sysv4 | sysv4.2uw2* | sysv4.3*) 14530 lt_prog_compiler_wl='-Wl,' 14531 lt_prog_compiler_pic='-KPIC' 14532 lt_prog_compiler_static='-Bstatic' 14533 ;; 14534 14535 sysv4*MP*) 14536 if test -d /usr/nec ;then 14537 lt_prog_compiler_pic='-Kconform_pic' 14538 lt_prog_compiler_static='-Bstatic' 14539 fi 14540 ;; 14541 14542 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14543 lt_prog_compiler_wl='-Wl,' 14544 lt_prog_compiler_pic='-KPIC' 14545 lt_prog_compiler_static='-Bstatic' 14546 ;; 14547 14548 unicos*) 14549 lt_prog_compiler_wl='-Wl,' 14550 lt_prog_compiler_can_build_shared=no 14551 ;; 14552 14553 uts4*) 14554 lt_prog_compiler_pic='-pic' 14555 lt_prog_compiler_static='-Bstatic' 14556 ;; 14557 14558 *) 14559 lt_prog_compiler_can_build_shared=no 14560 ;; 14561 esac 14562 fi 14563 14564 case $host_os in 14565 # For platforms which do not support PIC, -DPIC is meaningless: 14566 *djgpp*) 14567 lt_prog_compiler_pic= 14568 ;; 14569 *) 14570 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 14571 ;; 14572 esac 14573 14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14575 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14576 if ${lt_cv_prog_compiler_pic+:} false; then : 14577 $as_echo_n "(cached) " >&6 14578 else 14579 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 14580 fi 14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 14582 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 14583 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 14584 14585 # 14586 # Check to make sure the PIC flag actually works. 14587 # 14588 if test -n "$lt_prog_compiler_pic"; then 14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 14590 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 14591 if ${lt_cv_prog_compiler_pic_works+:} false; then : 14592 $as_echo_n "(cached) " >&6 14593 else 14594 lt_cv_prog_compiler_pic_works=no 14595 ac_outfile=conftest.$ac_objext 14596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14597 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 14598 # Insert the option either (1) after the last *FLAGS variable, or 14599 # (2) before a word containing "conftest.", or (3) at the end. 14600 # Note that $ac_compile itself does not contain backslashes and begins 14601 # with a dollar sign (not a hyphen), so the echo should work correctly. 14602 # The option is referenced via a variable to avoid confusing sed. 14603 lt_compile=`echo "$ac_compile" | $SED \ 14604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14606 -e 's:$: $lt_compiler_flag:'` 14607 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14608 (eval "$lt_compile" 2>conftest.err) 14609 ac_status=$? 14610 cat conftest.err >&5 14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14612 if (exit $ac_status) && test -s "$ac_outfile"; then 14613 # The compiler can only warn and ignore the option if not recognized 14614 # So say no if there are warnings other than the usual output. 14615 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14617 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14618 lt_cv_prog_compiler_pic_works=yes 14619 fi 14620 fi 14621 $RM conftest* 14622 14623 fi 14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 14625 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 14626 14627 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 14628 case $lt_prog_compiler_pic in 14629 "" | " "*) ;; 14630 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 14631 esac 14632 else 14633 lt_prog_compiler_pic= 14634 lt_prog_compiler_can_build_shared=no 14635 fi 14636 14637 fi 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 # 14650 # Check to make sure the static flag actually works. 14651 # 14652 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14654 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14655 if ${lt_cv_prog_compiler_static_works+:} false; then : 14656 $as_echo_n "(cached) " >&6 14657 else 14658 lt_cv_prog_compiler_static_works=no 14659 save_LDFLAGS="$LDFLAGS" 14660 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14661 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14662 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14663 # The linker can only warn and ignore the option if not recognized 14664 # So say no if there are warnings 14665 if test -s conftest.err; then 14666 # Append any errors to the config.log. 14667 cat conftest.err 1>&5 14668 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14670 if diff conftest.exp conftest.er2 >/dev/null; then 14671 lt_cv_prog_compiler_static_works=yes 14672 fi 14673 else 14674 lt_cv_prog_compiler_static_works=yes 14675 fi 14676 fi 14677 $RM -r conftest* 14678 LDFLAGS="$save_LDFLAGS" 14679 14680 fi 14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 14682 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 14683 14684 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 14685 : 14686 else 14687 lt_prog_compiler_static= 14688 fi 14689 14690 14691 14692 14693 14694 14695 14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14697 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14698 if ${lt_cv_prog_compiler_c_o+:} false; then : 14699 $as_echo_n "(cached) " >&6 14700 else 14701 lt_cv_prog_compiler_c_o=no 14702 $RM -r conftest 2>/dev/null 14703 mkdir conftest 14704 cd conftest 14705 mkdir out 14706 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14707 14708 lt_compiler_flag="-o out/conftest2.$ac_objext" 14709 # Insert the option either (1) after the last *FLAGS variable, or 14710 # (2) before a word containing "conftest.", or (3) at the end. 14711 # Note that $ac_compile itself does not contain backslashes and begins 14712 # with a dollar sign (not a hyphen), so the echo should work correctly. 14713 lt_compile=`echo "$ac_compile" | $SED \ 14714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14716 -e 's:$: $lt_compiler_flag:'` 14717 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14718 (eval "$lt_compile" 2>out/conftest.err) 14719 ac_status=$? 14720 cat out/conftest.err >&5 14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14722 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14723 then 14724 # The compiler can only warn and ignore the option if not recognized 14725 # So say no if there are warnings 14726 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14727 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14728 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14729 lt_cv_prog_compiler_c_o=yes 14730 fi 14731 fi 14732 chmod u+w . 2>&5 14733 $RM conftest* 14734 # SGI C++ compiler will create directory out/ii_files/ for 14735 # template instantiation 14736 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14737 $RM out/* && rmdir out 14738 cd .. 14739 $RM -r conftest 14740 $RM conftest* 14741 14742 fi 14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14744 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14745 14746 14747 14748 14749 14750 14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14752 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14753 if ${lt_cv_prog_compiler_c_o+:} false; then : 14754 $as_echo_n "(cached) " >&6 14755 else 14756 lt_cv_prog_compiler_c_o=no 14757 $RM -r conftest 2>/dev/null 14758 mkdir conftest 14759 cd conftest 14760 mkdir out 14761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14762 14763 lt_compiler_flag="-o out/conftest2.$ac_objext" 14764 # Insert the option either (1) after the last *FLAGS variable, or 14765 # (2) before a word containing "conftest.", or (3) at the end. 14766 # Note that $ac_compile itself does not contain backslashes and begins 14767 # with a dollar sign (not a hyphen), so the echo should work correctly. 14768 lt_compile=`echo "$ac_compile" | $SED \ 14769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14771 -e 's:$: $lt_compiler_flag:'` 14772 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14773 (eval "$lt_compile" 2>out/conftest.err) 14774 ac_status=$? 14775 cat out/conftest.err >&5 14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14777 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14778 then 14779 # The compiler can only warn and ignore the option if not recognized 14780 # So say no if there are warnings 14781 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14782 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14783 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14784 lt_cv_prog_compiler_c_o=yes 14785 fi 14786 fi 14787 chmod u+w . 2>&5 14788 $RM conftest* 14789 # SGI C++ compiler will create directory out/ii_files/ for 14790 # template instantiation 14791 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14792 $RM out/* && rmdir out 14793 cd .. 14794 $RM -r conftest 14795 $RM conftest* 14796 14797 fi 14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14799 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14800 14801 14802 14803 14804 hard_links="nottested" 14805 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 14806 # do not overwrite the value of need_locks provided by the user 14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14808 $as_echo_n "checking if we can lock with hard links... " >&6; } 14809 hard_links=yes 14810 $RM conftest* 14811 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14812 touch conftest.a 14813 ln conftest.a conftest.b 2>&5 || hard_links=no 14814 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14816 $as_echo "$hard_links" >&6; } 14817 if test "$hard_links" = no; then 14818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14819 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14820 need_locks=warn 14821 fi 14822 else 14823 need_locks=no 14824 fi 14825 14826 14827 14828 14829 14830 14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14832 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14833 14834 runpath_var= 14835 allow_undefined_flag= 14836 always_export_symbols=no 14837 archive_cmds= 14838 archive_expsym_cmds= 14839 compiler_needs_object=no 14840 enable_shared_with_static_runtimes=no 14841 export_dynamic_flag_spec= 14842 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14843 hardcode_automatic=no 14844 hardcode_direct=no 14845 hardcode_direct_absolute=no 14846 hardcode_libdir_flag_spec= 14847 hardcode_libdir_separator= 14848 hardcode_minus_L=no 14849 hardcode_shlibpath_var=unsupported 14850 inherit_rpath=no 14851 link_all_deplibs=unknown 14852 module_cmds= 14853 module_expsym_cmds= 14854 old_archive_from_new_cmds= 14855 old_archive_from_expsyms_cmds= 14856 thread_safe_flag_spec= 14857 whole_archive_flag_spec= 14858 # include_expsyms should be a list of space-separated symbols to be *always* 14859 # included in the symbol list 14860 include_expsyms= 14861 # exclude_expsyms can be an extended regexp of symbols to exclude 14862 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14863 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14864 # as well as any symbol that contains `d'. 14865 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14866 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14867 # platforms (ab)use it in PIC code, but their linkers get confused if 14868 # the symbol is explicitly referenced. Since portable code cannot 14869 # rely on this symbol name, it's probably fine to never include it in 14870 # preloaded symbol tables. 14871 # Exclude shared library initialization/finalization symbols. 14872 extract_expsyms_cmds= 14873 14874 case $host_os in 14875 cygwin* | mingw* | pw32* | cegcc*) 14876 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14877 # When not using gcc, we currently assume that we are using 14878 # Microsoft Visual C++. 14879 if test "$GCC" != yes; then 14880 with_gnu_ld=no 14881 fi 14882 ;; 14883 interix*) 14884 # we just hope/assume this is gcc and not c89 (= MSVC++) 14885 with_gnu_ld=yes 14886 ;; 14887 openbsd*) 14888 with_gnu_ld=no 14889 ;; 14890 esac 14891 14892 ld_shlibs=yes 14893 14894 # On some targets, GNU ld is compatible enough with the native linker 14895 # that we're better off using the native interface for both. 14896 lt_use_gnu_ld_interface=no 14897 if test "$with_gnu_ld" = yes; then 14898 case $host_os in 14899 aix*) 14900 # The AIX port of GNU ld has always aspired to compatibility 14901 # with the native linker. However, as the warning in the GNU ld 14902 # block says, versions before 2.19.5* couldn't really create working 14903 # shared libraries, regardless of the interface used. 14904 case `$LD -v 2>&1` in 14905 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 14906 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 14907 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 14908 *) 14909 lt_use_gnu_ld_interface=yes 14910 ;; 14911 esac 14912 ;; 14913 *) 14914 lt_use_gnu_ld_interface=yes 14915 ;; 14916 esac 14917 fi 14918 14919 if test "$lt_use_gnu_ld_interface" = yes; then 14920 # If archive_cmds runs LD, not CC, wlarc should be empty 14921 wlarc='${wl}' 14922 14923 # Set some defaults for GNU ld with shared library support. These 14924 # are reset later if shared libraries are not supported. Putting them 14925 # here allows them to be overridden if necessary. 14926 runpath_var=LD_RUN_PATH 14927 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14928 export_dynamic_flag_spec='${wl}--export-dynamic' 14929 # ancient GNU ld didn't support --whole-archive et. al. 14930 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 14931 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14932 else 14933 whole_archive_flag_spec= 14934 fi 14935 supports_anon_versioning=no 14936 case `$LD -v 2>&1` in 14937 *GNU\ gold*) supports_anon_versioning=yes ;; 14938 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14939 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14940 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14941 *\ 2.11.*) ;; # other 2.11 versions 14942 *) supports_anon_versioning=yes ;; 14943 esac 14944 14945 # See if GNU ld supports shared libraries. 14946 case $host_os in 14947 aix[3-9]*) 14948 # On AIX/PPC, the GNU linker is very broken 14949 if test "$host_cpu" != ia64; then 14950 ld_shlibs=no 14951 cat <<_LT_EOF 1>&2 14952 14953 *** Warning: the GNU linker, at least up to release 2.19, is reported 14954 *** to be unable to reliably create shared libraries on AIX. 14955 *** Therefore, libtool is disabling shared libraries support. If you 14956 *** really care for shared libraries, you may want to install binutils 14957 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 14958 *** You will then need to restart the configuration process. 14959 14960 _LT_EOF 14961 fi 14962 ;; 14963 14964 amigaos*) 14965 case $host_cpu in 14966 powerpc) 14967 # see comment about AmigaOS4 .so support 14968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14969 archive_expsym_cmds='' 14970 ;; 14971 m68k) 14972 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)' 14973 hardcode_libdir_flag_spec='-L$libdir' 14974 hardcode_minus_L=yes 14975 ;; 14976 esac 14977 ;; 14978 14979 beos*) 14980 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14981 allow_undefined_flag=unsupported 14982 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 14983 # support --undefined. This deserves some investigation. FIXME 14984 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14985 else 14986 ld_shlibs=no 14987 fi 14988 ;; 14989 14990 cygwin* | mingw* | pw32* | cegcc*) 14991 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 14992 # as there is no search path for DLLs. 14993 hardcode_libdir_flag_spec='-L$libdir' 14994 export_dynamic_flag_spec='${wl}--export-all-symbols' 14995 allow_undefined_flag=unsupported 14996 always_export_symbols=no 14997 enable_shared_with_static_runtimes=yes 14998 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' 14999 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15000 15001 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15003 # If the export-symbols file already is a .def file (1st line 15004 # is EXPORTS), use it as is; otherwise, prepend... 15005 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15006 cp $export_symbols $output_objdir/$soname.def; 15007 else 15008 echo EXPORTS > $output_objdir/$soname.def; 15009 cat $export_symbols >> $output_objdir/$soname.def; 15010 fi~ 15011 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15012 else 15013 ld_shlibs=no 15014 fi 15015 ;; 15016 15017 haiku*) 15018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15019 link_all_deplibs=yes 15020 ;; 15021 15022 interix[3-9]*) 15023 hardcode_direct=no 15024 hardcode_shlibpath_var=no 15025 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15026 export_dynamic_flag_spec='${wl}-E' 15027 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15028 # Instead, shared libraries are loaded at an image base (0x10000000 by 15029 # default) and relocated if they conflict, which is a slow very memory 15030 # consuming and fragmenting process. To avoid this, we pick a random, 15031 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15032 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15033 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15034 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' 15035 ;; 15036 15037 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15038 tmp_diet=no 15039 if test "$host_os" = linux-dietlibc; then 15040 case $cc_basename in 15041 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15042 esac 15043 fi 15044 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15045 && test "$tmp_diet" = no 15046 then 15047 tmp_addflag=' $pic_flag' 15048 tmp_sharedflag='-shared' 15049 case $cc_basename,$host_cpu in 15050 pgcc*) # Portland Group C compiler 15051 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' 15052 tmp_addflag=' $pic_flag' 15053 ;; 15054 pgf77* | pgf90* | pgf95* | pgfortran*) 15055 # Portland Group f77 and f90 compilers 15056 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' 15057 tmp_addflag=' $pic_flag -Mnomain' ;; 15058 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15059 tmp_addflag=' -i_dynamic' ;; 15060 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15061 tmp_addflag=' -i_dynamic -nofor_main' ;; 15062 ifc* | ifort*) # Intel Fortran compiler 15063 tmp_addflag=' -nofor_main' ;; 15064 lf95*) # Lahey Fortran 8.1 15065 whole_archive_flag_spec= 15066 tmp_sharedflag='--shared' ;; 15067 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15068 tmp_sharedflag='-qmkshrobj' 15069 tmp_addflag= ;; 15070 nvcc*) # Cuda Compiler Driver 2.2 15071 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' 15072 compiler_needs_object=yes 15073 ;; 15074 esac 15075 case `$CC -V 2>&1 | sed 5q` in 15076 *Sun\ C*) # Sun C 5.9 15077 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' 15078 compiler_needs_object=yes 15079 tmp_sharedflag='-G' ;; 15080 *Sun\ F*) # Sun Fortran 8.3 15081 tmp_sharedflag='-G' ;; 15082 esac 15083 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15084 15085 if test "x$supports_anon_versioning" = xyes; then 15086 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15087 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15088 echo "local: *; };" >> $output_objdir/$libname.ver~ 15089 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15090 fi 15091 15092 case $cc_basename in 15093 xlf* | bgf* | bgxlf* | mpixlf*) 15094 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15095 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15096 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15097 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15098 if test "x$supports_anon_versioning" = xyes; then 15099 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15100 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15101 echo "local: *; };" >> $output_objdir/$libname.ver~ 15102 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15103 fi 15104 ;; 15105 esac 15106 else 15107 ld_shlibs=no 15108 fi 15109 ;; 15110 15111 netbsd*) 15112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15113 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15114 wlarc= 15115 else 15116 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15117 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15118 fi 15119 ;; 15120 15121 solaris*) 15122 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15123 ld_shlibs=no 15124 cat <<_LT_EOF 1>&2 15125 15126 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 15127 *** create shared libraries on Solaris systems. Therefore, libtool 15128 *** is disabling shared libraries support. We urge you to upgrade GNU 15129 *** binutils to release 2.9.1 or newer. Another option is to modify 15130 *** your PATH or compiler configuration so that the native linker is 15131 *** used, and then restart. 15132 15133 _LT_EOF 15134 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15135 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15136 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15137 else 15138 ld_shlibs=no 15139 fi 15140 ;; 15141 15142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15143 case `$LD -v 2>&1` in 15144 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15145 ld_shlibs=no 15146 cat <<_LT_EOF 1>&2 15147 15148 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15149 *** reliably create shared libraries on SCO systems. Therefore, libtool 15150 *** is disabling shared libraries support. We urge you to upgrade GNU 15151 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15152 *** your PATH or compiler configuration so that the native linker is 15153 *** used, and then restart. 15154 15155 _LT_EOF 15156 ;; 15157 *) 15158 # For security reasons, it is highly recommended that you always 15159 # use absolute paths for naming shared libraries, and exclude the 15160 # DT_RUNPATH tag from executables and libraries. But doing so 15161 # requires that you compile everything twice, which is a pain. 15162 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15163 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15165 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15166 else 15167 ld_shlibs=no 15168 fi 15169 ;; 15170 esac 15171 ;; 15172 15173 sunos4*) 15174 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15175 wlarc= 15176 hardcode_direct=yes 15177 hardcode_shlibpath_var=no 15178 ;; 15179 15180 *) 15181 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15182 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15183 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15184 else 15185 ld_shlibs=no 15186 fi 15187 ;; 15188 esac 15189 15190 if test "$ld_shlibs" = no; then 15191 runpath_var= 15192 hardcode_libdir_flag_spec= 15193 export_dynamic_flag_spec= 15194 whole_archive_flag_spec= 15195 fi 15196 else 15197 # PORTME fill in a description of your system's linker (not GNU ld) 15198 case $host_os in 15199 aix3*) 15200 allow_undefined_flag=unsupported 15201 always_export_symbols=yes 15202 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' 15203 # Note: this linker hardcodes the directories in LIBPATH if there 15204 # are no directories specified by -L. 15205 hardcode_minus_L=yes 15206 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15207 # Neither direct hardcoding nor static linking is supported with a 15208 # broken collect2. 15209 hardcode_direct=unsupported 15210 fi 15211 ;; 15212 15213 aix[4-9]*) 15214 if test "$host_cpu" = ia64; then 15215 # On IA64, the linker does run time linking by default, so we don't 15216 # have to do anything special. 15217 aix_use_runtimelinking=no 15218 exp_sym_flag='-Bexport' 15219 no_entry_flag="" 15220 else 15221 # If we're using GNU nm, then we don't want the "-C" option. 15222 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15223 # Also, AIX nm treats weak defined symbols like other global 15224 # defined symbols, whereas GNU nm marks them as "W". 15225 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15226 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15227 else 15228 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15229 fi 15230 aix_use_runtimelinking=no 15231 15232 # Test if we are trying to use run time linking or normal 15233 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15234 # need to do runtime linking. 15235 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15236 for ld_flag in $LDFLAGS; do 15237 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15238 aix_use_runtimelinking=yes 15239 break 15240 fi 15241 done 15242 ;; 15243 esac 15244 15245 exp_sym_flag='-bexport' 15246 no_entry_flag='-bnoentry' 15247 fi 15248 15249 # When large executables or shared objects are built, AIX ld can 15250 # have problems creating the table of contents. If linking a library 15251 # or program results in "error TOC overflow" add -mminimal-toc to 15252 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15253 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15254 15255 archive_cmds='' 15256 hardcode_direct=yes 15257 hardcode_direct_absolute=yes 15258 hardcode_libdir_separator=':' 15259 link_all_deplibs=yes 15260 file_list_spec='${wl}-f,' 15261 15262 if test "$GCC" = yes; then 15263 case $host_os in aix4.[012]|aix4.[012].*) 15264 # We only want to do this on AIX 4.2 and lower, the check 15265 # below for broken collect2 doesn't work under 4.3+ 15266 collect2name=`${CC} -print-prog-name=collect2` 15267 if test -f "$collect2name" && 15268 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15269 then 15270 # We have reworked collect2 15271 : 15272 else 15273 # We have old collect2 15274 hardcode_direct=unsupported 15275 # It fails to find uninstalled libraries when the uninstalled 15276 # path is not listed in the libpath. Setting hardcode_minus_L 15277 # to unsupported forces relinking 15278 hardcode_minus_L=yes 15279 hardcode_libdir_flag_spec='-L$libdir' 15280 hardcode_libdir_separator= 15281 fi 15282 ;; 15283 esac 15284 shared_flag='-shared' 15285 if test "$aix_use_runtimelinking" = yes; then 15286 shared_flag="$shared_flag "'${wl}-G' 15287 fi 15288 else 15289 # not using gcc 15290 if test "$host_cpu" = ia64; then 15291 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15292 # chokes on -Wl,-G. The following line is correct: 15293 shared_flag='-G' 15294 else 15295 if test "$aix_use_runtimelinking" = yes; then 15296 shared_flag='${wl}-G' 15297 else 15298 shared_flag='${wl}-bM:SRE' 15299 fi 15300 fi 15301 fi 15302 15303 export_dynamic_flag_spec='${wl}-bexpall' 15304 # It seems that -bexpall does not export symbols beginning with 15305 # underscore (_), so it is better to generate a list of symbols to export. 15306 always_export_symbols=yes 15307 if test "$aix_use_runtimelinking" = yes; then 15308 # Warning - without using the other runtime loading flags (-brtl), 15309 # -berok will link without error, but may produce a broken library. 15310 allow_undefined_flag='-berok' 15311 # Determine the default libpath from the value encoded in an 15312 # empty executable. 15313 if test "${lt_cv_aix_libpath+set}" = set; then 15314 aix_libpath=$lt_cv_aix_libpath 15315 else 15316 if ${lt_cv_aix_libpath_+:} false; then : 15317 $as_echo_n "(cached) " >&6 15318 else 15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15320 /* end confdefs.h. */ 15321 15322 int 15323 main () 15324 { 15325 15326 ; 15327 return 0; 15328 } 15329 _ACEOF 15330 if ac_fn_c_try_link "$LINENO"; then : 15331 15332 lt_aix_libpath_sed=' 15333 /Import File Strings/,/^$/ { 15334 /^0/ { 15335 s/^0 *\([^ ]*\) *$/\1/ 15336 p 15337 } 15338 }' 15339 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15340 # Check for a 64-bit object if we didn't find anything. 15341 if test -z "$lt_cv_aix_libpath_"; then 15342 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15343 fi 15344 fi 15345 rm -f core conftest.err conftest.$ac_objext \ 15346 conftest$ac_exeext conftest.$ac_ext 15347 if test -z "$lt_cv_aix_libpath_"; then 15348 lt_cv_aix_libpath_="/usr/lib:/lib" 15349 fi 15350 15351 fi 15352 15353 aix_libpath=$lt_cv_aix_libpath_ 15354 fi 15355 15356 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15357 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15358 else 15359 if test "$host_cpu" = ia64; then 15360 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 15361 allow_undefined_flag="-z nodefs" 15362 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" 15363 else 15364 # Determine the default libpath from the value encoded in an 15365 # empty executable. 15366 if test "${lt_cv_aix_libpath+set}" = set; then 15367 aix_libpath=$lt_cv_aix_libpath 15368 else 15369 if ${lt_cv_aix_libpath_+:} false; then : 15370 $as_echo_n "(cached) " >&6 15371 else 15372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15373 /* end confdefs.h. */ 15374 15375 int 15376 main () 15377 { 15378 15379 ; 15380 return 0; 15381 } 15382 _ACEOF 15383 if ac_fn_c_try_link "$LINENO"; then : 15384 15385 lt_aix_libpath_sed=' 15386 /Import File Strings/,/^$/ { 15387 /^0/ { 15388 s/^0 *\([^ ]*\) *$/\1/ 15389 p 15390 } 15391 }' 15392 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15393 # Check for a 64-bit object if we didn't find anything. 15394 if test -z "$lt_cv_aix_libpath_"; then 15395 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15396 fi 15397 fi 15398 rm -f core conftest.err conftest.$ac_objext \ 15399 conftest$ac_exeext conftest.$ac_ext 15400 if test -z "$lt_cv_aix_libpath_"; then 15401 lt_cv_aix_libpath_="/usr/lib:/lib" 15402 fi 15403 15404 fi 15405 15406 aix_libpath=$lt_cv_aix_libpath_ 15407 fi 15408 15409 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15410 # Warning - without using the other run time loading flags, 15411 # -berok will link without error, but may produce a broken library. 15412 no_undefined_flag=' ${wl}-bernotok' 15413 allow_undefined_flag=' ${wl}-berok' 15414 if test "$with_gnu_ld" = yes; then 15415 # We only use this code for GNU lds that support --whole-archive. 15416 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15417 else 15418 # Exported symbols can be pulled into shared objects from archives 15419 whole_archive_flag_spec='$convenience' 15420 fi 15421 archive_cmds_need_lc=yes 15422 # This is similar to how AIX traditionally builds its shared libraries. 15423 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15424 fi 15425 fi 15426 ;; 15427 15428 amigaos*) 15429 case $host_cpu in 15430 powerpc) 15431 # see comment about AmigaOS4 .so support 15432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15433 archive_expsym_cmds='' 15434 ;; 15435 m68k) 15436 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)' 15437 hardcode_libdir_flag_spec='-L$libdir' 15438 hardcode_minus_L=yes 15439 ;; 15440 esac 15441 ;; 15442 15443 bsdi[45]*) 15444 export_dynamic_flag_spec=-rdynamic 15445 ;; 15446 15447 cygwin* | mingw* | pw32* | cegcc*) 15448 # When not using gcc, we currently assume that we are using 15449 # Microsoft Visual C++. 15450 # hardcode_libdir_flag_spec is actually meaningless, as there is 15451 # no search path for DLLs. 15452 case $cc_basename in 15453 cl*) 15454 # Native MSVC 15455 hardcode_libdir_flag_spec=' ' 15456 allow_undefined_flag=unsupported 15457 always_export_symbols=yes 15458 file_list_spec='@' 15459 # Tell ltmain to make .lib files, not .a files. 15460 libext=lib 15461 # Tell ltmain to make .dll files, not .so files. 15462 shrext_cmds=".dll" 15463 # FIXME: Setting linknames here is a bad hack. 15464 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 15465 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15466 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 15467 else 15468 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 15469 fi~ 15470 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15471 linknames=' 15472 # The linker will not automatically build a static lib if we build a DLL. 15473 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 15474 enable_shared_with_static_runtimes=yes 15475 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15476 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15477 # Don't use ranlib 15478 old_postinstall_cmds='chmod 644 $oldlib' 15479 postlink_cmds='lt_outputfile="@OUTPUT@"~ 15480 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15481 case $lt_outputfile in 15482 *.exe|*.EXE) ;; 15483 *) 15484 lt_outputfile="$lt_outputfile.exe" 15485 lt_tool_outputfile="$lt_tool_outputfile.exe" 15486 ;; 15487 esac~ 15488 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 15489 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15490 $RM "$lt_outputfile.manifest"; 15491 fi' 15492 ;; 15493 *) 15494 # Assume MSVC wrapper 15495 hardcode_libdir_flag_spec=' ' 15496 allow_undefined_flag=unsupported 15497 # Tell ltmain to make .lib files, not .a files. 15498 libext=lib 15499 # Tell ltmain to make .dll files, not .so files. 15500 shrext_cmds=".dll" 15501 # FIXME: Setting linknames here is a bad hack. 15502 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 15503 # The linker will automatically build a .lib file if we build a DLL. 15504 old_archive_from_new_cmds='true' 15505 # FIXME: Should let the user specify the lib program. 15506 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 15507 enable_shared_with_static_runtimes=yes 15508 ;; 15509 esac 15510 ;; 15511 15512 darwin* | rhapsody*) 15513 15514 15515 archive_cmds_need_lc=no 15516 hardcode_direct=no 15517 hardcode_automatic=yes 15518 hardcode_shlibpath_var=unsupported 15519 if test "$lt_cv_ld_force_load" = "yes"; then 15520 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\"`' 15521 15522 else 15523 whole_archive_flag_spec='' 15524 fi 15525 link_all_deplibs=yes 15526 allow_undefined_flag="$_lt_dar_allow_undefined" 15527 case $cc_basename in 15528 ifort*) _lt_dar_can_shared=yes ;; 15529 *) _lt_dar_can_shared=$GCC ;; 15530 esac 15531 if test "$_lt_dar_can_shared" = "yes"; then 15532 output_verbose_link_cmd=func_echo_all 15533 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15534 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15535 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}" 15536 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}" 15537 15538 else 15539 ld_shlibs=no 15540 fi 15541 15542 ;; 15543 15544 dgux*) 15545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15546 hardcode_libdir_flag_spec='-L$libdir' 15547 hardcode_shlibpath_var=no 15548 ;; 15549 15550 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15551 # support. Future versions do this automatically, but an explicit c++rt0.o 15552 # does not break anything, and helps significantly (at the cost of a little 15553 # extra space). 15554 freebsd2.2*) 15555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15556 hardcode_libdir_flag_spec='-R$libdir' 15557 hardcode_direct=yes 15558 hardcode_shlibpath_var=no 15559 ;; 15560 15561 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15562 freebsd2.*) 15563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15564 hardcode_direct=yes 15565 hardcode_minus_L=yes 15566 hardcode_shlibpath_var=no 15567 ;; 15568 15569 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15570 freebsd* | dragonfly*) 15571 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15572 hardcode_libdir_flag_spec='-R$libdir' 15573 hardcode_direct=yes 15574 hardcode_shlibpath_var=no 15575 ;; 15576 15577 hpux9*) 15578 if test "$GCC" = yes; then 15579 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15580 else 15581 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15582 fi 15583 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15584 hardcode_libdir_separator=: 15585 hardcode_direct=yes 15586 15587 # hardcode_minus_L: Not really in the search PATH, 15588 # but as the default location of the library. 15589 hardcode_minus_L=yes 15590 export_dynamic_flag_spec='${wl}-E' 15591 ;; 15592 15593 hpux10*) 15594 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15595 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15596 else 15597 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15598 fi 15599 if test "$with_gnu_ld" = no; then 15600 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15601 hardcode_libdir_separator=: 15602 hardcode_direct=yes 15603 hardcode_direct_absolute=yes 15604 export_dynamic_flag_spec='${wl}-E' 15605 # hardcode_minus_L: Not really in the search PATH, 15606 # but as the default location of the library. 15607 hardcode_minus_L=yes 15608 fi 15609 ;; 15610 15611 hpux11*) 15612 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15613 case $host_cpu in 15614 hppa*64*) 15615 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15616 ;; 15617 ia64*) 15618 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15619 ;; 15620 *) 15621 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15622 ;; 15623 esac 15624 else 15625 case $host_cpu in 15626 hppa*64*) 15627 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15628 ;; 15629 ia64*) 15630 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15631 ;; 15632 *) 15633 15634 # Older versions of the 11.00 compiler do not understand -b yet 15635 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 15637 $as_echo_n "checking if $CC understands -b... " >&6; } 15638 if ${lt_cv_prog_compiler__b+:} false; then : 15639 $as_echo_n "(cached) " >&6 15640 else 15641 lt_cv_prog_compiler__b=no 15642 save_LDFLAGS="$LDFLAGS" 15643 LDFLAGS="$LDFLAGS -b" 15644 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15645 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15646 # The linker can only warn and ignore the option if not recognized 15647 # So say no if there are warnings 15648 if test -s conftest.err; then 15649 # Append any errors to the config.log. 15650 cat conftest.err 1>&5 15651 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15653 if diff conftest.exp conftest.er2 >/dev/null; then 15654 lt_cv_prog_compiler__b=yes 15655 fi 15656 else 15657 lt_cv_prog_compiler__b=yes 15658 fi 15659 fi 15660 $RM -r conftest* 15661 LDFLAGS="$save_LDFLAGS" 15662 15663 fi 15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 15665 $as_echo "$lt_cv_prog_compiler__b" >&6; } 15666 15667 if test x"$lt_cv_prog_compiler__b" = xyes; then 15668 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15669 else 15670 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15671 fi 15672 15673 ;; 15674 esac 15675 fi 15676 if test "$with_gnu_ld" = no; then 15677 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15678 hardcode_libdir_separator=: 15679 15680 case $host_cpu in 15681 hppa*64*|ia64*) 15682 hardcode_direct=no 15683 hardcode_shlibpath_var=no 15684 ;; 15685 *) 15686 hardcode_direct=yes 15687 hardcode_direct_absolute=yes 15688 export_dynamic_flag_spec='${wl}-E' 15689 15690 # hardcode_minus_L: Not really in the search PATH, 15691 # but as the default location of the library. 15692 hardcode_minus_L=yes 15693 ;; 15694 esac 15695 fi 15696 ;; 15697 15698 irix5* | irix6* | nonstopux*) 15699 if test "$GCC" = yes; then 15700 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' 15701 # Try to use the -exported_symbol ld option, if it does not 15702 # work, assume that -exports_file does not work either and 15703 # implicitly export all symbols. 15704 # This should be the same for all languages, so no per-tag cache variable. 15705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 15706 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 15707 if ${lt_cv_irix_exported_symbol+:} false; then : 15708 $as_echo_n "(cached) " >&6 15709 else 15710 save_LDFLAGS="$LDFLAGS" 15711 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 15712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15713 /* end confdefs.h. */ 15714 int foo (void) { return 0; } 15715 _ACEOF 15716 if ac_fn_c_try_link "$LINENO"; then : 15717 lt_cv_irix_exported_symbol=yes 15718 else 15719 lt_cv_irix_exported_symbol=no 15720 fi 15721 rm -f core conftest.err conftest.$ac_objext \ 15722 conftest$ac_exeext conftest.$ac_ext 15723 LDFLAGS="$save_LDFLAGS" 15724 fi 15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 15726 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 15727 if test "$lt_cv_irix_exported_symbol" = yes; then 15728 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' 15729 fi 15730 else 15731 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' 15732 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' 15733 fi 15734 archive_cmds_need_lc='no' 15735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15736 hardcode_libdir_separator=: 15737 inherit_rpath=yes 15738 link_all_deplibs=yes 15739 ;; 15740 15741 netbsd*) 15742 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15743 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15744 else 15745 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15746 fi 15747 hardcode_libdir_flag_spec='-R$libdir' 15748 hardcode_direct=yes 15749 hardcode_shlibpath_var=no 15750 ;; 15751 15752 newsos6) 15753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15754 hardcode_direct=yes 15755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15756 hardcode_libdir_separator=: 15757 hardcode_shlibpath_var=no 15758 ;; 15759 15760 *nto* | *qnx*) 15761 ;; 15762 15763 openbsd*) 15764 if test -f /usr/libexec/ld.so; then 15765 hardcode_direct=yes 15766 hardcode_shlibpath_var=no 15767 hardcode_direct_absolute=yes 15768 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15769 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15770 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15771 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15772 export_dynamic_flag_spec='${wl}-E' 15773 else 15774 case $host_os in 15775 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15777 hardcode_libdir_flag_spec='-R$libdir' 15778 ;; 15779 *) 15780 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15781 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15782 ;; 15783 esac 15784 fi 15785 else 15786 ld_shlibs=no 15787 fi 15788 ;; 15789 15790 os2*) 15791 hardcode_libdir_flag_spec='-L$libdir' 15792 hardcode_minus_L=yes 15793 allow_undefined_flag=unsupported 15794 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 15795 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15796 ;; 15797 15798 osf3*) 15799 if test "$GCC" = yes; then 15800 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15801 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' 15802 else 15803 allow_undefined_flag=' -expect_unresolved \*' 15804 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' 15805 fi 15806 archive_cmds_need_lc='no' 15807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15808 hardcode_libdir_separator=: 15809 ;; 15810 15811 osf4* | osf5*) # as osf3* with the addition of -msym flag 15812 if test "$GCC" = yes; then 15813 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15814 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' 15815 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15816 else 15817 allow_undefined_flag=' -expect_unresolved \*' 15818 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' 15819 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~ 15820 $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' 15821 15822 # Both c and cxx compiler support -rpath directly 15823 hardcode_libdir_flag_spec='-rpath $libdir' 15824 fi 15825 archive_cmds_need_lc='no' 15826 hardcode_libdir_separator=: 15827 ;; 15828 15829 solaris*) 15830 no_undefined_flag=' -z defs' 15831 if test "$GCC" = yes; then 15832 wlarc='${wl}' 15833 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15834 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15835 $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' 15836 else 15837 case `$CC -V 2>&1` in 15838 *"Compilers 5.0"*) 15839 wlarc='' 15840 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15841 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15842 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 15843 ;; 15844 *) 15845 wlarc='${wl}' 15846 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 15847 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15848 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15849 ;; 15850 esac 15851 fi 15852 hardcode_libdir_flag_spec='-R$libdir' 15853 hardcode_shlibpath_var=no 15854 case $host_os in 15855 solaris2.[0-5] | solaris2.[0-5].*) ;; 15856 *) 15857 # The compiler driver will combine and reorder linker options, 15858 # but understands `-z linker_flag'. GCC discards it without `$wl', 15859 # but is careful enough not to reorder. 15860 # Supported since Solaris 2.6 (maybe 2.5.1?) 15861 if test "$GCC" = yes; then 15862 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15863 else 15864 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 15865 fi 15866 ;; 15867 esac 15868 link_all_deplibs=yes 15869 ;; 15870 15871 sunos4*) 15872 if test "x$host_vendor" = xsequent; then 15873 # Use $CC to link under sequent, because it throws in some extra .o 15874 # files that make .init and .fini sections work. 15875 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15876 else 15877 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15878 fi 15879 hardcode_libdir_flag_spec='-L$libdir' 15880 hardcode_direct=yes 15881 hardcode_minus_L=yes 15882 hardcode_shlibpath_var=no 15883 ;; 15884 15885 sysv4) 15886 case $host_vendor in 15887 sni) 15888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15889 hardcode_direct=yes # is this really true??? 15890 ;; 15891 siemens) 15892 ## LD is ld it makes a PLAMLIB 15893 ## CC just makes a GrossModule. 15894 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15895 reload_cmds='$CC -r -o $output$reload_objs' 15896 hardcode_direct=no 15897 ;; 15898 motorola) 15899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15900 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 15901 ;; 15902 esac 15903 runpath_var='LD_RUN_PATH' 15904 hardcode_shlibpath_var=no 15905 ;; 15906 15907 sysv4.3*) 15908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15909 hardcode_shlibpath_var=no 15910 export_dynamic_flag_spec='-Bexport' 15911 ;; 15912 15913 sysv4*MP*) 15914 if test -d /usr/nec; then 15915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15916 hardcode_shlibpath_var=no 15917 runpath_var=LD_RUN_PATH 15918 hardcode_runpath_var=yes 15919 ld_shlibs=yes 15920 fi 15921 ;; 15922 15923 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15924 no_undefined_flag='${wl}-z,text' 15925 archive_cmds_need_lc=no 15926 hardcode_shlibpath_var=no 15927 runpath_var='LD_RUN_PATH' 15928 15929 if test "$GCC" = yes; then 15930 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15931 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15932 else 15933 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15934 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15935 fi 15936 ;; 15937 15938 sysv5* | sco3.2v5* | sco5v6*) 15939 # Note: We can NOT use -z defs as we might desire, because we do not 15940 # link with -lc, and that would cause any symbols used from libc to 15941 # always be unresolved, which means just about no library would 15942 # ever link correctly. If we're not using GNU ld we use -z text 15943 # though, which does catch some bad symbols but isn't as heavy-handed 15944 # as -z defs. 15945 no_undefined_flag='${wl}-z,text' 15946 allow_undefined_flag='${wl}-z,nodefs' 15947 archive_cmds_need_lc=no 15948 hardcode_shlibpath_var=no 15949 hardcode_libdir_flag_spec='${wl}-R,$libdir' 15950 hardcode_libdir_separator=':' 15951 link_all_deplibs=yes 15952 export_dynamic_flag_spec='${wl}-Bexport' 15953 runpath_var='LD_RUN_PATH' 15954 15955 if test "$GCC" = yes; then 15956 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15957 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15958 else 15959 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15960 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15961 fi 15962 ;; 15963 15964 uts4*) 15965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15966 hardcode_libdir_flag_spec='-L$libdir' 15967 hardcode_shlibpath_var=no 15968 ;; 15969 15970 *) 15971 ld_shlibs=no 15972 ;; 15973 esac 15974 15975 if test x$host_vendor = xsni; then 15976 case $host in 15977 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15978 export_dynamic_flag_spec='${wl}-Blargedynsym' 15979 ;; 15980 esac 15981 fi 15982 fi 15983 15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 15985 $as_echo "$ld_shlibs" >&6; } 15986 test "$ld_shlibs" = no && can_build_shared=no 15987 15988 with_gnu_ld=$with_gnu_ld 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 # 16005 # Do we need to explicitly link libc? 16006 # 16007 case "x$archive_cmds_need_lc" in 16008 x|xyes) 16009 # Assume -lc should be added 16010 archive_cmds_need_lc=yes 16011 16012 if test "$enable_shared" = yes && test "$GCC" = yes; then 16013 case $archive_cmds in 16014 *'~'*) 16015 # FIXME: we may have to deal with multi-command sequences. 16016 ;; 16017 '$CC '*) 16018 # Test whether the compiler implicitly links with -lc since on some 16019 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16020 # to ld, don't add -lc before -lgcc. 16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16022 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16023 if ${lt_cv_archive_cmds_need_lc+:} false; then : 16024 $as_echo_n "(cached) " >&6 16025 else 16026 $RM conftest* 16027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16028 16029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16030 (eval $ac_compile) 2>&5 16031 ac_status=$? 16032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16033 test $ac_status = 0; } 2>conftest.err; then 16034 soname=conftest 16035 lib=conftest 16036 libobjs=conftest.$ac_objext 16037 deplibs= 16038 wl=$lt_prog_compiler_wl 16039 pic_flag=$lt_prog_compiler_pic 16040 compiler_flags=-v 16041 linker_flags=-v 16042 verstring= 16043 output_objdir=. 16044 libname=conftest 16045 lt_save_allow_undefined_flag=$allow_undefined_flag 16046 allow_undefined_flag= 16047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16048 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16049 ac_status=$? 16050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16051 test $ac_status = 0; } 16052 then 16053 lt_cv_archive_cmds_need_lc=no 16054 else 16055 lt_cv_archive_cmds_need_lc=yes 16056 fi 16057 allow_undefined_flag=$lt_save_allow_undefined_flag 16058 else 16059 cat conftest.err 1>&5 16060 fi 16061 $RM conftest* 16062 16063 fi 16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16065 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16066 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16067 ;; 16068 esac 16069 fi 16070 ;; 16071 esac 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16225 $as_echo_n "checking dynamic linker characteristics... " >&6; } 16226 16227 if test "$GCC" = yes; then 16228 case $host_os in 16229 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 16230 *) lt_awk_arg="/^libraries:/" ;; 16231 esac 16232 case $host_os in 16233 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 16234 *) lt_sed_strip_eq="s,=/,/,g" ;; 16235 esac 16236 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16237 case $lt_search_path_spec in 16238 *\;*) 16239 # if the path contains ";" then we assume it to be the separator 16240 # otherwise default to the standard path separator (i.e. ":") - it is 16241 # assumed that no part of a normal pathname contains ";" but that should 16242 # okay in the real world where ";" in dirpaths is itself problematic. 16243 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16244 ;; 16245 *) 16246 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16247 ;; 16248 esac 16249 # Ok, now we have the path, separated by spaces, we can step through it 16250 # and add multilib dir if necessary. 16251 lt_tmp_lt_search_path_spec= 16252 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16253 for lt_sys_path in $lt_search_path_spec; do 16254 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 16255 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 16256 else 16257 test -d "$lt_sys_path" && \ 16258 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16259 fi 16260 done 16261 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16262 BEGIN {RS=" "; FS="/|\n";} { 16263 lt_foo=""; 16264 lt_count=0; 16265 for (lt_i = NF; lt_i > 0; lt_i--) { 16266 if ($lt_i != "" && $lt_i != ".") { 16267 if ($lt_i == "..") { 16268 lt_count++; 16269 } else { 16270 if (lt_count == 0) { 16271 lt_foo="/" $lt_i lt_foo; 16272 } else { 16273 lt_count--; 16274 } 16275 } 16276 } 16277 } 16278 if (lt_foo != "") { lt_freq[lt_foo]++; } 16279 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16280 }'` 16281 # AWK program above erroneously prepends '/' to C:/dos/paths 16282 # for these hosts. 16283 case $host_os in 16284 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16285 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 16286 esac 16287 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16288 else 16289 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16290 fi 16291 library_names_spec= 16292 libname_spec='lib$name' 16293 soname_spec= 16294 shrext_cmds=".so" 16295 postinstall_cmds= 16296 postuninstall_cmds= 16297 finish_cmds= 16298 finish_eval= 16299 shlibpath_var= 16300 shlibpath_overrides_runpath=unknown 16301 version_type=none 16302 dynamic_linker="$host_os ld.so" 16303 sys_lib_dlsearch_path_spec="/lib /usr/lib" 16304 need_lib_prefix=unknown 16305 hardcode_into_libs=no 16306 16307 # when you set need_version to no, make sure it does not cause -set_version 16308 # flags to be left without arguments 16309 need_version=unknown 16310 16311 case $host_os in 16312 aix3*) 16313 version_type=linux # correct to gnu/linux during the next big refactor 16314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16315 shlibpath_var=LIBPATH 16316 16317 # AIX 3 has no versioning support, so we append a major version to the name. 16318 soname_spec='${libname}${release}${shared_ext}$major' 16319 ;; 16320 16321 aix[4-9]*) 16322 version_type=linux # correct to gnu/linux during the next big refactor 16323 need_lib_prefix=no 16324 need_version=no 16325 hardcode_into_libs=yes 16326 if test "$host_cpu" = ia64; then 16327 # AIX 5 supports IA64 16328 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16329 shlibpath_var=LD_LIBRARY_PATH 16330 else 16331 # With GCC up to 2.95.x, collect2 would create an import file 16332 # for dependence libraries. The import file would start with 16333 # the line `#! .'. This would cause the generated library to 16334 # depend on `.', always an invalid library. This was fixed in 16335 # development snapshots of GCC prior to 3.0. 16336 case $host_os in 16337 aix4 | aix4.[01] | aix4.[01].*) 16338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16339 echo ' yes ' 16340 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16341 : 16342 else 16343 can_build_shared=no 16344 fi 16345 ;; 16346 esac 16347 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16348 # soname into executable. Probably we can add versioning support to 16349 # collect2, so additional links can be useful in future. 16350 if test "$aix_use_runtimelinking" = yes; then 16351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16352 # instead of lib<name>.a to let people know that these are not 16353 # typical AIX shared libraries. 16354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16355 else 16356 # We preserve .a as extension for shared libraries through AIX4.2 16357 # and later when we are not doing run time linking. 16358 library_names_spec='${libname}${release}.a $libname.a' 16359 soname_spec='${libname}${release}${shared_ext}$major' 16360 fi 16361 shlibpath_var=LIBPATH 16362 fi 16363 ;; 16364 16365 amigaos*) 16366 case $host_cpu in 16367 powerpc) 16368 # Since July 2007 AmigaOS4 officially supports .so libraries. 16369 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16371 ;; 16372 m68k) 16373 library_names_spec='$libname.ixlibrary $libname.a' 16374 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16375 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 16376 ;; 16377 esac 16378 ;; 16379 16380 beos*) 16381 library_names_spec='${libname}${shared_ext}' 16382 dynamic_linker="$host_os ld.so" 16383 shlibpath_var=LIBRARY_PATH 16384 ;; 16385 16386 bsdi[45]*) 16387 version_type=linux # correct to gnu/linux during the next big refactor 16388 need_version=no 16389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16390 soname_spec='${libname}${release}${shared_ext}$major' 16391 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16392 shlibpath_var=LD_LIBRARY_PATH 16393 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16394 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16395 # the default ld.so.conf also contains /usr/contrib/lib and 16396 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16397 # libtool to hard-code these into programs 16398 ;; 16399 16400 cygwin* | mingw* | pw32* | cegcc*) 16401 version_type=windows 16402 shrext_cmds=".dll" 16403 need_version=no 16404 need_lib_prefix=no 16405 16406 case $GCC,$cc_basename in 16407 yes,*) 16408 # gcc 16409 library_names_spec='$libname.dll.a' 16410 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16411 postinstall_cmds='base_file=`basename \${file}`~ 16412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16413 dldir=$destdir/`dirname \$dlpath`~ 16414 test -d \$dldir || mkdir -p \$dldir~ 16415 $install_prog $dir/$dlname \$dldir/$dlname~ 16416 chmod a+x \$dldir/$dlname~ 16417 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16418 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16419 fi' 16420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16421 dlpath=$dir/\$dldll~ 16422 $RM \$dlpath' 16423 shlibpath_overrides_runpath=yes 16424 16425 case $host_os in 16426 cygwin*) 16427 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16428 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16429 16430 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 16431 ;; 16432 mingw* | cegcc*) 16433 # MinGW DLLs use traditional 'lib' prefix 16434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16435 ;; 16436 pw32*) 16437 # pw32 DLLs use 'pw' prefix rather than 'lib' 16438 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16439 ;; 16440 esac 16441 dynamic_linker='Win32 ld.exe' 16442 ;; 16443 16444 *,cl*) 16445 # Native MSVC 16446 libname_spec='$name' 16447 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16448 library_names_spec='${libname}.dll.lib' 16449 16450 case $build_os in 16451 mingw*) 16452 sys_lib_search_path_spec= 16453 lt_save_ifs=$IFS 16454 IFS=';' 16455 for lt_path in $LIB 16456 do 16457 IFS=$lt_save_ifs 16458 # Let DOS variable expansion print the short 8.3 style file name. 16459 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16460 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16461 done 16462 IFS=$lt_save_ifs 16463 # Convert to MSYS style. 16464 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16465 ;; 16466 cygwin*) 16467 # Convert to unix form, then to dos form, then back to unix form 16468 # but this time dos style (no spaces!) so that the unix form looks 16469 # like /cygdrive/c/PROGRA~1:/cygdr... 16470 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16471 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16472 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16473 ;; 16474 *) 16475 sys_lib_search_path_spec="$LIB" 16476 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16477 # It is most probably a Windows format PATH. 16478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16479 else 16480 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16481 fi 16482 # FIXME: find the short name or the path components, as spaces are 16483 # common. (e.g. "Program Files" -> "PROGRA~1") 16484 ;; 16485 esac 16486 16487 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16488 postinstall_cmds='base_file=`basename \${file}`~ 16489 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16490 dldir=$destdir/`dirname \$dlpath`~ 16491 test -d \$dldir || mkdir -p \$dldir~ 16492 $install_prog $dir/$dlname \$dldir/$dlname' 16493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16494 dlpath=$dir/\$dldll~ 16495 $RM \$dlpath' 16496 shlibpath_overrides_runpath=yes 16497 dynamic_linker='Win32 link.exe' 16498 ;; 16499 16500 *) 16501 # Assume MSVC wrapper 16502 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16503 dynamic_linker='Win32 ld.exe' 16504 ;; 16505 esac 16506 # FIXME: first we should search . and the directory the executable is in 16507 shlibpath_var=PATH 16508 ;; 16509 16510 darwin* | rhapsody*) 16511 dynamic_linker="$host_os dyld" 16512 version_type=darwin 16513 need_lib_prefix=no 16514 need_version=no 16515 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16516 soname_spec='${libname}${release}${major}$shared_ext' 16517 shlibpath_overrides_runpath=yes 16518 shlibpath_var=DYLD_LIBRARY_PATH 16519 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16520 16521 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 16522 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16523 ;; 16524 16525 dgux*) 16526 version_type=linux # correct to gnu/linux during the next big refactor 16527 need_lib_prefix=no 16528 need_version=no 16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16530 soname_spec='${libname}${release}${shared_ext}$major' 16531 shlibpath_var=LD_LIBRARY_PATH 16532 ;; 16533 16534 freebsd* | dragonfly*) 16535 # DragonFly does not have aout. When/if they implement a new 16536 # versioning mechanism, adjust this. 16537 if test -x /usr/bin/objformat; then 16538 objformat=`/usr/bin/objformat` 16539 else 16540 case $host_os in 16541 freebsd[23].*) objformat=aout ;; 16542 *) objformat=elf ;; 16543 esac 16544 fi 16545 version_type=freebsd-$objformat 16546 case $version_type in 16547 freebsd-elf*) 16548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16549 need_version=no 16550 need_lib_prefix=no 16551 ;; 16552 freebsd-*) 16553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16554 need_version=yes 16555 ;; 16556 esac 16557 shlibpath_var=LD_LIBRARY_PATH 16558 case $host_os in 16559 freebsd2.*) 16560 shlibpath_overrides_runpath=yes 16561 ;; 16562 freebsd3.[01]* | freebsdelf3.[01]*) 16563 shlibpath_overrides_runpath=yes 16564 hardcode_into_libs=yes 16565 ;; 16566 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16567 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16568 shlibpath_overrides_runpath=no 16569 hardcode_into_libs=yes 16570 ;; 16571 *) # from 4.6 on, and DragonFly 16572 shlibpath_overrides_runpath=yes 16573 hardcode_into_libs=yes 16574 ;; 16575 esac 16576 ;; 16577 16578 gnu*) 16579 version_type=linux # correct to gnu/linux during the next big refactor 16580 need_lib_prefix=no 16581 need_version=no 16582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16583 soname_spec='${libname}${release}${shared_ext}$major' 16584 shlibpath_var=LD_LIBRARY_PATH 16585 shlibpath_overrides_runpath=no 16586 hardcode_into_libs=yes 16587 ;; 16588 16589 haiku*) 16590 version_type=linux # correct to gnu/linux during the next big refactor 16591 need_lib_prefix=no 16592 need_version=no 16593 dynamic_linker="$host_os runtime_loader" 16594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16595 soname_spec='${libname}${release}${shared_ext}$major' 16596 shlibpath_var=LIBRARY_PATH 16597 shlibpath_overrides_runpath=yes 16598 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16599 hardcode_into_libs=yes 16600 ;; 16601 16602 hpux9* | hpux10* | hpux11*) 16603 # Give a soname corresponding to the major version so that dld.sl refuses to 16604 # link against other versions. 16605 version_type=sunos 16606 need_lib_prefix=no 16607 need_version=no 16608 case $host_cpu in 16609 ia64*) 16610 shrext_cmds='.so' 16611 hardcode_into_libs=yes 16612 dynamic_linker="$host_os dld.so" 16613 shlibpath_var=LD_LIBRARY_PATH 16614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16616 soname_spec='${libname}${release}${shared_ext}$major' 16617 if test "X$HPUX_IA64_MODE" = X32; then 16618 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16619 else 16620 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16621 fi 16622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16623 ;; 16624 hppa*64*) 16625 shrext_cmds='.sl' 16626 hardcode_into_libs=yes 16627 dynamic_linker="$host_os dld.sl" 16628 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16631 soname_spec='${libname}${release}${shared_ext}$major' 16632 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16634 ;; 16635 *) 16636 shrext_cmds='.sl' 16637 dynamic_linker="$host_os dld.sl" 16638 shlibpath_var=SHLIB_PATH 16639 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16641 soname_spec='${libname}${release}${shared_ext}$major' 16642 ;; 16643 esac 16644 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16645 postinstall_cmds='chmod 555 $lib' 16646 # or fails outright, so override atomically: 16647 install_override_mode=555 16648 ;; 16649 16650 interix[3-9]*) 16651 version_type=linux # correct to gnu/linux during the next big refactor 16652 need_lib_prefix=no 16653 need_version=no 16654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16655 soname_spec='${libname}${release}${shared_ext}$major' 16656 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16657 shlibpath_var=LD_LIBRARY_PATH 16658 shlibpath_overrides_runpath=no 16659 hardcode_into_libs=yes 16660 ;; 16661 16662 irix5* | irix6* | nonstopux*) 16663 case $host_os in 16664 nonstopux*) version_type=nonstopux ;; 16665 *) 16666 if test "$lt_cv_prog_gnu_ld" = yes; then 16667 version_type=linux # correct to gnu/linux during the next big refactor 16668 else 16669 version_type=irix 16670 fi ;; 16671 esac 16672 need_lib_prefix=no 16673 need_version=no 16674 soname_spec='${libname}${release}${shared_ext}$major' 16675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16676 case $host_os in 16677 irix5* | nonstopux*) 16678 libsuff= shlibsuff= 16679 ;; 16680 *) 16681 case $LD in # libtool.m4 will add one of these switches to LD 16682 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16683 libsuff= shlibsuff= libmagic=32-bit;; 16684 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16685 libsuff=32 shlibsuff=N32 libmagic=N32;; 16686 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16687 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16688 *) libsuff= shlibsuff= libmagic=never-match;; 16689 esac 16690 ;; 16691 esac 16692 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16693 shlibpath_overrides_runpath=no 16694 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16695 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16696 hardcode_into_libs=yes 16697 ;; 16698 16699 # No shared lib support for Linux oldld, aout, or coff. 16700 linux*oldld* | linux*aout* | linux*coff*) 16701 dynamic_linker=no 16702 ;; 16703 16704 # This must be glibc/ELF. 16705 linux* | k*bsd*-gnu | kopensolaris*-gnu) 16706 version_type=linux # correct to gnu/linux during the next big refactor 16707 need_lib_prefix=no 16708 need_version=no 16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16710 soname_spec='${libname}${release}${shared_ext}$major' 16711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16712 shlibpath_var=LD_LIBRARY_PATH 16713 shlibpath_overrides_runpath=no 16714 16715 # Some binutils ld are patched to set DT_RUNPATH 16716 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16717 $as_echo_n "(cached) " >&6 16718 else 16719 lt_cv_shlibpath_overrides_runpath=no 16720 save_LDFLAGS=$LDFLAGS 16721 save_libdir=$libdir 16722 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 16723 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16725 /* end confdefs.h. */ 16726 16727 int 16728 main () 16729 { 16730 16731 ; 16732 return 0; 16733 } 16734 _ACEOF 16735 if ac_fn_c_try_link "$LINENO"; then : 16736 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16737 lt_cv_shlibpath_overrides_runpath=yes 16738 fi 16739 fi 16740 rm -f core conftest.err conftest.$ac_objext \ 16741 conftest$ac_exeext conftest.$ac_ext 16742 LDFLAGS=$save_LDFLAGS 16743 libdir=$save_libdir 16744 16745 fi 16746 16747 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16748 16749 # This implies no fast_install, which is unacceptable. 16750 # Some rework will be needed to allow for fast_install 16751 # before this can be enabled. 16752 hardcode_into_libs=yes 16753 16754 # Add ABI-specific directories to the system library path. 16755 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 16756 16757 # Append ld.so.conf contents to the search path 16758 if test -f /etc/ld.so.conf; then 16759 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' ' '` 16760 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16761 16762 fi 16763 16764 # We used to test for /lib/ld.so.1 and disable shared libraries on 16765 # powerpc, because MkLinux only supported shared libraries with the 16766 # GNU dynamic linker. Since this was broken with cross compilers, 16767 # most powerpc-linux boxes support dynamic linking these days and 16768 # people can always --disable-shared, the test was removed, and we 16769 # assume the GNU/Linux dynamic linker is in use. 16770 dynamic_linker='GNU/Linux ld.so' 16771 ;; 16772 16773 netbsd*) 16774 version_type=sunos 16775 need_lib_prefix=no 16776 need_version=no 16777 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16780 dynamic_linker='NetBSD (a.out) ld.so' 16781 else 16782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16783 soname_spec='${libname}${release}${shared_ext}$major' 16784 dynamic_linker='NetBSD ld.elf_so' 16785 fi 16786 shlibpath_var=LD_LIBRARY_PATH 16787 shlibpath_overrides_runpath=yes 16788 hardcode_into_libs=yes 16789 ;; 16790 16791 newsos6) 16792 version_type=linux # correct to gnu/linux during the next big refactor 16793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16794 shlibpath_var=LD_LIBRARY_PATH 16795 shlibpath_overrides_runpath=yes 16796 ;; 16797 16798 *nto* | *qnx*) 16799 version_type=qnx 16800 need_lib_prefix=no 16801 need_version=no 16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16803 soname_spec='${libname}${release}${shared_ext}$major' 16804 shlibpath_var=LD_LIBRARY_PATH 16805 shlibpath_overrides_runpath=no 16806 hardcode_into_libs=yes 16807 dynamic_linker='ldqnx.so' 16808 ;; 16809 16810 openbsd*) 16811 version_type=sunos 16812 sys_lib_dlsearch_path_spec="/usr/lib" 16813 need_lib_prefix=no 16814 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16815 case $host_os in 16816 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16817 *) need_version=no ;; 16818 esac 16819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16821 shlibpath_var=LD_LIBRARY_PATH 16822 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16823 case $host_os in 16824 openbsd2.[89] | openbsd2.[89].*) 16825 shlibpath_overrides_runpath=no 16826 ;; 16827 *) 16828 shlibpath_overrides_runpath=yes 16829 ;; 16830 esac 16831 else 16832 shlibpath_overrides_runpath=yes 16833 fi 16834 ;; 16835 16836 os2*) 16837 libname_spec='$name' 16838 shrext_cmds=".dll" 16839 need_lib_prefix=no 16840 library_names_spec='$libname${shared_ext} $libname.a' 16841 dynamic_linker='OS/2 ld.exe' 16842 shlibpath_var=LIBPATH 16843 ;; 16844 16845 osf3* | osf4* | osf5*) 16846 version_type=osf 16847 need_lib_prefix=no 16848 need_version=no 16849 soname_spec='${libname}${release}${shared_ext}$major' 16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16851 shlibpath_var=LD_LIBRARY_PATH 16852 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16853 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16854 ;; 16855 16856 rdos*) 16857 dynamic_linker=no 16858 ;; 16859 16860 solaris*) 16861 version_type=linux # correct to gnu/linux during the next big refactor 16862 need_lib_prefix=no 16863 need_version=no 16864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16865 soname_spec='${libname}${release}${shared_ext}$major' 16866 shlibpath_var=LD_LIBRARY_PATH 16867 shlibpath_overrides_runpath=yes 16868 hardcode_into_libs=yes 16869 # ldd complains unless libraries are executable 16870 postinstall_cmds='chmod +x $lib' 16871 ;; 16872 16873 sunos4*) 16874 version_type=sunos 16875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16876 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16877 shlibpath_var=LD_LIBRARY_PATH 16878 shlibpath_overrides_runpath=yes 16879 if test "$with_gnu_ld" = yes; then 16880 need_lib_prefix=no 16881 fi 16882 need_version=yes 16883 ;; 16884 16885 sysv4 | sysv4.3*) 16886 version_type=linux # correct to gnu/linux during the next big refactor 16887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16888 soname_spec='${libname}${release}${shared_ext}$major' 16889 shlibpath_var=LD_LIBRARY_PATH 16890 case $host_vendor in 16891 sni) 16892 shlibpath_overrides_runpath=no 16893 need_lib_prefix=no 16894 runpath_var=LD_RUN_PATH 16895 ;; 16896 siemens) 16897 need_lib_prefix=no 16898 ;; 16899 motorola) 16900 need_lib_prefix=no 16901 need_version=no 16902 shlibpath_overrides_runpath=no 16903 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16904 ;; 16905 esac 16906 ;; 16907 16908 sysv4*MP*) 16909 if test -d /usr/nec ;then 16910 version_type=linux # correct to gnu/linux during the next big refactor 16911 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16912 soname_spec='$libname${shared_ext}.$major' 16913 shlibpath_var=LD_LIBRARY_PATH 16914 fi 16915 ;; 16916 16917 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16918 version_type=freebsd-elf 16919 need_lib_prefix=no 16920 need_version=no 16921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16922 soname_spec='${libname}${release}${shared_ext}$major' 16923 shlibpath_var=LD_LIBRARY_PATH 16924 shlibpath_overrides_runpath=yes 16925 hardcode_into_libs=yes 16926 if test "$with_gnu_ld" = yes; then 16927 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16928 else 16929 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16930 case $host_os in 16931 sco3.2v5*) 16932 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16933 ;; 16934 esac 16935 fi 16936 sys_lib_dlsearch_path_spec='/usr/lib' 16937 ;; 16938 16939 tpf*) 16940 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16941 version_type=linux # correct to gnu/linux during the next big refactor 16942 need_lib_prefix=no 16943 need_version=no 16944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16945 shlibpath_var=LD_LIBRARY_PATH 16946 shlibpath_overrides_runpath=no 16947 hardcode_into_libs=yes 16948 ;; 16949 16950 uts4*) 16951 version_type=linux # correct to gnu/linux during the next big refactor 16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16953 soname_spec='${libname}${release}${shared_ext}$major' 16954 shlibpath_var=LD_LIBRARY_PATH 16955 ;; 16956 16957 *) 16958 dynamic_linker=no 16959 ;; 16960 esac 16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16962 $as_echo "$dynamic_linker" >&6; } 16963 test "$dynamic_linker" = no && can_build_shared=no 16964 16965 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16966 if test "$GCC" = yes; then 16967 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16968 fi 16969 16970 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16971 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16972 fi 16973 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16974 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16975 fi 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17069 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17070 hardcode_action= 17071 if test -n "$hardcode_libdir_flag_spec" || 17072 test -n "$runpath_var" || 17073 test "X$hardcode_automatic" = "Xyes" ; then 17074 17075 # We can hardcode non-existent directories. 17076 if test "$hardcode_direct" != no && 17077 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17078 # have to relink, otherwise we might link with an installed library 17079 # when we should be linking with a yet-to-be-installed one 17080 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 17081 test "$hardcode_minus_L" != no; then 17082 # Linking always hardcodes the temporary library directory. 17083 hardcode_action=relink 17084 else 17085 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17086 hardcode_action=immediate 17087 fi 17088 else 17089 # We cannot hardcode anything, or else we can only hardcode existing 17090 # directories. 17091 hardcode_action=unsupported 17092 fi 17093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17094 $as_echo "$hardcode_action" >&6; } 17095 17096 if test "$hardcode_action" = relink || 17097 test "$inherit_rpath" = yes; then 17098 # Fast installation is not supported 17099 enable_fast_install=no 17100 elif test "$shlibpath_overrides_runpath" = yes || 17101 test "$enable_shared" = no; then 17102 # Fast installation is not necessary 17103 enable_fast_install=needless 17104 fi 17105 17106 17107 17108 17109 17110 17111 if test "x$enable_dlopen" != xyes; then 17112 enable_dlopen=unknown 17113 enable_dlopen_self=unknown 17114 enable_dlopen_self_static=unknown 17115 else 17116 lt_cv_dlopen=no 17117 lt_cv_dlopen_libs= 17118 17119 case $host_os in 17120 beos*) 17121 lt_cv_dlopen="load_add_on" 17122 lt_cv_dlopen_libs= 17123 lt_cv_dlopen_self=yes 17124 ;; 17125 17126 mingw* | pw32* | cegcc*) 17127 lt_cv_dlopen="LoadLibrary" 17128 lt_cv_dlopen_libs= 17129 ;; 17130 17131 cygwin*) 17132 lt_cv_dlopen="dlopen" 17133 lt_cv_dlopen_libs= 17134 ;; 17135 17136 darwin*) 17137 # if libdl is installed we need to link against it 17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17139 $as_echo_n "checking for dlopen in -ldl... " >&6; } 17140 if ${ac_cv_lib_dl_dlopen+:} false; then : 17141 $as_echo_n "(cached) " >&6 17142 else 17143 ac_check_lib_save_LIBS=$LIBS 17144 LIBS="-ldl $LIBS" 17145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17146 /* end confdefs.h. */ 17147 17148 /* Override any GCC internal prototype to avoid an error. 17149 Use char because int might match the return type of a GCC 17150 builtin and then its argument prototype would still apply. */ 17151 #ifdef __cplusplus 17152 extern "C" 17153 #endif 17154 char dlopen (); 17155 int 17156 main () 17157 { 17158 return dlopen (); 17159 ; 17160 return 0; 17161 } 17162 _ACEOF 17163 if ac_fn_c_try_link "$LINENO"; then : 17164 ac_cv_lib_dl_dlopen=yes 17165 else 17166 ac_cv_lib_dl_dlopen=no 17167 fi 17168 rm -f core conftest.err conftest.$ac_objext \ 17169 conftest$ac_exeext conftest.$ac_ext 17170 LIBS=$ac_check_lib_save_LIBS 17171 fi 17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17173 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17174 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17175 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17176 else 17177 17178 lt_cv_dlopen="dyld" 17179 lt_cv_dlopen_libs= 17180 lt_cv_dlopen_self=yes 17181 17182 fi 17183 17184 ;; 17185 17186 *) 17187 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17188 if test "x$ac_cv_func_shl_load" = xyes; then : 17189 lt_cv_dlopen="shl_load" 17190 else 17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17192 $as_echo_n "checking for shl_load in -ldld... " >&6; } 17193 if ${ac_cv_lib_dld_shl_load+:} false; then : 17194 $as_echo_n "(cached) " >&6 17195 else 17196 ac_check_lib_save_LIBS=$LIBS 17197 LIBS="-ldld $LIBS" 17198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17199 /* end confdefs.h. */ 17200 17201 /* Override any GCC internal prototype to avoid an error. 17202 Use char because int might match the return type of a GCC 17203 builtin and then its argument prototype would still apply. */ 17204 #ifdef __cplusplus 17205 extern "C" 17206 #endif 17207 char shl_load (); 17208 int 17209 main () 17210 { 17211 return shl_load (); 17212 ; 17213 return 0; 17214 } 17215 _ACEOF 17216 if ac_fn_c_try_link "$LINENO"; then : 17217 ac_cv_lib_dld_shl_load=yes 17218 else 17219 ac_cv_lib_dld_shl_load=no 17220 fi 17221 rm -f core conftest.err conftest.$ac_objext \ 17222 conftest$ac_exeext conftest.$ac_ext 17223 LIBS=$ac_check_lib_save_LIBS 17224 fi 17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17226 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17227 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17228 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 17229 else 17230 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17231 if test "x$ac_cv_func_dlopen" = xyes; then : 17232 lt_cv_dlopen="dlopen" 17233 else 17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17235 $as_echo_n "checking for dlopen in -ldl... " >&6; } 17236 if ${ac_cv_lib_dl_dlopen+:} false; then : 17237 $as_echo_n "(cached) " >&6 17238 else 17239 ac_check_lib_save_LIBS=$LIBS 17240 LIBS="-ldl $LIBS" 17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17242 /* end confdefs.h. */ 17243 17244 /* Override any GCC internal prototype to avoid an error. 17245 Use char because int might match the return type of a GCC 17246 builtin and then its argument prototype would still apply. */ 17247 #ifdef __cplusplus 17248 extern "C" 17249 #endif 17250 char dlopen (); 17251 int 17252 main () 17253 { 17254 return dlopen (); 17255 ; 17256 return 0; 17257 } 17258 _ACEOF 17259 if ac_fn_c_try_link "$LINENO"; then : 17260 ac_cv_lib_dl_dlopen=yes 17261 else 17262 ac_cv_lib_dl_dlopen=no 17263 fi 17264 rm -f core conftest.err conftest.$ac_objext \ 17265 conftest$ac_exeext conftest.$ac_ext 17266 LIBS=$ac_check_lib_save_LIBS 17267 fi 17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17269 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17270 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17271 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17272 else 17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17274 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 17275 if ${ac_cv_lib_svld_dlopen+:} false; then : 17276 $as_echo_n "(cached) " >&6 17277 else 17278 ac_check_lib_save_LIBS=$LIBS 17279 LIBS="-lsvld $LIBS" 17280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17281 /* end confdefs.h. */ 17282 17283 /* Override any GCC internal prototype to avoid an error. 17284 Use char because int might match the return type of a GCC 17285 builtin and then its argument prototype would still apply. */ 17286 #ifdef __cplusplus 17287 extern "C" 17288 #endif 17289 char dlopen (); 17290 int 17291 main () 17292 { 17293 return dlopen (); 17294 ; 17295 return 0; 17296 } 17297 _ACEOF 17298 if ac_fn_c_try_link "$LINENO"; then : 17299 ac_cv_lib_svld_dlopen=yes 17300 else 17301 ac_cv_lib_svld_dlopen=no 17302 fi 17303 rm -f core conftest.err conftest.$ac_objext \ 17304 conftest$ac_exeext conftest.$ac_ext 17305 LIBS=$ac_check_lib_save_LIBS 17306 fi 17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17308 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 17309 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 17310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17311 else 17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 17313 $as_echo_n "checking for dld_link in -ldld... " >&6; } 17314 if ${ac_cv_lib_dld_dld_link+:} false; then : 17315 $as_echo_n "(cached) " >&6 17316 else 17317 ac_check_lib_save_LIBS=$LIBS 17318 LIBS="-ldld $LIBS" 17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17320 /* end confdefs.h. */ 17321 17322 /* Override any GCC internal prototype to avoid an error. 17323 Use char because int might match the return type of a GCC 17324 builtin and then its argument prototype would still apply. */ 17325 #ifdef __cplusplus 17326 extern "C" 17327 #endif 17328 char dld_link (); 17329 int 17330 main () 17331 { 17332 return dld_link (); 17333 ; 17334 return 0; 17335 } 17336 _ACEOF 17337 if ac_fn_c_try_link "$LINENO"; then : 17338 ac_cv_lib_dld_dld_link=yes 17339 else 17340 ac_cv_lib_dld_dld_link=no 17341 fi 17342 rm -f core conftest.err conftest.$ac_objext \ 17343 conftest$ac_exeext conftest.$ac_ext 17344 LIBS=$ac_check_lib_save_LIBS 17345 fi 17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 17347 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 17348 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 17349 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 17350 fi 17351 17352 17353 fi 17354 17355 17356 fi 17357 17358 17359 fi 17360 17361 17362 fi 17363 17364 17365 fi 17366 17367 ;; 17368 esac 17369 17370 if test "x$lt_cv_dlopen" != xno; then 17371 enable_dlopen=yes 17372 else 17373 enable_dlopen=no 17374 fi 17375 17376 case $lt_cv_dlopen in 17377 dlopen) 17378 save_CPPFLAGS="$CPPFLAGS" 17379 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17380 17381 save_LDFLAGS="$LDFLAGS" 17382 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17383 17384 save_LIBS="$LIBS" 17385 LIBS="$lt_cv_dlopen_libs $LIBS" 17386 17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 17388 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 17389 if ${lt_cv_dlopen_self+:} false; then : 17390 $as_echo_n "(cached) " >&6 17391 else 17392 if test "$cross_compiling" = yes; then : 17393 lt_cv_dlopen_self=cross 17394 else 17395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17396 lt_status=$lt_dlunknown 17397 cat > conftest.$ac_ext <<_LT_EOF 17398 #line $LINENO "configure" 17399 #include "confdefs.h" 17400 17401 #if HAVE_DLFCN_H 17402 #include <dlfcn.h> 17403 #endif 17404 17405 #include <stdio.h> 17406 17407 #ifdef RTLD_GLOBAL 17408 # define LT_DLGLOBAL RTLD_GLOBAL 17409 #else 17410 # ifdef DL_GLOBAL 17411 # define LT_DLGLOBAL DL_GLOBAL 17412 # else 17413 # define LT_DLGLOBAL 0 17414 # endif 17415 #endif 17416 17417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17418 find out it does not work in some platform. */ 17419 #ifndef LT_DLLAZY_OR_NOW 17420 # ifdef RTLD_LAZY 17421 # define LT_DLLAZY_OR_NOW RTLD_LAZY 17422 # else 17423 # ifdef DL_LAZY 17424 # define LT_DLLAZY_OR_NOW DL_LAZY 17425 # else 17426 # ifdef RTLD_NOW 17427 # define LT_DLLAZY_OR_NOW RTLD_NOW 17428 # else 17429 # ifdef DL_NOW 17430 # define LT_DLLAZY_OR_NOW DL_NOW 17431 # else 17432 # define LT_DLLAZY_OR_NOW 0 17433 # endif 17434 # endif 17435 # endif 17436 # endif 17437 #endif 17438 17439 /* When -fvisbility=hidden is used, assume the code has been annotated 17440 correspondingly for the symbols needed. */ 17441 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17442 int fnord () __attribute__((visibility("default"))); 17443 #endif 17444 17445 int fnord () { return 42; } 17446 int main () 17447 { 17448 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17449 int status = $lt_dlunknown; 17450 17451 if (self) 17452 { 17453 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17454 else 17455 { 17456 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17457 else puts (dlerror ()); 17458 } 17459 /* dlclose (self); */ 17460 } 17461 else 17462 puts (dlerror ()); 17463 17464 return status; 17465 } 17466 _LT_EOF 17467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17468 (eval $ac_link) 2>&5 17469 ac_status=$? 17470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17471 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17472 (./conftest; exit; ) >&5 2>/dev/null 17473 lt_status=$? 17474 case x$lt_status in 17475 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17476 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17477 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 17478 esac 17479 else : 17480 # compilation failed 17481 lt_cv_dlopen_self=no 17482 fi 17483 fi 17484 rm -fr conftest* 17485 17486 17487 fi 17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 17489 $as_echo "$lt_cv_dlopen_self" >&6; } 17490 17491 if test "x$lt_cv_dlopen_self" = xyes; then 17492 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 17493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 17494 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 17495 if ${lt_cv_dlopen_self_static+:} false; then : 17496 $as_echo_n "(cached) " >&6 17497 else 17498 if test "$cross_compiling" = yes; then : 17499 lt_cv_dlopen_self_static=cross 17500 else 17501 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17502 lt_status=$lt_dlunknown 17503 cat > conftest.$ac_ext <<_LT_EOF 17504 #line $LINENO "configure" 17505 #include "confdefs.h" 17506 17507 #if HAVE_DLFCN_H 17508 #include <dlfcn.h> 17509 #endif 17510 17511 #include <stdio.h> 17512 17513 #ifdef RTLD_GLOBAL 17514 # define LT_DLGLOBAL RTLD_GLOBAL 17515 #else 17516 # ifdef DL_GLOBAL 17517 # define LT_DLGLOBAL DL_GLOBAL 17518 # else 17519 # define LT_DLGLOBAL 0 17520 # endif 17521 #endif 17522 17523 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17524 find out it does not work in some platform. */ 17525 #ifndef LT_DLLAZY_OR_NOW 17526 # ifdef RTLD_LAZY 17527 # define LT_DLLAZY_OR_NOW RTLD_LAZY 17528 # else 17529 # ifdef DL_LAZY 17530 # define LT_DLLAZY_OR_NOW DL_LAZY 17531 # else 17532 # ifdef RTLD_NOW 17533 # define LT_DLLAZY_OR_NOW RTLD_NOW 17534 # else 17535 # ifdef DL_NOW 17536 # define LT_DLLAZY_OR_NOW DL_NOW 17537 # else 17538 # define LT_DLLAZY_OR_NOW 0 17539 # endif 17540 # endif 17541 # endif 17542 # endif 17543 #endif 17544 17545 /* When -fvisbility=hidden is used, assume the code has been annotated 17546 correspondingly for the symbols needed. */ 17547 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17548 int fnord () __attribute__((visibility("default"))); 17549 #endif 17550 17551 int fnord () { return 42; } 17552 int main () 17553 { 17554 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17555 int status = $lt_dlunknown; 17556 17557 if (self) 17558 { 17559 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17560 else 17561 { 17562 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17563 else puts (dlerror ()); 17564 } 17565 /* dlclose (self); */ 17566 } 17567 else 17568 puts (dlerror ()); 17569 17570 return status; 17571 } 17572 _LT_EOF 17573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17574 (eval $ac_link) 2>&5 17575 ac_status=$? 17576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17577 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17578 (./conftest; exit; ) >&5 2>/dev/null 17579 lt_status=$? 17580 case x$lt_status in 17581 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17582 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17583 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 17584 esac 17585 else : 17586 # compilation failed 17587 lt_cv_dlopen_self_static=no 17588 fi 17589 fi 17590 rm -fr conftest* 17591 17592 17593 fi 17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 17595 $as_echo "$lt_cv_dlopen_self_static" >&6; } 17596 fi 17597 17598 CPPFLAGS="$save_CPPFLAGS" 17599 LDFLAGS="$save_LDFLAGS" 17600 LIBS="$save_LIBS" 17601 ;; 17602 esac 17603 17604 case $lt_cv_dlopen_self in 17605 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17606 *) enable_dlopen_self=unknown ;; 17607 esac 17608 17609 case $lt_cv_dlopen_self_static in 17610 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17611 *) enable_dlopen_self_static=unknown ;; 17612 esac 17613 fi 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 striplib= 17632 old_striplib= 17633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 17634 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 17635 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 17636 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17637 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17639 $as_echo "yes" >&6; } 17640 else 17641 # FIXME - insert some real tests, host_os isn't really good enough 17642 case $host_os in 17643 darwin*) 17644 if test -n "$STRIP" ; then 17645 striplib="$STRIP -x" 17646 old_striplib="$STRIP -S" 17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17648 $as_echo "yes" >&6; } 17649 else 17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17651 $as_echo "no" >&6; } 17652 fi 17653 ;; 17654 *) 17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17656 $as_echo "no" >&6; } 17657 ;; 17658 esac 17659 fi 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 # Report which library types will actually be built 17673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 17674 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 17676 $as_echo "$can_build_shared" >&6; } 17677 17678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 17679 $as_echo_n "checking whether to build shared libraries... " >&6; } 17680 test "$can_build_shared" = "no" && enable_shared=no 17681 17682 # On AIX, shared libraries and static libraries use the same namespace, and 17683 # are all built from PIC. 17684 case $host_os in 17685 aix3*) 17686 test "$enable_shared" = yes && enable_static=no 17687 if test -n "$RANLIB"; then 17688 archive_cmds="$archive_cmds~\$RANLIB \$lib" 17689 postinstall_cmds='$RANLIB $lib' 17690 fi 17691 ;; 17692 17693 aix[4-9]*) 17694 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 17695 test "$enable_shared" = yes && enable_static=no 17696 fi 17697 ;; 17698 esac 17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 17700 $as_echo "$enable_shared" >&6; } 17701 17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 17703 $as_echo_n "checking whether to build static libraries... " >&6; } 17704 # Make sure either enable_shared or enable_static is yes. 17705 test "$enable_shared" = yes || enable_static=yes 17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 17707 $as_echo "$enable_static" >&6; } 17708 17709 17710 17711 17712 fi 17713 ac_ext=c 17714 ac_cpp='$CPP $CPPFLAGS' 17715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17717 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17718 17719 CC="$lt_save_CC" 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 ac_config_commands="$ac_config_commands libtool" 17736 17737 17738 17739 17740 # Only expand once: 17741 17742 17743 17744 17745 17746 # Define a configure option for an alternate module directory 17747 17748 # Check whether --with-xorg-module-dir was given. 17749 if test "${with_xorg_module_dir+set}" = set; then : 17750 withval=$with_xorg_module_dir; moduledir="$withval" 17751 else 17752 moduledir="$libdir/xorg/modules" 17753 fi 17754 17755 17756 # Store the list of server defined optional extensions in REQUIRED_MODULES 17757 17758 17759 SAVE_CFLAGS="$CFLAGS" 17760 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17762 /* end confdefs.h. */ 17763 17764 #include "xorg-server.h" 17765 #if !defined RANDR 17766 #error RANDR not defined 17767 #endif 17768 17769 int 17770 main () 17771 { 17772 17773 ; 17774 return 0; 17775 } 17776 _ACEOF 17777 if ac_fn_c_try_compile "$LINENO"; then : 17778 _EXT_CHECK=yes 17779 else 17780 _EXT_CHECK=no 17781 fi 17782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17783 CFLAGS="$SAVE_CFLAGS" 17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 17785 $as_echo_n "checking if RANDR is defined... " >&6; } 17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17787 $as_echo "$_EXT_CHECK" >&6; } 17788 if test "$_EXT_CHECK" != no; then 17789 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 17790 fi 17791 17792 17793 17794 SAVE_CFLAGS="$CFLAGS" 17795 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17797 /* end confdefs.h. */ 17798 17799 #include "xorg-server.h" 17800 #if !defined RENDER 17801 #error RENDER not defined 17802 #endif 17803 17804 int 17805 main () 17806 { 17807 17808 ; 17809 return 0; 17810 } 17811 _ACEOF 17812 if ac_fn_c_try_compile "$LINENO"; then : 17813 _EXT_CHECK=yes 17814 else 17815 _EXT_CHECK=no 17816 fi 17817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17818 CFLAGS="$SAVE_CFLAGS" 17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 17820 $as_echo_n "checking if RENDER is defined... " >&6; } 17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17822 $as_echo "$_EXT_CHECK" >&6; } 17823 if test "$_EXT_CHECK" != no; then 17824 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 17825 fi 17826 17827 17828 17829 SAVE_CFLAGS="$CFLAGS" 17830 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17832 /* end confdefs.h. */ 17833 17834 #include "xorg-server.h" 17835 #if !defined XV 17836 #error XV not defined 17837 #endif 17838 17839 int 17840 main () 17841 { 17842 17843 ; 17844 return 0; 17845 } 17846 _ACEOF 17847 if ac_fn_c_try_compile "$LINENO"; then : 17848 _EXT_CHECK=yes 17849 else 17850 _EXT_CHECK=no 17851 fi 17852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17853 CFLAGS="$SAVE_CFLAGS" 17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 17855 $as_echo_n "checking if XV is defined... " >&6; } 17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17857 $as_echo "$_EXT_CHECK" >&6; } 17858 if test "$_EXT_CHECK" != no; then 17859 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 17860 fi 17861 17862 17863 17864 SAVE_CFLAGS="$CFLAGS" 17865 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17867 /* end confdefs.h. */ 17868 17869 #include "xorg-server.h" 17870 #if !defined DPMSExtension 17871 #error DPMSExtension not defined 17872 #endif 17873 17874 int 17875 main () 17876 { 17877 17878 ; 17879 return 0; 17880 } 17881 _ACEOF 17882 if ac_fn_c_try_compile "$LINENO"; then : 17883 _EXT_CHECK=yes 17884 else 17885 _EXT_CHECK=no 17886 fi 17887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17888 CFLAGS="$SAVE_CFLAGS" 17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 17890 $as_echo_n "checking if DPMSExtension is defined... " >&6; } 17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17892 $as_echo "$_EXT_CHECK" >&6; } 17893 if test "$_EXT_CHECK" != no; then 17894 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 17895 fi 17896 17897 17898 # Obtain compiler/linker options for the driver dependencies 17899 17900 pkg_failed=no 17901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 17902 $as_echo_n "checking for XORG... " >&6; } 17903 17904 if test -n "$XORG_CFLAGS"; then 17905 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 17906 elif test -n "$PKG_CONFIG"; then 17907 if test -n "$PKG_CONFIG" && \ 17908 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 17909 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 17910 ac_status=$? 17911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17912 test $ac_status = 0; }; then 17913 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 17914 else 17915 pkg_failed=yes 17916 fi 17917 else 17918 pkg_failed=untried 17919 fi 17920 if test -n "$XORG_LIBS"; then 17921 pkg_cv_XORG_LIBS="$XORG_LIBS" 17922 elif test -n "$PKG_CONFIG"; then 17923 if test -n "$PKG_CONFIG" && \ 17924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 17925 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 17926 ac_status=$? 17927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17928 test $ac_status = 0; }; then 17929 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 17930 else 17931 pkg_failed=yes 17932 fi 17933 else 17934 pkg_failed=untried 17935 fi 17936 17937 17938 17939 if test $pkg_failed = yes; then 17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17941 $as_echo "no" >&6; } 17942 17943 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17944 _pkg_short_errors_supported=yes 17945 else 17946 _pkg_short_errors_supported=no 17947 fi 17948 if test $_pkg_short_errors_supported = yes; then 17949 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 17950 else 17951 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 17952 fi 17953 # Put the nasty error message in config.log where it belongs 17954 echo "$XORG_PKG_ERRORS" >&5 17955 17956 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 17957 17958 $XORG_PKG_ERRORS 17959 17960 Consider adjusting the PKG_CONFIG_PATH environment variable if you 17961 installed software in a non-standard prefix. 17962 17963 Alternatively, you may set the environment variables XORG_CFLAGS 17964 and XORG_LIBS to avoid the need to call pkg-config. 17965 See the pkg-config man page for more details." "$LINENO" 5 17966 17967 elif test $pkg_failed = untried; then 17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17969 $as_echo "no" >&6; } 17970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17972 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17973 is in your PATH or set the PKG_CONFIG environment variable to the full 17974 path to pkg-config. 17975 17976 Alternatively, you may set the environment variables XORG_CFLAGS 17977 and XORG_LIBS to avoid the need to call pkg-config. 17978 See the pkg-config man page for more details. 17979 17980 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17981 See \`config.log' for more details" "$LINENO" 5; } 17982 17983 else 17984 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 17985 XORG_LIBS=$pkg_cv_XORG_LIBS 17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17987 $as_echo "yes" >&6; } 17988 17989 fi 17990 17991 # Checks for libraries. 17992 SAVE_CPPFLAGS="$CPPFLAGS" 17993 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 17994 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 17995 " 17996 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 17997 XSERVER_LIBPCIACCESS=yes 17998 else 17999 XSERVER_LIBPCIACCESS=no 18000 fi 18001 18002 ac_fn_c_check_header_mongrel "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default" 18003 if test "x$ac_cv_header_xf1bpp_h" = xyes; then : 18004 18005 $as_echo "#define HAVE_XF1BPP 1" >>confdefs.h 18006 18007 fi 18008 18009 18010 ac_fn_c_check_header_mongrel "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default" 18011 if test "x$ac_cv_header_xf4bpp_h" = xyes; then : 18012 18013 $as_echo "#define HAVE_XF4BPP 1" >>confdefs.h 18014 18015 fi 18016 18017 18018 CPPFLAGS="$SAVE_CPPFLAGS" 18019 18020 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18021 18022 pkg_failed=no 18023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 18024 $as_echo_n "checking for PCIACCESS... " >&6; } 18025 18026 if test -n "$PCIACCESS_CFLAGS"; then 18027 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 18028 elif test -n "$PKG_CONFIG"; then 18029 if test -n "$PKG_CONFIG" && \ 18030 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18031 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18032 ac_status=$? 18033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18034 test $ac_status = 0; }; then 18035 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 18036 else 18037 pkg_failed=yes 18038 fi 18039 else 18040 pkg_failed=untried 18041 fi 18042 if test -n "$PCIACCESS_LIBS"; then 18043 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 18044 elif test -n "$PKG_CONFIG"; then 18045 if test -n "$PKG_CONFIG" && \ 18046 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18047 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18048 ac_status=$? 18049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18050 test $ac_status = 0; }; then 18051 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 18052 else 18053 pkg_failed=yes 18054 fi 18055 else 18056 pkg_failed=untried 18057 fi 18058 18059 18060 18061 if test $pkg_failed = yes; then 18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18063 $as_echo "no" >&6; } 18064 18065 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18066 _pkg_short_errors_supported=yes 18067 else 18068 _pkg_short_errors_supported=no 18069 fi 18070 if test $_pkg_short_errors_supported = yes; then 18071 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 18072 else 18073 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 18074 fi 18075 # Put the nasty error message in config.log where it belongs 18076 echo "$PCIACCESS_PKG_ERRORS" >&5 18077 18078 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 18079 18080 $PCIACCESS_PKG_ERRORS 18081 18082 Consider adjusting the PKG_CONFIG_PATH environment variable if you 18083 installed software in a non-standard prefix. 18084 18085 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18086 and PCIACCESS_LIBS to avoid the need to call pkg-config. 18087 See the pkg-config man page for more details." "$LINENO" 5 18088 18089 elif test $pkg_failed = untried; then 18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18091 $as_echo "no" >&6; } 18092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18094 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18095 is in your PATH or set the PKG_CONFIG environment variable to the full 18096 path to pkg-config. 18097 18098 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18099 and PCIACCESS_LIBS to avoid the need to call pkg-config. 18100 See the pkg-config man page for more details. 18101 18102 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18103 See \`config.log' for more details" "$LINENO" 5; } 18104 18105 else 18106 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 18107 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18109 $as_echo "yes" >&6; } 18110 18111 fi 18112 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 18113 fi 18114 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18115 XSERVER_LIBPCIACCESS_TRUE= 18116 XSERVER_LIBPCIACCESS_FALSE='#' 18117 else 18118 XSERVER_LIBPCIACCESS_TRUE='#' 18119 XSERVER_LIBPCIACCESS_FALSE= 18120 fi 18121 18122 18123 # Check whether --enable-xaa was given. 18124 if test "${enable_xaa+set}" = set; then : 18125 enableval=$enable_xaa; XAA="$enableval" 18126 else 18127 XAA=auto 18128 fi 18129 18130 if test "x$XAA" != xno; then 18131 save_CFLAGS=$CFLAGS 18132 save_CPPFLAGS=$CPPFLAGS 18133 CFLAGS=$XORG_CFLAGS 18134 CPPFLAGS="$XORG_CFLAGS" 18135 for ac_header in xaa.h 18136 do : 18137 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 18138 if test "x$ac_cv_header_xaa_h" = xyes; then : 18139 cat >>confdefs.h <<_ACEOF 18140 #define HAVE_XAA_H 1 18141 _ACEOF 18142 XAA=yes 18143 else 18144 XAA=no 18145 fi 18146 18147 done 18148 18149 CFLAGS=$save_CFLAGS 18150 CPPFLAGS=$save_CPPFLAGS 18151 fi 18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 18153 $as_echo_n "checking whether to include XAA support... " >&6; } 18154 if test "x$XAA" = xyes; then 18155 XAA_TRUE= 18156 XAA_FALSE='#' 18157 else 18158 XAA_TRUE='#' 18159 XAA_FALSE= 18160 fi 18161 18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 18163 $as_echo "$XAA" >&6; } 18164 18165 18166 18167 DRIVER_NAME=tseng 18168 18169 18170 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 18171 18172 cat >confcache <<\_ACEOF 18173 # This file is a shell script that caches the results of configure 18174 # tests run on this system so they can be shared between configure 18175 # scripts and configure runs, see configure's option --config-cache. 18176 # It is not useful on other systems. If it contains results you don't 18177 # want to keep, you may remove or edit it. 18178 # 18179 # config.status only pays attention to the cache file if you give it 18180 # the --recheck option to rerun configure. 18181 # 18182 # `ac_cv_env_foo' variables (set or unset) will be overridden when 18183 # loading this file, other *unset* `ac_cv_foo' will be assigned the 18184 # following values. 18185 18186 _ACEOF 18187 18188 # The following way of writing the cache mishandles newlines in values, 18189 # but we know of no workaround that is simple, portable, and efficient. 18190 # So, we kill variables containing newlines. 18191 # Ultrix sh set writes to stderr and can't be redirected directly, 18192 # and sets the high bit in the cache file unless we assign to the vars. 18193 ( 18194 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18195 eval ac_val=\$$ac_var 18196 case $ac_val in #( 18197 *${as_nl}*) 18198 case $ac_var in #( 18199 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18200 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18201 esac 18202 case $ac_var in #( 18203 _ | IFS | as_nl) ;; #( 18204 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18205 *) { eval $ac_var=; unset $ac_var;} ;; 18206 esac ;; 18207 esac 18208 done 18209 18210 (set) 2>&1 | 18211 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18212 *${as_nl}ac_space=\ *) 18213 # `set' does not quote correctly, so add quotes: double-quote 18214 # substitution turns \\\\ into \\, and sed turns \\ into \. 18215 sed -n \ 18216 "s/'/'\\\\''/g; 18217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18218 ;; #( 18219 *) 18220 # `set' quotes correctly as required by POSIX, so do not add quotes. 18221 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18222 ;; 18223 esac | 18224 sort 18225 ) | 18226 sed ' 18227 /^ac_cv_env_/b end 18228 t clear 18229 :clear 18230 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18231 t end 18232 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18233 :end' >>confcache 18234 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18235 if test -w "$cache_file"; then 18236 if test "x$cache_file" != "x/dev/null"; then 18237 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18238 $as_echo "$as_me: updating cache $cache_file" >&6;} 18239 if test ! -f "$cache_file" || test -h "$cache_file"; then 18240 cat confcache >"$cache_file" 18241 else 18242 case $cache_file in #( 18243 */* | ?:*) 18244 mv -f confcache "$cache_file"$$ && 18245 mv -f "$cache_file"$$ "$cache_file" ;; #( 18246 *) 18247 mv -f confcache "$cache_file" ;; 18248 esac 18249 fi 18250 fi 18251 else 18252 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18253 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18254 fi 18255 fi 18256 rm -f confcache 18257 18258 test "x$prefix" = xNONE && prefix=$ac_default_prefix 18259 # Let make expand exec_prefix. 18260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18261 18262 DEFS=-DHAVE_CONFIG_H 18263 18264 ac_libobjs= 18265 ac_ltlibobjs= 18266 U= 18267 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18268 # 1. Remove the extension, and $U if already installed. 18269 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18270 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18271 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18272 # will be set to the directory where LIBOBJS objects are built. 18273 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18274 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18275 done 18276 LIBOBJS=$ac_libobjs 18277 18278 LTLIBOBJS=$ac_ltlibobjs 18279 18280 18281 if test -n "$EXEEXT"; then 18282 am__EXEEXT_TRUE= 18283 am__EXEEXT_FALSE='#' 18284 else 18285 am__EXEEXT_TRUE='#' 18286 am__EXEEXT_FALSE= 18287 fi 18288 18289 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18290 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18291 Usually this means the macro was only invoked conditionally." "$LINENO" 5 18292 fi 18293 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18294 as_fn_error $? "conditional \"AMDEP\" was never defined. 18295 Usually this means the macro was only invoked conditionally." "$LINENO" 5 18296 fi 18297 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18298 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18299 Usually this means the macro was only invoked conditionally." "$LINENO" 5 18300 fi 18301 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 18302 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 18303 Usually this means the macro was only invoked conditionally." "$LINENO" 5 18304 fi 18305 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 18306 as_fn_error $? "conditional \"XAA\" was never defined. 18307 Usually this means the macro was only invoked conditionally." "$LINENO" 5 18308 fi 18309 18310 : "${CONFIG_STATUS=./config.status}" 18311 ac_write_fail=0 18312 ac_clean_files_save=$ac_clean_files 18313 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18314 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18315 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18316 as_write_fail=0 18317 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18318 #! $SHELL 18319 # Generated by $as_me. 18320 # Run this file to recreate the current configuration. 18321 # Compiler output produced by configure, useful for debugging 18322 # configure, is in config.log if it exists. 18323 18324 debug=false 18325 ac_cs_recheck=false 18326 ac_cs_silent=false 18327 18328 SHELL=\${CONFIG_SHELL-$SHELL} 18329 export SHELL 18330 _ASEOF 18331 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18332 ## -------------------- ## 18333 ## M4sh Initialization. ## 18334 ## -------------------- ## 18335 18336 # Be more Bourne compatible 18337 DUALCASE=1; export DUALCASE # for MKS sh 18338 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18339 emulate sh 18340 NULLCMD=: 18341 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18342 # is contrary to our usage. Disable this feature. 18343 alias -g '${1+"$@"}'='"$@"' 18344 setopt NO_GLOB_SUBST 18345 else 18346 case `(set -o) 2>/dev/null` in #( 18347 *posix*) : 18348 set -o posix ;; #( 18349 *) : 18350 ;; 18351 esac 18352 fi 18353 18354 18355 as_nl=' 18356 ' 18357 export as_nl 18358 # Printing a long string crashes Solaris 7 /usr/bin/printf. 18359 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18360 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18361 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18362 # Prefer a ksh shell builtin over an external printf program on Solaris, 18363 # but without wasting forks for bash or zsh. 18364 if test -z "$BASH_VERSION$ZSH_VERSION" \ 18365 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18366 as_echo='print -r --' 18367 as_echo_n='print -rn --' 18368 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18369 as_echo='printf %s\n' 18370 as_echo_n='printf %s' 18371 else 18372 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18373 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18374 as_echo_n='/usr/ucb/echo -n' 18375 else 18376 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18377 as_echo_n_body='eval 18378 arg=$1; 18379 case $arg in #( 18380 *"$as_nl"*) 18381 expr "X$arg" : "X\\(.*\\)$as_nl"; 18382 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18383 esac; 18384 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18385 ' 18386 export as_echo_n_body 18387 as_echo_n='sh -c $as_echo_n_body as_echo' 18388 fi 18389 export as_echo_body 18390 as_echo='sh -c $as_echo_body as_echo' 18391 fi 18392 18393 # The user is always right. 18394 if test "${PATH_SEPARATOR+set}" != set; then 18395 PATH_SEPARATOR=: 18396 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18397 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18398 PATH_SEPARATOR=';' 18399 } 18400 fi 18401 18402 18403 # IFS 18404 # We need space, tab and new line, in precisely that order. Quoting is 18405 # there to prevent editors from complaining about space-tab. 18406 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 18407 # splitting by setting IFS to empty value.) 18408 IFS=" "" $as_nl" 18409 18410 # Find who we are. Look in the path if we contain no directory separator. 18411 as_myself= 18412 case $0 in #(( 18413 *[\\/]* ) as_myself=$0 ;; 18414 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18415 for as_dir in $PATH 18416 do 18417 IFS=$as_save_IFS 18418 test -z "$as_dir" && as_dir=. 18419 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18420 done 18421 IFS=$as_save_IFS 18422 18423 ;; 18424 esac 18425 # We did not find ourselves, most probably we were run as `sh COMMAND' 18426 # in which case we are not to be found in the path. 18427 if test "x$as_myself" = x; then 18428 as_myself=$0 18429 fi 18430 if test ! -f "$as_myself"; then 18431 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18432 exit 1 18433 fi 18434 18435 # Unset variables that we do not need and which cause bugs (e.g. in 18436 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18437 # suppresses any "Segmentation fault" message there. '((' could 18438 # trigger a bug in pdksh 5.2.14. 18439 for as_var in BASH_ENV ENV MAIL MAILPATH 18440 do eval test x\${$as_var+set} = xset \ 18441 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18442 done 18443 PS1='$ ' 18444 PS2='> ' 18445 PS4='+ ' 18446 18447 # NLS nuisances. 18448 LC_ALL=C 18449 export LC_ALL 18450 LANGUAGE=C 18451 export LANGUAGE 18452 18453 # CDPATH. 18454 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18455 18456 18457 # as_fn_error STATUS ERROR [LINENO LOG_FD] 18458 # ---------------------------------------- 18459 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18460 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18461 # script with STATUS, using 1 if that was 0. 18462 as_fn_error () 18463 { 18464 as_status=$1; test $as_status -eq 0 && as_status=1 18465 if test "$4"; then 18466 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18467 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18468 fi 18469 $as_echo "$as_me: error: $2" >&2 18470 as_fn_exit $as_status 18471 } # as_fn_error 18472 18473 18474 # as_fn_set_status STATUS 18475 # ----------------------- 18476 # Set $? to STATUS, without forking. 18477 as_fn_set_status () 18478 { 18479 return $1 18480 } # as_fn_set_status 18481 18482 # as_fn_exit STATUS 18483 # ----------------- 18484 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18485 as_fn_exit () 18486 { 18487 set +e 18488 as_fn_set_status $1 18489 exit $1 18490 } # as_fn_exit 18491 18492 # as_fn_unset VAR 18493 # --------------- 18494 # Portably unset VAR. 18495 as_fn_unset () 18496 { 18497 { eval $1=; unset $1;} 18498 } 18499 as_unset=as_fn_unset 18500 # as_fn_append VAR VALUE 18501 # ---------------------- 18502 # Append the text in VALUE to the end of the definition contained in VAR. Take 18503 # advantage of any shell optimizations that allow amortized linear growth over 18504 # repeated appends, instead of the typical quadratic growth present in naive 18505 # implementations. 18506 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18507 eval 'as_fn_append () 18508 { 18509 eval $1+=\$2 18510 }' 18511 else 18512 as_fn_append () 18513 { 18514 eval $1=\$$1\$2 18515 } 18516 fi # as_fn_append 18517 18518 # as_fn_arith ARG... 18519 # ------------------ 18520 # Perform arithmetic evaluation on the ARGs, and store the result in the 18521 # global $as_val. Take advantage of shells that can avoid forks. The arguments 18522 # must be portable across $(()) and expr. 18523 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18524 eval 'as_fn_arith () 18525 { 18526 as_val=$(( $* )) 18527 }' 18528 else 18529 as_fn_arith () 18530 { 18531 as_val=`expr "$@" || test $? -eq 1` 18532 } 18533 fi # as_fn_arith 18534 18535 18536 if expr a : '\(a\)' >/dev/null 2>&1 && 18537 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18538 as_expr=expr 18539 else 18540 as_expr=false 18541 fi 18542 18543 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18544 as_basename=basename 18545 else 18546 as_basename=false 18547 fi 18548 18549 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18550 as_dirname=dirname 18551 else 18552 as_dirname=false 18553 fi 18554 18555 as_me=`$as_basename -- "$0" || 18556 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18557 X"$0" : 'X\(//\)$' \| \ 18558 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18559 $as_echo X/"$0" | 18560 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18561 s//\1/ 18562 q 18563 } 18564 /^X\/\(\/\/\)$/{ 18565 s//\1/ 18566 q 18567 } 18568 /^X\/\(\/\).*/{ 18569 s//\1/ 18570 q 18571 } 18572 s/.*/./; q'` 18573 18574 # Avoid depending upon Character Ranges. 18575 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18576 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18577 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18578 as_cr_digits='0123456789' 18579 as_cr_alnum=$as_cr_Letters$as_cr_digits 18580 18581 ECHO_C= ECHO_N= ECHO_T= 18582 case `echo -n x` in #((((( 18583 -n*) 18584 case `echo 'xy\c'` in 18585 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18586 xy) ECHO_C='\c';; 18587 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18588 ECHO_T=' ';; 18589 esac;; 18590 *) 18591 ECHO_N='-n';; 18592 esac 18593 18594 rm -f conf$$ conf$$.exe conf$$.file 18595 if test -d conf$$.dir; then 18596 rm -f conf$$.dir/conf$$.file 18597 else 18598 rm -f conf$$.dir 18599 mkdir conf$$.dir 2>/dev/null 18600 fi 18601 if (echo >conf$$.file) 2>/dev/null; then 18602 if ln -s conf$$.file conf$$ 2>/dev/null; then 18603 as_ln_s='ln -s' 18604 # ... but there are two gotchas: 18605 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18606 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18607 # In both cases, we have to default to `cp -p'. 18608 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18609 as_ln_s='cp -p' 18610 elif ln conf$$.file conf$$ 2>/dev/null; then 18611 as_ln_s=ln 18612 else 18613 as_ln_s='cp -p' 18614 fi 18615 else 18616 as_ln_s='cp -p' 18617 fi 18618 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18619 rmdir conf$$.dir 2>/dev/null 18620 18621 18622 # as_fn_mkdir_p 18623 # ------------- 18624 # Create "$as_dir" as a directory, including parents if necessary. 18625 as_fn_mkdir_p () 18626 { 18627 18628 case $as_dir in #( 18629 -*) as_dir=./$as_dir;; 18630 esac 18631 test -d "$as_dir" || eval $as_mkdir_p || { 18632 as_dirs= 18633 while :; do 18634 case $as_dir in #( 18635 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18636 *) as_qdir=$as_dir;; 18637 esac 18638 as_dirs="'$as_qdir' $as_dirs" 18639 as_dir=`$as_dirname -- "$as_dir" || 18640 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18641 X"$as_dir" : 'X\(//\)[^/]' \| \ 18642 X"$as_dir" : 'X\(//\)$' \| \ 18643 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18644 $as_echo X"$as_dir" | 18645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18646 s//\1/ 18647 q 18648 } 18649 /^X\(\/\/\)[^/].*/{ 18650 s//\1/ 18651 q 18652 } 18653 /^X\(\/\/\)$/{ 18654 s//\1/ 18655 q 18656 } 18657 /^X\(\/\).*/{ 18658 s//\1/ 18659 q 18660 } 18661 s/.*/./; q'` 18662 test -d "$as_dir" && break 18663 done 18664 test -z "$as_dirs" || eval "mkdir $as_dirs" 18665 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18666 18667 18668 } # as_fn_mkdir_p 18669 if mkdir -p . 2>/dev/null; then 18670 as_mkdir_p='mkdir -p "$as_dir"' 18671 else 18672 test -d ./-p && rmdir ./-p 18673 as_mkdir_p=false 18674 fi 18675 18676 if test -x / >/dev/null 2>&1; then 18677 as_test_x='test -x' 18678 else 18679 if ls -dL / >/dev/null 2>&1; then 18680 as_ls_L_option=L 18681 else 18682 as_ls_L_option= 18683 fi 18684 as_test_x=' 18685 eval sh -c '\'' 18686 if test -d "$1"; then 18687 test -d "$1/."; 18688 else 18689 case $1 in #( 18690 -*)set "./$1";; 18691 esac; 18692 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18693 ???[sx]*):;;*)false;;esac;fi 18694 '\'' sh 18695 ' 18696 fi 18697 as_executable_p=$as_test_x 18698 18699 # Sed expression to map a string onto a valid CPP name. 18700 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18701 18702 # Sed expression to map a string onto a valid variable name. 18703 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18704 18705 18706 exec 6>&1 18707 ## ----------------------------------- ## 18708 ## Main body of $CONFIG_STATUS script. ## 18709 ## ----------------------------------- ## 18710 _ASEOF 18711 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18712 18713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18714 # Save the log message, to keep $0 and so on meaningful, and to 18715 # report actual input values of CONFIG_FILES etc. instead of their 18716 # values after options handling. 18717 ac_log=" 18718 This file was extended by xf86-video-tseng $as_me 1.2.5, which was 18719 generated by GNU Autoconf 2.68. Invocation command line was 18720 18721 CONFIG_FILES = $CONFIG_FILES 18722 CONFIG_HEADERS = $CONFIG_HEADERS 18723 CONFIG_LINKS = $CONFIG_LINKS 18724 CONFIG_COMMANDS = $CONFIG_COMMANDS 18725 $ $0 $@ 18726 18727 on `(hostname || uname -n) 2>/dev/null | sed 1q` 18728 " 18729 18730 _ACEOF 18731 18732 case $ac_config_files in *" 18733 "*) set x $ac_config_files; shift; ac_config_files=$*;; 18734 esac 18735 18736 case $ac_config_headers in *" 18737 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18738 esac 18739 18740 18741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18742 # Files that config.status was made for. 18743 config_files="$ac_config_files" 18744 config_headers="$ac_config_headers" 18745 config_commands="$ac_config_commands" 18746 18747 _ACEOF 18748 18749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18750 ac_cs_usage="\ 18751 \`$as_me' instantiates files and other configuration actions 18752 from templates according to the current configuration. Unless the files 18753 and actions are specified as TAGs, all are instantiated by default. 18754 18755 Usage: $0 [OPTION]... [TAG]... 18756 18757 -h, --help print this help, then exit 18758 -V, --version print version number and configuration settings, then exit 18759 --config print configuration, then exit 18760 -q, --quiet, --silent 18761 do not print progress messages 18762 -d, --debug don't remove temporary files 18763 --recheck update $as_me by reconfiguring in the same conditions 18764 --file=FILE[:TEMPLATE] 18765 instantiate the configuration file FILE 18766 --header=FILE[:TEMPLATE] 18767 instantiate the configuration header FILE 18768 18769 Configuration files: 18770 $config_files 18771 18772 Configuration headers: 18773 $config_headers 18774 18775 Configuration commands: 18776 $config_commands 18777 18778 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18779 18780 _ACEOF 18781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18782 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18783 ac_cs_version="\\ 18784 xf86-video-tseng config.status 1.2.5 18785 configured by $0, generated by GNU Autoconf 2.68, 18786 with options \\"\$ac_cs_config\\" 18787 18788 Copyright (C) 2010 Free Software Foundation, Inc. 18789 This config.status script is free software; the Free Software Foundation 18790 gives unlimited permission to copy, distribute and modify it." 18791 18792 ac_pwd='$ac_pwd' 18793 srcdir='$srcdir' 18794 INSTALL='$INSTALL' 18795 MKDIR_P='$MKDIR_P' 18796 AWK='$AWK' 18797 test -n "\$AWK" || AWK=awk 18798 _ACEOF 18799 18800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18801 # The default lists apply if the user does not specify any file. 18802 ac_need_defaults=: 18803 while test $# != 0 18804 do 18805 case $1 in 18806 --*=?*) 18807 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18808 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18809 ac_shift=: 18810 ;; 18811 --*=) 18812 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18813 ac_optarg= 18814 ac_shift=: 18815 ;; 18816 *) 18817 ac_option=$1 18818 ac_optarg=$2 18819 ac_shift=shift 18820 ;; 18821 esac 18822 18823 case $ac_option in 18824 # Handling of the options. 18825 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18826 ac_cs_recheck=: ;; 18827 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18828 $as_echo "$ac_cs_version"; exit ;; 18829 --config | --confi | --conf | --con | --co | --c ) 18830 $as_echo "$ac_cs_config"; exit ;; 18831 --debug | --debu | --deb | --de | --d | -d ) 18832 debug=: ;; 18833 --file | --fil | --fi | --f ) 18834 $ac_shift 18835 case $ac_optarg in 18836 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18837 '') as_fn_error $? "missing file argument" ;; 18838 esac 18839 as_fn_append CONFIG_FILES " '$ac_optarg'" 18840 ac_need_defaults=false;; 18841 --header | --heade | --head | --hea ) 18842 $ac_shift 18843 case $ac_optarg in 18844 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18845 esac 18846 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18847 ac_need_defaults=false;; 18848 --he | --h) 18849 # Conflict between --help and --header 18850 as_fn_error $? "ambiguous option: \`$1' 18851 Try \`$0 --help' for more information.";; 18852 --help | --hel | -h ) 18853 $as_echo "$ac_cs_usage"; exit ;; 18854 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18855 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18856 ac_cs_silent=: ;; 18857 18858 # This is an error. 18859 -*) as_fn_error $? "unrecognized option: \`$1' 18860 Try \`$0 --help' for more information." ;; 18861 18862 *) as_fn_append ac_config_targets " $1" 18863 ac_need_defaults=false ;; 18864 18865 esac 18866 shift 18867 done 18868 18869 ac_configure_extra_args= 18870 18871 if $ac_cs_silent; then 18872 exec 6>/dev/null 18873 ac_configure_extra_args="$ac_configure_extra_args --silent" 18874 fi 18875 18876 _ACEOF 18877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18878 if \$ac_cs_recheck; then 18879 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18880 shift 18881 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18882 CONFIG_SHELL='$SHELL' 18883 export CONFIG_SHELL 18884 exec "\$@" 18885 fi 18886 18887 _ACEOF 18888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18889 exec 5>>config.log 18890 { 18891 echo 18892 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18893 ## Running $as_me. ## 18894 _ASBOX 18895 $as_echo "$ac_log" 18896 } >&5 18897 18898 _ACEOF 18899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18900 # 18901 # INIT-COMMANDS 18902 # 18903 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18904 18905 18906 # The HP-UX ksh and POSIX shell print the target directory to stdout 18907 # if CDPATH is set. 18908 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18909 18910 sed_quote_subst='$sed_quote_subst' 18911 double_quote_subst='$double_quote_subst' 18912 delay_variable_subst='$delay_variable_subst' 18913 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18914 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18915 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18916 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18917 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18918 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18919 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18920 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18921 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18922 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18923 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18924 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18925 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18926 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18927 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18928 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18929 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18930 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18931 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18932 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18933 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18934 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18935 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18936 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18937 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18938 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18939 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18940 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18941 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18942 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18943 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18944 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18945 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18946 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18947 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18948 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18949 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18950 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18951 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18952 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18953 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18954 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18955 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18956 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18957 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18958 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18959 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18960 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18961 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18962 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18963 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18964 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18965 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18966 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18967 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18968 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18969 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"`' 18970 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18971 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18972 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18973 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18974 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18975 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18976 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18977 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18978 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18979 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18980 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18981 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18982 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18983 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18984 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18985 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18986 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18987 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18988 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18989 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18990 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18991 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18992 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18993 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18994 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18995 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18996 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18997 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18998 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18999 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19000 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19001 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19002 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19003 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19004 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19005 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19006 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19007 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19008 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19009 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19010 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19011 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19012 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19013 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19014 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19015 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19016 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19017 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19018 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19019 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19020 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19021 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19022 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19023 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19024 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19025 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19026 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19027 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19028 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19029 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19030 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19031 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19032 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19033 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19034 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19035 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19036 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19037 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19038 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19039 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19040 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19041 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19042 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19043 19044 LTCC='$LTCC' 19045 LTCFLAGS='$LTCFLAGS' 19046 compiler='$compiler_DEFAULT' 19047 19048 # A function that is used when there is no print builtin or printf. 19049 func_fallback_echo () 19050 { 19051 eval 'cat <<_LTECHO_EOF 19052 \$1 19053 _LTECHO_EOF' 19054 } 19055 19056 # Quote evaled strings. 19057 for var in SHELL \ 19058 ECHO \ 19059 PATH_SEPARATOR \ 19060 SED \ 19061 GREP \ 19062 EGREP \ 19063 FGREP \ 19064 LD \ 19065 NM \ 19066 LN_S \ 19067 lt_SP2NL \ 19068 lt_NL2SP \ 19069 reload_flag \ 19070 OBJDUMP \ 19071 deplibs_check_method \ 19072 file_magic_cmd \ 19073 file_magic_glob \ 19074 want_nocaseglob \ 19075 DLLTOOL \ 19076 sharedlib_from_linklib_cmd \ 19077 AR \ 19078 AR_FLAGS \ 19079 archiver_list_spec \ 19080 STRIP \ 19081 RANLIB \ 19082 CC \ 19083 CFLAGS \ 19084 compiler \ 19085 lt_cv_sys_global_symbol_pipe \ 19086 lt_cv_sys_global_symbol_to_cdecl \ 19087 lt_cv_sys_global_symbol_to_c_name_address \ 19088 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19089 nm_file_list_spec \ 19090 lt_prog_compiler_no_builtin_flag \ 19091 lt_prog_compiler_pic \ 19092 lt_prog_compiler_wl \ 19093 lt_prog_compiler_static \ 19094 lt_cv_prog_compiler_c_o \ 19095 need_locks \ 19096 MANIFEST_TOOL \ 19097 DSYMUTIL \ 19098 NMEDIT \ 19099 LIPO \ 19100 OTOOL \ 19101 OTOOL64 \ 19102 shrext_cmds \ 19103 export_dynamic_flag_spec \ 19104 whole_archive_flag_spec \ 19105 compiler_needs_object \ 19106 with_gnu_ld \ 19107 allow_undefined_flag \ 19108 no_undefined_flag \ 19109 hardcode_libdir_flag_spec \ 19110 hardcode_libdir_separator \ 19111 exclude_expsyms \ 19112 include_expsyms \ 19113 file_list_spec \ 19114 variables_saved_for_relink \ 19115 libname_spec \ 19116 library_names_spec \ 19117 soname_spec \ 19118 install_override_mode \ 19119 finish_eval \ 19120 old_striplib \ 19121 striplib; do 19122 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19123 *[\\\\\\\`\\"\\\$]*) 19124 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19125 ;; 19126 *) 19127 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19128 ;; 19129 esac 19130 done 19131 19132 # Double-quote double-evaled strings. 19133 for var in reload_cmds \ 19134 old_postinstall_cmds \ 19135 old_postuninstall_cmds \ 19136 old_archive_cmds \ 19137 extract_expsyms_cmds \ 19138 old_archive_from_new_cmds \ 19139 old_archive_from_expsyms_cmds \ 19140 archive_cmds \ 19141 archive_expsym_cmds \ 19142 module_cmds \ 19143 module_expsym_cmds \ 19144 export_symbols_cmds \ 19145 prelink_cmds \ 19146 postlink_cmds \ 19147 postinstall_cmds \ 19148 postuninstall_cmds \ 19149 finish_cmds \ 19150 sys_lib_search_path_spec \ 19151 sys_lib_dlsearch_path_spec; do 19152 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19153 *[\\\\\\\`\\"\\\$]*) 19154 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19155 ;; 19156 *) 19157 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19158 ;; 19159 esac 19160 done 19161 19162 ac_aux_dir='$ac_aux_dir' 19163 xsi_shell='$xsi_shell' 19164 lt_shell_append='$lt_shell_append' 19165 19166 # See if we are running on zsh, and set the options which allow our 19167 # commands through without removal of \ escapes INIT. 19168 if test -n "\${ZSH_VERSION+set}" ; then 19169 setopt NO_GLOB_SUBST 19170 fi 19171 19172 19173 PACKAGE='$PACKAGE' 19174 VERSION='$VERSION' 19175 TIMESTAMP='$TIMESTAMP' 19176 RM='$RM' 19177 ofile='$ofile' 19178 19179 19180 19181 19182 _ACEOF 19183 19184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19185 19186 # Handling of arguments. 19187 for ac_config_target in $ac_config_targets 19188 do 19189 case $ac_config_target in 19190 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19191 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19192 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19193 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19194 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19195 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19196 19197 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19198 esac 19199 done 19200 19201 19202 # If the user did not use the arguments to specify the items to instantiate, 19203 # then the envvar interface is used. Set only those that are not. 19204 # We use the long form for the default assignment because of an extremely 19205 # bizarre bug on SunOS 4.1.3. 19206 if $ac_need_defaults; then 19207 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19208 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19209 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19210 fi 19211 19212 # Have a temporary directory for convenience. Make it in the build tree 19213 # simply because there is no reason against having it here, and in addition, 19214 # creating and moving files from /tmp can sometimes cause problems. 19215 # Hook for its removal unless debugging. 19216 # Note that there is a small window in which the directory will not be cleaned: 19217 # after its creation but before its name has been assigned to `$tmp'. 19218 $debug || 19219 { 19220 tmp= ac_tmp= 19221 trap 'exit_status=$? 19222 : "${ac_tmp:=$tmp}" 19223 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19224 ' 0 19225 trap 'as_fn_exit 1' 1 2 13 15 19226 } 19227 # Create a (secure) tmp directory for tmp files. 19228 19229 { 19230 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19231 test -d "$tmp" 19232 } || 19233 { 19234 tmp=./conf$$-$RANDOM 19235 (umask 077 && mkdir "$tmp") 19236 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19237 ac_tmp=$tmp 19238 19239 # Set up the scripts for CONFIG_FILES section. 19240 # No need to generate them if there are no CONFIG_FILES. 19241 # This happens for instance with `./config.status config.h'. 19242 if test -n "$CONFIG_FILES"; then 19243 19244 19245 ac_cr=`echo X | tr X '\015'` 19246 # On cygwin, bash can eat \r inside `` if the user requested igncr. 19247 # But we know of no other shell where ac_cr would be empty at this 19248 # point, so we can use a bashism as a fallback. 19249 if test "x$ac_cr" = x; then 19250 eval ac_cr=\$\'\\r\' 19251 fi 19252 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19253 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19254 ac_cs_awk_cr='\\r' 19255 else 19256 ac_cs_awk_cr=$ac_cr 19257 fi 19258 19259 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19260 _ACEOF 19261 19262 19263 { 19264 echo "cat >conf$$subs.awk <<_ACEOF" && 19265 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19266 echo "_ACEOF" 19267 } >conf$$subs.sh || 19268 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19269 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19270 ac_delim='%!_!# ' 19271 for ac_last_try in false false false false false :; do 19272 . ./conf$$subs.sh || 19273 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19274 19275 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19276 if test $ac_delim_n = $ac_delim_num; then 19277 break 19278 elif $ac_last_try; then 19279 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19280 else 19281 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19282 fi 19283 done 19284 rm -f conf$$subs.sh 19285 19286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19287 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19288 _ACEOF 19289 sed -n ' 19290 h 19291 s/^/S["/; s/!.*/"]=/ 19292 p 19293 g 19294 s/^[^!]*!// 19295 :repl 19296 t repl 19297 s/'"$ac_delim"'$// 19298 t delim 19299 :nl 19300 h 19301 s/\(.\{148\}\)..*/\1/ 19302 t more1 19303 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19304 p 19305 n 19306 b repl 19307 :more1 19308 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19309 p 19310 g 19311 s/.\{148\}// 19312 t nl 19313 :delim 19314 h 19315 s/\(.\{148\}\)..*/\1/ 19316 t more2 19317 s/["\\]/\\&/g; s/^/"/; s/$/"/ 19318 p 19319 b 19320 :more2 19321 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19322 p 19323 g 19324 s/.\{148\}// 19325 t delim 19326 ' <conf$$subs.awk | sed ' 19327 /^[^""]/{ 19328 N 19329 s/\n// 19330 } 19331 ' >>$CONFIG_STATUS || ac_write_fail=1 19332 rm -f conf$$subs.awk 19333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19334 _ACAWK 19335 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19336 for (key in S) S_is_set[key] = 1 19337 FS = "" 19338 19339 } 19340 { 19341 line = $ 0 19342 nfields = split(line, field, "@") 19343 substed = 0 19344 len = length(field[1]) 19345 for (i = 2; i < nfields; i++) { 19346 key = field[i] 19347 keylen = length(key) 19348 if (S_is_set[key]) { 19349 value = S[key] 19350 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19351 len += length(value) + length(field[++i]) 19352 substed = 1 19353 } else 19354 len += 1 + keylen 19355 } 19356 19357 print line 19358 } 19359 19360 _ACAWK 19361 _ACEOF 19362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19363 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19364 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19365 else 19366 cat 19367 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19368 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19369 _ACEOF 19370 19371 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19372 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19373 # trailing colons and then remove the whole line if VPATH becomes empty 19374 # (actually we leave an empty line to preserve line numbers). 19375 if test "x$srcdir" = x.; then 19376 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19377 h 19378 s/// 19379 s/^/:/ 19380 s/[ ]*$/:/ 19381 s/:\$(srcdir):/:/g 19382 s/:\${srcdir}:/:/g 19383 s/:@srcdir@:/:/g 19384 s/^:*// 19385 s/:*$// 19386 x 19387 s/\(=[ ]*\).*/\1/ 19388 G 19389 s/\n// 19390 s/^[^=]*=[ ]*$// 19391 }' 19392 fi 19393 19394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19395 fi # test -n "$CONFIG_FILES" 19396 19397 # Set up the scripts for CONFIG_HEADERS section. 19398 # No need to generate them if there are no CONFIG_HEADERS. 19399 # This happens for instance with `./config.status Makefile'. 19400 if test -n "$CONFIG_HEADERS"; then 19401 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19402 BEGIN { 19403 _ACEOF 19404 19405 # Transform confdefs.h into an awk script `defines.awk', embedded as 19406 # here-document in config.status, that substitutes the proper values into 19407 # config.h.in to produce config.h. 19408 19409 # Create a delimiter string that does not exist in confdefs.h, to ease 19410 # handling of long lines. 19411 ac_delim='%!_!# ' 19412 for ac_last_try in false false :; do 19413 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19414 if test -z "$ac_tt"; then 19415 break 19416 elif $ac_last_try; then 19417 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19418 else 19419 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19420 fi 19421 done 19422 19423 # For the awk script, D is an array of macro values keyed by name, 19424 # likewise P contains macro parameters if any. Preserve backslash 19425 # newline sequences. 19426 19427 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19428 sed -n ' 19429 s/.\{148\}/&'"$ac_delim"'/g 19430 t rset 19431 :rset 19432 s/^[ ]*#[ ]*define[ ][ ]*/ / 19433 t def 19434 d 19435 :def 19436 s/\\$// 19437 t bsnl 19438 s/["\\]/\\&/g 19439 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19440 D["\1"]=" \3"/p 19441 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19442 d 19443 :bsnl 19444 s/["\\]/\\&/g 19445 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19446 D["\1"]=" \3\\\\\\n"\\/p 19447 t cont 19448 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19449 t cont 19450 d 19451 :cont 19452 n 19453 s/.\{148\}/&'"$ac_delim"'/g 19454 t clear 19455 :clear 19456 s/\\$// 19457 t bsnlc 19458 s/["\\]/\\&/g; s/^/"/; s/$/"/p 19459 d 19460 :bsnlc 19461 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19462 b cont 19463 ' <confdefs.h | sed ' 19464 s/'"$ac_delim"'/"\\\ 19465 "/g' >>$CONFIG_STATUS || ac_write_fail=1 19466 19467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19468 for (key in D) D_is_set[key] = 1 19469 FS = "" 19470 } 19471 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19472 line = \$ 0 19473 split(line, arg, " ") 19474 if (arg[1] == "#") { 19475 defundef = arg[2] 19476 mac1 = arg[3] 19477 } else { 19478 defundef = substr(arg[1], 2) 19479 mac1 = arg[2] 19480 } 19481 split(mac1, mac2, "(") #) 19482 macro = mac2[1] 19483 prefix = substr(line, 1, index(line, defundef) - 1) 19484 if (D_is_set[macro]) { 19485 # Preserve the white space surrounding the "#". 19486 print prefix "define", macro P[macro] D[macro] 19487 next 19488 } else { 19489 # Replace #undef with comments. This is necessary, for example, 19490 # in the case of _POSIX_SOURCE, which is predefined and required 19491 # on some systems where configure will not decide to define it. 19492 if (defundef == "undef") { 19493 print "/*", prefix defundef, macro, "*/" 19494 next 19495 } 19496 } 19497 } 19498 { print } 19499 _ACAWK 19500 _ACEOF 19501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19502 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19503 fi # test -n "$CONFIG_HEADERS" 19504 19505 19506 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19507 shift 19508 for ac_tag 19509 do 19510 case $ac_tag in 19511 :[FHLC]) ac_mode=$ac_tag; continue;; 19512 esac 19513 case $ac_mode$ac_tag in 19514 :[FHL]*:*);; 19515 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19516 :[FH]-) ac_tag=-:-;; 19517 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19518 esac 19519 ac_save_IFS=$IFS 19520 IFS=: 19521 set x $ac_tag 19522 IFS=$ac_save_IFS 19523 shift 19524 ac_file=$1 19525 shift 19526 19527 case $ac_mode in 19528 :L) ac_source=$1;; 19529 :[FH]) 19530 ac_file_inputs= 19531 for ac_f 19532 do 19533 case $ac_f in 19534 -) ac_f="$ac_tmp/stdin";; 19535 *) # Look for the file first in the build tree, then in the source tree 19536 # (if the path is not absolute). The absolute path cannot be DOS-style, 19537 # because $ac_f cannot contain `:'. 19538 test -f "$ac_f" || 19539 case $ac_f in 19540 [\\/$]*) false;; 19541 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19542 esac || 19543 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19544 esac 19545 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19546 as_fn_append ac_file_inputs " '$ac_f'" 19547 done 19548 19549 # Let's still pretend it is `configure' which instantiates (i.e., don't 19550 # use $as_me), people would be surprised to read: 19551 # /* config.h. Generated by config.status. */ 19552 configure_input='Generated from '` 19553 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19554 `' by configure.' 19555 if test x"$ac_file" != x-; then 19556 configure_input="$ac_file. $configure_input" 19557 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19558 $as_echo "$as_me: creating $ac_file" >&6;} 19559 fi 19560 # Neutralize special characters interpreted by sed in replacement strings. 19561 case $configure_input in #( 19562 *\&* | *\|* | *\\* ) 19563 ac_sed_conf_input=`$as_echo "$configure_input" | 19564 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19565 *) ac_sed_conf_input=$configure_input;; 19566 esac 19567 19568 case $ac_tag in 19569 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19570 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19571 esac 19572 ;; 19573 esac 19574 19575 ac_dir=`$as_dirname -- "$ac_file" || 19576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19577 X"$ac_file" : 'X\(//\)[^/]' \| \ 19578 X"$ac_file" : 'X\(//\)$' \| \ 19579 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19580 $as_echo X"$ac_file" | 19581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19582 s//\1/ 19583 q 19584 } 19585 /^X\(\/\/\)[^/].*/{ 19586 s//\1/ 19587 q 19588 } 19589 /^X\(\/\/\)$/{ 19590 s//\1/ 19591 q 19592 } 19593 /^X\(\/\).*/{ 19594 s//\1/ 19595 q 19596 } 19597 s/.*/./; q'` 19598 as_dir="$ac_dir"; as_fn_mkdir_p 19599 ac_builddir=. 19600 19601 case "$ac_dir" in 19602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19603 *) 19604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19605 # A ".." for each directory in $ac_dir_suffix. 19606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19607 case $ac_top_builddir_sub in 19608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19610 esac ;; 19611 esac 19612 ac_abs_top_builddir=$ac_pwd 19613 ac_abs_builddir=$ac_pwd$ac_dir_suffix 19614 # for backward compatibility: 19615 ac_top_builddir=$ac_top_build_prefix 19616 19617 case $srcdir in 19618 .) # We are building in place. 19619 ac_srcdir=. 19620 ac_top_srcdir=$ac_top_builddir_sub 19621 ac_abs_top_srcdir=$ac_pwd ;; 19622 [\\/]* | ?:[\\/]* ) # Absolute name. 19623 ac_srcdir=$srcdir$ac_dir_suffix; 19624 ac_top_srcdir=$srcdir 19625 ac_abs_top_srcdir=$srcdir ;; 19626 *) # Relative name. 19627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19628 ac_top_srcdir=$ac_top_build_prefix$srcdir 19629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19630 esac 19631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19632 19633 19634 case $ac_mode in 19635 :F) 19636 # 19637 # CONFIG_FILE 19638 # 19639 19640 case $INSTALL in 19641 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19642 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19643 esac 19644 ac_MKDIR_P=$MKDIR_P 19645 case $MKDIR_P in 19646 [\\/$]* | ?:[\\/]* ) ;; 19647 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19648 esac 19649 _ACEOF 19650 19651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19652 # If the template does not know about datarootdir, expand it. 19653 # FIXME: This hack should be removed a few years after 2.60. 19654 ac_datarootdir_hack=; ac_datarootdir_seen= 19655 ac_sed_dataroot=' 19656 /datarootdir/ { 19657 p 19658 q 19659 } 19660 /@datadir@/p 19661 /@docdir@/p 19662 /@infodir@/p 19663 /@localedir@/p 19664 /@mandir@/p' 19665 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19666 *datarootdir*) ac_datarootdir_seen=yes;; 19667 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19669 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19670 _ACEOF 19671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19672 ac_datarootdir_hack=' 19673 s&@datadir@&$datadir&g 19674 s&@docdir@&$docdir&g 19675 s&@infodir@&$infodir&g 19676 s&@localedir@&$localedir&g 19677 s&@mandir@&$mandir&g 19678 s&\\\${datarootdir}&$datarootdir&g' ;; 19679 esac 19680 _ACEOF 19681 19682 # Neutralize VPATH when `$srcdir' = `.'. 19683 # Shell code in configure.ac might set extrasub. 19684 # FIXME: do we really want to maintain this feature? 19685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19686 ac_sed_extra="$ac_vpsub 19687 $extrasub 19688 _ACEOF 19689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19690 :t 19691 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19692 s|@configure_input@|$ac_sed_conf_input|;t t 19693 s&@top_builddir@&$ac_top_builddir_sub&;t t 19694 s&@top_build_prefix@&$ac_top_build_prefix&;t t 19695 s&@srcdir@&$ac_srcdir&;t t 19696 s&@abs_srcdir@&$ac_abs_srcdir&;t t 19697 s&@top_srcdir@&$ac_top_srcdir&;t t 19698 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19699 s&@builddir@&$ac_builddir&;t t 19700 s&@abs_builddir@&$ac_abs_builddir&;t t 19701 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19702 s&@INSTALL@&$ac_INSTALL&;t t 19703 s&@MKDIR_P@&$ac_MKDIR_P&;t t 19704 $ac_datarootdir_hack 19705 " 19706 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19707 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19708 19709 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19710 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19711 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19712 "$ac_tmp/out"`; test -z "$ac_out"; } && 19713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19714 which seems to be undefined. Please make sure it is defined" >&5 19715 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19716 which seems to be undefined. Please make sure it is defined" >&2;} 19717 19718 rm -f "$ac_tmp/stdin" 19719 case $ac_file in 19720 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19721 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19722 esac \ 19723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19724 ;; 19725 :H) 19726 # 19727 # CONFIG_HEADER 19728 # 19729 if test x"$ac_file" != x-; then 19730 { 19731 $as_echo "/* $configure_input */" \ 19732 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19733 } >"$ac_tmp/config.h" \ 19734 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19735 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19736 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19737 $as_echo "$as_me: $ac_file is unchanged" >&6;} 19738 else 19739 rm -f "$ac_file" 19740 mv "$ac_tmp/config.h" "$ac_file" \ 19741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19742 fi 19743 else 19744 $as_echo "/* $configure_input */" \ 19745 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19746 || as_fn_error $? "could not create -" "$LINENO" 5 19747 fi 19748 # Compute "$ac_file"'s index in $config_headers. 19749 _am_arg="$ac_file" 19750 _am_stamp_count=1 19751 for _am_header in $config_headers :; do 19752 case $_am_header in 19753 $_am_arg | $_am_arg:* ) 19754 break ;; 19755 * ) 19756 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19757 esac 19758 done 19759 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19760 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19761 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19762 X"$_am_arg" : 'X\(//\)$' \| \ 19763 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19764 $as_echo X"$_am_arg" | 19765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19766 s//\1/ 19767 q 19768 } 19769 /^X\(\/\/\)[^/].*/{ 19770 s//\1/ 19771 q 19772 } 19773 /^X\(\/\/\)$/{ 19774 s//\1/ 19775 q 19776 } 19777 /^X\(\/\).*/{ 19778 s//\1/ 19779 q 19780 } 19781 s/.*/./; q'`/stamp-h$_am_stamp_count 19782 ;; 19783 19784 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19785 $as_echo "$as_me: executing $ac_file commands" >&6;} 19786 ;; 19787 esac 19788 19789 19790 case $ac_file$ac_mode in 19791 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19792 # Autoconf 2.62 quotes --file arguments for eval, but not when files 19793 # are listed without --file. Let's play safe and only enable the eval 19794 # if we detect the quoting. 19795 case $CONFIG_FILES in 19796 *\'*) eval set x "$CONFIG_FILES" ;; 19797 *) set x $CONFIG_FILES ;; 19798 esac 19799 shift 19800 for mf 19801 do 19802 # Strip MF so we end up with the name of the file. 19803 mf=`echo "$mf" | sed -e 's/:.*$//'` 19804 # Check whether this is an Automake generated Makefile or not. 19805 # We used to match only the files named `Makefile.in', but 19806 # some people rename them; so instead we look at the file content. 19807 # Grep'ing the first line is not enough: some people post-process 19808 # each Makefile.in and add a new line on top of each file to say so. 19809 # Grep'ing the whole file is not good either: AIX grep has a line 19810 # limit of 2048, but all sed's we know have understand at least 4000. 19811 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19812 dirpart=`$as_dirname -- "$mf" || 19813 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19814 X"$mf" : 'X\(//\)[^/]' \| \ 19815 X"$mf" : 'X\(//\)$' \| \ 19816 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19817 $as_echo X"$mf" | 19818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19819 s//\1/ 19820 q 19821 } 19822 /^X\(\/\/\)[^/].*/{ 19823 s//\1/ 19824 q 19825 } 19826 /^X\(\/\/\)$/{ 19827 s//\1/ 19828 q 19829 } 19830 /^X\(\/\).*/{ 19831 s//\1/ 19832 q 19833 } 19834 s/.*/./; q'` 19835 else 19836 continue 19837 fi 19838 # Extract the definition of DEPDIR, am__include, and am__quote 19839 # from the Makefile without running `make'. 19840 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19841 test -z "$DEPDIR" && continue 19842 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19843 test -z "am__include" && continue 19844 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19845 # When using ansi2knr, U may be empty or an underscore; expand it 19846 U=`sed -n 's/^U = //p' < "$mf"` 19847 # Find all dependency output files, they are included files with 19848 # $(DEPDIR) in their names. We invoke sed twice because it is the 19849 # simplest approach to changing $(DEPDIR) to its actual value in the 19850 # expansion. 19851 for file in `sed -n " 19852 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19853 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 19854 # Make sure the directory exists. 19855 test -f "$dirpart/$file" && continue 19856 fdir=`$as_dirname -- "$file" || 19857 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19858 X"$file" : 'X\(//\)[^/]' \| \ 19859 X"$file" : 'X\(//\)$' \| \ 19860 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19861 $as_echo X"$file" | 19862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19863 s//\1/ 19864 q 19865 } 19866 /^X\(\/\/\)[^/].*/{ 19867 s//\1/ 19868 q 19869 } 19870 /^X\(\/\/\)$/{ 19871 s//\1/ 19872 q 19873 } 19874 /^X\(\/\).*/{ 19875 s//\1/ 19876 q 19877 } 19878 s/.*/./; q'` 19879 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19880 # echo "creating $dirpart/$file" 19881 echo '# dummy' > "$dirpart/$file" 19882 done 19883 done 19884 } 19885 ;; 19886 "libtool":C) 19887 19888 # See if we are running on zsh, and set the options which allow our 19889 # commands through without removal of \ escapes. 19890 if test -n "${ZSH_VERSION+set}" ; then 19891 setopt NO_GLOB_SUBST 19892 fi 19893 19894 cfgfile="${ofile}T" 19895 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19896 $RM "$cfgfile" 19897 19898 cat <<_LT_EOF >> "$cfgfile" 19899 #! $SHELL 19900 19901 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19902 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19903 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19904 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 19905 # 19906 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19907 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19908 # Foundation, Inc. 19909 # Written by Gordon Matzigkeit, 1996 19910 # 19911 # This file is part of GNU Libtool. 19912 # 19913 # GNU Libtool is free software; you can redistribute it and/or 19914 # modify it under the terms of the GNU General Public License as 19915 # published by the Free Software Foundation; either version 2 of 19916 # the License, or (at your option) any later version. 19917 # 19918 # As a special exception to the GNU General Public License, 19919 # if you distribute this file as part of a program or library that 19920 # is built using GNU Libtool, you may include this file under the 19921 # same distribution terms that you use for the rest of that program. 19922 # 19923 # GNU Libtool is distributed in the hope that it will be useful, 19924 # but WITHOUT ANY WARRANTY; without even the implied warranty of 19925 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19926 # GNU General Public License for more details. 19927 # 19928 # You should have received a copy of the GNU General Public License 19929 # along with GNU Libtool; see the file COPYING. If not, a copy 19930 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19931 # obtained by writing to the Free Software Foundation, Inc., 19932 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19933 19934 19935 # The names of the tagged configurations supported by this script. 19936 available_tags="" 19937 19938 # ### BEGIN LIBTOOL CONFIG 19939 19940 # Whether or not to build static libraries. 19941 build_old_libs=$enable_static 19942 19943 # Which release of libtool.m4 was used? 19944 macro_version=$macro_version 19945 macro_revision=$macro_revision 19946 19947 # Whether or not to build shared libraries. 19948 build_libtool_libs=$enable_shared 19949 19950 # What type of objects to build. 19951 pic_mode=$pic_mode 19952 19953 # Whether or not to optimize for fast installation. 19954 fast_install=$enable_fast_install 19955 19956 # Shell to use when invoking shell scripts. 19957 SHELL=$lt_SHELL 19958 19959 # An echo program that protects backslashes. 19960 ECHO=$lt_ECHO 19961 19962 # The PATH separator for the build system. 19963 PATH_SEPARATOR=$lt_PATH_SEPARATOR 19964 19965 # The host system. 19966 host_alias=$host_alias 19967 host=$host 19968 host_os=$host_os 19969 19970 # The build system. 19971 build_alias=$build_alias 19972 build=$build 19973 build_os=$build_os 19974 19975 # A sed program that does not truncate output. 19976 SED=$lt_SED 19977 19978 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 19979 Xsed="\$SED -e 1s/^X//" 19980 19981 # A grep program that handles long lines. 19982 GREP=$lt_GREP 19983 19984 # An ERE matcher. 19985 EGREP=$lt_EGREP 19986 19987 # A literal string matcher. 19988 FGREP=$lt_FGREP 19989 19990 # A BSD- or MS-compatible name lister. 19991 NM=$lt_NM 19992 19993 # Whether we need soft or hard links. 19994 LN_S=$lt_LN_S 19995 19996 # What is the maximum length of a command? 19997 max_cmd_len=$max_cmd_len 19998 19999 # Object file suffix (normally "o"). 20000 objext=$ac_objext 20001 20002 # Executable file suffix (normally ""). 20003 exeext=$exeext 20004 20005 # whether the shell understands "unset". 20006 lt_unset=$lt_unset 20007 20008 # turn spaces into newlines. 20009 SP2NL=$lt_lt_SP2NL 20010 20011 # turn newlines into spaces. 20012 NL2SP=$lt_lt_NL2SP 20013 20014 # convert \$build file names to \$host format. 20015 to_host_file_cmd=$lt_cv_to_host_file_cmd 20016 20017 # convert \$build files to toolchain format. 20018 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20019 20020 # An object symbol dumper. 20021 OBJDUMP=$lt_OBJDUMP 20022 20023 # Method to check whether dependent libraries are shared objects. 20024 deplibs_check_method=$lt_deplibs_check_method 20025 20026 # Command to use when deplibs_check_method = "file_magic". 20027 file_magic_cmd=$lt_file_magic_cmd 20028 20029 # How to find potential files when deplibs_check_method = "file_magic". 20030 file_magic_glob=$lt_file_magic_glob 20031 20032 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20033 want_nocaseglob=$lt_want_nocaseglob 20034 20035 # DLL creation program. 20036 DLLTOOL=$lt_DLLTOOL 20037 20038 # Command to associate shared and link libraries. 20039 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20040 20041 # The archiver. 20042 AR=$lt_AR 20043 20044 # Flags to create an archive. 20045 AR_FLAGS=$lt_AR_FLAGS 20046 20047 # How to feed a file listing to the archiver. 20048 archiver_list_spec=$lt_archiver_list_spec 20049 20050 # A symbol stripping program. 20051 STRIP=$lt_STRIP 20052 20053 # Commands used to install an old-style archive. 20054 RANLIB=$lt_RANLIB 20055 old_postinstall_cmds=$lt_old_postinstall_cmds 20056 old_postuninstall_cmds=$lt_old_postuninstall_cmds 20057 20058 # Whether to use a lock for old archive extraction. 20059 lock_old_archive_extraction=$lock_old_archive_extraction 20060 20061 # A C compiler. 20062 LTCC=$lt_CC 20063 20064 # LTCC compiler flags. 20065 LTCFLAGS=$lt_CFLAGS 20066 20067 # Take the output of nm and produce a listing of raw symbols and C names. 20068 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20069 20070 # Transform the output of nm in a proper C declaration. 20071 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20072 20073 # Transform the output of nm in a C name address pair. 20074 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20075 20076 # Transform the output of nm in a C name address pair when lib prefix is needed. 20077 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20078 20079 # Specify filename containing input files for \$NM. 20080 nm_file_list_spec=$lt_nm_file_list_spec 20081 20082 # The root where to search for dependent libraries,and in which our libraries should be installed. 20083 lt_sysroot=$lt_sysroot 20084 20085 # The name of the directory that contains temporary libtool files. 20086 objdir=$objdir 20087 20088 # Used to examine libraries when file_magic_cmd begins with "file". 20089 MAGIC_CMD=$MAGIC_CMD 20090 20091 # Must we lock files when doing compilation? 20092 need_locks=$lt_need_locks 20093 20094 # Manifest tool. 20095 MANIFEST_TOOL=$lt_MANIFEST_TOOL 20096 20097 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20098 DSYMUTIL=$lt_DSYMUTIL 20099 20100 # Tool to change global to local symbols on Mac OS X. 20101 NMEDIT=$lt_NMEDIT 20102 20103 # Tool to manipulate fat objects and archives on Mac OS X. 20104 LIPO=$lt_LIPO 20105 20106 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 20107 OTOOL=$lt_OTOOL 20108 20109 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20110 OTOOL64=$lt_OTOOL64 20111 20112 # Old archive suffix (normally "a"). 20113 libext=$libext 20114 20115 # Shared library suffix (normally ".so"). 20116 shrext_cmds=$lt_shrext_cmds 20117 20118 # The commands to extract the exported symbol list from a shared archive. 20119 extract_expsyms_cmds=$lt_extract_expsyms_cmds 20120 20121 # Variables whose values should be saved in libtool wrapper scripts and 20122 # restored at link time. 20123 variables_saved_for_relink=$lt_variables_saved_for_relink 20124 20125 # Do we need the "lib" prefix for modules? 20126 need_lib_prefix=$need_lib_prefix 20127 20128 # Do we need a version for libraries? 20129 need_version=$need_version 20130 20131 # Library versioning type. 20132 version_type=$version_type 20133 20134 # Shared library runtime path variable. 20135 runpath_var=$runpath_var 20136 20137 # Shared library path variable. 20138 shlibpath_var=$shlibpath_var 20139 20140 # Is shlibpath searched before the hard-coded library search path? 20141 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20142 20143 # Format of library name prefix. 20144 libname_spec=$lt_libname_spec 20145 20146 # List of archive names. First name is the real one, the rest are links. 20147 # The last name is the one that the linker finds with -lNAME 20148 library_names_spec=$lt_library_names_spec 20149 20150 # The coded name of the library, if different from the real name. 20151 soname_spec=$lt_soname_spec 20152 20153 # Permission mode override for installation of shared libraries. 20154 install_override_mode=$lt_install_override_mode 20155 20156 # Command to use after installation of a shared archive. 20157 postinstall_cmds=$lt_postinstall_cmds 20158 20159 # Command to use after uninstallation of a shared archive. 20160 postuninstall_cmds=$lt_postuninstall_cmds 20161 20162 # Commands used to finish a libtool library installation in a directory. 20163 finish_cmds=$lt_finish_cmds 20164 20165 # As "finish_cmds", except a single script fragment to be evaled but 20166 # not shown. 20167 finish_eval=$lt_finish_eval 20168 20169 # Whether we should hardcode library paths into libraries. 20170 hardcode_into_libs=$hardcode_into_libs 20171 20172 # Compile-time system search path for libraries. 20173 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20174 20175 # Run-time system search path for libraries. 20176 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20177 20178 # Whether dlopen is supported. 20179 dlopen_support=$enable_dlopen 20180 20181 # Whether dlopen of programs is supported. 20182 dlopen_self=$enable_dlopen_self 20183 20184 # Whether dlopen of statically linked programs is supported. 20185 dlopen_self_static=$enable_dlopen_self_static 20186 20187 # Commands to strip libraries. 20188 old_striplib=$lt_old_striplib 20189 striplib=$lt_striplib 20190 20191 20192 # The linker used to build libraries. 20193 LD=$lt_LD 20194 20195 # How to create reloadable object files. 20196 reload_flag=$lt_reload_flag 20197 reload_cmds=$lt_reload_cmds 20198 20199 # Commands used to build an old-style archive. 20200 old_archive_cmds=$lt_old_archive_cmds 20201 20202 # A language specific compiler. 20203 CC=$lt_compiler 20204 20205 # Is the compiler the GNU compiler? 20206 with_gcc=$GCC 20207 20208 # Compiler flag to turn off builtin functions. 20209 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20210 20211 # Additional compiler flags for building library objects. 20212 pic_flag=$lt_lt_prog_compiler_pic 20213 20214 # How to pass a linker flag through the compiler. 20215 wl=$lt_lt_prog_compiler_wl 20216 20217 # Compiler flag to prevent dynamic linking. 20218 link_static_flag=$lt_lt_prog_compiler_static 20219 20220 # Does compiler simultaneously support -c and -o options? 20221 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20222 20223 # Whether or not to add -lc for building shared libraries. 20224 build_libtool_need_lc=$archive_cmds_need_lc 20225 20226 # Whether or not to disallow shared libs when runtime libs are static. 20227 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20228 20229 # Compiler flag to allow reflexive dlopens. 20230 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20231 20232 # Compiler flag to generate shared objects directly from archives. 20233 whole_archive_flag_spec=$lt_whole_archive_flag_spec 20234 20235 # Whether the compiler copes with passing no objects directly. 20236 compiler_needs_object=$lt_compiler_needs_object 20237 20238 # Create an old-style archive from a shared archive. 20239 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20240 20241 # Create a temporary old-style archive to link instead of a shared archive. 20242 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20243 20244 # Commands used to build a shared archive. 20245 archive_cmds=$lt_archive_cmds 20246 archive_expsym_cmds=$lt_archive_expsym_cmds 20247 20248 # Commands used to build a loadable module if different from building 20249 # a shared archive. 20250 module_cmds=$lt_module_cmds 20251 module_expsym_cmds=$lt_module_expsym_cmds 20252 20253 # Whether we are building with GNU ld or not. 20254 with_gnu_ld=$lt_with_gnu_ld 20255 20256 # Flag that allows shared libraries with undefined symbols to be built. 20257 allow_undefined_flag=$lt_allow_undefined_flag 20258 20259 # Flag that enforces no undefined symbols. 20260 no_undefined_flag=$lt_no_undefined_flag 20261 20262 # Flag to hardcode \$libdir into a binary during linking. 20263 # This must work even if \$libdir does not exist 20264 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20265 20266 # Whether we need a single "-rpath" flag with a separated argument. 20267 hardcode_libdir_separator=$lt_hardcode_libdir_separator 20268 20269 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20270 # DIR into the resulting binary. 20271 hardcode_direct=$hardcode_direct 20272 20273 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20274 # DIR into the resulting binary and the resulting library dependency is 20275 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20276 # library is relocated. 20277 hardcode_direct_absolute=$hardcode_direct_absolute 20278 20279 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20280 # into the resulting binary. 20281 hardcode_minus_L=$hardcode_minus_L 20282 20283 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20284 # into the resulting binary. 20285 hardcode_shlibpath_var=$hardcode_shlibpath_var 20286 20287 # Set to "yes" if building a shared library automatically hardcodes DIR 20288 # into the library and all subsequent libraries and executables linked 20289 # against it. 20290 hardcode_automatic=$hardcode_automatic 20291 20292 # Set to yes if linker adds runtime paths of dependent libraries 20293 # to runtime path list. 20294 inherit_rpath=$inherit_rpath 20295 20296 # Whether libtool must link a program against all its dependency libraries. 20297 link_all_deplibs=$link_all_deplibs 20298 20299 # Set to "yes" if exported symbols are required. 20300 always_export_symbols=$always_export_symbols 20301 20302 # The commands to list exported symbols. 20303 export_symbols_cmds=$lt_export_symbols_cmds 20304 20305 # Symbols that should not be listed in the preloaded symbols. 20306 exclude_expsyms=$lt_exclude_expsyms 20307 20308 # Symbols that must always be exported. 20309 include_expsyms=$lt_include_expsyms 20310 20311 # Commands necessary for linking programs (against libraries) with templates. 20312 prelink_cmds=$lt_prelink_cmds 20313 20314 # Commands necessary for finishing linking programs. 20315 postlink_cmds=$lt_postlink_cmds 20316 20317 # Specify filename containing input files. 20318 file_list_spec=$lt_file_list_spec 20319 20320 # How to hardcode a shared library path into an executable. 20321 hardcode_action=$hardcode_action 20322 20323 # ### END LIBTOOL CONFIG 20324 20325 _LT_EOF 20326 20327 case $host_os in 20328 aix3*) 20329 cat <<\_LT_EOF >> "$cfgfile" 20330 # AIX sometimes has problems with the GCC collect2 program. For some 20331 # reason, if we set the COLLECT_NAMES environment variable, the problems 20332 # vanish in a puff of smoke. 20333 if test "X${COLLECT_NAMES+set}" != Xset; then 20334 COLLECT_NAMES= 20335 export COLLECT_NAMES 20336 fi 20337 _LT_EOF 20338 ;; 20339 esac 20340 20341 20342 ltmain="$ac_aux_dir/ltmain.sh" 20343 20344 20345 # We use sed instead of cat because bash on DJGPP gets confused if 20346 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20347 # text mode, it properly converts lines to CR/LF. This bash problem 20348 # is reportedly fixed, but why not run on old versions too? 20349 sed '$q' "$ltmain" >> "$cfgfile" \ 20350 || (rm -f "$cfgfile"; exit 1) 20351 20352 if test x"$xsi_shell" = xyes; then 20353 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20354 func_dirname ()\ 20355 {\ 20356 \ case ${1} in\ 20357 \ */*) func_dirname_result="${1%/*}${2}" ;;\ 20358 \ * ) func_dirname_result="${3}" ;;\ 20359 \ esac\ 20360 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20361 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20362 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20363 test 0 -eq $? || _lt_function_replace_fail=: 20364 20365 20366 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20367 func_basename ()\ 20368 {\ 20369 \ func_basename_result="${1##*/}"\ 20370 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20371 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20372 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20373 test 0 -eq $? || _lt_function_replace_fail=: 20374 20375 20376 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20377 func_dirname_and_basename ()\ 20378 {\ 20379 \ case ${1} in\ 20380 \ */*) func_dirname_result="${1%/*}${2}" ;;\ 20381 \ * ) func_dirname_result="${3}" ;;\ 20382 \ esac\ 20383 \ func_basename_result="${1##*/}"\ 20384 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20385 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20386 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20387 test 0 -eq $? || _lt_function_replace_fail=: 20388 20389 20390 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20391 func_stripname ()\ 20392 {\ 20393 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20394 \ # positional parameters, so assign one to ordinary parameter first.\ 20395 \ func_stripname_result=${3}\ 20396 \ func_stripname_result=${func_stripname_result#"${1}"}\ 20397 \ func_stripname_result=${func_stripname_result%"${2}"}\ 20398 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20399 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20400 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20401 test 0 -eq $? || _lt_function_replace_fail=: 20402 20403 20404 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20405 func_split_long_opt ()\ 20406 {\ 20407 \ func_split_long_opt_name=${1%%=*}\ 20408 \ func_split_long_opt_arg=${1#*=}\ 20409 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20410 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20411 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20412 test 0 -eq $? || _lt_function_replace_fail=: 20413 20414 20415 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20416 func_split_short_opt ()\ 20417 {\ 20418 \ func_split_short_opt_arg=${1#??}\ 20419 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20420 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20421 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20422 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20423 test 0 -eq $? || _lt_function_replace_fail=: 20424 20425 20426 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20427 func_lo2o ()\ 20428 {\ 20429 \ case ${1} in\ 20430 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20431 \ *) func_lo2o_result=${1} ;;\ 20432 \ esac\ 20433 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20434 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20435 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20436 test 0 -eq $? || _lt_function_replace_fail=: 20437 20438 20439 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20440 func_xform ()\ 20441 {\ 20442 func_xform_result=${1%.*}.lo\ 20443 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20444 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20445 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20446 test 0 -eq $? || _lt_function_replace_fail=: 20447 20448 20449 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20450 func_arith ()\ 20451 {\ 20452 func_arith_result=$(( $* ))\ 20453 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20454 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20455 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20456 test 0 -eq $? || _lt_function_replace_fail=: 20457 20458 20459 sed -e '/^func_len ()$/,/^} # func_len /c\ 20460 func_len ()\ 20461 {\ 20462 func_len_result=${#1}\ 20463 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20464 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20465 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20466 test 0 -eq $? || _lt_function_replace_fail=: 20467 20468 fi 20469 20470 if test x"$lt_shell_append" = xyes; then 20471 sed -e '/^func_append ()$/,/^} # func_append /c\ 20472 func_append ()\ 20473 {\ 20474 eval "${1}+=\\${2}"\ 20475 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20476 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20477 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20478 test 0 -eq $? || _lt_function_replace_fail=: 20479 20480 20481 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20482 func_append_quoted ()\ 20483 {\ 20484 \ func_quote_for_eval "${2}"\ 20485 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20486 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20487 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20488 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20489 test 0 -eq $? || _lt_function_replace_fail=: 20490 20491 20492 # Save a `func_append' function call where possible by direct use of '+=' 20493 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20494 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20495 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20496 test 0 -eq $? || _lt_function_replace_fail=: 20497 else 20498 # Save a `func_append' function call even when '+=' is not available 20499 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20500 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20501 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20502 test 0 -eq $? || _lt_function_replace_fail=: 20503 fi 20504 20505 if test x"$_lt_function_replace_fail" = x":"; then 20506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20507 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20508 fi 20509 20510 20511 mv -f "$cfgfile" "$ofile" || 20512 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20513 chmod +x "$ofile" 20514 20515 ;; 20516 20517 esac 20518 done # for ac_tag 20519 20520 20521 as_fn_exit 0 20522 _ACEOF 20523 ac_clean_files=$ac_clean_files_save 20524 20525 test $ac_write_fail = 0 || 20526 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20527 20528 20529 # configure is writing to config.log, and then calls config.status. 20530 # config.status does its own redirection, appending to config.log. 20531 # Unfortunately, on DOS this fails, as config.log is still kept open 20532 # by configure, so config.status won't be able to write to it; its 20533 # output is simply discarded. So we exec the FD to /dev/null, 20534 # effectively closing config.log, so it can be properly (re)opened and 20535 # appended to by config.status. When coming back to configure, we 20536 # need to make the FD available again. 20537 if test "$no_create" != yes; then 20538 ac_cs_success=: 20539 ac_config_status_args= 20540 test "$silent" = yes && 20541 ac_config_status_args="$ac_config_status_args --quiet" 20542 exec 5>/dev/null 20543 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20544 exec 5>>config.log 20545 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20546 # would make configure fail if this is the last instruction. 20547 $ac_cs_success || as_fn_exit 1 20548 fi 20549 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20551 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20552 fi 20553 20554