configure revision 591e32d7
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xf86-video-vmware 13.1.0. 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 20DUALCASE=1; export DUALCASE # for MKS sh 21if 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 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_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. 47if 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 --' 51elif (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' 54else 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' 74fi 75 76# The user is always right. 77if 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 } 83fi 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.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 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 104IFS=$as_save_IFS 105 106 ;; 107esac 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. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 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. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if 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 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test 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 177test \$(( 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 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 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 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 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 220fi; } 221IFS=$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+"$@"} 240fi 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@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 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_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. 289as_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. 299as_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. 349if (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 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # 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. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # 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. 384as_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 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_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. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_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 472ECHO_C= ECHO_N= ECHO_T= 473case `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';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (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 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 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 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_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. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548SHELL=${CONFIG_SHELL-/bin/sh} 549 550 551test -n "$DJDIR" || exec 7<&0 </dev/null 552exec 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. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570 571# Identity of this package. 572PACKAGE_NAME='xf86-video-vmware' 573PACKAGE_TARNAME='xf86-video-vmware' 574PACKAGE_VERSION='13.1.0' 575PACKAGE_STRING='xf86-video-vmware 13.1.0' 576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 577PACKAGE_URL='' 578 579ac_unique_file="Makefile.am" 580# Factoring default headers for most tests. 581ac_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 616ac_subst_vars='am__EXEEXT_FALSE 617am__EXEEXT_TRUE 618LTLIBOBJS 619LIBOBJS 620BUILD_VMWGFX_FALSE 621BUILD_VMWGFX_TRUE 622DRIVER_NAME 623XATRACKER_LIBS 624XATRACKER_CFLAGS 625LIBDRM_LIBS 626LIBDRM_CFLAGS 627moduledir 628XSERVER_LIBPCIACCESS_FALSE 629XSERVER_LIBPCIACCESS_TRUE 630PCIACCESS_LIBS 631PCIACCESS_CFLAGS 632X11_LIBS 633X11_CFLAGS 634XORG_LIBS 635XORG_CFLAGS 636BUILD_VMWARECTRL_FALSE 637BUILD_VMWARECTRL_TRUE 638OTOOL64 639OTOOL 640LIPO 641NMEDIT 642DSYMUTIL 643MANIFEST_TOOL 644RANLIB 645ac_ct_AR 646AR 647DLLTOOL 648OBJDUMP 649LN_S 650NM 651ac_ct_DUMPBIN 652DUMPBIN 653LD 654FGREP 655LIBTOOL 656AM_BACKSLASH 657AM_DEFAULT_VERBOSITY 658AM_DEFAULT_V 659AM_V 660MAN_SUBSTS 661XORG_MAN_PAGE 662ADMIN_MAN_DIR 663DRIVER_MAN_DIR 664MISC_MAN_DIR 665FILE_MAN_DIR 666LIB_MAN_DIR 667APP_MAN_DIR 668ADMIN_MAN_SUFFIX 669DRIVER_MAN_SUFFIX 670MISC_MAN_SUFFIX 671FILE_MAN_SUFFIX 672LIB_MAN_SUFFIX 673APP_MAN_SUFFIX 674SED 675host_os 676host_vendor 677host_cpu 678host 679build_os 680build_vendor 681build_cpu 682build 683INSTALL_CMD 684PKG_CONFIG_LIBDIR 685PKG_CONFIG_PATH 686PKG_CONFIG 687CHANGELOG_CMD 688STRICT_CFLAGS 689CWARNFLAGS 690BASE_CFLAGS 691EGREP 692GREP 693CPP 694MAINT 695MAINTAINER_MODE_FALSE 696MAINTAINER_MODE_TRUE 697am__fastdepCC_FALSE 698am__fastdepCC_TRUE 699CCDEPMODE 700am__nodep 701AMDEPBACKSLASH 702AMDEP_FALSE 703AMDEP_TRUE 704am__quote 705am__include 706DEPDIR 707am__untar 708am__tar 709AMTAR 710am__leading_dot 711SET_MAKE 712AWK 713mkdir_p 714MKDIR_P 715INSTALL_STRIP_PROGRAM 716STRIP 717install_sh 718MAKEINFO 719AUTOHEADER 720AUTOMAKE 721AUTOCONF 722ACLOCAL 723VERSION 724PACKAGE 725CYGPATH_W 726am__isrc 727INSTALL_DATA 728INSTALL_SCRIPT 729INSTALL_PROGRAM 730OBJEXT 731EXEEXT 732ac_ct_CC 733CPPFLAGS 734LDFLAGS 735CFLAGS 736CC 737target_alias 738host_alias 739build_alias 740LIBS 741ECHO_T 742ECHO_N 743ECHO_C 744DEFS 745mandir 746localedir 747libdir 748psdir 749pdfdir 750dvidir 751htmldir 752infodir 753docdir 754oldincludedir 755includedir 756localstatedir 757sharedstatedir 758sysconfdir 759datadir 760datarootdir 761libexecdir 762sbindir 763bindir 764program_transform_name 765prefix 766exec_prefix 767PACKAGE_URL 768PACKAGE_BUGREPORT 769PACKAGE_STRING 770PACKAGE_VERSION 771PACKAGE_TARNAME 772PACKAGE_NAME 773PATH_SEPARATOR 774SHELL' 775ac_subst_files='' 776ac_user_opts=' 777enable_option_checking 778enable_largefile 779enable_dependency_tracking 780enable_maintainer_mode 781enable_selective_werror 782enable_strict_compilation 783enable_silent_rules 784enable_static 785enable_shared 786with_pic 787enable_fast_install 788with_gnu_ld 789with_sysroot 790enable_libtool_lock 791with_xorg_module_dir 792enable_vmwarectrl_client 793' 794 ac_precious_vars='build_alias 795host_alias 796target_alias 797CC 798CFLAGS 799LDFLAGS 800LIBS 801CPPFLAGS 802CPP 803PKG_CONFIG 804PKG_CONFIG_PATH 805PKG_CONFIG_LIBDIR 806XORG_CFLAGS 807XORG_LIBS 808X11_CFLAGS 809X11_LIBS 810PCIACCESS_CFLAGS 811PCIACCESS_LIBS 812LIBDRM_CFLAGS 813LIBDRM_LIBS 814XATRACKER_CFLAGS 815XATRACKER_LIBS' 816 817 818# Initialize some variables set by options. 819ac_init_help= 820ac_init_version=false 821ac_unrecognized_opts= 822ac_unrecognized_sep= 823# The variables have the same names as the options, with 824# dashes changed to underlines. 825cache_file=/dev/null 826exec_prefix=NONE 827no_create= 828no_recursion= 829prefix=NONE 830program_prefix=NONE 831program_suffix=NONE 832program_transform_name=s,x,x, 833silent= 834site= 835srcdir= 836verbose= 837x_includes=NONE 838x_libraries=NONE 839 840# Installation directory options. 841# These are left unexpanded so users can "make install exec_prefix=/foo" 842# and all the variables that are supposed to be based on exec_prefix 843# by default will actually change. 844# Use braces instead of parens because sh, perl, etc. also accept them. 845# (The list follows the same order as the GNU Coding Standards.) 846bindir='${exec_prefix}/bin' 847sbindir='${exec_prefix}/sbin' 848libexecdir='${exec_prefix}/libexec' 849datarootdir='${prefix}/share' 850datadir='${datarootdir}' 851sysconfdir='${prefix}/etc' 852sharedstatedir='${prefix}/com' 853localstatedir='${prefix}/var' 854includedir='${prefix}/include' 855oldincludedir='/usr/include' 856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 857infodir='${datarootdir}/info' 858htmldir='${docdir}' 859dvidir='${docdir}' 860pdfdir='${docdir}' 861psdir='${docdir}' 862libdir='${exec_prefix}/lib' 863localedir='${datarootdir}/locale' 864mandir='${datarootdir}/man' 865 866ac_prev= 867ac_dashdash= 868for ac_option 869do 870 # If the previous option needs an argument, assign it. 871 if test -n "$ac_prev"; then 872 eval $ac_prev=\$ac_option 873 ac_prev= 874 continue 875 fi 876 877 case $ac_option in 878 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 879 *=) ac_optarg= ;; 880 *) ac_optarg=yes ;; 881 esac 882 883 # Accept the important Cygnus configure options, so we can diagnose typos. 884 885 case $ac_dashdash$ac_option in 886 --) 887 ac_dashdash=yes ;; 888 889 -bindir | --bindir | --bindi | --bind | --bin | --bi) 890 ac_prev=bindir ;; 891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 892 bindir=$ac_optarg ;; 893 894 -build | --build | --buil | --bui | --bu) 895 ac_prev=build_alias ;; 896 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 897 build_alias=$ac_optarg ;; 898 899 -cache-file | --cache-file | --cache-fil | --cache-fi \ 900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 901 ac_prev=cache_file ;; 902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 904 cache_file=$ac_optarg ;; 905 906 --config-cache | -C) 907 cache_file=config.cache ;; 908 909 -datadir | --datadir | --datadi | --datad) 910 ac_prev=datadir ;; 911 -datadir=* | --datadir=* | --datadi=* | --datad=*) 912 datadir=$ac_optarg ;; 913 914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 915 | --dataroo | --dataro | --datar) 916 ac_prev=datarootdir ;; 917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 919 datarootdir=$ac_optarg ;; 920 921 -disable-* | --disable-*) 922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 923 # Reject names that are not valid shell variable names. 924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 925 as_fn_error $? "invalid feature name: $ac_useropt" 926 ac_useropt_orig=$ac_useropt 927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 928 case $ac_user_opts in 929 *" 930"enable_$ac_useropt" 931"*) ;; 932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 933 ac_unrecognized_sep=', ';; 934 esac 935 eval enable_$ac_useropt=no ;; 936 937 -docdir | --docdir | --docdi | --doc | --do) 938 ac_prev=docdir ;; 939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 940 docdir=$ac_optarg ;; 941 942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 943 ac_prev=dvidir ;; 944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 945 dvidir=$ac_optarg ;; 946 947 -enable-* | --enable-*) 948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 949 # Reject names that are not valid shell variable names. 950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 951 as_fn_error $? "invalid feature name: $ac_useropt" 952 ac_useropt_orig=$ac_useropt 953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 954 case $ac_user_opts in 955 *" 956"enable_$ac_useropt" 957"*) ;; 958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 959 ac_unrecognized_sep=', ';; 960 esac 961 eval enable_$ac_useropt=\$ac_optarg ;; 962 963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 965 | --exec | --exe | --ex) 966 ac_prev=exec_prefix ;; 967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 969 | --exec=* | --exe=* | --ex=*) 970 exec_prefix=$ac_optarg ;; 971 972 -gas | --gas | --ga | --g) 973 # Obsolete; use --with-gas. 974 with_gas=yes ;; 975 976 -help | --help | --hel | --he | -h) 977 ac_init_help=long ;; 978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 979 ac_init_help=recursive ;; 980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 981 ac_init_help=short ;; 982 983 -host | --host | --hos | --ho) 984 ac_prev=host_alias ;; 985 -host=* | --host=* | --hos=* | --ho=*) 986 host_alias=$ac_optarg ;; 987 988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 989 ac_prev=htmldir ;; 990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 991 | --ht=*) 992 htmldir=$ac_optarg ;; 993 994 -includedir | --includedir | --includedi | --included | --include \ 995 | --includ | --inclu | --incl | --inc) 996 ac_prev=includedir ;; 997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 998 | --includ=* | --inclu=* | --incl=* | --inc=*) 999 includedir=$ac_optarg ;; 1000 1001 -infodir | --infodir | --infodi | --infod | --info | --inf) 1002 ac_prev=infodir ;; 1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1004 infodir=$ac_optarg ;; 1005 1006 -libdir | --libdir | --libdi | --libd) 1007 ac_prev=libdir ;; 1008 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1009 libdir=$ac_optarg ;; 1010 1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1012 | --libexe | --libex | --libe) 1013 ac_prev=libexecdir ;; 1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1015 | --libexe=* | --libex=* | --libe=*) 1016 libexecdir=$ac_optarg ;; 1017 1018 -localedir | --localedir | --localedi | --localed | --locale) 1019 ac_prev=localedir ;; 1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1021 localedir=$ac_optarg ;; 1022 1023 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1024 | --localstate | --localstat | --localsta | --localst | --locals) 1025 ac_prev=localstatedir ;; 1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1028 localstatedir=$ac_optarg ;; 1029 1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1031 ac_prev=mandir ;; 1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1033 mandir=$ac_optarg ;; 1034 1035 -nfp | --nfp | --nf) 1036 # Obsolete; use --without-fp. 1037 with_fp=no ;; 1038 1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1040 | --no-cr | --no-c | -n) 1041 no_create=yes ;; 1042 1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1045 no_recursion=yes ;; 1046 1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1049 | --oldin | --oldi | --old | --ol | --o) 1050 ac_prev=oldincludedir ;; 1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1054 oldincludedir=$ac_optarg ;; 1055 1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1057 ac_prev=prefix ;; 1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1059 prefix=$ac_optarg ;; 1060 1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1062 | --program-pre | --program-pr | --program-p) 1063 ac_prev=program_prefix ;; 1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1066 program_prefix=$ac_optarg ;; 1067 1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1069 | --program-suf | --program-su | --program-s) 1070 ac_prev=program_suffix ;; 1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1073 program_suffix=$ac_optarg ;; 1074 1075 -program-transform-name | --program-transform-name \ 1076 | --program-transform-nam | --program-transform-na \ 1077 | --program-transform-n | --program-transform- \ 1078 | --program-transform | --program-transfor \ 1079 | --program-transfo | --program-transf \ 1080 | --program-trans | --program-tran \ 1081 | --progr-tra | --program-tr | --program-t) 1082 ac_prev=program_transform_name ;; 1083 -program-transform-name=* | --program-transform-name=* \ 1084 | --program-transform-nam=* | --program-transform-na=* \ 1085 | --program-transform-n=* | --program-transform-=* \ 1086 | --program-transform=* | --program-transfor=* \ 1087 | --program-transfo=* | --program-transf=* \ 1088 | --program-trans=* | --program-tran=* \ 1089 | --progr-tra=* | --program-tr=* | --program-t=*) 1090 program_transform_name=$ac_optarg ;; 1091 1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1093 ac_prev=pdfdir ;; 1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1095 pdfdir=$ac_optarg ;; 1096 1097 -psdir | --psdir | --psdi | --psd | --ps) 1098 ac_prev=psdir ;; 1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1100 psdir=$ac_optarg ;; 1101 1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1103 | -silent | --silent | --silen | --sile | --sil) 1104 silent=yes ;; 1105 1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1107 ac_prev=sbindir ;; 1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1109 | --sbi=* | --sb=*) 1110 sbindir=$ac_optarg ;; 1111 1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1114 | --sharedst | --shareds | --shared | --share | --shar \ 1115 | --sha | --sh) 1116 ac_prev=sharedstatedir ;; 1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1120 | --sha=* | --sh=*) 1121 sharedstatedir=$ac_optarg ;; 1122 1123 -site | --site | --sit) 1124 ac_prev=site ;; 1125 -site=* | --site=* | --sit=*) 1126 site=$ac_optarg ;; 1127 1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1129 ac_prev=srcdir ;; 1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1131 srcdir=$ac_optarg ;; 1132 1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1134 | --syscon | --sysco | --sysc | --sys | --sy) 1135 ac_prev=sysconfdir ;; 1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1138 sysconfdir=$ac_optarg ;; 1139 1140 -target | --target | --targe | --targ | --tar | --ta | --t) 1141 ac_prev=target_alias ;; 1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1143 target_alias=$ac_optarg ;; 1144 1145 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1146 verbose=yes ;; 1147 1148 -version | --version | --versio | --versi | --vers | -V) 1149 ac_init_version=: ;; 1150 1151 -with-* | --with-*) 1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1153 # Reject names that are not valid shell variable names. 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1155 as_fn_error $? "invalid package name: $ac_useropt" 1156 ac_useropt_orig=$ac_useropt 1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1158 case $ac_user_opts in 1159 *" 1160"with_$ac_useropt" 1161"*) ;; 1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1163 ac_unrecognized_sep=', ';; 1164 esac 1165 eval with_$ac_useropt=\$ac_optarg ;; 1166 1167 -without-* | --without-*) 1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1169 # Reject names that are not valid shell variable names. 1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1171 as_fn_error $? "invalid package name: $ac_useropt" 1172 ac_useropt_orig=$ac_useropt 1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1174 case $ac_user_opts in 1175 *" 1176"with_$ac_useropt" 1177"*) ;; 1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1179 ac_unrecognized_sep=', ';; 1180 esac 1181 eval with_$ac_useropt=no ;; 1182 1183 --x) 1184 # Obsolete; use --with-x. 1185 with_x=yes ;; 1186 1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1188 | --x-incl | --x-inc | --x-in | --x-i) 1189 ac_prev=x_includes ;; 1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1192 x_includes=$ac_optarg ;; 1193 1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1196 ac_prev=x_libraries ;; 1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1199 x_libraries=$ac_optarg ;; 1200 1201 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1202Try \`$0 --help' for more information" 1203 ;; 1204 1205 *=*) 1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1207 # Reject names that are not valid shell variable names. 1208 case $ac_envvar in #( 1209 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1211 esac 1212 eval $ac_envvar=\$ac_optarg 1213 export $ac_envvar ;; 1214 1215 *) 1216 # FIXME: should be removed in autoconf 3.0. 1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1221 ;; 1222 1223 esac 1224done 1225 1226if test -n "$ac_prev"; then 1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1228 as_fn_error $? "missing argument to $ac_option" 1229fi 1230 1231if test -n "$ac_unrecognized_opts"; then 1232 case $enable_option_checking in 1233 no) ;; 1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1236 esac 1237fi 1238 1239# Check all directory arguments for consistency. 1240for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1241 datadir sysconfdir sharedstatedir localstatedir includedir \ 1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1243 libdir localedir mandir 1244do 1245 eval ac_val=\$$ac_var 1246 # Remove trailing slashes. 1247 case $ac_val in 1248 */ ) 1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1250 eval $ac_var=\$ac_val;; 1251 esac 1252 # Be sure to have absolute directory names. 1253 case $ac_val in 1254 [\\/$]* | ?:[\\/]* ) continue;; 1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1256 esac 1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1258done 1259 1260# There might be people who depend on the old broken behavior: `$host' 1261# used to hold the argument of --host etc. 1262# FIXME: To remove some day. 1263build=$build_alias 1264host=$host_alias 1265target=$target_alias 1266 1267# FIXME: To remove some day. 1268if test "x$host_alias" != x; then 1269 if test "x$build_alias" = x; then 1270 cross_compiling=maybe 1271 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1272 If a cross compiler is detected then cross compile mode will be used" >&2 1273 elif test "x$build_alias" != "x$host_alias"; then 1274 cross_compiling=yes 1275 fi 1276fi 1277 1278ac_tool_prefix= 1279test -n "$host_alias" && ac_tool_prefix=$host_alias- 1280 1281test "$silent" = yes && exec 6>/dev/null 1282 1283 1284ac_pwd=`pwd` && test -n "$ac_pwd" && 1285ac_ls_di=`ls -di .` && 1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1287 as_fn_error $? "working directory cannot be determined" 1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1289 as_fn_error $? "pwd does not report name of working directory" 1290 1291 1292# Find the source files, if location was not specified. 1293if test -z "$srcdir"; then 1294 ac_srcdir_defaulted=yes 1295 # Try the directory containing this script, then the parent directory. 1296 ac_confdir=`$as_dirname -- "$as_myself" || 1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1298 X"$as_myself" : 'X\(//\)[^/]' \| \ 1299 X"$as_myself" : 'X\(//\)$' \| \ 1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1301$as_echo X"$as_myself" | 1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\/\)[^/].*/{ 1307 s//\1/ 1308 q 1309 } 1310 /^X\(\/\/\)$/{ 1311 s//\1/ 1312 q 1313 } 1314 /^X\(\/\).*/{ 1315 s//\1/ 1316 q 1317 } 1318 s/.*/./; q'` 1319 srcdir=$ac_confdir 1320 if test ! -r "$srcdir/$ac_unique_file"; then 1321 srcdir=.. 1322 fi 1323else 1324 ac_srcdir_defaulted=no 1325fi 1326if test ! -r "$srcdir/$ac_unique_file"; then 1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1328 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1329fi 1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1331ac_abs_confdir=`( 1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1333 pwd)` 1334# When building in place, set srcdir=. 1335if test "$ac_abs_confdir" = "$ac_pwd"; then 1336 srcdir=. 1337fi 1338# Remove unnecessary trailing slashes from srcdir. 1339# Double slashes in file names in object file debugging info 1340# mess up M-x gdb in Emacs. 1341case $srcdir in 1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1343esac 1344for ac_var in $ac_precious_vars; do 1345 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1346 eval ac_env_${ac_var}_value=\$${ac_var} 1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1348 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1349done 1350 1351# 1352# Report the --help message. 1353# 1354if test "$ac_init_help" = "long"; then 1355 # Omit some internal or obsolete options to make the list less imposing. 1356 # This message is too long to be a string in the A/UX 3.1 sh. 1357 cat <<_ACEOF 1358\`configure' configures xf86-video-vmware 13.1.0 to adapt to many kinds of systems. 1359 1360Usage: $0 [OPTION]... [VAR=VALUE]... 1361 1362To assign environment variables (e.g., CC, CFLAGS...), specify them as 1363VAR=VALUE. See below for descriptions of some of the useful variables. 1364 1365Defaults for the options are specified in brackets. 1366 1367Configuration: 1368 -h, --help display this help and exit 1369 --help=short display options specific to this package 1370 --help=recursive display the short help of all the included packages 1371 -V, --version display version information and exit 1372 -q, --quiet, --silent do not print \`checking ...' messages 1373 --cache-file=FILE cache test results in FILE [disabled] 1374 -C, --config-cache alias for \`--cache-file=config.cache' 1375 -n, --no-create do not create output files 1376 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1377 1378Installation directories: 1379 --prefix=PREFIX install architecture-independent files in PREFIX 1380 [$ac_default_prefix] 1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1382 [PREFIX] 1383 1384By default, \`make install' will install all the files in 1385\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1386an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1387for instance \`--prefix=\$HOME'. 1388 1389For better control, use the options below. 1390 1391Fine tuning of the installation directories: 1392 --bindir=DIR user executables [EPREFIX/bin] 1393 --sbindir=DIR system admin executables [EPREFIX/sbin] 1394 --libexecdir=DIR program executables [EPREFIX/libexec] 1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1398 --libdir=DIR object code libraries [EPREFIX/lib] 1399 --includedir=DIR C header files [PREFIX/include] 1400 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1403 --infodir=DIR info documentation [DATAROOTDIR/info] 1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1405 --mandir=DIR man documentation [DATAROOTDIR/man] 1406 --docdir=DIR documentation root 1407 [DATAROOTDIR/doc/xf86-video-vmware] 1408 --htmldir=DIR html documentation [DOCDIR] 1409 --dvidir=DIR dvi documentation [DOCDIR] 1410 --pdfdir=DIR pdf documentation [DOCDIR] 1411 --psdir=DIR ps documentation [DOCDIR] 1412_ACEOF 1413 1414 cat <<\_ACEOF 1415 1416Program names: 1417 --program-prefix=PREFIX prepend PREFIX to installed program names 1418 --program-suffix=SUFFIX append SUFFIX to installed program names 1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1420 1421System types: 1422 --build=BUILD configure for building on BUILD [guessed] 1423 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1424_ACEOF 1425fi 1426 1427if test -n "$ac_init_help"; then 1428 case $ac_init_help in 1429 short | recursive ) echo "Configuration of xf86-video-vmware 13.1.0:";; 1430 esac 1431 cat <<\_ACEOF 1432 1433Optional Features: 1434 --disable-option-checking ignore unrecognized --enable/--with options 1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1437 --disable-largefile omit support for large files 1438 --disable-dependency-tracking speeds up one-time build 1439 --enable-dependency-tracking do not reject slow dependency extractors 1440 --enable-maintainer-mode enable make rules and dependencies not useful 1441 (and sometimes confusing) to the casual installer 1442 --disable-selective-werror 1443 Turn off selective compiler errors. (default: 1444 enabled) 1445 --enable-strict-compilation 1446 Enable all warnings from compiler and make them 1447 errors (default: disabled) 1448 --enable-silent-rules less verbose build output (undo: `make V=1') 1449 --disable-silent-rules verbose build output (undo: `make V=0') 1450 --enable-static[=PKGS] build static libraries [default=no] 1451 --enable-shared[=PKGS] build shared libraries [default=yes] 1452 --enable-fast-install[=PKGS] 1453 optimize for fast installation [default=yes] 1454 --disable-libtool-lock avoid locking (might break parallel builds) 1455 --enable-vmwarectrl-client 1456 Enable vmwarectrl client (default: disabled) 1457 1458Optional Packages: 1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1461 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1462 both] 1463 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1464 --with-sysroot=DIR Search for dependent libraries within DIR 1465 (or the compiler's sysroot if not specified). 1466 --with-xorg-module-dir=DIR 1467 Default xorg module directory 1468 [[default=$libdir/xorg/modules]] 1469 1470Some influential environment variables: 1471 CC C compiler command 1472 CFLAGS C compiler flags 1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1474 nonstandard directory <lib dir> 1475 LIBS libraries to pass to the linker, e.g. -l<library> 1476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1477 you have headers in a nonstandard directory <include dir> 1478 CPP C preprocessor 1479 PKG_CONFIG path to pkg-config utility 1480 PKG_CONFIG_PATH 1481 directories to add to pkg-config's search path 1482 PKG_CONFIG_LIBDIR 1483 path overriding pkg-config's built-in search path 1484 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1485 XORG_LIBS linker flags for XORG, overriding pkg-config 1486 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1487 X11_LIBS linker flags for X11, overriding pkg-config 1488 PCIACCESS_CFLAGS 1489 C compiler flags for PCIACCESS, overriding pkg-config 1490 PCIACCESS_LIBS 1491 linker flags for PCIACCESS, overriding pkg-config 1492 LIBDRM_CFLAGS 1493 C compiler flags for LIBDRM, overriding pkg-config 1494 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 1495 XATRACKER_CFLAGS 1496 C compiler flags for XATRACKER, overriding pkg-config 1497 XATRACKER_LIBS 1498 linker flags for XATRACKER, overriding pkg-config 1499 1500Use these variables to override the choices made by `configure' or to help 1501it to find libraries and programs with nonstandard names/locations. 1502 1503Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1504_ACEOF 1505ac_status=$? 1506fi 1507 1508if test "$ac_init_help" = "recursive"; then 1509 # If there are subdirs, report their specific --help. 1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1511 test -d "$ac_dir" || 1512 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1513 continue 1514 ac_builddir=. 1515 1516case "$ac_dir" in 1517.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1518*) 1519 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1520 # A ".." for each directory in $ac_dir_suffix. 1521 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1522 case $ac_top_builddir_sub in 1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1525 esac ;; 1526esac 1527ac_abs_top_builddir=$ac_pwd 1528ac_abs_builddir=$ac_pwd$ac_dir_suffix 1529# for backward compatibility: 1530ac_top_builddir=$ac_top_build_prefix 1531 1532case $srcdir in 1533 .) # We are building in place. 1534 ac_srcdir=. 1535 ac_top_srcdir=$ac_top_builddir_sub 1536 ac_abs_top_srcdir=$ac_pwd ;; 1537 [\\/]* | ?:[\\/]* ) # Absolute name. 1538 ac_srcdir=$srcdir$ac_dir_suffix; 1539 ac_top_srcdir=$srcdir 1540 ac_abs_top_srcdir=$srcdir ;; 1541 *) # Relative name. 1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1543 ac_top_srcdir=$ac_top_build_prefix$srcdir 1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1545esac 1546ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1547 1548 cd "$ac_dir" || { ac_status=$?; continue; } 1549 # Check for guested configure. 1550 if test -f "$ac_srcdir/configure.gnu"; then 1551 echo && 1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1553 elif test -f "$ac_srcdir/configure"; then 1554 echo && 1555 $SHELL "$ac_srcdir/configure" --help=recursive 1556 else 1557 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1558 fi || ac_status=$? 1559 cd "$ac_pwd" || { ac_status=$?; break; } 1560 done 1561fi 1562 1563test -n "$ac_init_help" && exit $ac_status 1564if $ac_init_version; then 1565 cat <<\_ACEOF 1566xf86-video-vmware configure 13.1.0 1567generated by GNU Autoconf 2.68 1568 1569Copyright (C) 2010 Free Software Foundation, Inc. 1570This configure script is free software; the Free Software Foundation 1571gives unlimited permission to copy, distribute and modify it. 1572_ACEOF 1573 exit 1574fi 1575 1576## ------------------------ ## 1577## Autoconf initialization. ## 1578## ------------------------ ## 1579 1580# ac_fn_c_try_compile LINENO 1581# -------------------------- 1582# Try to compile conftest.$ac_ext, and return whether this succeeded. 1583ac_fn_c_try_compile () 1584{ 1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1586 rm -f conftest.$ac_objext 1587 if { { ac_try="$ac_compile" 1588case "(($ac_try" in 1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1590 *) ac_try_echo=$ac_try;; 1591esac 1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1593$as_echo "$ac_try_echo"; } >&5 1594 (eval "$ac_compile") 2>conftest.err 1595 ac_status=$? 1596 if test -s conftest.err; then 1597 grep -v '^ *+' conftest.err >conftest.er1 1598 cat conftest.er1 >&5 1599 mv -f conftest.er1 conftest.err 1600 fi 1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1602 test $ac_status = 0; } && { 1603 test -z "$ac_c_werror_flag" || 1604 test ! -s conftest.err 1605 } && test -s conftest.$ac_objext; then : 1606 ac_retval=0 1607else 1608 $as_echo "$as_me: failed program was:" >&5 1609sed 's/^/| /' conftest.$ac_ext >&5 1610 1611 ac_retval=1 1612fi 1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1614 as_fn_set_status $ac_retval 1615 1616} # ac_fn_c_try_compile 1617 1618# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1619# --------------------------------------------- 1620# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1621# accordingly. 1622ac_fn_c_check_decl () 1623{ 1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1625 as_decl_name=`echo $2|sed 's/ *(.*//'` 1626 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1628$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1629if eval \${$3+:} false; then : 1630 $as_echo_n "(cached) " >&6 1631else 1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1633/* end confdefs.h. */ 1634$4 1635int 1636main () 1637{ 1638#ifndef $as_decl_name 1639#ifdef __cplusplus 1640 (void) $as_decl_use; 1641#else 1642 (void) $as_decl_name; 1643#endif 1644#endif 1645 1646 ; 1647 return 0; 1648} 1649_ACEOF 1650if ac_fn_c_try_compile "$LINENO"; then : 1651 eval "$3=yes" 1652else 1653 eval "$3=no" 1654fi 1655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1656fi 1657eval ac_res=\$$3 1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1659$as_echo "$ac_res" >&6; } 1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1661 1662} # ac_fn_c_check_decl 1663 1664# ac_fn_c_try_cpp LINENO 1665# ---------------------- 1666# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1667ac_fn_c_try_cpp () 1668{ 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 if { { ac_try="$ac_cpp conftest.$ac_ext" 1671case "(($ac_try" in 1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1673 *) ac_try_echo=$ac_try;; 1674esac 1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1676$as_echo "$ac_try_echo"; } >&5 1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1678 ac_status=$? 1679 if test -s conftest.err; then 1680 grep -v '^ *+' conftest.err >conftest.er1 1681 cat conftest.er1 >&5 1682 mv -f conftest.er1 conftest.err 1683 fi 1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1685 test $ac_status = 0; } > conftest.i && { 1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1687 test ! -s conftest.err 1688 }; then : 1689 ac_retval=0 1690else 1691 $as_echo "$as_me: failed program was:" >&5 1692sed 's/^/| /' conftest.$ac_ext >&5 1693 1694 ac_retval=1 1695fi 1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1697 as_fn_set_status $ac_retval 1698 1699} # ac_fn_c_try_cpp 1700 1701# ac_fn_c_try_run LINENO 1702# ---------------------- 1703# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1704# that executables *can* be run. 1705ac_fn_c_try_run () 1706{ 1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1708 if { { ac_try="$ac_link" 1709case "(($ac_try" in 1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1711 *) ac_try_echo=$ac_try;; 1712esac 1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1714$as_echo "$ac_try_echo"; } >&5 1715 (eval "$ac_link") 2>&5 1716 ac_status=$? 1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1718 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1719 { { case "(($ac_try" in 1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1721 *) ac_try_echo=$ac_try;; 1722esac 1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1724$as_echo "$ac_try_echo"; } >&5 1725 (eval "$ac_try") 2>&5 1726 ac_status=$? 1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1728 test $ac_status = 0; }; }; then : 1729 ac_retval=0 1730else 1731 $as_echo "$as_me: program exited with status $ac_status" >&5 1732 $as_echo "$as_me: failed program was:" >&5 1733sed 's/^/| /' conftest.$ac_ext >&5 1734 1735 ac_retval=$ac_status 1736fi 1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1739 as_fn_set_status $ac_retval 1740 1741} # ac_fn_c_try_run 1742 1743# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1744# ------------------------------------------------------- 1745# Tests whether HEADER exists and can be compiled using the include files in 1746# INCLUDES, setting the cache variable VAR accordingly. 1747ac_fn_c_check_header_compile () 1748{ 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1751$as_echo_n "checking for $2... " >&6; } 1752if eval \${$3+:} false; then : 1753 $as_echo_n "(cached) " >&6 1754else 1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1756/* end confdefs.h. */ 1757$4 1758#include <$2> 1759_ACEOF 1760if ac_fn_c_try_compile "$LINENO"; then : 1761 eval "$3=yes" 1762else 1763 eval "$3=no" 1764fi 1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1766fi 1767eval ac_res=\$$3 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1769$as_echo "$ac_res" >&6; } 1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1771 1772} # ac_fn_c_check_header_compile 1773 1774# ac_fn_c_try_link LINENO 1775# ----------------------- 1776# Try to link conftest.$ac_ext, and return whether this succeeded. 1777ac_fn_c_try_link () 1778{ 1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1780 rm -f conftest.$ac_objext conftest$ac_exeext 1781 if { { ac_try="$ac_link" 1782case "(($ac_try" in 1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1784 *) ac_try_echo=$ac_try;; 1785esac 1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1787$as_echo "$ac_try_echo"; } >&5 1788 (eval "$ac_link") 2>conftest.err 1789 ac_status=$? 1790 if test -s conftest.err; then 1791 grep -v '^ *+' conftest.err >conftest.er1 1792 cat conftest.er1 >&5 1793 mv -f conftest.er1 conftest.err 1794 fi 1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1796 test $ac_status = 0; } && { 1797 test -z "$ac_c_werror_flag" || 1798 test ! -s conftest.err 1799 } && test -s conftest$ac_exeext && { 1800 test "$cross_compiling" = yes || 1801 $as_test_x conftest$ac_exeext 1802 }; then : 1803 ac_retval=0 1804else 1805 $as_echo "$as_me: failed program was:" >&5 1806sed 's/^/| /' conftest.$ac_ext >&5 1807 1808 ac_retval=1 1809fi 1810 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1811 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1812 # interfere with the next link command; also delete a directory that is 1813 # left behind by Apple's compiler. We do this before executing the actions. 1814 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1816 as_fn_set_status $ac_retval 1817 1818} # ac_fn_c_try_link 1819 1820# ac_fn_c_check_func LINENO FUNC VAR 1821# ---------------------------------- 1822# Tests whether FUNC exists, setting the cache variable VAR accordingly 1823ac_fn_c_check_func () 1824{ 1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1827$as_echo_n "checking for $2... " >&6; } 1828if eval \${$3+:} false; then : 1829 $as_echo_n "(cached) " >&6 1830else 1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1832/* end confdefs.h. */ 1833/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1834 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1835#define $2 innocuous_$2 1836 1837/* System header to define __stub macros and hopefully few prototypes, 1838 which can conflict with char $2 (); below. 1839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1840 <limits.h> exists even on freestanding compilers. */ 1841 1842#ifdef __STDC__ 1843# include <limits.h> 1844#else 1845# include <assert.h> 1846#endif 1847 1848#undef $2 1849 1850/* Override any GCC internal prototype to avoid an error. 1851 Use char because int might match the return type of a GCC 1852 builtin and then its argument prototype would still apply. */ 1853#ifdef __cplusplus 1854extern "C" 1855#endif 1856char $2 (); 1857/* The GNU C library defines this for functions which it implements 1858 to always fail with ENOSYS. Some functions are actually named 1859 something starting with __ and the normal name is an alias. */ 1860#if defined __stub_$2 || defined __stub___$2 1861choke me 1862#endif 1863 1864int 1865main () 1866{ 1867return $2 (); 1868 ; 1869 return 0; 1870} 1871_ACEOF 1872if ac_fn_c_try_link "$LINENO"; then : 1873 eval "$3=yes" 1874else 1875 eval "$3=no" 1876fi 1877rm -f core conftest.err conftest.$ac_objext \ 1878 conftest$ac_exeext conftest.$ac_ext 1879fi 1880eval ac_res=\$$3 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1882$as_echo "$ac_res" >&6; } 1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1884 1885} # ac_fn_c_check_func 1886cat >config.log <<_ACEOF 1887This file contains any messages produced by compilers while 1888running configure, to aid debugging if configure makes a mistake. 1889 1890It was created by xf86-video-vmware $as_me 13.1.0, which was 1891generated by GNU Autoconf 2.68. Invocation command line was 1892 1893 $ $0 $@ 1894 1895_ACEOF 1896exec 5>>config.log 1897{ 1898cat <<_ASUNAME 1899## --------- ## 1900## Platform. ## 1901## --------- ## 1902 1903hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1904uname -m = `(uname -m) 2>/dev/null || echo unknown` 1905uname -r = `(uname -r) 2>/dev/null || echo unknown` 1906uname -s = `(uname -s) 2>/dev/null || echo unknown` 1907uname -v = `(uname -v) 2>/dev/null || echo unknown` 1908 1909/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1910/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1911 1912/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1913/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1914/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1915/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1916/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1917/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1918/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1919 1920_ASUNAME 1921 1922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1923for as_dir in $PATH 1924do 1925 IFS=$as_save_IFS 1926 test -z "$as_dir" && as_dir=. 1927 $as_echo "PATH: $as_dir" 1928 done 1929IFS=$as_save_IFS 1930 1931} >&5 1932 1933cat >&5 <<_ACEOF 1934 1935 1936## ----------- ## 1937## Core tests. ## 1938## ----------- ## 1939 1940_ACEOF 1941 1942 1943# Keep a trace of the command line. 1944# Strip out --no-create and --no-recursion so they do not pile up. 1945# Strip out --silent because we don't want to record it for future runs. 1946# Also quote any args containing shell meta-characters. 1947# Make two passes to allow for proper duplicate-argument suppression. 1948ac_configure_args= 1949ac_configure_args0= 1950ac_configure_args1= 1951ac_must_keep_next=false 1952for ac_pass in 1 2 1953do 1954 for ac_arg 1955 do 1956 case $ac_arg in 1957 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1959 | -silent | --silent | --silen | --sile | --sil) 1960 continue ;; 1961 *\'*) 1962 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1963 esac 1964 case $ac_pass in 1965 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1966 2) 1967 as_fn_append ac_configure_args1 " '$ac_arg'" 1968 if test $ac_must_keep_next = true; then 1969 ac_must_keep_next=false # Got value, back to normal. 1970 else 1971 case $ac_arg in 1972 *=* | --config-cache | -C | -disable-* | --disable-* \ 1973 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1974 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1975 | -with-* | --with-* | -without-* | --without-* | --x) 1976 case "$ac_configure_args0 " in 1977 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1978 esac 1979 ;; 1980 -* ) ac_must_keep_next=true ;; 1981 esac 1982 fi 1983 as_fn_append ac_configure_args " '$ac_arg'" 1984 ;; 1985 esac 1986 done 1987done 1988{ ac_configure_args0=; unset ac_configure_args0;} 1989{ ac_configure_args1=; unset ac_configure_args1;} 1990 1991# When interrupted or exit'd, cleanup temporary files, and complete 1992# config.log. We remove comments because anyway the quotes in there 1993# would cause problems or look ugly. 1994# WARNING: Use '\'' to represent an apostrophe within the trap. 1995# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1996trap 'exit_status=$? 1997 # Save into config.log some information that might help in debugging. 1998 { 1999 echo 2000 2001 $as_echo "## ---------------- ## 2002## Cache variables. ## 2003## ---------------- ##" 2004 echo 2005 # The following way of writing the cache mishandles newlines in values, 2006( 2007 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2008 eval ac_val=\$$ac_var 2009 case $ac_val in #( 2010 *${as_nl}*) 2011 case $ac_var in #( 2012 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2013$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2014 esac 2015 case $ac_var in #( 2016 _ | IFS | as_nl) ;; #( 2017 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2018 *) { eval $ac_var=; unset $ac_var;} ;; 2019 esac ;; 2020 esac 2021 done 2022 (set) 2>&1 | 2023 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2024 *${as_nl}ac_space=\ *) 2025 sed -n \ 2026 "s/'\''/'\''\\\\'\'''\''/g; 2027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2028 ;; #( 2029 *) 2030 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2031 ;; 2032 esac | 2033 sort 2034) 2035 echo 2036 2037 $as_echo "## ----------------- ## 2038## Output variables. ## 2039## ----------------- ##" 2040 echo 2041 for ac_var in $ac_subst_vars 2042 do 2043 eval ac_val=\$$ac_var 2044 case $ac_val in 2045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2046 esac 2047 $as_echo "$ac_var='\''$ac_val'\''" 2048 done | sort 2049 echo 2050 2051 if test -n "$ac_subst_files"; then 2052 $as_echo "## ------------------- ## 2053## File substitutions. ## 2054## ------------------- ##" 2055 echo 2056 for ac_var in $ac_subst_files 2057 do 2058 eval ac_val=\$$ac_var 2059 case $ac_val in 2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2061 esac 2062 $as_echo "$ac_var='\''$ac_val'\''" 2063 done | sort 2064 echo 2065 fi 2066 2067 if test -s confdefs.h; then 2068 $as_echo "## ----------- ## 2069## confdefs.h. ## 2070## ----------- ##" 2071 echo 2072 cat confdefs.h 2073 echo 2074 fi 2075 test "$ac_signal" != 0 && 2076 $as_echo "$as_me: caught signal $ac_signal" 2077 $as_echo "$as_me: exit $exit_status" 2078 } >&5 2079 rm -f core *.core core.conftest.* && 2080 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2081 exit $exit_status 2082' 0 2083for ac_signal in 1 2 13 15; do 2084 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2085done 2086ac_signal=0 2087 2088# confdefs.h avoids OS command line length limits that DEFS can exceed. 2089rm -f -r conftest* confdefs.h 2090 2091$as_echo "/* confdefs.h */" > confdefs.h 2092 2093# Predefined preprocessor variables. 2094 2095cat >>confdefs.h <<_ACEOF 2096#define PACKAGE_NAME "$PACKAGE_NAME" 2097_ACEOF 2098 2099cat >>confdefs.h <<_ACEOF 2100#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2101_ACEOF 2102 2103cat >>confdefs.h <<_ACEOF 2104#define PACKAGE_VERSION "$PACKAGE_VERSION" 2105_ACEOF 2106 2107cat >>confdefs.h <<_ACEOF 2108#define PACKAGE_STRING "$PACKAGE_STRING" 2109_ACEOF 2110 2111cat >>confdefs.h <<_ACEOF 2112#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2113_ACEOF 2114 2115cat >>confdefs.h <<_ACEOF 2116#define PACKAGE_URL "$PACKAGE_URL" 2117_ACEOF 2118 2119 2120# Let the site file select an alternate cache file if it wants to. 2121# Prefer an explicitly selected file to automatically selected ones. 2122ac_site_file1=NONE 2123ac_site_file2=NONE 2124if test -n "$CONFIG_SITE"; then 2125 # We do not want a PATH search for config.site. 2126 case $CONFIG_SITE in #(( 2127 -*) ac_site_file1=./$CONFIG_SITE;; 2128 */*) ac_site_file1=$CONFIG_SITE;; 2129 *) ac_site_file1=./$CONFIG_SITE;; 2130 esac 2131elif test "x$prefix" != xNONE; then 2132 ac_site_file1=$prefix/share/config.site 2133 ac_site_file2=$prefix/etc/config.site 2134else 2135 ac_site_file1=$ac_default_prefix/share/config.site 2136 ac_site_file2=$ac_default_prefix/etc/config.site 2137fi 2138for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2139do 2140 test "x$ac_site_file" = xNONE && continue 2141 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2143$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2144 sed 's/^/| /' "$ac_site_file" >&5 2145 . "$ac_site_file" \ 2146 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2148as_fn_error $? "failed to load site script $ac_site_file 2149See \`config.log' for more details" "$LINENO" 5; } 2150 fi 2151done 2152 2153if test -r "$cache_file"; then 2154 # Some versions of bash will fail to source /dev/null (special files 2155 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2156 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2158$as_echo "$as_me: loading cache $cache_file" >&6;} 2159 case $cache_file in 2160 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2161 *) . "./$cache_file";; 2162 esac 2163 fi 2164else 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2166$as_echo "$as_me: creating cache $cache_file" >&6;} 2167 >$cache_file 2168fi 2169 2170# Check that the precious variables saved in the cache have kept the same 2171# value. 2172ac_cache_corrupted=false 2173for ac_var in $ac_precious_vars; do 2174 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2175 eval ac_new_set=\$ac_env_${ac_var}_set 2176 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2177 eval ac_new_val=\$ac_env_${ac_var}_value 2178 case $ac_old_set,$ac_new_set in 2179 set,) 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2181$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2182 ac_cache_corrupted=: ;; 2183 ,set) 2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2185$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2186 ac_cache_corrupted=: ;; 2187 ,);; 2188 *) 2189 if test "x$ac_old_val" != "x$ac_new_val"; then 2190 # differences in whitespace do not lead to failure. 2191 ac_old_val_w=`echo x $ac_old_val` 2192 ac_new_val_w=`echo x $ac_new_val` 2193 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2195$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2196 ac_cache_corrupted=: 2197 else 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2199$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2200 eval $ac_var=\$ac_old_val 2201 fi 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2203$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2204 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2205$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2206 fi;; 2207 esac 2208 # Pass precious variables to config.status. 2209 if test "$ac_new_set" = set; then 2210 case $ac_new_val in 2211 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2212 *) ac_arg=$ac_var=$ac_new_val ;; 2213 esac 2214 case " $ac_configure_args " in 2215 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2216 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2217 esac 2218 fi 2219done 2220if $ac_cache_corrupted; then 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2224$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2225 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2226fi 2227## -------------------- ## 2228## Main body of script. ## 2229## -------------------- ## 2230 2231ac_ext=c 2232ac_cpp='$CPP $CPPFLAGS' 2233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2235ac_compiler_gnu=$ac_cv_c_compiler_gnu 2236 2237 2238 2239ac_config_headers="$ac_config_headers config.h" 2240 2241ac_aux_dir= 2242for ac_dir in . "$srcdir"/.; do 2243 if test -f "$ac_dir/install-sh"; then 2244 ac_aux_dir=$ac_dir 2245 ac_install_sh="$ac_aux_dir/install-sh -c" 2246 break 2247 elif test -f "$ac_dir/install.sh"; then 2248 ac_aux_dir=$ac_dir 2249 ac_install_sh="$ac_aux_dir/install.sh -c" 2250 break 2251 elif test -f "$ac_dir/shtool"; then 2252 ac_aux_dir=$ac_dir 2253 ac_install_sh="$ac_aux_dir/shtool install -c" 2254 break 2255 fi 2256done 2257if test -z "$ac_aux_dir"; then 2258 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2259fi 2260 2261# These three variables are undocumented and unsupported, 2262# and are intended to be withdrawn in a future Autoconf release. 2263# They can cause serious problems if a builder's source tree is in a directory 2264# whose full name contains unusual characters. 2265ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2266ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2267ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2268 2269 2270ac_ext=c 2271ac_cpp='$CPP $CPPFLAGS' 2272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2274ac_compiler_gnu=$ac_cv_c_compiler_gnu 2275if test -n "$ac_tool_prefix"; then 2276 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2277set dummy ${ac_tool_prefix}gcc; ac_word=$2 2278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2279$as_echo_n "checking for $ac_word... " >&6; } 2280if ${ac_cv_prog_CC+:} false; then : 2281 $as_echo_n "(cached) " >&6 2282else 2283 if test -n "$CC"; then 2284 ac_cv_prog_CC="$CC" # Let the user override the test. 2285else 2286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2287for as_dir in $PATH 2288do 2289 IFS=$as_save_IFS 2290 test -z "$as_dir" && as_dir=. 2291 for ac_exec_ext in '' $ac_executable_extensions; do 2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2293 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2295 break 2 2296 fi 2297done 2298 done 2299IFS=$as_save_IFS 2300 2301fi 2302fi 2303CC=$ac_cv_prog_CC 2304if test -n "$CC"; then 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2306$as_echo "$CC" >&6; } 2307else 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2309$as_echo "no" >&6; } 2310fi 2311 2312 2313fi 2314if test -z "$ac_cv_prog_CC"; then 2315 ac_ct_CC=$CC 2316 # Extract the first word of "gcc", so it can be a program name with args. 2317set dummy gcc; ac_word=$2 2318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2319$as_echo_n "checking for $ac_word... " >&6; } 2320if ${ac_cv_prog_ac_ct_CC+:} false; then : 2321 $as_echo_n "(cached) " >&6 2322else 2323 if test -n "$ac_ct_CC"; then 2324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2325else 2326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2327for as_dir in $PATH 2328do 2329 IFS=$as_save_IFS 2330 test -z "$as_dir" && as_dir=. 2331 for ac_exec_ext in '' $ac_executable_extensions; do 2332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2333 ac_cv_prog_ac_ct_CC="gcc" 2334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2335 break 2 2336 fi 2337done 2338 done 2339IFS=$as_save_IFS 2340 2341fi 2342fi 2343ac_ct_CC=$ac_cv_prog_ac_ct_CC 2344if test -n "$ac_ct_CC"; then 2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2346$as_echo "$ac_ct_CC" >&6; } 2347else 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2349$as_echo "no" >&6; } 2350fi 2351 2352 if test "x$ac_ct_CC" = x; then 2353 CC="" 2354 else 2355 case $cross_compiling:$ac_tool_warned in 2356yes:) 2357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2359ac_tool_warned=yes ;; 2360esac 2361 CC=$ac_ct_CC 2362 fi 2363else 2364 CC="$ac_cv_prog_CC" 2365fi 2366 2367if test -z "$CC"; then 2368 if test -n "$ac_tool_prefix"; then 2369 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2370set dummy ${ac_tool_prefix}cc; ac_word=$2 2371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2372$as_echo_n "checking for $ac_word... " >&6; } 2373if ${ac_cv_prog_CC+:} false; then : 2374 $as_echo_n "(cached) " >&6 2375else 2376 if test -n "$CC"; then 2377 ac_cv_prog_CC="$CC" # Let the user override the test. 2378else 2379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2380for as_dir in $PATH 2381do 2382 IFS=$as_save_IFS 2383 test -z "$as_dir" && as_dir=. 2384 for ac_exec_ext in '' $ac_executable_extensions; do 2385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2386 ac_cv_prog_CC="${ac_tool_prefix}cc" 2387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2388 break 2 2389 fi 2390done 2391 done 2392IFS=$as_save_IFS 2393 2394fi 2395fi 2396CC=$ac_cv_prog_CC 2397if test -n "$CC"; then 2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2399$as_echo "$CC" >&6; } 2400else 2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2402$as_echo "no" >&6; } 2403fi 2404 2405 2406 fi 2407fi 2408if test -z "$CC"; then 2409 # Extract the first word of "cc", so it can be a program name with args. 2410set dummy cc; ac_word=$2 2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2412$as_echo_n "checking for $ac_word... " >&6; } 2413if ${ac_cv_prog_CC+:} false; then : 2414 $as_echo_n "(cached) " >&6 2415else 2416 if test -n "$CC"; then 2417 ac_cv_prog_CC="$CC" # Let the user override the test. 2418else 2419 ac_prog_rejected=no 2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2421for as_dir in $PATH 2422do 2423 IFS=$as_save_IFS 2424 test -z "$as_dir" && as_dir=. 2425 for ac_exec_ext in '' $ac_executable_extensions; do 2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2427 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2428 ac_prog_rejected=yes 2429 continue 2430 fi 2431 ac_cv_prog_CC="cc" 2432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2433 break 2 2434 fi 2435done 2436 done 2437IFS=$as_save_IFS 2438 2439if test $ac_prog_rejected = yes; then 2440 # We found a bogon in the path, so make sure we never use it. 2441 set dummy $ac_cv_prog_CC 2442 shift 2443 if test $# != 0; then 2444 # We chose a different compiler from the bogus one. 2445 # However, it has the same basename, so the bogon will be chosen 2446 # first if we set CC to just the basename; use the full file name. 2447 shift 2448 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2449 fi 2450fi 2451fi 2452fi 2453CC=$ac_cv_prog_CC 2454if test -n "$CC"; then 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2456$as_echo "$CC" >&6; } 2457else 2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2459$as_echo "no" >&6; } 2460fi 2461 2462 2463fi 2464if test -z "$CC"; then 2465 if test -n "$ac_tool_prefix"; then 2466 for ac_prog in cl.exe 2467 do 2468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2469set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2471$as_echo_n "checking for $ac_word... " >&6; } 2472if ${ac_cv_prog_CC+:} false; then : 2473 $as_echo_n "(cached) " >&6 2474else 2475 if test -n "$CC"; then 2476 ac_cv_prog_CC="$CC" # Let the user override the test. 2477else 2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2479for as_dir in $PATH 2480do 2481 IFS=$as_save_IFS 2482 test -z "$as_dir" && as_dir=. 2483 for ac_exec_ext in '' $ac_executable_extensions; do 2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2485 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2487 break 2 2488 fi 2489done 2490 done 2491IFS=$as_save_IFS 2492 2493fi 2494fi 2495CC=$ac_cv_prog_CC 2496if test -n "$CC"; then 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2498$as_echo "$CC" >&6; } 2499else 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2501$as_echo "no" >&6; } 2502fi 2503 2504 2505 test -n "$CC" && break 2506 done 2507fi 2508if test -z "$CC"; then 2509 ac_ct_CC=$CC 2510 for ac_prog in cl.exe 2511do 2512 # Extract the first word of "$ac_prog", so it can be a program name with args. 2513set dummy $ac_prog; ac_word=$2 2514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2515$as_echo_n "checking for $ac_word... " >&6; } 2516if ${ac_cv_prog_ac_ct_CC+:} false; then : 2517 $as_echo_n "(cached) " >&6 2518else 2519 if test -n "$ac_ct_CC"; then 2520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2521else 2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2523for as_dir in $PATH 2524do 2525 IFS=$as_save_IFS 2526 test -z "$as_dir" && as_dir=. 2527 for ac_exec_ext in '' $ac_executable_extensions; do 2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2529 ac_cv_prog_ac_ct_CC="$ac_prog" 2530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2531 break 2 2532 fi 2533done 2534 done 2535IFS=$as_save_IFS 2536 2537fi 2538fi 2539ac_ct_CC=$ac_cv_prog_ac_ct_CC 2540if test -n "$ac_ct_CC"; then 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2542$as_echo "$ac_ct_CC" >&6; } 2543else 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2545$as_echo "no" >&6; } 2546fi 2547 2548 2549 test -n "$ac_ct_CC" && break 2550done 2551 2552 if test "x$ac_ct_CC" = x; then 2553 CC="" 2554 else 2555 case $cross_compiling:$ac_tool_warned in 2556yes:) 2557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2559ac_tool_warned=yes ;; 2560esac 2561 CC=$ac_ct_CC 2562 fi 2563fi 2564 2565fi 2566 2567 2568test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2570as_fn_error $? "no acceptable C compiler found in \$PATH 2571See \`config.log' for more details" "$LINENO" 5; } 2572 2573# Provide some information about the compiler. 2574$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2575set X $ac_compile 2576ac_compiler=$2 2577for ac_option in --version -v -V -qversion; do 2578 { { ac_try="$ac_compiler $ac_option >&5" 2579case "(($ac_try" in 2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2581 *) ac_try_echo=$ac_try;; 2582esac 2583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2584$as_echo "$ac_try_echo"; } >&5 2585 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2586 ac_status=$? 2587 if test -s conftest.err; then 2588 sed '10a\ 2589... rest of stderr output deleted ... 2590 10q' conftest.err >conftest.er1 2591 cat conftest.er1 >&5 2592 fi 2593 rm -f conftest.er1 conftest.err 2594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2595 test $ac_status = 0; } 2596done 2597 2598cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2599/* end confdefs.h. */ 2600 2601int 2602main () 2603{ 2604 2605 ; 2606 return 0; 2607} 2608_ACEOF 2609ac_clean_files_save=$ac_clean_files 2610ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2611# Try to create an executable without -o first, disregard a.out. 2612# It will help us diagnose broken compilers, and finding out an intuition 2613# of exeext. 2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2615$as_echo_n "checking whether the C compiler works... " >&6; } 2616ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2617 2618# The possible output files: 2619ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2620 2621ac_rmfiles= 2622for ac_file in $ac_files 2623do 2624 case $ac_file in 2625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2626 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2627 esac 2628done 2629rm -f $ac_rmfiles 2630 2631if { { ac_try="$ac_link_default" 2632case "(($ac_try" in 2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2634 *) ac_try_echo=$ac_try;; 2635esac 2636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2637$as_echo "$ac_try_echo"; } >&5 2638 (eval "$ac_link_default") 2>&5 2639 ac_status=$? 2640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2641 test $ac_status = 0; }; then : 2642 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2643# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2644# in a Makefile. We should not override ac_cv_exeext if it was cached, 2645# so that the user can short-circuit this test for compilers unknown to 2646# Autoconf. 2647for ac_file in $ac_files '' 2648do 2649 test -f "$ac_file" || continue 2650 case $ac_file in 2651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2652 ;; 2653 [ab].out ) 2654 # We found the default executable, but exeext='' is most 2655 # certainly right. 2656 break;; 2657 *.* ) 2658 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2659 then :; else 2660 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2661 fi 2662 # We set ac_cv_exeext here because the later test for it is not 2663 # safe: cross compilers may not add the suffix if given an `-o' 2664 # argument, so we may need to know it at that point already. 2665 # Even if this section looks crufty: it has the advantage of 2666 # actually working. 2667 break;; 2668 * ) 2669 break;; 2670 esac 2671done 2672test "$ac_cv_exeext" = no && ac_cv_exeext= 2673 2674else 2675 ac_file='' 2676fi 2677if test -z "$ac_file"; then : 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2679$as_echo "no" >&6; } 2680$as_echo "$as_me: failed program was:" >&5 2681sed 's/^/| /' conftest.$ac_ext >&5 2682 2683{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2685as_fn_error 77 "C compiler cannot create executables 2686See \`config.log' for more details" "$LINENO" 5; } 2687else 2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2689$as_echo "yes" >&6; } 2690fi 2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2692$as_echo_n "checking for C compiler default output file name... " >&6; } 2693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2694$as_echo "$ac_file" >&6; } 2695ac_exeext=$ac_cv_exeext 2696 2697rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2698ac_clean_files=$ac_clean_files_save 2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2700$as_echo_n "checking for suffix of executables... " >&6; } 2701if { { ac_try="$ac_link" 2702case "(($ac_try" in 2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2704 *) ac_try_echo=$ac_try;; 2705esac 2706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2707$as_echo "$ac_try_echo"; } >&5 2708 (eval "$ac_link") 2>&5 2709 ac_status=$? 2710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2711 test $ac_status = 0; }; then : 2712 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2713# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2714# work properly (i.e., refer to `conftest.exe'), while it won't with 2715# `rm'. 2716for ac_file in conftest.exe conftest conftest.*; do 2717 test -f "$ac_file" || continue 2718 case $ac_file in 2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2720 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2721 break;; 2722 * ) break;; 2723 esac 2724done 2725else 2726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2728as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2729See \`config.log' for more details" "$LINENO" 5; } 2730fi 2731rm -f conftest conftest$ac_cv_exeext 2732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2733$as_echo "$ac_cv_exeext" >&6; } 2734 2735rm -f conftest.$ac_ext 2736EXEEXT=$ac_cv_exeext 2737ac_exeext=$EXEEXT 2738cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2739/* end confdefs.h. */ 2740#include <stdio.h> 2741int 2742main () 2743{ 2744FILE *f = fopen ("conftest.out", "w"); 2745 return ferror (f) || fclose (f) != 0; 2746 2747 ; 2748 return 0; 2749} 2750_ACEOF 2751ac_clean_files="$ac_clean_files conftest.out" 2752# Check that the compiler produces executables we can run. If not, either 2753# the compiler is broken, or we cross compile. 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2755$as_echo_n "checking whether we are cross compiling... " >&6; } 2756if test "$cross_compiling" != yes; then 2757 { { ac_try="$ac_link" 2758case "(($ac_try" in 2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2760 *) ac_try_echo=$ac_try;; 2761esac 2762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2763$as_echo "$ac_try_echo"; } >&5 2764 (eval "$ac_link") 2>&5 2765 ac_status=$? 2766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2767 test $ac_status = 0; } 2768 if { ac_try='./conftest$ac_cv_exeext' 2769 { { case "(($ac_try" in 2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2771 *) ac_try_echo=$ac_try;; 2772esac 2773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2774$as_echo "$ac_try_echo"; } >&5 2775 (eval "$ac_try") 2>&5 2776 ac_status=$? 2777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2778 test $ac_status = 0; }; }; then 2779 cross_compiling=no 2780 else 2781 if test "$cross_compiling" = maybe; then 2782 cross_compiling=yes 2783 else 2784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2786as_fn_error $? "cannot run C compiled programs. 2787If you meant to cross compile, use \`--host'. 2788See \`config.log' for more details" "$LINENO" 5; } 2789 fi 2790 fi 2791fi 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2793$as_echo "$cross_compiling" >&6; } 2794 2795rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2796ac_clean_files=$ac_clean_files_save 2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2798$as_echo_n "checking for suffix of object files... " >&6; } 2799if ${ac_cv_objext+:} false; then : 2800 $as_echo_n "(cached) " >&6 2801else 2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2803/* end confdefs.h. */ 2804 2805int 2806main () 2807{ 2808 2809 ; 2810 return 0; 2811} 2812_ACEOF 2813rm -f conftest.o conftest.obj 2814if { { ac_try="$ac_compile" 2815case "(($ac_try" in 2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2817 *) ac_try_echo=$ac_try;; 2818esac 2819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2820$as_echo "$ac_try_echo"; } >&5 2821 (eval "$ac_compile") 2>&5 2822 ac_status=$? 2823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2824 test $ac_status = 0; }; then : 2825 for ac_file in conftest.o conftest.obj conftest.*; do 2826 test -f "$ac_file" || continue; 2827 case $ac_file in 2828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2829 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2830 break;; 2831 esac 2832done 2833else 2834 $as_echo "$as_me: failed program was:" >&5 2835sed 's/^/| /' conftest.$ac_ext >&5 2836 2837{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2839as_fn_error $? "cannot compute suffix of object files: cannot compile 2840See \`config.log' for more details" "$LINENO" 5; } 2841fi 2842rm -f conftest.$ac_cv_objext conftest.$ac_ext 2843fi 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2845$as_echo "$ac_cv_objext" >&6; } 2846OBJEXT=$ac_cv_objext 2847ac_objext=$OBJEXT 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2849$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2850if ${ac_cv_c_compiler_gnu+:} false; then : 2851 $as_echo_n "(cached) " >&6 2852else 2853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2854/* end confdefs.h. */ 2855 2856int 2857main () 2858{ 2859#ifndef __GNUC__ 2860 choke me 2861#endif 2862 2863 ; 2864 return 0; 2865} 2866_ACEOF 2867if ac_fn_c_try_compile "$LINENO"; then : 2868 ac_compiler_gnu=yes 2869else 2870 ac_compiler_gnu=no 2871fi 2872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2873ac_cv_c_compiler_gnu=$ac_compiler_gnu 2874 2875fi 2876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2877$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2878if test $ac_compiler_gnu = yes; then 2879 GCC=yes 2880else 2881 GCC= 2882fi 2883ac_test_CFLAGS=${CFLAGS+set} 2884ac_save_CFLAGS=$CFLAGS 2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2886$as_echo_n "checking whether $CC accepts -g... " >&6; } 2887if ${ac_cv_prog_cc_g+:} false; then : 2888 $as_echo_n "(cached) " >&6 2889else 2890 ac_save_c_werror_flag=$ac_c_werror_flag 2891 ac_c_werror_flag=yes 2892 ac_cv_prog_cc_g=no 2893 CFLAGS="-g" 2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2895/* end confdefs.h. */ 2896 2897int 2898main () 2899{ 2900 2901 ; 2902 return 0; 2903} 2904_ACEOF 2905if ac_fn_c_try_compile "$LINENO"; then : 2906 ac_cv_prog_cc_g=yes 2907else 2908 CFLAGS="" 2909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2910/* end confdefs.h. */ 2911 2912int 2913main () 2914{ 2915 2916 ; 2917 return 0; 2918} 2919_ACEOF 2920if ac_fn_c_try_compile "$LINENO"; then : 2921 2922else 2923 ac_c_werror_flag=$ac_save_c_werror_flag 2924 CFLAGS="-g" 2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2926/* end confdefs.h. */ 2927 2928int 2929main () 2930{ 2931 2932 ; 2933 return 0; 2934} 2935_ACEOF 2936if ac_fn_c_try_compile "$LINENO"; then : 2937 ac_cv_prog_cc_g=yes 2938fi 2939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2940fi 2941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2942fi 2943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2944 ac_c_werror_flag=$ac_save_c_werror_flag 2945fi 2946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2947$as_echo "$ac_cv_prog_cc_g" >&6; } 2948if test "$ac_test_CFLAGS" = set; then 2949 CFLAGS=$ac_save_CFLAGS 2950elif test $ac_cv_prog_cc_g = yes; then 2951 if test "$GCC" = yes; then 2952 CFLAGS="-g -O2" 2953 else 2954 CFLAGS="-g" 2955 fi 2956else 2957 if test "$GCC" = yes; then 2958 CFLAGS="-O2" 2959 else 2960 CFLAGS= 2961 fi 2962fi 2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2964$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2965if ${ac_cv_prog_cc_c89+:} false; then : 2966 $as_echo_n "(cached) " >&6 2967else 2968 ac_cv_prog_cc_c89=no 2969ac_save_CC=$CC 2970cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2971/* end confdefs.h. */ 2972#include <stdarg.h> 2973#include <stdio.h> 2974#include <sys/types.h> 2975#include <sys/stat.h> 2976/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2977struct buf { int x; }; 2978FILE * (*rcsopen) (struct buf *, struct stat *, int); 2979static char *e (p, i) 2980 char **p; 2981 int i; 2982{ 2983 return p[i]; 2984} 2985static char *f (char * (*g) (char **, int), char **p, ...) 2986{ 2987 char *s; 2988 va_list v; 2989 va_start (v,p); 2990 s = g (p, va_arg (v,int)); 2991 va_end (v); 2992 return s; 2993} 2994 2995/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2996 function prototypes and stuff, but not '\xHH' hex character constants. 2997 These don't provoke an error unfortunately, instead are silently treated 2998 as 'x'. The following induces an error, until -std is added to get 2999 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3000 array size at least. It's necessary to write '\x00'==0 to get something 3001 that's true only with -std. */ 3002int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3003 3004/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3005 inside strings and character constants. */ 3006#define FOO(x) 'x' 3007int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3008 3009int test (int i, double x); 3010struct s1 {int (*f) (int a);}; 3011struct s2 {int (*f) (double a);}; 3012int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3013int argc; 3014char **argv; 3015int 3016main () 3017{ 3018return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3019 ; 3020 return 0; 3021} 3022_ACEOF 3023for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3024 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3025do 3026 CC="$ac_save_CC $ac_arg" 3027 if ac_fn_c_try_compile "$LINENO"; then : 3028 ac_cv_prog_cc_c89=$ac_arg 3029fi 3030rm -f core conftest.err conftest.$ac_objext 3031 test "x$ac_cv_prog_cc_c89" != "xno" && break 3032done 3033rm -f conftest.$ac_ext 3034CC=$ac_save_CC 3035 3036fi 3037# AC_CACHE_VAL 3038case "x$ac_cv_prog_cc_c89" in 3039 x) 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3041$as_echo "none needed" >&6; } ;; 3042 xno) 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3044$as_echo "unsupported" >&6; } ;; 3045 *) 3046 CC="$CC $ac_cv_prog_cc_c89" 3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3048$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3049esac 3050if test "x$ac_cv_prog_cc_c89" != xno; then : 3051 3052fi 3053 3054ac_ext=c 3055ac_cpp='$CPP $CPPFLAGS' 3056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3058ac_compiler_gnu=$ac_cv_c_compiler_gnu 3059 3060 3061# Check whether --enable-largefile was given. 3062if test "${enable_largefile+set}" = set; then : 3063 enableval=$enable_largefile; 3064fi 3065 3066if test "$enable_largefile" != no; then 3067 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 3069$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 3070if ${ac_cv_sys_largefile_CC+:} false; then : 3071 $as_echo_n "(cached) " >&6 3072else 3073 ac_cv_sys_largefile_CC=no 3074 if test "$GCC" != yes; then 3075 ac_save_CC=$CC 3076 while :; do 3077 # IRIX 6.2 and later do not support large files by default, 3078 # so use the C compiler's -n32 option if that helps. 3079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3080/* end confdefs.h. */ 3081#include <sys/types.h> 3082 /* Check that off_t can represent 2**63 - 1 correctly. 3083 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3084 since some C++ compilers masquerading as C compilers 3085 incorrectly reject 9223372036854775807. */ 3086#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3087 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3088 && LARGE_OFF_T % 2147483647 == 1) 3089 ? 1 : -1]; 3090int 3091main () 3092{ 3093 3094 ; 3095 return 0; 3096} 3097_ACEOF 3098 if ac_fn_c_try_compile "$LINENO"; then : 3099 break 3100fi 3101rm -f core conftest.err conftest.$ac_objext 3102 CC="$CC -n32" 3103 if ac_fn_c_try_compile "$LINENO"; then : 3104 ac_cv_sys_largefile_CC=' -n32'; break 3105fi 3106rm -f core conftest.err conftest.$ac_objext 3107 break 3108 done 3109 CC=$ac_save_CC 3110 rm -f conftest.$ac_ext 3111 fi 3112fi 3113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 3114$as_echo "$ac_cv_sys_largefile_CC" >&6; } 3115 if test "$ac_cv_sys_largefile_CC" != no; then 3116 CC=$CC$ac_cv_sys_largefile_CC 3117 fi 3118 3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 3120$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 3121if ${ac_cv_sys_file_offset_bits+:} false; then : 3122 $as_echo_n "(cached) " >&6 3123else 3124 while :; do 3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3126/* end confdefs.h. */ 3127#include <sys/types.h> 3128 /* Check that off_t can represent 2**63 - 1 correctly. 3129 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3130 since some C++ compilers masquerading as C compilers 3131 incorrectly reject 9223372036854775807. */ 3132#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3133 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3134 && LARGE_OFF_T % 2147483647 == 1) 3135 ? 1 : -1]; 3136int 3137main () 3138{ 3139 3140 ; 3141 return 0; 3142} 3143_ACEOF 3144if ac_fn_c_try_compile "$LINENO"; then : 3145 ac_cv_sys_file_offset_bits=no; break 3146fi 3147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3149/* end confdefs.h. */ 3150#define _FILE_OFFSET_BITS 64 3151#include <sys/types.h> 3152 /* Check that off_t can represent 2**63 - 1 correctly. 3153 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3154 since some C++ compilers masquerading as C compilers 3155 incorrectly reject 9223372036854775807. */ 3156#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3157 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3158 && LARGE_OFF_T % 2147483647 == 1) 3159 ? 1 : -1]; 3160int 3161main () 3162{ 3163 3164 ; 3165 return 0; 3166} 3167_ACEOF 3168if ac_fn_c_try_compile "$LINENO"; then : 3169 ac_cv_sys_file_offset_bits=64; break 3170fi 3171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3172 ac_cv_sys_file_offset_bits=unknown 3173 break 3174done 3175fi 3176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 3177$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 3178case $ac_cv_sys_file_offset_bits in #( 3179 no | unknown) ;; 3180 *) 3181cat >>confdefs.h <<_ACEOF 3182#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 3183_ACEOF 3184;; 3185esac 3186rm -rf conftest* 3187 if test $ac_cv_sys_file_offset_bits = unknown; then 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 3189$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 3190if ${ac_cv_sys_large_files+:} false; then : 3191 $as_echo_n "(cached) " >&6 3192else 3193 while :; do 3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3195/* end confdefs.h. */ 3196#include <sys/types.h> 3197 /* Check that off_t can represent 2**63 - 1 correctly. 3198 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3199 since some C++ compilers masquerading as C compilers 3200 incorrectly reject 9223372036854775807. */ 3201#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3202 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3203 && LARGE_OFF_T % 2147483647 == 1) 3204 ? 1 : -1]; 3205int 3206main () 3207{ 3208 3209 ; 3210 return 0; 3211} 3212_ACEOF 3213if ac_fn_c_try_compile "$LINENO"; then : 3214 ac_cv_sys_large_files=no; break 3215fi 3216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3218/* end confdefs.h. */ 3219#define _LARGE_FILES 1 3220#include <sys/types.h> 3221 /* Check that off_t can represent 2**63 - 1 correctly. 3222 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3223 since some C++ compilers masquerading as C compilers 3224 incorrectly reject 9223372036854775807. */ 3225#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3226 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3227 && LARGE_OFF_T % 2147483647 == 1) 3228 ? 1 : -1]; 3229int 3230main () 3231{ 3232 3233 ; 3234 return 0; 3235} 3236_ACEOF 3237if ac_fn_c_try_compile "$LINENO"; then : 3238 ac_cv_sys_large_files=1; break 3239fi 3240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3241 ac_cv_sys_large_files=unknown 3242 break 3243done 3244fi 3245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 3246$as_echo "$ac_cv_sys_large_files" >&6; } 3247case $ac_cv_sys_large_files in #( 3248 no | unknown) ;; 3249 *) 3250cat >>confdefs.h <<_ACEOF 3251#define _LARGE_FILES $ac_cv_sys_large_files 3252_ACEOF 3253;; 3254esac 3255rm -rf conftest* 3256 fi 3257fi 3258 3259 3260# Initialize Automake 3261am__api_version='1.11' 3262 3263# Find a good install program. We prefer a C program (faster), 3264# so one script is as good as another. But avoid the broken or 3265# incompatible versions: 3266# SysV /etc/install, /usr/sbin/install 3267# SunOS /usr/etc/install 3268# IRIX /sbin/install 3269# AIX /bin/install 3270# AmigaOS /C/install, which installs bootblocks on floppy discs 3271# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3272# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3273# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3274# OS/2's system install, which has a completely different semantic 3275# ./install, which can be erroneously created by make from ./install.sh. 3276# Reject install programs that cannot install multiple files. 3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3278$as_echo_n "checking for a BSD-compatible install... " >&6; } 3279if test -z "$INSTALL"; then 3280if ${ac_cv_path_install+:} false; then : 3281 $as_echo_n "(cached) " >&6 3282else 3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3284for as_dir in $PATH 3285do 3286 IFS=$as_save_IFS 3287 test -z "$as_dir" && as_dir=. 3288 # Account for people who put trailing slashes in PATH elements. 3289case $as_dir/ in #(( 3290 ./ | .// | /[cC]/* | \ 3291 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3292 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3293 /usr/ucb/* ) ;; 3294 *) 3295 # OSF1 and SCO ODT 3.0 have their own names for install. 3296 # Don't use installbsd from OSF since it installs stuff as root 3297 # by default. 3298 for ac_prog in ginstall scoinst install; do 3299 for ac_exec_ext in '' $ac_executable_extensions; do 3300 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3301 if test $ac_prog = install && 3302 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3303 # AIX install. It has an incompatible calling convention. 3304 : 3305 elif test $ac_prog = install && 3306 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3307 # program-specific install script used by HP pwplus--don't use. 3308 : 3309 else 3310 rm -rf conftest.one conftest.two conftest.dir 3311 echo one > conftest.one 3312 echo two > conftest.two 3313 mkdir conftest.dir 3314 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3315 test -s conftest.one && test -s conftest.two && 3316 test -s conftest.dir/conftest.one && 3317 test -s conftest.dir/conftest.two 3318 then 3319 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3320 break 3 3321 fi 3322 fi 3323 fi 3324 done 3325 done 3326 ;; 3327esac 3328 3329 done 3330IFS=$as_save_IFS 3331 3332rm -rf conftest.one conftest.two conftest.dir 3333 3334fi 3335 if test "${ac_cv_path_install+set}" = set; then 3336 INSTALL=$ac_cv_path_install 3337 else 3338 # As a last resort, use the slow shell script. Don't cache a 3339 # value for INSTALL within a source directory, because that will 3340 # break other packages using the cache if that directory is 3341 # removed, or if the value is a relative name. 3342 INSTALL=$ac_install_sh 3343 fi 3344fi 3345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3346$as_echo "$INSTALL" >&6; } 3347 3348# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3349# It thinks the first close brace ends the variable substitution. 3350test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3351 3352test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3353 3354test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3355 3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3357$as_echo_n "checking whether build environment is sane... " >&6; } 3358# Just in case 3359sleep 1 3360echo timestamp > conftest.file 3361# Reject unsafe characters in $srcdir or the absolute working directory 3362# name. Accept space and tab only in the latter. 3363am_lf=' 3364' 3365case `pwd` in 3366 *[\\\"\#\$\&\'\`$am_lf]*) 3367 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3368esac 3369case $srcdir in 3370 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3371 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3372esac 3373 3374# Do `set' in a subshell so we don't clobber the current shell's 3375# arguments. Must try -L first in case configure is actually a 3376# symlink; some systems play weird games with the mod time of symlinks 3377# (eg FreeBSD returns the mod time of the symlink's containing 3378# directory). 3379if ( 3380 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3381 if test "$*" = "X"; then 3382 # -L didn't work. 3383 set X `ls -t "$srcdir/configure" conftest.file` 3384 fi 3385 rm -f conftest.file 3386 if test "$*" != "X $srcdir/configure conftest.file" \ 3387 && test "$*" != "X conftest.file $srcdir/configure"; then 3388 3389 # If neither matched, then we have a broken ls. This can happen 3390 # if, for instance, CONFIG_SHELL is bash and it inherits a 3391 # broken ls alias from the environment. This has actually 3392 # happened. Such a system could not be considered "sane". 3393 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3394alias in your environment" "$LINENO" 5 3395 fi 3396 3397 test "$2" = conftest.file 3398 ) 3399then 3400 # Ok. 3401 : 3402else 3403 as_fn_error $? "newly created file is older than distributed files! 3404Check your system clock" "$LINENO" 5 3405fi 3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3407$as_echo "yes" >&6; } 3408test "$program_prefix" != NONE && 3409 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3410# Use a double $ so make ignores it. 3411test "$program_suffix" != NONE && 3412 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3413# Double any \ or $. 3414# By default was `s,x,x', remove it if useless. 3415ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3416program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3417 3418# expand $ac_aux_dir to an absolute path 3419am_aux_dir=`cd $ac_aux_dir && pwd` 3420 3421if test x"${MISSING+set}" != xset; then 3422 case $am_aux_dir in 3423 *\ * | *\ *) 3424 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3425 *) 3426 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3427 esac 3428fi 3429# Use eval to expand $SHELL 3430if eval "$MISSING --run true"; then 3431 am_missing_run="$MISSING --run " 3432else 3433 am_missing_run= 3434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3435$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3436fi 3437 3438if test x"${install_sh}" != xset; then 3439 case $am_aux_dir in 3440 *\ * | *\ *) 3441 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3442 *) 3443 install_sh="\${SHELL} $am_aux_dir/install-sh" 3444 esac 3445fi 3446 3447# Installed binaries are usually stripped using `strip' when the user 3448# run `make install-strip'. However `strip' might not be the right 3449# tool to use in cross-compilation environments, therefore Automake 3450# will honor the `STRIP' environment variable to overrule this program. 3451if test "$cross_compiling" != no; then 3452 if test -n "$ac_tool_prefix"; then 3453 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3454set dummy ${ac_tool_prefix}strip; ac_word=$2 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3456$as_echo_n "checking for $ac_word... " >&6; } 3457if ${ac_cv_prog_STRIP+:} false; then : 3458 $as_echo_n "(cached) " >&6 3459else 3460 if test -n "$STRIP"; then 3461 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3462else 3463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3464for as_dir in $PATH 3465do 3466 IFS=$as_save_IFS 3467 test -z "$as_dir" && as_dir=. 3468 for ac_exec_ext in '' $ac_executable_extensions; do 3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3470 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3472 break 2 3473 fi 3474done 3475 done 3476IFS=$as_save_IFS 3477 3478fi 3479fi 3480STRIP=$ac_cv_prog_STRIP 3481if test -n "$STRIP"; then 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3483$as_echo "$STRIP" >&6; } 3484else 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3486$as_echo "no" >&6; } 3487fi 3488 3489 3490fi 3491if test -z "$ac_cv_prog_STRIP"; then 3492 ac_ct_STRIP=$STRIP 3493 # Extract the first word of "strip", so it can be a program name with args. 3494set dummy strip; ac_word=$2 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3496$as_echo_n "checking for $ac_word... " >&6; } 3497if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3498 $as_echo_n "(cached) " >&6 3499else 3500 if test -n "$ac_ct_STRIP"; then 3501 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3502else 3503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3504for as_dir in $PATH 3505do 3506 IFS=$as_save_IFS 3507 test -z "$as_dir" && as_dir=. 3508 for ac_exec_ext in '' $ac_executable_extensions; do 3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3510 ac_cv_prog_ac_ct_STRIP="strip" 3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3512 break 2 3513 fi 3514done 3515 done 3516IFS=$as_save_IFS 3517 3518fi 3519fi 3520ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3521if test -n "$ac_ct_STRIP"; then 3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3523$as_echo "$ac_ct_STRIP" >&6; } 3524else 3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3526$as_echo "no" >&6; } 3527fi 3528 3529 if test "x$ac_ct_STRIP" = x; then 3530 STRIP=":" 3531 else 3532 case $cross_compiling:$ac_tool_warned in 3533yes:) 3534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3536ac_tool_warned=yes ;; 3537esac 3538 STRIP=$ac_ct_STRIP 3539 fi 3540else 3541 STRIP="$ac_cv_prog_STRIP" 3542fi 3543 3544fi 3545INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3546 3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3548$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3549if test -z "$MKDIR_P"; then 3550 if ${ac_cv_path_mkdir+:} false; then : 3551 $as_echo_n "(cached) " >&6 3552else 3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3554for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3555do 3556 IFS=$as_save_IFS 3557 test -z "$as_dir" && as_dir=. 3558 for ac_prog in mkdir gmkdir; do 3559 for ac_exec_ext in '' $ac_executable_extensions; do 3560 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3561 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3562 'mkdir (GNU coreutils) '* | \ 3563 'mkdir (coreutils) '* | \ 3564 'mkdir (fileutils) '4.1*) 3565 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3566 break 3;; 3567 esac 3568 done 3569 done 3570 done 3571IFS=$as_save_IFS 3572 3573fi 3574 3575 test -d ./--version && rmdir ./--version 3576 if test "${ac_cv_path_mkdir+set}" = set; then 3577 MKDIR_P="$ac_cv_path_mkdir -p" 3578 else 3579 # As a last resort, use the slow shell script. Don't cache a 3580 # value for MKDIR_P within a source directory, because that will 3581 # break other packages using the cache if that directory is 3582 # removed, or if the value is a relative name. 3583 MKDIR_P="$ac_install_sh -d" 3584 fi 3585fi 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3587$as_echo "$MKDIR_P" >&6; } 3588 3589mkdir_p="$MKDIR_P" 3590case $mkdir_p in 3591 [\\/$]* | ?:[\\/]*) ;; 3592 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3593esac 3594 3595for ac_prog in gawk mawk nawk awk 3596do 3597 # Extract the first word of "$ac_prog", so it can be a program name with args. 3598set dummy $ac_prog; ac_word=$2 3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3600$as_echo_n "checking for $ac_word... " >&6; } 3601if ${ac_cv_prog_AWK+:} false; then : 3602 $as_echo_n "(cached) " >&6 3603else 3604 if test -n "$AWK"; then 3605 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3606else 3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3608for as_dir in $PATH 3609do 3610 IFS=$as_save_IFS 3611 test -z "$as_dir" && as_dir=. 3612 for ac_exec_ext in '' $ac_executable_extensions; do 3613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3614 ac_cv_prog_AWK="$ac_prog" 3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3616 break 2 3617 fi 3618done 3619 done 3620IFS=$as_save_IFS 3621 3622fi 3623fi 3624AWK=$ac_cv_prog_AWK 3625if test -n "$AWK"; then 3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3627$as_echo "$AWK" >&6; } 3628else 3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3630$as_echo "no" >&6; } 3631fi 3632 3633 3634 test -n "$AWK" && break 3635done 3636 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3638$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3639set x ${MAKE-make} 3640ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3641if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3642 $as_echo_n "(cached) " >&6 3643else 3644 cat >conftest.make <<\_ACEOF 3645SHELL = /bin/sh 3646all: 3647 @echo '@@@%%%=$(MAKE)=@@@%%%' 3648_ACEOF 3649# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3650case `${MAKE-make} -f conftest.make 2>/dev/null` in 3651 *@@@%%%=?*=@@@%%%*) 3652 eval ac_cv_prog_make_${ac_make}_set=yes;; 3653 *) 3654 eval ac_cv_prog_make_${ac_make}_set=no;; 3655esac 3656rm -f conftest.make 3657fi 3658if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3660$as_echo "yes" >&6; } 3661 SET_MAKE= 3662else 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3664$as_echo "no" >&6; } 3665 SET_MAKE="MAKE=${MAKE-make}" 3666fi 3667 3668rm -rf .tst 2>/dev/null 3669mkdir .tst 2>/dev/null 3670if test -d .tst; then 3671 am__leading_dot=. 3672else 3673 am__leading_dot=_ 3674fi 3675rmdir .tst 2>/dev/null 3676 3677DEPDIR="${am__leading_dot}deps" 3678 3679ac_config_commands="$ac_config_commands depfiles" 3680 3681 3682am_make=${MAKE-make} 3683cat > confinc << 'END' 3684am__doit: 3685 @echo this is the am__doit target 3686.PHONY: am__doit 3687END 3688# If we don't find an include directive, just comment out the code. 3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3690$as_echo_n "checking for style of include used by $am_make... " >&6; } 3691am__include="#" 3692am__quote= 3693_am_result=none 3694# First try GNU make style include. 3695echo "include confinc" > confmf 3696# Ignore all kinds of additional output from `make'. 3697case `$am_make -s -f confmf 2> /dev/null` in #( 3698*the\ am__doit\ target*) 3699 am__include=include 3700 am__quote= 3701 _am_result=GNU 3702 ;; 3703esac 3704# Now try BSD make style include. 3705if test "$am__include" = "#"; then 3706 echo '.include "confinc"' > confmf 3707 case `$am_make -s -f confmf 2> /dev/null` in #( 3708 *the\ am__doit\ target*) 3709 am__include=.include 3710 am__quote="\"" 3711 _am_result=BSD 3712 ;; 3713 esac 3714fi 3715 3716 3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3718$as_echo "$_am_result" >&6; } 3719rm -f confinc confmf 3720 3721# Check whether --enable-dependency-tracking was given. 3722if test "${enable_dependency_tracking+set}" = set; then : 3723 enableval=$enable_dependency_tracking; 3724fi 3725 3726if test "x$enable_dependency_tracking" != xno; then 3727 am_depcomp="$ac_aux_dir/depcomp" 3728 AMDEPBACKSLASH='\' 3729 am__nodep='_no' 3730fi 3731 if test "x$enable_dependency_tracking" != xno; then 3732 AMDEP_TRUE= 3733 AMDEP_FALSE='#' 3734else 3735 AMDEP_TRUE='#' 3736 AMDEP_FALSE= 3737fi 3738 3739 3740if test "`cd $srcdir && pwd`" != "`pwd`"; then 3741 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3742 # is not polluted with repeated "-I." 3743 am__isrc=' -I$(srcdir)' 3744 # test to see if srcdir already configured 3745 if test -f $srcdir/config.status; then 3746 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3747 fi 3748fi 3749 3750# test whether we have cygpath 3751if test -z "$CYGPATH_W"; then 3752 if (cygpath --version) >/dev/null 2>/dev/null; then 3753 CYGPATH_W='cygpath -w' 3754 else 3755 CYGPATH_W=echo 3756 fi 3757fi 3758 3759 3760# Define the identity of the package. 3761 PACKAGE='xf86-video-vmware' 3762 VERSION='13.1.0' 3763 3764 3765cat >>confdefs.h <<_ACEOF 3766#define PACKAGE "$PACKAGE" 3767_ACEOF 3768 3769 3770cat >>confdefs.h <<_ACEOF 3771#define VERSION "$VERSION" 3772_ACEOF 3773 3774# Some tools Automake needs. 3775 3776ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3777 3778 3779AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3780 3781 3782AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3783 3784 3785AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3786 3787 3788MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3789 3790# We need awk for the "check" target. The system "awk" is bad on 3791# some platforms. 3792# Always define AMTAR for backward compatibility. Yes, it's still used 3793# in the wild :-( We should find a proper way to deprecate it ... 3794AMTAR='$${TAR-tar}' 3795 3796am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3797 3798 3799 3800 3801depcc="$CC" am_compiler_list= 3802 3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3804$as_echo_n "checking dependency style of $depcc... " >&6; } 3805if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3806 $as_echo_n "(cached) " >&6 3807else 3808 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3809 # We make a subdir and do the tests there. Otherwise we can end up 3810 # making bogus files that we don't know about and never remove. For 3811 # instance it was reported that on HP-UX the gcc test will end up 3812 # making a dummy file named `D' -- because `-MD' means `put the output 3813 # in D'. 3814 rm -rf conftest.dir 3815 mkdir conftest.dir 3816 # Copy depcomp to subdir because otherwise we won't find it if we're 3817 # using a relative directory. 3818 cp "$am_depcomp" conftest.dir 3819 cd conftest.dir 3820 # We will build objects and dependencies in a subdirectory because 3821 # it helps to detect inapplicable dependency modes. For instance 3822 # both Tru64's cc and ICC support -MD to output dependencies as a 3823 # side effect of compilation, but ICC will put the dependencies in 3824 # the current directory while Tru64 will put them in the object 3825 # directory. 3826 mkdir sub 3827 3828 am_cv_CC_dependencies_compiler_type=none 3829 if test "$am_compiler_list" = ""; then 3830 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3831 fi 3832 am__universal=false 3833 case " $depcc " in #( 3834 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3835 esac 3836 3837 for depmode in $am_compiler_list; do 3838 # Setup a source with many dependencies, because some compilers 3839 # like to wrap large dependency lists on column 80 (with \), and 3840 # we should not choose a depcomp mode which is confused by this. 3841 # 3842 # We need to recreate these files for each test, as the compiler may 3843 # overwrite some of them when testing with obscure command lines. 3844 # This happens at least with the AIX C compiler. 3845 : > sub/conftest.c 3846 for i in 1 2 3 4 5 6; do 3847 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3848 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3849 # Solaris 8's {/usr,}/bin/sh. 3850 touch sub/conftst$i.h 3851 done 3852 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3853 3854 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3855 # mode. It turns out that the SunPro C++ compiler does not properly 3856 # handle `-M -o', and we need to detect this. Also, some Intel 3857 # versions had trouble with output in subdirs 3858 am__obj=sub/conftest.${OBJEXT-o} 3859 am__minus_obj="-o $am__obj" 3860 case $depmode in 3861 gcc) 3862 # This depmode causes a compiler race in universal mode. 3863 test "$am__universal" = false || continue 3864 ;; 3865 nosideeffect) 3866 # after this tag, mechanisms are not by side-effect, so they'll 3867 # only be used when explicitly requested 3868 if test "x$enable_dependency_tracking" = xyes; then 3869 continue 3870 else 3871 break 3872 fi 3873 ;; 3874 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3875 # This compiler won't grok `-c -o', but also, the minuso test has 3876 # not run yet. These depmodes are late enough in the game, and 3877 # so weak that their functioning should not be impacted. 3878 am__obj=conftest.${OBJEXT-o} 3879 am__minus_obj= 3880 ;; 3881 none) break ;; 3882 esac 3883 if depmode=$depmode \ 3884 source=sub/conftest.c object=$am__obj \ 3885 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3886 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3887 >/dev/null 2>conftest.err && 3888 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3889 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3890 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3891 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3892 # icc doesn't choke on unknown options, it will just issue warnings 3893 # or remarks (even with -Werror). So we grep stderr for any message 3894 # that says an option was ignored or not supported. 3895 # When given -MP, icc 7.0 and 7.1 complain thusly: 3896 # icc: Command line warning: ignoring option '-M'; no argument required 3897 # The diagnosis changed in icc 8.0: 3898 # icc: Command line remark: option '-MP' not supported 3899 if (grep 'ignoring option' conftest.err || 3900 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3901 am_cv_CC_dependencies_compiler_type=$depmode 3902 break 3903 fi 3904 fi 3905 done 3906 3907 cd .. 3908 rm -rf conftest.dir 3909else 3910 am_cv_CC_dependencies_compiler_type=none 3911fi 3912 3913fi 3914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3915$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3916CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3917 3918 if 3919 test "x$enable_dependency_tracking" != xno \ 3920 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3921 am__fastdepCC_TRUE= 3922 am__fastdepCC_FALSE='#' 3923else 3924 am__fastdepCC_TRUE='#' 3925 am__fastdepCC_FALSE= 3926fi 3927 3928 3929 3930 3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3932$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3933 # Check whether --enable-maintainer-mode was given. 3934if test "${enable_maintainer_mode+set}" = set; then : 3935 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3936else 3937 USE_MAINTAINER_MODE=no 3938fi 3939 3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3941$as_echo "$USE_MAINTAINER_MODE" >&6; } 3942 if test $USE_MAINTAINER_MODE = yes; then 3943 MAINTAINER_MODE_TRUE= 3944 MAINTAINER_MODE_FALSE='#' 3945else 3946 MAINTAINER_MODE_TRUE='#' 3947 MAINTAINER_MODE_FALSE= 3948fi 3949 3950 MAINT=$MAINTAINER_MODE_TRUE 3951 3952 3953 3954# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3967$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3968if ${ac_cv_prog_cc_c99+:} false; then : 3969 $as_echo_n "(cached) " >&6 3970else 3971 ac_cv_prog_cc_c99=no 3972ac_save_CC=$CC 3973cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3974/* end confdefs.h. */ 3975#include <stdarg.h> 3976#include <stdbool.h> 3977#include <stdlib.h> 3978#include <wchar.h> 3979#include <stdio.h> 3980 3981// Check varargs macros. These examples are taken from C99 6.10.3.5. 3982#define debug(...) fprintf (stderr, __VA_ARGS__) 3983#define showlist(...) puts (#__VA_ARGS__) 3984#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3985static void 3986test_varargs_macros (void) 3987{ 3988 int x = 1234; 3989 int y = 5678; 3990 debug ("Flag"); 3991 debug ("X = %d\n", x); 3992 showlist (The first, second, and third items.); 3993 report (x>y, "x is %d but y is %d", x, y); 3994} 3995 3996// Check long long types. 3997#define BIG64 18446744073709551615ull 3998#define BIG32 4294967295ul 3999#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4000#if !BIG_OK 4001 your preprocessor is broken; 4002#endif 4003#if BIG_OK 4004#else 4005 your preprocessor is broken; 4006#endif 4007static long long int bignum = -9223372036854775807LL; 4008static unsigned long long int ubignum = BIG64; 4009 4010struct incomplete_array 4011{ 4012 int datasize; 4013 double data[]; 4014}; 4015 4016struct named_init { 4017 int number; 4018 const wchar_t *name; 4019 double average; 4020}; 4021 4022typedef const char *ccp; 4023 4024static inline int 4025test_restrict (ccp restrict text) 4026{ 4027 // See if C++-style comments work. 4028 // Iterate through items via the restricted pointer. 4029 // Also check for declarations in for loops. 4030 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4031 continue; 4032 return 0; 4033} 4034 4035// Check varargs and va_copy. 4036static void 4037test_varargs (const char *format, ...) 4038{ 4039 va_list args; 4040 va_start (args, format); 4041 va_list args_copy; 4042 va_copy (args_copy, args); 4043 4044 const char *str; 4045 int number; 4046 float fnumber; 4047 4048 while (*format) 4049 { 4050 switch (*format++) 4051 { 4052 case 's': // string 4053 str = va_arg (args_copy, const char *); 4054 break; 4055 case 'd': // int 4056 number = va_arg (args_copy, int); 4057 break; 4058 case 'f': // float 4059 fnumber = va_arg (args_copy, double); 4060 break; 4061 default: 4062 break; 4063 } 4064 } 4065 va_end (args_copy); 4066 va_end (args); 4067} 4068 4069int 4070main () 4071{ 4072 4073 // Check bool. 4074 _Bool success = false; 4075 4076 // Check restrict. 4077 if (test_restrict ("String literal") == 0) 4078 success = true; 4079 char *restrict newvar = "Another string"; 4080 4081 // Check varargs. 4082 test_varargs ("s, d' f .", "string", 65, 34.234); 4083 test_varargs_macros (); 4084 4085 // Check flexible array members. 4086 struct incomplete_array *ia = 4087 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4088 ia->datasize = 10; 4089 for (int i = 0; i < ia->datasize; ++i) 4090 ia->data[i] = i * 1.234; 4091 4092 // Check named initializers. 4093 struct named_init ni = { 4094 .number = 34, 4095 .name = L"Test wide string", 4096 .average = 543.34343, 4097 }; 4098 4099 ni.number = 58; 4100 4101 int dynamic_array[ni.number]; 4102 dynamic_array[ni.number - 1] = 543; 4103 4104 // work around unused variable warnings 4105 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4106 || dynamic_array[ni.number - 1] != 543); 4107 4108 ; 4109 return 0; 4110} 4111_ACEOF 4112for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4113do 4114 CC="$ac_save_CC $ac_arg" 4115 if ac_fn_c_try_compile "$LINENO"; then : 4116 ac_cv_prog_cc_c99=$ac_arg 4117fi 4118rm -f core conftest.err conftest.$ac_objext 4119 test "x$ac_cv_prog_cc_c99" != "xno" && break 4120done 4121rm -f conftest.$ac_ext 4122CC=$ac_save_CC 4123 4124fi 4125# AC_CACHE_VAL 4126case "x$ac_cv_prog_cc_c99" in 4127 x) 4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4129$as_echo "none needed" >&6; } ;; 4130 xno) 4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4132$as_echo "unsupported" >&6; } ;; 4133 *) 4134 CC="$CC $ac_cv_prog_cc_c99" 4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4136$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4137esac 4138if test "x$ac_cv_prog_cc_c99" != xno; then : 4139 4140fi 4141 4142 4143ac_ext=c 4144ac_cpp='$CPP $CPPFLAGS' 4145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4147ac_compiler_gnu=$ac_cv_c_compiler_gnu 4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4149$as_echo_n "checking how to run the C preprocessor... " >&6; } 4150# On Suns, sometimes $CPP names a directory. 4151if test -n "$CPP" && test -d "$CPP"; then 4152 CPP= 4153fi 4154if test -z "$CPP"; then 4155 if ${ac_cv_prog_CPP+:} false; then : 4156 $as_echo_n "(cached) " >&6 4157else 4158 # Double quotes because CPP needs to be expanded 4159 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4160 do 4161 ac_preproc_ok=false 4162for ac_c_preproc_warn_flag in '' yes 4163do 4164 # Use a header file that comes with gcc, so configuring glibc 4165 # with a fresh cross-compiler works. 4166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4167 # <limits.h> exists even on freestanding compilers. 4168 # On the NeXT, cc -E runs the code through the compiler's parser, 4169 # not just through cpp. "Syntax error" is here to catch this case. 4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4171/* end confdefs.h. */ 4172#ifdef __STDC__ 4173# include <limits.h> 4174#else 4175# include <assert.h> 4176#endif 4177 Syntax error 4178_ACEOF 4179if ac_fn_c_try_cpp "$LINENO"; then : 4180 4181else 4182 # Broken: fails on valid input. 4183continue 4184fi 4185rm -f conftest.err conftest.i conftest.$ac_ext 4186 4187 # OK, works on sane cases. Now check whether nonexistent headers 4188 # can be detected and how. 4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4190/* end confdefs.h. */ 4191#include <ac_nonexistent.h> 4192_ACEOF 4193if ac_fn_c_try_cpp "$LINENO"; then : 4194 # Broken: success on invalid input. 4195continue 4196else 4197 # Passes both tests. 4198ac_preproc_ok=: 4199break 4200fi 4201rm -f conftest.err conftest.i conftest.$ac_ext 4202 4203done 4204# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4205rm -f conftest.i conftest.err conftest.$ac_ext 4206if $ac_preproc_ok; then : 4207 break 4208fi 4209 4210 done 4211 ac_cv_prog_CPP=$CPP 4212 4213fi 4214 CPP=$ac_cv_prog_CPP 4215else 4216 ac_cv_prog_CPP=$CPP 4217fi 4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4219$as_echo "$CPP" >&6; } 4220ac_preproc_ok=false 4221for ac_c_preproc_warn_flag in '' yes 4222do 4223 # Use a header file that comes with gcc, so configuring glibc 4224 # with a fresh cross-compiler works. 4225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4226 # <limits.h> exists even on freestanding compilers. 4227 # On the NeXT, cc -E runs the code through the compiler's parser, 4228 # not just through cpp. "Syntax error" is here to catch this case. 4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4230/* end confdefs.h. */ 4231#ifdef __STDC__ 4232# include <limits.h> 4233#else 4234# include <assert.h> 4235#endif 4236 Syntax error 4237_ACEOF 4238if ac_fn_c_try_cpp "$LINENO"; then : 4239 4240else 4241 # Broken: fails on valid input. 4242continue 4243fi 4244rm -f conftest.err conftest.i conftest.$ac_ext 4245 4246 # OK, works on sane cases. Now check whether nonexistent headers 4247 # can be detected and how. 4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4249/* end confdefs.h. */ 4250#include <ac_nonexistent.h> 4251_ACEOF 4252if ac_fn_c_try_cpp "$LINENO"; then : 4253 # Broken: success on invalid input. 4254continue 4255else 4256 # Passes both tests. 4257ac_preproc_ok=: 4258break 4259fi 4260rm -f conftest.err conftest.i conftest.$ac_ext 4261 4262done 4263# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4264rm -f conftest.i conftest.err conftest.$ac_ext 4265if $ac_preproc_ok; then : 4266 4267else 4268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4270as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4271See \`config.log' for more details" "$LINENO" 5; } 4272fi 4273 4274ac_ext=c 4275ac_cpp='$CPP $CPPFLAGS' 4276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4278ac_compiler_gnu=$ac_cv_c_compiler_gnu 4279 4280 4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4282$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4283if ${ac_cv_path_GREP+:} false; then : 4284 $as_echo_n "(cached) " >&6 4285else 4286 if test -z "$GREP"; then 4287 ac_path_GREP_found=false 4288 # Loop through the user's path and test for each of PROGNAME-LIST 4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4290for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4291do 4292 IFS=$as_save_IFS 4293 test -z "$as_dir" && as_dir=. 4294 for ac_prog in grep ggrep; do 4295 for ac_exec_ext in '' $ac_executable_extensions; do 4296 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4297 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4298# Check for GNU ac_path_GREP and select it if it is found. 4299 # Check for GNU $ac_path_GREP 4300case `"$ac_path_GREP" --version 2>&1` in 4301*GNU*) 4302 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4303*) 4304 ac_count=0 4305 $as_echo_n 0123456789 >"conftest.in" 4306 while : 4307 do 4308 cat "conftest.in" "conftest.in" >"conftest.tmp" 4309 mv "conftest.tmp" "conftest.in" 4310 cp "conftest.in" "conftest.nl" 4311 $as_echo 'GREP' >> "conftest.nl" 4312 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4314 as_fn_arith $ac_count + 1 && ac_count=$as_val 4315 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4316 # Best one so far, save it but keep looking for a better one 4317 ac_cv_path_GREP="$ac_path_GREP" 4318 ac_path_GREP_max=$ac_count 4319 fi 4320 # 10*(2^10) chars as input seems more than enough 4321 test $ac_count -gt 10 && break 4322 done 4323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4324esac 4325 4326 $ac_path_GREP_found && break 3 4327 done 4328 done 4329 done 4330IFS=$as_save_IFS 4331 if test -z "$ac_cv_path_GREP"; then 4332 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4333 fi 4334else 4335 ac_cv_path_GREP=$GREP 4336fi 4337 4338fi 4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4340$as_echo "$ac_cv_path_GREP" >&6; } 4341 GREP="$ac_cv_path_GREP" 4342 4343 4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4345$as_echo_n "checking for egrep... " >&6; } 4346if ${ac_cv_path_EGREP+:} false; then : 4347 $as_echo_n "(cached) " >&6 4348else 4349 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4350 then ac_cv_path_EGREP="$GREP -E" 4351 else 4352 if test -z "$EGREP"; then 4353 ac_path_EGREP_found=false 4354 # Loop through the user's path and test for each of PROGNAME-LIST 4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4356for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4357do 4358 IFS=$as_save_IFS 4359 test -z "$as_dir" && as_dir=. 4360 for ac_prog in egrep; do 4361 for ac_exec_ext in '' $ac_executable_extensions; do 4362 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4363 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4364# Check for GNU ac_path_EGREP and select it if it is found. 4365 # Check for GNU $ac_path_EGREP 4366case `"$ac_path_EGREP" --version 2>&1` in 4367*GNU*) 4368 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4369*) 4370 ac_count=0 4371 $as_echo_n 0123456789 >"conftest.in" 4372 while : 4373 do 4374 cat "conftest.in" "conftest.in" >"conftest.tmp" 4375 mv "conftest.tmp" "conftest.in" 4376 cp "conftest.in" "conftest.nl" 4377 $as_echo 'EGREP' >> "conftest.nl" 4378 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4380 as_fn_arith $ac_count + 1 && ac_count=$as_val 4381 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4382 # Best one so far, save it but keep looking for a better one 4383 ac_cv_path_EGREP="$ac_path_EGREP" 4384 ac_path_EGREP_max=$ac_count 4385 fi 4386 # 10*(2^10) chars as input seems more than enough 4387 test $ac_count -gt 10 && break 4388 done 4389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4390esac 4391 4392 $ac_path_EGREP_found && break 3 4393 done 4394 done 4395 done 4396IFS=$as_save_IFS 4397 if test -z "$ac_cv_path_EGREP"; then 4398 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4399 fi 4400else 4401 ac_cv_path_EGREP=$EGREP 4402fi 4403 4404 fi 4405fi 4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4407$as_echo "$ac_cv_path_EGREP" >&6; } 4408 EGREP="$ac_cv_path_EGREP" 4409 4410 4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4412$as_echo_n "checking for ANSI C header files... " >&6; } 4413if ${ac_cv_header_stdc+:} false; then : 4414 $as_echo_n "(cached) " >&6 4415else 4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4417/* end confdefs.h. */ 4418#include <stdlib.h> 4419#include <stdarg.h> 4420#include <string.h> 4421#include <float.h> 4422 4423int 4424main () 4425{ 4426 4427 ; 4428 return 0; 4429} 4430_ACEOF 4431if ac_fn_c_try_compile "$LINENO"; then : 4432 ac_cv_header_stdc=yes 4433else 4434 ac_cv_header_stdc=no 4435fi 4436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4437 4438if test $ac_cv_header_stdc = yes; then 4439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4441/* end confdefs.h. */ 4442#include <string.h> 4443 4444_ACEOF 4445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4446 $EGREP "memchr" >/dev/null 2>&1; then : 4447 4448else 4449 ac_cv_header_stdc=no 4450fi 4451rm -f conftest* 4452 4453fi 4454 4455if test $ac_cv_header_stdc = yes; then 4456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4458/* end confdefs.h. */ 4459#include <stdlib.h> 4460 4461_ACEOF 4462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4463 $EGREP "free" >/dev/null 2>&1; then : 4464 4465else 4466 ac_cv_header_stdc=no 4467fi 4468rm -f conftest* 4469 4470fi 4471 4472if test $ac_cv_header_stdc = yes; then 4473 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4474 if test "$cross_compiling" = yes; then : 4475 : 4476else 4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4478/* end confdefs.h. */ 4479#include <ctype.h> 4480#include <stdlib.h> 4481#if ((' ' & 0x0FF) == 0x020) 4482# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4483# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4484#else 4485# define ISLOWER(c) \ 4486 (('a' <= (c) && (c) <= 'i') \ 4487 || ('j' <= (c) && (c) <= 'r') \ 4488 || ('s' <= (c) && (c) <= 'z')) 4489# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4490#endif 4491 4492#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4493int 4494main () 4495{ 4496 int i; 4497 for (i = 0; i < 256; i++) 4498 if (XOR (islower (i), ISLOWER (i)) 4499 || toupper (i) != TOUPPER (i)) 4500 return 2; 4501 return 0; 4502} 4503_ACEOF 4504if ac_fn_c_try_run "$LINENO"; then : 4505 4506else 4507 ac_cv_header_stdc=no 4508fi 4509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4510 conftest.$ac_objext conftest.beam conftest.$ac_ext 4511fi 4512 4513fi 4514fi 4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4516$as_echo "$ac_cv_header_stdc" >&6; } 4517if test $ac_cv_header_stdc = yes; then 4518 4519$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4520 4521fi 4522 4523# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4524for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4525 inttypes.h stdint.h unistd.h 4526do : 4527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4528ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4529" 4530if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4531 cat >>confdefs.h <<_ACEOF 4532#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4533_ACEOF 4534 4535fi 4536 4537done 4538 4539 4540 4541 4542ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4543if test "x$ac_cv_have_decl___clang__" = xyes; then : 4544 CLANGCC="yes" 4545else 4546 CLANGCC="no" 4547fi 4548 4549ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4550if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4551 INTELCC="yes" 4552else 4553 INTELCC="no" 4554fi 4555 4556ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4557if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4558 SUNCC="yes" 4559else 4560 SUNCC="no" 4561fi 4562 4563 4564 4565 4566 4567 4568 4569 4570if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4571 if test -n "$ac_tool_prefix"; then 4572 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4573set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4575$as_echo_n "checking for $ac_word... " >&6; } 4576if ${ac_cv_path_PKG_CONFIG+:} false; then : 4577 $as_echo_n "(cached) " >&6 4578else 4579 case $PKG_CONFIG in 4580 [\\/]* | ?:[\\/]*) 4581 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4582 ;; 4583 *) 4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4585for as_dir in $PATH 4586do 4587 IFS=$as_save_IFS 4588 test -z "$as_dir" && as_dir=. 4589 for ac_exec_ext in '' $ac_executable_extensions; do 4590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4591 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4593 break 2 4594 fi 4595done 4596 done 4597IFS=$as_save_IFS 4598 4599 ;; 4600esac 4601fi 4602PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4603if test -n "$PKG_CONFIG"; then 4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4605$as_echo "$PKG_CONFIG" >&6; } 4606else 4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4608$as_echo "no" >&6; } 4609fi 4610 4611 4612fi 4613if test -z "$ac_cv_path_PKG_CONFIG"; then 4614 ac_pt_PKG_CONFIG=$PKG_CONFIG 4615 # Extract the first word of "pkg-config", so it can be a program name with args. 4616set dummy pkg-config; ac_word=$2 4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4618$as_echo_n "checking for $ac_word... " >&6; } 4619if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4620 $as_echo_n "(cached) " >&6 4621else 4622 case $ac_pt_PKG_CONFIG in 4623 [\\/]* | ?:[\\/]*) 4624 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4625 ;; 4626 *) 4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4628for as_dir in $PATH 4629do 4630 IFS=$as_save_IFS 4631 test -z "$as_dir" && as_dir=. 4632 for ac_exec_ext in '' $ac_executable_extensions; do 4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4634 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4636 break 2 4637 fi 4638done 4639 done 4640IFS=$as_save_IFS 4641 4642 ;; 4643esac 4644fi 4645ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4646if test -n "$ac_pt_PKG_CONFIG"; then 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4648$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4649else 4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4651$as_echo "no" >&6; } 4652fi 4653 4654 if test "x$ac_pt_PKG_CONFIG" = x; then 4655 PKG_CONFIG="" 4656 else 4657 case $cross_compiling:$ac_tool_warned in 4658yes:) 4659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4661ac_tool_warned=yes ;; 4662esac 4663 PKG_CONFIG=$ac_pt_PKG_CONFIG 4664 fi 4665else 4666 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4667fi 4668 4669fi 4670if test -n "$PKG_CONFIG"; then 4671 _pkg_min_version=0.9.0 4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4673$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4674 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4676$as_echo "yes" >&6; } 4677 else 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4679$as_echo "no" >&6; } 4680 PKG_CONFIG="" 4681 fi 4682fi 4683# Make sure we can run config.sub. 4684$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4685 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4686 4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4688$as_echo_n "checking build system type... " >&6; } 4689if ${ac_cv_build+:} false; then : 4690 $as_echo_n "(cached) " >&6 4691else 4692 ac_build_alias=$build_alias 4693test "x$ac_build_alias" = x && 4694 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4695test "x$ac_build_alias" = x && 4696 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4697ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4698 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4699 4700fi 4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4702$as_echo "$ac_cv_build" >&6; } 4703case $ac_cv_build in 4704*-*-*) ;; 4705*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4706esac 4707build=$ac_cv_build 4708ac_save_IFS=$IFS; IFS='-' 4709set x $ac_cv_build 4710shift 4711build_cpu=$1 4712build_vendor=$2 4713shift; shift 4714# Remember, the first character of IFS is used to create $*, 4715# except with old shells: 4716build_os=$* 4717IFS=$ac_save_IFS 4718case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4719 4720 4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4722$as_echo_n "checking host system type... " >&6; } 4723if ${ac_cv_host+:} false; then : 4724 $as_echo_n "(cached) " >&6 4725else 4726 if test "x$host_alias" = x; then 4727 ac_cv_host=$ac_cv_build 4728else 4729 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4730 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4731fi 4732 4733fi 4734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4735$as_echo "$ac_cv_host" >&6; } 4736case $ac_cv_host in 4737*-*-*) ;; 4738*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4739esac 4740host=$ac_cv_host 4741ac_save_IFS=$IFS; IFS='-' 4742set x $ac_cv_host 4743shift 4744host_cpu=$1 4745host_vendor=$2 4746shift; shift 4747# Remember, the first character of IFS is used to create $*, 4748# except with old shells: 4749host_os=$* 4750IFS=$ac_save_IFS 4751case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4752 4753 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4755$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4756if ${ac_cv_path_SED+:} false; then : 4757 $as_echo_n "(cached) " >&6 4758else 4759 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4760 for ac_i in 1 2 3 4 5 6 7; do 4761 ac_script="$ac_script$as_nl$ac_script" 4762 done 4763 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4764 { ac_script=; unset ac_script;} 4765 if test -z "$SED"; then 4766 ac_path_SED_found=false 4767 # Loop through the user's path and test for each of PROGNAME-LIST 4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4769for as_dir in $PATH 4770do 4771 IFS=$as_save_IFS 4772 test -z "$as_dir" && as_dir=. 4773 for ac_prog in sed gsed; do 4774 for ac_exec_ext in '' $ac_executable_extensions; do 4775 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4776 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4777# Check for GNU ac_path_SED and select it if it is found. 4778 # Check for GNU $ac_path_SED 4779case `"$ac_path_SED" --version 2>&1` in 4780*GNU*) 4781 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4782*) 4783 ac_count=0 4784 $as_echo_n 0123456789 >"conftest.in" 4785 while : 4786 do 4787 cat "conftest.in" "conftest.in" >"conftest.tmp" 4788 mv "conftest.tmp" "conftest.in" 4789 cp "conftest.in" "conftest.nl" 4790 $as_echo '' >> "conftest.nl" 4791 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4792 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4793 as_fn_arith $ac_count + 1 && ac_count=$as_val 4794 if test $ac_count -gt ${ac_path_SED_max-0}; then 4795 # Best one so far, save it but keep looking for a better one 4796 ac_cv_path_SED="$ac_path_SED" 4797 ac_path_SED_max=$ac_count 4798 fi 4799 # 10*(2^10) chars as input seems more than enough 4800 test $ac_count -gt 10 && break 4801 done 4802 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4803esac 4804 4805 $ac_path_SED_found && break 3 4806 done 4807 done 4808 done 4809IFS=$as_save_IFS 4810 if test -z "$ac_cv_path_SED"; then 4811 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4812 fi 4813else 4814 ac_cv_path_SED=$SED 4815fi 4816 4817fi 4818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4819$as_echo "$ac_cv_path_SED" >&6; } 4820 SED="$ac_cv_path_SED" 4821 rm -f conftest.sed 4822 4823 4824 4825 4826 4827 4828# Check whether --enable-selective-werror was given. 4829if test "${enable_selective_werror+set}" = set; then : 4830 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4831else 4832 SELECTIVE_WERROR=yes 4833fi 4834 4835 4836# -v is too short to test reliably with XORG_TESTSET_CFLAG 4837if test "x$SUNCC" = "xyes"; then 4838 BASE_CFLAGS="-v" 4839else 4840 BASE_CFLAGS="" 4841fi 4842 4843# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4844 4845 4846 4847 4848 4849xorg_testset_save_CFLAGS="$CFLAGS" 4850 4851if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4854$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4856/* end confdefs.h. */ 4857int i; 4858_ACEOF 4859if ac_fn_c_try_compile "$LINENO"; then : 4860 xorg_testset_unknown_warning_option=yes 4861else 4862 xorg_testset_unknown_warning_option=no 4863fi 4864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 4866$as_echo "$xorg_testset_unknown_warning_option" >&6; } 4867 CFLAGS="$xorg_testset_save_CFLAGS" 4868fi 4869 4870if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4871 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4873 fi 4874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4876$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4878/* end confdefs.h. */ 4879int i; 4880_ACEOF 4881if ac_fn_c_try_compile "$LINENO"; then : 4882 xorg_testset_unused_command_line_argument=yes 4883else 4884 xorg_testset_unused_command_line_argument=no 4885fi 4886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 4888$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 4889 CFLAGS="$xorg_testset_save_CFLAGS" 4890fi 4891 4892found="no" 4893 4894 if test $found = "no" ; then 4895 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4897 fi 4898 4899 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4901 fi 4902 4903 CFLAGS="$CFLAGS -Wall" 4904 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4906$as_echo_n "checking if $CC supports -Wall... " >&6; } 4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4908/* end confdefs.h. */ 4909int i; 4910int 4911main () 4912{ 4913 4914 ; 4915 return 0; 4916} 4917_ACEOF 4918if ac_fn_c_try_link "$LINENO"; then : 4919 supported=yes 4920else 4921 supported=no 4922fi 4923rm -f core conftest.err conftest.$ac_objext \ 4924 conftest$ac_exeext conftest.$ac_ext 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4926$as_echo "$supported" >&6; } 4927 CFLAGS="$xorg_testset_save_CFLAGS" 4928 4929 if test "$supported" = "yes" ; then 4930 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4931 found="yes" 4932 fi 4933 fi 4934 4935 4936 4937 4938 4939 4940 4941xorg_testset_save_CFLAGS="$CFLAGS" 4942 4943if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4946$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4948/* end confdefs.h. */ 4949int i; 4950_ACEOF 4951if ac_fn_c_try_compile "$LINENO"; then : 4952 xorg_testset_unknown_warning_option=yes 4953else 4954 xorg_testset_unknown_warning_option=no 4955fi 4956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 4958$as_echo "$xorg_testset_unknown_warning_option" >&6; } 4959 CFLAGS="$xorg_testset_save_CFLAGS" 4960fi 4961 4962if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4963 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4965 fi 4966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4968$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4970/* end confdefs.h. */ 4971int i; 4972_ACEOF 4973if ac_fn_c_try_compile "$LINENO"; then : 4974 xorg_testset_unused_command_line_argument=yes 4975else 4976 xorg_testset_unused_command_line_argument=no 4977fi 4978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 4980$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 4981 CFLAGS="$xorg_testset_save_CFLAGS" 4982fi 4983 4984found="no" 4985 4986 if test $found = "no" ; then 4987 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4989 fi 4990 4991 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4993 fi 4994 4995 CFLAGS="$CFLAGS -Wpointer-arith" 4996 4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4998$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5000/* end confdefs.h. */ 5001int i; 5002int 5003main () 5004{ 5005 5006 ; 5007 return 0; 5008} 5009_ACEOF 5010if ac_fn_c_try_link "$LINENO"; then : 5011 supported=yes 5012else 5013 supported=no 5014fi 5015rm -f core conftest.err conftest.$ac_objext \ 5016 conftest$ac_exeext conftest.$ac_ext 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5018$as_echo "$supported" >&6; } 5019 CFLAGS="$xorg_testset_save_CFLAGS" 5020 5021 if test "$supported" = "yes" ; then 5022 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5023 found="yes" 5024 fi 5025 fi 5026 5027 5028 5029 5030 5031 5032 5033xorg_testset_save_CFLAGS="$CFLAGS" 5034 5035if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5038$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5040/* end confdefs.h. */ 5041int i; 5042_ACEOF 5043if ac_fn_c_try_compile "$LINENO"; then : 5044 xorg_testset_unknown_warning_option=yes 5045else 5046 xorg_testset_unknown_warning_option=no 5047fi 5048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5050$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5051 CFLAGS="$xorg_testset_save_CFLAGS" 5052fi 5053 5054if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5055 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5057 fi 5058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5062/* end confdefs.h. */ 5063int i; 5064_ACEOF 5065if ac_fn_c_try_compile "$LINENO"; then : 5066 xorg_testset_unused_command_line_argument=yes 5067else 5068 xorg_testset_unused_command_line_argument=no 5069fi 5070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5072$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5073 CFLAGS="$xorg_testset_save_CFLAGS" 5074fi 5075 5076found="no" 5077 5078 if test $found = "no" ; then 5079 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5081 fi 5082 5083 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5085 fi 5086 5087 CFLAGS="$CFLAGS -Wstrict-prototypes" 5088 5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5090$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5092/* end confdefs.h. */ 5093int i; 5094int 5095main () 5096{ 5097 5098 ; 5099 return 0; 5100} 5101_ACEOF 5102if ac_fn_c_try_link "$LINENO"; then : 5103 supported=yes 5104else 5105 supported=no 5106fi 5107rm -f core conftest.err conftest.$ac_objext \ 5108 conftest$ac_exeext conftest.$ac_ext 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5110$as_echo "$supported" >&6; } 5111 CFLAGS="$xorg_testset_save_CFLAGS" 5112 5113 if test "$supported" = "yes" ; then 5114 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5115 found="yes" 5116 fi 5117 fi 5118 5119 5120 5121 5122 5123 5124 5125xorg_testset_save_CFLAGS="$CFLAGS" 5126 5127if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5132/* end confdefs.h. */ 5133int i; 5134_ACEOF 5135if ac_fn_c_try_compile "$LINENO"; then : 5136 xorg_testset_unknown_warning_option=yes 5137else 5138 xorg_testset_unknown_warning_option=no 5139fi 5140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5142$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5143 CFLAGS="$xorg_testset_save_CFLAGS" 5144fi 5145 5146if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5147 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5149 fi 5150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5152$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5154/* end confdefs.h. */ 5155int i; 5156_ACEOF 5157if ac_fn_c_try_compile "$LINENO"; then : 5158 xorg_testset_unused_command_line_argument=yes 5159else 5160 xorg_testset_unused_command_line_argument=no 5161fi 5162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5164$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5165 CFLAGS="$xorg_testset_save_CFLAGS" 5166fi 5167 5168found="no" 5169 5170 if test $found = "no" ; then 5171 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5173 fi 5174 5175 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5177 fi 5178 5179 CFLAGS="$CFLAGS -Wmissing-prototypes" 5180 5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5182$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5184/* end confdefs.h. */ 5185int i; 5186int 5187main () 5188{ 5189 5190 ; 5191 return 0; 5192} 5193_ACEOF 5194if ac_fn_c_try_link "$LINENO"; then : 5195 supported=yes 5196else 5197 supported=no 5198fi 5199rm -f core conftest.err conftest.$ac_objext \ 5200 conftest$ac_exeext conftest.$ac_ext 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5202$as_echo "$supported" >&6; } 5203 CFLAGS="$xorg_testset_save_CFLAGS" 5204 5205 if test "$supported" = "yes" ; then 5206 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5207 found="yes" 5208 fi 5209 fi 5210 5211 5212 5213 5214 5215 5216 5217xorg_testset_save_CFLAGS="$CFLAGS" 5218 5219if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5222$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5224/* end confdefs.h. */ 5225int i; 5226_ACEOF 5227if ac_fn_c_try_compile "$LINENO"; then : 5228 xorg_testset_unknown_warning_option=yes 5229else 5230 xorg_testset_unknown_warning_option=no 5231fi 5232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5234$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5235 CFLAGS="$xorg_testset_save_CFLAGS" 5236fi 5237 5238if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5239 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5241 fi 5242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5244$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5246/* end confdefs.h. */ 5247int i; 5248_ACEOF 5249if ac_fn_c_try_compile "$LINENO"; then : 5250 xorg_testset_unused_command_line_argument=yes 5251else 5252 xorg_testset_unused_command_line_argument=no 5253fi 5254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5256$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5257 CFLAGS="$xorg_testset_save_CFLAGS" 5258fi 5259 5260found="no" 5261 5262 if test $found = "no" ; then 5263 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5265 fi 5266 5267 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5269 fi 5270 5271 CFLAGS="$CFLAGS -Wmissing-declarations" 5272 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5274$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5276/* end confdefs.h. */ 5277int i; 5278int 5279main () 5280{ 5281 5282 ; 5283 return 0; 5284} 5285_ACEOF 5286if ac_fn_c_try_link "$LINENO"; then : 5287 supported=yes 5288else 5289 supported=no 5290fi 5291rm -f core conftest.err conftest.$ac_objext \ 5292 conftest$ac_exeext conftest.$ac_ext 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5294$as_echo "$supported" >&6; } 5295 CFLAGS="$xorg_testset_save_CFLAGS" 5296 5297 if test "$supported" = "yes" ; then 5298 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5299 found="yes" 5300 fi 5301 fi 5302 5303 5304 5305 5306 5307 5308 5309xorg_testset_save_CFLAGS="$CFLAGS" 5310 5311if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5314$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5316/* end confdefs.h. */ 5317int i; 5318_ACEOF 5319if ac_fn_c_try_compile "$LINENO"; then : 5320 xorg_testset_unknown_warning_option=yes 5321else 5322 xorg_testset_unknown_warning_option=no 5323fi 5324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5326$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5327 CFLAGS="$xorg_testset_save_CFLAGS" 5328fi 5329 5330if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5331 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5333 fi 5334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5336$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5338/* end confdefs.h. */ 5339int i; 5340_ACEOF 5341if ac_fn_c_try_compile "$LINENO"; then : 5342 xorg_testset_unused_command_line_argument=yes 5343else 5344 xorg_testset_unused_command_line_argument=no 5345fi 5346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5348$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5349 CFLAGS="$xorg_testset_save_CFLAGS" 5350fi 5351 5352found="no" 5353 5354 if test $found = "no" ; then 5355 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5357 fi 5358 5359 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5361 fi 5362 5363 CFLAGS="$CFLAGS -Wnested-externs" 5364 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5366$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5368/* end confdefs.h. */ 5369int i; 5370int 5371main () 5372{ 5373 5374 ; 5375 return 0; 5376} 5377_ACEOF 5378if ac_fn_c_try_link "$LINENO"; then : 5379 supported=yes 5380else 5381 supported=no 5382fi 5383rm -f core conftest.err conftest.$ac_objext \ 5384 conftest$ac_exeext conftest.$ac_ext 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5386$as_echo "$supported" >&6; } 5387 CFLAGS="$xorg_testset_save_CFLAGS" 5388 5389 if test "$supported" = "yes" ; then 5390 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5391 found="yes" 5392 fi 5393 fi 5394 5395 5396 5397 5398 5399 5400 5401xorg_testset_save_CFLAGS="$CFLAGS" 5402 5403if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5406$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5408/* end confdefs.h. */ 5409int i; 5410_ACEOF 5411if ac_fn_c_try_compile "$LINENO"; then : 5412 xorg_testset_unknown_warning_option=yes 5413else 5414 xorg_testset_unknown_warning_option=no 5415fi 5416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5418$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5419 CFLAGS="$xorg_testset_save_CFLAGS" 5420fi 5421 5422if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5423 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5425 fi 5426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5428$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5430/* end confdefs.h. */ 5431int i; 5432_ACEOF 5433if ac_fn_c_try_compile "$LINENO"; then : 5434 xorg_testset_unused_command_line_argument=yes 5435else 5436 xorg_testset_unused_command_line_argument=no 5437fi 5438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5440$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5441 CFLAGS="$xorg_testset_save_CFLAGS" 5442fi 5443 5444found="no" 5445 5446 if test $found = "no" ; then 5447 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5449 fi 5450 5451 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5453 fi 5454 5455 CFLAGS="$CFLAGS -Wbad-function-cast" 5456 5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5458$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5460/* end confdefs.h. */ 5461int i; 5462int 5463main () 5464{ 5465 5466 ; 5467 return 0; 5468} 5469_ACEOF 5470if ac_fn_c_try_link "$LINENO"; then : 5471 supported=yes 5472else 5473 supported=no 5474fi 5475rm -f core conftest.err conftest.$ac_objext \ 5476 conftest$ac_exeext conftest.$ac_ext 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5478$as_echo "$supported" >&6; } 5479 CFLAGS="$xorg_testset_save_CFLAGS" 5480 5481 if test "$supported" = "yes" ; then 5482 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5483 found="yes" 5484 fi 5485 fi 5486 5487 5488 5489 5490 5491 5492 5493xorg_testset_save_CFLAGS="$CFLAGS" 5494 5495if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5498$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5500/* end confdefs.h. */ 5501int i; 5502_ACEOF 5503if ac_fn_c_try_compile "$LINENO"; then : 5504 xorg_testset_unknown_warning_option=yes 5505else 5506 xorg_testset_unknown_warning_option=no 5507fi 5508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5510$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5511 CFLAGS="$xorg_testset_save_CFLAGS" 5512fi 5513 5514if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5515 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5517 fi 5518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5520$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5522/* end confdefs.h. */ 5523int i; 5524_ACEOF 5525if ac_fn_c_try_compile "$LINENO"; then : 5526 xorg_testset_unused_command_line_argument=yes 5527else 5528 xorg_testset_unused_command_line_argument=no 5529fi 5530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5532$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5533 CFLAGS="$xorg_testset_save_CFLAGS" 5534fi 5535 5536found="no" 5537 5538 if test $found = "no" ; then 5539 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5541 fi 5542 5543 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5545 fi 5546 5547 CFLAGS="$CFLAGS -Wformat=2" 5548 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5550$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5552/* end confdefs.h. */ 5553int i; 5554int 5555main () 5556{ 5557 5558 ; 5559 return 0; 5560} 5561_ACEOF 5562if ac_fn_c_try_link "$LINENO"; then : 5563 supported=yes 5564else 5565 supported=no 5566fi 5567rm -f core conftest.err conftest.$ac_objext \ 5568 conftest$ac_exeext conftest.$ac_ext 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5570$as_echo "$supported" >&6; } 5571 CFLAGS="$xorg_testset_save_CFLAGS" 5572 5573 if test "$supported" = "yes" ; then 5574 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5575 found="yes" 5576 fi 5577 fi 5578 5579 if test $found = "no" ; then 5580 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5582 fi 5583 5584 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5586 fi 5587 5588 CFLAGS="$CFLAGS -Wformat" 5589 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5591$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5593/* end confdefs.h. */ 5594int i; 5595int 5596main () 5597{ 5598 5599 ; 5600 return 0; 5601} 5602_ACEOF 5603if ac_fn_c_try_link "$LINENO"; then : 5604 supported=yes 5605else 5606 supported=no 5607fi 5608rm -f core conftest.err conftest.$ac_objext \ 5609 conftest$ac_exeext conftest.$ac_ext 5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5611$as_echo "$supported" >&6; } 5612 CFLAGS="$xorg_testset_save_CFLAGS" 5613 5614 if test "$supported" = "yes" ; then 5615 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5616 found="yes" 5617 fi 5618 fi 5619 5620 5621 5622 5623 5624 5625 5626xorg_testset_save_CFLAGS="$CFLAGS" 5627 5628if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5631$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5633/* end confdefs.h. */ 5634int i; 5635_ACEOF 5636if ac_fn_c_try_compile "$LINENO"; then : 5637 xorg_testset_unknown_warning_option=yes 5638else 5639 xorg_testset_unknown_warning_option=no 5640fi 5641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5643$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5644 CFLAGS="$xorg_testset_save_CFLAGS" 5645fi 5646 5647if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5648 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5650 fi 5651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5653$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5655/* end confdefs.h. */ 5656int i; 5657_ACEOF 5658if ac_fn_c_try_compile "$LINENO"; then : 5659 xorg_testset_unused_command_line_argument=yes 5660else 5661 xorg_testset_unused_command_line_argument=no 5662fi 5663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5665$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5666 CFLAGS="$xorg_testset_save_CFLAGS" 5667fi 5668 5669found="no" 5670 5671 if test $found = "no" ; then 5672 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5674 fi 5675 5676 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5678 fi 5679 5680 CFLAGS="$CFLAGS -Wold-style-definition" 5681 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5683$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5685/* end confdefs.h. */ 5686int i; 5687int 5688main () 5689{ 5690 5691 ; 5692 return 0; 5693} 5694_ACEOF 5695if ac_fn_c_try_link "$LINENO"; then : 5696 supported=yes 5697else 5698 supported=no 5699fi 5700rm -f core conftest.err conftest.$ac_objext \ 5701 conftest$ac_exeext conftest.$ac_ext 5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5703$as_echo "$supported" >&6; } 5704 CFLAGS="$xorg_testset_save_CFLAGS" 5705 5706 if test "$supported" = "yes" ; then 5707 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5708 found="yes" 5709 fi 5710 fi 5711 5712 5713 5714 5715 5716 5717 5718xorg_testset_save_CFLAGS="$CFLAGS" 5719 5720if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5723$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5725/* end confdefs.h. */ 5726int i; 5727_ACEOF 5728if ac_fn_c_try_compile "$LINENO"; then : 5729 xorg_testset_unknown_warning_option=yes 5730else 5731 xorg_testset_unknown_warning_option=no 5732fi 5733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5735$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5736 CFLAGS="$xorg_testset_save_CFLAGS" 5737fi 5738 5739if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5740 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5742 fi 5743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5745$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5747/* end confdefs.h. */ 5748int i; 5749_ACEOF 5750if ac_fn_c_try_compile "$LINENO"; then : 5751 xorg_testset_unused_command_line_argument=yes 5752else 5753 xorg_testset_unused_command_line_argument=no 5754fi 5755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5757$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5758 CFLAGS="$xorg_testset_save_CFLAGS" 5759fi 5760 5761found="no" 5762 5763 if test $found = "no" ; then 5764 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5766 fi 5767 5768 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5770 fi 5771 5772 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5773 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5775$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5777/* end confdefs.h. */ 5778int i; 5779int 5780main () 5781{ 5782 5783 ; 5784 return 0; 5785} 5786_ACEOF 5787if ac_fn_c_try_link "$LINENO"; then : 5788 supported=yes 5789else 5790 supported=no 5791fi 5792rm -f core conftest.err conftest.$ac_objext \ 5793 conftest$ac_exeext conftest.$ac_ext 5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5795$as_echo "$supported" >&6; } 5796 CFLAGS="$xorg_testset_save_CFLAGS" 5797 5798 if test "$supported" = "yes" ; then 5799 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5800 found="yes" 5801 fi 5802 fi 5803 5804 5805 5806# This chunk adds additional warnings that could catch undesired effects. 5807 5808 5809 5810 5811 5812xorg_testset_save_CFLAGS="$CFLAGS" 5813 5814if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5817$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5819/* end confdefs.h. */ 5820int i; 5821_ACEOF 5822if ac_fn_c_try_compile "$LINENO"; then : 5823 xorg_testset_unknown_warning_option=yes 5824else 5825 xorg_testset_unknown_warning_option=no 5826fi 5827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5829$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5830 CFLAGS="$xorg_testset_save_CFLAGS" 5831fi 5832 5833if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5834 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5836 fi 5837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5839$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5841/* end confdefs.h. */ 5842int i; 5843_ACEOF 5844if ac_fn_c_try_compile "$LINENO"; then : 5845 xorg_testset_unused_command_line_argument=yes 5846else 5847 xorg_testset_unused_command_line_argument=no 5848fi 5849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5851$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5852 CFLAGS="$xorg_testset_save_CFLAGS" 5853fi 5854 5855found="no" 5856 5857 if test $found = "no" ; then 5858 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5860 fi 5861 5862 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5864 fi 5865 5866 CFLAGS="$CFLAGS -Wunused" 5867 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5869$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5871/* end confdefs.h. */ 5872int i; 5873int 5874main () 5875{ 5876 5877 ; 5878 return 0; 5879} 5880_ACEOF 5881if ac_fn_c_try_link "$LINENO"; then : 5882 supported=yes 5883else 5884 supported=no 5885fi 5886rm -f core conftest.err conftest.$ac_objext \ 5887 conftest$ac_exeext conftest.$ac_ext 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5889$as_echo "$supported" >&6; } 5890 CFLAGS="$xorg_testset_save_CFLAGS" 5891 5892 if test "$supported" = "yes" ; then 5893 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5894 found="yes" 5895 fi 5896 fi 5897 5898 5899 5900 5901 5902 5903 5904xorg_testset_save_CFLAGS="$CFLAGS" 5905 5906if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5909$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5911/* end confdefs.h. */ 5912int i; 5913_ACEOF 5914if ac_fn_c_try_compile "$LINENO"; then : 5915 xorg_testset_unknown_warning_option=yes 5916else 5917 xorg_testset_unknown_warning_option=no 5918fi 5919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5921$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5922 CFLAGS="$xorg_testset_save_CFLAGS" 5923fi 5924 5925if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5926 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5928 fi 5929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5931$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5933/* end confdefs.h. */ 5934int i; 5935_ACEOF 5936if ac_fn_c_try_compile "$LINENO"; then : 5937 xorg_testset_unused_command_line_argument=yes 5938else 5939 xorg_testset_unused_command_line_argument=no 5940fi 5941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5943$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5944 CFLAGS="$xorg_testset_save_CFLAGS" 5945fi 5946 5947found="no" 5948 5949 if test $found = "no" ; then 5950 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5952 fi 5953 5954 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5956 fi 5957 5958 CFLAGS="$CFLAGS -Wuninitialized" 5959 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5961$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5963/* end confdefs.h. */ 5964int i; 5965int 5966main () 5967{ 5968 5969 ; 5970 return 0; 5971} 5972_ACEOF 5973if ac_fn_c_try_link "$LINENO"; then : 5974 supported=yes 5975else 5976 supported=no 5977fi 5978rm -f core conftest.err conftest.$ac_objext \ 5979 conftest$ac_exeext conftest.$ac_ext 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5981$as_echo "$supported" >&6; } 5982 CFLAGS="$xorg_testset_save_CFLAGS" 5983 5984 if test "$supported" = "yes" ; then 5985 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5986 found="yes" 5987 fi 5988 fi 5989 5990 5991 5992 5993 5994 5995 5996xorg_testset_save_CFLAGS="$CFLAGS" 5997 5998if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6001$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6003/* end confdefs.h. */ 6004int i; 6005_ACEOF 6006if ac_fn_c_try_compile "$LINENO"; then : 6007 xorg_testset_unknown_warning_option=yes 6008else 6009 xorg_testset_unknown_warning_option=no 6010fi 6011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6013$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6014 CFLAGS="$xorg_testset_save_CFLAGS" 6015fi 6016 6017if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6018 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6020 fi 6021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6023$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6025/* end confdefs.h. */ 6026int i; 6027_ACEOF 6028if ac_fn_c_try_compile "$LINENO"; then : 6029 xorg_testset_unused_command_line_argument=yes 6030else 6031 xorg_testset_unused_command_line_argument=no 6032fi 6033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6035$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6036 CFLAGS="$xorg_testset_save_CFLAGS" 6037fi 6038 6039found="no" 6040 6041 if test $found = "no" ; then 6042 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6044 fi 6045 6046 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6048 fi 6049 6050 CFLAGS="$CFLAGS -Wshadow" 6051 6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6053$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6055/* end confdefs.h. */ 6056int i; 6057int 6058main () 6059{ 6060 6061 ; 6062 return 0; 6063} 6064_ACEOF 6065if ac_fn_c_try_link "$LINENO"; then : 6066 supported=yes 6067else 6068 supported=no 6069fi 6070rm -f core conftest.err conftest.$ac_objext \ 6071 conftest$ac_exeext conftest.$ac_ext 6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6073$as_echo "$supported" >&6; } 6074 CFLAGS="$xorg_testset_save_CFLAGS" 6075 6076 if test "$supported" = "yes" ; then 6077 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6078 found="yes" 6079 fi 6080 fi 6081 6082 6083 6084 6085 6086 6087 6088xorg_testset_save_CFLAGS="$CFLAGS" 6089 6090if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6095/* end confdefs.h. */ 6096int i; 6097_ACEOF 6098if ac_fn_c_try_compile "$LINENO"; then : 6099 xorg_testset_unknown_warning_option=yes 6100else 6101 xorg_testset_unknown_warning_option=no 6102fi 6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6105$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6106 CFLAGS="$xorg_testset_save_CFLAGS" 6107fi 6108 6109if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6110 if test "x$xorg_testset_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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6117/* end confdefs.h. */ 6118int i; 6119_ACEOF 6120if ac_fn_c_try_compile "$LINENO"; then : 6121 xorg_testset_unused_command_line_argument=yes 6122else 6123 xorg_testset_unused_command_line_argument=no 6124fi 6125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6127$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6128 CFLAGS="$xorg_testset_save_CFLAGS" 6129fi 6130 6131found="no" 6132 6133 if test $found = "no" ; then 6134 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6136 fi 6137 6138 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6140 fi 6141 6142 CFLAGS="$CFLAGS -Wcast-qual" 6143 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6145$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6147/* end confdefs.h. */ 6148int i; 6149int 6150main () 6151{ 6152 6153 ; 6154 return 0; 6155} 6156_ACEOF 6157if ac_fn_c_try_link "$LINENO"; then : 6158 supported=yes 6159else 6160 supported=no 6161fi 6162rm -f core conftest.err conftest.$ac_objext \ 6163 conftest$ac_exeext conftest.$ac_ext 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6165$as_echo "$supported" >&6; } 6166 CFLAGS="$xorg_testset_save_CFLAGS" 6167 6168 if test "$supported" = "yes" ; then 6169 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6170 found="yes" 6171 fi 6172 fi 6173 6174 6175 6176 6177 6178 6179 6180xorg_testset_save_CFLAGS="$CFLAGS" 6181 6182if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6187/* end confdefs.h. */ 6188int i; 6189_ACEOF 6190if ac_fn_c_try_compile "$LINENO"; then : 6191 xorg_testset_unknown_warning_option=yes 6192else 6193 xorg_testset_unknown_warning_option=no 6194fi 6195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6197$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6198 CFLAGS="$xorg_testset_save_CFLAGS" 6199fi 6200 6201if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6202 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6204 fi 6205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6207$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6209/* end confdefs.h. */ 6210int i; 6211_ACEOF 6212if ac_fn_c_try_compile "$LINENO"; then : 6213 xorg_testset_unused_command_line_argument=yes 6214else 6215 xorg_testset_unused_command_line_argument=no 6216fi 6217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6219$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6220 CFLAGS="$xorg_testset_save_CFLAGS" 6221fi 6222 6223found="no" 6224 6225 if test $found = "no" ; then 6226 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6228 fi 6229 6230 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6232 fi 6233 6234 CFLAGS="$CFLAGS -Wmissing-noreturn" 6235 6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6237$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6239/* end confdefs.h. */ 6240int i; 6241int 6242main () 6243{ 6244 6245 ; 6246 return 0; 6247} 6248_ACEOF 6249if ac_fn_c_try_link "$LINENO"; then : 6250 supported=yes 6251else 6252 supported=no 6253fi 6254rm -f core conftest.err conftest.$ac_objext \ 6255 conftest$ac_exeext conftest.$ac_ext 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6257$as_echo "$supported" >&6; } 6258 CFLAGS="$xorg_testset_save_CFLAGS" 6259 6260 if test "$supported" = "yes" ; then 6261 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6262 found="yes" 6263 fi 6264 fi 6265 6266 6267 6268 6269 6270 6271 6272xorg_testset_save_CFLAGS="$CFLAGS" 6273 6274if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6277$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6279/* end confdefs.h. */ 6280int i; 6281_ACEOF 6282if ac_fn_c_try_compile "$LINENO"; then : 6283 xorg_testset_unknown_warning_option=yes 6284else 6285 xorg_testset_unknown_warning_option=no 6286fi 6287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6289$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6290 CFLAGS="$xorg_testset_save_CFLAGS" 6291fi 6292 6293if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6294 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6296 fi 6297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6299$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6301/* end confdefs.h. */ 6302int i; 6303_ACEOF 6304if ac_fn_c_try_compile "$LINENO"; then : 6305 xorg_testset_unused_command_line_argument=yes 6306else 6307 xorg_testset_unused_command_line_argument=no 6308fi 6309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6311$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6312 CFLAGS="$xorg_testset_save_CFLAGS" 6313fi 6314 6315found="no" 6316 6317 if test $found = "no" ; then 6318 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6320 fi 6321 6322 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6324 fi 6325 6326 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6327 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6329$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6331/* end confdefs.h. */ 6332int i; 6333int 6334main () 6335{ 6336 6337 ; 6338 return 0; 6339} 6340_ACEOF 6341if ac_fn_c_try_link "$LINENO"; then : 6342 supported=yes 6343else 6344 supported=no 6345fi 6346rm -f core conftest.err conftest.$ac_objext \ 6347 conftest$ac_exeext conftest.$ac_ext 6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6349$as_echo "$supported" >&6; } 6350 CFLAGS="$xorg_testset_save_CFLAGS" 6351 6352 if test "$supported" = "yes" ; then 6353 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6354 found="yes" 6355 fi 6356 fi 6357 6358 6359 6360 6361 6362 6363 6364xorg_testset_save_CFLAGS="$CFLAGS" 6365 6366if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6369$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6371/* end confdefs.h. */ 6372int i; 6373_ACEOF 6374if ac_fn_c_try_compile "$LINENO"; then : 6375 xorg_testset_unknown_warning_option=yes 6376else 6377 xorg_testset_unknown_warning_option=no 6378fi 6379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6381$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6382 CFLAGS="$xorg_testset_save_CFLAGS" 6383fi 6384 6385if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6386 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6388 fi 6389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6393/* end confdefs.h. */ 6394int i; 6395_ACEOF 6396if ac_fn_c_try_compile "$LINENO"; then : 6397 xorg_testset_unused_command_line_argument=yes 6398else 6399 xorg_testset_unused_command_line_argument=no 6400fi 6401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6403$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6404 CFLAGS="$xorg_testset_save_CFLAGS" 6405fi 6406 6407found="no" 6408 6409 if test $found = "no" ; then 6410 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6412 fi 6413 6414 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6416 fi 6417 6418 CFLAGS="$CFLAGS -Wredundant-decls" 6419 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6421$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6423/* end confdefs.h. */ 6424int i; 6425int 6426main () 6427{ 6428 6429 ; 6430 return 0; 6431} 6432_ACEOF 6433if ac_fn_c_try_link "$LINENO"; then : 6434 supported=yes 6435else 6436 supported=no 6437fi 6438rm -f core conftest.err conftest.$ac_objext \ 6439 conftest$ac_exeext conftest.$ac_ext 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6441$as_echo "$supported" >&6; } 6442 CFLAGS="$xorg_testset_save_CFLAGS" 6443 6444 if test "$supported" = "yes" ; then 6445 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6446 found="yes" 6447 fi 6448 fi 6449 6450 6451 6452# These are currently disabled because they are noisy. They will be enabled 6453# in the future once the codebase is sufficiently modernized to silence 6454# them. For now, I don't want them to drown out the other warnings. 6455# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op]) 6456# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses]) 6457# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align]) 6458 6459# Turn some warnings into errors, so we don't accidently get successful builds 6460# when there are problems that should be fixed. 6461 6462if test "x$SELECTIVE_WERROR" = "xyes" ; then 6463 6464 6465 6466 6467 6468xorg_testset_save_CFLAGS="$CFLAGS" 6469 6470if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6473$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6475/* end confdefs.h. */ 6476int i; 6477_ACEOF 6478if ac_fn_c_try_compile "$LINENO"; then : 6479 xorg_testset_unknown_warning_option=yes 6480else 6481 xorg_testset_unknown_warning_option=no 6482fi 6483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6485$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6486 CFLAGS="$xorg_testset_save_CFLAGS" 6487fi 6488 6489if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6490 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6492 fi 6493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6495$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6497/* end confdefs.h. */ 6498int i; 6499_ACEOF 6500if ac_fn_c_try_compile "$LINENO"; then : 6501 xorg_testset_unused_command_line_argument=yes 6502else 6503 xorg_testset_unused_command_line_argument=no 6504fi 6505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6507$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6508 CFLAGS="$xorg_testset_save_CFLAGS" 6509fi 6510 6511found="no" 6512 6513 if test $found = "no" ; then 6514 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6516 fi 6517 6518 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6520 fi 6521 6522 CFLAGS="$CFLAGS -Werror=implicit" 6523 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6525$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6527/* end confdefs.h. */ 6528int i; 6529int 6530main () 6531{ 6532 6533 ; 6534 return 0; 6535} 6536_ACEOF 6537if ac_fn_c_try_link "$LINENO"; then : 6538 supported=yes 6539else 6540 supported=no 6541fi 6542rm -f core conftest.err conftest.$ac_objext \ 6543 conftest$ac_exeext conftest.$ac_ext 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6545$as_echo "$supported" >&6; } 6546 CFLAGS="$xorg_testset_save_CFLAGS" 6547 6548 if test "$supported" = "yes" ; then 6549 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6550 found="yes" 6551 fi 6552 fi 6553 6554 if test $found = "no" ; then 6555 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6557 fi 6558 6559 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6561 fi 6562 6563 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6564 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6566$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6568/* end confdefs.h. */ 6569int i; 6570int 6571main () 6572{ 6573 6574 ; 6575 return 0; 6576} 6577_ACEOF 6578if ac_fn_c_try_link "$LINENO"; then : 6579 supported=yes 6580else 6581 supported=no 6582fi 6583rm -f core conftest.err conftest.$ac_objext \ 6584 conftest$ac_exeext conftest.$ac_ext 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6586$as_echo "$supported" >&6; } 6587 CFLAGS="$xorg_testset_save_CFLAGS" 6588 6589 if test "$supported" = "yes" ; then 6590 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6591 found="yes" 6592 fi 6593 fi 6594 6595 6596 6597 6598 6599 6600 6601xorg_testset_save_CFLAGS="$CFLAGS" 6602 6603if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6606$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6608/* end confdefs.h. */ 6609int i; 6610_ACEOF 6611if ac_fn_c_try_compile "$LINENO"; then : 6612 xorg_testset_unknown_warning_option=yes 6613else 6614 xorg_testset_unknown_warning_option=no 6615fi 6616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6618$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6619 CFLAGS="$xorg_testset_save_CFLAGS" 6620fi 6621 6622if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6623 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6625 fi 6626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6628$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6630/* end confdefs.h. */ 6631int i; 6632_ACEOF 6633if ac_fn_c_try_compile "$LINENO"; then : 6634 xorg_testset_unused_command_line_argument=yes 6635else 6636 xorg_testset_unused_command_line_argument=no 6637fi 6638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6640$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6641 CFLAGS="$xorg_testset_save_CFLAGS" 6642fi 6643 6644found="no" 6645 6646 if test $found = "no" ; then 6647 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6649 fi 6650 6651 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6653 fi 6654 6655 CFLAGS="$CFLAGS -Werror=nonnull" 6656 6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6658$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6660/* end confdefs.h. */ 6661int i; 6662int 6663main () 6664{ 6665 6666 ; 6667 return 0; 6668} 6669_ACEOF 6670if ac_fn_c_try_link "$LINENO"; then : 6671 supported=yes 6672else 6673 supported=no 6674fi 6675rm -f core conftest.err conftest.$ac_objext \ 6676 conftest$ac_exeext conftest.$ac_ext 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6678$as_echo "$supported" >&6; } 6679 CFLAGS="$xorg_testset_save_CFLAGS" 6680 6681 if test "$supported" = "yes" ; then 6682 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6683 found="yes" 6684 fi 6685 fi 6686 6687 6688 6689 6690 6691 6692 6693xorg_testset_save_CFLAGS="$CFLAGS" 6694 6695if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6698$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6700/* end confdefs.h. */ 6701int i; 6702_ACEOF 6703if ac_fn_c_try_compile "$LINENO"; then : 6704 xorg_testset_unknown_warning_option=yes 6705else 6706 xorg_testset_unknown_warning_option=no 6707fi 6708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6710$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6711 CFLAGS="$xorg_testset_save_CFLAGS" 6712fi 6713 6714if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6715 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6717 fi 6718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6720$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6722/* end confdefs.h. */ 6723int i; 6724_ACEOF 6725if ac_fn_c_try_compile "$LINENO"; then : 6726 xorg_testset_unused_command_line_argument=yes 6727else 6728 xorg_testset_unused_command_line_argument=no 6729fi 6730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6732$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6733 CFLAGS="$xorg_testset_save_CFLAGS" 6734fi 6735 6736found="no" 6737 6738 if test $found = "no" ; then 6739 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6741 fi 6742 6743 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6745 fi 6746 6747 CFLAGS="$CFLAGS -Werror=init-self" 6748 6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6750$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6752/* end confdefs.h. */ 6753int i; 6754int 6755main () 6756{ 6757 6758 ; 6759 return 0; 6760} 6761_ACEOF 6762if ac_fn_c_try_link "$LINENO"; then : 6763 supported=yes 6764else 6765 supported=no 6766fi 6767rm -f core conftest.err conftest.$ac_objext \ 6768 conftest$ac_exeext conftest.$ac_ext 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6770$as_echo "$supported" >&6; } 6771 CFLAGS="$xorg_testset_save_CFLAGS" 6772 6773 if test "$supported" = "yes" ; then 6774 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6775 found="yes" 6776 fi 6777 fi 6778 6779 6780 6781 6782 6783 6784 6785xorg_testset_save_CFLAGS="$CFLAGS" 6786 6787if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6790$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6792/* end confdefs.h. */ 6793int i; 6794_ACEOF 6795if ac_fn_c_try_compile "$LINENO"; then : 6796 xorg_testset_unknown_warning_option=yes 6797else 6798 xorg_testset_unknown_warning_option=no 6799fi 6800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6802$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6803 CFLAGS="$xorg_testset_save_CFLAGS" 6804fi 6805 6806if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6807 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6809 fi 6810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6812$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6814/* end confdefs.h. */ 6815int i; 6816_ACEOF 6817if ac_fn_c_try_compile "$LINENO"; then : 6818 xorg_testset_unused_command_line_argument=yes 6819else 6820 xorg_testset_unused_command_line_argument=no 6821fi 6822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6824$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6825 CFLAGS="$xorg_testset_save_CFLAGS" 6826fi 6827 6828found="no" 6829 6830 if test $found = "no" ; then 6831 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6833 fi 6834 6835 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6837 fi 6838 6839 CFLAGS="$CFLAGS -Werror=main" 6840 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 6842$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6844/* end confdefs.h. */ 6845int i; 6846int 6847main () 6848{ 6849 6850 ; 6851 return 0; 6852} 6853_ACEOF 6854if ac_fn_c_try_link "$LINENO"; then : 6855 supported=yes 6856else 6857 supported=no 6858fi 6859rm -f core conftest.err conftest.$ac_objext \ 6860 conftest$ac_exeext conftest.$ac_ext 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6862$as_echo "$supported" >&6; } 6863 CFLAGS="$xorg_testset_save_CFLAGS" 6864 6865 if test "$supported" = "yes" ; then 6866 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 6867 found="yes" 6868 fi 6869 fi 6870 6871 6872 6873 6874 6875 6876 6877xorg_testset_save_CFLAGS="$CFLAGS" 6878 6879if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6882$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6884/* end confdefs.h. */ 6885int i; 6886_ACEOF 6887if ac_fn_c_try_compile "$LINENO"; then : 6888 xorg_testset_unknown_warning_option=yes 6889else 6890 xorg_testset_unknown_warning_option=no 6891fi 6892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6894$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6895 CFLAGS="$xorg_testset_save_CFLAGS" 6896fi 6897 6898if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6899 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6901 fi 6902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6904$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6906/* end confdefs.h. */ 6907int i; 6908_ACEOF 6909if ac_fn_c_try_compile "$LINENO"; then : 6910 xorg_testset_unused_command_line_argument=yes 6911else 6912 xorg_testset_unused_command_line_argument=no 6913fi 6914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6916$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6917 CFLAGS="$xorg_testset_save_CFLAGS" 6918fi 6919 6920found="no" 6921 6922 if test $found = "no" ; then 6923 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6925 fi 6926 6927 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6929 fi 6930 6931 CFLAGS="$CFLAGS -Werror=missing-braces" 6932 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 6934$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6936/* end confdefs.h. */ 6937int i; 6938int 6939main () 6940{ 6941 6942 ; 6943 return 0; 6944} 6945_ACEOF 6946if ac_fn_c_try_link "$LINENO"; then : 6947 supported=yes 6948else 6949 supported=no 6950fi 6951rm -f core conftest.err conftest.$ac_objext \ 6952 conftest$ac_exeext conftest.$ac_ext 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6954$as_echo "$supported" >&6; } 6955 CFLAGS="$xorg_testset_save_CFLAGS" 6956 6957 if test "$supported" = "yes" ; then 6958 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 6959 found="yes" 6960 fi 6961 fi 6962 6963 6964 6965 6966 6967 6968 6969xorg_testset_save_CFLAGS="$CFLAGS" 6970 6971if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6974$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6976/* end confdefs.h. */ 6977int i; 6978_ACEOF 6979if ac_fn_c_try_compile "$LINENO"; then : 6980 xorg_testset_unknown_warning_option=yes 6981else 6982 xorg_testset_unknown_warning_option=no 6983fi 6984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6986$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6987 CFLAGS="$xorg_testset_save_CFLAGS" 6988fi 6989 6990if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6991 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6993 fi 6994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6998/* end confdefs.h. */ 6999int i; 7000_ACEOF 7001if ac_fn_c_try_compile "$LINENO"; then : 7002 xorg_testset_unused_command_line_argument=yes 7003else 7004 xorg_testset_unused_command_line_argument=no 7005fi 7006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7008$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7009 CFLAGS="$xorg_testset_save_CFLAGS" 7010fi 7011 7012found="no" 7013 7014 if test $found = "no" ; then 7015 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7017 fi 7018 7019 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7021 fi 7022 7023 CFLAGS="$CFLAGS -Werror=sequence-point" 7024 7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7026$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7028/* end confdefs.h. */ 7029int i; 7030int 7031main () 7032{ 7033 7034 ; 7035 return 0; 7036} 7037_ACEOF 7038if ac_fn_c_try_link "$LINENO"; then : 7039 supported=yes 7040else 7041 supported=no 7042fi 7043rm -f core conftest.err conftest.$ac_objext \ 7044 conftest$ac_exeext conftest.$ac_ext 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7046$as_echo "$supported" >&6; } 7047 CFLAGS="$xorg_testset_save_CFLAGS" 7048 7049 if test "$supported" = "yes" ; then 7050 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7051 found="yes" 7052 fi 7053 fi 7054 7055 7056 7057 7058 7059 7060 7061xorg_testset_save_CFLAGS="$CFLAGS" 7062 7063if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7066$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7068/* end confdefs.h. */ 7069int i; 7070_ACEOF 7071if ac_fn_c_try_compile "$LINENO"; then : 7072 xorg_testset_unknown_warning_option=yes 7073else 7074 xorg_testset_unknown_warning_option=no 7075fi 7076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7078$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7079 CFLAGS="$xorg_testset_save_CFLAGS" 7080fi 7081 7082if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7083 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7085 fi 7086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7088$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7090/* end confdefs.h. */ 7091int i; 7092_ACEOF 7093if ac_fn_c_try_compile "$LINENO"; then : 7094 xorg_testset_unused_command_line_argument=yes 7095else 7096 xorg_testset_unused_command_line_argument=no 7097fi 7098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7100$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7101 CFLAGS="$xorg_testset_save_CFLAGS" 7102fi 7103 7104found="no" 7105 7106 if test $found = "no" ; then 7107 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7109 fi 7110 7111 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7113 fi 7114 7115 CFLAGS="$CFLAGS -Werror=return-type" 7116 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7118$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7120/* end confdefs.h. */ 7121int i; 7122int 7123main () 7124{ 7125 7126 ; 7127 return 0; 7128} 7129_ACEOF 7130if ac_fn_c_try_link "$LINENO"; then : 7131 supported=yes 7132else 7133 supported=no 7134fi 7135rm -f core conftest.err conftest.$ac_objext \ 7136 conftest$ac_exeext conftest.$ac_ext 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7138$as_echo "$supported" >&6; } 7139 CFLAGS="$xorg_testset_save_CFLAGS" 7140 7141 if test "$supported" = "yes" ; then 7142 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7143 found="yes" 7144 fi 7145 fi 7146 7147 if test $found = "no" ; then 7148 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7150 fi 7151 7152 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7154 fi 7155 7156 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7157 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7159$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7161/* end confdefs.h. */ 7162int i; 7163int 7164main () 7165{ 7166 7167 ; 7168 return 0; 7169} 7170_ACEOF 7171if ac_fn_c_try_link "$LINENO"; then : 7172 supported=yes 7173else 7174 supported=no 7175fi 7176rm -f core conftest.err conftest.$ac_objext \ 7177 conftest$ac_exeext conftest.$ac_ext 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7179$as_echo "$supported" >&6; } 7180 CFLAGS="$xorg_testset_save_CFLAGS" 7181 7182 if test "$supported" = "yes" ; then 7183 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7184 found="yes" 7185 fi 7186 fi 7187 7188 7189 7190 7191 7192 7193 7194xorg_testset_save_CFLAGS="$CFLAGS" 7195 7196if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7199$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7201/* end confdefs.h. */ 7202int i; 7203_ACEOF 7204if ac_fn_c_try_compile "$LINENO"; then : 7205 xorg_testset_unknown_warning_option=yes 7206else 7207 xorg_testset_unknown_warning_option=no 7208fi 7209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7211$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7212 CFLAGS="$xorg_testset_save_CFLAGS" 7213fi 7214 7215if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7216 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7218 fi 7219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7221$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7223/* end confdefs.h. */ 7224int i; 7225_ACEOF 7226if ac_fn_c_try_compile "$LINENO"; then : 7227 xorg_testset_unused_command_line_argument=yes 7228else 7229 xorg_testset_unused_command_line_argument=no 7230fi 7231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7233$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7234 CFLAGS="$xorg_testset_save_CFLAGS" 7235fi 7236 7237found="no" 7238 7239 if test $found = "no" ; then 7240 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7242 fi 7243 7244 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7246 fi 7247 7248 CFLAGS="$CFLAGS -Werror=trigraphs" 7249 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7251$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7253/* end confdefs.h. */ 7254int i; 7255int 7256main () 7257{ 7258 7259 ; 7260 return 0; 7261} 7262_ACEOF 7263if ac_fn_c_try_link "$LINENO"; then : 7264 supported=yes 7265else 7266 supported=no 7267fi 7268rm -f core conftest.err conftest.$ac_objext \ 7269 conftest$ac_exeext conftest.$ac_ext 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7271$as_echo "$supported" >&6; } 7272 CFLAGS="$xorg_testset_save_CFLAGS" 7273 7274 if test "$supported" = "yes" ; then 7275 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7276 found="yes" 7277 fi 7278 fi 7279 7280 7281 7282 7283 7284 7285 7286xorg_testset_save_CFLAGS="$CFLAGS" 7287 7288if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7291$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7293/* end confdefs.h. */ 7294int i; 7295_ACEOF 7296if ac_fn_c_try_compile "$LINENO"; then : 7297 xorg_testset_unknown_warning_option=yes 7298else 7299 xorg_testset_unknown_warning_option=no 7300fi 7301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7303$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7304 CFLAGS="$xorg_testset_save_CFLAGS" 7305fi 7306 7307if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7308 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7310 fi 7311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7313$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7315/* end confdefs.h. */ 7316int i; 7317_ACEOF 7318if ac_fn_c_try_compile "$LINENO"; then : 7319 xorg_testset_unused_command_line_argument=yes 7320else 7321 xorg_testset_unused_command_line_argument=no 7322fi 7323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7325$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7326 CFLAGS="$xorg_testset_save_CFLAGS" 7327fi 7328 7329found="no" 7330 7331 if test $found = "no" ; then 7332 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7334 fi 7335 7336 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7338 fi 7339 7340 CFLAGS="$CFLAGS -Werror=array-bounds" 7341 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7343$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7345/* end confdefs.h. */ 7346int i; 7347int 7348main () 7349{ 7350 7351 ; 7352 return 0; 7353} 7354_ACEOF 7355if ac_fn_c_try_link "$LINENO"; then : 7356 supported=yes 7357else 7358 supported=no 7359fi 7360rm -f core conftest.err conftest.$ac_objext \ 7361 conftest$ac_exeext conftest.$ac_ext 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7363$as_echo "$supported" >&6; } 7364 CFLAGS="$xorg_testset_save_CFLAGS" 7365 7366 if test "$supported" = "yes" ; then 7367 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7368 found="yes" 7369 fi 7370 fi 7371 7372 7373 7374 7375 7376 7377 7378xorg_testset_save_CFLAGS="$CFLAGS" 7379 7380if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7385/* end confdefs.h. */ 7386int i; 7387_ACEOF 7388if ac_fn_c_try_compile "$LINENO"; then : 7389 xorg_testset_unknown_warning_option=yes 7390else 7391 xorg_testset_unknown_warning_option=no 7392fi 7393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7395$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7396 CFLAGS="$xorg_testset_save_CFLAGS" 7397fi 7398 7399if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7400 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7402 fi 7403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7405$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7407/* end confdefs.h. */ 7408int i; 7409_ACEOF 7410if ac_fn_c_try_compile "$LINENO"; then : 7411 xorg_testset_unused_command_line_argument=yes 7412else 7413 xorg_testset_unused_command_line_argument=no 7414fi 7415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7417$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7418 CFLAGS="$xorg_testset_save_CFLAGS" 7419fi 7420 7421found="no" 7422 7423 if test $found = "no" ; then 7424 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7426 fi 7427 7428 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7430 fi 7431 7432 CFLAGS="$CFLAGS -Werror=write-strings" 7433 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7435$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7437/* end confdefs.h. */ 7438int i; 7439int 7440main () 7441{ 7442 7443 ; 7444 return 0; 7445} 7446_ACEOF 7447if ac_fn_c_try_link "$LINENO"; then : 7448 supported=yes 7449else 7450 supported=no 7451fi 7452rm -f core conftest.err conftest.$ac_objext \ 7453 conftest$ac_exeext conftest.$ac_ext 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7455$as_echo "$supported" >&6; } 7456 CFLAGS="$xorg_testset_save_CFLAGS" 7457 7458 if test "$supported" = "yes" ; then 7459 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7460 found="yes" 7461 fi 7462 fi 7463 7464 7465 7466 7467 7468 7469 7470xorg_testset_save_CFLAGS="$CFLAGS" 7471 7472if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7475$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7477/* end confdefs.h. */ 7478int i; 7479_ACEOF 7480if ac_fn_c_try_compile "$LINENO"; then : 7481 xorg_testset_unknown_warning_option=yes 7482else 7483 xorg_testset_unknown_warning_option=no 7484fi 7485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7487$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7488 CFLAGS="$xorg_testset_save_CFLAGS" 7489fi 7490 7491if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7492 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7494 fi 7495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7497$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7499/* end confdefs.h. */ 7500int i; 7501_ACEOF 7502if ac_fn_c_try_compile "$LINENO"; then : 7503 xorg_testset_unused_command_line_argument=yes 7504else 7505 xorg_testset_unused_command_line_argument=no 7506fi 7507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7509$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7510 CFLAGS="$xorg_testset_save_CFLAGS" 7511fi 7512 7513found="no" 7514 7515 if test $found = "no" ; then 7516 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7518 fi 7519 7520 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7522 fi 7523 7524 CFLAGS="$CFLAGS -Werror=address" 7525 7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7527$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7529/* end confdefs.h. */ 7530int i; 7531int 7532main () 7533{ 7534 7535 ; 7536 return 0; 7537} 7538_ACEOF 7539if ac_fn_c_try_link "$LINENO"; then : 7540 supported=yes 7541else 7542 supported=no 7543fi 7544rm -f core conftest.err conftest.$ac_objext \ 7545 conftest$ac_exeext conftest.$ac_ext 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7547$as_echo "$supported" >&6; } 7548 CFLAGS="$xorg_testset_save_CFLAGS" 7549 7550 if test "$supported" = "yes" ; then 7551 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7552 found="yes" 7553 fi 7554 fi 7555 7556 7557 7558 7559 7560 7561 7562xorg_testset_save_CFLAGS="$CFLAGS" 7563 7564if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7567$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7569/* end confdefs.h. */ 7570int i; 7571_ACEOF 7572if ac_fn_c_try_compile "$LINENO"; then : 7573 xorg_testset_unknown_warning_option=yes 7574else 7575 xorg_testset_unknown_warning_option=no 7576fi 7577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7579$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7580 CFLAGS="$xorg_testset_save_CFLAGS" 7581fi 7582 7583if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7584 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7586 fi 7587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7591/* end confdefs.h. */ 7592int i; 7593_ACEOF 7594if ac_fn_c_try_compile "$LINENO"; then : 7595 xorg_testset_unused_command_line_argument=yes 7596else 7597 xorg_testset_unused_command_line_argument=no 7598fi 7599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7601$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7602 CFLAGS="$xorg_testset_save_CFLAGS" 7603fi 7604 7605found="no" 7606 7607 if test $found = "no" ; then 7608 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7610 fi 7611 7612 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7614 fi 7615 7616 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 7617 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 7619$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7621/* end confdefs.h. */ 7622int i; 7623int 7624main () 7625{ 7626 7627 ; 7628 return 0; 7629} 7630_ACEOF 7631if ac_fn_c_try_link "$LINENO"; then : 7632 supported=yes 7633else 7634 supported=no 7635fi 7636rm -f core conftest.err conftest.$ac_objext \ 7637 conftest$ac_exeext conftest.$ac_ext 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7639$as_echo "$supported" >&6; } 7640 CFLAGS="$xorg_testset_save_CFLAGS" 7641 7642 if test "$supported" = "yes" ; then 7643 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 7644 found="yes" 7645 fi 7646 fi 7647 7648 if test $found = "no" ; then 7649 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7651 fi 7652 7653 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7655 fi 7656 7657 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 7658 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 7660$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7662/* end confdefs.h. */ 7663int i; 7664int 7665main () 7666{ 7667 7668 ; 7669 return 0; 7670} 7671_ACEOF 7672if ac_fn_c_try_link "$LINENO"; then : 7673 supported=yes 7674else 7675 supported=no 7676fi 7677rm -f core conftest.err conftest.$ac_objext \ 7678 conftest$ac_exeext conftest.$ac_ext 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7680$as_echo "$supported" >&6; } 7681 CFLAGS="$xorg_testset_save_CFLAGS" 7682 7683 if test "$supported" = "yes" ; then 7684 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 7685 found="yes" 7686 fi 7687 fi 7688 7689 7690 7691 7692 7693 7694 7695xorg_testset_save_CFLAGS="$CFLAGS" 7696 7697if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7700$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7702/* end confdefs.h. */ 7703int i; 7704_ACEOF 7705if ac_fn_c_try_compile "$LINENO"; then : 7706 xorg_testset_unknown_warning_option=yes 7707else 7708 xorg_testset_unknown_warning_option=no 7709fi 7710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7712$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7713 CFLAGS="$xorg_testset_save_CFLAGS" 7714fi 7715 7716if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7717 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7719 fi 7720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7722$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7724/* end confdefs.h. */ 7725int i; 7726_ACEOF 7727if ac_fn_c_try_compile "$LINENO"; then : 7728 xorg_testset_unused_command_line_argument=yes 7729else 7730 xorg_testset_unused_command_line_argument=no 7731fi 7732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7734$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7735 CFLAGS="$xorg_testset_save_CFLAGS" 7736fi 7737 7738found="no" 7739 7740 if test $found = "no" ; then 7741 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7743 fi 7744 7745 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7747 fi 7748 7749 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 7750 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 7752$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7754/* end confdefs.h. */ 7755int i; 7756int 7757main () 7758{ 7759 7760 ; 7761 return 0; 7762} 7763_ACEOF 7764if ac_fn_c_try_link "$LINENO"; then : 7765 supported=yes 7766else 7767 supported=no 7768fi 7769rm -f core conftest.err conftest.$ac_objext \ 7770 conftest$ac_exeext conftest.$ac_ext 7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7772$as_echo "$supported" >&6; } 7773 CFLAGS="$xorg_testset_save_CFLAGS" 7774 7775 if test "$supported" = "yes" ; then 7776 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 7777 found="yes" 7778 fi 7779 fi 7780 7781 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 7782else 7783{ $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 7784$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;} 7785 7786 7787 7788 7789 7790xorg_testset_save_CFLAGS="$CFLAGS" 7791 7792if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7795$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7797/* end confdefs.h. */ 7798int i; 7799_ACEOF 7800if ac_fn_c_try_compile "$LINENO"; then : 7801 xorg_testset_unknown_warning_option=yes 7802else 7803 xorg_testset_unknown_warning_option=no 7804fi 7805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7807$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7808 CFLAGS="$xorg_testset_save_CFLAGS" 7809fi 7810 7811if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7812 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7814 fi 7815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7817$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7819/* end confdefs.h. */ 7820int i; 7821_ACEOF 7822if ac_fn_c_try_compile "$LINENO"; then : 7823 xorg_testset_unused_command_line_argument=yes 7824else 7825 xorg_testset_unused_command_line_argument=no 7826fi 7827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7829$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7830 CFLAGS="$xorg_testset_save_CFLAGS" 7831fi 7832 7833found="no" 7834 7835 if test $found = "no" ; then 7836 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7838 fi 7839 7840 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7842 fi 7843 7844 CFLAGS="$CFLAGS -Wimplicit" 7845 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 7847$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7849/* end confdefs.h. */ 7850int i; 7851int 7852main () 7853{ 7854 7855 ; 7856 return 0; 7857} 7858_ACEOF 7859if ac_fn_c_try_link "$LINENO"; then : 7860 supported=yes 7861else 7862 supported=no 7863fi 7864rm -f core conftest.err conftest.$ac_objext \ 7865 conftest$ac_exeext conftest.$ac_ext 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7867$as_echo "$supported" >&6; } 7868 CFLAGS="$xorg_testset_save_CFLAGS" 7869 7870 if test "$supported" = "yes" ; then 7871 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 7872 found="yes" 7873 fi 7874 fi 7875 7876 7877 7878 7879 7880 7881 7882xorg_testset_save_CFLAGS="$CFLAGS" 7883 7884if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7889/* end confdefs.h. */ 7890int i; 7891_ACEOF 7892if ac_fn_c_try_compile "$LINENO"; then : 7893 xorg_testset_unknown_warning_option=yes 7894else 7895 xorg_testset_unknown_warning_option=no 7896fi 7897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7899$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7900 CFLAGS="$xorg_testset_save_CFLAGS" 7901fi 7902 7903if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7904 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7906 fi 7907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7909$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7911/* end confdefs.h. */ 7912int i; 7913_ACEOF 7914if ac_fn_c_try_compile "$LINENO"; then : 7915 xorg_testset_unused_command_line_argument=yes 7916else 7917 xorg_testset_unused_command_line_argument=no 7918fi 7919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7921$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7922 CFLAGS="$xorg_testset_save_CFLAGS" 7923fi 7924 7925found="no" 7926 7927 if test $found = "no" ; then 7928 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7930 fi 7931 7932 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7934 fi 7935 7936 CFLAGS="$CFLAGS -Wnonnull" 7937 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 7939$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7941/* end confdefs.h. */ 7942int i; 7943int 7944main () 7945{ 7946 7947 ; 7948 return 0; 7949} 7950_ACEOF 7951if ac_fn_c_try_link "$LINENO"; then : 7952 supported=yes 7953else 7954 supported=no 7955fi 7956rm -f core conftest.err conftest.$ac_objext \ 7957 conftest$ac_exeext conftest.$ac_ext 7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7959$as_echo "$supported" >&6; } 7960 CFLAGS="$xorg_testset_save_CFLAGS" 7961 7962 if test "$supported" = "yes" ; then 7963 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 7964 found="yes" 7965 fi 7966 fi 7967 7968 7969 7970 7971 7972 7973 7974xorg_testset_save_CFLAGS="$CFLAGS" 7975 7976if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7979$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7981/* end confdefs.h. */ 7982int i; 7983_ACEOF 7984if ac_fn_c_try_compile "$LINENO"; then : 7985 xorg_testset_unknown_warning_option=yes 7986else 7987 xorg_testset_unknown_warning_option=no 7988fi 7989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7991$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7992 CFLAGS="$xorg_testset_save_CFLAGS" 7993fi 7994 7995if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7996 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7998 fi 7999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8001$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8003/* end confdefs.h. */ 8004int i; 8005_ACEOF 8006if ac_fn_c_try_compile "$LINENO"; then : 8007 xorg_testset_unused_command_line_argument=yes 8008else 8009 xorg_testset_unused_command_line_argument=no 8010fi 8011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 8013$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 8014 CFLAGS="$xorg_testset_save_CFLAGS" 8015fi 8016 8017found="no" 8018 8019 if test $found = "no" ; then 8020 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8022 fi 8023 8024 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8026 fi 8027 8028 CFLAGS="$CFLAGS -Winit-self" 8029 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8031$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8033/* end confdefs.h. */ 8034int i; 8035int 8036main () 8037{ 8038 8039 ; 8040 return 0; 8041} 8042_ACEOF 8043if ac_fn_c_try_link "$LINENO"; then : 8044 supported=yes 8045else 8046 supported=no 8047fi 8048rm -f core conftest.err conftest.$ac_objext \ 8049 conftest$ac_exeext conftest.$ac_ext 8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8051$as_echo "$supported" >&6; } 8052 CFLAGS="$xorg_testset_save_CFLAGS" 8053 8054 if test "$supported" = "yes" ; then 8055 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8056 found="yes" 8057 fi 8058 fi 8059 8060 8061 8062 8063 8064 8065 8066xorg_testset_save_CFLAGS="$CFLAGS" 8067 8068if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8071$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8073/* end confdefs.h. */ 8074int i; 8075_ACEOF 8076if ac_fn_c_try_compile "$LINENO"; then : 8077 xorg_testset_unknown_warning_option=yes 8078else 8079 xorg_testset_unknown_warning_option=no 8080fi 8081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 8083$as_echo "$xorg_testset_unknown_warning_option" >&6; } 8084 CFLAGS="$xorg_testset_save_CFLAGS" 8085fi 8086 8087if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8088 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8090 fi 8091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8093$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8095/* end confdefs.h. */ 8096int i; 8097_ACEOF 8098if ac_fn_c_try_compile "$LINENO"; then : 8099 xorg_testset_unused_command_line_argument=yes 8100else 8101 xorg_testset_unused_command_line_argument=no 8102fi 8103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 8105$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 8106 CFLAGS="$xorg_testset_save_CFLAGS" 8107fi 8108 8109found="no" 8110 8111 if test $found = "no" ; then 8112 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8114 fi 8115 8116 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8118 fi 8119 8120 CFLAGS="$CFLAGS -Wmain" 8121 8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8123$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8125/* end confdefs.h. */ 8126int i; 8127int 8128main () 8129{ 8130 8131 ; 8132 return 0; 8133} 8134_ACEOF 8135if ac_fn_c_try_link "$LINENO"; then : 8136 supported=yes 8137else 8138 supported=no 8139fi 8140rm -f core conftest.err conftest.$ac_objext \ 8141 conftest$ac_exeext conftest.$ac_ext 8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8143$as_echo "$supported" >&6; } 8144 CFLAGS="$xorg_testset_save_CFLAGS" 8145 8146 if test "$supported" = "yes" ; then 8147 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8148 found="yes" 8149 fi 8150 fi 8151 8152 8153 8154 8155 8156 8157 8158xorg_testset_save_CFLAGS="$CFLAGS" 8159 8160if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8163$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8165/* end confdefs.h. */ 8166int i; 8167_ACEOF 8168if ac_fn_c_try_compile "$LINENO"; then : 8169 xorg_testset_unknown_warning_option=yes 8170else 8171 xorg_testset_unknown_warning_option=no 8172fi 8173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 8175$as_echo "$xorg_testset_unknown_warning_option" >&6; } 8176 CFLAGS="$xorg_testset_save_CFLAGS" 8177fi 8178 8179if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8180 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8182 fi 8183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8187/* end confdefs.h. */ 8188int i; 8189_ACEOF 8190if ac_fn_c_try_compile "$LINENO"; then : 8191 xorg_testset_unused_command_line_argument=yes 8192else 8193 xorg_testset_unused_command_line_argument=no 8194fi 8195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 8197$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 8198 CFLAGS="$xorg_testset_save_CFLAGS" 8199fi 8200 8201found="no" 8202 8203 if test $found = "no" ; then 8204 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8206 fi 8207 8208 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8210 fi 8211 8212 CFLAGS="$CFLAGS -Wmissing-braces" 8213 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8215$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8217/* end confdefs.h. */ 8218int i; 8219int 8220main () 8221{ 8222 8223 ; 8224 return 0; 8225} 8226_ACEOF 8227if ac_fn_c_try_link "$LINENO"; then : 8228 supported=yes 8229else 8230 supported=no 8231fi 8232rm -f core conftest.err conftest.$ac_objext \ 8233 conftest$ac_exeext conftest.$ac_ext 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8235$as_echo "$supported" >&6; } 8236 CFLAGS="$xorg_testset_save_CFLAGS" 8237 8238 if test "$supported" = "yes" ; then 8239 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8240 found="yes" 8241 fi 8242 fi 8243 8244 8245 8246 8247 8248 8249 8250xorg_testset_save_CFLAGS="$CFLAGS" 8251 8252if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8255$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8257/* end confdefs.h. */ 8258int i; 8259_ACEOF 8260if ac_fn_c_try_compile "$LINENO"; then : 8261 xorg_testset_unknown_warning_option=yes 8262else 8263 xorg_testset_unknown_warning_option=no 8264fi 8265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 8267$as_echo "$xorg_testset_unknown_warning_option" >&6; } 8268 CFLAGS="$xorg_testset_save_CFLAGS" 8269fi 8270 8271if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8272 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8274 fi 8275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8277$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8279/* end confdefs.h. */ 8280int i; 8281_ACEOF 8282if ac_fn_c_try_compile "$LINENO"; then : 8283 xorg_testset_unused_command_line_argument=yes 8284else 8285 xorg_testset_unused_command_line_argument=no 8286fi 8287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 8289$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 8290 CFLAGS="$xorg_testset_save_CFLAGS" 8291fi 8292 8293found="no" 8294 8295 if test $found = "no" ; then 8296 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8298 fi 8299 8300 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8302 fi 8303 8304 CFLAGS="$CFLAGS -Wsequence-point" 8305 8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8307$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 8308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8309/* end confdefs.h. */ 8310int i; 8311int 8312main () 8313{ 8314 8315 ; 8316 return 0; 8317} 8318_ACEOF 8319if ac_fn_c_try_link "$LINENO"; then : 8320 supported=yes 8321else 8322 supported=no 8323fi 8324rm -f core conftest.err conftest.$ac_objext \ 8325 conftest$ac_exeext conftest.$ac_ext 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8327$as_echo "$supported" >&6; } 8328 CFLAGS="$xorg_testset_save_CFLAGS" 8329 8330 if test "$supported" = "yes" ; then 8331 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 8332 found="yes" 8333 fi 8334 fi 8335 8336 8337 8338 8339 8340 8341 8342xorg_testset_save_CFLAGS="$CFLAGS" 8343 8344if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8347$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8349/* end confdefs.h. */ 8350int i; 8351_ACEOF 8352if ac_fn_c_try_compile "$LINENO"; then : 8353 xorg_testset_unknown_warning_option=yes 8354else 8355 xorg_testset_unknown_warning_option=no 8356fi 8357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 8359$as_echo "$xorg_testset_unknown_warning_option" >&6; } 8360 CFLAGS="$xorg_testset_save_CFLAGS" 8361fi 8362 8363if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8364 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8366 fi 8367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8369$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8371/* end confdefs.h. */ 8372int i; 8373_ACEOF 8374if ac_fn_c_try_compile "$LINENO"; then : 8375 xorg_testset_unused_command_line_argument=yes 8376else 8377 xorg_testset_unused_command_line_argument=no 8378fi 8379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 8381$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 8382 CFLAGS="$xorg_testset_save_CFLAGS" 8383fi 8384 8385found="no" 8386 8387 if test $found = "no" ; then 8388 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8390 fi 8391 8392 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8394 fi 8395 8396 CFLAGS="$CFLAGS -Wreturn-type" 8397 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 8399$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8401/* end confdefs.h. */ 8402int i; 8403int 8404main () 8405{ 8406 8407 ; 8408 return 0; 8409} 8410_ACEOF 8411if ac_fn_c_try_link "$LINENO"; then : 8412 supported=yes 8413else 8414 supported=no 8415fi 8416rm -f core conftest.err conftest.$ac_objext \ 8417 conftest$ac_exeext conftest.$ac_ext 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8419$as_echo "$supported" >&6; } 8420 CFLAGS="$xorg_testset_save_CFLAGS" 8421 8422 if test "$supported" = "yes" ; then 8423 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 8424 found="yes" 8425 fi 8426 fi 8427 8428 8429 8430 8431 8432 8433 8434xorg_testset_save_CFLAGS="$CFLAGS" 8435 8436if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8439$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8441/* end confdefs.h. */ 8442int i; 8443_ACEOF 8444if ac_fn_c_try_compile "$LINENO"; then : 8445 xorg_testset_unknown_warning_option=yes 8446else 8447 xorg_testset_unknown_warning_option=no 8448fi 8449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 8451$as_echo "$xorg_testset_unknown_warning_option" >&6; } 8452 CFLAGS="$xorg_testset_save_CFLAGS" 8453fi 8454 8455if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8456 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8458 fi 8459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8461$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8463/* end confdefs.h. */ 8464int i; 8465_ACEOF 8466if ac_fn_c_try_compile "$LINENO"; then : 8467 xorg_testset_unused_command_line_argument=yes 8468else 8469 xorg_testset_unused_command_line_argument=no 8470fi 8471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 8473$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 8474 CFLAGS="$xorg_testset_save_CFLAGS" 8475fi 8476 8477found="no" 8478 8479 if test $found = "no" ; then 8480 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8482 fi 8483 8484 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8486 fi 8487 8488 CFLAGS="$CFLAGS -Wtrigraphs" 8489 8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 8491$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8493/* end confdefs.h. */ 8494int i; 8495int 8496main () 8497{ 8498 8499 ; 8500 return 0; 8501} 8502_ACEOF 8503if ac_fn_c_try_link "$LINENO"; then : 8504 supported=yes 8505else 8506 supported=no 8507fi 8508rm -f core conftest.err conftest.$ac_objext \ 8509 conftest$ac_exeext conftest.$ac_ext 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8511$as_echo "$supported" >&6; } 8512 CFLAGS="$xorg_testset_save_CFLAGS" 8513 8514 if test "$supported" = "yes" ; then 8515 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 8516 found="yes" 8517 fi 8518 fi 8519 8520 8521 8522 8523 8524 8525 8526xorg_testset_save_CFLAGS="$CFLAGS" 8527 8528if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8531$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8533/* end confdefs.h. */ 8534int i; 8535_ACEOF 8536if ac_fn_c_try_compile "$LINENO"; then : 8537 xorg_testset_unknown_warning_option=yes 8538else 8539 xorg_testset_unknown_warning_option=no 8540fi 8541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 8543$as_echo "$xorg_testset_unknown_warning_option" >&6; } 8544 CFLAGS="$xorg_testset_save_CFLAGS" 8545fi 8546 8547if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8548 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8550 fi 8551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8553$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8555/* end confdefs.h. */ 8556int i; 8557_ACEOF 8558if ac_fn_c_try_compile "$LINENO"; then : 8559 xorg_testset_unused_command_line_argument=yes 8560else 8561 xorg_testset_unused_command_line_argument=no 8562fi 8563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 8565$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 8566 CFLAGS="$xorg_testset_save_CFLAGS" 8567fi 8568 8569found="no" 8570 8571 if test $found = "no" ; then 8572 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8574 fi 8575 8576 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8578 fi 8579 8580 CFLAGS="$CFLAGS -Warray-bounds" 8581 8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 8583$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8585/* end confdefs.h. */ 8586int i; 8587int 8588main () 8589{ 8590 8591 ; 8592 return 0; 8593} 8594_ACEOF 8595if ac_fn_c_try_link "$LINENO"; then : 8596 supported=yes 8597else 8598 supported=no 8599fi 8600rm -f core conftest.err conftest.$ac_objext \ 8601 conftest$ac_exeext conftest.$ac_ext 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8603$as_echo "$supported" >&6; } 8604 CFLAGS="$xorg_testset_save_CFLAGS" 8605 8606 if test "$supported" = "yes" ; then 8607 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 8608 found="yes" 8609 fi 8610 fi 8611 8612 8613 8614 8615 8616 8617 8618xorg_testset_save_CFLAGS="$CFLAGS" 8619 8620if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8623$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8625/* end confdefs.h. */ 8626int i; 8627_ACEOF 8628if ac_fn_c_try_compile "$LINENO"; then : 8629 xorg_testset_unknown_warning_option=yes 8630else 8631 xorg_testset_unknown_warning_option=no 8632fi 8633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 8635$as_echo "$xorg_testset_unknown_warning_option" >&6; } 8636 CFLAGS="$xorg_testset_save_CFLAGS" 8637fi 8638 8639if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8640 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8642 fi 8643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8645$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8647/* end confdefs.h. */ 8648int i; 8649_ACEOF 8650if ac_fn_c_try_compile "$LINENO"; then : 8651 xorg_testset_unused_command_line_argument=yes 8652else 8653 xorg_testset_unused_command_line_argument=no 8654fi 8655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 8657$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 8658 CFLAGS="$xorg_testset_save_CFLAGS" 8659fi 8660 8661found="no" 8662 8663 if test $found = "no" ; then 8664 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8666 fi 8667 8668 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8670 fi 8671 8672 CFLAGS="$CFLAGS -Wwrite-strings" 8673 8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 8675$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8677/* end confdefs.h. */ 8678int i; 8679int 8680main () 8681{ 8682 8683 ; 8684 return 0; 8685} 8686_ACEOF 8687if ac_fn_c_try_link "$LINENO"; then : 8688 supported=yes 8689else 8690 supported=no 8691fi 8692rm -f core conftest.err conftest.$ac_objext \ 8693 conftest$ac_exeext conftest.$ac_ext 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8695$as_echo "$supported" >&6; } 8696 CFLAGS="$xorg_testset_save_CFLAGS" 8697 8698 if test "$supported" = "yes" ; then 8699 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 8700 found="yes" 8701 fi 8702 fi 8703 8704 8705 8706 8707 8708 8709 8710xorg_testset_save_CFLAGS="$CFLAGS" 8711 8712if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8715$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8717/* end confdefs.h. */ 8718int i; 8719_ACEOF 8720if ac_fn_c_try_compile "$LINENO"; then : 8721 xorg_testset_unknown_warning_option=yes 8722else 8723 xorg_testset_unknown_warning_option=no 8724fi 8725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 8727$as_echo "$xorg_testset_unknown_warning_option" >&6; } 8728 CFLAGS="$xorg_testset_save_CFLAGS" 8729fi 8730 8731if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8732 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8734 fi 8735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8737$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8739/* end confdefs.h. */ 8740int i; 8741_ACEOF 8742if ac_fn_c_try_compile "$LINENO"; then : 8743 xorg_testset_unused_command_line_argument=yes 8744else 8745 xorg_testset_unused_command_line_argument=no 8746fi 8747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 8749$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 8750 CFLAGS="$xorg_testset_save_CFLAGS" 8751fi 8752 8753found="no" 8754 8755 if test $found = "no" ; then 8756 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8758 fi 8759 8760 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8762 fi 8763 8764 CFLAGS="$CFLAGS -Waddress" 8765 8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 8767$as_echo_n "checking if $CC supports -Waddress... " >&6; } 8768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8769/* end confdefs.h. */ 8770int i; 8771int 8772main () 8773{ 8774 8775 ; 8776 return 0; 8777} 8778_ACEOF 8779if ac_fn_c_try_link "$LINENO"; then : 8780 supported=yes 8781else 8782 supported=no 8783fi 8784rm -f core conftest.err conftest.$ac_objext \ 8785 conftest$ac_exeext conftest.$ac_ext 8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8787$as_echo "$supported" >&6; } 8788 CFLAGS="$xorg_testset_save_CFLAGS" 8789 8790 if test "$supported" = "yes" ; then 8791 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 8792 found="yes" 8793 fi 8794 fi 8795 8796 8797 8798 8799 8800 8801 8802xorg_testset_save_CFLAGS="$CFLAGS" 8803 8804if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8807$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8809/* end confdefs.h. */ 8810int i; 8811_ACEOF 8812if ac_fn_c_try_compile "$LINENO"; then : 8813 xorg_testset_unknown_warning_option=yes 8814else 8815 xorg_testset_unknown_warning_option=no 8816fi 8817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 8819$as_echo "$xorg_testset_unknown_warning_option" >&6; } 8820 CFLAGS="$xorg_testset_save_CFLAGS" 8821fi 8822 8823if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8824 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8826 fi 8827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8829$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8831/* end confdefs.h. */ 8832int i; 8833_ACEOF 8834if ac_fn_c_try_compile "$LINENO"; then : 8835 xorg_testset_unused_command_line_argument=yes 8836else 8837 xorg_testset_unused_command_line_argument=no 8838fi 8839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 8841$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 8842 CFLAGS="$xorg_testset_save_CFLAGS" 8843fi 8844 8845found="no" 8846 8847 if test $found = "no" ; then 8848 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8850 fi 8851 8852 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8854 fi 8855 8856 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 8857 8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 8859$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8861/* end confdefs.h. */ 8862int i; 8863int 8864main () 8865{ 8866 8867 ; 8868 return 0; 8869} 8870_ACEOF 8871if ac_fn_c_try_link "$LINENO"; then : 8872 supported=yes 8873else 8874 supported=no 8875fi 8876rm -f core conftest.err conftest.$ac_objext \ 8877 conftest$ac_exeext conftest.$ac_ext 8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8879$as_echo "$supported" >&6; } 8880 CFLAGS="$xorg_testset_save_CFLAGS" 8881 8882 if test "$supported" = "yes" ; then 8883 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 8884 found="yes" 8885 fi 8886 fi 8887 8888 8889 8890 8891 8892 8893 8894xorg_testset_save_CFLAGS="$CFLAGS" 8895 8896if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8899$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8901/* end confdefs.h. */ 8902int i; 8903_ACEOF 8904if ac_fn_c_try_compile "$LINENO"; then : 8905 xorg_testset_unknown_warning_option=yes 8906else 8907 xorg_testset_unknown_warning_option=no 8908fi 8909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 8911$as_echo "$xorg_testset_unknown_warning_option" >&6; } 8912 CFLAGS="$xorg_testset_save_CFLAGS" 8913fi 8914 8915if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8916 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8918 fi 8919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8923/* end confdefs.h. */ 8924int i; 8925_ACEOF 8926if ac_fn_c_try_compile "$LINENO"; then : 8927 xorg_testset_unused_command_line_argument=yes 8928else 8929 xorg_testset_unused_command_line_argument=no 8930fi 8931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 8933$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 8934 CFLAGS="$xorg_testset_save_CFLAGS" 8935fi 8936 8937found="no" 8938 8939 if test $found = "no" ; then 8940 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8942 fi 8943 8944 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8946 fi 8947 8948 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 8949 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 8951$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 8952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8953/* end confdefs.h. */ 8954int i; 8955int 8956main () 8957{ 8958 8959 ; 8960 return 0; 8961} 8962_ACEOF 8963if ac_fn_c_try_link "$LINENO"; then : 8964 supported=yes 8965else 8966 supported=no 8967fi 8968rm -f core conftest.err conftest.$ac_objext \ 8969 conftest$ac_exeext conftest.$ac_ext 8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8971$as_echo "$supported" >&6; } 8972 CFLAGS="$xorg_testset_save_CFLAGS" 8973 8974 if test "$supported" = "yes" ; then 8975 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 8976 found="yes" 8977 fi 8978 fi 8979 8980 8981fi 8982 8983 8984 8985 8986 8987 8988CWARNFLAGS="$BASE_CFLAGS" 8989if test "x$GCC" = xyes ; then 8990 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 8991fi 8992 8993 8994 8995 8996 8997 8998# Check whether --enable-strict-compilation was given. 8999if test "${enable_strict_compilation+set}" = set; then : 9000 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9001else 9002 STRICT_COMPILE=no 9003fi 9004 9005 9006STRICT_CFLAGS="" 9007 9008 9009 9010 9011 9012xorg_testset_save_CFLAGS="$CFLAGS" 9013 9014if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9017$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9019/* end confdefs.h. */ 9020int i; 9021_ACEOF 9022if ac_fn_c_try_compile "$LINENO"; then : 9023 xorg_testset_unknown_warning_option=yes 9024else 9025 xorg_testset_unknown_warning_option=no 9026fi 9027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 9029$as_echo "$xorg_testset_unknown_warning_option" >&6; } 9030 CFLAGS="$xorg_testset_save_CFLAGS" 9031fi 9032 9033if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9034 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9036 fi 9037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9041/* end confdefs.h. */ 9042int i; 9043_ACEOF 9044if ac_fn_c_try_compile "$LINENO"; then : 9045 xorg_testset_unused_command_line_argument=yes 9046else 9047 xorg_testset_unused_command_line_argument=no 9048fi 9049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 9051$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 9052 CFLAGS="$xorg_testset_save_CFLAGS" 9053fi 9054 9055found="no" 9056 9057 if test $found = "no" ; then 9058 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9060 fi 9061 9062 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9064 fi 9065 9066 CFLAGS="$CFLAGS -pedantic" 9067 9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9069$as_echo_n "checking if $CC supports -pedantic... " >&6; } 9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9071/* end confdefs.h. */ 9072int i; 9073int 9074main () 9075{ 9076 9077 ; 9078 return 0; 9079} 9080_ACEOF 9081if ac_fn_c_try_link "$LINENO"; then : 9082 supported=yes 9083else 9084 supported=no 9085fi 9086rm -f core conftest.err conftest.$ac_objext \ 9087 conftest$ac_exeext conftest.$ac_ext 9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9089$as_echo "$supported" >&6; } 9090 CFLAGS="$xorg_testset_save_CFLAGS" 9091 9092 if test "$supported" = "yes" ; then 9093 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 9094 found="yes" 9095 fi 9096 fi 9097 9098 9099 9100 9101 9102 9103 9104xorg_testset_save_CFLAGS="$CFLAGS" 9105 9106if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9109$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9111/* end confdefs.h. */ 9112int i; 9113_ACEOF 9114if ac_fn_c_try_compile "$LINENO"; then : 9115 xorg_testset_unknown_warning_option=yes 9116else 9117 xorg_testset_unknown_warning_option=no 9118fi 9119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 9121$as_echo "$xorg_testset_unknown_warning_option" >&6; } 9122 CFLAGS="$xorg_testset_save_CFLAGS" 9123fi 9124 9125if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9126 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9128 fi 9129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9131$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9133/* end confdefs.h. */ 9134int i; 9135_ACEOF 9136if ac_fn_c_try_compile "$LINENO"; then : 9137 xorg_testset_unused_command_line_argument=yes 9138else 9139 xorg_testset_unused_command_line_argument=no 9140fi 9141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 9143$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 9144 CFLAGS="$xorg_testset_save_CFLAGS" 9145fi 9146 9147found="no" 9148 9149 if test $found = "no" ; then 9150 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9152 fi 9153 9154 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9156 fi 9157 9158 CFLAGS="$CFLAGS -Werror" 9159 9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 9161$as_echo_n "checking if $CC supports -Werror... " >&6; } 9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9163/* end confdefs.h. */ 9164int i; 9165int 9166main () 9167{ 9168 9169 ; 9170 return 0; 9171} 9172_ACEOF 9173if ac_fn_c_try_link "$LINENO"; then : 9174 supported=yes 9175else 9176 supported=no 9177fi 9178rm -f core conftest.err conftest.$ac_objext \ 9179 conftest$ac_exeext conftest.$ac_ext 9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9181$as_echo "$supported" >&6; } 9182 CFLAGS="$xorg_testset_save_CFLAGS" 9183 9184 if test "$supported" = "yes" ; then 9185 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 9186 found="yes" 9187 fi 9188 fi 9189 9190 if test $found = "no" ; then 9191 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9193 fi 9194 9195 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9197 fi 9198 9199 CFLAGS="$CFLAGS -errwarn" 9200 9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 9202$as_echo_n "checking if $CC supports -errwarn... " >&6; } 9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9204/* end confdefs.h. */ 9205int i; 9206int 9207main () 9208{ 9209 9210 ; 9211 return 0; 9212} 9213_ACEOF 9214if ac_fn_c_try_link "$LINENO"; then : 9215 supported=yes 9216else 9217 supported=no 9218fi 9219rm -f core conftest.err conftest.$ac_objext \ 9220 conftest$ac_exeext conftest.$ac_ext 9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9222$as_echo "$supported" >&6; } 9223 CFLAGS="$xorg_testset_save_CFLAGS" 9224 9225 if test "$supported" = "yes" ; then 9226 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 9227 found="yes" 9228 fi 9229 fi 9230 9231 9232 9233# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 9234# activate it with -Werror, so we add it here explicitly. 9235 9236 9237 9238 9239 9240xorg_testset_save_CFLAGS="$CFLAGS" 9241 9242if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9245$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9247/* end confdefs.h. */ 9248int i; 9249_ACEOF 9250if ac_fn_c_try_compile "$LINENO"; then : 9251 xorg_testset_unknown_warning_option=yes 9252else 9253 xorg_testset_unknown_warning_option=no 9254fi 9255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 9257$as_echo "$xorg_testset_unknown_warning_option" >&6; } 9258 CFLAGS="$xorg_testset_save_CFLAGS" 9259fi 9260 9261if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9262 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9264 fi 9265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9267$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9269/* end confdefs.h. */ 9270int i; 9271_ACEOF 9272if ac_fn_c_try_compile "$LINENO"; then : 9273 xorg_testset_unused_command_line_argument=yes 9274else 9275 xorg_testset_unused_command_line_argument=no 9276fi 9277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 9279$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 9280 CFLAGS="$xorg_testset_save_CFLAGS" 9281fi 9282 9283found="no" 9284 9285 if test $found = "no" ; then 9286 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9288 fi 9289 9290 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9292 fi 9293 9294 CFLAGS="$CFLAGS -Werror=attributes" 9295 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 9297$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9299/* end confdefs.h. */ 9300int i; 9301int 9302main () 9303{ 9304 9305 ; 9306 return 0; 9307} 9308_ACEOF 9309if ac_fn_c_try_link "$LINENO"; then : 9310 supported=yes 9311else 9312 supported=no 9313fi 9314rm -f core conftest.err conftest.$ac_objext \ 9315 conftest$ac_exeext conftest.$ac_ext 9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9317$as_echo "$supported" >&6; } 9318 CFLAGS="$xorg_testset_save_CFLAGS" 9319 9320 if test "$supported" = "yes" ; then 9321 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 9322 found="yes" 9323 fi 9324 fi 9325 9326 9327 9328if test "x$STRICT_COMPILE" = "xyes"; then 9329 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 9330 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 9331fi 9332 9333 9334 9335 9336 9337 9338cat >>confdefs.h <<_ACEOF 9339#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 9340_ACEOF 9341 9342 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 9343 if test "x$PVM" = "x"; then 9344 PVM="0" 9345 fi 9346 9347cat >>confdefs.h <<_ACEOF 9348#define PACKAGE_VERSION_MINOR $PVM 9349_ACEOF 9350 9351 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 9352 if test "x$PVP" = "x"; then 9353 PVP="0" 9354 fi 9355 9356cat >>confdefs.h <<_ACEOF 9357#define PACKAGE_VERSION_PATCHLEVEL $PVP 9358_ACEOF 9359 9360 9361 9362CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 9363mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 9364|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 9365echo 'git directory not found: installing possibly empty changelog.' >&2)" 9366 9367 9368 9369 9370macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 9371INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 9372mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 9373|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 9374echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 9375 9376 9377 9378 9379 9380 9381if test x$APP_MAN_SUFFIX = x ; then 9382 APP_MAN_SUFFIX=1 9383fi 9384if test x$APP_MAN_DIR = x ; then 9385 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 9386fi 9387 9388if test x$LIB_MAN_SUFFIX = x ; then 9389 LIB_MAN_SUFFIX=3 9390fi 9391if test x$LIB_MAN_DIR = x ; then 9392 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 9393fi 9394 9395if test x$FILE_MAN_SUFFIX = x ; then 9396 case $host_os in 9397 solaris*) FILE_MAN_SUFFIX=4 ;; 9398 *) FILE_MAN_SUFFIX=5 ;; 9399 esac 9400fi 9401if test x$FILE_MAN_DIR = x ; then 9402 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 9403fi 9404 9405if test x$MISC_MAN_SUFFIX = x ; then 9406 case $host_os in 9407 solaris*) MISC_MAN_SUFFIX=5 ;; 9408 *) MISC_MAN_SUFFIX=7 ;; 9409 esac 9410fi 9411if test x$MISC_MAN_DIR = x ; then 9412 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 9413fi 9414 9415if test x$DRIVER_MAN_SUFFIX = x ; then 9416 case $host_os in 9417 solaris*) DRIVER_MAN_SUFFIX=7 ;; 9418 *) DRIVER_MAN_SUFFIX=4 ;; 9419 esac 9420fi 9421if test x$DRIVER_MAN_DIR = x ; then 9422 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 9423fi 9424 9425if test x$ADMIN_MAN_SUFFIX = x ; then 9426 case $host_os in 9427 solaris*) ADMIN_MAN_SUFFIX=1m ;; 9428 *) ADMIN_MAN_SUFFIX=8 ;; 9429 esac 9430fi 9431if test x$ADMIN_MAN_DIR = x ; then 9432 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 9433fi 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449XORG_MAN_PAGE="X Version 11" 9450 9451MAN_SUBSTS="\ 9452 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 9453 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 9454 -e 's|__xservername__|Xorg|g' \ 9455 -e 's|__xconfigfile__|xorg.conf|g' \ 9456 -e 's|__projectroot__|\$(prefix)|g' \ 9457 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 9458 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 9459 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 9460 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 9461 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 9462 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 9463 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 9464 9465 9466 9467# Check whether --enable-silent-rules was given. 9468if test "${enable_silent_rules+set}" = set; then : 9469 enableval=$enable_silent_rules; 9470fi 9471 9472case $enable_silent_rules in 9473yes) AM_DEFAULT_VERBOSITY=0;; 9474no) AM_DEFAULT_VERBOSITY=1;; 9475*) AM_DEFAULT_VERBOSITY=0;; 9476esac 9477am_make=${MAKE-make} 9478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 9479$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 9480if ${am_cv_make_support_nested_variables+:} false; then : 9481 $as_echo_n "(cached) " >&6 9482else 9483 if $as_echo 'TRUE=$(BAR$(V)) 9484BAR0=false 9485BAR1=true 9486V=1 9487am__doit: 9488 @$(TRUE) 9489.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 9490 am_cv_make_support_nested_variables=yes 9491else 9492 am_cv_make_support_nested_variables=no 9493fi 9494fi 9495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 9496$as_echo "$am_cv_make_support_nested_variables" >&6; } 9497if test $am_cv_make_support_nested_variables = yes; then 9498 AM_V='$(V)' 9499 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 9500else 9501 AM_V=$AM_DEFAULT_VERBOSITY 9502 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 9503fi 9504AM_BACKSLASH='\' 9505 9506 9507 9508# Initialize libtool 9509# Check whether --enable-static was given. 9510if test "${enable_static+set}" = set; then : 9511 enableval=$enable_static; p=${PACKAGE-default} 9512 case $enableval in 9513 yes) enable_static=yes ;; 9514 no) enable_static=no ;; 9515 *) 9516 enable_static=no 9517 # Look at the argument we got. We use all the common list separators. 9518 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9519 for pkg in $enableval; do 9520 IFS="$lt_save_ifs" 9521 if test "X$pkg" = "X$p"; then 9522 enable_static=yes 9523 fi 9524 done 9525 IFS="$lt_save_ifs" 9526 ;; 9527 esac 9528else 9529 enable_static=no 9530fi 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540case `pwd` in 9541 *\ * | *\ *) 9542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 9543$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 9544esac 9545 9546 9547 9548macro_version='2.4.2' 9549macro_revision='1.3337' 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563ltmain="$ac_aux_dir/ltmain.sh" 9564 9565# Backslashify metacharacters that are still active within 9566# double-quoted strings. 9567sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 9568 9569# Same as above, but do not quote variable references. 9570double_quote_subst='s/\(["`\\]\)/\\\1/g' 9571 9572# Sed substitution to delay expansion of an escaped shell variable in a 9573# double_quote_subst'ed string. 9574delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 9575 9576# Sed substitution to delay expansion of an escaped single quote. 9577delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 9578 9579# Sed substitution to avoid accidental globbing in evaled expressions 9580no_glob_subst='s/\*/\\\*/g' 9581 9582ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 9583ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 9584ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 9585 9586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 9587$as_echo_n "checking how to print strings... " >&6; } 9588# Test print first, because it will be a builtin if present. 9589if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 9590 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 9591 ECHO='print -r --' 9592elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 9593 ECHO='printf %s\n' 9594else 9595 # Use this function as a fallback that always works. 9596 func_fallback_echo () 9597 { 9598 eval 'cat <<_LTECHO_EOF 9599$1 9600_LTECHO_EOF' 9601 } 9602 ECHO='func_fallback_echo' 9603fi 9604 9605# func_echo_all arg... 9606# Invoke $ECHO with all args, space-separated. 9607func_echo_all () 9608{ 9609 $ECHO "" 9610} 9611 9612case "$ECHO" in 9613 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 9614$as_echo "printf" >&6; } ;; 9615 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 9616$as_echo "print -r" >&6; } ;; 9617 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 9618$as_echo "cat" >&6; } ;; 9619esac 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 9635$as_echo_n "checking for a sed that does not truncate output... " >&6; } 9636if ${ac_cv_path_SED+:} false; then : 9637 $as_echo_n "(cached) " >&6 9638else 9639 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 9640 for ac_i in 1 2 3 4 5 6 7; do 9641 ac_script="$ac_script$as_nl$ac_script" 9642 done 9643 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 9644 { ac_script=; unset ac_script;} 9645 if test -z "$SED"; then 9646 ac_path_SED_found=false 9647 # Loop through the user's path and test for each of PROGNAME-LIST 9648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9649for as_dir in $PATH 9650do 9651 IFS=$as_save_IFS 9652 test -z "$as_dir" && as_dir=. 9653 for ac_prog in sed gsed; do 9654 for ac_exec_ext in '' $ac_executable_extensions; do 9655 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 9656 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 9657# Check for GNU ac_path_SED and select it if it is found. 9658 # Check for GNU $ac_path_SED 9659case `"$ac_path_SED" --version 2>&1` in 9660*GNU*) 9661 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 9662*) 9663 ac_count=0 9664 $as_echo_n 0123456789 >"conftest.in" 9665 while : 9666 do 9667 cat "conftest.in" "conftest.in" >"conftest.tmp" 9668 mv "conftest.tmp" "conftest.in" 9669 cp "conftest.in" "conftest.nl" 9670 $as_echo '' >> "conftest.nl" 9671 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 9672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9673 as_fn_arith $ac_count + 1 && ac_count=$as_val 9674 if test $ac_count -gt ${ac_path_SED_max-0}; then 9675 # Best one so far, save it but keep looking for a better one 9676 ac_cv_path_SED="$ac_path_SED" 9677 ac_path_SED_max=$ac_count 9678 fi 9679 # 10*(2^10) chars as input seems more than enough 9680 test $ac_count -gt 10 && break 9681 done 9682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9683esac 9684 9685 $ac_path_SED_found && break 3 9686 done 9687 done 9688 done 9689IFS=$as_save_IFS 9690 if test -z "$ac_cv_path_SED"; then 9691 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 9692 fi 9693else 9694 ac_cv_path_SED=$SED 9695fi 9696 9697fi 9698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 9699$as_echo "$ac_cv_path_SED" >&6; } 9700 SED="$ac_cv_path_SED" 9701 rm -f conftest.sed 9702 9703test -z "$SED" && SED=sed 9704Xsed="$SED -e 1s/^X//" 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 9717$as_echo_n "checking for fgrep... " >&6; } 9718if ${ac_cv_path_FGREP+:} false; then : 9719 $as_echo_n "(cached) " >&6 9720else 9721 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 9722 then ac_cv_path_FGREP="$GREP -F" 9723 else 9724 if test -z "$FGREP"; then 9725 ac_path_FGREP_found=false 9726 # Loop through the user's path and test for each of PROGNAME-LIST 9727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9728for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 9729do 9730 IFS=$as_save_IFS 9731 test -z "$as_dir" && as_dir=. 9732 for ac_prog in fgrep; do 9733 for ac_exec_ext in '' $ac_executable_extensions; do 9734 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 9735 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 9736# Check for GNU ac_path_FGREP and select it if it is found. 9737 # Check for GNU $ac_path_FGREP 9738case `"$ac_path_FGREP" --version 2>&1` in 9739*GNU*) 9740 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 9741*) 9742 ac_count=0 9743 $as_echo_n 0123456789 >"conftest.in" 9744 while : 9745 do 9746 cat "conftest.in" "conftest.in" >"conftest.tmp" 9747 mv "conftest.tmp" "conftest.in" 9748 cp "conftest.in" "conftest.nl" 9749 $as_echo 'FGREP' >> "conftest.nl" 9750 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 9751 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9752 as_fn_arith $ac_count + 1 && ac_count=$as_val 9753 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 9754 # Best one so far, save it but keep looking for a better one 9755 ac_cv_path_FGREP="$ac_path_FGREP" 9756 ac_path_FGREP_max=$ac_count 9757 fi 9758 # 10*(2^10) chars as input seems more than enough 9759 test $ac_count -gt 10 && break 9760 done 9761 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9762esac 9763 9764 $ac_path_FGREP_found && break 3 9765 done 9766 done 9767 done 9768IFS=$as_save_IFS 9769 if test -z "$ac_cv_path_FGREP"; then 9770 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 9771 fi 9772else 9773 ac_cv_path_FGREP=$FGREP 9774fi 9775 9776 fi 9777fi 9778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 9779$as_echo "$ac_cv_path_FGREP" >&6; } 9780 FGREP="$ac_cv_path_FGREP" 9781 9782 9783test -z "$GREP" && GREP=grep 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803# Check whether --with-gnu-ld was given. 9804if test "${with_gnu_ld+set}" = set; then : 9805 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 9806else 9807 with_gnu_ld=no 9808fi 9809 9810ac_prog=ld 9811if test "$GCC" = yes; then 9812 # Check if gcc -print-prog-name=ld gives a path. 9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 9814$as_echo_n "checking for ld used by $CC... " >&6; } 9815 case $host in 9816 *-*-mingw*) 9817 # gcc leaves a trailing carriage return which upsets mingw 9818 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9819 *) 9820 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9821 esac 9822 case $ac_prog in 9823 # Accept absolute paths. 9824 [\\/]* | ?:[\\/]*) 9825 re_direlt='/[^/][^/]*/\.\./' 9826 # Canonicalize the pathname of ld 9827 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 9828 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 9829 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 9830 done 9831 test -z "$LD" && LD="$ac_prog" 9832 ;; 9833 "") 9834 # If it fails, then pretend we aren't using GCC. 9835 ac_prog=ld 9836 ;; 9837 *) 9838 # If it is relative, then search for the first ld in PATH. 9839 with_gnu_ld=unknown 9840 ;; 9841 esac 9842elif test "$with_gnu_ld" = yes; then 9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 9844$as_echo_n "checking for GNU ld... " >&6; } 9845else 9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 9847$as_echo_n "checking for non-GNU ld... " >&6; } 9848fi 9849if ${lt_cv_path_LD+:} false; then : 9850 $as_echo_n "(cached) " >&6 9851else 9852 if test -z "$LD"; then 9853 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9854 for ac_dir in $PATH; do 9855 IFS="$lt_save_ifs" 9856 test -z "$ac_dir" && ac_dir=. 9857 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9858 lt_cv_path_LD="$ac_dir/$ac_prog" 9859 # Check to see if the program is GNU ld. I'd rather use --version, 9860 # but apparently some variants of GNU ld only accept -v. 9861 # Break only if it was the GNU/non-GNU ld that we prefer. 9862 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9863 *GNU* | *'with BFD'*) 9864 test "$with_gnu_ld" != no && break 9865 ;; 9866 *) 9867 test "$with_gnu_ld" != yes && break 9868 ;; 9869 esac 9870 fi 9871 done 9872 IFS="$lt_save_ifs" 9873else 9874 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9875fi 9876fi 9877 9878LD="$lt_cv_path_LD" 9879if test -n "$LD"; then 9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 9881$as_echo "$LD" >&6; } 9882else 9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9884$as_echo "no" >&6; } 9885fi 9886test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 9887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 9888$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 9889if ${lt_cv_prog_gnu_ld+:} false; then : 9890 $as_echo_n "(cached) " >&6 9891else 9892 # I'd rather use --version here, but apparently some GNU lds only accept -v. 9893case `$LD -v 2>&1 </dev/null` in 9894*GNU* | *'with BFD'*) 9895 lt_cv_prog_gnu_ld=yes 9896 ;; 9897*) 9898 lt_cv_prog_gnu_ld=no 9899 ;; 9900esac 9901fi 9902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 9903$as_echo "$lt_cv_prog_gnu_ld" >&6; } 9904with_gnu_ld=$lt_cv_prog_gnu_ld 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 9915$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 9916if ${lt_cv_path_NM+:} false; then : 9917 $as_echo_n "(cached) " >&6 9918else 9919 if test -n "$NM"; then 9920 # Let the user override the test. 9921 lt_cv_path_NM="$NM" 9922else 9923 lt_nm_to_check="${ac_tool_prefix}nm" 9924 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 9925 lt_nm_to_check="$lt_nm_to_check nm" 9926 fi 9927 for lt_tmp_nm in $lt_nm_to_check; do 9928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9929 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 9930 IFS="$lt_save_ifs" 9931 test -z "$ac_dir" && ac_dir=. 9932 tmp_nm="$ac_dir/$lt_tmp_nm" 9933 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 9934 # Check to see if the nm accepts a BSD-compat flag. 9935 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 9936 # nm: unknown option "B" ignored 9937 # Tru64's nm complains that /dev/null is an invalid object file 9938 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 9939 */dev/null* | *'Invalid file or object type'*) 9940 lt_cv_path_NM="$tmp_nm -B" 9941 break 9942 ;; 9943 *) 9944 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 9945 */dev/null*) 9946 lt_cv_path_NM="$tmp_nm -p" 9947 break 9948 ;; 9949 *) 9950 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 9951 continue # so that we can try to find one that supports BSD flags 9952 ;; 9953 esac 9954 ;; 9955 esac 9956 fi 9957 done 9958 IFS="$lt_save_ifs" 9959 done 9960 : ${lt_cv_path_NM=no} 9961fi 9962fi 9963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 9964$as_echo "$lt_cv_path_NM" >&6; } 9965if test "$lt_cv_path_NM" != "no"; then 9966 NM="$lt_cv_path_NM" 9967else 9968 # Didn't find any BSD compatible name lister, look for dumpbin. 9969 if test -n "$DUMPBIN"; then : 9970 # Let the user override the test. 9971 else 9972 if test -n "$ac_tool_prefix"; then 9973 for ac_prog in dumpbin "link -dump" 9974 do 9975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9976set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9978$as_echo_n "checking for $ac_word... " >&6; } 9979if ${ac_cv_prog_DUMPBIN+:} false; then : 9980 $as_echo_n "(cached) " >&6 9981else 9982 if test -n "$DUMPBIN"; then 9983 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 9984else 9985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9986for as_dir in $PATH 9987do 9988 IFS=$as_save_IFS 9989 test -z "$as_dir" && as_dir=. 9990 for ac_exec_ext in '' $ac_executable_extensions; do 9991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9992 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 9993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9994 break 2 9995 fi 9996done 9997 done 9998IFS=$as_save_IFS 9999 10000fi 10001fi 10002DUMPBIN=$ac_cv_prog_DUMPBIN 10003if test -n "$DUMPBIN"; then 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 10005$as_echo "$DUMPBIN" >&6; } 10006else 10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10008$as_echo "no" >&6; } 10009fi 10010 10011 10012 test -n "$DUMPBIN" && break 10013 done 10014fi 10015if test -z "$DUMPBIN"; then 10016 ac_ct_DUMPBIN=$DUMPBIN 10017 for ac_prog in dumpbin "link -dump" 10018do 10019 # Extract the first word of "$ac_prog", so it can be a program name with args. 10020set dummy $ac_prog; ac_word=$2 10021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10022$as_echo_n "checking for $ac_word... " >&6; } 10023if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 10024 $as_echo_n "(cached) " >&6 10025else 10026 if test -n "$ac_ct_DUMPBIN"; then 10027 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 10028else 10029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10030for as_dir in $PATH 10031do 10032 IFS=$as_save_IFS 10033 test -z "$as_dir" && as_dir=. 10034 for ac_exec_ext in '' $ac_executable_extensions; do 10035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10036 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 10037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10038 break 2 10039 fi 10040done 10041 done 10042IFS=$as_save_IFS 10043 10044fi 10045fi 10046ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 10047if test -n "$ac_ct_DUMPBIN"; then 10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 10049$as_echo "$ac_ct_DUMPBIN" >&6; } 10050else 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10052$as_echo "no" >&6; } 10053fi 10054 10055 10056 test -n "$ac_ct_DUMPBIN" && break 10057done 10058 10059 if test "x$ac_ct_DUMPBIN" = x; then 10060 DUMPBIN=":" 10061 else 10062 case $cross_compiling:$ac_tool_warned in 10063yes:) 10064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10066ac_tool_warned=yes ;; 10067esac 10068 DUMPBIN=$ac_ct_DUMPBIN 10069 fi 10070fi 10071 10072 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 10073 *COFF*) 10074 DUMPBIN="$DUMPBIN -symbols" 10075 ;; 10076 *) 10077 DUMPBIN=: 10078 ;; 10079 esac 10080 fi 10081 10082 if test "$DUMPBIN" != ":"; then 10083 NM="$DUMPBIN" 10084 fi 10085fi 10086test -z "$NM" && NM=nm 10087 10088 10089 10090 10091 10092 10093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 10094$as_echo_n "checking the name lister ($NM) interface... " >&6; } 10095if ${lt_cv_nm_interface+:} false; then : 10096 $as_echo_n "(cached) " >&6 10097else 10098 lt_cv_nm_interface="BSD nm" 10099 echo "int some_variable = 0;" > conftest.$ac_ext 10100 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 10101 (eval "$ac_compile" 2>conftest.err) 10102 cat conftest.err >&5 10103 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 10104 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 10105 cat conftest.err >&5 10106 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 10107 cat conftest.out >&5 10108 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 10109 lt_cv_nm_interface="MS dumpbin" 10110 fi 10111 rm -f conftest* 10112fi 10113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 10114$as_echo "$lt_cv_nm_interface" >&6; } 10115 10116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 10117$as_echo_n "checking whether ln -s works... " >&6; } 10118LN_S=$as_ln_s 10119if test "$LN_S" = "ln -s"; then 10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10121$as_echo "yes" >&6; } 10122else 10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 10124$as_echo "no, using $LN_S" >&6; } 10125fi 10126 10127# find the maximum length of command line arguments 10128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 10129$as_echo_n "checking the maximum length of command line arguments... " >&6; } 10130if ${lt_cv_sys_max_cmd_len+:} false; then : 10131 $as_echo_n "(cached) " >&6 10132else 10133 i=0 10134 teststring="ABCD" 10135 10136 case $build_os in 10137 msdosdjgpp*) 10138 # On DJGPP, this test can blow up pretty badly due to problems in libc 10139 # (any single argument exceeding 2000 bytes causes a buffer overrun 10140 # during glob expansion). Even if it were fixed, the result of this 10141 # check would be larger than it should be. 10142 lt_cv_sys_max_cmd_len=12288; # 12K is about right 10143 ;; 10144 10145 gnu*) 10146 # Under GNU Hurd, this test is not required because there is 10147 # no limit to the length of command line arguments. 10148 # Libtool will interpret -1 as no limit whatsoever 10149 lt_cv_sys_max_cmd_len=-1; 10150 ;; 10151 10152 cygwin* | mingw* | cegcc*) 10153 # On Win9x/ME, this test blows up -- it succeeds, but takes 10154 # about 5 minutes as the teststring grows exponentially. 10155 # Worse, since 9x/ME are not pre-emptively multitasking, 10156 # you end up with a "frozen" computer, even though with patience 10157 # the test eventually succeeds (with a max line length of 256k). 10158 # Instead, let's just punt: use the minimum linelength reported by 10159 # all of the supported platforms: 8192 (on NT/2K/XP). 10160 lt_cv_sys_max_cmd_len=8192; 10161 ;; 10162 10163 mint*) 10164 # On MiNT this can take a long time and run out of memory. 10165 lt_cv_sys_max_cmd_len=8192; 10166 ;; 10167 10168 amigaos*) 10169 # On AmigaOS with pdksh, this test takes hours, literally. 10170 # So we just punt and use a minimum line length of 8192. 10171 lt_cv_sys_max_cmd_len=8192; 10172 ;; 10173 10174 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 10175 # This has been around since 386BSD, at least. Likely further. 10176 if test -x /sbin/sysctl; then 10177 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 10178 elif test -x /usr/sbin/sysctl; then 10179 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 10180 else 10181 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 10182 fi 10183 # And add a safety zone 10184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 10185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 10186 ;; 10187 10188 interix*) 10189 # We know the value 262144 and hardcode it with a safety zone (like BSD) 10190 lt_cv_sys_max_cmd_len=196608 10191 ;; 10192 10193 os2*) 10194 # The test takes a long time on OS/2. 10195 lt_cv_sys_max_cmd_len=8192 10196 ;; 10197 10198 osf*) 10199 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 10200 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 10201 # nice to cause kernel panics so lets avoid the loop below. 10202 # First set a reasonable default. 10203 lt_cv_sys_max_cmd_len=16384 10204 # 10205 if test -x /sbin/sysconfig; then 10206 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 10207 *1*) lt_cv_sys_max_cmd_len=-1 ;; 10208 esac 10209 fi 10210 ;; 10211 sco3.2v5*) 10212 lt_cv_sys_max_cmd_len=102400 10213 ;; 10214 sysv5* | sco5v6* | sysv4.2uw2*) 10215 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 10216 if test -n "$kargmax"; then 10217 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 10218 else 10219 lt_cv_sys_max_cmd_len=32768 10220 fi 10221 ;; 10222 *) 10223 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 10224 if test -n "$lt_cv_sys_max_cmd_len"; then 10225 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 10226 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 10227 else 10228 # Make teststring a little bigger before we do anything with it. 10229 # a 1K string should be a reasonable start. 10230 for i in 1 2 3 4 5 6 7 8 ; do 10231 teststring=$teststring$teststring 10232 done 10233 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 10234 # If test is not a shell built-in, we'll probably end up computing a 10235 # maximum length that is only half of the actual maximum length, but 10236 # we can't tell. 10237 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 10238 = "X$teststring$teststring"; } >/dev/null 2>&1 && 10239 test $i != 17 # 1/2 MB should be enough 10240 do 10241 i=`expr $i + 1` 10242 teststring=$teststring$teststring 10243 done 10244 # Only check the string length outside the loop. 10245 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 10246 teststring= 10247 # Add a significant safety factor because C++ compilers can tack on 10248 # massive amounts of additional arguments before passing them to the 10249 # linker. It appears as though 1/2 is a usable value. 10250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 10251 fi 10252 ;; 10253 esac 10254 10255fi 10256 10257if test -n $lt_cv_sys_max_cmd_len ; then 10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 10259$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 10260else 10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 10262$as_echo "none" >&6; } 10263fi 10264max_cmd_len=$lt_cv_sys_max_cmd_len 10265 10266 10267 10268 10269 10270 10271: ${CP="cp -f"} 10272: ${MV="mv -f"} 10273: ${RM="rm -f"} 10274 10275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 10276$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 10277# Try some XSI features 10278xsi_shell=no 10279( _lt_dummy="a/b/c" 10280 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 10281 = c,a/b,b/c, \ 10282 && eval 'test $(( 1 + 1 )) -eq 2 \ 10283 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 10284 && xsi_shell=yes 10285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 10286$as_echo "$xsi_shell" >&6; } 10287 10288 10289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 10290$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 10291lt_shell_append=no 10292( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 10293 >/dev/null 2>&1 \ 10294 && lt_shell_append=yes 10295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 10296$as_echo "$lt_shell_append" >&6; } 10297 10298 10299if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10300 lt_unset=unset 10301else 10302 lt_unset=false 10303fi 10304 10305 10306 10307 10308 10309# test EBCDIC or ASCII 10310case `echo X|tr X '\101'` in 10311 A) # ASCII based system 10312 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 10313 lt_SP2NL='tr \040 \012' 10314 lt_NL2SP='tr \015\012 \040\040' 10315 ;; 10316 *) # EBCDIC based system 10317 lt_SP2NL='tr \100 \n' 10318 lt_NL2SP='tr \r\n \100\100' 10319 ;; 10320esac 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 10331$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 10332if ${lt_cv_to_host_file_cmd+:} false; then : 10333 $as_echo_n "(cached) " >&6 10334else 10335 case $host in 10336 *-*-mingw* ) 10337 case $build in 10338 *-*-mingw* ) # actually msys 10339 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 10340 ;; 10341 *-*-cygwin* ) 10342 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 10343 ;; 10344 * ) # otherwise, assume *nix 10345 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 10346 ;; 10347 esac 10348 ;; 10349 *-*-cygwin* ) 10350 case $build in 10351 *-*-mingw* ) # actually msys 10352 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 10353 ;; 10354 *-*-cygwin* ) 10355 lt_cv_to_host_file_cmd=func_convert_file_noop 10356 ;; 10357 * ) # otherwise, assume *nix 10358 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 10359 ;; 10360 esac 10361 ;; 10362 * ) # unhandled hosts (and "normal" native builds) 10363 lt_cv_to_host_file_cmd=func_convert_file_noop 10364 ;; 10365esac 10366 10367fi 10368 10369to_host_file_cmd=$lt_cv_to_host_file_cmd 10370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 10371$as_echo "$lt_cv_to_host_file_cmd" >&6; } 10372 10373 10374 10375 10376 10377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 10378$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 10379if ${lt_cv_to_tool_file_cmd+:} false; then : 10380 $as_echo_n "(cached) " >&6 10381else 10382 #assume ordinary cross tools, or native build. 10383lt_cv_to_tool_file_cmd=func_convert_file_noop 10384case $host in 10385 *-*-mingw* ) 10386 case $build in 10387 *-*-mingw* ) # actually msys 10388 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 10389 ;; 10390 esac 10391 ;; 10392esac 10393 10394fi 10395 10396to_tool_file_cmd=$lt_cv_to_tool_file_cmd 10397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 10398$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 10399 10400 10401 10402 10403 10404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 10405$as_echo_n "checking for $LD option to reload object files... " >&6; } 10406if ${lt_cv_ld_reload_flag+:} false; then : 10407 $as_echo_n "(cached) " >&6 10408else 10409 lt_cv_ld_reload_flag='-r' 10410fi 10411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 10412$as_echo "$lt_cv_ld_reload_flag" >&6; } 10413reload_flag=$lt_cv_ld_reload_flag 10414case $reload_flag in 10415"" | " "*) ;; 10416*) reload_flag=" $reload_flag" ;; 10417esac 10418reload_cmds='$LD$reload_flag -o $output$reload_objs' 10419case $host_os in 10420 cygwin* | mingw* | pw32* | cegcc*) 10421 if test "$GCC" != yes; then 10422 reload_cmds=false 10423 fi 10424 ;; 10425 darwin*) 10426 if test "$GCC" = yes; then 10427 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 10428 else 10429 reload_cmds='$LD$reload_flag -o $output$reload_objs' 10430 fi 10431 ;; 10432esac 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442if test -n "$ac_tool_prefix"; then 10443 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 10444set dummy ${ac_tool_prefix}objdump; ac_word=$2 10445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10446$as_echo_n "checking for $ac_word... " >&6; } 10447if ${ac_cv_prog_OBJDUMP+:} false; then : 10448 $as_echo_n "(cached) " >&6 10449else 10450 if test -n "$OBJDUMP"; then 10451 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 10452else 10453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10454for as_dir in $PATH 10455do 10456 IFS=$as_save_IFS 10457 test -z "$as_dir" && as_dir=. 10458 for ac_exec_ext in '' $ac_executable_extensions; do 10459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10460 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 10461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10462 break 2 10463 fi 10464done 10465 done 10466IFS=$as_save_IFS 10467 10468fi 10469fi 10470OBJDUMP=$ac_cv_prog_OBJDUMP 10471if test -n "$OBJDUMP"; then 10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 10473$as_echo "$OBJDUMP" >&6; } 10474else 10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10476$as_echo "no" >&6; } 10477fi 10478 10479 10480fi 10481if test -z "$ac_cv_prog_OBJDUMP"; then 10482 ac_ct_OBJDUMP=$OBJDUMP 10483 # Extract the first word of "objdump", so it can be a program name with args. 10484set dummy objdump; ac_word=$2 10485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10486$as_echo_n "checking for $ac_word... " >&6; } 10487if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 10488 $as_echo_n "(cached) " >&6 10489else 10490 if test -n "$ac_ct_OBJDUMP"; then 10491 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 10492else 10493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10494for as_dir in $PATH 10495do 10496 IFS=$as_save_IFS 10497 test -z "$as_dir" && as_dir=. 10498 for ac_exec_ext in '' $ac_executable_extensions; do 10499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10500 ac_cv_prog_ac_ct_OBJDUMP="objdump" 10501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10502 break 2 10503 fi 10504done 10505 done 10506IFS=$as_save_IFS 10507 10508fi 10509fi 10510ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 10511if test -n "$ac_ct_OBJDUMP"; then 10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 10513$as_echo "$ac_ct_OBJDUMP" >&6; } 10514else 10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10516$as_echo "no" >&6; } 10517fi 10518 10519 if test "x$ac_ct_OBJDUMP" = x; then 10520 OBJDUMP="false" 10521 else 10522 case $cross_compiling:$ac_tool_warned in 10523yes:) 10524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10526ac_tool_warned=yes ;; 10527esac 10528 OBJDUMP=$ac_ct_OBJDUMP 10529 fi 10530else 10531 OBJDUMP="$ac_cv_prog_OBJDUMP" 10532fi 10533 10534test -z "$OBJDUMP" && OBJDUMP=objdump 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 10545$as_echo_n "checking how to recognize dependent libraries... " >&6; } 10546if ${lt_cv_deplibs_check_method+:} false; then : 10547 $as_echo_n "(cached) " >&6 10548else 10549 lt_cv_file_magic_cmd='$MAGIC_CMD' 10550lt_cv_file_magic_test_file= 10551lt_cv_deplibs_check_method='unknown' 10552# Need to set the preceding variable on all platforms that support 10553# interlibrary dependencies. 10554# 'none' -- dependencies not supported. 10555# `unknown' -- same as none, but documents that we really don't know. 10556# 'pass_all' -- all dependencies passed with no checks. 10557# 'test_compile' -- check by making test program. 10558# 'file_magic [[regex]]' -- check by looking for files in library path 10559# which responds to the $file_magic_cmd with a given extended regex. 10560# If you have `file' or equivalent on your system and you're not sure 10561# whether `pass_all' will *always* work, you probably want this one. 10562 10563case $host_os in 10564aix[4-9]*) 10565 lt_cv_deplibs_check_method=pass_all 10566 ;; 10567 10568beos*) 10569 lt_cv_deplibs_check_method=pass_all 10570 ;; 10571 10572bsdi[45]*) 10573 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 10574 lt_cv_file_magic_cmd='/usr/bin/file -L' 10575 lt_cv_file_magic_test_file=/shlib/libc.so 10576 ;; 10577 10578cygwin*) 10579 # func_win32_libid is a shell function defined in ltmain.sh 10580 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 10581 lt_cv_file_magic_cmd='func_win32_libid' 10582 ;; 10583 10584mingw* | pw32*) 10585 # Base MSYS/MinGW do not provide the 'file' command needed by 10586 # func_win32_libid shell function, so use a weaker test based on 'objdump', 10587 # unless we find 'file', for example because we are cross-compiling. 10588 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 10589 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 10590 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 10591 lt_cv_file_magic_cmd='func_win32_libid' 10592 else 10593 # Keep this pattern in sync with the one in func_win32_libid. 10594 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 10595 lt_cv_file_magic_cmd='$OBJDUMP -f' 10596 fi 10597 ;; 10598 10599cegcc*) 10600 # use the weaker test based on 'objdump'. See mingw*. 10601 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 10602 lt_cv_file_magic_cmd='$OBJDUMP -f' 10603 ;; 10604 10605darwin* | rhapsody*) 10606 lt_cv_deplibs_check_method=pass_all 10607 ;; 10608 10609freebsd* | dragonfly*) 10610 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 10611 case $host_cpu in 10612 i*86 ) 10613 # Not sure whether the presence of OpenBSD here was a mistake. 10614 # Let's accept both of them until this is cleared up. 10615 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 10616 lt_cv_file_magic_cmd=/usr/bin/file 10617 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 10618 ;; 10619 esac 10620 else 10621 lt_cv_deplibs_check_method=pass_all 10622 fi 10623 ;; 10624 10625gnu*) 10626 lt_cv_deplibs_check_method=pass_all 10627 ;; 10628 10629haiku*) 10630 lt_cv_deplibs_check_method=pass_all 10631 ;; 10632 10633hpux10.20* | hpux11*) 10634 lt_cv_file_magic_cmd=/usr/bin/file 10635 case $host_cpu in 10636 ia64*) 10637 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 10638 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 10639 ;; 10640 hppa*64*) 10641 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]' 10642 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 10643 ;; 10644 *) 10645 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 10646 lt_cv_file_magic_test_file=/usr/lib/libc.sl 10647 ;; 10648 esac 10649 ;; 10650 10651interix[3-9]*) 10652 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 10653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 10654 ;; 10655 10656irix5* | irix6* | nonstopux*) 10657 case $LD in 10658 *-32|*"-32 ") libmagic=32-bit;; 10659 *-n32|*"-n32 ") libmagic=N32;; 10660 *-64|*"-64 ") libmagic=64-bit;; 10661 *) libmagic=never-match;; 10662 esac 10663 lt_cv_deplibs_check_method=pass_all 10664 ;; 10665 10666# This must be glibc/ELF. 10667linux* | k*bsd*-gnu | kopensolaris*-gnu) 10668 lt_cv_deplibs_check_method=pass_all 10669 ;; 10670 10671netbsd*) 10672 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 10673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 10674 else 10675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 10676 fi 10677 ;; 10678 10679newos6*) 10680 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 10681 lt_cv_file_magic_cmd=/usr/bin/file 10682 lt_cv_file_magic_test_file=/usr/lib/libnls.so 10683 ;; 10684 10685*nto* | *qnx*) 10686 lt_cv_deplibs_check_method=pass_all 10687 ;; 10688 10689openbsd*) 10690 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 10692 else 10693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 10694 fi 10695 ;; 10696 10697osf3* | osf4* | osf5*) 10698 lt_cv_deplibs_check_method=pass_all 10699 ;; 10700 10701rdos*) 10702 lt_cv_deplibs_check_method=pass_all 10703 ;; 10704 10705solaris*) 10706 lt_cv_deplibs_check_method=pass_all 10707 ;; 10708 10709sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10710 lt_cv_deplibs_check_method=pass_all 10711 ;; 10712 10713sysv4 | sysv4.3*) 10714 case $host_vendor in 10715 motorola) 10716 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]' 10717 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 10718 ;; 10719 ncr) 10720 lt_cv_deplibs_check_method=pass_all 10721 ;; 10722 sequent) 10723 lt_cv_file_magic_cmd='/bin/file' 10724 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 10725 ;; 10726 sni) 10727 lt_cv_file_magic_cmd='/bin/file' 10728 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 10729 lt_cv_file_magic_test_file=/lib/libc.so 10730 ;; 10731 siemens) 10732 lt_cv_deplibs_check_method=pass_all 10733 ;; 10734 pc) 10735 lt_cv_deplibs_check_method=pass_all 10736 ;; 10737 esac 10738 ;; 10739 10740tpf*) 10741 lt_cv_deplibs_check_method=pass_all 10742 ;; 10743esac 10744 10745fi 10746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 10747$as_echo "$lt_cv_deplibs_check_method" >&6; } 10748 10749file_magic_glob= 10750want_nocaseglob=no 10751if test "$build" = "$host"; then 10752 case $host_os in 10753 mingw* | pw32*) 10754 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 10755 want_nocaseglob=yes 10756 else 10757 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 10758 fi 10759 ;; 10760 esac 10761fi 10762 10763file_magic_cmd=$lt_cv_file_magic_cmd 10764deplibs_check_method=$lt_cv_deplibs_check_method 10765test -z "$deplibs_check_method" && deplibs_check_method=unknown 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788if test -n "$ac_tool_prefix"; then 10789 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 10790set dummy ${ac_tool_prefix}dlltool; ac_word=$2 10791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10792$as_echo_n "checking for $ac_word... " >&6; } 10793if ${ac_cv_prog_DLLTOOL+:} false; then : 10794 $as_echo_n "(cached) " >&6 10795else 10796 if test -n "$DLLTOOL"; then 10797 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 10798else 10799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10800for as_dir in $PATH 10801do 10802 IFS=$as_save_IFS 10803 test -z "$as_dir" && as_dir=. 10804 for ac_exec_ext in '' $ac_executable_extensions; do 10805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10806 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 10807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10808 break 2 10809 fi 10810done 10811 done 10812IFS=$as_save_IFS 10813 10814fi 10815fi 10816DLLTOOL=$ac_cv_prog_DLLTOOL 10817if test -n "$DLLTOOL"; then 10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 10819$as_echo "$DLLTOOL" >&6; } 10820else 10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10822$as_echo "no" >&6; } 10823fi 10824 10825 10826fi 10827if test -z "$ac_cv_prog_DLLTOOL"; then 10828 ac_ct_DLLTOOL=$DLLTOOL 10829 # Extract the first word of "dlltool", so it can be a program name with args. 10830set dummy dlltool; ac_word=$2 10831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10832$as_echo_n "checking for $ac_word... " >&6; } 10833if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 10834 $as_echo_n "(cached) " >&6 10835else 10836 if test -n "$ac_ct_DLLTOOL"; then 10837 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 10838else 10839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10840for as_dir in $PATH 10841do 10842 IFS=$as_save_IFS 10843 test -z "$as_dir" && as_dir=. 10844 for ac_exec_ext in '' $ac_executable_extensions; do 10845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10846 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 10847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10848 break 2 10849 fi 10850done 10851 done 10852IFS=$as_save_IFS 10853 10854fi 10855fi 10856ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 10857if test -n "$ac_ct_DLLTOOL"; then 10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 10859$as_echo "$ac_ct_DLLTOOL" >&6; } 10860else 10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10862$as_echo "no" >&6; } 10863fi 10864 10865 if test "x$ac_ct_DLLTOOL" = x; then 10866 DLLTOOL="false" 10867 else 10868 case $cross_compiling:$ac_tool_warned in 10869yes:) 10870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10872ac_tool_warned=yes ;; 10873esac 10874 DLLTOOL=$ac_ct_DLLTOOL 10875 fi 10876else 10877 DLLTOOL="$ac_cv_prog_DLLTOOL" 10878fi 10879 10880test -z "$DLLTOOL" && DLLTOOL=dlltool 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 10892$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 10893if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 10894 $as_echo_n "(cached) " >&6 10895else 10896 lt_cv_sharedlib_from_linklib_cmd='unknown' 10897 10898case $host_os in 10899cygwin* | mingw* | pw32* | cegcc*) 10900 # two different shell functions defined in ltmain.sh 10901 # decide which to use based on capabilities of $DLLTOOL 10902 case `$DLLTOOL --help 2>&1` in 10903 *--identify-strict*) 10904 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 10905 ;; 10906 *) 10907 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 10908 ;; 10909 esac 10910 ;; 10911*) 10912 # fallback: assume linklib IS sharedlib 10913 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 10914 ;; 10915esac 10916 10917fi 10918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 10919$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 10920sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 10921test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 10922 10923 10924 10925 10926 10927 10928 10929if test -n "$ac_tool_prefix"; then 10930 for ac_prog in ar 10931 do 10932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10933set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10935$as_echo_n "checking for $ac_word... " >&6; } 10936if ${ac_cv_prog_AR+:} false; then : 10937 $as_echo_n "(cached) " >&6 10938else 10939 if test -n "$AR"; then 10940 ac_cv_prog_AR="$AR" # Let the user override the test. 10941else 10942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10943for as_dir in $PATH 10944do 10945 IFS=$as_save_IFS 10946 test -z "$as_dir" && as_dir=. 10947 for ac_exec_ext in '' $ac_executable_extensions; do 10948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10949 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 10950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10951 break 2 10952 fi 10953done 10954 done 10955IFS=$as_save_IFS 10956 10957fi 10958fi 10959AR=$ac_cv_prog_AR 10960if test -n "$AR"; then 10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 10962$as_echo "$AR" >&6; } 10963else 10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10965$as_echo "no" >&6; } 10966fi 10967 10968 10969 test -n "$AR" && break 10970 done 10971fi 10972if test -z "$AR"; then 10973 ac_ct_AR=$AR 10974 for ac_prog in ar 10975do 10976 # Extract the first word of "$ac_prog", so it can be a program name with args. 10977set dummy $ac_prog; ac_word=$2 10978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10979$as_echo_n "checking for $ac_word... " >&6; } 10980if ${ac_cv_prog_ac_ct_AR+:} false; then : 10981 $as_echo_n "(cached) " >&6 10982else 10983 if test -n "$ac_ct_AR"; then 10984 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 10985else 10986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10987for as_dir in $PATH 10988do 10989 IFS=$as_save_IFS 10990 test -z "$as_dir" && as_dir=. 10991 for ac_exec_ext in '' $ac_executable_extensions; do 10992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10993 ac_cv_prog_ac_ct_AR="$ac_prog" 10994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10995 break 2 10996 fi 10997done 10998 done 10999IFS=$as_save_IFS 11000 11001fi 11002fi 11003ac_ct_AR=$ac_cv_prog_ac_ct_AR 11004if test -n "$ac_ct_AR"; then 11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 11006$as_echo "$ac_ct_AR" >&6; } 11007else 11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11009$as_echo "no" >&6; } 11010fi 11011 11012 11013 test -n "$ac_ct_AR" && break 11014done 11015 11016 if test "x$ac_ct_AR" = x; then 11017 AR="false" 11018 else 11019 case $cross_compiling:$ac_tool_warned in 11020yes:) 11021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11023ac_tool_warned=yes ;; 11024esac 11025 AR=$ac_ct_AR 11026 fi 11027fi 11028 11029: ${AR=ar} 11030: ${AR_FLAGS=cru} 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 11043$as_echo_n "checking for archiver @FILE support... " >&6; } 11044if ${lt_cv_ar_at_file+:} false; then : 11045 $as_echo_n "(cached) " >&6 11046else 11047 lt_cv_ar_at_file=no 11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11049/* end confdefs.h. */ 11050 11051int 11052main () 11053{ 11054 11055 ; 11056 return 0; 11057} 11058_ACEOF 11059if ac_fn_c_try_compile "$LINENO"; then : 11060 echo conftest.$ac_objext > conftest.lst 11061 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 11062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 11063 (eval $lt_ar_try) 2>&5 11064 ac_status=$? 11065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11066 test $ac_status = 0; } 11067 if test "$ac_status" -eq 0; then 11068 # Ensure the archiver fails upon bogus file names. 11069 rm -f conftest.$ac_objext libconftest.a 11070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 11071 (eval $lt_ar_try) 2>&5 11072 ac_status=$? 11073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11074 test $ac_status = 0; } 11075 if test "$ac_status" -ne 0; then 11076 lt_cv_ar_at_file=@ 11077 fi 11078 fi 11079 rm -f conftest.* libconftest.a 11080 11081fi 11082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11083 11084fi 11085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 11086$as_echo "$lt_cv_ar_at_file" >&6; } 11087 11088if test "x$lt_cv_ar_at_file" = xno; then 11089 archiver_list_spec= 11090else 11091 archiver_list_spec=$lt_cv_ar_at_file 11092fi 11093 11094 11095 11096 11097 11098 11099 11100if test -n "$ac_tool_prefix"; then 11101 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 11102set dummy ${ac_tool_prefix}strip; ac_word=$2 11103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11104$as_echo_n "checking for $ac_word... " >&6; } 11105if ${ac_cv_prog_STRIP+:} false; then : 11106 $as_echo_n "(cached) " >&6 11107else 11108 if test -n "$STRIP"; then 11109 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 11110else 11111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11112for as_dir in $PATH 11113do 11114 IFS=$as_save_IFS 11115 test -z "$as_dir" && as_dir=. 11116 for ac_exec_ext in '' $ac_executable_extensions; do 11117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11118 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 11119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11120 break 2 11121 fi 11122done 11123 done 11124IFS=$as_save_IFS 11125 11126fi 11127fi 11128STRIP=$ac_cv_prog_STRIP 11129if test -n "$STRIP"; then 11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 11131$as_echo "$STRIP" >&6; } 11132else 11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11134$as_echo "no" >&6; } 11135fi 11136 11137 11138fi 11139if test -z "$ac_cv_prog_STRIP"; then 11140 ac_ct_STRIP=$STRIP 11141 # Extract the first word of "strip", so it can be a program name with args. 11142set dummy strip; ac_word=$2 11143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11144$as_echo_n "checking for $ac_word... " >&6; } 11145if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 11146 $as_echo_n "(cached) " >&6 11147else 11148 if test -n "$ac_ct_STRIP"; then 11149 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 11150else 11151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11152for as_dir in $PATH 11153do 11154 IFS=$as_save_IFS 11155 test -z "$as_dir" && as_dir=. 11156 for ac_exec_ext in '' $ac_executable_extensions; do 11157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11158 ac_cv_prog_ac_ct_STRIP="strip" 11159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11160 break 2 11161 fi 11162done 11163 done 11164IFS=$as_save_IFS 11165 11166fi 11167fi 11168ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 11169if test -n "$ac_ct_STRIP"; then 11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 11171$as_echo "$ac_ct_STRIP" >&6; } 11172else 11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11174$as_echo "no" >&6; } 11175fi 11176 11177 if test "x$ac_ct_STRIP" = x; then 11178 STRIP=":" 11179 else 11180 case $cross_compiling:$ac_tool_warned in 11181yes:) 11182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11184ac_tool_warned=yes ;; 11185esac 11186 STRIP=$ac_ct_STRIP 11187 fi 11188else 11189 STRIP="$ac_cv_prog_STRIP" 11190fi 11191 11192test -z "$STRIP" && STRIP=: 11193 11194 11195 11196 11197 11198 11199if test -n "$ac_tool_prefix"; then 11200 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 11201set dummy ${ac_tool_prefix}ranlib; ac_word=$2 11202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11203$as_echo_n "checking for $ac_word... " >&6; } 11204if ${ac_cv_prog_RANLIB+:} false; then : 11205 $as_echo_n "(cached) " >&6 11206else 11207 if test -n "$RANLIB"; then 11208 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 11209else 11210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11211for as_dir in $PATH 11212do 11213 IFS=$as_save_IFS 11214 test -z "$as_dir" && as_dir=. 11215 for ac_exec_ext in '' $ac_executable_extensions; do 11216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11217 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 11218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11219 break 2 11220 fi 11221done 11222 done 11223IFS=$as_save_IFS 11224 11225fi 11226fi 11227RANLIB=$ac_cv_prog_RANLIB 11228if test -n "$RANLIB"; then 11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 11230$as_echo "$RANLIB" >&6; } 11231else 11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11233$as_echo "no" >&6; } 11234fi 11235 11236 11237fi 11238if test -z "$ac_cv_prog_RANLIB"; then 11239 ac_ct_RANLIB=$RANLIB 11240 # Extract the first word of "ranlib", so it can be a program name with args. 11241set dummy ranlib; ac_word=$2 11242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11243$as_echo_n "checking for $ac_word... " >&6; } 11244if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 11245 $as_echo_n "(cached) " >&6 11246else 11247 if test -n "$ac_ct_RANLIB"; then 11248 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 11249else 11250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11251for as_dir in $PATH 11252do 11253 IFS=$as_save_IFS 11254 test -z "$as_dir" && as_dir=. 11255 for ac_exec_ext in '' $ac_executable_extensions; do 11256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11257 ac_cv_prog_ac_ct_RANLIB="ranlib" 11258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11259 break 2 11260 fi 11261done 11262 done 11263IFS=$as_save_IFS 11264 11265fi 11266fi 11267ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 11268if test -n "$ac_ct_RANLIB"; then 11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 11270$as_echo "$ac_ct_RANLIB" >&6; } 11271else 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11273$as_echo "no" >&6; } 11274fi 11275 11276 if test "x$ac_ct_RANLIB" = x; then 11277 RANLIB=":" 11278 else 11279 case $cross_compiling:$ac_tool_warned in 11280yes:) 11281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11283ac_tool_warned=yes ;; 11284esac 11285 RANLIB=$ac_ct_RANLIB 11286 fi 11287else 11288 RANLIB="$ac_cv_prog_RANLIB" 11289fi 11290 11291test -z "$RANLIB" && RANLIB=: 11292 11293 11294 11295 11296 11297 11298# Determine commands to create old-style static archives. 11299old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 11300old_postinstall_cmds='chmod 644 $oldlib' 11301old_postuninstall_cmds= 11302 11303if test -n "$RANLIB"; then 11304 case $host_os in 11305 openbsd*) 11306 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 11307 ;; 11308 *) 11309 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 11310 ;; 11311 esac 11312 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 11313fi 11314 11315case $host_os in 11316 darwin*) 11317 lock_old_archive_extraction=yes ;; 11318 *) 11319 lock_old_archive_extraction=no ;; 11320esac 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360# If no C compiler was specified, use CC. 11361LTCC=${LTCC-"$CC"} 11362 11363# If no C compiler flags were specified, use CFLAGS. 11364LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11365 11366# Allow CC to be a program name with arguments. 11367compiler=$CC 11368 11369 11370# Check for command to grab the raw symbol name followed by C symbol from nm. 11371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 11372$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 11373if ${lt_cv_sys_global_symbol_pipe+:} false; then : 11374 $as_echo_n "(cached) " >&6 11375else 11376 11377# These are sane defaults that work on at least a few old systems. 11378# [They come from Ultrix. What could be older than Ultrix?!! ;)] 11379 11380# Character class describing NM global symbol codes. 11381symcode='[BCDEGRST]' 11382 11383# Regexp to match symbols that can be accessed directly from C. 11384sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 11385 11386# Define system-specific variables. 11387case $host_os in 11388aix*) 11389 symcode='[BCDT]' 11390 ;; 11391cygwin* | mingw* | pw32* | cegcc*) 11392 symcode='[ABCDGISTW]' 11393 ;; 11394hpux*) 11395 if test "$host_cpu" = ia64; then 11396 symcode='[ABCDEGRST]' 11397 fi 11398 ;; 11399irix* | nonstopux*) 11400 symcode='[BCDEGRST]' 11401 ;; 11402osf*) 11403 symcode='[BCDEGQRST]' 11404 ;; 11405solaris*) 11406 symcode='[BDRT]' 11407 ;; 11408sco3.2v5*) 11409 symcode='[DT]' 11410 ;; 11411sysv4.2uw2*) 11412 symcode='[DT]' 11413 ;; 11414sysv5* | sco5v6* | unixware* | OpenUNIX*) 11415 symcode='[ABDT]' 11416 ;; 11417sysv4) 11418 symcode='[DFNSTU]' 11419 ;; 11420esac 11421 11422# If we're using GNU nm, then use its standard symbol codes. 11423case `$NM -V 2>&1` in 11424*GNU* | *'with BFD'*) 11425 symcode='[ABCDGIRSTW]' ;; 11426esac 11427 11428# Transform an extracted symbol line into a proper C declaration. 11429# Some systems (esp. on ia64) link data and code symbols differently, 11430# so use this general approach. 11431lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 11432 11433# Transform an extracted symbol line into symbol name and symbol address 11434lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 11435lt_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'" 11436 11437# Handle CRLF in mingw tool chain 11438opt_cr= 11439case $build_os in 11440mingw*) 11441 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 11442 ;; 11443esac 11444 11445# Try without a prefix underscore, then with it. 11446for ac_symprfx in "" "_"; do 11447 11448 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 11449 symxfrm="\\1 $ac_symprfx\\2 \\2" 11450 11451 # Write the raw and C identifiers. 11452 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 11453 # Fake it for dumpbin and say T for any non-static function 11454 # and D for any global variable. 11455 # Also find C++ and __fastcall symbols from MSVC++, 11456 # which start with @ or ?. 11457 lt_cv_sys_global_symbol_pipe="$AWK '"\ 11458" {last_section=section; section=\$ 3};"\ 11459" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 11460" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 11461" \$ 0!~/External *\|/{next};"\ 11462" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 11463" {if(hide[section]) next};"\ 11464" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 11465" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 11466" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 11467" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 11468" ' prfx=^$ac_symprfx" 11469 else 11470 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 11471 fi 11472 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 11473 11474 # Check to see that the pipe works correctly. 11475 pipe_works=no 11476 11477 rm -f conftest* 11478 cat > conftest.$ac_ext <<_LT_EOF 11479#ifdef __cplusplus 11480extern "C" { 11481#endif 11482char nm_test_var; 11483void nm_test_func(void); 11484void nm_test_func(void){} 11485#ifdef __cplusplus 11486} 11487#endif 11488int main(){nm_test_var='a';nm_test_func();return(0);} 11489_LT_EOF 11490 11491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11492 (eval $ac_compile) 2>&5 11493 ac_status=$? 11494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11495 test $ac_status = 0; }; then 11496 # Now try to grab the symbols. 11497 nlist=conftest.nm 11498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 11499 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 11500 ac_status=$? 11501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11502 test $ac_status = 0; } && test -s "$nlist"; then 11503 # Try sorting and uniquifying the output. 11504 if sort "$nlist" | uniq > "$nlist"T; then 11505 mv -f "$nlist"T "$nlist" 11506 else 11507 rm -f "$nlist"T 11508 fi 11509 11510 # Make sure that we snagged all the symbols we need. 11511 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 11512 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 11513 cat <<_LT_EOF > conftest.$ac_ext 11514/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 11515#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 11516/* DATA imports from DLLs on WIN32 con't be const, because runtime 11517 relocations are performed -- see ld's documentation on pseudo-relocs. */ 11518# define LT_DLSYM_CONST 11519#elif defined(__osf__) 11520/* This system does not cope well with relocations in const data. */ 11521# define LT_DLSYM_CONST 11522#else 11523# define LT_DLSYM_CONST const 11524#endif 11525 11526#ifdef __cplusplus 11527extern "C" { 11528#endif 11529 11530_LT_EOF 11531 # Now generate the symbol file. 11532 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 11533 11534 cat <<_LT_EOF >> conftest.$ac_ext 11535 11536/* The mapping between symbol names and symbols. */ 11537LT_DLSYM_CONST struct { 11538 const char *name; 11539 void *address; 11540} 11541lt__PROGRAM__LTX_preloaded_symbols[] = 11542{ 11543 { "@PROGRAM@", (void *) 0 }, 11544_LT_EOF 11545 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 11546 cat <<\_LT_EOF >> conftest.$ac_ext 11547 {0, (void *) 0} 11548}; 11549 11550/* This works around a problem in FreeBSD linker */ 11551#ifdef FREEBSD_WORKAROUND 11552static const void *lt_preloaded_setup() { 11553 return lt__PROGRAM__LTX_preloaded_symbols; 11554} 11555#endif 11556 11557#ifdef __cplusplus 11558} 11559#endif 11560_LT_EOF 11561 # Now try linking the two files. 11562 mv conftest.$ac_objext conftstm.$ac_objext 11563 lt_globsym_save_LIBS=$LIBS 11564 lt_globsym_save_CFLAGS=$CFLAGS 11565 LIBS="conftstm.$ac_objext" 11566 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 11567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11568 (eval $ac_link) 2>&5 11569 ac_status=$? 11570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11571 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 11572 pipe_works=yes 11573 fi 11574 LIBS=$lt_globsym_save_LIBS 11575 CFLAGS=$lt_globsym_save_CFLAGS 11576 else 11577 echo "cannot find nm_test_func in $nlist" >&5 11578 fi 11579 else 11580 echo "cannot find nm_test_var in $nlist" >&5 11581 fi 11582 else 11583 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 11584 fi 11585 else 11586 echo "$progname: failed program was:" >&5 11587 cat conftest.$ac_ext >&5 11588 fi 11589 rm -rf conftest* conftst* 11590 11591 # Do not use the global_symbol_pipe unless it works. 11592 if test "$pipe_works" = yes; then 11593 break 11594 else 11595 lt_cv_sys_global_symbol_pipe= 11596 fi 11597done 11598 11599fi 11600 11601if test -z "$lt_cv_sys_global_symbol_pipe"; then 11602 lt_cv_sys_global_symbol_to_cdecl= 11603fi 11604if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 11606$as_echo "failed" >&6; } 11607else 11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 11609$as_echo "ok" >&6; } 11610fi 11611 11612# Response file support. 11613if test "$lt_cv_nm_interface" = "MS dumpbin"; then 11614 nm_file_list_spec='@' 11615elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 11616 nm_file_list_spec='@' 11617fi 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 11646$as_echo_n "checking for sysroot... " >&6; } 11647 11648# Check whether --with-sysroot was given. 11649if test "${with_sysroot+set}" = set; then : 11650 withval=$with_sysroot; 11651else 11652 with_sysroot=no 11653fi 11654 11655 11656lt_sysroot= 11657case ${with_sysroot} in #( 11658 yes) 11659 if test "$GCC" = yes; then 11660 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 11661 fi 11662 ;; #( 11663 /*) 11664 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 11665 ;; #( 11666 no|'') 11667 ;; #( 11668 *) 11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 11670$as_echo "${with_sysroot}" >&6; } 11671 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 11672 ;; 11673esac 11674 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 11676$as_echo "${lt_sysroot:-no}" >&6; } 11677 11678 11679 11680 11681 11682# Check whether --enable-libtool-lock was given. 11683if test "${enable_libtool_lock+set}" = set; then : 11684 enableval=$enable_libtool_lock; 11685fi 11686 11687test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 11688 11689# Some flags need to be propagated to the compiler or linker for good 11690# libtool support. 11691case $host in 11692ia64-*-hpux*) 11693 # Find out which ABI we are using. 11694 echo 'int i;' > conftest.$ac_ext 11695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11696 (eval $ac_compile) 2>&5 11697 ac_status=$? 11698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11699 test $ac_status = 0; }; then 11700 case `/usr/bin/file conftest.$ac_objext` in 11701 *ELF-32*) 11702 HPUX_IA64_MODE="32" 11703 ;; 11704 *ELF-64*) 11705 HPUX_IA64_MODE="64" 11706 ;; 11707 esac 11708 fi 11709 rm -rf conftest* 11710 ;; 11711*-*-irix6*) 11712 # Find out which ABI we are using. 11713 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 11714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11715 (eval $ac_compile) 2>&5 11716 ac_status=$? 11717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11718 test $ac_status = 0; }; then 11719 if test "$lt_cv_prog_gnu_ld" = yes; then 11720 case `/usr/bin/file conftest.$ac_objext` in 11721 *32-bit*) 11722 LD="${LD-ld} -melf32bsmip" 11723 ;; 11724 *N32*) 11725 LD="${LD-ld} -melf32bmipn32" 11726 ;; 11727 *64-bit*) 11728 LD="${LD-ld} -melf64bmip" 11729 ;; 11730 esac 11731 else 11732 case `/usr/bin/file conftest.$ac_objext` in 11733 *32-bit*) 11734 LD="${LD-ld} -32" 11735 ;; 11736 *N32*) 11737 LD="${LD-ld} -n32" 11738 ;; 11739 *64-bit*) 11740 LD="${LD-ld} -64" 11741 ;; 11742 esac 11743 fi 11744 fi 11745 rm -rf conftest* 11746 ;; 11747 11748x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 11749s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 11750 # Find out which ABI we are using. 11751 echo 'int i;' > conftest.$ac_ext 11752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11753 (eval $ac_compile) 2>&5 11754 ac_status=$? 11755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11756 test $ac_status = 0; }; then 11757 case `/usr/bin/file conftest.o` in 11758 *32-bit*) 11759 case $host in 11760 x86_64-*kfreebsd*-gnu) 11761 LD="${LD-ld} -m elf_i386_fbsd" 11762 ;; 11763 x86_64-*linux*) 11764 LD="${LD-ld} -m elf_i386" 11765 ;; 11766 ppc64-*linux*|powerpc64-*linux*) 11767 LD="${LD-ld} -m elf32ppclinux" 11768 ;; 11769 s390x-*linux*) 11770 LD="${LD-ld} -m elf_s390" 11771 ;; 11772 sparc64-*linux*) 11773 LD="${LD-ld} -m elf32_sparc" 11774 ;; 11775 esac 11776 ;; 11777 *64-bit*) 11778 case $host in 11779 x86_64-*kfreebsd*-gnu) 11780 LD="${LD-ld} -m elf_x86_64_fbsd" 11781 ;; 11782 x86_64-*linux*) 11783 LD="${LD-ld} -m elf_x86_64" 11784 ;; 11785 ppc*-*linux*|powerpc*-*linux*) 11786 LD="${LD-ld} -m elf64ppc" 11787 ;; 11788 s390*-*linux*|s390*-*tpf*) 11789 LD="${LD-ld} -m elf64_s390" 11790 ;; 11791 sparc*-*linux*) 11792 LD="${LD-ld} -m elf64_sparc" 11793 ;; 11794 esac 11795 ;; 11796 esac 11797 fi 11798 rm -rf conftest* 11799 ;; 11800 11801*-*-sco3.2v5*) 11802 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 11803 SAVE_CFLAGS="$CFLAGS" 11804 CFLAGS="$CFLAGS -belf" 11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 11806$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 11807if ${lt_cv_cc_needs_belf+:} false; then : 11808 $as_echo_n "(cached) " >&6 11809else 11810 ac_ext=c 11811ac_cpp='$CPP $CPPFLAGS' 11812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11814ac_compiler_gnu=$ac_cv_c_compiler_gnu 11815 11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11817/* end confdefs.h. */ 11818 11819int 11820main () 11821{ 11822 11823 ; 11824 return 0; 11825} 11826_ACEOF 11827if ac_fn_c_try_link "$LINENO"; then : 11828 lt_cv_cc_needs_belf=yes 11829else 11830 lt_cv_cc_needs_belf=no 11831fi 11832rm -f core conftest.err conftest.$ac_objext \ 11833 conftest$ac_exeext conftest.$ac_ext 11834 ac_ext=c 11835ac_cpp='$CPP $CPPFLAGS' 11836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11838ac_compiler_gnu=$ac_cv_c_compiler_gnu 11839 11840fi 11841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 11842$as_echo "$lt_cv_cc_needs_belf" >&6; } 11843 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 11844 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 11845 CFLAGS="$SAVE_CFLAGS" 11846 fi 11847 ;; 11848*-*solaris*) 11849 # Find out which ABI we are using. 11850 echo 'int i;' > conftest.$ac_ext 11851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11852 (eval $ac_compile) 2>&5 11853 ac_status=$? 11854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11855 test $ac_status = 0; }; then 11856 case `/usr/bin/file conftest.o` in 11857 *64-bit*) 11858 case $lt_cv_prog_gnu_ld in 11859 yes*) 11860 case $host in 11861 i?86-*-solaris*) 11862 LD="${LD-ld} -m elf_x86_64" 11863 ;; 11864 sparc*-*-solaris*) 11865 LD="${LD-ld} -m elf64_sparc" 11866 ;; 11867 esac 11868 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 11869 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 11870 LD="${LD-ld}_sol2" 11871 fi 11872 ;; 11873 *) 11874 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 11875 LD="${LD-ld} -64" 11876 fi 11877 ;; 11878 esac 11879 ;; 11880 esac 11881 fi 11882 rm -rf conftest* 11883 ;; 11884esac 11885 11886need_locks="$enable_libtool_lock" 11887 11888if test -n "$ac_tool_prefix"; then 11889 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 11890set dummy ${ac_tool_prefix}mt; ac_word=$2 11891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11892$as_echo_n "checking for $ac_word... " >&6; } 11893if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 11894 $as_echo_n "(cached) " >&6 11895else 11896 if test -n "$MANIFEST_TOOL"; then 11897 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 11898else 11899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11900for as_dir in $PATH 11901do 11902 IFS=$as_save_IFS 11903 test -z "$as_dir" && as_dir=. 11904 for ac_exec_ext in '' $ac_executable_extensions; do 11905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11906 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 11907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11908 break 2 11909 fi 11910done 11911 done 11912IFS=$as_save_IFS 11913 11914fi 11915fi 11916MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 11917if test -n "$MANIFEST_TOOL"; then 11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 11919$as_echo "$MANIFEST_TOOL" >&6; } 11920else 11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11922$as_echo "no" >&6; } 11923fi 11924 11925 11926fi 11927if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 11928 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 11929 # Extract the first word of "mt", so it can be a program name with args. 11930set dummy mt; ac_word=$2 11931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11932$as_echo_n "checking for $ac_word... " >&6; } 11933if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 11934 $as_echo_n "(cached) " >&6 11935else 11936 if test -n "$ac_ct_MANIFEST_TOOL"; then 11937 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 11938else 11939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11940for as_dir in $PATH 11941do 11942 IFS=$as_save_IFS 11943 test -z "$as_dir" && as_dir=. 11944 for ac_exec_ext in '' $ac_executable_extensions; do 11945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11946 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 11947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11948 break 2 11949 fi 11950done 11951 done 11952IFS=$as_save_IFS 11953 11954fi 11955fi 11956ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 11957if test -n "$ac_ct_MANIFEST_TOOL"; then 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 11959$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 11960else 11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11962$as_echo "no" >&6; } 11963fi 11964 11965 if test "x$ac_ct_MANIFEST_TOOL" = x; then 11966 MANIFEST_TOOL=":" 11967 else 11968 case $cross_compiling:$ac_tool_warned in 11969yes:) 11970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11972ac_tool_warned=yes ;; 11973esac 11974 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 11975 fi 11976else 11977 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 11978fi 11979 11980test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 11981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 11982$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 11983if ${lt_cv_path_mainfest_tool+:} false; then : 11984 $as_echo_n "(cached) " >&6 11985else 11986 lt_cv_path_mainfest_tool=no 11987 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 11988 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 11989 cat conftest.err >&5 11990 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 11991 lt_cv_path_mainfest_tool=yes 11992 fi 11993 rm -f conftest* 11994fi 11995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 11996$as_echo "$lt_cv_path_mainfest_tool" >&6; } 11997if test "x$lt_cv_path_mainfest_tool" != xyes; then 11998 MANIFEST_TOOL=: 11999fi 12000 12001 12002 12003 12004 12005 12006 case $host_os in 12007 rhapsody* | darwin*) 12008 if test -n "$ac_tool_prefix"; then 12009 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 12010set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 12011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12012$as_echo_n "checking for $ac_word... " >&6; } 12013if ${ac_cv_prog_DSYMUTIL+:} false; then : 12014 $as_echo_n "(cached) " >&6 12015else 12016 if test -n "$DSYMUTIL"; then 12017 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 12018else 12019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12020for as_dir in $PATH 12021do 12022 IFS=$as_save_IFS 12023 test -z "$as_dir" && as_dir=. 12024 for ac_exec_ext in '' $ac_executable_extensions; do 12025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12026 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 12027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12028 break 2 12029 fi 12030done 12031 done 12032IFS=$as_save_IFS 12033 12034fi 12035fi 12036DSYMUTIL=$ac_cv_prog_DSYMUTIL 12037if test -n "$DSYMUTIL"; then 12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 12039$as_echo "$DSYMUTIL" >&6; } 12040else 12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12042$as_echo "no" >&6; } 12043fi 12044 12045 12046fi 12047if test -z "$ac_cv_prog_DSYMUTIL"; then 12048 ac_ct_DSYMUTIL=$DSYMUTIL 12049 # Extract the first word of "dsymutil", so it can be a program name with args. 12050set dummy dsymutil; ac_word=$2 12051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12052$as_echo_n "checking for $ac_word... " >&6; } 12053if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 12054 $as_echo_n "(cached) " >&6 12055else 12056 if test -n "$ac_ct_DSYMUTIL"; then 12057 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 12058else 12059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12060for as_dir in $PATH 12061do 12062 IFS=$as_save_IFS 12063 test -z "$as_dir" && as_dir=. 12064 for ac_exec_ext in '' $ac_executable_extensions; do 12065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12066 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 12067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12068 break 2 12069 fi 12070done 12071 done 12072IFS=$as_save_IFS 12073 12074fi 12075fi 12076ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 12077if test -n "$ac_ct_DSYMUTIL"; then 12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 12079$as_echo "$ac_ct_DSYMUTIL" >&6; } 12080else 12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12082$as_echo "no" >&6; } 12083fi 12084 12085 if test "x$ac_ct_DSYMUTIL" = x; then 12086 DSYMUTIL=":" 12087 else 12088 case $cross_compiling:$ac_tool_warned in 12089yes:) 12090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12092ac_tool_warned=yes ;; 12093esac 12094 DSYMUTIL=$ac_ct_DSYMUTIL 12095 fi 12096else 12097 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 12098fi 12099 12100 if test -n "$ac_tool_prefix"; then 12101 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 12102set dummy ${ac_tool_prefix}nmedit; ac_word=$2 12103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12104$as_echo_n "checking for $ac_word... " >&6; } 12105if ${ac_cv_prog_NMEDIT+:} false; then : 12106 $as_echo_n "(cached) " >&6 12107else 12108 if test -n "$NMEDIT"; then 12109 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 12110else 12111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12112for as_dir in $PATH 12113do 12114 IFS=$as_save_IFS 12115 test -z "$as_dir" && as_dir=. 12116 for ac_exec_ext in '' $ac_executable_extensions; do 12117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12118 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 12119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12120 break 2 12121 fi 12122done 12123 done 12124IFS=$as_save_IFS 12125 12126fi 12127fi 12128NMEDIT=$ac_cv_prog_NMEDIT 12129if test -n "$NMEDIT"; then 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 12131$as_echo "$NMEDIT" >&6; } 12132else 12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12134$as_echo "no" >&6; } 12135fi 12136 12137 12138fi 12139if test -z "$ac_cv_prog_NMEDIT"; then 12140 ac_ct_NMEDIT=$NMEDIT 12141 # Extract the first word of "nmedit", so it can be a program name with args. 12142set dummy nmedit; ac_word=$2 12143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12144$as_echo_n "checking for $ac_word... " >&6; } 12145if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 12146 $as_echo_n "(cached) " >&6 12147else 12148 if test -n "$ac_ct_NMEDIT"; then 12149 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 12150else 12151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12152for as_dir in $PATH 12153do 12154 IFS=$as_save_IFS 12155 test -z "$as_dir" && as_dir=. 12156 for ac_exec_ext in '' $ac_executable_extensions; do 12157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12158 ac_cv_prog_ac_ct_NMEDIT="nmedit" 12159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12160 break 2 12161 fi 12162done 12163 done 12164IFS=$as_save_IFS 12165 12166fi 12167fi 12168ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 12169if test -n "$ac_ct_NMEDIT"; then 12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 12171$as_echo "$ac_ct_NMEDIT" >&6; } 12172else 12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12174$as_echo "no" >&6; } 12175fi 12176 12177 if test "x$ac_ct_NMEDIT" = x; then 12178 NMEDIT=":" 12179 else 12180 case $cross_compiling:$ac_tool_warned in 12181yes:) 12182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12184ac_tool_warned=yes ;; 12185esac 12186 NMEDIT=$ac_ct_NMEDIT 12187 fi 12188else 12189 NMEDIT="$ac_cv_prog_NMEDIT" 12190fi 12191 12192 if test -n "$ac_tool_prefix"; then 12193 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 12194set dummy ${ac_tool_prefix}lipo; ac_word=$2 12195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12196$as_echo_n "checking for $ac_word... " >&6; } 12197if ${ac_cv_prog_LIPO+:} false; then : 12198 $as_echo_n "(cached) " >&6 12199else 12200 if test -n "$LIPO"; then 12201 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 12202else 12203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12204for as_dir in $PATH 12205do 12206 IFS=$as_save_IFS 12207 test -z "$as_dir" && as_dir=. 12208 for ac_exec_ext in '' $ac_executable_extensions; do 12209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12210 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 12211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12212 break 2 12213 fi 12214done 12215 done 12216IFS=$as_save_IFS 12217 12218fi 12219fi 12220LIPO=$ac_cv_prog_LIPO 12221if test -n "$LIPO"; then 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 12223$as_echo "$LIPO" >&6; } 12224else 12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12226$as_echo "no" >&6; } 12227fi 12228 12229 12230fi 12231if test -z "$ac_cv_prog_LIPO"; then 12232 ac_ct_LIPO=$LIPO 12233 # Extract the first word of "lipo", so it can be a program name with args. 12234set dummy lipo; ac_word=$2 12235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12236$as_echo_n "checking for $ac_word... " >&6; } 12237if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 12238 $as_echo_n "(cached) " >&6 12239else 12240 if test -n "$ac_ct_LIPO"; then 12241 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 12242else 12243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12244for as_dir in $PATH 12245do 12246 IFS=$as_save_IFS 12247 test -z "$as_dir" && as_dir=. 12248 for ac_exec_ext in '' $ac_executable_extensions; do 12249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12250 ac_cv_prog_ac_ct_LIPO="lipo" 12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12252 break 2 12253 fi 12254done 12255 done 12256IFS=$as_save_IFS 12257 12258fi 12259fi 12260ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 12261if test -n "$ac_ct_LIPO"; then 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 12263$as_echo "$ac_ct_LIPO" >&6; } 12264else 12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12266$as_echo "no" >&6; } 12267fi 12268 12269 if test "x$ac_ct_LIPO" = x; then 12270 LIPO=":" 12271 else 12272 case $cross_compiling:$ac_tool_warned in 12273yes:) 12274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12276ac_tool_warned=yes ;; 12277esac 12278 LIPO=$ac_ct_LIPO 12279 fi 12280else 12281 LIPO="$ac_cv_prog_LIPO" 12282fi 12283 12284 if test -n "$ac_tool_prefix"; then 12285 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 12286set dummy ${ac_tool_prefix}otool; ac_word=$2 12287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12288$as_echo_n "checking for $ac_word... " >&6; } 12289if ${ac_cv_prog_OTOOL+:} false; then : 12290 $as_echo_n "(cached) " >&6 12291else 12292 if test -n "$OTOOL"; then 12293 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 12294else 12295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12296for as_dir in $PATH 12297do 12298 IFS=$as_save_IFS 12299 test -z "$as_dir" && as_dir=. 12300 for ac_exec_ext in '' $ac_executable_extensions; do 12301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12302 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 12303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12304 break 2 12305 fi 12306done 12307 done 12308IFS=$as_save_IFS 12309 12310fi 12311fi 12312OTOOL=$ac_cv_prog_OTOOL 12313if test -n "$OTOOL"; then 12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 12315$as_echo "$OTOOL" >&6; } 12316else 12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12318$as_echo "no" >&6; } 12319fi 12320 12321 12322fi 12323if test -z "$ac_cv_prog_OTOOL"; then 12324 ac_ct_OTOOL=$OTOOL 12325 # Extract the first word of "otool", so it can be a program name with args. 12326set dummy otool; ac_word=$2 12327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12328$as_echo_n "checking for $ac_word... " >&6; } 12329if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 12330 $as_echo_n "(cached) " >&6 12331else 12332 if test -n "$ac_ct_OTOOL"; then 12333 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 12334else 12335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12336for as_dir in $PATH 12337do 12338 IFS=$as_save_IFS 12339 test -z "$as_dir" && as_dir=. 12340 for ac_exec_ext in '' $ac_executable_extensions; do 12341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12342 ac_cv_prog_ac_ct_OTOOL="otool" 12343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12344 break 2 12345 fi 12346done 12347 done 12348IFS=$as_save_IFS 12349 12350fi 12351fi 12352ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 12353if test -n "$ac_ct_OTOOL"; then 12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 12355$as_echo "$ac_ct_OTOOL" >&6; } 12356else 12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12358$as_echo "no" >&6; } 12359fi 12360 12361 if test "x$ac_ct_OTOOL" = x; then 12362 OTOOL=":" 12363 else 12364 case $cross_compiling:$ac_tool_warned in 12365yes:) 12366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12368ac_tool_warned=yes ;; 12369esac 12370 OTOOL=$ac_ct_OTOOL 12371 fi 12372else 12373 OTOOL="$ac_cv_prog_OTOOL" 12374fi 12375 12376 if test -n "$ac_tool_prefix"; then 12377 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 12378set dummy ${ac_tool_prefix}otool64; ac_word=$2 12379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12380$as_echo_n "checking for $ac_word... " >&6; } 12381if ${ac_cv_prog_OTOOL64+:} false; then : 12382 $as_echo_n "(cached) " >&6 12383else 12384 if test -n "$OTOOL64"; then 12385 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 12386else 12387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12388for as_dir in $PATH 12389do 12390 IFS=$as_save_IFS 12391 test -z "$as_dir" && as_dir=. 12392 for ac_exec_ext in '' $ac_executable_extensions; do 12393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12394 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 12395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12396 break 2 12397 fi 12398done 12399 done 12400IFS=$as_save_IFS 12401 12402fi 12403fi 12404OTOOL64=$ac_cv_prog_OTOOL64 12405if test -n "$OTOOL64"; then 12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 12407$as_echo "$OTOOL64" >&6; } 12408else 12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12410$as_echo "no" >&6; } 12411fi 12412 12413 12414fi 12415if test -z "$ac_cv_prog_OTOOL64"; then 12416 ac_ct_OTOOL64=$OTOOL64 12417 # Extract the first word of "otool64", so it can be a program name with args. 12418set dummy otool64; ac_word=$2 12419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12420$as_echo_n "checking for $ac_word... " >&6; } 12421if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 12422 $as_echo_n "(cached) " >&6 12423else 12424 if test -n "$ac_ct_OTOOL64"; then 12425 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 12426else 12427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12428for as_dir in $PATH 12429do 12430 IFS=$as_save_IFS 12431 test -z "$as_dir" && as_dir=. 12432 for ac_exec_ext in '' $ac_executable_extensions; do 12433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12434 ac_cv_prog_ac_ct_OTOOL64="otool64" 12435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12436 break 2 12437 fi 12438done 12439 done 12440IFS=$as_save_IFS 12441 12442fi 12443fi 12444ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 12445if test -n "$ac_ct_OTOOL64"; then 12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 12447$as_echo "$ac_ct_OTOOL64" >&6; } 12448else 12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12450$as_echo "no" >&6; } 12451fi 12452 12453 if test "x$ac_ct_OTOOL64" = x; then 12454 OTOOL64=":" 12455 else 12456 case $cross_compiling:$ac_tool_warned in 12457yes:) 12458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12460ac_tool_warned=yes ;; 12461esac 12462 OTOOL64=$ac_ct_OTOOL64 12463 fi 12464else 12465 OTOOL64="$ac_cv_prog_OTOOL64" 12466fi 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 12495$as_echo_n "checking for -single_module linker flag... " >&6; } 12496if ${lt_cv_apple_cc_single_mod+:} false; then : 12497 $as_echo_n "(cached) " >&6 12498else 12499 lt_cv_apple_cc_single_mod=no 12500 if test -z "${LT_MULTI_MODULE}"; then 12501 # By default we will add the -single_module flag. You can override 12502 # by either setting the environment variable LT_MULTI_MODULE 12503 # non-empty at configure time, or by adding -multi_module to the 12504 # link flags. 12505 rm -rf libconftest.dylib* 12506 echo "int foo(void){return 1;}" > conftest.c 12507 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 12508-dynamiclib -Wl,-single_module conftest.c" >&5 12509 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 12510 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 12511 _lt_result=$? 12512 # If there is a non-empty error log, and "single_module" 12513 # appears in it, assume the flag caused a linker warning 12514 if test -s conftest.err && $GREP single_module conftest.err; then 12515 cat conftest.err >&5 12516 # Otherwise, if the output was created with a 0 exit code from 12517 # the compiler, it worked. 12518 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 12519 lt_cv_apple_cc_single_mod=yes 12520 else 12521 cat conftest.err >&5 12522 fi 12523 rm -rf libconftest.dylib* 12524 rm -f conftest.* 12525 fi 12526fi 12527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 12528$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 12529 12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 12531$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 12532if ${lt_cv_ld_exported_symbols_list+:} false; then : 12533 $as_echo_n "(cached) " >&6 12534else 12535 lt_cv_ld_exported_symbols_list=no 12536 save_LDFLAGS=$LDFLAGS 12537 echo "_main" > conftest.sym 12538 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12540/* end confdefs.h. */ 12541 12542int 12543main () 12544{ 12545 12546 ; 12547 return 0; 12548} 12549_ACEOF 12550if ac_fn_c_try_link "$LINENO"; then : 12551 lt_cv_ld_exported_symbols_list=yes 12552else 12553 lt_cv_ld_exported_symbols_list=no 12554fi 12555rm -f core conftest.err conftest.$ac_objext \ 12556 conftest$ac_exeext conftest.$ac_ext 12557 LDFLAGS="$save_LDFLAGS" 12558 12559fi 12560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 12561$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 12562 12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 12564$as_echo_n "checking for -force_load linker flag... " >&6; } 12565if ${lt_cv_ld_force_load+:} false; then : 12566 $as_echo_n "(cached) " >&6 12567else 12568 lt_cv_ld_force_load=no 12569 cat > conftest.c << _LT_EOF 12570int forced_loaded() { return 2;} 12571_LT_EOF 12572 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 12573 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 12574 echo "$AR cru libconftest.a conftest.o" >&5 12575 $AR cru libconftest.a conftest.o 2>&5 12576 echo "$RANLIB libconftest.a" >&5 12577 $RANLIB libconftest.a 2>&5 12578 cat > conftest.c << _LT_EOF 12579int main() { return 0;} 12580_LT_EOF 12581 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 12582 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 12583 _lt_result=$? 12584 if test -s conftest.err && $GREP force_load conftest.err; then 12585 cat conftest.err >&5 12586 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 12587 lt_cv_ld_force_load=yes 12588 else 12589 cat conftest.err >&5 12590 fi 12591 rm -f conftest.err libconftest.a conftest conftest.c 12592 rm -rf conftest.dSYM 12593 12594fi 12595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 12596$as_echo "$lt_cv_ld_force_load" >&6; } 12597 case $host_os in 12598 rhapsody* | darwin1.[012]) 12599 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 12600 darwin1.*) 12601 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 12602 darwin*) # darwin 5.x on 12603 # if running on 10.5 or later, the deployment target defaults 12604 # to the OS version, if on x86, and 10.4, the deployment 12605 # target defaults to 10.4. Don't you love it? 12606 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 12607 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 12608 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 12609 10.[012]*) 12610 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 12611 10.*) 12612 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 12613 esac 12614 ;; 12615 esac 12616 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 12617 _lt_dar_single_mod='$single_module' 12618 fi 12619 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 12620 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 12621 else 12622 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 12623 fi 12624 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 12625 _lt_dsymutil='~$DSYMUTIL $lib || :' 12626 else 12627 _lt_dsymutil= 12628 fi 12629 ;; 12630 esac 12631 12632for ac_header in dlfcn.h 12633do : 12634 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 12635" 12636if test "x$ac_cv_header_dlfcn_h" = xyes; then : 12637 cat >>confdefs.h <<_ACEOF 12638#define HAVE_DLFCN_H 1 12639_ACEOF 12640 12641fi 12642 12643done 12644 12645 12646 12647 12648 12649# Set options 12650 12651 12652 12653 enable_dlopen=no 12654 12655 12656 enable_win32_dll=no 12657 12658 12659 # Check whether --enable-shared was given. 12660if test "${enable_shared+set}" = set; then : 12661 enableval=$enable_shared; p=${PACKAGE-default} 12662 case $enableval in 12663 yes) enable_shared=yes ;; 12664 no) enable_shared=no ;; 12665 *) 12666 enable_shared=no 12667 # Look at the argument we got. We use all the common list separators. 12668 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 12669 for pkg in $enableval; do 12670 IFS="$lt_save_ifs" 12671 if test "X$pkg" = "X$p"; then 12672 enable_shared=yes 12673 fi 12674 done 12675 IFS="$lt_save_ifs" 12676 ;; 12677 esac 12678else 12679 enable_shared=yes 12680fi 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692# Check whether --with-pic was given. 12693if test "${with_pic+set}" = set; then : 12694 withval=$with_pic; lt_p=${PACKAGE-default} 12695 case $withval in 12696 yes|no) pic_mode=$withval ;; 12697 *) 12698 pic_mode=default 12699 # Look at the argument we got. We use all the common list separators. 12700 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 12701 for lt_pkg in $withval; do 12702 IFS="$lt_save_ifs" 12703 if test "X$lt_pkg" = "X$lt_p"; then 12704 pic_mode=yes 12705 fi 12706 done 12707 IFS="$lt_save_ifs" 12708 ;; 12709 esac 12710else 12711 pic_mode=default 12712fi 12713 12714 12715test -z "$pic_mode" && pic_mode=default 12716 12717 12718 12719 12720 12721 12722 12723 # Check whether --enable-fast-install was given. 12724if test "${enable_fast_install+set}" = set; then : 12725 enableval=$enable_fast_install; p=${PACKAGE-default} 12726 case $enableval in 12727 yes) enable_fast_install=yes ;; 12728 no) enable_fast_install=no ;; 12729 *) 12730 enable_fast_install=no 12731 # Look at the argument we got. We use all the common list separators. 12732 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 12733 for pkg in $enableval; do 12734 IFS="$lt_save_ifs" 12735 if test "X$pkg" = "X$p"; then 12736 enable_fast_install=yes 12737 fi 12738 done 12739 IFS="$lt_save_ifs" 12740 ;; 12741 esac 12742else 12743 enable_fast_install=yes 12744fi 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756# This can be used to rebuild libtool when needed 12757LIBTOOL_DEPS="$ltmain" 12758 12759# Always use our own libtool. 12760LIBTOOL='$(SHELL) $(top_builddir)/libtool' 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791test -z "$LN_S" && LN_S="ln -s" 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806if test -n "${ZSH_VERSION+set}" ; then 12807 setopt NO_GLOB_SUBST 12808fi 12809 12810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 12811$as_echo_n "checking for objdir... " >&6; } 12812if ${lt_cv_objdir+:} false; then : 12813 $as_echo_n "(cached) " >&6 12814else 12815 rm -f .libs 2>/dev/null 12816mkdir .libs 2>/dev/null 12817if test -d .libs; then 12818 lt_cv_objdir=.libs 12819else 12820 # MS-DOS does not allow filenames that begin with a dot. 12821 lt_cv_objdir=_libs 12822fi 12823rmdir .libs 2>/dev/null 12824fi 12825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 12826$as_echo "$lt_cv_objdir" >&6; } 12827objdir=$lt_cv_objdir 12828 12829 12830 12831 12832 12833cat >>confdefs.h <<_ACEOF 12834#define LT_OBJDIR "$lt_cv_objdir/" 12835_ACEOF 12836 12837 12838 12839 12840case $host_os in 12841aix3*) 12842 # AIX sometimes has problems with the GCC collect2 program. For some 12843 # reason, if we set the COLLECT_NAMES environment variable, the problems 12844 # vanish in a puff of smoke. 12845 if test "X${COLLECT_NAMES+set}" != Xset; then 12846 COLLECT_NAMES= 12847 export COLLECT_NAMES 12848 fi 12849 ;; 12850esac 12851 12852# Global variables: 12853ofile=libtool 12854can_build_shared=yes 12855 12856# All known linkers require a `.a' archive for static linking (except MSVC, 12857# which needs '.lib'). 12858libext=a 12859 12860with_gnu_ld="$lt_cv_prog_gnu_ld" 12861 12862old_CC="$CC" 12863old_CFLAGS="$CFLAGS" 12864 12865# Set sane defaults for various variables 12866test -z "$CC" && CC=cc 12867test -z "$LTCC" && LTCC=$CC 12868test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 12869test -z "$LD" && LD=ld 12870test -z "$ac_objext" && ac_objext=o 12871 12872for cc_temp in $compiler""; do 12873 case $cc_temp in 12874 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12875 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12876 \-*) ;; 12877 *) break;; 12878 esac 12879done 12880cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12881 12882 12883# Only perform the check for file, if the check method requires it 12884test -z "$MAGIC_CMD" && MAGIC_CMD=file 12885case $deplibs_check_method in 12886file_magic*) 12887 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 12889$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 12890if ${lt_cv_path_MAGIC_CMD+:} false; then : 12891 $as_echo_n "(cached) " >&6 12892else 12893 case $MAGIC_CMD in 12894[\\/*] | ?:[\\/]*) 12895 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 12896 ;; 12897*) 12898 lt_save_MAGIC_CMD="$MAGIC_CMD" 12899 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12900 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12901 for ac_dir in $ac_dummy; do 12902 IFS="$lt_save_ifs" 12903 test -z "$ac_dir" && ac_dir=. 12904 if test -f $ac_dir/${ac_tool_prefix}file; then 12905 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 12906 if test -n "$file_magic_test_file"; then 12907 case $deplibs_check_method in 12908 "file_magic "*) 12909 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12910 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 12911 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12912 $EGREP "$file_magic_regex" > /dev/null; then 12913 : 12914 else 12915 cat <<_LT_EOF 1>&2 12916 12917*** Warning: the command libtool uses to detect shared libraries, 12918*** $file_magic_cmd, produces output that libtool cannot recognize. 12919*** The result is that libtool may fail to recognize shared libraries 12920*** as such. This will affect the creation of libtool libraries that 12921*** depend on shared libraries, but programs linked with such libtool 12922*** libraries will work regardless of this problem. Nevertheless, you 12923*** may want to report the problem to your system manager and/or to 12924*** bug-libtool@gnu.org 12925 12926_LT_EOF 12927 fi ;; 12928 esac 12929 fi 12930 break 12931 fi 12932 done 12933 IFS="$lt_save_ifs" 12934 MAGIC_CMD="$lt_save_MAGIC_CMD" 12935 ;; 12936esac 12937fi 12938 12939MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 12940if test -n "$MAGIC_CMD"; then 12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12942$as_echo "$MAGIC_CMD" >&6; } 12943else 12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12945$as_echo "no" >&6; } 12946fi 12947 12948 12949 12950 12951 12952if test -z "$lt_cv_path_MAGIC_CMD"; then 12953 if test -n "$ac_tool_prefix"; then 12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 12955$as_echo_n "checking for file... " >&6; } 12956if ${lt_cv_path_MAGIC_CMD+:} false; then : 12957 $as_echo_n "(cached) " >&6 12958else 12959 case $MAGIC_CMD in 12960[\\/*] | ?:[\\/]*) 12961 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 12962 ;; 12963*) 12964 lt_save_MAGIC_CMD="$MAGIC_CMD" 12965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12966 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12967 for ac_dir in $ac_dummy; do 12968 IFS="$lt_save_ifs" 12969 test -z "$ac_dir" && ac_dir=. 12970 if test -f $ac_dir/file; then 12971 lt_cv_path_MAGIC_CMD="$ac_dir/file" 12972 if test -n "$file_magic_test_file"; then 12973 case $deplibs_check_method in 12974 "file_magic "*) 12975 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12976 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 12977 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12978 $EGREP "$file_magic_regex" > /dev/null; then 12979 : 12980 else 12981 cat <<_LT_EOF 1>&2 12982 12983*** Warning: the command libtool uses to detect shared libraries, 12984*** $file_magic_cmd, produces output that libtool cannot recognize. 12985*** The result is that libtool may fail to recognize shared libraries 12986*** as such. This will affect the creation of libtool libraries that 12987*** depend on shared libraries, but programs linked with such libtool 12988*** libraries will work regardless of this problem. Nevertheless, you 12989*** may want to report the problem to your system manager and/or to 12990*** bug-libtool@gnu.org 12991 12992_LT_EOF 12993 fi ;; 12994 esac 12995 fi 12996 break 12997 fi 12998 done 12999 IFS="$lt_save_ifs" 13000 MAGIC_CMD="$lt_save_MAGIC_CMD" 13001 ;; 13002esac 13003fi 13004 13005MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 13006if test -n "$MAGIC_CMD"; then 13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 13008$as_echo "$MAGIC_CMD" >&6; } 13009else 13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13011$as_echo "no" >&6; } 13012fi 13013 13014 13015 else 13016 MAGIC_CMD=: 13017 fi 13018fi 13019 13020 fi 13021 ;; 13022esac 13023 13024# Use C for the default configuration in the libtool script 13025 13026lt_save_CC="$CC" 13027ac_ext=c 13028ac_cpp='$CPP $CPPFLAGS' 13029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13031ac_compiler_gnu=$ac_cv_c_compiler_gnu 13032 13033 13034# Source file extension for C test sources. 13035ac_ext=c 13036 13037# Object file extension for compiled C test sources. 13038objext=o 13039objext=$objext 13040 13041# Code to be used in simple compile tests 13042lt_simple_compile_test_code="int some_variable = 0;" 13043 13044# Code to be used in simple link tests 13045lt_simple_link_test_code='int main(){return(0);}' 13046 13047 13048 13049 13050 13051 13052 13053# If no C compiler was specified, use CC. 13054LTCC=${LTCC-"$CC"} 13055 13056# If no C compiler flags were specified, use CFLAGS. 13057LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13058 13059# Allow CC to be a program name with arguments. 13060compiler=$CC 13061 13062# Save the default compiler, since it gets overwritten when the other 13063# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 13064compiler_DEFAULT=$CC 13065 13066# save warnings/boilerplate of simple test code 13067ac_outfile=conftest.$ac_objext 13068echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13069eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13070_lt_compiler_boilerplate=`cat conftest.err` 13071$RM conftest* 13072 13073ac_outfile=conftest.$ac_objext 13074echo "$lt_simple_link_test_code" >conftest.$ac_ext 13075eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13076_lt_linker_boilerplate=`cat conftest.err` 13077$RM -r conftest* 13078 13079 13080if test -n "$compiler"; then 13081 13082lt_prog_compiler_no_builtin_flag= 13083 13084if test "$GCC" = yes; then 13085 case $cc_basename in 13086 nvcc*) 13087 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 13088 *) 13089 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 13090 esac 13091 13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 13093$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 13094if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 13095 $as_echo_n "(cached) " >&6 13096else 13097 lt_cv_prog_compiler_rtti_exceptions=no 13098 ac_outfile=conftest.$ac_objext 13099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13100 lt_compiler_flag="-fno-rtti -fno-exceptions" 13101 # Insert the option either (1) after the last *FLAGS variable, or 13102 # (2) before a word containing "conftest.", or (3) at the end. 13103 # Note that $ac_compile itself does not contain backslashes and begins 13104 # with a dollar sign (not a hyphen), so the echo should work correctly. 13105 # The option is referenced via a variable to avoid confusing sed. 13106 lt_compile=`echo "$ac_compile" | $SED \ 13107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13109 -e 's:$: $lt_compiler_flag:'` 13110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13111 (eval "$lt_compile" 2>conftest.err) 13112 ac_status=$? 13113 cat conftest.err >&5 13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13115 if (exit $ac_status) && test -s "$ac_outfile"; then 13116 # The compiler can only warn and ignore the option if not recognized 13117 # So say no if there are warnings other than the usual output. 13118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13120 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13121 lt_cv_prog_compiler_rtti_exceptions=yes 13122 fi 13123 fi 13124 $RM conftest* 13125 13126fi 13127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 13128$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 13129 13130if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 13131 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 13132else 13133 : 13134fi 13135 13136fi 13137 13138 13139 13140 13141 13142 13143 lt_prog_compiler_wl= 13144lt_prog_compiler_pic= 13145lt_prog_compiler_static= 13146 13147 13148 if test "$GCC" = yes; then 13149 lt_prog_compiler_wl='-Wl,' 13150 lt_prog_compiler_static='-static' 13151 13152 case $host_os in 13153 aix*) 13154 # All AIX code is PIC. 13155 if test "$host_cpu" = ia64; then 13156 # AIX 5 now supports IA64 processor 13157 lt_prog_compiler_static='-Bstatic' 13158 fi 13159 ;; 13160 13161 amigaos*) 13162 case $host_cpu in 13163 powerpc) 13164 # see comment about AmigaOS4 .so support 13165 lt_prog_compiler_pic='-fPIC' 13166 ;; 13167 m68k) 13168 # FIXME: we need at least 68020 code to build shared libraries, but 13169 # adding the `-m68020' flag to GCC prevents building anything better, 13170 # like `-m68040'. 13171 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 13172 ;; 13173 esac 13174 ;; 13175 13176 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13177 # PIC is the default for these OSes. 13178 ;; 13179 13180 mingw* | cygwin* | pw32* | os2* | cegcc*) 13181 # This hack is so that the source file can tell whether it is being 13182 # built for inclusion in a dll (and should export symbols for example). 13183 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13184 # (--disable-auto-import) libraries 13185 lt_prog_compiler_pic='-DDLL_EXPORT' 13186 ;; 13187 13188 darwin* | rhapsody*) 13189 # PIC is the default on this platform 13190 # Common symbols not allowed in MH_DYLIB files 13191 lt_prog_compiler_pic='-fno-common' 13192 ;; 13193 13194 haiku*) 13195 # PIC is the default for Haiku. 13196 # The "-static" flag exists, but is broken. 13197 lt_prog_compiler_static= 13198 ;; 13199 13200 hpux*) 13201 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13202 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13203 # sets the default TLS model and affects inlining. 13204 case $host_cpu in 13205 hppa*64*) 13206 # +Z the default 13207 ;; 13208 *) 13209 lt_prog_compiler_pic='-fPIC' 13210 ;; 13211 esac 13212 ;; 13213 13214 interix[3-9]*) 13215 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13216 # Instead, we relocate shared libraries at runtime. 13217 ;; 13218 13219 msdosdjgpp*) 13220 # Just because we use GCC doesn't mean we suddenly get shared libraries 13221 # on systems that don't support them. 13222 lt_prog_compiler_can_build_shared=no 13223 enable_shared=no 13224 ;; 13225 13226 *nto* | *qnx*) 13227 # QNX uses GNU C++, but need to define -shared option too, otherwise 13228 # it will coredump. 13229 lt_prog_compiler_pic='-fPIC -shared' 13230 ;; 13231 13232 sysv4*MP*) 13233 if test -d /usr/nec; then 13234 lt_prog_compiler_pic=-Kconform_pic 13235 fi 13236 ;; 13237 13238 *) 13239 lt_prog_compiler_pic='-fPIC' 13240 ;; 13241 esac 13242 13243 case $cc_basename in 13244 nvcc*) # Cuda Compiler Driver 2.2 13245 lt_prog_compiler_wl='-Xlinker ' 13246 if test -n "$lt_prog_compiler_pic"; then 13247 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 13248 fi 13249 ;; 13250 esac 13251 else 13252 # PORTME Check for flag to pass linker flags through the system compiler. 13253 case $host_os in 13254 aix*) 13255 lt_prog_compiler_wl='-Wl,' 13256 if test "$host_cpu" = ia64; then 13257 # AIX 5 now supports IA64 processor 13258 lt_prog_compiler_static='-Bstatic' 13259 else 13260 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 13261 fi 13262 ;; 13263 13264 mingw* | cygwin* | pw32* | os2* | cegcc*) 13265 # This hack is so that the source file can tell whether it is being 13266 # built for inclusion in a dll (and should export symbols for example). 13267 lt_prog_compiler_pic='-DDLL_EXPORT' 13268 ;; 13269 13270 hpux9* | hpux10* | hpux11*) 13271 lt_prog_compiler_wl='-Wl,' 13272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13273 # not for PA HP-UX. 13274 case $host_cpu in 13275 hppa*64*|ia64*) 13276 # +Z the default 13277 ;; 13278 *) 13279 lt_prog_compiler_pic='+Z' 13280 ;; 13281 esac 13282 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13283 lt_prog_compiler_static='${wl}-a ${wl}archive' 13284 ;; 13285 13286 irix5* | irix6* | nonstopux*) 13287 lt_prog_compiler_wl='-Wl,' 13288 # PIC (with -KPIC) is the default. 13289 lt_prog_compiler_static='-non_shared' 13290 ;; 13291 13292 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13293 case $cc_basename in 13294 # old Intel for x86_64 which still supported -KPIC. 13295 ecc*) 13296 lt_prog_compiler_wl='-Wl,' 13297 lt_prog_compiler_pic='-KPIC' 13298 lt_prog_compiler_static='-static' 13299 ;; 13300 # icc used to be incompatible with GCC. 13301 # ICC 10 doesn't accept -KPIC any more. 13302 icc* | ifort*) 13303 lt_prog_compiler_wl='-Wl,' 13304 lt_prog_compiler_pic='-fPIC' 13305 lt_prog_compiler_static='-static' 13306 ;; 13307 # Lahey Fortran 8.1. 13308 lf95*) 13309 lt_prog_compiler_wl='-Wl,' 13310 lt_prog_compiler_pic='--shared' 13311 lt_prog_compiler_static='--static' 13312 ;; 13313 nagfor*) 13314 # NAG Fortran compiler 13315 lt_prog_compiler_wl='-Wl,-Wl,,' 13316 lt_prog_compiler_pic='-PIC' 13317 lt_prog_compiler_static='-Bstatic' 13318 ;; 13319 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 13320 # Portland Group compilers (*not* the Pentium gcc compiler, 13321 # which looks to be a dead project) 13322 lt_prog_compiler_wl='-Wl,' 13323 lt_prog_compiler_pic='-fpic' 13324 lt_prog_compiler_static='-Bstatic' 13325 ;; 13326 ccc*) 13327 lt_prog_compiler_wl='-Wl,' 13328 # All Alpha code is PIC. 13329 lt_prog_compiler_static='-non_shared' 13330 ;; 13331 xl* | bgxl* | bgf* | mpixl*) 13332 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 13333 lt_prog_compiler_wl='-Wl,' 13334 lt_prog_compiler_pic='-qpic' 13335 lt_prog_compiler_static='-qstaticlink' 13336 ;; 13337 *) 13338 case `$CC -V 2>&1 | sed 5q` in 13339 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 13340 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13341 lt_prog_compiler_pic='-KPIC' 13342 lt_prog_compiler_static='-Bstatic' 13343 lt_prog_compiler_wl='' 13344 ;; 13345 *Sun\ F* | *Sun*Fortran*) 13346 lt_prog_compiler_pic='-KPIC' 13347 lt_prog_compiler_static='-Bstatic' 13348 lt_prog_compiler_wl='-Qoption ld ' 13349 ;; 13350 *Sun\ C*) 13351 # Sun C 5.9 13352 lt_prog_compiler_pic='-KPIC' 13353 lt_prog_compiler_static='-Bstatic' 13354 lt_prog_compiler_wl='-Wl,' 13355 ;; 13356 *Intel*\ [CF]*Compiler*) 13357 lt_prog_compiler_wl='-Wl,' 13358 lt_prog_compiler_pic='-fPIC' 13359 lt_prog_compiler_static='-static' 13360 ;; 13361 *Portland\ Group*) 13362 lt_prog_compiler_wl='-Wl,' 13363 lt_prog_compiler_pic='-fpic' 13364 lt_prog_compiler_static='-Bstatic' 13365 ;; 13366 esac 13367 ;; 13368 esac 13369 ;; 13370 13371 newsos6) 13372 lt_prog_compiler_pic='-KPIC' 13373 lt_prog_compiler_static='-Bstatic' 13374 ;; 13375 13376 *nto* | *qnx*) 13377 # QNX uses GNU C++, but need to define -shared option too, otherwise 13378 # it will coredump. 13379 lt_prog_compiler_pic='-fPIC -shared' 13380 ;; 13381 13382 osf3* | osf4* | osf5*) 13383 lt_prog_compiler_wl='-Wl,' 13384 # All OSF/1 code is PIC. 13385 lt_prog_compiler_static='-non_shared' 13386 ;; 13387 13388 rdos*) 13389 lt_prog_compiler_static='-non_shared' 13390 ;; 13391 13392 solaris*) 13393 lt_prog_compiler_pic='-KPIC' 13394 lt_prog_compiler_static='-Bstatic' 13395 case $cc_basename in 13396 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 13397 lt_prog_compiler_wl='-Qoption ld ';; 13398 *) 13399 lt_prog_compiler_wl='-Wl,';; 13400 esac 13401 ;; 13402 13403 sunos4*) 13404 lt_prog_compiler_wl='-Qoption ld ' 13405 lt_prog_compiler_pic='-PIC' 13406 lt_prog_compiler_static='-Bstatic' 13407 ;; 13408 13409 sysv4 | sysv4.2uw2* | sysv4.3*) 13410 lt_prog_compiler_wl='-Wl,' 13411 lt_prog_compiler_pic='-KPIC' 13412 lt_prog_compiler_static='-Bstatic' 13413 ;; 13414 13415 sysv4*MP*) 13416 if test -d /usr/nec ;then 13417 lt_prog_compiler_pic='-Kconform_pic' 13418 lt_prog_compiler_static='-Bstatic' 13419 fi 13420 ;; 13421 13422 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13423 lt_prog_compiler_wl='-Wl,' 13424 lt_prog_compiler_pic='-KPIC' 13425 lt_prog_compiler_static='-Bstatic' 13426 ;; 13427 13428 unicos*) 13429 lt_prog_compiler_wl='-Wl,' 13430 lt_prog_compiler_can_build_shared=no 13431 ;; 13432 13433 uts4*) 13434 lt_prog_compiler_pic='-pic' 13435 lt_prog_compiler_static='-Bstatic' 13436 ;; 13437 13438 *) 13439 lt_prog_compiler_can_build_shared=no 13440 ;; 13441 esac 13442 fi 13443 13444case $host_os in 13445 # For platforms which do not support PIC, -DPIC is meaningless: 13446 *djgpp*) 13447 lt_prog_compiler_pic= 13448 ;; 13449 *) 13450 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 13451 ;; 13452esac 13453 13454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13455$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13456if ${lt_cv_prog_compiler_pic+:} false; then : 13457 $as_echo_n "(cached) " >&6 13458else 13459 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 13460fi 13461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 13462$as_echo "$lt_cv_prog_compiler_pic" >&6; } 13463lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 13464 13465# 13466# Check to make sure the PIC flag actually works. 13467# 13468if test -n "$lt_prog_compiler_pic"; then 13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 13470$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 13471if ${lt_cv_prog_compiler_pic_works+:} false; then : 13472 $as_echo_n "(cached) " >&6 13473else 13474 lt_cv_prog_compiler_pic_works=no 13475 ac_outfile=conftest.$ac_objext 13476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13477 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 13478 # Insert the option either (1) after the last *FLAGS variable, or 13479 # (2) before a word containing "conftest.", or (3) at the end. 13480 # Note that $ac_compile itself does not contain backslashes and begins 13481 # with a dollar sign (not a hyphen), so the echo should work correctly. 13482 # The option is referenced via a variable to avoid confusing sed. 13483 lt_compile=`echo "$ac_compile" | $SED \ 13484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13486 -e 's:$: $lt_compiler_flag:'` 13487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13488 (eval "$lt_compile" 2>conftest.err) 13489 ac_status=$? 13490 cat conftest.err >&5 13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13492 if (exit $ac_status) && test -s "$ac_outfile"; then 13493 # The compiler can only warn and ignore the option if not recognized 13494 # So say no if there are warnings other than the usual output. 13495 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13497 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13498 lt_cv_prog_compiler_pic_works=yes 13499 fi 13500 fi 13501 $RM conftest* 13502 13503fi 13504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 13505$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 13506 13507if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 13508 case $lt_prog_compiler_pic in 13509 "" | " "*) ;; 13510 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 13511 esac 13512else 13513 lt_prog_compiler_pic= 13514 lt_prog_compiler_can_build_shared=no 13515fi 13516 13517fi 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529# 13530# Check to make sure the static flag actually works. 13531# 13532wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 13533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13534$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13535if ${lt_cv_prog_compiler_static_works+:} false; then : 13536 $as_echo_n "(cached) " >&6 13537else 13538 lt_cv_prog_compiler_static_works=no 13539 save_LDFLAGS="$LDFLAGS" 13540 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13541 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13542 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13543 # The linker can only warn and ignore the option if not recognized 13544 # So say no if there are warnings 13545 if test -s conftest.err; then 13546 # Append any errors to the config.log. 13547 cat conftest.err 1>&5 13548 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13549 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13550 if diff conftest.exp conftest.er2 >/dev/null; then 13551 lt_cv_prog_compiler_static_works=yes 13552 fi 13553 else 13554 lt_cv_prog_compiler_static_works=yes 13555 fi 13556 fi 13557 $RM -r conftest* 13558 LDFLAGS="$save_LDFLAGS" 13559 13560fi 13561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 13562$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 13563 13564if test x"$lt_cv_prog_compiler_static_works" = xyes; then 13565 : 13566else 13567 lt_prog_compiler_static= 13568fi 13569 13570 13571 13572 13573 13574 13575 13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13577$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13578if ${lt_cv_prog_compiler_c_o+:} false; then : 13579 $as_echo_n "(cached) " >&6 13580else 13581 lt_cv_prog_compiler_c_o=no 13582 $RM -r conftest 2>/dev/null 13583 mkdir conftest 13584 cd conftest 13585 mkdir out 13586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13587 13588 lt_compiler_flag="-o out/conftest2.$ac_objext" 13589 # Insert the option either (1) after the last *FLAGS variable, or 13590 # (2) before a word containing "conftest.", or (3) at the end. 13591 # Note that $ac_compile itself does not contain backslashes and begins 13592 # with a dollar sign (not a hyphen), so the echo should work correctly. 13593 lt_compile=`echo "$ac_compile" | $SED \ 13594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13596 -e 's:$: $lt_compiler_flag:'` 13597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13598 (eval "$lt_compile" 2>out/conftest.err) 13599 ac_status=$? 13600 cat out/conftest.err >&5 13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13602 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13603 then 13604 # The compiler can only warn and ignore the option if not recognized 13605 # So say no if there are warnings 13606 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13607 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13608 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13609 lt_cv_prog_compiler_c_o=yes 13610 fi 13611 fi 13612 chmod u+w . 2>&5 13613 $RM conftest* 13614 # SGI C++ compiler will create directory out/ii_files/ for 13615 # template instantiation 13616 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13617 $RM out/* && rmdir out 13618 cd .. 13619 $RM -r conftest 13620 $RM conftest* 13621 13622fi 13623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 13624$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 13625 13626 13627 13628 13629 13630 13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13632$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13633if ${lt_cv_prog_compiler_c_o+:} false; then : 13634 $as_echo_n "(cached) " >&6 13635else 13636 lt_cv_prog_compiler_c_o=no 13637 $RM -r conftest 2>/dev/null 13638 mkdir conftest 13639 cd conftest 13640 mkdir out 13641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13642 13643 lt_compiler_flag="-o out/conftest2.$ac_objext" 13644 # Insert the option either (1) after the last *FLAGS variable, or 13645 # (2) before a word containing "conftest.", or (3) at the end. 13646 # Note that $ac_compile itself does not contain backslashes and begins 13647 # with a dollar sign (not a hyphen), so the echo should work correctly. 13648 lt_compile=`echo "$ac_compile" | $SED \ 13649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13651 -e 's:$: $lt_compiler_flag:'` 13652 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13653 (eval "$lt_compile" 2>out/conftest.err) 13654 ac_status=$? 13655 cat out/conftest.err >&5 13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13657 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13658 then 13659 # The compiler can only warn and ignore the option if not recognized 13660 # So say no if there are warnings 13661 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13662 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13663 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13664 lt_cv_prog_compiler_c_o=yes 13665 fi 13666 fi 13667 chmod u+w . 2>&5 13668 $RM conftest* 13669 # SGI C++ compiler will create directory out/ii_files/ for 13670 # template instantiation 13671 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13672 $RM out/* && rmdir out 13673 cd .. 13674 $RM -r conftest 13675 $RM conftest* 13676 13677fi 13678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 13679$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 13680 13681 13682 13683 13684hard_links="nottested" 13685if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 13686 # do not overwrite the value of need_locks provided by the user 13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13688$as_echo_n "checking if we can lock with hard links... " >&6; } 13689 hard_links=yes 13690 $RM conftest* 13691 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13692 touch conftest.a 13693 ln conftest.a conftest.b 2>&5 || hard_links=no 13694 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13696$as_echo "$hard_links" >&6; } 13697 if test "$hard_links" = no; then 13698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13699$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13700 need_locks=warn 13701 fi 13702else 13703 need_locks=no 13704fi 13705 13706 13707 13708 13709 13710 13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13712$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13713 13714 runpath_var= 13715 allow_undefined_flag= 13716 always_export_symbols=no 13717 archive_cmds= 13718 archive_expsym_cmds= 13719 compiler_needs_object=no 13720 enable_shared_with_static_runtimes=no 13721 export_dynamic_flag_spec= 13722 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13723 hardcode_automatic=no 13724 hardcode_direct=no 13725 hardcode_direct_absolute=no 13726 hardcode_libdir_flag_spec= 13727 hardcode_libdir_separator= 13728 hardcode_minus_L=no 13729 hardcode_shlibpath_var=unsupported 13730 inherit_rpath=no 13731 link_all_deplibs=unknown 13732 module_cmds= 13733 module_expsym_cmds= 13734 old_archive_from_new_cmds= 13735 old_archive_from_expsyms_cmds= 13736 thread_safe_flag_spec= 13737 whole_archive_flag_spec= 13738 # include_expsyms should be a list of space-separated symbols to be *always* 13739 # included in the symbol list 13740 include_expsyms= 13741 # exclude_expsyms can be an extended regexp of symbols to exclude 13742 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13743 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13744 # as well as any symbol that contains `d'. 13745 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13746 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13747 # platforms (ab)use it in PIC code, but their linkers get confused if 13748 # the symbol is explicitly referenced. Since portable code cannot 13749 # rely on this symbol name, it's probably fine to never include it in 13750 # preloaded symbol tables. 13751 # Exclude shared library initialization/finalization symbols. 13752 extract_expsyms_cmds= 13753 13754 case $host_os in 13755 cygwin* | mingw* | pw32* | cegcc*) 13756 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13757 # When not using gcc, we currently assume that we are using 13758 # Microsoft Visual C++. 13759 if test "$GCC" != yes; then 13760 with_gnu_ld=no 13761 fi 13762 ;; 13763 interix*) 13764 # we just hope/assume this is gcc and not c89 (= MSVC++) 13765 with_gnu_ld=yes 13766 ;; 13767 openbsd*) 13768 with_gnu_ld=no 13769 ;; 13770 esac 13771 13772 ld_shlibs=yes 13773 13774 # On some targets, GNU ld is compatible enough with the native linker 13775 # that we're better off using the native interface for both. 13776 lt_use_gnu_ld_interface=no 13777 if test "$with_gnu_ld" = yes; then 13778 case $host_os in 13779 aix*) 13780 # The AIX port of GNU ld has always aspired to compatibility 13781 # with the native linker. However, as the warning in the GNU ld 13782 # block says, versions before 2.19.5* couldn't really create working 13783 # shared libraries, regardless of the interface used. 13784 case `$LD -v 2>&1` in 13785 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 13786 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 13787 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 13788 *) 13789 lt_use_gnu_ld_interface=yes 13790 ;; 13791 esac 13792 ;; 13793 *) 13794 lt_use_gnu_ld_interface=yes 13795 ;; 13796 esac 13797 fi 13798 13799 if test "$lt_use_gnu_ld_interface" = yes; then 13800 # If archive_cmds runs LD, not CC, wlarc should be empty 13801 wlarc='${wl}' 13802 13803 # Set some defaults for GNU ld with shared library support. These 13804 # are reset later if shared libraries are not supported. Putting them 13805 # here allows them to be overridden if necessary. 13806 runpath_var=LD_RUN_PATH 13807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13808 export_dynamic_flag_spec='${wl}--export-dynamic' 13809 # ancient GNU ld didn't support --whole-archive et. al. 13810 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 13811 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13812 else 13813 whole_archive_flag_spec= 13814 fi 13815 supports_anon_versioning=no 13816 case `$LD -v 2>&1` in 13817 *GNU\ gold*) supports_anon_versioning=yes ;; 13818 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13819 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13820 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13821 *\ 2.11.*) ;; # other 2.11 versions 13822 *) supports_anon_versioning=yes ;; 13823 esac 13824 13825 # See if GNU ld supports shared libraries. 13826 case $host_os in 13827 aix[3-9]*) 13828 # On AIX/PPC, the GNU linker is very broken 13829 if test "$host_cpu" != ia64; then 13830 ld_shlibs=no 13831 cat <<_LT_EOF 1>&2 13832 13833*** Warning: the GNU linker, at least up to release 2.19, is reported 13834*** to be unable to reliably create shared libraries on AIX. 13835*** Therefore, libtool is disabling shared libraries support. If you 13836*** really care for shared libraries, you may want to install binutils 13837*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 13838*** You will then need to restart the configuration process. 13839 13840_LT_EOF 13841 fi 13842 ;; 13843 13844 amigaos*) 13845 case $host_cpu in 13846 powerpc) 13847 # see comment about AmigaOS4 .so support 13848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13849 archive_expsym_cmds='' 13850 ;; 13851 m68k) 13852 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)' 13853 hardcode_libdir_flag_spec='-L$libdir' 13854 hardcode_minus_L=yes 13855 ;; 13856 esac 13857 ;; 13858 13859 beos*) 13860 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13861 allow_undefined_flag=unsupported 13862 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13863 # support --undefined. This deserves some investigation. FIXME 13864 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13865 else 13866 ld_shlibs=no 13867 fi 13868 ;; 13869 13870 cygwin* | mingw* | pw32* | cegcc*) 13871 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 13872 # as there is no search path for DLLs. 13873 hardcode_libdir_flag_spec='-L$libdir' 13874 export_dynamic_flag_spec='${wl}--export-all-symbols' 13875 allow_undefined_flag=unsupported 13876 always_export_symbols=no 13877 enable_shared_with_static_runtimes=yes 13878 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' 13879 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 13880 13881 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13883 # If the export-symbols file already is a .def file (1st line 13884 # is EXPORTS), use it as is; otherwise, prepend... 13885 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13886 cp $export_symbols $output_objdir/$soname.def; 13887 else 13888 echo EXPORTS > $output_objdir/$soname.def; 13889 cat $export_symbols >> $output_objdir/$soname.def; 13890 fi~ 13891 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13892 else 13893 ld_shlibs=no 13894 fi 13895 ;; 13896 13897 haiku*) 13898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13899 link_all_deplibs=yes 13900 ;; 13901 13902 interix[3-9]*) 13903 hardcode_direct=no 13904 hardcode_shlibpath_var=no 13905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 13906 export_dynamic_flag_spec='${wl}-E' 13907 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13908 # Instead, shared libraries are loaded at an image base (0x10000000 by 13909 # default) and relocated if they conflict, which is a slow very memory 13910 # consuming and fragmenting process. To avoid this, we pick a random, 13911 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13912 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13913 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13914 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' 13915 ;; 13916 13917 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 13918 tmp_diet=no 13919 if test "$host_os" = linux-dietlibc; then 13920 case $cc_basename in 13921 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 13922 esac 13923 fi 13924 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 13925 && test "$tmp_diet" = no 13926 then 13927 tmp_addflag=' $pic_flag' 13928 tmp_sharedflag='-shared' 13929 case $cc_basename,$host_cpu in 13930 pgcc*) # Portland Group C compiler 13931 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' 13932 tmp_addflag=' $pic_flag' 13933 ;; 13934 pgf77* | pgf90* | pgf95* | pgfortran*) 13935 # Portland Group f77 and f90 compilers 13936 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' 13937 tmp_addflag=' $pic_flag -Mnomain' ;; 13938 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13939 tmp_addflag=' -i_dynamic' ;; 13940 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13941 tmp_addflag=' -i_dynamic -nofor_main' ;; 13942 ifc* | ifort*) # Intel Fortran compiler 13943 tmp_addflag=' -nofor_main' ;; 13944 lf95*) # Lahey Fortran 8.1 13945 whole_archive_flag_spec= 13946 tmp_sharedflag='--shared' ;; 13947 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 13948 tmp_sharedflag='-qmkshrobj' 13949 tmp_addflag= ;; 13950 nvcc*) # Cuda Compiler Driver 2.2 13951 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' 13952 compiler_needs_object=yes 13953 ;; 13954 esac 13955 case `$CC -V 2>&1 | sed 5q` in 13956 *Sun\ C*) # Sun C 5.9 13957 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' 13958 compiler_needs_object=yes 13959 tmp_sharedflag='-G' ;; 13960 *Sun\ F*) # Sun Fortran 8.3 13961 tmp_sharedflag='-G' ;; 13962 esac 13963 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13964 13965 if test "x$supports_anon_versioning" = xyes; then 13966 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13967 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13968 echo "local: *; };" >> $output_objdir/$libname.ver~ 13969 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13970 fi 13971 13972 case $cc_basename in 13973 xlf* | bgf* | bgxlf* | mpixlf*) 13974 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 13975 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 13976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13977 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 13978 if test "x$supports_anon_versioning" = xyes; then 13979 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13980 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13981 echo "local: *; };" >> $output_objdir/$libname.ver~ 13982 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 13983 fi 13984 ;; 13985 esac 13986 else 13987 ld_shlibs=no 13988 fi 13989 ;; 13990 13991 netbsd*) 13992 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13993 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13994 wlarc= 13995 else 13996 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13997 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13998 fi 13999 ;; 14000 14001 solaris*) 14002 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 14003 ld_shlibs=no 14004 cat <<_LT_EOF 1>&2 14005 14006*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14007*** create shared libraries on Solaris systems. Therefore, libtool 14008*** is disabling shared libraries support. We urge you to upgrade GNU 14009*** binutils to release 2.9.1 or newer. Another option is to modify 14010*** your PATH or compiler configuration so that the native linker is 14011*** used, and then restart. 14012 14013_LT_EOF 14014 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14015 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14016 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14017 else 14018 ld_shlibs=no 14019 fi 14020 ;; 14021 14022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14023 case `$LD -v 2>&1` in 14024 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14025 ld_shlibs=no 14026 cat <<_LT_EOF 1>&2 14027 14028*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14029*** reliably create shared libraries on SCO systems. Therefore, libtool 14030*** is disabling shared libraries support. We urge you to upgrade GNU 14031*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14032*** your PATH or compiler configuration so that the native linker is 14033*** used, and then restart. 14034 14035_LT_EOF 14036 ;; 14037 *) 14038 # For security reasons, it is highly recommended that you always 14039 # use absolute paths for naming shared libraries, and exclude the 14040 # DT_RUNPATH tag from executables and libraries. But doing so 14041 # requires that you compile everything twice, which is a pain. 14042 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14043 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14045 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14046 else 14047 ld_shlibs=no 14048 fi 14049 ;; 14050 esac 14051 ;; 14052 14053 sunos4*) 14054 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14055 wlarc= 14056 hardcode_direct=yes 14057 hardcode_shlibpath_var=no 14058 ;; 14059 14060 *) 14061 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14062 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14063 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14064 else 14065 ld_shlibs=no 14066 fi 14067 ;; 14068 esac 14069 14070 if test "$ld_shlibs" = no; then 14071 runpath_var= 14072 hardcode_libdir_flag_spec= 14073 export_dynamic_flag_spec= 14074 whole_archive_flag_spec= 14075 fi 14076 else 14077 # PORTME fill in a description of your system's linker (not GNU ld) 14078 case $host_os in 14079 aix3*) 14080 allow_undefined_flag=unsupported 14081 always_export_symbols=yes 14082 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' 14083 # Note: this linker hardcodes the directories in LIBPATH if there 14084 # are no directories specified by -L. 14085 hardcode_minus_L=yes 14086 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14087 # Neither direct hardcoding nor static linking is supported with a 14088 # broken collect2. 14089 hardcode_direct=unsupported 14090 fi 14091 ;; 14092 14093 aix[4-9]*) 14094 if test "$host_cpu" = ia64; then 14095 # On IA64, the linker does run time linking by default, so we don't 14096 # have to do anything special. 14097 aix_use_runtimelinking=no 14098 exp_sym_flag='-Bexport' 14099 no_entry_flag="" 14100 else 14101 # If we're using GNU nm, then we don't want the "-C" option. 14102 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14103 # Also, AIX nm treats weak defined symbols like other global 14104 # defined symbols, whereas GNU nm marks them as "W". 14105 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14106 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' 14107 else 14108 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' 14109 fi 14110 aix_use_runtimelinking=no 14111 14112 # Test if we are trying to use run time linking or normal 14113 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14114 # need to do runtime linking. 14115 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14116 for ld_flag in $LDFLAGS; do 14117 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14118 aix_use_runtimelinking=yes 14119 break 14120 fi 14121 done 14122 ;; 14123 esac 14124 14125 exp_sym_flag='-bexport' 14126 no_entry_flag='-bnoentry' 14127 fi 14128 14129 # When large executables or shared objects are built, AIX ld can 14130 # have problems creating the table of contents. If linking a library 14131 # or program results in "error TOC overflow" add -mminimal-toc to 14132 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14133 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14134 14135 archive_cmds='' 14136 hardcode_direct=yes 14137 hardcode_direct_absolute=yes 14138 hardcode_libdir_separator=':' 14139 link_all_deplibs=yes 14140 file_list_spec='${wl}-f,' 14141 14142 if test "$GCC" = yes; then 14143 case $host_os in aix4.[012]|aix4.[012].*) 14144 # We only want to do this on AIX 4.2 and lower, the check 14145 # below for broken collect2 doesn't work under 4.3+ 14146 collect2name=`${CC} -print-prog-name=collect2` 14147 if test -f "$collect2name" && 14148 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14149 then 14150 # We have reworked collect2 14151 : 14152 else 14153 # We have old collect2 14154 hardcode_direct=unsupported 14155 # It fails to find uninstalled libraries when the uninstalled 14156 # path is not listed in the libpath. Setting hardcode_minus_L 14157 # to unsupported forces relinking 14158 hardcode_minus_L=yes 14159 hardcode_libdir_flag_spec='-L$libdir' 14160 hardcode_libdir_separator= 14161 fi 14162 ;; 14163 esac 14164 shared_flag='-shared' 14165 if test "$aix_use_runtimelinking" = yes; then 14166 shared_flag="$shared_flag "'${wl}-G' 14167 fi 14168 else 14169 # not using gcc 14170 if test "$host_cpu" = ia64; then 14171 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14172 # chokes on -Wl,-G. The following line is correct: 14173 shared_flag='-G' 14174 else 14175 if test "$aix_use_runtimelinking" = yes; then 14176 shared_flag='${wl}-G' 14177 else 14178 shared_flag='${wl}-bM:SRE' 14179 fi 14180 fi 14181 fi 14182 14183 export_dynamic_flag_spec='${wl}-bexpall' 14184 # It seems that -bexpall does not export symbols beginning with 14185 # underscore (_), so it is better to generate a list of symbols to export. 14186 always_export_symbols=yes 14187 if test "$aix_use_runtimelinking" = yes; then 14188 # Warning - without using the other runtime loading flags (-brtl), 14189 # -berok will link without error, but may produce a broken library. 14190 allow_undefined_flag='-berok' 14191 # Determine the default libpath from the value encoded in an 14192 # empty executable. 14193 if test "${lt_cv_aix_libpath+set}" = set; then 14194 aix_libpath=$lt_cv_aix_libpath 14195else 14196 if ${lt_cv_aix_libpath_+:} false; then : 14197 $as_echo_n "(cached) " >&6 14198else 14199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14200/* end confdefs.h. */ 14201 14202int 14203main () 14204{ 14205 14206 ; 14207 return 0; 14208} 14209_ACEOF 14210if ac_fn_c_try_link "$LINENO"; then : 14211 14212 lt_aix_libpath_sed=' 14213 /Import File Strings/,/^$/ { 14214 /^0/ { 14215 s/^0 *\([^ ]*\) *$/\1/ 14216 p 14217 } 14218 }' 14219 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14220 # Check for a 64-bit object if we didn't find anything. 14221 if test -z "$lt_cv_aix_libpath_"; then 14222 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14223 fi 14224fi 14225rm -f core conftest.err conftest.$ac_objext \ 14226 conftest$ac_exeext conftest.$ac_ext 14227 if test -z "$lt_cv_aix_libpath_"; then 14228 lt_cv_aix_libpath_="/usr/lib:/lib" 14229 fi 14230 14231fi 14232 14233 aix_libpath=$lt_cv_aix_libpath_ 14234fi 14235 14236 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 14237 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" 14238 else 14239 if test "$host_cpu" = ia64; then 14240 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 14241 allow_undefined_flag="-z nodefs" 14242 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" 14243 else 14244 # Determine the default libpath from the value encoded in an 14245 # empty executable. 14246 if test "${lt_cv_aix_libpath+set}" = set; then 14247 aix_libpath=$lt_cv_aix_libpath 14248else 14249 if ${lt_cv_aix_libpath_+:} false; then : 14250 $as_echo_n "(cached) " >&6 14251else 14252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14253/* end confdefs.h. */ 14254 14255int 14256main () 14257{ 14258 14259 ; 14260 return 0; 14261} 14262_ACEOF 14263if ac_fn_c_try_link "$LINENO"; then : 14264 14265 lt_aix_libpath_sed=' 14266 /Import File Strings/,/^$/ { 14267 /^0/ { 14268 s/^0 *\([^ ]*\) *$/\1/ 14269 p 14270 } 14271 }' 14272 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14273 # Check for a 64-bit object if we didn't find anything. 14274 if test -z "$lt_cv_aix_libpath_"; then 14275 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14276 fi 14277fi 14278rm -f core conftest.err conftest.$ac_objext \ 14279 conftest$ac_exeext conftest.$ac_ext 14280 if test -z "$lt_cv_aix_libpath_"; then 14281 lt_cv_aix_libpath_="/usr/lib:/lib" 14282 fi 14283 14284fi 14285 14286 aix_libpath=$lt_cv_aix_libpath_ 14287fi 14288 14289 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 14290 # Warning - without using the other run time loading flags, 14291 # -berok will link without error, but may produce a broken library. 14292 no_undefined_flag=' ${wl}-bernotok' 14293 allow_undefined_flag=' ${wl}-berok' 14294 if test "$with_gnu_ld" = yes; then 14295 # We only use this code for GNU lds that support --whole-archive. 14296 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14297 else 14298 # Exported symbols can be pulled into shared objects from archives 14299 whole_archive_flag_spec='$convenience' 14300 fi 14301 archive_cmds_need_lc=yes 14302 # This is similar to how AIX traditionally builds its shared libraries. 14303 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' 14304 fi 14305 fi 14306 ;; 14307 14308 amigaos*) 14309 case $host_cpu in 14310 powerpc) 14311 # see comment about AmigaOS4 .so support 14312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14313 archive_expsym_cmds='' 14314 ;; 14315 m68k) 14316 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)' 14317 hardcode_libdir_flag_spec='-L$libdir' 14318 hardcode_minus_L=yes 14319 ;; 14320 esac 14321 ;; 14322 14323 bsdi[45]*) 14324 export_dynamic_flag_spec=-rdynamic 14325 ;; 14326 14327 cygwin* | mingw* | pw32* | cegcc*) 14328 # When not using gcc, we currently assume that we are using 14329 # Microsoft Visual C++. 14330 # hardcode_libdir_flag_spec is actually meaningless, as there is 14331 # no search path for DLLs. 14332 case $cc_basename in 14333 cl*) 14334 # Native MSVC 14335 hardcode_libdir_flag_spec=' ' 14336 allow_undefined_flag=unsupported 14337 always_export_symbols=yes 14338 file_list_spec='@' 14339 # Tell ltmain to make .lib files, not .a files. 14340 libext=lib 14341 # Tell ltmain to make .dll files, not .so files. 14342 shrext_cmds=".dll" 14343 # FIXME: Setting linknames here is a bad hack. 14344 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 14345 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14346 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 14347 else 14348 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 14349 fi~ 14350 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14351 linknames=' 14352 # The linker will not automatically build a static lib if we build a DLL. 14353 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 14354 enable_shared_with_static_runtimes=yes 14355 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14356 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14357 # Don't use ranlib 14358 old_postinstall_cmds='chmod 644 $oldlib' 14359 postlink_cmds='lt_outputfile="@OUTPUT@"~ 14360 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14361 case $lt_outputfile in 14362 *.exe|*.EXE) ;; 14363 *) 14364 lt_outputfile="$lt_outputfile.exe" 14365 lt_tool_outputfile="$lt_tool_outputfile.exe" 14366 ;; 14367 esac~ 14368 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 14369 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14370 $RM "$lt_outputfile.manifest"; 14371 fi' 14372 ;; 14373 *) 14374 # Assume MSVC wrapper 14375 hardcode_libdir_flag_spec=' ' 14376 allow_undefined_flag=unsupported 14377 # Tell ltmain to make .lib files, not .a files. 14378 libext=lib 14379 # Tell ltmain to make .dll files, not .so files. 14380 shrext_cmds=".dll" 14381 # FIXME: Setting linknames here is a bad hack. 14382 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 14383 # The linker will automatically build a .lib file if we build a DLL. 14384 old_archive_from_new_cmds='true' 14385 # FIXME: Should let the user specify the lib program. 14386 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 14387 enable_shared_with_static_runtimes=yes 14388 ;; 14389 esac 14390 ;; 14391 14392 darwin* | rhapsody*) 14393 14394 14395 archive_cmds_need_lc=no 14396 hardcode_direct=no 14397 hardcode_automatic=yes 14398 hardcode_shlibpath_var=unsupported 14399 if test "$lt_cv_ld_force_load" = "yes"; then 14400 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\"`' 14401 14402 else 14403 whole_archive_flag_spec='' 14404 fi 14405 link_all_deplibs=yes 14406 allow_undefined_flag="$_lt_dar_allow_undefined" 14407 case $cc_basename in 14408 ifort*) _lt_dar_can_shared=yes ;; 14409 *) _lt_dar_can_shared=$GCC ;; 14410 esac 14411 if test "$_lt_dar_can_shared" = "yes"; then 14412 output_verbose_link_cmd=func_echo_all 14413 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 14414 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 14415 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}" 14416 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}" 14417 14418 else 14419 ld_shlibs=no 14420 fi 14421 14422 ;; 14423 14424 dgux*) 14425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14426 hardcode_libdir_flag_spec='-L$libdir' 14427 hardcode_shlibpath_var=no 14428 ;; 14429 14430 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14431 # support. Future versions do this automatically, but an explicit c++rt0.o 14432 # does not break anything, and helps significantly (at the cost of a little 14433 # extra space). 14434 freebsd2.2*) 14435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14436 hardcode_libdir_flag_spec='-R$libdir' 14437 hardcode_direct=yes 14438 hardcode_shlibpath_var=no 14439 ;; 14440 14441 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14442 freebsd2.*) 14443 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14444 hardcode_direct=yes 14445 hardcode_minus_L=yes 14446 hardcode_shlibpath_var=no 14447 ;; 14448 14449 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14450 freebsd* | dragonfly*) 14451 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14452 hardcode_libdir_flag_spec='-R$libdir' 14453 hardcode_direct=yes 14454 hardcode_shlibpath_var=no 14455 ;; 14456 14457 hpux9*) 14458 if test "$GCC" = yes; then 14459 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' 14460 else 14461 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' 14462 fi 14463 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 14464 hardcode_libdir_separator=: 14465 hardcode_direct=yes 14466 14467 # hardcode_minus_L: Not really in the search PATH, 14468 # but as the default location of the library. 14469 hardcode_minus_L=yes 14470 export_dynamic_flag_spec='${wl}-E' 14471 ;; 14472 14473 hpux10*) 14474 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 14475 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14476 else 14477 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14478 fi 14479 if test "$with_gnu_ld" = no; then 14480 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 14481 hardcode_libdir_separator=: 14482 hardcode_direct=yes 14483 hardcode_direct_absolute=yes 14484 export_dynamic_flag_spec='${wl}-E' 14485 # hardcode_minus_L: Not really in the search PATH, 14486 # but as the default location of the library. 14487 hardcode_minus_L=yes 14488 fi 14489 ;; 14490 14491 hpux11*) 14492 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 14493 case $host_cpu in 14494 hppa*64*) 14495 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14496 ;; 14497 ia64*) 14498 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14499 ;; 14500 *) 14501 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14502 ;; 14503 esac 14504 else 14505 case $host_cpu in 14506 hppa*64*) 14507 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14508 ;; 14509 ia64*) 14510 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14511 ;; 14512 *) 14513 14514 # Older versions of the 11.00 compiler do not understand -b yet 14515 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 14517$as_echo_n "checking if $CC understands -b... " >&6; } 14518if ${lt_cv_prog_compiler__b+:} false; then : 14519 $as_echo_n "(cached) " >&6 14520else 14521 lt_cv_prog_compiler__b=no 14522 save_LDFLAGS="$LDFLAGS" 14523 LDFLAGS="$LDFLAGS -b" 14524 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14525 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14526 # The linker can only warn and ignore the option if not recognized 14527 # So say no if there are warnings 14528 if test -s conftest.err; then 14529 # Append any errors to the config.log. 14530 cat conftest.err 1>&5 14531 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14533 if diff conftest.exp conftest.er2 >/dev/null; then 14534 lt_cv_prog_compiler__b=yes 14535 fi 14536 else 14537 lt_cv_prog_compiler__b=yes 14538 fi 14539 fi 14540 $RM -r conftest* 14541 LDFLAGS="$save_LDFLAGS" 14542 14543fi 14544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 14545$as_echo "$lt_cv_prog_compiler__b" >&6; } 14546 14547if test x"$lt_cv_prog_compiler__b" = xyes; then 14548 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14549else 14550 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14551fi 14552 14553 ;; 14554 esac 14555 fi 14556 if test "$with_gnu_ld" = no; then 14557 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 14558 hardcode_libdir_separator=: 14559 14560 case $host_cpu in 14561 hppa*64*|ia64*) 14562 hardcode_direct=no 14563 hardcode_shlibpath_var=no 14564 ;; 14565 *) 14566 hardcode_direct=yes 14567 hardcode_direct_absolute=yes 14568 export_dynamic_flag_spec='${wl}-E' 14569 14570 # hardcode_minus_L: Not really in the search PATH, 14571 # but as the default location of the library. 14572 hardcode_minus_L=yes 14573 ;; 14574 esac 14575 fi 14576 ;; 14577 14578 irix5* | irix6* | nonstopux*) 14579 if test "$GCC" = yes; then 14580 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' 14581 # Try to use the -exported_symbol ld option, if it does not 14582 # work, assume that -exports_file does not work either and 14583 # implicitly export all symbols. 14584 # This should be the same for all languages, so no per-tag cache variable. 14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 14586$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 14587if ${lt_cv_irix_exported_symbol+:} false; then : 14588 $as_echo_n "(cached) " >&6 14589else 14590 save_LDFLAGS="$LDFLAGS" 14591 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 14592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14593/* end confdefs.h. */ 14594int foo (void) { return 0; } 14595_ACEOF 14596if ac_fn_c_try_link "$LINENO"; then : 14597 lt_cv_irix_exported_symbol=yes 14598else 14599 lt_cv_irix_exported_symbol=no 14600fi 14601rm -f core conftest.err conftest.$ac_objext \ 14602 conftest$ac_exeext conftest.$ac_ext 14603 LDFLAGS="$save_LDFLAGS" 14604fi 14605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 14606$as_echo "$lt_cv_irix_exported_symbol" >&6; } 14607 if test "$lt_cv_irix_exported_symbol" = yes; then 14608 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' 14609 fi 14610 else 14611 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' 14612 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' 14613 fi 14614 archive_cmds_need_lc='no' 14615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14616 hardcode_libdir_separator=: 14617 inherit_rpath=yes 14618 link_all_deplibs=yes 14619 ;; 14620 14621 netbsd*) 14622 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14624 else 14625 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14626 fi 14627 hardcode_libdir_flag_spec='-R$libdir' 14628 hardcode_direct=yes 14629 hardcode_shlibpath_var=no 14630 ;; 14631 14632 newsos6) 14633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14634 hardcode_direct=yes 14635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14636 hardcode_libdir_separator=: 14637 hardcode_shlibpath_var=no 14638 ;; 14639 14640 *nto* | *qnx*) 14641 ;; 14642 14643 openbsd*) 14644 if test -f /usr/libexec/ld.so; then 14645 hardcode_direct=yes 14646 hardcode_shlibpath_var=no 14647 hardcode_direct_absolute=yes 14648 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14649 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14650 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14651 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 14652 export_dynamic_flag_spec='${wl}-E' 14653 else 14654 case $host_os in 14655 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14656 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14657 hardcode_libdir_flag_spec='-R$libdir' 14658 ;; 14659 *) 14660 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14661 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 14662 ;; 14663 esac 14664 fi 14665 else 14666 ld_shlibs=no 14667 fi 14668 ;; 14669 14670 os2*) 14671 hardcode_libdir_flag_spec='-L$libdir' 14672 hardcode_minus_L=yes 14673 allow_undefined_flag=unsupported 14674 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' 14675 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14676 ;; 14677 14678 osf3*) 14679 if test "$GCC" = yes; then 14680 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 14681 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' 14682 else 14683 allow_undefined_flag=' -expect_unresolved \*' 14684 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' 14685 fi 14686 archive_cmds_need_lc='no' 14687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14688 hardcode_libdir_separator=: 14689 ;; 14690 14691 osf4* | osf5*) # as osf3* with the addition of -msym flag 14692 if test "$GCC" = yes; then 14693 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 14694 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' 14695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14696 else 14697 allow_undefined_flag=' -expect_unresolved \*' 14698 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' 14699 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~ 14700 $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' 14701 14702 # Both c and cxx compiler support -rpath directly 14703 hardcode_libdir_flag_spec='-rpath $libdir' 14704 fi 14705 archive_cmds_need_lc='no' 14706 hardcode_libdir_separator=: 14707 ;; 14708 14709 solaris*) 14710 no_undefined_flag=' -z defs' 14711 if test "$GCC" = yes; then 14712 wlarc='${wl}' 14713 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14714 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14715 $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' 14716 else 14717 case `$CC -V 2>&1` in 14718 *"Compilers 5.0"*) 14719 wlarc='' 14720 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14721 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14722 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 14723 ;; 14724 *) 14725 wlarc='${wl}' 14726 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 14727 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14728 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 14729 ;; 14730 esac 14731 fi 14732 hardcode_libdir_flag_spec='-R$libdir' 14733 hardcode_shlibpath_var=no 14734 case $host_os in 14735 solaris2.[0-5] | solaris2.[0-5].*) ;; 14736 *) 14737 # The compiler driver will combine and reorder linker options, 14738 # but understands `-z linker_flag'. GCC discards it without `$wl', 14739 # but is careful enough not to reorder. 14740 # Supported since Solaris 2.6 (maybe 2.5.1?) 14741 if test "$GCC" = yes; then 14742 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14743 else 14744 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 14745 fi 14746 ;; 14747 esac 14748 link_all_deplibs=yes 14749 ;; 14750 14751 sunos4*) 14752 if test "x$host_vendor" = xsequent; then 14753 # Use $CC to link under sequent, because it throws in some extra .o 14754 # files that make .init and .fini sections work. 14755 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14756 else 14757 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14758 fi 14759 hardcode_libdir_flag_spec='-L$libdir' 14760 hardcode_direct=yes 14761 hardcode_minus_L=yes 14762 hardcode_shlibpath_var=no 14763 ;; 14764 14765 sysv4) 14766 case $host_vendor in 14767 sni) 14768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14769 hardcode_direct=yes # is this really true??? 14770 ;; 14771 siemens) 14772 ## LD is ld it makes a PLAMLIB 14773 ## CC just makes a GrossModule. 14774 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14775 reload_cmds='$CC -r -o $output$reload_objs' 14776 hardcode_direct=no 14777 ;; 14778 motorola) 14779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14780 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 14781 ;; 14782 esac 14783 runpath_var='LD_RUN_PATH' 14784 hardcode_shlibpath_var=no 14785 ;; 14786 14787 sysv4.3*) 14788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14789 hardcode_shlibpath_var=no 14790 export_dynamic_flag_spec='-Bexport' 14791 ;; 14792 14793 sysv4*MP*) 14794 if test -d /usr/nec; then 14795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14796 hardcode_shlibpath_var=no 14797 runpath_var=LD_RUN_PATH 14798 hardcode_runpath_var=yes 14799 ld_shlibs=yes 14800 fi 14801 ;; 14802 14803 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14804 no_undefined_flag='${wl}-z,text' 14805 archive_cmds_need_lc=no 14806 hardcode_shlibpath_var=no 14807 runpath_var='LD_RUN_PATH' 14808 14809 if test "$GCC" = yes; then 14810 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14811 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14812 else 14813 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14814 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14815 fi 14816 ;; 14817 14818 sysv5* | sco3.2v5* | sco5v6*) 14819 # Note: We can NOT use -z defs as we might desire, because we do not 14820 # link with -lc, and that would cause any symbols used from libc to 14821 # always be unresolved, which means just about no library would 14822 # ever link correctly. If we're not using GNU ld we use -z text 14823 # though, which does catch some bad symbols but isn't as heavy-handed 14824 # as -z defs. 14825 no_undefined_flag='${wl}-z,text' 14826 allow_undefined_flag='${wl}-z,nodefs' 14827 archive_cmds_need_lc=no 14828 hardcode_shlibpath_var=no 14829 hardcode_libdir_flag_spec='${wl}-R,$libdir' 14830 hardcode_libdir_separator=':' 14831 link_all_deplibs=yes 14832 export_dynamic_flag_spec='${wl}-Bexport' 14833 runpath_var='LD_RUN_PATH' 14834 14835 if test "$GCC" = yes; then 14836 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14837 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14838 else 14839 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14840 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14841 fi 14842 ;; 14843 14844 uts4*) 14845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14846 hardcode_libdir_flag_spec='-L$libdir' 14847 hardcode_shlibpath_var=no 14848 ;; 14849 14850 *) 14851 ld_shlibs=no 14852 ;; 14853 esac 14854 14855 if test x$host_vendor = xsni; then 14856 case $host in 14857 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14858 export_dynamic_flag_spec='${wl}-Blargedynsym' 14859 ;; 14860 esac 14861 fi 14862 fi 14863 14864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 14865$as_echo "$ld_shlibs" >&6; } 14866test "$ld_shlibs" = no && can_build_shared=no 14867 14868with_gnu_ld=$with_gnu_ld 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884# 14885# Do we need to explicitly link libc? 14886# 14887case "x$archive_cmds_need_lc" in 14888x|xyes) 14889 # Assume -lc should be added 14890 archive_cmds_need_lc=yes 14891 14892 if test "$enable_shared" = yes && test "$GCC" = yes; then 14893 case $archive_cmds in 14894 *'~'*) 14895 # FIXME: we may have to deal with multi-command sequences. 14896 ;; 14897 '$CC '*) 14898 # Test whether the compiler implicitly links with -lc since on some 14899 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14900 # to ld, don't add -lc before -lgcc. 14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14902$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14903if ${lt_cv_archive_cmds_need_lc+:} false; then : 14904 $as_echo_n "(cached) " >&6 14905else 14906 $RM conftest* 14907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14908 14909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14910 (eval $ac_compile) 2>&5 14911 ac_status=$? 14912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14913 test $ac_status = 0; } 2>conftest.err; then 14914 soname=conftest 14915 lib=conftest 14916 libobjs=conftest.$ac_objext 14917 deplibs= 14918 wl=$lt_prog_compiler_wl 14919 pic_flag=$lt_prog_compiler_pic 14920 compiler_flags=-v 14921 linker_flags=-v 14922 verstring= 14923 output_objdir=. 14924 libname=conftest 14925 lt_save_allow_undefined_flag=$allow_undefined_flag 14926 allow_undefined_flag= 14927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14928 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14929 ac_status=$? 14930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14931 test $ac_status = 0; } 14932 then 14933 lt_cv_archive_cmds_need_lc=no 14934 else 14935 lt_cv_archive_cmds_need_lc=yes 14936 fi 14937 allow_undefined_flag=$lt_save_allow_undefined_flag 14938 else 14939 cat conftest.err 1>&5 14940 fi 14941 $RM conftest* 14942 14943fi 14944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 14945$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 14946 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 14947 ;; 14948 esac 14949 fi 14950 ;; 14951esac 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15105$as_echo_n "checking dynamic linker characteristics... " >&6; } 15106 15107if test "$GCC" = yes; then 15108 case $host_os in 15109 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 15110 *) lt_awk_arg="/^libraries:/" ;; 15111 esac 15112 case $host_os in 15113 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 15114 *) lt_sed_strip_eq="s,=/,/,g" ;; 15115 esac 15116 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 15117 case $lt_search_path_spec in 15118 *\;*) 15119 # if the path contains ";" then we assume it to be the separator 15120 # otherwise default to the standard path separator (i.e. ":") - it is 15121 # assumed that no part of a normal pathname contains ";" but that should 15122 # okay in the real world where ";" in dirpaths is itself problematic. 15123 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 15124 ;; 15125 *) 15126 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 15127 ;; 15128 esac 15129 # Ok, now we have the path, separated by spaces, we can step through it 15130 # and add multilib dir if necessary. 15131 lt_tmp_lt_search_path_spec= 15132 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 15133 for lt_sys_path in $lt_search_path_spec; do 15134 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 15135 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 15136 else 15137 test -d "$lt_sys_path" && \ 15138 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 15139 fi 15140 done 15141 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 15142BEGIN {RS=" "; FS="/|\n";} { 15143 lt_foo=""; 15144 lt_count=0; 15145 for (lt_i = NF; lt_i > 0; lt_i--) { 15146 if ($lt_i != "" && $lt_i != ".") { 15147 if ($lt_i == "..") { 15148 lt_count++; 15149 } else { 15150 if (lt_count == 0) { 15151 lt_foo="/" $lt_i lt_foo; 15152 } else { 15153 lt_count--; 15154 } 15155 } 15156 } 15157 } 15158 if (lt_foo != "") { lt_freq[lt_foo]++; } 15159 if (lt_freq[lt_foo] == 1) { print lt_foo; } 15160}'` 15161 # AWK program above erroneously prepends '/' to C:/dos/paths 15162 # for these hosts. 15163 case $host_os in 15164 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 15165 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 15166 esac 15167 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 15168else 15169 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15170fi 15171library_names_spec= 15172libname_spec='lib$name' 15173soname_spec= 15174shrext_cmds=".so" 15175postinstall_cmds= 15176postuninstall_cmds= 15177finish_cmds= 15178finish_eval= 15179shlibpath_var= 15180shlibpath_overrides_runpath=unknown 15181version_type=none 15182dynamic_linker="$host_os ld.so" 15183sys_lib_dlsearch_path_spec="/lib /usr/lib" 15184need_lib_prefix=unknown 15185hardcode_into_libs=no 15186 15187# when you set need_version to no, make sure it does not cause -set_version 15188# flags to be left without arguments 15189need_version=unknown 15190 15191case $host_os in 15192aix3*) 15193 version_type=linux # correct to gnu/linux during the next big refactor 15194 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15195 shlibpath_var=LIBPATH 15196 15197 # AIX 3 has no versioning support, so we append a major version to the name. 15198 soname_spec='${libname}${release}${shared_ext}$major' 15199 ;; 15200 15201aix[4-9]*) 15202 version_type=linux # correct to gnu/linux during the next big refactor 15203 need_lib_prefix=no 15204 need_version=no 15205 hardcode_into_libs=yes 15206 if test "$host_cpu" = ia64; then 15207 # AIX 5 supports IA64 15208 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15209 shlibpath_var=LD_LIBRARY_PATH 15210 else 15211 # With GCC up to 2.95.x, collect2 would create an import file 15212 # for dependence libraries. The import file would start with 15213 # the line `#! .'. This would cause the generated library to 15214 # depend on `.', always an invalid library. This was fixed in 15215 # development snapshots of GCC prior to 3.0. 15216 case $host_os in 15217 aix4 | aix4.[01] | aix4.[01].*) 15218 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15219 echo ' yes ' 15220 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15221 : 15222 else 15223 can_build_shared=no 15224 fi 15225 ;; 15226 esac 15227 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15228 # soname into executable. Probably we can add versioning support to 15229 # collect2, so additional links can be useful in future. 15230 if test "$aix_use_runtimelinking" = yes; then 15231 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15232 # instead of lib<name>.a to let people know that these are not 15233 # typical AIX shared libraries. 15234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15235 else 15236 # We preserve .a as extension for shared libraries through AIX4.2 15237 # and later when we are not doing run time linking. 15238 library_names_spec='${libname}${release}.a $libname.a' 15239 soname_spec='${libname}${release}${shared_ext}$major' 15240 fi 15241 shlibpath_var=LIBPATH 15242 fi 15243 ;; 15244 15245amigaos*) 15246 case $host_cpu in 15247 powerpc) 15248 # Since July 2007 AmigaOS4 officially supports .so libraries. 15249 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15251 ;; 15252 m68k) 15253 library_names_spec='$libname.ixlibrary $libname.a' 15254 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15255 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' 15256 ;; 15257 esac 15258 ;; 15259 15260beos*) 15261 library_names_spec='${libname}${shared_ext}' 15262 dynamic_linker="$host_os ld.so" 15263 shlibpath_var=LIBRARY_PATH 15264 ;; 15265 15266bsdi[45]*) 15267 version_type=linux # correct to gnu/linux during the next big refactor 15268 need_version=no 15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15270 soname_spec='${libname}${release}${shared_ext}$major' 15271 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15272 shlibpath_var=LD_LIBRARY_PATH 15273 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15274 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15275 # the default ld.so.conf also contains /usr/contrib/lib and 15276 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15277 # libtool to hard-code these into programs 15278 ;; 15279 15280cygwin* | mingw* | pw32* | cegcc*) 15281 version_type=windows 15282 shrext_cmds=".dll" 15283 need_version=no 15284 need_lib_prefix=no 15285 15286 case $GCC,$cc_basename in 15287 yes,*) 15288 # gcc 15289 library_names_spec='$libname.dll.a' 15290 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15291 postinstall_cmds='base_file=`basename \${file}`~ 15292 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15293 dldir=$destdir/`dirname \$dlpath`~ 15294 test -d \$dldir || mkdir -p \$dldir~ 15295 $install_prog $dir/$dlname \$dldir/$dlname~ 15296 chmod a+x \$dldir/$dlname~ 15297 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15298 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15299 fi' 15300 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15301 dlpath=$dir/\$dldll~ 15302 $RM \$dlpath' 15303 shlibpath_overrides_runpath=yes 15304 15305 case $host_os in 15306 cygwin*) 15307 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15308 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15309 15310 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 15311 ;; 15312 mingw* | cegcc*) 15313 # MinGW DLLs use traditional 'lib' prefix 15314 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15315 ;; 15316 pw32*) 15317 # pw32 DLLs use 'pw' prefix rather than 'lib' 15318 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15319 ;; 15320 esac 15321 dynamic_linker='Win32 ld.exe' 15322 ;; 15323 15324 *,cl*) 15325 # Native MSVC 15326 libname_spec='$name' 15327 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15328 library_names_spec='${libname}.dll.lib' 15329 15330 case $build_os in 15331 mingw*) 15332 sys_lib_search_path_spec= 15333 lt_save_ifs=$IFS 15334 IFS=';' 15335 for lt_path in $LIB 15336 do 15337 IFS=$lt_save_ifs 15338 # Let DOS variable expansion print the short 8.3 style file name. 15339 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15340 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15341 done 15342 IFS=$lt_save_ifs 15343 # Convert to MSYS style. 15344 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15345 ;; 15346 cygwin*) 15347 # Convert to unix form, then to dos form, then back to unix form 15348 # but this time dos style (no spaces!) so that the unix form looks 15349 # like /cygdrive/c/PROGRA~1:/cygdr... 15350 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15351 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15352 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15353 ;; 15354 *) 15355 sys_lib_search_path_spec="$LIB" 15356 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15357 # It is most probably a Windows format PATH. 15358 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15359 else 15360 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15361 fi 15362 # FIXME: find the short name or the path components, as spaces are 15363 # common. (e.g. "Program Files" -> "PROGRA~1") 15364 ;; 15365 esac 15366 15367 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15368 postinstall_cmds='base_file=`basename \${file}`~ 15369 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15370 dldir=$destdir/`dirname \$dlpath`~ 15371 test -d \$dldir || mkdir -p \$dldir~ 15372 $install_prog $dir/$dlname \$dldir/$dlname' 15373 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15374 dlpath=$dir/\$dldll~ 15375 $RM \$dlpath' 15376 shlibpath_overrides_runpath=yes 15377 dynamic_linker='Win32 link.exe' 15378 ;; 15379 15380 *) 15381 # Assume MSVC wrapper 15382 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15383 dynamic_linker='Win32 ld.exe' 15384 ;; 15385 esac 15386 # FIXME: first we should search . and the directory the executable is in 15387 shlibpath_var=PATH 15388 ;; 15389 15390darwin* | rhapsody*) 15391 dynamic_linker="$host_os dyld" 15392 version_type=darwin 15393 need_lib_prefix=no 15394 need_version=no 15395 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15396 soname_spec='${libname}${release}${major}$shared_ext' 15397 shlibpath_overrides_runpath=yes 15398 shlibpath_var=DYLD_LIBRARY_PATH 15399 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15400 15401 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 15402 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15403 ;; 15404 15405dgux*) 15406 version_type=linux # correct to gnu/linux during the next big refactor 15407 need_lib_prefix=no 15408 need_version=no 15409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15410 soname_spec='${libname}${release}${shared_ext}$major' 15411 shlibpath_var=LD_LIBRARY_PATH 15412 ;; 15413 15414freebsd* | dragonfly*) 15415 # DragonFly does not have aout. When/if they implement a new 15416 # versioning mechanism, adjust this. 15417 if test -x /usr/bin/objformat; then 15418 objformat=`/usr/bin/objformat` 15419 else 15420 case $host_os in 15421 freebsd[23].*) objformat=aout ;; 15422 *) objformat=elf ;; 15423 esac 15424 fi 15425 version_type=freebsd-$objformat 15426 case $version_type in 15427 freebsd-elf*) 15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15429 need_version=no 15430 need_lib_prefix=no 15431 ;; 15432 freebsd-*) 15433 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15434 need_version=yes 15435 ;; 15436 esac 15437 shlibpath_var=LD_LIBRARY_PATH 15438 case $host_os in 15439 freebsd2.*) 15440 shlibpath_overrides_runpath=yes 15441 ;; 15442 freebsd3.[01]* | freebsdelf3.[01]*) 15443 shlibpath_overrides_runpath=yes 15444 hardcode_into_libs=yes 15445 ;; 15446 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15447 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15448 shlibpath_overrides_runpath=no 15449 hardcode_into_libs=yes 15450 ;; 15451 *) # from 4.6 on, and DragonFly 15452 shlibpath_overrides_runpath=yes 15453 hardcode_into_libs=yes 15454 ;; 15455 esac 15456 ;; 15457 15458gnu*) 15459 version_type=linux # correct to gnu/linux during the next big refactor 15460 need_lib_prefix=no 15461 need_version=no 15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15463 soname_spec='${libname}${release}${shared_ext}$major' 15464 shlibpath_var=LD_LIBRARY_PATH 15465 shlibpath_overrides_runpath=no 15466 hardcode_into_libs=yes 15467 ;; 15468 15469haiku*) 15470 version_type=linux # correct to gnu/linux during the next big refactor 15471 need_lib_prefix=no 15472 need_version=no 15473 dynamic_linker="$host_os runtime_loader" 15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15475 soname_spec='${libname}${release}${shared_ext}$major' 15476 shlibpath_var=LIBRARY_PATH 15477 shlibpath_overrides_runpath=yes 15478 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15479 hardcode_into_libs=yes 15480 ;; 15481 15482hpux9* | hpux10* | hpux11*) 15483 # Give a soname corresponding to the major version so that dld.sl refuses to 15484 # link against other versions. 15485 version_type=sunos 15486 need_lib_prefix=no 15487 need_version=no 15488 case $host_cpu in 15489 ia64*) 15490 shrext_cmds='.so' 15491 hardcode_into_libs=yes 15492 dynamic_linker="$host_os dld.so" 15493 shlibpath_var=LD_LIBRARY_PATH 15494 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15496 soname_spec='${libname}${release}${shared_ext}$major' 15497 if test "X$HPUX_IA64_MODE" = X32; then 15498 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15499 else 15500 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15501 fi 15502 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15503 ;; 15504 hppa*64*) 15505 shrext_cmds='.sl' 15506 hardcode_into_libs=yes 15507 dynamic_linker="$host_os dld.sl" 15508 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15511 soname_spec='${libname}${release}${shared_ext}$major' 15512 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15513 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15514 ;; 15515 *) 15516 shrext_cmds='.sl' 15517 dynamic_linker="$host_os dld.sl" 15518 shlibpath_var=SHLIB_PATH 15519 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15521 soname_spec='${libname}${release}${shared_ext}$major' 15522 ;; 15523 esac 15524 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15525 postinstall_cmds='chmod 555 $lib' 15526 # or fails outright, so override atomically: 15527 install_override_mode=555 15528 ;; 15529 15530interix[3-9]*) 15531 version_type=linux # correct to gnu/linux during the next big refactor 15532 need_lib_prefix=no 15533 need_version=no 15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15535 soname_spec='${libname}${release}${shared_ext}$major' 15536 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15537 shlibpath_var=LD_LIBRARY_PATH 15538 shlibpath_overrides_runpath=no 15539 hardcode_into_libs=yes 15540 ;; 15541 15542irix5* | irix6* | nonstopux*) 15543 case $host_os in 15544 nonstopux*) version_type=nonstopux ;; 15545 *) 15546 if test "$lt_cv_prog_gnu_ld" = yes; then 15547 version_type=linux # correct to gnu/linux during the next big refactor 15548 else 15549 version_type=irix 15550 fi ;; 15551 esac 15552 need_lib_prefix=no 15553 need_version=no 15554 soname_spec='${libname}${release}${shared_ext}$major' 15555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15556 case $host_os in 15557 irix5* | nonstopux*) 15558 libsuff= shlibsuff= 15559 ;; 15560 *) 15561 case $LD in # libtool.m4 will add one of these switches to LD 15562 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15563 libsuff= shlibsuff= libmagic=32-bit;; 15564 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15565 libsuff=32 shlibsuff=N32 libmagic=N32;; 15566 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15567 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15568 *) libsuff= shlibsuff= libmagic=never-match;; 15569 esac 15570 ;; 15571 esac 15572 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15573 shlibpath_overrides_runpath=no 15574 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15575 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15576 hardcode_into_libs=yes 15577 ;; 15578 15579# No shared lib support for Linux oldld, aout, or coff. 15580linux*oldld* | linux*aout* | linux*coff*) 15581 dynamic_linker=no 15582 ;; 15583 15584# This must be glibc/ELF. 15585linux* | k*bsd*-gnu | kopensolaris*-gnu) 15586 version_type=linux # correct to gnu/linux during the next big refactor 15587 need_lib_prefix=no 15588 need_version=no 15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15590 soname_spec='${libname}${release}${shared_ext}$major' 15591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15592 shlibpath_var=LD_LIBRARY_PATH 15593 shlibpath_overrides_runpath=no 15594 15595 # Some binutils ld are patched to set DT_RUNPATH 15596 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15597 $as_echo_n "(cached) " >&6 15598else 15599 lt_cv_shlibpath_overrides_runpath=no 15600 save_LDFLAGS=$LDFLAGS 15601 save_libdir=$libdir 15602 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 15603 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15605/* end confdefs.h. */ 15606 15607int 15608main () 15609{ 15610 15611 ; 15612 return 0; 15613} 15614_ACEOF 15615if ac_fn_c_try_link "$LINENO"; then : 15616 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15617 lt_cv_shlibpath_overrides_runpath=yes 15618fi 15619fi 15620rm -f core conftest.err conftest.$ac_objext \ 15621 conftest$ac_exeext conftest.$ac_ext 15622 LDFLAGS=$save_LDFLAGS 15623 libdir=$save_libdir 15624 15625fi 15626 15627 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15628 15629 # This implies no fast_install, which is unacceptable. 15630 # Some rework will be needed to allow for fast_install 15631 # before this can be enabled. 15632 hardcode_into_libs=yes 15633 15634 # Add ABI-specific directories to the system library path. 15635 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 15636 15637 # Append ld.so.conf contents to the search path 15638 if test -f /etc/ld.so.conf; then 15639 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' ' '` 15640 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 15641 15642 fi 15643 15644 # We used to test for /lib/ld.so.1 and disable shared libraries on 15645 # powerpc, because MkLinux only supported shared libraries with the 15646 # GNU dynamic linker. Since this was broken with cross compilers, 15647 # most powerpc-linux boxes support dynamic linking these days and 15648 # people can always --disable-shared, the test was removed, and we 15649 # assume the GNU/Linux dynamic linker is in use. 15650 dynamic_linker='GNU/Linux ld.so' 15651 ;; 15652 15653netbsd*) 15654 version_type=sunos 15655 need_lib_prefix=no 15656 need_version=no 15657 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15660 dynamic_linker='NetBSD (a.out) ld.so' 15661 else 15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15663 soname_spec='${libname}${release}${shared_ext}$major' 15664 dynamic_linker='NetBSD ld.elf_so' 15665 fi 15666 shlibpath_var=LD_LIBRARY_PATH 15667 shlibpath_overrides_runpath=yes 15668 hardcode_into_libs=yes 15669 ;; 15670 15671newsos6) 15672 version_type=linux # correct to gnu/linux during the next big refactor 15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15674 shlibpath_var=LD_LIBRARY_PATH 15675 shlibpath_overrides_runpath=yes 15676 ;; 15677 15678*nto* | *qnx*) 15679 version_type=qnx 15680 need_lib_prefix=no 15681 need_version=no 15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15683 soname_spec='${libname}${release}${shared_ext}$major' 15684 shlibpath_var=LD_LIBRARY_PATH 15685 shlibpath_overrides_runpath=no 15686 hardcode_into_libs=yes 15687 dynamic_linker='ldqnx.so' 15688 ;; 15689 15690openbsd*) 15691 version_type=sunos 15692 sys_lib_dlsearch_path_spec="/usr/lib" 15693 need_lib_prefix=no 15694 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15695 case $host_os in 15696 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15697 *) need_version=no ;; 15698 esac 15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15701 shlibpath_var=LD_LIBRARY_PATH 15702 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15703 case $host_os in 15704 openbsd2.[89] | openbsd2.[89].*) 15705 shlibpath_overrides_runpath=no 15706 ;; 15707 *) 15708 shlibpath_overrides_runpath=yes 15709 ;; 15710 esac 15711 else 15712 shlibpath_overrides_runpath=yes 15713 fi 15714 ;; 15715 15716os2*) 15717 libname_spec='$name' 15718 shrext_cmds=".dll" 15719 need_lib_prefix=no 15720 library_names_spec='$libname${shared_ext} $libname.a' 15721 dynamic_linker='OS/2 ld.exe' 15722 shlibpath_var=LIBPATH 15723 ;; 15724 15725osf3* | osf4* | osf5*) 15726 version_type=osf 15727 need_lib_prefix=no 15728 need_version=no 15729 soname_spec='${libname}${release}${shared_ext}$major' 15730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15731 shlibpath_var=LD_LIBRARY_PATH 15732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15733 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15734 ;; 15735 15736rdos*) 15737 dynamic_linker=no 15738 ;; 15739 15740solaris*) 15741 version_type=linux # correct to gnu/linux during the next big refactor 15742 need_lib_prefix=no 15743 need_version=no 15744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15745 soname_spec='${libname}${release}${shared_ext}$major' 15746 shlibpath_var=LD_LIBRARY_PATH 15747 shlibpath_overrides_runpath=yes 15748 hardcode_into_libs=yes 15749 # ldd complains unless libraries are executable 15750 postinstall_cmds='chmod +x $lib' 15751 ;; 15752 15753sunos4*) 15754 version_type=sunos 15755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15757 shlibpath_var=LD_LIBRARY_PATH 15758 shlibpath_overrides_runpath=yes 15759 if test "$with_gnu_ld" = yes; then 15760 need_lib_prefix=no 15761 fi 15762 need_version=yes 15763 ;; 15764 15765sysv4 | sysv4.3*) 15766 version_type=linux # correct to gnu/linux during the next big refactor 15767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15768 soname_spec='${libname}${release}${shared_ext}$major' 15769 shlibpath_var=LD_LIBRARY_PATH 15770 case $host_vendor in 15771 sni) 15772 shlibpath_overrides_runpath=no 15773 need_lib_prefix=no 15774 runpath_var=LD_RUN_PATH 15775 ;; 15776 siemens) 15777 need_lib_prefix=no 15778 ;; 15779 motorola) 15780 need_lib_prefix=no 15781 need_version=no 15782 shlibpath_overrides_runpath=no 15783 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15784 ;; 15785 esac 15786 ;; 15787 15788sysv4*MP*) 15789 if test -d /usr/nec ;then 15790 version_type=linux # correct to gnu/linux during the next big refactor 15791 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15792 soname_spec='$libname${shared_ext}.$major' 15793 shlibpath_var=LD_LIBRARY_PATH 15794 fi 15795 ;; 15796 15797sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15798 version_type=freebsd-elf 15799 need_lib_prefix=no 15800 need_version=no 15801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15802 soname_spec='${libname}${release}${shared_ext}$major' 15803 shlibpath_var=LD_LIBRARY_PATH 15804 shlibpath_overrides_runpath=yes 15805 hardcode_into_libs=yes 15806 if test "$with_gnu_ld" = yes; then 15807 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15808 else 15809 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15810 case $host_os in 15811 sco3.2v5*) 15812 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15813 ;; 15814 esac 15815 fi 15816 sys_lib_dlsearch_path_spec='/usr/lib' 15817 ;; 15818 15819tpf*) 15820 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15821 version_type=linux # correct to gnu/linux during the next big refactor 15822 need_lib_prefix=no 15823 need_version=no 15824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15825 shlibpath_var=LD_LIBRARY_PATH 15826 shlibpath_overrides_runpath=no 15827 hardcode_into_libs=yes 15828 ;; 15829 15830uts4*) 15831 version_type=linux # correct to gnu/linux during the next big refactor 15832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15833 soname_spec='${libname}${release}${shared_ext}$major' 15834 shlibpath_var=LD_LIBRARY_PATH 15835 ;; 15836 15837*) 15838 dynamic_linker=no 15839 ;; 15840esac 15841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15842$as_echo "$dynamic_linker" >&6; } 15843test "$dynamic_linker" = no && can_build_shared=no 15844 15845variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15846if test "$GCC" = yes; then 15847 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15848fi 15849 15850if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15851 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15852fi 15853if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15854 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15855fi 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15949$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15950hardcode_action= 15951if test -n "$hardcode_libdir_flag_spec" || 15952 test -n "$runpath_var" || 15953 test "X$hardcode_automatic" = "Xyes" ; then 15954 15955 # We can hardcode non-existent directories. 15956 if test "$hardcode_direct" != no && 15957 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15958 # have to relink, otherwise we might link with an installed library 15959 # when we should be linking with a yet-to-be-installed one 15960 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 15961 test "$hardcode_minus_L" != no; then 15962 # Linking always hardcodes the temporary library directory. 15963 hardcode_action=relink 15964 else 15965 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15966 hardcode_action=immediate 15967 fi 15968else 15969 # We cannot hardcode anything, or else we can only hardcode existing 15970 # directories. 15971 hardcode_action=unsupported 15972fi 15973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 15974$as_echo "$hardcode_action" >&6; } 15975 15976if test "$hardcode_action" = relink || 15977 test "$inherit_rpath" = yes; then 15978 # Fast installation is not supported 15979 enable_fast_install=no 15980elif test "$shlibpath_overrides_runpath" = yes || 15981 test "$enable_shared" = no; then 15982 # Fast installation is not necessary 15983 enable_fast_install=needless 15984fi 15985 15986 15987 15988 15989 15990 15991 if test "x$enable_dlopen" != xyes; then 15992 enable_dlopen=unknown 15993 enable_dlopen_self=unknown 15994 enable_dlopen_self_static=unknown 15995else 15996 lt_cv_dlopen=no 15997 lt_cv_dlopen_libs= 15998 15999 case $host_os in 16000 beos*) 16001 lt_cv_dlopen="load_add_on" 16002 lt_cv_dlopen_libs= 16003 lt_cv_dlopen_self=yes 16004 ;; 16005 16006 mingw* | pw32* | cegcc*) 16007 lt_cv_dlopen="LoadLibrary" 16008 lt_cv_dlopen_libs= 16009 ;; 16010 16011 cygwin*) 16012 lt_cv_dlopen="dlopen" 16013 lt_cv_dlopen_libs= 16014 ;; 16015 16016 darwin*) 16017 # if libdl is installed we need to link against it 16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16019$as_echo_n "checking for dlopen in -ldl... " >&6; } 16020if ${ac_cv_lib_dl_dlopen+:} false; then : 16021 $as_echo_n "(cached) " >&6 16022else 16023 ac_check_lib_save_LIBS=$LIBS 16024LIBS="-ldl $LIBS" 16025cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16026/* end confdefs.h. */ 16027 16028/* Override any GCC internal prototype to avoid an error. 16029 Use char because int might match the return type of a GCC 16030 builtin and then its argument prototype would still apply. */ 16031#ifdef __cplusplus 16032extern "C" 16033#endif 16034char dlopen (); 16035int 16036main () 16037{ 16038return dlopen (); 16039 ; 16040 return 0; 16041} 16042_ACEOF 16043if ac_fn_c_try_link "$LINENO"; then : 16044 ac_cv_lib_dl_dlopen=yes 16045else 16046 ac_cv_lib_dl_dlopen=no 16047fi 16048rm -f core conftest.err conftest.$ac_objext \ 16049 conftest$ac_exeext conftest.$ac_ext 16050LIBS=$ac_check_lib_save_LIBS 16051fi 16052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16053$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 16054if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 16055 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16056else 16057 16058 lt_cv_dlopen="dyld" 16059 lt_cv_dlopen_libs= 16060 lt_cv_dlopen_self=yes 16061 16062fi 16063 16064 ;; 16065 16066 *) 16067 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 16068if test "x$ac_cv_func_shl_load" = xyes; then : 16069 lt_cv_dlopen="shl_load" 16070else 16071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 16072$as_echo_n "checking for shl_load in -ldld... " >&6; } 16073if ${ac_cv_lib_dld_shl_load+:} false; then : 16074 $as_echo_n "(cached) " >&6 16075else 16076 ac_check_lib_save_LIBS=$LIBS 16077LIBS="-ldld $LIBS" 16078cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16079/* end confdefs.h. */ 16080 16081/* Override any GCC internal prototype to avoid an error. 16082 Use char because int might match the return type of a GCC 16083 builtin and then its argument prototype would still apply. */ 16084#ifdef __cplusplus 16085extern "C" 16086#endif 16087char shl_load (); 16088int 16089main () 16090{ 16091return shl_load (); 16092 ; 16093 return 0; 16094} 16095_ACEOF 16096if ac_fn_c_try_link "$LINENO"; then : 16097 ac_cv_lib_dld_shl_load=yes 16098else 16099 ac_cv_lib_dld_shl_load=no 16100fi 16101rm -f core conftest.err conftest.$ac_objext \ 16102 conftest$ac_exeext conftest.$ac_ext 16103LIBS=$ac_check_lib_save_LIBS 16104fi 16105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 16106$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 16107if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 16108 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 16109else 16110 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 16111if test "x$ac_cv_func_dlopen" = xyes; then : 16112 lt_cv_dlopen="dlopen" 16113else 16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16115$as_echo_n "checking for dlopen in -ldl... " >&6; } 16116if ${ac_cv_lib_dl_dlopen+:} false; then : 16117 $as_echo_n "(cached) " >&6 16118else 16119 ac_check_lib_save_LIBS=$LIBS 16120LIBS="-ldl $LIBS" 16121cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16122/* end confdefs.h. */ 16123 16124/* Override any GCC internal prototype to avoid an error. 16125 Use char because int might match the return type of a GCC 16126 builtin and then its argument prototype would still apply. */ 16127#ifdef __cplusplus 16128extern "C" 16129#endif 16130char dlopen (); 16131int 16132main () 16133{ 16134return dlopen (); 16135 ; 16136 return 0; 16137} 16138_ACEOF 16139if ac_fn_c_try_link "$LINENO"; then : 16140 ac_cv_lib_dl_dlopen=yes 16141else 16142 ac_cv_lib_dl_dlopen=no 16143fi 16144rm -f core conftest.err conftest.$ac_objext \ 16145 conftest$ac_exeext conftest.$ac_ext 16146LIBS=$ac_check_lib_save_LIBS 16147fi 16148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16149$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 16150if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 16151 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16152else 16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 16154$as_echo_n "checking for dlopen in -lsvld... " >&6; } 16155if ${ac_cv_lib_svld_dlopen+:} false; then : 16156 $as_echo_n "(cached) " >&6 16157else 16158 ac_check_lib_save_LIBS=$LIBS 16159LIBS="-lsvld $LIBS" 16160cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16161/* end confdefs.h. */ 16162 16163/* Override any GCC internal prototype to avoid an error. 16164 Use char because int might match the return type of a GCC 16165 builtin and then its argument prototype would still apply. */ 16166#ifdef __cplusplus 16167extern "C" 16168#endif 16169char dlopen (); 16170int 16171main () 16172{ 16173return dlopen (); 16174 ; 16175 return 0; 16176} 16177_ACEOF 16178if ac_fn_c_try_link "$LINENO"; then : 16179 ac_cv_lib_svld_dlopen=yes 16180else 16181 ac_cv_lib_svld_dlopen=no 16182fi 16183rm -f core conftest.err conftest.$ac_objext \ 16184 conftest$ac_exeext conftest.$ac_ext 16185LIBS=$ac_check_lib_save_LIBS 16186fi 16187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 16188$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 16189if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 16190 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 16191else 16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 16193$as_echo_n "checking for dld_link in -ldld... " >&6; } 16194if ${ac_cv_lib_dld_dld_link+:} false; then : 16195 $as_echo_n "(cached) " >&6 16196else 16197 ac_check_lib_save_LIBS=$LIBS 16198LIBS="-ldld $LIBS" 16199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16200/* end confdefs.h. */ 16201 16202/* Override any GCC internal prototype to avoid an error. 16203 Use char because int might match the return type of a GCC 16204 builtin and then its argument prototype would still apply. */ 16205#ifdef __cplusplus 16206extern "C" 16207#endif 16208char dld_link (); 16209int 16210main () 16211{ 16212return dld_link (); 16213 ; 16214 return 0; 16215} 16216_ACEOF 16217if ac_fn_c_try_link "$LINENO"; then : 16218 ac_cv_lib_dld_dld_link=yes 16219else 16220 ac_cv_lib_dld_dld_link=no 16221fi 16222rm -f core conftest.err conftest.$ac_objext \ 16223 conftest$ac_exeext conftest.$ac_ext 16224LIBS=$ac_check_lib_save_LIBS 16225fi 16226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 16227$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 16228if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 16229 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 16230fi 16231 16232 16233fi 16234 16235 16236fi 16237 16238 16239fi 16240 16241 16242fi 16243 16244 16245fi 16246 16247 ;; 16248 esac 16249 16250 if test "x$lt_cv_dlopen" != xno; then 16251 enable_dlopen=yes 16252 else 16253 enable_dlopen=no 16254 fi 16255 16256 case $lt_cv_dlopen in 16257 dlopen) 16258 save_CPPFLAGS="$CPPFLAGS" 16259 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 16260 16261 save_LDFLAGS="$LDFLAGS" 16262 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 16263 16264 save_LIBS="$LIBS" 16265 LIBS="$lt_cv_dlopen_libs $LIBS" 16266 16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 16268$as_echo_n "checking whether a program can dlopen itself... " >&6; } 16269if ${lt_cv_dlopen_self+:} false; then : 16270 $as_echo_n "(cached) " >&6 16271else 16272 if test "$cross_compiling" = yes; then : 16273 lt_cv_dlopen_self=cross 16274else 16275 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16276 lt_status=$lt_dlunknown 16277 cat > conftest.$ac_ext <<_LT_EOF 16278#line $LINENO "configure" 16279#include "confdefs.h" 16280 16281#if HAVE_DLFCN_H 16282#include <dlfcn.h> 16283#endif 16284 16285#include <stdio.h> 16286 16287#ifdef RTLD_GLOBAL 16288# define LT_DLGLOBAL RTLD_GLOBAL 16289#else 16290# ifdef DL_GLOBAL 16291# define LT_DLGLOBAL DL_GLOBAL 16292# else 16293# define LT_DLGLOBAL 0 16294# endif 16295#endif 16296 16297/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16298 find out it does not work in some platform. */ 16299#ifndef LT_DLLAZY_OR_NOW 16300# ifdef RTLD_LAZY 16301# define LT_DLLAZY_OR_NOW RTLD_LAZY 16302# else 16303# ifdef DL_LAZY 16304# define LT_DLLAZY_OR_NOW DL_LAZY 16305# else 16306# ifdef RTLD_NOW 16307# define LT_DLLAZY_OR_NOW RTLD_NOW 16308# else 16309# ifdef DL_NOW 16310# define LT_DLLAZY_OR_NOW DL_NOW 16311# else 16312# define LT_DLLAZY_OR_NOW 0 16313# endif 16314# endif 16315# endif 16316# endif 16317#endif 16318 16319/* When -fvisbility=hidden is used, assume the code has been annotated 16320 correspondingly for the symbols needed. */ 16321#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16322int fnord () __attribute__((visibility("default"))); 16323#endif 16324 16325int fnord () { return 42; } 16326int main () 16327{ 16328 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16329 int status = $lt_dlunknown; 16330 16331 if (self) 16332 { 16333 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16334 else 16335 { 16336 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16337 else puts (dlerror ()); 16338 } 16339 /* dlclose (self); */ 16340 } 16341 else 16342 puts (dlerror ()); 16343 16344 return status; 16345} 16346_LT_EOF 16347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16348 (eval $ac_link) 2>&5 16349 ac_status=$? 16350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16351 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 16352 (./conftest; exit; ) >&5 2>/dev/null 16353 lt_status=$? 16354 case x$lt_status in 16355 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 16356 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 16357 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 16358 esac 16359 else : 16360 # compilation failed 16361 lt_cv_dlopen_self=no 16362 fi 16363fi 16364rm -fr conftest* 16365 16366 16367fi 16368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 16369$as_echo "$lt_cv_dlopen_self" >&6; } 16370 16371 if test "x$lt_cv_dlopen_self" = xyes; then 16372 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 16373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 16374$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 16375if ${lt_cv_dlopen_self_static+:} false; then : 16376 $as_echo_n "(cached) " >&6 16377else 16378 if test "$cross_compiling" = yes; then : 16379 lt_cv_dlopen_self_static=cross 16380else 16381 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16382 lt_status=$lt_dlunknown 16383 cat > conftest.$ac_ext <<_LT_EOF 16384#line $LINENO "configure" 16385#include "confdefs.h" 16386 16387#if HAVE_DLFCN_H 16388#include <dlfcn.h> 16389#endif 16390 16391#include <stdio.h> 16392 16393#ifdef RTLD_GLOBAL 16394# define LT_DLGLOBAL RTLD_GLOBAL 16395#else 16396# ifdef DL_GLOBAL 16397# define LT_DLGLOBAL DL_GLOBAL 16398# else 16399# define LT_DLGLOBAL 0 16400# endif 16401#endif 16402 16403/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16404 find out it does not work in some platform. */ 16405#ifndef LT_DLLAZY_OR_NOW 16406# ifdef RTLD_LAZY 16407# define LT_DLLAZY_OR_NOW RTLD_LAZY 16408# else 16409# ifdef DL_LAZY 16410# define LT_DLLAZY_OR_NOW DL_LAZY 16411# else 16412# ifdef RTLD_NOW 16413# define LT_DLLAZY_OR_NOW RTLD_NOW 16414# else 16415# ifdef DL_NOW 16416# define LT_DLLAZY_OR_NOW DL_NOW 16417# else 16418# define LT_DLLAZY_OR_NOW 0 16419# endif 16420# endif 16421# endif 16422# endif 16423#endif 16424 16425/* When -fvisbility=hidden is used, assume the code has been annotated 16426 correspondingly for the symbols needed. */ 16427#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16428int fnord () __attribute__((visibility("default"))); 16429#endif 16430 16431int fnord () { return 42; } 16432int main () 16433{ 16434 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16435 int status = $lt_dlunknown; 16436 16437 if (self) 16438 { 16439 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16440 else 16441 { 16442 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16443 else puts (dlerror ()); 16444 } 16445 /* dlclose (self); */ 16446 } 16447 else 16448 puts (dlerror ()); 16449 16450 return status; 16451} 16452_LT_EOF 16453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16454 (eval $ac_link) 2>&5 16455 ac_status=$? 16456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16457 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 16458 (./conftest; exit; ) >&5 2>/dev/null 16459 lt_status=$? 16460 case x$lt_status in 16461 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 16462 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 16463 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 16464 esac 16465 else : 16466 # compilation failed 16467 lt_cv_dlopen_self_static=no 16468 fi 16469fi 16470rm -fr conftest* 16471 16472 16473fi 16474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 16475$as_echo "$lt_cv_dlopen_self_static" >&6; } 16476 fi 16477 16478 CPPFLAGS="$save_CPPFLAGS" 16479 LDFLAGS="$save_LDFLAGS" 16480 LIBS="$save_LIBS" 16481 ;; 16482 esac 16483 16484 case $lt_cv_dlopen_self in 16485 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 16486 *) enable_dlopen_self=unknown ;; 16487 esac 16488 16489 case $lt_cv_dlopen_self_static in 16490 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 16491 *) enable_dlopen_self_static=unknown ;; 16492 esac 16493fi 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511striplib= 16512old_striplib= 16513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 16514$as_echo_n "checking whether stripping libraries is possible... " >&6; } 16515if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 16516 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 16517 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16519$as_echo "yes" >&6; } 16520else 16521# FIXME - insert some real tests, host_os isn't really good enough 16522 case $host_os in 16523 darwin*) 16524 if test -n "$STRIP" ; then 16525 striplib="$STRIP -x" 16526 old_striplib="$STRIP -S" 16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16528$as_echo "yes" >&6; } 16529 else 16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16531$as_echo "no" >&6; } 16532 fi 16533 ;; 16534 *) 16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16536$as_echo "no" >&6; } 16537 ;; 16538 esac 16539fi 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 # Report which library types will actually be built 16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 16554$as_echo_n "checking if libtool supports shared libraries... " >&6; } 16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 16556$as_echo "$can_build_shared" >&6; } 16557 16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 16559$as_echo_n "checking whether to build shared libraries... " >&6; } 16560 test "$can_build_shared" = "no" && enable_shared=no 16561 16562 # On AIX, shared libraries and static libraries use the same namespace, and 16563 # are all built from PIC. 16564 case $host_os in 16565 aix3*) 16566 test "$enable_shared" = yes && enable_static=no 16567 if test -n "$RANLIB"; then 16568 archive_cmds="$archive_cmds~\$RANLIB \$lib" 16569 postinstall_cmds='$RANLIB $lib' 16570 fi 16571 ;; 16572 16573 aix[4-9]*) 16574 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 16575 test "$enable_shared" = yes && enable_static=no 16576 fi 16577 ;; 16578 esac 16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 16580$as_echo "$enable_shared" >&6; } 16581 16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 16583$as_echo_n "checking whether to build static libraries... " >&6; } 16584 # Make sure either enable_shared or enable_static is yes. 16585 test "$enable_shared" = yes || enable_static=yes 16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 16587$as_echo "$enable_static" >&6; } 16588 16589 16590 16591 16592fi 16593ac_ext=c 16594ac_cpp='$CPP $CPPFLAGS' 16595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16597ac_compiler_gnu=$ac_cv_c_compiler_gnu 16598 16599CC="$lt_save_CC" 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 ac_config_commands="$ac_config_commands libtool" 16616 16617 16618 16619 16620# Only expand once: 16621 16622 16623 16624# Checks for programs. 16625if test "x$CC" != xcc; then 16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 16627$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 16628else 16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 16630$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 16631fi 16632set dummy $CC; ac_cc=`$as_echo "$2" | 16633 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 16634if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 16635 $as_echo_n "(cached) " >&6 16636else 16637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16638/* end confdefs.h. */ 16639 16640int 16641main () 16642{ 16643 16644 ; 16645 return 0; 16646} 16647_ACEOF 16648# Make sure it works both with $CC and with simple cc. 16649# We do the test twice because some compilers refuse to overwrite an 16650# existing .o file with -o, though they will create one. 16651ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 16652rm -f conftest2.* 16653if { { case "(($ac_try" in 16654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16655 *) ac_try_echo=$ac_try;; 16656esac 16657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16658$as_echo "$ac_try_echo"; } >&5 16659 (eval "$ac_try") 2>&5 16660 ac_status=$? 16661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16662 test $ac_status = 0; } && 16663 test -f conftest2.$ac_objext && { { case "(($ac_try" in 16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16665 *) ac_try_echo=$ac_try;; 16666esac 16667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16668$as_echo "$ac_try_echo"; } >&5 16669 (eval "$ac_try") 2>&5 16670 ac_status=$? 16671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16672 test $ac_status = 0; }; 16673then 16674 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 16675 if test "x$CC" != xcc; then 16676 # Test first that cc exists at all. 16677 if { ac_try='cc -c conftest.$ac_ext >&5' 16678 { { case "(($ac_try" in 16679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16680 *) ac_try_echo=$ac_try;; 16681esac 16682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16683$as_echo "$ac_try_echo"; } >&5 16684 (eval "$ac_try") 2>&5 16685 ac_status=$? 16686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16687 test $ac_status = 0; }; }; then 16688 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 16689 rm -f conftest2.* 16690 if { { case "(($ac_try" in 16691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16692 *) ac_try_echo=$ac_try;; 16693esac 16694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16695$as_echo "$ac_try_echo"; } >&5 16696 (eval "$ac_try") 2>&5 16697 ac_status=$? 16698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16699 test $ac_status = 0; } && 16700 test -f conftest2.$ac_objext && { { case "(($ac_try" in 16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16702 *) ac_try_echo=$ac_try;; 16703esac 16704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16705$as_echo "$ac_try_echo"; } >&5 16706 (eval "$ac_try") 2>&5 16707 ac_status=$? 16708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16709 test $ac_status = 0; }; 16710 then 16711 # cc works too. 16712 : 16713 else 16714 # cc exists but doesn't like -o. 16715 eval ac_cv_prog_cc_${ac_cc}_c_o=no 16716 fi 16717 fi 16718 fi 16719else 16720 eval ac_cv_prog_cc_${ac_cc}_c_o=no 16721fi 16722rm -f core conftest* 16723 16724fi 16725if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16727$as_echo "yes" >&6; } 16728else 16729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16730$as_echo "no" >&6; } 16731 16732$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 16733 16734fi 16735 16736# FIXME: we rely on the cache variable name because 16737# there is no other way. 16738set dummy $CC 16739am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 16740eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 16741if test "$am_t" != yes; then 16742 # Losing compiler, so override with the script. 16743 # FIXME: It is wrong to rewrite CC. 16744 # But if we don't then we get into trouble of one sort or another. 16745 # A longer-term fix would be to have automake use am__CC in this case, 16746 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 16747 CC="$am_aux_dir/compile $CC" 16748fi 16749 16750 16751 16752 16753 16754# Define a configure option for an alternate module directory 16755 16756# Check whether --with-xorg-module-dir was given. 16757if test "${with_xorg_module_dir+set}" = set; then : 16758 withval=$with_xorg_module_dir; moduledir="$withval" 16759else 16760 moduledir="$libdir/xorg/modules" 16761fi 16762 16763 16764# Define a configure option to build the vmwarectrl client tool 16765# Check whether --enable-vmwarectrl-client was given. 16766if test "${enable_vmwarectrl_client+set}" = set; then : 16767 enableval=$enable_vmwarectrl_client; VMWARECTRL=$enableval 16768else 16769 VMWARECTRL=no 16770fi 16771 16772 if test "x$VMWARECTRL" = xyes; then 16773 BUILD_VMWARECTRL_TRUE= 16774 BUILD_VMWARECTRL_FALSE='#' 16775else 16776 BUILD_VMWARECTRL_TRUE='#' 16777 BUILD_VMWARECTRL_FALSE= 16778fi 16779 16780 16781# Store the list of server defined optional extensions in REQUIRED_MODULES 16782 16783 16784 SAVE_CFLAGS="$CFLAGS" 16785 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 16786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16787/* end confdefs.h. */ 16788 16789#include "xorg-server.h" 16790#if !defined RANDR 16791#error RANDR not defined 16792#endif 16793 16794int 16795main () 16796{ 16797 16798 ; 16799 return 0; 16800} 16801_ACEOF 16802if ac_fn_c_try_compile "$LINENO"; then : 16803 _EXT_CHECK=yes 16804else 16805 _EXT_CHECK=no 16806fi 16807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16808 CFLAGS="$SAVE_CFLAGS" 16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 16810$as_echo_n "checking if RANDR is defined... " >&6; } 16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 16812$as_echo "$_EXT_CHECK" >&6; } 16813 if test "$_EXT_CHECK" != no; then 16814 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 16815 fi 16816 16817 16818 16819 SAVE_CFLAGS="$CFLAGS" 16820 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 16821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16822/* end confdefs.h. */ 16823 16824#include "xorg-server.h" 16825#if !defined RENDER 16826#error RENDER not defined 16827#endif 16828 16829int 16830main () 16831{ 16832 16833 ; 16834 return 0; 16835} 16836_ACEOF 16837if ac_fn_c_try_compile "$LINENO"; then : 16838 _EXT_CHECK=yes 16839else 16840 _EXT_CHECK=no 16841fi 16842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16843 CFLAGS="$SAVE_CFLAGS" 16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 16845$as_echo_n "checking if RENDER is defined... " >&6; } 16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 16847$as_echo "$_EXT_CHECK" >&6; } 16848 if test "$_EXT_CHECK" != no; then 16849 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 16850 fi 16851 16852 16853 16854 SAVE_CFLAGS="$CFLAGS" 16855 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16857/* end confdefs.h. */ 16858 16859#include "xorg-server.h" 16860#if !defined DPMSExtension 16861#error DPMSExtension not defined 16862#endif 16863 16864int 16865main () 16866{ 16867 16868 ; 16869 return 0; 16870} 16871_ACEOF 16872if ac_fn_c_try_compile "$LINENO"; then : 16873 _EXT_CHECK=yes 16874else 16875 _EXT_CHECK=no 16876fi 16877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16878 CFLAGS="$SAVE_CFLAGS" 16879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 16880$as_echo_n "checking if DPMSExtension is defined... " >&6; } 16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 16882$as_echo "$_EXT_CHECK" >&6; } 16883 if test "$_EXT_CHECK" != no; then 16884 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 16885 fi 16886 16887 16888 16889 SAVE_CFLAGS="$CFLAGS" 16890 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 16891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16892/* end confdefs.h. */ 16893 16894#include "xorg-server.h" 16895#if !defined XINERAMA 16896#error XINERAMA not defined 16897#endif 16898 16899int 16900main () 16901{ 16902 16903 ; 16904 return 0; 16905} 16906_ACEOF 16907if ac_fn_c_try_compile "$LINENO"; then : 16908 _EXT_CHECK=yes 16909else 16910 _EXT_CHECK=no 16911fi 16912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16913 CFLAGS="$SAVE_CFLAGS" 16914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XINERAMA is defined" >&5 16915$as_echo_n "checking if XINERAMA is defined... " >&6; } 16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 16917$as_echo "$_EXT_CHECK" >&6; } 16918 if test "$_EXT_CHECK" != no; then 16919 REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto" 16920 fi 16921 16922 16923 16924 SAVE_CFLAGS="$CFLAGS" 16925 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 16926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16927/* end confdefs.h. */ 16928 16929#include "xorg-server.h" 16930#if !defined XV 16931#error XV not defined 16932#endif 16933 16934int 16935main () 16936{ 16937 16938 ; 16939 return 0; 16940} 16941_ACEOF 16942if ac_fn_c_try_compile "$LINENO"; then : 16943 _EXT_CHECK=yes 16944else 16945 _EXT_CHECK=no 16946fi 16947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16948 CFLAGS="$SAVE_CFLAGS" 16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 16950$as_echo_n "checking if XV is defined... " >&6; } 16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 16952$as_echo "$_EXT_CHECK" >&6; } 16953 if test "$_EXT_CHECK" != no; then 16954 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 16955 fi 16956 16957 16958# Obtain compiler/linker options for the driver dependencies 16959 16960pkg_failed=no 16961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 16962$as_echo_n "checking for XORG... " >&6; } 16963 16964if test -n "$XORG_CFLAGS"; then 16965 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 16966 elif test -n "$PKG_CONFIG"; then 16967 if test -n "$PKG_CONFIG" && \ 16968 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 16969 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5 16970 ac_status=$? 16971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16972 test $ac_status = 0; }; then 16973 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 16974else 16975 pkg_failed=yes 16976fi 16977 else 16978 pkg_failed=untried 16979fi 16980if test -n "$XORG_LIBS"; then 16981 pkg_cv_XORG_LIBS="$XORG_LIBS" 16982 elif test -n "$PKG_CONFIG"; then 16983 if test -n "$PKG_CONFIG" && \ 16984 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 16985 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5 16986 ac_status=$? 16987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16988 test $ac_status = 0; }; then 16989 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 16990else 16991 pkg_failed=yes 16992fi 16993 else 16994 pkg_failed=untried 16995fi 16996 16997 16998 16999if test $pkg_failed = yes; then 17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17001$as_echo "no" >&6; } 17002 17003if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17004 _pkg_short_errors_supported=yes 17005else 17006 _pkg_short_errors_supported=no 17007fi 17008 if test $_pkg_short_errors_supported = yes; then 17009 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>&1` 17010 else 17011 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>&1` 17012 fi 17013 # Put the nasty error message in config.log where it belongs 17014 echo "$XORG_PKG_ERRORS" >&5 17015 17016 as_fn_error $? "Package requirements (xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES) were not met: 17017 17018$XORG_PKG_ERRORS 17019 17020Consider adjusting the PKG_CONFIG_PATH environment variable if you 17021installed software in a non-standard prefix. 17022 17023Alternatively, you may set the environment variables XORG_CFLAGS 17024and XORG_LIBS to avoid the need to call pkg-config. 17025See the pkg-config man page for more details." "$LINENO" 5 17026 17027elif test $pkg_failed = untried; then 17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17029$as_echo "no" >&6; } 17030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17032as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17033is in your PATH or set the PKG_CONFIG environment variable to the full 17034path to pkg-config. 17035 17036Alternatively, you may set the environment variables XORG_CFLAGS 17037and XORG_LIBS to avoid the need to call pkg-config. 17038See the pkg-config man page for more details. 17039 17040To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17041See \`config.log' for more details" "$LINENO" 5; } 17042 17043else 17044 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 17045 XORG_LIBS=$pkg_cv_XORG_LIBS 17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17047$as_echo "yes" >&6; } 17048 17049fi 17050if test -n "$PKG_CONFIG" && \ 17051 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0\""; } >&5 17052 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0") 2>&5 17053 ac_status=$? 17054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17055 test $ac_status = 0; }; then 17056 17057$as_echo "#define HAVE_XORG_SERVER_1_1_0 1" >>confdefs.h 17058 17059fi 17060 17061if test -n "$PKG_CONFIG" && \ 17062 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.0\""; } >&5 17063 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.0") 2>&5 17064 ac_status=$? 17065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17066 test $ac_status = 0; }; then 17067 17068$as_echo "#define HAVE_XORG_SERVER_1_2_0 1" >>confdefs.h 17069 17070fi 17071 17072if test -n "$PKG_CONFIG" && \ 17073 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4.99\""; } >&5 17074 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4.99") 2>&5 17075 ac_status=$? 17076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17077 test $ac_status = 0; }; then 17078 17079$as_echo "#define HAVE_XORG_SERVER_1_5_0 1" >>confdefs.h 17080 17081fi 17082 17083if test -n "$PKG_CONFIG" && \ 17084 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7.0\""; } >&5 17085 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7.0") 2>&5 17086 ac_status=$? 17087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17088 test $ac_status = 0; }; then 17089 17090$as_echo "#define HAVE_XORG_SERVER_1_7_0 1" >>confdefs.h 17091 17092 BUILD_VMWGFX=yes 17093else 17094 BUILD_VMWGFX=no 17095fi 17096 17097if test -n "$PKG_CONFIG" && \ 17098 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.12.0\""; } >&5 17099 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.12.0") 2>&5 17100 ac_status=$? 17101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17102 test $ac_status = 0; }; then 17103 17104$as_echo "#define HAVE_XORG_SERVER_1_12_0 1" >>confdefs.h 17105 17106fi 17107 17108# Obtain compiler/linker options for the vmwarectrl client tool 17109 17110pkg_failed=no 17111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 17112$as_echo_n "checking for X11... " >&6; } 17113 17114if test -n "$X11_CFLAGS"; then 17115 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 17116 elif test -n "$PKG_CONFIG"; then 17117 if test -n "$PKG_CONFIG" && \ 17118 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext\""; } >&5 17119 ($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5 17120 ac_status=$? 17121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17122 test $ac_status = 0; }; then 17123 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 xext" 2>/dev/null` 17124else 17125 pkg_failed=yes 17126fi 17127 else 17128 pkg_failed=untried 17129fi 17130if test -n "$X11_LIBS"; then 17131 pkg_cv_X11_LIBS="$X11_LIBS" 17132 elif test -n "$PKG_CONFIG"; then 17133 if test -n "$PKG_CONFIG" && \ 17134 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext\""; } >&5 17135 ($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5 17136 ac_status=$? 17137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17138 test $ac_status = 0; }; then 17139 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 xext" 2>/dev/null` 17140else 17141 pkg_failed=yes 17142fi 17143 else 17144 pkg_failed=untried 17145fi 17146 17147 17148 17149if test $pkg_failed = yes; then 17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17151$as_echo "no" >&6; } 17152 17153if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17154 _pkg_short_errors_supported=yes 17155else 17156 _pkg_short_errors_supported=no 17157fi 17158 if test $_pkg_short_errors_supported = yes; then 17159 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext" 2>&1` 17160 else 17161 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext" 2>&1` 17162 fi 17163 # Put the nasty error message in config.log where it belongs 17164 echo "$X11_PKG_ERRORS" >&5 17165 17166 as_fn_error $? "Package requirements (x11 xext) were not met: 17167 17168$X11_PKG_ERRORS 17169 17170Consider adjusting the PKG_CONFIG_PATH environment variable if you 17171installed software in a non-standard prefix. 17172 17173Alternatively, you may set the environment variables X11_CFLAGS 17174and X11_LIBS to avoid the need to call pkg-config. 17175See the pkg-config man page for more details." "$LINENO" 5 17176 17177elif test $pkg_failed = untried; then 17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17179$as_echo "no" >&6; } 17180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17182as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17183is in your PATH or set the PKG_CONFIG environment variable to the full 17184path to pkg-config. 17185 17186Alternatively, you may set the environment variables X11_CFLAGS 17187and X11_LIBS to avoid the need to call pkg-config. 17188See the pkg-config man page for more details. 17189 17190To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17191See \`config.log' for more details" "$LINENO" 5; } 17192 17193else 17194 X11_CFLAGS=$pkg_cv_X11_CFLAGS 17195 X11_LIBS=$pkg_cv_X11_LIBS 17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17197$as_echo "yes" >&6; } 17198 17199fi 17200 17201# Checks for libraries. 17202 17203save_CFLAGS="$CFLAGS" 17204CFLAGS="$XORG_CFLAGS" 17205ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 17206" 17207if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 17208 XSERVER_LIBPCIACCESS=yes 17209else 17210 XSERVER_LIBPCIACCESS=no 17211fi 17212 17213CFLAGS="$save_CFLAGS" 17214 17215if test x$XSERVER_LIBPCIACCESS = xyes; then 17216 17217pkg_failed=no 17218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 17219$as_echo_n "checking for PCIACCESS... " >&6; } 17220 17221if test -n "$PCIACCESS_CFLAGS"; then 17222 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 17223 elif test -n "$PKG_CONFIG"; then 17224 if test -n "$PKG_CONFIG" && \ 17225 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 17226 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 17227 ac_status=$? 17228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17229 test $ac_status = 0; }; then 17230 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 17231else 17232 pkg_failed=yes 17233fi 17234 else 17235 pkg_failed=untried 17236fi 17237if test -n "$PCIACCESS_LIBS"; then 17238 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 17239 elif test -n "$PKG_CONFIG"; then 17240 if test -n "$PKG_CONFIG" && \ 17241 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 17242 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 17243 ac_status=$? 17244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17245 test $ac_status = 0; }; then 17246 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 17247else 17248 pkg_failed=yes 17249fi 17250 else 17251 pkg_failed=untried 17252fi 17253 17254 17255 17256if test $pkg_failed = yes; then 17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17258$as_echo "no" >&6; } 17259 17260if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17261 _pkg_short_errors_supported=yes 17262else 17263 _pkg_short_errors_supported=no 17264fi 17265 if test $_pkg_short_errors_supported = yes; then 17266 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 17267 else 17268 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 17269 fi 17270 # Put the nasty error message in config.log where it belongs 17271 echo "$PCIACCESS_PKG_ERRORS" >&5 17272 17273 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 17274 17275$PCIACCESS_PKG_ERRORS 17276 17277Consider adjusting the PKG_CONFIG_PATH environment variable if you 17278installed software in a non-standard prefix. 17279 17280Alternatively, you may set the environment variables PCIACCESS_CFLAGS 17281and PCIACCESS_LIBS to avoid the need to call pkg-config. 17282See the pkg-config man page for more details." "$LINENO" 5 17283 17284elif test $pkg_failed = untried; then 17285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17286$as_echo "no" >&6; } 17287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17289as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17290is in your PATH or set the PKG_CONFIG environment variable to the full 17291path to pkg-config. 17292 17293Alternatively, you may set the environment variables PCIACCESS_CFLAGS 17294and PCIACCESS_LIBS to avoid the need to call pkg-config. 17295See the pkg-config man page for more details. 17296 17297To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17298See \`config.log' for more details" "$LINENO" 5; } 17299 17300else 17301 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 17302 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17304$as_echo "yes" >&6; } 17305 17306fi 17307fi 17308 17309 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 17310 XSERVER_LIBPCIACCESS_TRUE= 17311 XSERVER_LIBPCIACCESS_FALSE='#' 17312else 17313 XSERVER_LIBPCIACCESS_TRUE='#' 17314 XSERVER_LIBPCIACCESS_FALSE= 17315fi 17316 17317 17318 17319 17320if test x$BUILD_VMWGFX = xyes; then 17321 17322pkg_failed=no 17323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5 17324$as_echo_n "checking for LIBDRM... " >&6; } 17325 17326if test -n "$LIBDRM_CFLAGS"; then 17327 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 17328 elif test -n "$PKG_CONFIG"; then 17329 if test -n "$PKG_CONFIG" && \ 17330 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5 17331 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5 17332 ac_status=$? 17333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17334 test $ac_status = 0; }; then 17335 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm" 2>/dev/null` 17336else 17337 pkg_failed=yes 17338fi 17339 else 17340 pkg_failed=untried 17341fi 17342if test -n "$LIBDRM_LIBS"; then 17343 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 17344 elif test -n "$PKG_CONFIG"; then 17345 if test -n "$PKG_CONFIG" && \ 17346 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5 17347 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5 17348 ac_status=$? 17349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17350 test $ac_status = 0; }; then 17351 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm" 2>/dev/null` 17352else 17353 pkg_failed=yes 17354fi 17355 else 17356 pkg_failed=untried 17357fi 17358 17359 17360 17361if test $pkg_failed = yes; then 17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17363$as_echo "no" >&6; } 17364 17365if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17366 _pkg_short_errors_supported=yes 17367else 17368 _pkg_short_errors_supported=no 17369fi 17370 if test $_pkg_short_errors_supported = yes; then 17371 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm" 2>&1` 17372 else 17373 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm" 2>&1` 17374 fi 17375 # Put the nasty error message in config.log where it belongs 17376 echo "$LIBDRM_PKG_ERRORS" >&5 17377 17378 BUILD_VMWGFX=no 17379elif test $pkg_failed = untried; then 17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17381$as_echo "no" >&6; } 17382 BUILD_VMWGFX=no 17383else 17384 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 17385 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17387$as_echo "yes" >&6; } 17388 17389fi 17390fi 17391if test x$BUILD_VMWGFX = xyes; then 17392# 17393# Early versions of mesa 10 forgot to bump the XA major version number in 17394# the xa_tracker.h header 17395# 17396 17397pkg_failed=no 17398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATRACKER" >&5 17399$as_echo_n "checking for XATRACKER... " >&6; } 17400 17401if test -n "$XATRACKER_CFLAGS"; then 17402 pkg_cv_XATRACKER_CFLAGS="$XATRACKER_CFLAGS" 17403 elif test -n "$PKG_CONFIG"; then 17404 if test -n "$PKG_CONFIG" && \ 17405 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xatracker >= 0.4.0\""; } >&5 17406 ($PKG_CONFIG --exists --print-errors "xatracker >= 0.4.0") 2>&5 17407 ac_status=$? 17408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17409 test $ac_status = 0; }; then 17410 pkg_cv_XATRACKER_CFLAGS=`$PKG_CONFIG --cflags "xatracker >= 0.4.0" 2>/dev/null` 17411else 17412 pkg_failed=yes 17413fi 17414 else 17415 pkg_failed=untried 17416fi 17417if test -n "$XATRACKER_LIBS"; then 17418 pkg_cv_XATRACKER_LIBS="$XATRACKER_LIBS" 17419 elif test -n "$PKG_CONFIG"; then 17420 if test -n "$PKG_CONFIG" && \ 17421 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xatracker >= 0.4.0\""; } >&5 17422 ($PKG_CONFIG --exists --print-errors "xatracker >= 0.4.0") 2>&5 17423 ac_status=$? 17424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17425 test $ac_status = 0; }; then 17426 pkg_cv_XATRACKER_LIBS=`$PKG_CONFIG --libs "xatracker >= 0.4.0" 2>/dev/null` 17427else 17428 pkg_failed=yes 17429fi 17430 else 17431 pkg_failed=untried 17432fi 17433 17434 17435 17436if test $pkg_failed = yes; then 17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17438$as_echo "no" >&6; } 17439 17440if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17441 _pkg_short_errors_supported=yes 17442else 17443 _pkg_short_errors_supported=no 17444fi 17445 if test $_pkg_short_errors_supported = yes; then 17446 XATRACKER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xatracker >= 0.4.0" 2>&1` 17447 else 17448 XATRACKER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xatracker >= 0.4.0" 2>&1` 17449 fi 17450 # Put the nasty error message in config.log where it belongs 17451 echo "$XATRACKER_PKG_ERRORS" >&5 17452 17453 BUILD_VMWGFX=no 17454elif test $pkg_failed = untried; then 17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17456$as_echo "no" >&6; } 17457 BUILD_VMWGFX=no 17458else 17459 XATRACKER_CFLAGS=$pkg_cv_XATRACKER_CFLAGS 17460 XATRACKER_LIBS=$pkg_cv_XATRACKER_LIBS 17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17462$as_echo "yes" >&6; } 17463 if test -n "$PKG_CONFIG" && \ 17464 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xatracker = 2.0.0\""; } >&5 17465 ($PKG_CONFIG --exists --print-errors "xatracker = 2.0.0") 2>&5 17466 ac_status=$? 17467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17468 test $ac_status = 0; }; then 17469 17470$as_echo "#define HAVE_XA_2 1" >>confdefs.h 17471 17472fi 17473fi 17474# 17475# Check for prime. 17476# 17477 if test -n "$PKG_CONFIG" && \ 17478 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.38\""; } >&5 17479 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.38") 2>&5 17480 ac_status=$? 17481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17482 test $ac_status = 0; }; then 17483 17484$as_echo "#define HAVE_LIBDRM_2_4_38 1" >>confdefs.h 17485 17486fi 17487fi 17488 17489DRIVER_NAME=vmware 17490 17491 17492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Kernel Mode Setting and 3D" >&5 17493$as_echo_n "checking whether to build Kernel Mode Setting and 3D... " >&6; } 17494if test x$BUILD_VMWGFX = xyes; then 17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17496$as_echo "yes" >&6; } 17497 17498$as_echo "#define BUILD_VMWGFX 1" >>confdefs.h 17499 17500else 17501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17502$as_echo "no" >&6; } 17503fi 17504 17505 if test "x$BUILD_VMWGFX" = xyes; then 17506 BUILD_VMWGFX_TRUE= 17507 BUILD_VMWGFX_FALSE='#' 17508else 17509 BUILD_VMWGFX_TRUE='#' 17510 BUILD_VMWGFX_FALSE= 17511fi 17512 17513 17514ac_config_files="$ac_config_files Makefile man/Makefile saa/Makefile vmwgfx/Makefile src/Makefile vmwarectrl/Makefile" 17515 17516 17517cat >confcache <<\_ACEOF 17518# This file is a shell script that caches the results of configure 17519# tests run on this system so they can be shared between configure 17520# scripts and configure runs, see configure's option --config-cache. 17521# It is not useful on other systems. If it contains results you don't 17522# want to keep, you may remove or edit it. 17523# 17524# config.status only pays attention to the cache file if you give it 17525# the --recheck option to rerun configure. 17526# 17527# `ac_cv_env_foo' variables (set or unset) will be overridden when 17528# loading this file, other *unset* `ac_cv_foo' will be assigned the 17529# following values. 17530 17531_ACEOF 17532 17533# The following way of writing the cache mishandles newlines in values, 17534# but we know of no workaround that is simple, portable, and efficient. 17535# So, we kill variables containing newlines. 17536# Ultrix sh set writes to stderr and can't be redirected directly, 17537# and sets the high bit in the cache file unless we assign to the vars. 17538( 17539 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17540 eval ac_val=\$$ac_var 17541 case $ac_val in #( 17542 *${as_nl}*) 17543 case $ac_var in #( 17544 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17545$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17546 esac 17547 case $ac_var in #( 17548 _ | IFS | as_nl) ;; #( 17549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17550 *) { eval $ac_var=; unset $ac_var;} ;; 17551 esac ;; 17552 esac 17553 done 17554 17555 (set) 2>&1 | 17556 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17557 *${as_nl}ac_space=\ *) 17558 # `set' does not quote correctly, so add quotes: double-quote 17559 # substitution turns \\\\ into \\, and sed turns \\ into \. 17560 sed -n \ 17561 "s/'/'\\\\''/g; 17562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17563 ;; #( 17564 *) 17565 # `set' quotes correctly as required by POSIX, so do not add quotes. 17566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17567 ;; 17568 esac | 17569 sort 17570) | 17571 sed ' 17572 /^ac_cv_env_/b end 17573 t clear 17574 :clear 17575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17576 t end 17577 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17578 :end' >>confcache 17579if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17580 if test -w "$cache_file"; then 17581 if test "x$cache_file" != "x/dev/null"; then 17582 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17583$as_echo "$as_me: updating cache $cache_file" >&6;} 17584 if test ! -f "$cache_file" || test -h "$cache_file"; then 17585 cat confcache >"$cache_file" 17586 else 17587 case $cache_file in #( 17588 */* | ?:*) 17589 mv -f confcache "$cache_file"$$ && 17590 mv -f "$cache_file"$$ "$cache_file" ;; #( 17591 *) 17592 mv -f confcache "$cache_file" ;; 17593 esac 17594 fi 17595 fi 17596 else 17597 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17598$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17599 fi 17600fi 17601rm -f confcache 17602 17603test "x$prefix" = xNONE && prefix=$ac_default_prefix 17604# Let make expand exec_prefix. 17605test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17606 17607DEFS=-DHAVE_CONFIG_H 17608 17609ac_libobjs= 17610ac_ltlibobjs= 17611U= 17612for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17613 # 1. Remove the extension, and $U if already installed. 17614 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17615 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17616 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17617 # will be set to the directory where LIBOBJS objects are built. 17618 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17619 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17620done 17621LIBOBJS=$ac_libobjs 17622 17623LTLIBOBJS=$ac_ltlibobjs 17624 17625 17626if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17627 as_fn_error $? "conditional \"AMDEP\" was never defined. 17628Usually this means the macro was only invoked conditionally." "$LINENO" 5 17629fi 17630if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17631 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17632Usually this means the macro was only invoked conditionally." "$LINENO" 5 17633fi 17634 if test -n "$EXEEXT"; then 17635 am__EXEEXT_TRUE= 17636 am__EXEEXT_FALSE='#' 17637else 17638 am__EXEEXT_TRUE='#' 17639 am__EXEEXT_FALSE= 17640fi 17641 17642if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17643 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17644Usually this means the macro was only invoked conditionally." "$LINENO" 5 17645fi 17646if test -z "${BUILD_VMWARECTRL_TRUE}" && test -z "${BUILD_VMWARECTRL_FALSE}"; then 17647 as_fn_error $? "conditional \"BUILD_VMWARECTRL\" was never defined. 17648Usually this means the macro was only invoked conditionally." "$LINENO" 5 17649fi 17650if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 17651 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 17652Usually this means the macro was only invoked conditionally." "$LINENO" 5 17653fi 17654if test -z "${BUILD_VMWGFX_TRUE}" && test -z "${BUILD_VMWGFX_FALSE}"; then 17655 as_fn_error $? "conditional \"BUILD_VMWGFX\" was never defined. 17656Usually this means the macro was only invoked conditionally." "$LINENO" 5 17657fi 17658 17659: "${CONFIG_STATUS=./config.status}" 17660ac_write_fail=0 17661ac_clean_files_save=$ac_clean_files 17662ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17663{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17664$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17665as_write_fail=0 17666cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17667#! $SHELL 17668# Generated by $as_me. 17669# Run this file to recreate the current configuration. 17670# Compiler output produced by configure, useful for debugging 17671# configure, is in config.log if it exists. 17672 17673debug=false 17674ac_cs_recheck=false 17675ac_cs_silent=false 17676 17677SHELL=\${CONFIG_SHELL-$SHELL} 17678export SHELL 17679_ASEOF 17680cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17681## -------------------- ## 17682## M4sh Initialization. ## 17683## -------------------- ## 17684 17685# Be more Bourne compatible 17686DUALCASE=1; export DUALCASE # for MKS sh 17687if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17688 emulate sh 17689 NULLCMD=: 17690 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17691 # is contrary to our usage. Disable this feature. 17692 alias -g '${1+"$@"}'='"$@"' 17693 setopt NO_GLOB_SUBST 17694else 17695 case `(set -o) 2>/dev/null` in #( 17696 *posix*) : 17697 set -o posix ;; #( 17698 *) : 17699 ;; 17700esac 17701fi 17702 17703 17704as_nl=' 17705' 17706export as_nl 17707# Printing a long string crashes Solaris 7 /usr/bin/printf. 17708as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17709as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17710as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17711# Prefer a ksh shell builtin over an external printf program on Solaris, 17712# but without wasting forks for bash or zsh. 17713if test -z "$BASH_VERSION$ZSH_VERSION" \ 17714 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17715 as_echo='print -r --' 17716 as_echo_n='print -rn --' 17717elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17718 as_echo='printf %s\n' 17719 as_echo_n='printf %s' 17720else 17721 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17722 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17723 as_echo_n='/usr/ucb/echo -n' 17724 else 17725 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17726 as_echo_n_body='eval 17727 arg=$1; 17728 case $arg in #( 17729 *"$as_nl"*) 17730 expr "X$arg" : "X\\(.*\\)$as_nl"; 17731 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17732 esac; 17733 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17734 ' 17735 export as_echo_n_body 17736 as_echo_n='sh -c $as_echo_n_body as_echo' 17737 fi 17738 export as_echo_body 17739 as_echo='sh -c $as_echo_body as_echo' 17740fi 17741 17742# The user is always right. 17743if test "${PATH_SEPARATOR+set}" != set; then 17744 PATH_SEPARATOR=: 17745 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17746 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17747 PATH_SEPARATOR=';' 17748 } 17749fi 17750 17751 17752# IFS 17753# We need space, tab and new line, in precisely that order. Quoting is 17754# there to prevent editors from complaining about space-tab. 17755# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17756# splitting by setting IFS to empty value.) 17757IFS=" "" $as_nl" 17758 17759# Find who we are. Look in the path if we contain no directory separator. 17760as_myself= 17761case $0 in #(( 17762 *[\\/]* ) as_myself=$0 ;; 17763 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17764for as_dir in $PATH 17765do 17766 IFS=$as_save_IFS 17767 test -z "$as_dir" && as_dir=. 17768 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17769 done 17770IFS=$as_save_IFS 17771 17772 ;; 17773esac 17774# We did not find ourselves, most probably we were run as `sh COMMAND' 17775# in which case we are not to be found in the path. 17776if test "x$as_myself" = x; then 17777 as_myself=$0 17778fi 17779if test ! -f "$as_myself"; then 17780 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17781 exit 1 17782fi 17783 17784# Unset variables that we do not need and which cause bugs (e.g. in 17785# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17786# suppresses any "Segmentation fault" message there. '((' could 17787# trigger a bug in pdksh 5.2.14. 17788for as_var in BASH_ENV ENV MAIL MAILPATH 17789do eval test x\${$as_var+set} = xset \ 17790 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17791done 17792PS1='$ ' 17793PS2='> ' 17794PS4='+ ' 17795 17796# NLS nuisances. 17797LC_ALL=C 17798export LC_ALL 17799LANGUAGE=C 17800export LANGUAGE 17801 17802# CDPATH. 17803(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17804 17805 17806# as_fn_error STATUS ERROR [LINENO LOG_FD] 17807# ---------------------------------------- 17808# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17809# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17810# script with STATUS, using 1 if that was 0. 17811as_fn_error () 17812{ 17813 as_status=$1; test $as_status -eq 0 && as_status=1 17814 if test "$4"; then 17815 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17816 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17817 fi 17818 $as_echo "$as_me: error: $2" >&2 17819 as_fn_exit $as_status 17820} # as_fn_error 17821 17822 17823# as_fn_set_status STATUS 17824# ----------------------- 17825# Set $? to STATUS, without forking. 17826as_fn_set_status () 17827{ 17828 return $1 17829} # as_fn_set_status 17830 17831# as_fn_exit STATUS 17832# ----------------- 17833# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17834as_fn_exit () 17835{ 17836 set +e 17837 as_fn_set_status $1 17838 exit $1 17839} # as_fn_exit 17840 17841# as_fn_unset VAR 17842# --------------- 17843# Portably unset VAR. 17844as_fn_unset () 17845{ 17846 { eval $1=; unset $1;} 17847} 17848as_unset=as_fn_unset 17849# as_fn_append VAR VALUE 17850# ---------------------- 17851# Append the text in VALUE to the end of the definition contained in VAR. Take 17852# advantage of any shell optimizations that allow amortized linear growth over 17853# repeated appends, instead of the typical quadratic growth present in naive 17854# implementations. 17855if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17856 eval 'as_fn_append () 17857 { 17858 eval $1+=\$2 17859 }' 17860else 17861 as_fn_append () 17862 { 17863 eval $1=\$$1\$2 17864 } 17865fi # as_fn_append 17866 17867# as_fn_arith ARG... 17868# ------------------ 17869# Perform arithmetic evaluation on the ARGs, and store the result in the 17870# global $as_val. Take advantage of shells that can avoid forks. The arguments 17871# must be portable across $(()) and expr. 17872if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17873 eval 'as_fn_arith () 17874 { 17875 as_val=$(( $* )) 17876 }' 17877else 17878 as_fn_arith () 17879 { 17880 as_val=`expr "$@" || test $? -eq 1` 17881 } 17882fi # as_fn_arith 17883 17884 17885if expr a : '\(a\)' >/dev/null 2>&1 && 17886 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17887 as_expr=expr 17888else 17889 as_expr=false 17890fi 17891 17892if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17893 as_basename=basename 17894else 17895 as_basename=false 17896fi 17897 17898if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17899 as_dirname=dirname 17900else 17901 as_dirname=false 17902fi 17903 17904as_me=`$as_basename -- "$0" || 17905$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17906 X"$0" : 'X\(//\)$' \| \ 17907 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17908$as_echo X/"$0" | 17909 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17910 s//\1/ 17911 q 17912 } 17913 /^X\/\(\/\/\)$/{ 17914 s//\1/ 17915 q 17916 } 17917 /^X\/\(\/\).*/{ 17918 s//\1/ 17919 q 17920 } 17921 s/.*/./; q'` 17922 17923# Avoid depending upon Character Ranges. 17924as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17925as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17926as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17927as_cr_digits='0123456789' 17928as_cr_alnum=$as_cr_Letters$as_cr_digits 17929 17930ECHO_C= ECHO_N= ECHO_T= 17931case `echo -n x` in #((((( 17932-n*) 17933 case `echo 'xy\c'` in 17934 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17935 xy) ECHO_C='\c';; 17936 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17937 ECHO_T=' ';; 17938 esac;; 17939*) 17940 ECHO_N='-n';; 17941esac 17942 17943rm -f conf$$ conf$$.exe conf$$.file 17944if test -d conf$$.dir; then 17945 rm -f conf$$.dir/conf$$.file 17946else 17947 rm -f conf$$.dir 17948 mkdir conf$$.dir 2>/dev/null 17949fi 17950if (echo >conf$$.file) 2>/dev/null; then 17951 if ln -s conf$$.file conf$$ 2>/dev/null; then 17952 as_ln_s='ln -s' 17953 # ... but there are two gotchas: 17954 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17955 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17956 # In both cases, we have to default to `cp -p'. 17957 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17958 as_ln_s='cp -p' 17959 elif ln conf$$.file conf$$ 2>/dev/null; then 17960 as_ln_s=ln 17961 else 17962 as_ln_s='cp -p' 17963 fi 17964else 17965 as_ln_s='cp -p' 17966fi 17967rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17968rmdir conf$$.dir 2>/dev/null 17969 17970 17971# as_fn_mkdir_p 17972# ------------- 17973# Create "$as_dir" as a directory, including parents if necessary. 17974as_fn_mkdir_p () 17975{ 17976 17977 case $as_dir in #( 17978 -*) as_dir=./$as_dir;; 17979 esac 17980 test -d "$as_dir" || eval $as_mkdir_p || { 17981 as_dirs= 17982 while :; do 17983 case $as_dir in #( 17984 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17985 *) as_qdir=$as_dir;; 17986 esac 17987 as_dirs="'$as_qdir' $as_dirs" 17988 as_dir=`$as_dirname -- "$as_dir" || 17989$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17990 X"$as_dir" : 'X\(//\)[^/]' \| \ 17991 X"$as_dir" : 'X\(//\)$' \| \ 17992 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17993$as_echo X"$as_dir" | 17994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17995 s//\1/ 17996 q 17997 } 17998 /^X\(\/\/\)[^/].*/{ 17999 s//\1/ 18000 q 18001 } 18002 /^X\(\/\/\)$/{ 18003 s//\1/ 18004 q 18005 } 18006 /^X\(\/\).*/{ 18007 s//\1/ 18008 q 18009 } 18010 s/.*/./; q'` 18011 test -d "$as_dir" && break 18012 done 18013 test -z "$as_dirs" || eval "mkdir $as_dirs" 18014 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18015 18016 18017} # as_fn_mkdir_p 18018if mkdir -p . 2>/dev/null; then 18019 as_mkdir_p='mkdir -p "$as_dir"' 18020else 18021 test -d ./-p && rmdir ./-p 18022 as_mkdir_p=false 18023fi 18024 18025if test -x / >/dev/null 2>&1; then 18026 as_test_x='test -x' 18027else 18028 if ls -dL / >/dev/null 2>&1; then 18029 as_ls_L_option=L 18030 else 18031 as_ls_L_option= 18032 fi 18033 as_test_x=' 18034 eval sh -c '\'' 18035 if test -d "$1"; then 18036 test -d "$1/."; 18037 else 18038 case $1 in #( 18039 -*)set "./$1";; 18040 esac; 18041 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18042 ???[sx]*):;;*)false;;esac;fi 18043 '\'' sh 18044 ' 18045fi 18046as_executable_p=$as_test_x 18047 18048# Sed expression to map a string onto a valid CPP name. 18049as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18050 18051# Sed expression to map a string onto a valid variable name. 18052as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18053 18054 18055exec 6>&1 18056## ----------------------------------- ## 18057## Main body of $CONFIG_STATUS script. ## 18058## ----------------------------------- ## 18059_ASEOF 18060test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18061 18062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18063# Save the log message, to keep $0 and so on meaningful, and to 18064# report actual input values of CONFIG_FILES etc. instead of their 18065# values after options handling. 18066ac_log=" 18067This file was extended by xf86-video-vmware $as_me 13.1.0, which was 18068generated by GNU Autoconf 2.68. Invocation command line was 18069 18070 CONFIG_FILES = $CONFIG_FILES 18071 CONFIG_HEADERS = $CONFIG_HEADERS 18072 CONFIG_LINKS = $CONFIG_LINKS 18073 CONFIG_COMMANDS = $CONFIG_COMMANDS 18074 $ $0 $@ 18075 18076on `(hostname || uname -n) 2>/dev/null | sed 1q` 18077" 18078 18079_ACEOF 18080 18081case $ac_config_files in *" 18082"*) set x $ac_config_files; shift; ac_config_files=$*;; 18083esac 18084 18085case $ac_config_headers in *" 18086"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18087esac 18088 18089 18090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18091# Files that config.status was made for. 18092config_files="$ac_config_files" 18093config_headers="$ac_config_headers" 18094config_commands="$ac_config_commands" 18095 18096_ACEOF 18097 18098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18099ac_cs_usage="\ 18100\`$as_me' instantiates files and other configuration actions 18101from templates according to the current configuration. Unless the files 18102and actions are specified as TAGs, all are instantiated by default. 18103 18104Usage: $0 [OPTION]... [TAG]... 18105 18106 -h, --help print this help, then exit 18107 -V, --version print version number and configuration settings, then exit 18108 --config print configuration, then exit 18109 -q, --quiet, --silent 18110 do not print progress messages 18111 -d, --debug don't remove temporary files 18112 --recheck update $as_me by reconfiguring in the same conditions 18113 --file=FILE[:TEMPLATE] 18114 instantiate the configuration file FILE 18115 --header=FILE[:TEMPLATE] 18116 instantiate the configuration header FILE 18117 18118Configuration files: 18119$config_files 18120 18121Configuration headers: 18122$config_headers 18123 18124Configuration commands: 18125$config_commands 18126 18127Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18128 18129_ACEOF 18130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18131ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18132ac_cs_version="\\ 18133xf86-video-vmware config.status 13.1.0 18134configured by $0, generated by GNU Autoconf 2.68, 18135 with options \\"\$ac_cs_config\\" 18136 18137Copyright (C) 2010 Free Software Foundation, Inc. 18138This config.status script is free software; the Free Software Foundation 18139gives unlimited permission to copy, distribute and modify it." 18140 18141ac_pwd='$ac_pwd' 18142srcdir='$srcdir' 18143INSTALL='$INSTALL' 18144MKDIR_P='$MKDIR_P' 18145AWK='$AWK' 18146test -n "\$AWK" || AWK=awk 18147_ACEOF 18148 18149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18150# The default lists apply if the user does not specify any file. 18151ac_need_defaults=: 18152while test $# != 0 18153do 18154 case $1 in 18155 --*=?*) 18156 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18157 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18158 ac_shift=: 18159 ;; 18160 --*=) 18161 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18162 ac_optarg= 18163 ac_shift=: 18164 ;; 18165 *) 18166 ac_option=$1 18167 ac_optarg=$2 18168 ac_shift=shift 18169 ;; 18170 esac 18171 18172 case $ac_option in 18173 # Handling of the options. 18174 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18175 ac_cs_recheck=: ;; 18176 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18177 $as_echo "$ac_cs_version"; exit ;; 18178 --config | --confi | --conf | --con | --co | --c ) 18179 $as_echo "$ac_cs_config"; exit ;; 18180 --debug | --debu | --deb | --de | --d | -d ) 18181 debug=: ;; 18182 --file | --fil | --fi | --f ) 18183 $ac_shift 18184 case $ac_optarg in 18185 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18186 '') as_fn_error $? "missing file argument" ;; 18187 esac 18188 as_fn_append CONFIG_FILES " '$ac_optarg'" 18189 ac_need_defaults=false;; 18190 --header | --heade | --head | --hea ) 18191 $ac_shift 18192 case $ac_optarg in 18193 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18194 esac 18195 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18196 ac_need_defaults=false;; 18197 --he | --h) 18198 # Conflict between --help and --header 18199 as_fn_error $? "ambiguous option: \`$1' 18200Try \`$0 --help' for more information.";; 18201 --help | --hel | -h ) 18202 $as_echo "$ac_cs_usage"; exit ;; 18203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18204 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18205 ac_cs_silent=: ;; 18206 18207 # This is an error. 18208 -*) as_fn_error $? "unrecognized option: \`$1' 18209Try \`$0 --help' for more information." ;; 18210 18211 *) as_fn_append ac_config_targets " $1" 18212 ac_need_defaults=false ;; 18213 18214 esac 18215 shift 18216done 18217 18218ac_configure_extra_args= 18219 18220if $ac_cs_silent; then 18221 exec 6>/dev/null 18222 ac_configure_extra_args="$ac_configure_extra_args --silent" 18223fi 18224 18225_ACEOF 18226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18227if \$ac_cs_recheck; then 18228 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18229 shift 18230 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18231 CONFIG_SHELL='$SHELL' 18232 export CONFIG_SHELL 18233 exec "\$@" 18234fi 18235 18236_ACEOF 18237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18238exec 5>>config.log 18239{ 18240 echo 18241 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18242## Running $as_me. ## 18243_ASBOX 18244 $as_echo "$ac_log" 18245} >&5 18246 18247_ACEOF 18248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18249# 18250# INIT-COMMANDS 18251# 18252AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18253 18254 18255# The HP-UX ksh and POSIX shell print the target directory to stdout 18256# if CDPATH is set. 18257(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18258 18259sed_quote_subst='$sed_quote_subst' 18260double_quote_subst='$double_quote_subst' 18261delay_variable_subst='$delay_variable_subst' 18262enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18263macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18264macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18265enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18266pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18267enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18268SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18269ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18270PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18271host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18272host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18273host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18274build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18275build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18276build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18277SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18278Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18279GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18280EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18281FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18282LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18283NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18284LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18285max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18286ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18287exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18288lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18289lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18290lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18291lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18292lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18293reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18294reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18295OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18296deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18297file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18298file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18299want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18300DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18301sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18302AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18303AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18304archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18305STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18306RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18307old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18308old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18309old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18310lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18311CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18312CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18313compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18314GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18315lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18316lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18317lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18318lt_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"`' 18319nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18320lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18321objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18322MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18323lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18324lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18325lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18326lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18327lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18328need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18329MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18330DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18331NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18332LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18333OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18334OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18335libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18336shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18337extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18338archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18339enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18340export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18341whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18342compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18343old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18344old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18345archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18346archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18347module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18348module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18349with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18350allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18351no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18352hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18353hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18354hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18355hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18356hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18357hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18358hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18359inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18360link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18361always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18362export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18363exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18364include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18365prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18366postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18367file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18368variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18369need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18370need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18371version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18372runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18373shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18374shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18375libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18376library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18377soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18378install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18379postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18380postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18381finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18382finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18383hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18384sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18385sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18386hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18387enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18388enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18389enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18390old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18391striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18392 18393LTCC='$LTCC' 18394LTCFLAGS='$LTCFLAGS' 18395compiler='$compiler_DEFAULT' 18396 18397# A function that is used when there is no print builtin or printf. 18398func_fallback_echo () 18399{ 18400 eval 'cat <<_LTECHO_EOF 18401\$1 18402_LTECHO_EOF' 18403} 18404 18405# Quote evaled strings. 18406for var in SHELL \ 18407ECHO \ 18408PATH_SEPARATOR \ 18409SED \ 18410GREP \ 18411EGREP \ 18412FGREP \ 18413LD \ 18414NM \ 18415LN_S \ 18416lt_SP2NL \ 18417lt_NL2SP \ 18418reload_flag \ 18419OBJDUMP \ 18420deplibs_check_method \ 18421file_magic_cmd \ 18422file_magic_glob \ 18423want_nocaseglob \ 18424DLLTOOL \ 18425sharedlib_from_linklib_cmd \ 18426AR \ 18427AR_FLAGS \ 18428archiver_list_spec \ 18429STRIP \ 18430RANLIB \ 18431CC \ 18432CFLAGS \ 18433compiler \ 18434lt_cv_sys_global_symbol_pipe \ 18435lt_cv_sys_global_symbol_to_cdecl \ 18436lt_cv_sys_global_symbol_to_c_name_address \ 18437lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18438nm_file_list_spec \ 18439lt_prog_compiler_no_builtin_flag \ 18440lt_prog_compiler_pic \ 18441lt_prog_compiler_wl \ 18442lt_prog_compiler_static \ 18443lt_cv_prog_compiler_c_o \ 18444need_locks \ 18445MANIFEST_TOOL \ 18446DSYMUTIL \ 18447NMEDIT \ 18448LIPO \ 18449OTOOL \ 18450OTOOL64 \ 18451shrext_cmds \ 18452export_dynamic_flag_spec \ 18453whole_archive_flag_spec \ 18454compiler_needs_object \ 18455with_gnu_ld \ 18456allow_undefined_flag \ 18457no_undefined_flag \ 18458hardcode_libdir_flag_spec \ 18459hardcode_libdir_separator \ 18460exclude_expsyms \ 18461include_expsyms \ 18462file_list_spec \ 18463variables_saved_for_relink \ 18464libname_spec \ 18465library_names_spec \ 18466soname_spec \ 18467install_override_mode \ 18468finish_eval \ 18469old_striplib \ 18470striplib; do 18471 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18472 *[\\\\\\\`\\"\\\$]*) 18473 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18474 ;; 18475 *) 18476 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18477 ;; 18478 esac 18479done 18480 18481# Double-quote double-evaled strings. 18482for var in reload_cmds \ 18483old_postinstall_cmds \ 18484old_postuninstall_cmds \ 18485old_archive_cmds \ 18486extract_expsyms_cmds \ 18487old_archive_from_new_cmds \ 18488old_archive_from_expsyms_cmds \ 18489archive_cmds \ 18490archive_expsym_cmds \ 18491module_cmds \ 18492module_expsym_cmds \ 18493export_symbols_cmds \ 18494prelink_cmds \ 18495postlink_cmds \ 18496postinstall_cmds \ 18497postuninstall_cmds \ 18498finish_cmds \ 18499sys_lib_search_path_spec \ 18500sys_lib_dlsearch_path_spec; do 18501 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18502 *[\\\\\\\`\\"\\\$]*) 18503 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18504 ;; 18505 *) 18506 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18507 ;; 18508 esac 18509done 18510 18511ac_aux_dir='$ac_aux_dir' 18512xsi_shell='$xsi_shell' 18513lt_shell_append='$lt_shell_append' 18514 18515# See if we are running on zsh, and set the options which allow our 18516# commands through without removal of \ escapes INIT. 18517if test -n "\${ZSH_VERSION+set}" ; then 18518 setopt NO_GLOB_SUBST 18519fi 18520 18521 18522 PACKAGE='$PACKAGE' 18523 VERSION='$VERSION' 18524 TIMESTAMP='$TIMESTAMP' 18525 RM='$RM' 18526 ofile='$ofile' 18527 18528 18529 18530 18531_ACEOF 18532 18533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18534 18535# Handling of arguments. 18536for ac_config_target in $ac_config_targets 18537do 18538 case $ac_config_target in 18539 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18540 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18541 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18542 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18543 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 18544 "saa/Makefile") CONFIG_FILES="$CONFIG_FILES saa/Makefile" ;; 18545 "vmwgfx/Makefile") CONFIG_FILES="$CONFIG_FILES vmwgfx/Makefile" ;; 18546 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18547 "vmwarectrl/Makefile") CONFIG_FILES="$CONFIG_FILES vmwarectrl/Makefile" ;; 18548 18549 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18550 esac 18551done 18552 18553 18554# If the user did not use the arguments to specify the items to instantiate, 18555# then the envvar interface is used. Set only those that are not. 18556# We use the long form for the default assignment because of an extremely 18557# bizarre bug on SunOS 4.1.3. 18558if $ac_need_defaults; then 18559 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18560 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18561 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18562fi 18563 18564# Have a temporary directory for convenience. Make it in the build tree 18565# simply because there is no reason against having it here, and in addition, 18566# creating and moving files from /tmp can sometimes cause problems. 18567# Hook for its removal unless debugging. 18568# Note that there is a small window in which the directory will not be cleaned: 18569# after its creation but before its name has been assigned to `$tmp'. 18570$debug || 18571{ 18572 tmp= ac_tmp= 18573 trap 'exit_status=$? 18574 : "${ac_tmp:=$tmp}" 18575 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18576' 0 18577 trap 'as_fn_exit 1' 1 2 13 15 18578} 18579# Create a (secure) tmp directory for tmp files. 18580 18581{ 18582 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18583 test -d "$tmp" 18584} || 18585{ 18586 tmp=./conf$$-$RANDOM 18587 (umask 077 && mkdir "$tmp") 18588} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18589ac_tmp=$tmp 18590 18591# Set up the scripts for CONFIG_FILES section. 18592# No need to generate them if there are no CONFIG_FILES. 18593# This happens for instance with `./config.status config.h'. 18594if test -n "$CONFIG_FILES"; then 18595 18596 18597ac_cr=`echo X | tr X '\015'` 18598# On cygwin, bash can eat \r inside `` if the user requested igncr. 18599# But we know of no other shell where ac_cr would be empty at this 18600# point, so we can use a bashism as a fallback. 18601if test "x$ac_cr" = x; then 18602 eval ac_cr=\$\'\\r\' 18603fi 18604ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18605if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18606 ac_cs_awk_cr='\\r' 18607else 18608 ac_cs_awk_cr=$ac_cr 18609fi 18610 18611echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18612_ACEOF 18613 18614 18615{ 18616 echo "cat >conf$$subs.awk <<_ACEOF" && 18617 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18618 echo "_ACEOF" 18619} >conf$$subs.sh || 18620 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18621ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18622ac_delim='%!_!# ' 18623for ac_last_try in false false false false false :; do 18624 . ./conf$$subs.sh || 18625 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18626 18627 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18628 if test $ac_delim_n = $ac_delim_num; then 18629 break 18630 elif $ac_last_try; then 18631 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18632 else 18633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18634 fi 18635done 18636rm -f conf$$subs.sh 18637 18638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18639cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18640_ACEOF 18641sed -n ' 18642h 18643s/^/S["/; s/!.*/"]=/ 18644p 18645g 18646s/^[^!]*!// 18647:repl 18648t repl 18649s/'"$ac_delim"'$// 18650t delim 18651:nl 18652h 18653s/\(.\{148\}\)..*/\1/ 18654t more1 18655s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18656p 18657n 18658b repl 18659:more1 18660s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18661p 18662g 18663s/.\{148\}// 18664t nl 18665:delim 18666h 18667s/\(.\{148\}\)..*/\1/ 18668t more2 18669s/["\\]/\\&/g; s/^/"/; s/$/"/ 18670p 18671b 18672:more2 18673s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18674p 18675g 18676s/.\{148\}// 18677t delim 18678' <conf$$subs.awk | sed ' 18679/^[^""]/{ 18680 N 18681 s/\n// 18682} 18683' >>$CONFIG_STATUS || ac_write_fail=1 18684rm -f conf$$subs.awk 18685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18686_ACAWK 18687cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18688 for (key in S) S_is_set[key] = 1 18689 FS = "" 18690 18691} 18692{ 18693 line = $ 0 18694 nfields = split(line, field, "@") 18695 substed = 0 18696 len = length(field[1]) 18697 for (i = 2; i < nfields; i++) { 18698 key = field[i] 18699 keylen = length(key) 18700 if (S_is_set[key]) { 18701 value = S[key] 18702 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18703 len += length(value) + length(field[++i]) 18704 substed = 1 18705 } else 18706 len += 1 + keylen 18707 } 18708 18709 print line 18710} 18711 18712_ACAWK 18713_ACEOF 18714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18715if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18716 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18717else 18718 cat 18719fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18720 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18721_ACEOF 18722 18723# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18724# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18725# trailing colons and then remove the whole line if VPATH becomes empty 18726# (actually we leave an empty line to preserve line numbers). 18727if test "x$srcdir" = x.; then 18728 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18729h 18730s/// 18731s/^/:/ 18732s/[ ]*$/:/ 18733s/:\$(srcdir):/:/g 18734s/:\${srcdir}:/:/g 18735s/:@srcdir@:/:/g 18736s/^:*// 18737s/:*$// 18738x 18739s/\(=[ ]*\).*/\1/ 18740G 18741s/\n// 18742s/^[^=]*=[ ]*$// 18743}' 18744fi 18745 18746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18747fi # test -n "$CONFIG_FILES" 18748 18749# Set up the scripts for CONFIG_HEADERS section. 18750# No need to generate them if there are no CONFIG_HEADERS. 18751# This happens for instance with `./config.status Makefile'. 18752if test -n "$CONFIG_HEADERS"; then 18753cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18754BEGIN { 18755_ACEOF 18756 18757# Transform confdefs.h into an awk script `defines.awk', embedded as 18758# here-document in config.status, that substitutes the proper values into 18759# config.h.in to produce config.h. 18760 18761# Create a delimiter string that does not exist in confdefs.h, to ease 18762# handling of long lines. 18763ac_delim='%!_!# ' 18764for ac_last_try in false false :; do 18765 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18766 if test -z "$ac_tt"; then 18767 break 18768 elif $ac_last_try; then 18769 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18770 else 18771 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18772 fi 18773done 18774 18775# For the awk script, D is an array of macro values keyed by name, 18776# likewise P contains macro parameters if any. Preserve backslash 18777# newline sequences. 18778 18779ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18780sed -n ' 18781s/.\{148\}/&'"$ac_delim"'/g 18782t rset 18783:rset 18784s/^[ ]*#[ ]*define[ ][ ]*/ / 18785t def 18786d 18787:def 18788s/\\$// 18789t bsnl 18790s/["\\]/\\&/g 18791s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18792D["\1"]=" \3"/p 18793s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18794d 18795:bsnl 18796s/["\\]/\\&/g 18797s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18798D["\1"]=" \3\\\\\\n"\\/p 18799t cont 18800s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18801t cont 18802d 18803:cont 18804n 18805s/.\{148\}/&'"$ac_delim"'/g 18806t clear 18807:clear 18808s/\\$// 18809t bsnlc 18810s/["\\]/\\&/g; s/^/"/; s/$/"/p 18811d 18812:bsnlc 18813s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18814b cont 18815' <confdefs.h | sed ' 18816s/'"$ac_delim"'/"\\\ 18817"/g' >>$CONFIG_STATUS || ac_write_fail=1 18818 18819cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18820 for (key in D) D_is_set[key] = 1 18821 FS = "" 18822} 18823/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18824 line = \$ 0 18825 split(line, arg, " ") 18826 if (arg[1] == "#") { 18827 defundef = arg[2] 18828 mac1 = arg[3] 18829 } else { 18830 defundef = substr(arg[1], 2) 18831 mac1 = arg[2] 18832 } 18833 split(mac1, mac2, "(") #) 18834 macro = mac2[1] 18835 prefix = substr(line, 1, index(line, defundef) - 1) 18836 if (D_is_set[macro]) { 18837 # Preserve the white space surrounding the "#". 18838 print prefix "define", macro P[macro] D[macro] 18839 next 18840 } else { 18841 # Replace #undef with comments. This is necessary, for example, 18842 # in the case of _POSIX_SOURCE, which is predefined and required 18843 # on some systems where configure will not decide to define it. 18844 if (defundef == "undef") { 18845 print "/*", prefix defundef, macro, "*/" 18846 next 18847 } 18848 } 18849} 18850{ print } 18851_ACAWK 18852_ACEOF 18853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18854 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18855fi # test -n "$CONFIG_HEADERS" 18856 18857 18858eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18859shift 18860for ac_tag 18861do 18862 case $ac_tag in 18863 :[FHLC]) ac_mode=$ac_tag; continue;; 18864 esac 18865 case $ac_mode$ac_tag in 18866 :[FHL]*:*);; 18867 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18868 :[FH]-) ac_tag=-:-;; 18869 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18870 esac 18871 ac_save_IFS=$IFS 18872 IFS=: 18873 set x $ac_tag 18874 IFS=$ac_save_IFS 18875 shift 18876 ac_file=$1 18877 shift 18878 18879 case $ac_mode in 18880 :L) ac_source=$1;; 18881 :[FH]) 18882 ac_file_inputs= 18883 for ac_f 18884 do 18885 case $ac_f in 18886 -) ac_f="$ac_tmp/stdin";; 18887 *) # Look for the file first in the build tree, then in the source tree 18888 # (if the path is not absolute). The absolute path cannot be DOS-style, 18889 # because $ac_f cannot contain `:'. 18890 test -f "$ac_f" || 18891 case $ac_f in 18892 [\\/$]*) false;; 18893 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18894 esac || 18895 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18896 esac 18897 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18898 as_fn_append ac_file_inputs " '$ac_f'" 18899 done 18900 18901 # Let's still pretend it is `configure' which instantiates (i.e., don't 18902 # use $as_me), people would be surprised to read: 18903 # /* config.h. Generated by config.status. */ 18904 configure_input='Generated from '` 18905 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18906 `' by configure.' 18907 if test x"$ac_file" != x-; then 18908 configure_input="$ac_file. $configure_input" 18909 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18910$as_echo "$as_me: creating $ac_file" >&6;} 18911 fi 18912 # Neutralize special characters interpreted by sed in replacement strings. 18913 case $configure_input in #( 18914 *\&* | *\|* | *\\* ) 18915 ac_sed_conf_input=`$as_echo "$configure_input" | 18916 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18917 *) ac_sed_conf_input=$configure_input;; 18918 esac 18919 18920 case $ac_tag in 18921 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18922 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18923 esac 18924 ;; 18925 esac 18926 18927 ac_dir=`$as_dirname -- "$ac_file" || 18928$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18929 X"$ac_file" : 'X\(//\)[^/]' \| \ 18930 X"$ac_file" : 'X\(//\)$' \| \ 18931 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18932$as_echo X"$ac_file" | 18933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18934 s//\1/ 18935 q 18936 } 18937 /^X\(\/\/\)[^/].*/{ 18938 s//\1/ 18939 q 18940 } 18941 /^X\(\/\/\)$/{ 18942 s//\1/ 18943 q 18944 } 18945 /^X\(\/\).*/{ 18946 s//\1/ 18947 q 18948 } 18949 s/.*/./; q'` 18950 as_dir="$ac_dir"; as_fn_mkdir_p 18951 ac_builddir=. 18952 18953case "$ac_dir" in 18954.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18955*) 18956 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18957 # A ".." for each directory in $ac_dir_suffix. 18958 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18959 case $ac_top_builddir_sub in 18960 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18961 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18962 esac ;; 18963esac 18964ac_abs_top_builddir=$ac_pwd 18965ac_abs_builddir=$ac_pwd$ac_dir_suffix 18966# for backward compatibility: 18967ac_top_builddir=$ac_top_build_prefix 18968 18969case $srcdir in 18970 .) # We are building in place. 18971 ac_srcdir=. 18972 ac_top_srcdir=$ac_top_builddir_sub 18973 ac_abs_top_srcdir=$ac_pwd ;; 18974 [\\/]* | ?:[\\/]* ) # Absolute name. 18975 ac_srcdir=$srcdir$ac_dir_suffix; 18976 ac_top_srcdir=$srcdir 18977 ac_abs_top_srcdir=$srcdir ;; 18978 *) # Relative name. 18979 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18980 ac_top_srcdir=$ac_top_build_prefix$srcdir 18981 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18982esac 18983ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18984 18985 18986 case $ac_mode in 18987 :F) 18988 # 18989 # CONFIG_FILE 18990 # 18991 18992 case $INSTALL in 18993 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18994 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18995 esac 18996 ac_MKDIR_P=$MKDIR_P 18997 case $MKDIR_P in 18998 [\\/$]* | ?:[\\/]* ) ;; 18999 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19000 esac 19001_ACEOF 19002 19003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19004# If the template does not know about datarootdir, expand it. 19005# FIXME: This hack should be removed a few years after 2.60. 19006ac_datarootdir_hack=; ac_datarootdir_seen= 19007ac_sed_dataroot=' 19008/datarootdir/ { 19009 p 19010 q 19011} 19012/@datadir@/p 19013/@docdir@/p 19014/@infodir@/p 19015/@localedir@/p 19016/@mandir@/p' 19017case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19018*datarootdir*) ac_datarootdir_seen=yes;; 19019*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19021$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19022_ACEOF 19023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19024 ac_datarootdir_hack=' 19025 s&@datadir@&$datadir&g 19026 s&@docdir@&$docdir&g 19027 s&@infodir@&$infodir&g 19028 s&@localedir@&$localedir&g 19029 s&@mandir@&$mandir&g 19030 s&\\\${datarootdir}&$datarootdir&g' ;; 19031esac 19032_ACEOF 19033 19034# Neutralize VPATH when `$srcdir' = `.'. 19035# Shell code in configure.ac might set extrasub. 19036# FIXME: do we really want to maintain this feature? 19037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19038ac_sed_extra="$ac_vpsub 19039$extrasub 19040_ACEOF 19041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19042:t 19043/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19044s|@configure_input@|$ac_sed_conf_input|;t t 19045s&@top_builddir@&$ac_top_builddir_sub&;t t 19046s&@top_build_prefix@&$ac_top_build_prefix&;t t 19047s&@srcdir@&$ac_srcdir&;t t 19048s&@abs_srcdir@&$ac_abs_srcdir&;t t 19049s&@top_srcdir@&$ac_top_srcdir&;t t 19050s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19051s&@builddir@&$ac_builddir&;t t 19052s&@abs_builddir@&$ac_abs_builddir&;t t 19053s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19054s&@INSTALL@&$ac_INSTALL&;t t 19055s&@MKDIR_P@&$ac_MKDIR_P&;t t 19056$ac_datarootdir_hack 19057" 19058eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19059 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19060 19061test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19062 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19063 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19064 "$ac_tmp/out"`; test -z "$ac_out"; } && 19065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19066which seems to be undefined. Please make sure it is defined" >&5 19067$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19068which seems to be undefined. Please make sure it is defined" >&2;} 19069 19070 rm -f "$ac_tmp/stdin" 19071 case $ac_file in 19072 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19073 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19074 esac \ 19075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19076 ;; 19077 :H) 19078 # 19079 # CONFIG_HEADER 19080 # 19081 if test x"$ac_file" != x-; then 19082 { 19083 $as_echo "/* $configure_input */" \ 19084 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19085 } >"$ac_tmp/config.h" \ 19086 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19087 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19088 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19089$as_echo "$as_me: $ac_file is unchanged" >&6;} 19090 else 19091 rm -f "$ac_file" 19092 mv "$ac_tmp/config.h" "$ac_file" \ 19093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19094 fi 19095 else 19096 $as_echo "/* $configure_input */" \ 19097 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19098 || as_fn_error $? "could not create -" "$LINENO" 5 19099 fi 19100# Compute "$ac_file"'s index in $config_headers. 19101_am_arg="$ac_file" 19102_am_stamp_count=1 19103for _am_header in $config_headers :; do 19104 case $_am_header in 19105 $_am_arg | $_am_arg:* ) 19106 break ;; 19107 * ) 19108 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19109 esac 19110done 19111echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19112$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19113 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19114 X"$_am_arg" : 'X\(//\)$' \| \ 19115 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19116$as_echo X"$_am_arg" | 19117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19118 s//\1/ 19119 q 19120 } 19121 /^X\(\/\/\)[^/].*/{ 19122 s//\1/ 19123 q 19124 } 19125 /^X\(\/\/\)$/{ 19126 s//\1/ 19127 q 19128 } 19129 /^X\(\/\).*/{ 19130 s//\1/ 19131 q 19132 } 19133 s/.*/./; q'`/stamp-h$_am_stamp_count 19134 ;; 19135 19136 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19137$as_echo "$as_me: executing $ac_file commands" >&6;} 19138 ;; 19139 esac 19140 19141 19142 case $ac_file$ac_mode in 19143 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19144 # Autoconf 2.62 quotes --file arguments for eval, but not when files 19145 # are listed without --file. Let's play safe and only enable the eval 19146 # if we detect the quoting. 19147 case $CONFIG_FILES in 19148 *\'*) eval set x "$CONFIG_FILES" ;; 19149 *) set x $CONFIG_FILES ;; 19150 esac 19151 shift 19152 for mf 19153 do 19154 # Strip MF so we end up with the name of the file. 19155 mf=`echo "$mf" | sed -e 's/:.*$//'` 19156 # Check whether this is an Automake generated Makefile or not. 19157 # We used to match only the files named `Makefile.in', but 19158 # some people rename them; so instead we look at the file content. 19159 # Grep'ing the first line is not enough: some people post-process 19160 # each Makefile.in and add a new line on top of each file to say so. 19161 # Grep'ing the whole file is not good either: AIX grep has a line 19162 # limit of 2048, but all sed's we know have understand at least 4000. 19163 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19164 dirpart=`$as_dirname -- "$mf" || 19165$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19166 X"$mf" : 'X\(//\)[^/]' \| \ 19167 X"$mf" : 'X\(//\)$' \| \ 19168 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19169$as_echo X"$mf" | 19170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19171 s//\1/ 19172 q 19173 } 19174 /^X\(\/\/\)[^/].*/{ 19175 s//\1/ 19176 q 19177 } 19178 /^X\(\/\/\)$/{ 19179 s//\1/ 19180 q 19181 } 19182 /^X\(\/\).*/{ 19183 s//\1/ 19184 q 19185 } 19186 s/.*/./; q'` 19187 else 19188 continue 19189 fi 19190 # Extract the definition of DEPDIR, am__include, and am__quote 19191 # from the Makefile without running `make'. 19192 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19193 test -z "$DEPDIR" && continue 19194 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19195 test -z "am__include" && continue 19196 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19197 # When using ansi2knr, U may be empty or an underscore; expand it 19198 U=`sed -n 's/^U = //p' < "$mf"` 19199 # Find all dependency output files, they are included files with 19200 # $(DEPDIR) in their names. We invoke sed twice because it is the 19201 # simplest approach to changing $(DEPDIR) to its actual value in the 19202 # expansion. 19203 for file in `sed -n " 19204 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19205 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 19206 # Make sure the directory exists. 19207 test -f "$dirpart/$file" && continue 19208 fdir=`$as_dirname -- "$file" || 19209$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19210 X"$file" : 'X\(//\)[^/]' \| \ 19211 X"$file" : 'X\(//\)$' \| \ 19212 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19213$as_echo X"$file" | 19214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19215 s//\1/ 19216 q 19217 } 19218 /^X\(\/\/\)[^/].*/{ 19219 s//\1/ 19220 q 19221 } 19222 /^X\(\/\/\)$/{ 19223 s//\1/ 19224 q 19225 } 19226 /^X\(\/\).*/{ 19227 s//\1/ 19228 q 19229 } 19230 s/.*/./; q'` 19231 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19232 # echo "creating $dirpart/$file" 19233 echo '# dummy' > "$dirpart/$file" 19234 done 19235 done 19236} 19237 ;; 19238 "libtool":C) 19239 19240 # See if we are running on zsh, and set the options which allow our 19241 # commands through without removal of \ escapes. 19242 if test -n "${ZSH_VERSION+set}" ; then 19243 setopt NO_GLOB_SUBST 19244 fi 19245 19246 cfgfile="${ofile}T" 19247 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19248 $RM "$cfgfile" 19249 19250 cat <<_LT_EOF >> "$cfgfile" 19251#! $SHELL 19252 19253# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19254# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19255# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19256# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19257# 19258# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19259# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19260# Foundation, Inc. 19261# Written by Gordon Matzigkeit, 1996 19262# 19263# This file is part of GNU Libtool. 19264# 19265# GNU Libtool is free software; you can redistribute it and/or 19266# modify it under the terms of the GNU General Public License as 19267# published by the Free Software Foundation; either version 2 of 19268# the License, or (at your option) any later version. 19269# 19270# As a special exception to the GNU General Public License, 19271# if you distribute this file as part of a program or library that 19272# is built using GNU Libtool, you may include this file under the 19273# same distribution terms that you use for the rest of that program. 19274# 19275# GNU Libtool is distributed in the hope that it will be useful, 19276# but WITHOUT ANY WARRANTY; without even the implied warranty of 19277# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19278# GNU General Public License for more details. 19279# 19280# You should have received a copy of the GNU General Public License 19281# along with GNU Libtool; see the file COPYING. If not, a copy 19282# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19283# obtained by writing to the Free Software Foundation, Inc., 19284# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19285 19286 19287# The names of the tagged configurations supported by this script. 19288available_tags="" 19289 19290# ### BEGIN LIBTOOL CONFIG 19291 19292# Whether or not to build static libraries. 19293build_old_libs=$enable_static 19294 19295# Which release of libtool.m4 was used? 19296macro_version=$macro_version 19297macro_revision=$macro_revision 19298 19299# Whether or not to build shared libraries. 19300build_libtool_libs=$enable_shared 19301 19302# What type of objects to build. 19303pic_mode=$pic_mode 19304 19305# Whether or not to optimize for fast installation. 19306fast_install=$enable_fast_install 19307 19308# Shell to use when invoking shell scripts. 19309SHELL=$lt_SHELL 19310 19311# An echo program that protects backslashes. 19312ECHO=$lt_ECHO 19313 19314# The PATH separator for the build system. 19315PATH_SEPARATOR=$lt_PATH_SEPARATOR 19316 19317# The host system. 19318host_alias=$host_alias 19319host=$host 19320host_os=$host_os 19321 19322# The build system. 19323build_alias=$build_alias 19324build=$build 19325build_os=$build_os 19326 19327# A sed program that does not truncate output. 19328SED=$lt_SED 19329 19330# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19331Xsed="\$SED -e 1s/^X//" 19332 19333# A grep program that handles long lines. 19334GREP=$lt_GREP 19335 19336# An ERE matcher. 19337EGREP=$lt_EGREP 19338 19339# A literal string matcher. 19340FGREP=$lt_FGREP 19341 19342# A BSD- or MS-compatible name lister. 19343NM=$lt_NM 19344 19345# Whether we need soft or hard links. 19346LN_S=$lt_LN_S 19347 19348# What is the maximum length of a command? 19349max_cmd_len=$max_cmd_len 19350 19351# Object file suffix (normally "o"). 19352objext=$ac_objext 19353 19354# Executable file suffix (normally ""). 19355exeext=$exeext 19356 19357# whether the shell understands "unset". 19358lt_unset=$lt_unset 19359 19360# turn spaces into newlines. 19361SP2NL=$lt_lt_SP2NL 19362 19363# turn newlines into spaces. 19364NL2SP=$lt_lt_NL2SP 19365 19366# convert \$build file names to \$host format. 19367to_host_file_cmd=$lt_cv_to_host_file_cmd 19368 19369# convert \$build files to toolchain format. 19370to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19371 19372# An object symbol dumper. 19373OBJDUMP=$lt_OBJDUMP 19374 19375# Method to check whether dependent libraries are shared objects. 19376deplibs_check_method=$lt_deplibs_check_method 19377 19378# Command to use when deplibs_check_method = "file_magic". 19379file_magic_cmd=$lt_file_magic_cmd 19380 19381# How to find potential files when deplibs_check_method = "file_magic". 19382file_magic_glob=$lt_file_magic_glob 19383 19384# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19385want_nocaseglob=$lt_want_nocaseglob 19386 19387# DLL creation program. 19388DLLTOOL=$lt_DLLTOOL 19389 19390# Command to associate shared and link libraries. 19391sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19392 19393# The archiver. 19394AR=$lt_AR 19395 19396# Flags to create an archive. 19397AR_FLAGS=$lt_AR_FLAGS 19398 19399# How to feed a file listing to the archiver. 19400archiver_list_spec=$lt_archiver_list_spec 19401 19402# A symbol stripping program. 19403STRIP=$lt_STRIP 19404 19405# Commands used to install an old-style archive. 19406RANLIB=$lt_RANLIB 19407old_postinstall_cmds=$lt_old_postinstall_cmds 19408old_postuninstall_cmds=$lt_old_postuninstall_cmds 19409 19410# Whether to use a lock for old archive extraction. 19411lock_old_archive_extraction=$lock_old_archive_extraction 19412 19413# A C compiler. 19414LTCC=$lt_CC 19415 19416# LTCC compiler flags. 19417LTCFLAGS=$lt_CFLAGS 19418 19419# Take the output of nm and produce a listing of raw symbols and C names. 19420global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19421 19422# Transform the output of nm in a proper C declaration. 19423global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19424 19425# Transform the output of nm in a C name address pair. 19426global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19427 19428# Transform the output of nm in a C name address pair when lib prefix is needed. 19429global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19430 19431# Specify filename containing input files for \$NM. 19432nm_file_list_spec=$lt_nm_file_list_spec 19433 19434# The root where to search for dependent libraries,and in which our libraries should be installed. 19435lt_sysroot=$lt_sysroot 19436 19437# The name of the directory that contains temporary libtool files. 19438objdir=$objdir 19439 19440# Used to examine libraries when file_magic_cmd begins with "file". 19441MAGIC_CMD=$MAGIC_CMD 19442 19443# Must we lock files when doing compilation? 19444need_locks=$lt_need_locks 19445 19446# Manifest tool. 19447MANIFEST_TOOL=$lt_MANIFEST_TOOL 19448 19449# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19450DSYMUTIL=$lt_DSYMUTIL 19451 19452# Tool to change global to local symbols on Mac OS X. 19453NMEDIT=$lt_NMEDIT 19454 19455# Tool to manipulate fat objects and archives on Mac OS X. 19456LIPO=$lt_LIPO 19457 19458# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19459OTOOL=$lt_OTOOL 19460 19461# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19462OTOOL64=$lt_OTOOL64 19463 19464# Old archive suffix (normally "a"). 19465libext=$libext 19466 19467# Shared library suffix (normally ".so"). 19468shrext_cmds=$lt_shrext_cmds 19469 19470# The commands to extract the exported symbol list from a shared archive. 19471extract_expsyms_cmds=$lt_extract_expsyms_cmds 19472 19473# Variables whose values should be saved in libtool wrapper scripts and 19474# restored at link time. 19475variables_saved_for_relink=$lt_variables_saved_for_relink 19476 19477# Do we need the "lib" prefix for modules? 19478need_lib_prefix=$need_lib_prefix 19479 19480# Do we need a version for libraries? 19481need_version=$need_version 19482 19483# Library versioning type. 19484version_type=$version_type 19485 19486# Shared library runtime path variable. 19487runpath_var=$runpath_var 19488 19489# Shared library path variable. 19490shlibpath_var=$shlibpath_var 19491 19492# Is shlibpath searched before the hard-coded library search path? 19493shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19494 19495# Format of library name prefix. 19496libname_spec=$lt_libname_spec 19497 19498# List of archive names. First name is the real one, the rest are links. 19499# The last name is the one that the linker finds with -lNAME 19500library_names_spec=$lt_library_names_spec 19501 19502# The coded name of the library, if different from the real name. 19503soname_spec=$lt_soname_spec 19504 19505# Permission mode override for installation of shared libraries. 19506install_override_mode=$lt_install_override_mode 19507 19508# Command to use after installation of a shared archive. 19509postinstall_cmds=$lt_postinstall_cmds 19510 19511# Command to use after uninstallation of a shared archive. 19512postuninstall_cmds=$lt_postuninstall_cmds 19513 19514# Commands used to finish a libtool library installation in a directory. 19515finish_cmds=$lt_finish_cmds 19516 19517# As "finish_cmds", except a single script fragment to be evaled but 19518# not shown. 19519finish_eval=$lt_finish_eval 19520 19521# Whether we should hardcode library paths into libraries. 19522hardcode_into_libs=$hardcode_into_libs 19523 19524# Compile-time system search path for libraries. 19525sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19526 19527# Run-time system search path for libraries. 19528sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19529 19530# Whether dlopen is supported. 19531dlopen_support=$enable_dlopen 19532 19533# Whether dlopen of programs is supported. 19534dlopen_self=$enable_dlopen_self 19535 19536# Whether dlopen of statically linked programs is supported. 19537dlopen_self_static=$enable_dlopen_self_static 19538 19539# Commands to strip libraries. 19540old_striplib=$lt_old_striplib 19541striplib=$lt_striplib 19542 19543 19544# The linker used to build libraries. 19545LD=$lt_LD 19546 19547# How to create reloadable object files. 19548reload_flag=$lt_reload_flag 19549reload_cmds=$lt_reload_cmds 19550 19551# Commands used to build an old-style archive. 19552old_archive_cmds=$lt_old_archive_cmds 19553 19554# A language specific compiler. 19555CC=$lt_compiler 19556 19557# Is the compiler the GNU compiler? 19558with_gcc=$GCC 19559 19560# Compiler flag to turn off builtin functions. 19561no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19562 19563# Additional compiler flags for building library objects. 19564pic_flag=$lt_lt_prog_compiler_pic 19565 19566# How to pass a linker flag through the compiler. 19567wl=$lt_lt_prog_compiler_wl 19568 19569# Compiler flag to prevent dynamic linking. 19570link_static_flag=$lt_lt_prog_compiler_static 19571 19572# Does compiler simultaneously support -c and -o options? 19573compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19574 19575# Whether or not to add -lc for building shared libraries. 19576build_libtool_need_lc=$archive_cmds_need_lc 19577 19578# Whether or not to disallow shared libs when runtime libs are static. 19579allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19580 19581# Compiler flag to allow reflexive dlopens. 19582export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19583 19584# Compiler flag to generate shared objects directly from archives. 19585whole_archive_flag_spec=$lt_whole_archive_flag_spec 19586 19587# Whether the compiler copes with passing no objects directly. 19588compiler_needs_object=$lt_compiler_needs_object 19589 19590# Create an old-style archive from a shared archive. 19591old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19592 19593# Create a temporary old-style archive to link instead of a shared archive. 19594old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19595 19596# Commands used to build a shared archive. 19597archive_cmds=$lt_archive_cmds 19598archive_expsym_cmds=$lt_archive_expsym_cmds 19599 19600# Commands used to build a loadable module if different from building 19601# a shared archive. 19602module_cmds=$lt_module_cmds 19603module_expsym_cmds=$lt_module_expsym_cmds 19604 19605# Whether we are building with GNU ld or not. 19606with_gnu_ld=$lt_with_gnu_ld 19607 19608# Flag that allows shared libraries with undefined symbols to be built. 19609allow_undefined_flag=$lt_allow_undefined_flag 19610 19611# Flag that enforces no undefined symbols. 19612no_undefined_flag=$lt_no_undefined_flag 19613 19614# Flag to hardcode \$libdir into a binary during linking. 19615# This must work even if \$libdir does not exist 19616hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19617 19618# Whether we need a single "-rpath" flag with a separated argument. 19619hardcode_libdir_separator=$lt_hardcode_libdir_separator 19620 19621# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19622# DIR into the resulting binary. 19623hardcode_direct=$hardcode_direct 19624 19625# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19626# DIR into the resulting binary and the resulting library dependency is 19627# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19628# library is relocated. 19629hardcode_direct_absolute=$hardcode_direct_absolute 19630 19631# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19632# into the resulting binary. 19633hardcode_minus_L=$hardcode_minus_L 19634 19635# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19636# into the resulting binary. 19637hardcode_shlibpath_var=$hardcode_shlibpath_var 19638 19639# Set to "yes" if building a shared library automatically hardcodes DIR 19640# into the library and all subsequent libraries and executables linked 19641# against it. 19642hardcode_automatic=$hardcode_automatic 19643 19644# Set to yes if linker adds runtime paths of dependent libraries 19645# to runtime path list. 19646inherit_rpath=$inherit_rpath 19647 19648# Whether libtool must link a program against all its dependency libraries. 19649link_all_deplibs=$link_all_deplibs 19650 19651# Set to "yes" if exported symbols are required. 19652always_export_symbols=$always_export_symbols 19653 19654# The commands to list exported symbols. 19655export_symbols_cmds=$lt_export_symbols_cmds 19656 19657# Symbols that should not be listed in the preloaded symbols. 19658exclude_expsyms=$lt_exclude_expsyms 19659 19660# Symbols that must always be exported. 19661include_expsyms=$lt_include_expsyms 19662 19663# Commands necessary for linking programs (against libraries) with templates. 19664prelink_cmds=$lt_prelink_cmds 19665 19666# Commands necessary for finishing linking programs. 19667postlink_cmds=$lt_postlink_cmds 19668 19669# Specify filename containing input files. 19670file_list_spec=$lt_file_list_spec 19671 19672# How to hardcode a shared library path into an executable. 19673hardcode_action=$hardcode_action 19674 19675# ### END LIBTOOL CONFIG 19676 19677_LT_EOF 19678 19679 case $host_os in 19680 aix3*) 19681 cat <<\_LT_EOF >> "$cfgfile" 19682# AIX sometimes has problems with the GCC collect2 program. For some 19683# reason, if we set the COLLECT_NAMES environment variable, the problems 19684# vanish in a puff of smoke. 19685if test "X${COLLECT_NAMES+set}" != Xset; then 19686 COLLECT_NAMES= 19687 export COLLECT_NAMES 19688fi 19689_LT_EOF 19690 ;; 19691 esac 19692 19693 19694ltmain="$ac_aux_dir/ltmain.sh" 19695 19696 19697 # We use sed instead of cat because bash on DJGPP gets confused if 19698 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19699 # text mode, it properly converts lines to CR/LF. This bash problem 19700 # is reportedly fixed, but why not run on old versions too? 19701 sed '$q' "$ltmain" >> "$cfgfile" \ 19702 || (rm -f "$cfgfile"; exit 1) 19703 19704 if test x"$xsi_shell" = xyes; then 19705 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 19706func_dirname ()\ 19707{\ 19708\ case ${1} in\ 19709\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19710\ * ) func_dirname_result="${3}" ;;\ 19711\ esac\ 19712} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 19713 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19714 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19715test 0 -eq $? || _lt_function_replace_fail=: 19716 19717 19718 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 19719func_basename ()\ 19720{\ 19721\ func_basename_result="${1##*/}"\ 19722} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19723 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19724 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19725test 0 -eq $? || _lt_function_replace_fail=: 19726 19727 19728 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 19729func_dirname_and_basename ()\ 19730{\ 19731\ case ${1} in\ 19732\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19733\ * ) func_dirname_result="${3}" ;;\ 19734\ esac\ 19735\ func_basename_result="${1##*/}"\ 19736} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19737 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19738 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19739test 0 -eq $? || _lt_function_replace_fail=: 19740 19741 19742 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 19743func_stripname ()\ 19744{\ 19745\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 19746\ # positional parameters, so assign one to ordinary parameter first.\ 19747\ func_stripname_result=${3}\ 19748\ func_stripname_result=${func_stripname_result#"${1}"}\ 19749\ func_stripname_result=${func_stripname_result%"${2}"}\ 19750} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 19751 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19752 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19753test 0 -eq $? || _lt_function_replace_fail=: 19754 19755 19756 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 19757func_split_long_opt ()\ 19758{\ 19759\ func_split_long_opt_name=${1%%=*}\ 19760\ func_split_long_opt_arg=${1#*=}\ 19761} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19762 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19763 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19764test 0 -eq $? || _lt_function_replace_fail=: 19765 19766 19767 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 19768func_split_short_opt ()\ 19769{\ 19770\ func_split_short_opt_arg=${1#??}\ 19771\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 19772} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19773 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19774 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19775test 0 -eq $? || _lt_function_replace_fail=: 19776 19777 19778 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 19779func_lo2o ()\ 19780{\ 19781\ case ${1} in\ 19782\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 19783\ *) func_lo2o_result=${1} ;;\ 19784\ esac\ 19785} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 19786 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19787 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19788test 0 -eq $? || _lt_function_replace_fail=: 19789 19790 19791 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 19792func_xform ()\ 19793{\ 19794 func_xform_result=${1%.*}.lo\ 19795} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 19796 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19797 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19798test 0 -eq $? || _lt_function_replace_fail=: 19799 19800 19801 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 19802func_arith ()\ 19803{\ 19804 func_arith_result=$(( $* ))\ 19805} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 19806 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19807 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19808test 0 -eq $? || _lt_function_replace_fail=: 19809 19810 19811 sed -e '/^func_len ()$/,/^} # func_len /c\ 19812func_len ()\ 19813{\ 19814 func_len_result=${#1}\ 19815} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 19816 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19817 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19818test 0 -eq $? || _lt_function_replace_fail=: 19819 19820fi 19821 19822if test x"$lt_shell_append" = xyes; then 19823 sed -e '/^func_append ()$/,/^} # func_append /c\ 19824func_append ()\ 19825{\ 19826 eval "${1}+=\\${2}"\ 19827} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 19828 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19829 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19830test 0 -eq $? || _lt_function_replace_fail=: 19831 19832 19833 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 19834func_append_quoted ()\ 19835{\ 19836\ func_quote_for_eval "${2}"\ 19837\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 19838} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 19839 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19840 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19841test 0 -eq $? || _lt_function_replace_fail=: 19842 19843 19844 # Save a `func_append' function call where possible by direct use of '+=' 19845 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 19846 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19847 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19848 test 0 -eq $? || _lt_function_replace_fail=: 19849else 19850 # Save a `func_append' function call even when '+=' is not available 19851 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 19852 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19853 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19854 test 0 -eq $? || _lt_function_replace_fail=: 19855fi 19856 19857if test x"$_lt_function_replace_fail" = x":"; then 19858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 19859$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 19860fi 19861 19862 19863 mv -f "$cfgfile" "$ofile" || 19864 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19865 chmod +x "$ofile" 19866 19867 ;; 19868 19869 esac 19870done # for ac_tag 19871 19872 19873as_fn_exit 0 19874_ACEOF 19875ac_clean_files=$ac_clean_files_save 19876 19877test $ac_write_fail = 0 || 19878 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19879 19880 19881# configure is writing to config.log, and then calls config.status. 19882# config.status does its own redirection, appending to config.log. 19883# Unfortunately, on DOS this fails, as config.log is still kept open 19884# by configure, so config.status won't be able to write to it; its 19885# output is simply discarded. So we exec the FD to /dev/null, 19886# effectively closing config.log, so it can be properly (re)opened and 19887# appended to by config.status. When coming back to configure, we 19888# need to make the FD available again. 19889if test "$no_create" != yes; then 19890 ac_cs_success=: 19891 ac_config_status_args= 19892 test "$silent" = yes && 19893 ac_config_status_args="$ac_config_status_args --quiet" 19894 exec 5>/dev/null 19895 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19896 exec 5>>config.log 19897 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19898 # would make configure fail if this is the last instruction. 19899 $ac_cs_success || as_fn_exit 1 19900fi 19901if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19903$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19904fi 19905 19906