configure revision 14330f12
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xf86-video-trident 1.3.5. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 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-trident' 573PACKAGE_TARNAME='xf86-video-trident' 574PACKAGE_VERSION='1.3.5' 575PACKAGE_STRING='xf86-video-trident 1.3.5' 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 620DRIVER_NAME 621moduledir 622XSERVER_LIBPCIACCESS_FALSE 623XSERVER_LIBPCIACCESS_TRUE 624PCIACCESS_LIBS 625PCIACCESS_CFLAGS 626HAVE_XEXTPROTO_71_FALSE 627HAVE_XEXTPROTO_71_TRUE 628XEXT_LIBS 629XEXT_CFLAGS 630XORG_LIBS 631XORG_CFLAGS 632OTOOL64 633OTOOL 634LIPO 635NMEDIT 636DSYMUTIL 637MANIFEST_TOOL 638RANLIB 639ac_ct_AR 640AR 641DLLTOOL 642OBJDUMP 643LN_S 644NM 645ac_ct_DUMPBIN 646DUMPBIN 647LD 648FGREP 649LIBTOOL 650AM_BACKSLASH 651AM_DEFAULT_VERBOSITY 652MAN_SUBSTS 653XORG_MAN_PAGE 654ADMIN_MAN_DIR 655DRIVER_MAN_DIR 656MISC_MAN_DIR 657FILE_MAN_DIR 658LIB_MAN_DIR 659APP_MAN_DIR 660ADMIN_MAN_SUFFIX 661DRIVER_MAN_SUFFIX 662MISC_MAN_SUFFIX 663FILE_MAN_SUFFIX 664LIB_MAN_SUFFIX 665APP_MAN_SUFFIX 666SED 667host_os 668host_vendor 669host_cpu 670host 671build_os 672build_vendor 673build_cpu 674build 675INSTALL_CMD 676PKG_CONFIG 677CHANGELOG_CMD 678STRICT_CFLAGS 679CWARNFLAGS 680BASE_CFLAGS 681EGREP 682GREP 683CPP 684am__fastdepCC_FALSE 685am__fastdepCC_TRUE 686CCDEPMODE 687AMDEPBACKSLASH 688AMDEP_FALSE 689AMDEP_TRUE 690am__quote 691am__include 692DEPDIR 693OBJEXT 694EXEEXT 695ac_ct_CC 696CPPFLAGS 697LDFLAGS 698CFLAGS 699CC 700MAINT 701MAINTAINER_MODE_FALSE 702MAINTAINER_MODE_TRUE 703am__untar 704am__tar 705AMTAR 706am__leading_dot 707SET_MAKE 708AWK 709mkdir_p 710MKDIR_P 711INSTALL_STRIP_PROGRAM 712STRIP 713install_sh 714MAKEINFO 715AUTOHEADER 716AUTOMAKE 717AUTOCONF 718ACLOCAL 719VERSION 720PACKAGE 721CYGPATH_W 722am__isrc 723INSTALL_DATA 724INSTALL_SCRIPT 725INSTALL_PROGRAM 726target_alias 727host_alias 728build_alias 729LIBS 730ECHO_T 731ECHO_N 732ECHO_C 733DEFS 734mandir 735localedir 736libdir 737psdir 738pdfdir 739dvidir 740htmldir 741infodir 742docdir 743oldincludedir 744includedir 745localstatedir 746sharedstatedir 747sysconfdir 748datadir 749datarootdir 750libexecdir 751sbindir 752bindir 753program_transform_name 754prefix 755exec_prefix 756PACKAGE_URL 757PACKAGE_BUGREPORT 758PACKAGE_STRING 759PACKAGE_VERSION 760PACKAGE_TARNAME 761PACKAGE_NAME 762PATH_SEPARATOR 763SHELL' 764ac_subst_files='' 765ac_user_opts=' 766enable_option_checking 767enable_maintainer_mode 768enable_dependency_tracking 769enable_selective_werror 770enable_strict_compilation 771enable_silent_rules 772enable_static 773enable_shared 774with_pic 775enable_fast_install 776with_gnu_ld 777with_sysroot 778enable_libtool_lock 779with_xorg_module_dir 780' 781 ac_precious_vars='build_alias 782host_alias 783target_alias 784CC 785CFLAGS 786LDFLAGS 787LIBS 788CPPFLAGS 789CPP 790PKG_CONFIG 791XORG_CFLAGS 792XORG_LIBS 793XEXT_CFLAGS 794XEXT_LIBS 795PCIACCESS_CFLAGS 796PCIACCESS_LIBS' 797 798 799# Initialize some variables set by options. 800ac_init_help= 801ac_init_version=false 802ac_unrecognized_opts= 803ac_unrecognized_sep= 804# The variables have the same names as the options, with 805# dashes changed to underlines. 806cache_file=/dev/null 807exec_prefix=NONE 808no_create= 809no_recursion= 810prefix=NONE 811program_prefix=NONE 812program_suffix=NONE 813program_transform_name=s,x,x, 814silent= 815site= 816srcdir= 817verbose= 818x_includes=NONE 819x_libraries=NONE 820 821# Installation directory options. 822# These are left unexpanded so users can "make install exec_prefix=/foo" 823# and all the variables that are supposed to be based on exec_prefix 824# by default will actually change. 825# Use braces instead of parens because sh, perl, etc. also accept them. 826# (The list follows the same order as the GNU Coding Standards.) 827bindir='${exec_prefix}/bin' 828sbindir='${exec_prefix}/sbin' 829libexecdir='${exec_prefix}/libexec' 830datarootdir='${prefix}/share' 831datadir='${datarootdir}' 832sysconfdir='${prefix}/etc' 833sharedstatedir='${prefix}/com' 834localstatedir='${prefix}/var' 835includedir='${prefix}/include' 836oldincludedir='/usr/include' 837docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 838infodir='${datarootdir}/info' 839htmldir='${docdir}' 840dvidir='${docdir}' 841pdfdir='${docdir}' 842psdir='${docdir}' 843libdir='${exec_prefix}/lib' 844localedir='${datarootdir}/locale' 845mandir='${datarootdir}/man' 846 847ac_prev= 848ac_dashdash= 849for ac_option 850do 851 # If the previous option needs an argument, assign it. 852 if test -n "$ac_prev"; then 853 eval $ac_prev=\$ac_option 854 ac_prev= 855 continue 856 fi 857 858 case $ac_option in 859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 860 *=) ac_optarg= ;; 861 *) ac_optarg=yes ;; 862 esac 863 864 # Accept the important Cygnus configure options, so we can diagnose typos. 865 866 case $ac_dashdash$ac_option in 867 --) 868 ac_dashdash=yes ;; 869 870 -bindir | --bindir | --bindi | --bind | --bin | --bi) 871 ac_prev=bindir ;; 872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 873 bindir=$ac_optarg ;; 874 875 -build | --build | --buil | --bui | --bu) 876 ac_prev=build_alias ;; 877 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 878 build_alias=$ac_optarg ;; 879 880 -cache-file | --cache-file | --cache-fil | --cache-fi \ 881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 882 ac_prev=cache_file ;; 883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 885 cache_file=$ac_optarg ;; 886 887 --config-cache | -C) 888 cache_file=config.cache ;; 889 890 -datadir | --datadir | --datadi | --datad) 891 ac_prev=datadir ;; 892 -datadir=* | --datadir=* | --datadi=* | --datad=*) 893 datadir=$ac_optarg ;; 894 895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 896 | --dataroo | --dataro | --datar) 897 ac_prev=datarootdir ;; 898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 900 datarootdir=$ac_optarg ;; 901 902 -disable-* | --disable-*) 903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 904 # Reject names that are not valid shell variable names. 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 906 as_fn_error $? "invalid feature name: $ac_useropt" 907 ac_useropt_orig=$ac_useropt 908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 909 case $ac_user_opts in 910 *" 911"enable_$ac_useropt" 912"*) ;; 913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 914 ac_unrecognized_sep=', ';; 915 esac 916 eval enable_$ac_useropt=no ;; 917 918 -docdir | --docdir | --docdi | --doc | --do) 919 ac_prev=docdir ;; 920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 921 docdir=$ac_optarg ;; 922 923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 924 ac_prev=dvidir ;; 925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 926 dvidir=$ac_optarg ;; 927 928 -enable-* | --enable-*) 929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 930 # Reject names that are not valid shell variable names. 931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 932 as_fn_error $? "invalid feature name: $ac_useropt" 933 ac_useropt_orig=$ac_useropt 934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 935 case $ac_user_opts in 936 *" 937"enable_$ac_useropt" 938"*) ;; 939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 940 ac_unrecognized_sep=', ';; 941 esac 942 eval enable_$ac_useropt=\$ac_optarg ;; 943 944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 946 | --exec | --exe | --ex) 947 ac_prev=exec_prefix ;; 948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 950 | --exec=* | --exe=* | --ex=*) 951 exec_prefix=$ac_optarg ;; 952 953 -gas | --gas | --ga | --g) 954 # Obsolete; use --with-gas. 955 with_gas=yes ;; 956 957 -help | --help | --hel | --he | -h) 958 ac_init_help=long ;; 959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 960 ac_init_help=recursive ;; 961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 962 ac_init_help=short ;; 963 964 -host | --host | --hos | --ho) 965 ac_prev=host_alias ;; 966 -host=* | --host=* | --hos=* | --ho=*) 967 host_alias=$ac_optarg ;; 968 969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 970 ac_prev=htmldir ;; 971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 972 | --ht=*) 973 htmldir=$ac_optarg ;; 974 975 -includedir | --includedir | --includedi | --included | --include \ 976 | --includ | --inclu | --incl | --inc) 977 ac_prev=includedir ;; 978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 979 | --includ=* | --inclu=* | --incl=* | --inc=*) 980 includedir=$ac_optarg ;; 981 982 -infodir | --infodir | --infodi | --infod | --info | --inf) 983 ac_prev=infodir ;; 984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 985 infodir=$ac_optarg ;; 986 987 -libdir | --libdir | --libdi | --libd) 988 ac_prev=libdir ;; 989 -libdir=* | --libdir=* | --libdi=* | --libd=*) 990 libdir=$ac_optarg ;; 991 992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 993 | --libexe | --libex | --libe) 994 ac_prev=libexecdir ;; 995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 996 | --libexe=* | --libex=* | --libe=*) 997 libexecdir=$ac_optarg ;; 998 999 -localedir | --localedir | --localedi | --localed | --locale) 1000 ac_prev=localedir ;; 1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1002 localedir=$ac_optarg ;; 1003 1004 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1005 | --localstate | --localstat | --localsta | --localst | --locals) 1006 ac_prev=localstatedir ;; 1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1009 localstatedir=$ac_optarg ;; 1010 1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1012 ac_prev=mandir ;; 1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1014 mandir=$ac_optarg ;; 1015 1016 -nfp | --nfp | --nf) 1017 # Obsolete; use --without-fp. 1018 with_fp=no ;; 1019 1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1021 | --no-cr | --no-c | -n) 1022 no_create=yes ;; 1023 1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1026 no_recursion=yes ;; 1027 1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1030 | --oldin | --oldi | --old | --ol | --o) 1031 ac_prev=oldincludedir ;; 1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1035 oldincludedir=$ac_optarg ;; 1036 1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1038 ac_prev=prefix ;; 1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1040 prefix=$ac_optarg ;; 1041 1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1043 | --program-pre | --program-pr | --program-p) 1044 ac_prev=program_prefix ;; 1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1047 program_prefix=$ac_optarg ;; 1048 1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1050 | --program-suf | --program-su | --program-s) 1051 ac_prev=program_suffix ;; 1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1054 program_suffix=$ac_optarg ;; 1055 1056 -program-transform-name | --program-transform-name \ 1057 | --program-transform-nam | --program-transform-na \ 1058 | --program-transform-n | --program-transform- \ 1059 | --program-transform | --program-transfor \ 1060 | --program-transfo | --program-transf \ 1061 | --program-trans | --program-tran \ 1062 | --progr-tra | --program-tr | --program-t) 1063 ac_prev=program_transform_name ;; 1064 -program-transform-name=* | --program-transform-name=* \ 1065 | --program-transform-nam=* | --program-transform-na=* \ 1066 | --program-transform-n=* | --program-transform-=* \ 1067 | --program-transform=* | --program-transfor=* \ 1068 | --program-transfo=* | --program-transf=* \ 1069 | --program-trans=* | --program-tran=* \ 1070 | --progr-tra=* | --program-tr=* | --program-t=*) 1071 program_transform_name=$ac_optarg ;; 1072 1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1074 ac_prev=pdfdir ;; 1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1076 pdfdir=$ac_optarg ;; 1077 1078 -psdir | --psdir | --psdi | --psd | --ps) 1079 ac_prev=psdir ;; 1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1081 psdir=$ac_optarg ;; 1082 1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1084 | -silent | --silent | --silen | --sile | --sil) 1085 silent=yes ;; 1086 1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1088 ac_prev=sbindir ;; 1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1090 | --sbi=* | --sb=*) 1091 sbindir=$ac_optarg ;; 1092 1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1095 | --sharedst | --shareds | --shared | --share | --shar \ 1096 | --sha | --sh) 1097 ac_prev=sharedstatedir ;; 1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1101 | --sha=* | --sh=*) 1102 sharedstatedir=$ac_optarg ;; 1103 1104 -site | --site | --sit) 1105 ac_prev=site ;; 1106 -site=* | --site=* | --sit=*) 1107 site=$ac_optarg ;; 1108 1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1110 ac_prev=srcdir ;; 1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1112 srcdir=$ac_optarg ;; 1113 1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1115 | --syscon | --sysco | --sysc | --sys | --sy) 1116 ac_prev=sysconfdir ;; 1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1119 sysconfdir=$ac_optarg ;; 1120 1121 -target | --target | --targe | --targ | --tar | --ta | --t) 1122 ac_prev=target_alias ;; 1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1124 target_alias=$ac_optarg ;; 1125 1126 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1127 verbose=yes ;; 1128 1129 -version | --version | --versio | --versi | --vers | -V) 1130 ac_init_version=: ;; 1131 1132 -with-* | --with-*) 1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1134 # Reject names that are not valid shell variable names. 1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1136 as_fn_error $? "invalid package name: $ac_useropt" 1137 ac_useropt_orig=$ac_useropt 1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1139 case $ac_user_opts in 1140 *" 1141"with_$ac_useropt" 1142"*) ;; 1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1144 ac_unrecognized_sep=', ';; 1145 esac 1146 eval with_$ac_useropt=\$ac_optarg ;; 1147 1148 -without-* | --without-*) 1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1150 # Reject names that are not valid shell variable names. 1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1152 as_fn_error $? "invalid package name: $ac_useropt" 1153 ac_useropt_orig=$ac_useropt 1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1155 case $ac_user_opts in 1156 *" 1157"with_$ac_useropt" 1158"*) ;; 1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1160 ac_unrecognized_sep=', ';; 1161 esac 1162 eval with_$ac_useropt=no ;; 1163 1164 --x) 1165 # Obsolete; use --with-x. 1166 with_x=yes ;; 1167 1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1169 | --x-incl | --x-inc | --x-in | --x-i) 1170 ac_prev=x_includes ;; 1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1173 x_includes=$ac_optarg ;; 1174 1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1177 ac_prev=x_libraries ;; 1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1180 x_libraries=$ac_optarg ;; 1181 1182 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1183Try \`$0 --help' for more information" 1184 ;; 1185 1186 *=*) 1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1188 # Reject names that are not valid shell variable names. 1189 case $ac_envvar in #( 1190 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1191 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1192 esac 1193 eval $ac_envvar=\$ac_optarg 1194 export $ac_envvar ;; 1195 1196 *) 1197 # FIXME: should be removed in autoconf 3.0. 1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1201 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1202 ;; 1203 1204 esac 1205done 1206 1207if test -n "$ac_prev"; then 1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1209 as_fn_error $? "missing argument to $ac_option" 1210fi 1211 1212if test -n "$ac_unrecognized_opts"; then 1213 case $enable_option_checking in 1214 no) ;; 1215 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1217 esac 1218fi 1219 1220# Check all directory arguments for consistency. 1221for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1222 datadir sysconfdir sharedstatedir localstatedir includedir \ 1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1224 libdir localedir mandir 1225do 1226 eval ac_val=\$$ac_var 1227 # Remove trailing slashes. 1228 case $ac_val in 1229 */ ) 1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1231 eval $ac_var=\$ac_val;; 1232 esac 1233 # Be sure to have absolute directory names. 1234 case $ac_val in 1235 [\\/$]* | ?:[\\/]* ) continue;; 1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1237 esac 1238 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1239done 1240 1241# There might be people who depend on the old broken behavior: `$host' 1242# used to hold the argument of --host etc. 1243# FIXME: To remove some day. 1244build=$build_alias 1245host=$host_alias 1246target=$target_alias 1247 1248# FIXME: To remove some day. 1249if test "x$host_alias" != x; then 1250 if test "x$build_alias" = x; then 1251 cross_compiling=maybe 1252 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1253 If a cross compiler is detected then cross compile mode will be used" >&2 1254 elif test "x$build_alias" != "x$host_alias"; then 1255 cross_compiling=yes 1256 fi 1257fi 1258 1259ac_tool_prefix= 1260test -n "$host_alias" && ac_tool_prefix=$host_alias- 1261 1262test "$silent" = yes && exec 6>/dev/null 1263 1264 1265ac_pwd=`pwd` && test -n "$ac_pwd" && 1266ac_ls_di=`ls -di .` && 1267ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1268 as_fn_error $? "working directory cannot be determined" 1269test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1270 as_fn_error $? "pwd does not report name of working directory" 1271 1272 1273# Find the source files, if location was not specified. 1274if test -z "$srcdir"; then 1275 ac_srcdir_defaulted=yes 1276 # Try the directory containing this script, then the parent directory. 1277 ac_confdir=`$as_dirname -- "$as_myself" || 1278$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1279 X"$as_myself" : 'X\(//\)[^/]' \| \ 1280 X"$as_myself" : 'X\(//\)$' \| \ 1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1282$as_echo X"$as_myself" | 1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1284 s//\1/ 1285 q 1286 } 1287 /^X\(\/\/\)[^/].*/{ 1288 s//\1/ 1289 q 1290 } 1291 /^X\(\/\/\)$/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\).*/{ 1296 s//\1/ 1297 q 1298 } 1299 s/.*/./; q'` 1300 srcdir=$ac_confdir 1301 if test ! -r "$srcdir/$ac_unique_file"; then 1302 srcdir=.. 1303 fi 1304else 1305 ac_srcdir_defaulted=no 1306fi 1307if test ! -r "$srcdir/$ac_unique_file"; then 1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1309 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1310fi 1311ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1312ac_abs_confdir=`( 1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1314 pwd)` 1315# When building in place, set srcdir=. 1316if test "$ac_abs_confdir" = "$ac_pwd"; then 1317 srcdir=. 1318fi 1319# Remove unnecessary trailing slashes from srcdir. 1320# Double slashes in file names in object file debugging info 1321# mess up M-x gdb in Emacs. 1322case $srcdir in 1323*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1324esac 1325for ac_var in $ac_precious_vars; do 1326 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1327 eval ac_env_${ac_var}_value=\$${ac_var} 1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1329 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1330done 1331 1332# 1333# Report the --help message. 1334# 1335if test "$ac_init_help" = "long"; then 1336 # Omit some internal or obsolete options to make the list less imposing. 1337 # This message is too long to be a string in the A/UX 3.1 sh. 1338 cat <<_ACEOF 1339\`configure' configures xf86-video-trident 1.3.5 to adapt to many kinds of systems. 1340 1341Usage: $0 [OPTION]... [VAR=VALUE]... 1342 1343To assign environment variables (e.g., CC, CFLAGS...), specify them as 1344VAR=VALUE. See below for descriptions of some of the useful variables. 1345 1346Defaults for the options are specified in brackets. 1347 1348Configuration: 1349 -h, --help display this help and exit 1350 --help=short display options specific to this package 1351 --help=recursive display the short help of all the included packages 1352 -V, --version display version information and exit 1353 -q, --quiet, --silent do not print \`checking ...' messages 1354 --cache-file=FILE cache test results in FILE [disabled] 1355 -C, --config-cache alias for \`--cache-file=config.cache' 1356 -n, --no-create do not create output files 1357 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1358 1359Installation directories: 1360 --prefix=PREFIX install architecture-independent files in PREFIX 1361 [$ac_default_prefix] 1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1363 [PREFIX] 1364 1365By default, \`make install' will install all the files in 1366\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1367an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1368for instance \`--prefix=\$HOME'. 1369 1370For better control, use the options below. 1371 1372Fine tuning of the installation directories: 1373 --bindir=DIR user executables [EPREFIX/bin] 1374 --sbindir=DIR system admin executables [EPREFIX/sbin] 1375 --libexecdir=DIR program executables [EPREFIX/libexec] 1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1379 --libdir=DIR object code libraries [EPREFIX/lib] 1380 --includedir=DIR C header files [PREFIX/include] 1381 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1384 --infodir=DIR info documentation [DATAROOTDIR/info] 1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1386 --mandir=DIR man documentation [DATAROOTDIR/man] 1387 --docdir=DIR documentation root 1388 [DATAROOTDIR/doc/xf86-video-trident] 1389 --htmldir=DIR html documentation [DOCDIR] 1390 --dvidir=DIR dvi documentation [DOCDIR] 1391 --pdfdir=DIR pdf documentation [DOCDIR] 1392 --psdir=DIR ps documentation [DOCDIR] 1393_ACEOF 1394 1395 cat <<\_ACEOF 1396 1397Program names: 1398 --program-prefix=PREFIX prepend PREFIX to installed program names 1399 --program-suffix=SUFFIX append SUFFIX to installed program names 1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1401 1402System types: 1403 --build=BUILD configure for building on BUILD [guessed] 1404 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1405_ACEOF 1406fi 1407 1408if test -n "$ac_init_help"; then 1409 case $ac_init_help in 1410 short | recursive ) echo "Configuration of xf86-video-trident 1.3.5:";; 1411 esac 1412 cat <<\_ACEOF 1413 1414Optional Features: 1415 --disable-option-checking ignore unrecognized --enable/--with options 1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1418 --enable-maintainer-mode enable make rules and dependencies not useful 1419 (and sometimes confusing) to the casual installer 1420 --disable-dependency-tracking speeds up one-time build 1421 --enable-dependency-tracking do not reject slow dependency extractors 1422 --disable-selective-werror 1423 Turn off selective compiler errors. (default: 1424 enabled) 1425 --enable-strict-compilation 1426 Enable all warnings from compiler and make them 1427 errors (default: disabled) 1428 --enable-silent-rules less verbose build output (undo: `make V=1') 1429 --disable-silent-rules verbose build output (undo: `make V=0') 1430 --enable-static[=PKGS] build static libraries [default=no] 1431 --enable-shared[=PKGS] build shared libraries [default=yes] 1432 --enable-fast-install[=PKGS] 1433 optimize for fast installation [default=yes] 1434 --disable-libtool-lock avoid locking (might break parallel builds) 1435 1436Optional Packages: 1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1439 --with-pic try to use only PIC/non-PIC objects [default=use 1440 both] 1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1442 --with-sysroot=DIR Search for dependent libraries within DIR 1443 (or the compiler's sysroot if not specified). 1444 --with-xorg-module-dir=DIR 1445 Default xorg module directory 1446 [[default=$libdir/xorg/modules]] 1447 1448Some influential environment variables: 1449 CC C compiler command 1450 CFLAGS C compiler flags 1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1452 nonstandard directory <lib dir> 1453 LIBS libraries to pass to the linker, e.g. -l<library> 1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1455 you have headers in a nonstandard directory <include dir> 1456 CPP C preprocessor 1457 PKG_CONFIG path to pkg-config utility 1458 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1459 XORG_LIBS linker flags for XORG, overriding pkg-config 1460 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1461 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1462 PCIACCESS_CFLAGS 1463 C compiler flags for PCIACCESS, overriding pkg-config 1464 PCIACCESS_LIBS 1465 linker flags for PCIACCESS, overriding pkg-config 1466 1467Use these variables to override the choices made by `configure' or to help 1468it to find libraries and programs with nonstandard names/locations. 1469 1470Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1471_ACEOF 1472ac_status=$? 1473fi 1474 1475if test "$ac_init_help" = "recursive"; then 1476 # If there are subdirs, report their specific --help. 1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1478 test -d "$ac_dir" || 1479 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1480 continue 1481 ac_builddir=. 1482 1483case "$ac_dir" in 1484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1485*) 1486 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1487 # A ".." for each directory in $ac_dir_suffix. 1488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1489 case $ac_top_builddir_sub in 1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1492 esac ;; 1493esac 1494ac_abs_top_builddir=$ac_pwd 1495ac_abs_builddir=$ac_pwd$ac_dir_suffix 1496# for backward compatibility: 1497ac_top_builddir=$ac_top_build_prefix 1498 1499case $srcdir in 1500 .) # We are building in place. 1501 ac_srcdir=. 1502 ac_top_srcdir=$ac_top_builddir_sub 1503 ac_abs_top_srcdir=$ac_pwd ;; 1504 [\\/]* | ?:[\\/]* ) # Absolute name. 1505 ac_srcdir=$srcdir$ac_dir_suffix; 1506 ac_top_srcdir=$srcdir 1507 ac_abs_top_srcdir=$srcdir ;; 1508 *) # Relative name. 1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1510 ac_top_srcdir=$ac_top_build_prefix$srcdir 1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1512esac 1513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1514 1515 cd "$ac_dir" || { ac_status=$?; continue; } 1516 # Check for guested configure. 1517 if test -f "$ac_srcdir/configure.gnu"; then 1518 echo && 1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1520 elif test -f "$ac_srcdir/configure"; then 1521 echo && 1522 $SHELL "$ac_srcdir/configure" --help=recursive 1523 else 1524 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1525 fi || ac_status=$? 1526 cd "$ac_pwd" || { ac_status=$?; break; } 1527 done 1528fi 1529 1530test -n "$ac_init_help" && exit $ac_status 1531if $ac_init_version; then 1532 cat <<\_ACEOF 1533xf86-video-trident configure 1.3.5 1534generated by GNU Autoconf 2.68 1535 1536Copyright (C) 2010 Free Software Foundation, Inc. 1537This configure script is free software; the Free Software Foundation 1538gives unlimited permission to copy, distribute and modify it. 1539_ACEOF 1540 exit 1541fi 1542 1543## ------------------------ ## 1544## Autoconf initialization. ## 1545## ------------------------ ## 1546 1547# ac_fn_c_try_compile LINENO 1548# -------------------------- 1549# Try to compile conftest.$ac_ext, and return whether this succeeded. 1550ac_fn_c_try_compile () 1551{ 1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1553 rm -f conftest.$ac_objext 1554 if { { ac_try="$ac_compile" 1555case "(($ac_try" in 1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1557 *) ac_try_echo=$ac_try;; 1558esac 1559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1560$as_echo "$ac_try_echo"; } >&5 1561 (eval "$ac_compile") 2>conftest.err 1562 ac_status=$? 1563 if test -s conftest.err; then 1564 grep -v '^ *+' conftest.err >conftest.er1 1565 cat conftest.er1 >&5 1566 mv -f conftest.er1 conftest.err 1567 fi 1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1569 test $ac_status = 0; } && { 1570 test -z "$ac_c_werror_flag" || 1571 test ! -s conftest.err 1572 } && test -s conftest.$ac_objext; then : 1573 ac_retval=0 1574else 1575 $as_echo "$as_me: failed program was:" >&5 1576sed 's/^/| /' conftest.$ac_ext >&5 1577 1578 ac_retval=1 1579fi 1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1581 as_fn_set_status $ac_retval 1582 1583} # ac_fn_c_try_compile 1584 1585# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1586# --------------------------------------------- 1587# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1588# accordingly. 1589ac_fn_c_check_decl () 1590{ 1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1592 as_decl_name=`echo $2|sed 's/ *(.*//'` 1593 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1595$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1596if eval \${$3+:} false; then : 1597 $as_echo_n "(cached) " >&6 1598else 1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1600/* end confdefs.h. */ 1601$4 1602int 1603main () 1604{ 1605#ifndef $as_decl_name 1606#ifdef __cplusplus 1607 (void) $as_decl_use; 1608#else 1609 (void) $as_decl_name; 1610#endif 1611#endif 1612 1613 ; 1614 return 0; 1615} 1616_ACEOF 1617if ac_fn_c_try_compile "$LINENO"; then : 1618 eval "$3=yes" 1619else 1620 eval "$3=no" 1621fi 1622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1623fi 1624eval ac_res=\$$3 1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1626$as_echo "$ac_res" >&6; } 1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1628 1629} # ac_fn_c_check_decl 1630 1631# ac_fn_c_try_cpp LINENO 1632# ---------------------- 1633# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1634ac_fn_c_try_cpp () 1635{ 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1637 if { { ac_try="$ac_cpp conftest.$ac_ext" 1638case "(($ac_try" in 1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1640 *) ac_try_echo=$ac_try;; 1641esac 1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1643$as_echo "$ac_try_echo"; } >&5 1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1645 ac_status=$? 1646 if test -s conftest.err; then 1647 grep -v '^ *+' conftest.err >conftest.er1 1648 cat conftest.er1 >&5 1649 mv -f conftest.er1 conftest.err 1650 fi 1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1652 test $ac_status = 0; } > conftest.i && { 1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1654 test ! -s conftest.err 1655 }; then : 1656 ac_retval=0 1657else 1658 $as_echo "$as_me: failed program was:" >&5 1659sed 's/^/| /' conftest.$ac_ext >&5 1660 1661 ac_retval=1 1662fi 1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1664 as_fn_set_status $ac_retval 1665 1666} # ac_fn_c_try_cpp 1667 1668# ac_fn_c_try_run LINENO 1669# ---------------------- 1670# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1671# that executables *can* be run. 1672ac_fn_c_try_run () 1673{ 1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1675 if { { ac_try="$ac_link" 1676case "(($ac_try" in 1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1678 *) ac_try_echo=$ac_try;; 1679esac 1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1681$as_echo "$ac_try_echo"; } >&5 1682 (eval "$ac_link") 2>&5 1683 ac_status=$? 1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1685 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1686 { { case "(($ac_try" in 1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1688 *) ac_try_echo=$ac_try;; 1689esac 1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1691$as_echo "$ac_try_echo"; } >&5 1692 (eval "$ac_try") 2>&5 1693 ac_status=$? 1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1695 test $ac_status = 0; }; }; then : 1696 ac_retval=0 1697else 1698 $as_echo "$as_me: program exited with status $ac_status" >&5 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=$ac_status 1703fi 1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1706 as_fn_set_status $ac_retval 1707 1708} # ac_fn_c_try_run 1709 1710# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1711# ------------------------------------------------------- 1712# Tests whether HEADER exists and can be compiled using the include files in 1713# INCLUDES, setting the cache variable VAR accordingly. 1714ac_fn_c_check_header_compile () 1715{ 1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1718$as_echo_n "checking for $2... " >&6; } 1719if eval \${$3+:} false; then : 1720 $as_echo_n "(cached) " >&6 1721else 1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1723/* end confdefs.h. */ 1724$4 1725#include <$2> 1726_ACEOF 1727if ac_fn_c_try_compile "$LINENO"; then : 1728 eval "$3=yes" 1729else 1730 eval "$3=no" 1731fi 1732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1733fi 1734eval ac_res=\$$3 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1736$as_echo "$ac_res" >&6; } 1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1738 1739} # ac_fn_c_check_header_compile 1740 1741# ac_fn_c_try_link LINENO 1742# ----------------------- 1743# Try to link conftest.$ac_ext, and return whether this succeeded. 1744ac_fn_c_try_link () 1745{ 1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1747 rm -f conftest.$ac_objext conftest$ac_exeext 1748 if { { ac_try="$ac_link" 1749case "(($ac_try" in 1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1751 *) ac_try_echo=$ac_try;; 1752esac 1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1754$as_echo "$ac_try_echo"; } >&5 1755 (eval "$ac_link") 2>conftest.err 1756 ac_status=$? 1757 if test -s conftest.err; then 1758 grep -v '^ *+' conftest.err >conftest.er1 1759 cat conftest.er1 >&5 1760 mv -f conftest.er1 conftest.err 1761 fi 1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1763 test $ac_status = 0; } && { 1764 test -z "$ac_c_werror_flag" || 1765 test ! -s conftest.err 1766 } && test -s conftest$ac_exeext && { 1767 test "$cross_compiling" = yes || 1768 $as_test_x conftest$ac_exeext 1769 }; then : 1770 ac_retval=0 1771else 1772 $as_echo "$as_me: failed program was:" >&5 1773sed 's/^/| /' conftest.$ac_ext >&5 1774 1775 ac_retval=1 1776fi 1777 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1778 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1779 # interfere with the next link command; also delete a directory that is 1780 # left behind by Apple's compiler. We do this before executing the actions. 1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1783 as_fn_set_status $ac_retval 1784 1785} # ac_fn_c_try_link 1786 1787# ac_fn_c_check_func LINENO FUNC VAR 1788# ---------------------------------- 1789# Tests whether FUNC exists, setting the cache variable VAR accordingly 1790ac_fn_c_check_func () 1791{ 1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1794$as_echo_n "checking for $2... " >&6; } 1795if eval \${$3+:} false; then : 1796 $as_echo_n "(cached) " >&6 1797else 1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1799/* end confdefs.h. */ 1800/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1801 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1802#define $2 innocuous_$2 1803 1804/* System header to define __stub macros and hopefully few prototypes, 1805 which can conflict with char $2 (); below. 1806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1807 <limits.h> exists even on freestanding compilers. */ 1808 1809#ifdef __STDC__ 1810# include <limits.h> 1811#else 1812# include <assert.h> 1813#endif 1814 1815#undef $2 1816 1817/* Override any GCC internal prototype to avoid an error. 1818 Use char because int might match the return type of a GCC 1819 builtin and then its argument prototype would still apply. */ 1820#ifdef __cplusplus 1821extern "C" 1822#endif 1823char $2 (); 1824/* The GNU C library defines this for functions which it implements 1825 to always fail with ENOSYS. Some functions are actually named 1826 something starting with __ and the normal name is an alias. */ 1827#if defined __stub_$2 || defined __stub___$2 1828choke me 1829#endif 1830 1831int 1832main () 1833{ 1834return $2 (); 1835 ; 1836 return 0; 1837} 1838_ACEOF 1839if ac_fn_c_try_link "$LINENO"; then : 1840 eval "$3=yes" 1841else 1842 eval "$3=no" 1843fi 1844rm -f core conftest.err conftest.$ac_objext \ 1845 conftest$ac_exeext conftest.$ac_ext 1846fi 1847eval ac_res=\$$3 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1849$as_echo "$ac_res" >&6; } 1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1851 1852} # ac_fn_c_check_func 1853cat >config.log <<_ACEOF 1854This file contains any messages produced by compilers while 1855running configure, to aid debugging if configure makes a mistake. 1856 1857It was created by xf86-video-trident $as_me 1.3.5, which was 1858generated by GNU Autoconf 2.68. Invocation command line was 1859 1860 $ $0 $@ 1861 1862_ACEOF 1863exec 5>>config.log 1864{ 1865cat <<_ASUNAME 1866## --------- ## 1867## Platform. ## 1868## --------- ## 1869 1870hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1871uname -m = `(uname -m) 2>/dev/null || echo unknown` 1872uname -r = `(uname -r) 2>/dev/null || echo unknown` 1873uname -s = `(uname -s) 2>/dev/null || echo unknown` 1874uname -v = `(uname -v) 2>/dev/null || echo unknown` 1875 1876/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1877/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1878 1879/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1880/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1881/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1882/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1883/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1884/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1885/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1886 1887_ASUNAME 1888 1889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1890for as_dir in $PATH 1891do 1892 IFS=$as_save_IFS 1893 test -z "$as_dir" && as_dir=. 1894 $as_echo "PATH: $as_dir" 1895 done 1896IFS=$as_save_IFS 1897 1898} >&5 1899 1900cat >&5 <<_ACEOF 1901 1902 1903## ----------- ## 1904## Core tests. ## 1905## ----------- ## 1906 1907_ACEOF 1908 1909 1910# Keep a trace of the command line. 1911# Strip out --no-create and --no-recursion so they do not pile up. 1912# Strip out --silent because we don't want to record it for future runs. 1913# Also quote any args containing shell meta-characters. 1914# Make two passes to allow for proper duplicate-argument suppression. 1915ac_configure_args= 1916ac_configure_args0= 1917ac_configure_args1= 1918ac_must_keep_next=false 1919for ac_pass in 1 2 1920do 1921 for ac_arg 1922 do 1923 case $ac_arg in 1924 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1925 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1926 | -silent | --silent | --silen | --sile | --sil) 1927 continue ;; 1928 *\'*) 1929 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1930 esac 1931 case $ac_pass in 1932 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1933 2) 1934 as_fn_append ac_configure_args1 " '$ac_arg'" 1935 if test $ac_must_keep_next = true; then 1936 ac_must_keep_next=false # Got value, back to normal. 1937 else 1938 case $ac_arg in 1939 *=* | --config-cache | -C | -disable-* | --disable-* \ 1940 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1941 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1942 | -with-* | --with-* | -without-* | --without-* | --x) 1943 case "$ac_configure_args0 " in 1944 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1945 esac 1946 ;; 1947 -* ) ac_must_keep_next=true ;; 1948 esac 1949 fi 1950 as_fn_append ac_configure_args " '$ac_arg'" 1951 ;; 1952 esac 1953 done 1954done 1955{ ac_configure_args0=; unset ac_configure_args0;} 1956{ ac_configure_args1=; unset ac_configure_args1;} 1957 1958# When interrupted or exit'd, cleanup temporary files, and complete 1959# config.log. We remove comments because anyway the quotes in there 1960# would cause problems or look ugly. 1961# WARNING: Use '\'' to represent an apostrophe within the trap. 1962# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1963trap 'exit_status=$? 1964 # Save into config.log some information that might help in debugging. 1965 { 1966 echo 1967 1968 $as_echo "## ---------------- ## 1969## Cache variables. ## 1970## ---------------- ##" 1971 echo 1972 # The following way of writing the cache mishandles newlines in values, 1973( 1974 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1975 eval ac_val=\$$ac_var 1976 case $ac_val in #( 1977 *${as_nl}*) 1978 case $ac_var in #( 1979 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1980$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1981 esac 1982 case $ac_var in #( 1983 _ | IFS | as_nl) ;; #( 1984 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1985 *) { eval $ac_var=; unset $ac_var;} ;; 1986 esac ;; 1987 esac 1988 done 1989 (set) 2>&1 | 1990 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1991 *${as_nl}ac_space=\ *) 1992 sed -n \ 1993 "s/'\''/'\''\\\\'\'''\''/g; 1994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1995 ;; #( 1996 *) 1997 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1998 ;; 1999 esac | 2000 sort 2001) 2002 echo 2003 2004 $as_echo "## ----------------- ## 2005## Output variables. ## 2006## ----------------- ##" 2007 echo 2008 for ac_var in $ac_subst_vars 2009 do 2010 eval ac_val=\$$ac_var 2011 case $ac_val in 2012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2013 esac 2014 $as_echo "$ac_var='\''$ac_val'\''" 2015 done | sort 2016 echo 2017 2018 if test -n "$ac_subst_files"; then 2019 $as_echo "## ------------------- ## 2020## File substitutions. ## 2021## ------------------- ##" 2022 echo 2023 for ac_var in $ac_subst_files 2024 do 2025 eval ac_val=\$$ac_var 2026 case $ac_val in 2027 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2028 esac 2029 $as_echo "$ac_var='\''$ac_val'\''" 2030 done | sort 2031 echo 2032 fi 2033 2034 if test -s confdefs.h; then 2035 $as_echo "## ----------- ## 2036## confdefs.h. ## 2037## ----------- ##" 2038 echo 2039 cat confdefs.h 2040 echo 2041 fi 2042 test "$ac_signal" != 0 && 2043 $as_echo "$as_me: caught signal $ac_signal" 2044 $as_echo "$as_me: exit $exit_status" 2045 } >&5 2046 rm -f core *.core core.conftest.* && 2047 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2048 exit $exit_status 2049' 0 2050for ac_signal in 1 2 13 15; do 2051 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2052done 2053ac_signal=0 2054 2055# confdefs.h avoids OS command line length limits that DEFS can exceed. 2056rm -f -r conftest* confdefs.h 2057 2058$as_echo "/* confdefs.h */" > confdefs.h 2059 2060# Predefined preprocessor variables. 2061 2062cat >>confdefs.h <<_ACEOF 2063#define PACKAGE_NAME "$PACKAGE_NAME" 2064_ACEOF 2065 2066cat >>confdefs.h <<_ACEOF 2067#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2068_ACEOF 2069 2070cat >>confdefs.h <<_ACEOF 2071#define PACKAGE_VERSION "$PACKAGE_VERSION" 2072_ACEOF 2073 2074cat >>confdefs.h <<_ACEOF 2075#define PACKAGE_STRING "$PACKAGE_STRING" 2076_ACEOF 2077 2078cat >>confdefs.h <<_ACEOF 2079#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2080_ACEOF 2081 2082cat >>confdefs.h <<_ACEOF 2083#define PACKAGE_URL "$PACKAGE_URL" 2084_ACEOF 2085 2086 2087# Let the site file select an alternate cache file if it wants to. 2088# Prefer an explicitly selected file to automatically selected ones. 2089ac_site_file1=NONE 2090ac_site_file2=NONE 2091if test -n "$CONFIG_SITE"; then 2092 # We do not want a PATH search for config.site. 2093 case $CONFIG_SITE in #(( 2094 -*) ac_site_file1=./$CONFIG_SITE;; 2095 */*) ac_site_file1=$CONFIG_SITE;; 2096 *) ac_site_file1=./$CONFIG_SITE;; 2097 esac 2098elif test "x$prefix" != xNONE; then 2099 ac_site_file1=$prefix/share/config.site 2100 ac_site_file2=$prefix/etc/config.site 2101else 2102 ac_site_file1=$ac_default_prefix/share/config.site 2103 ac_site_file2=$ac_default_prefix/etc/config.site 2104fi 2105for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2106do 2107 test "x$ac_site_file" = xNONE && continue 2108 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2110$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2111 sed 's/^/| /' "$ac_site_file" >&5 2112 . "$ac_site_file" \ 2113 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2115as_fn_error $? "failed to load site script $ac_site_file 2116See \`config.log' for more details" "$LINENO" 5; } 2117 fi 2118done 2119 2120if test -r "$cache_file"; then 2121 # Some versions of bash will fail to source /dev/null (special files 2122 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2123 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2125$as_echo "$as_me: loading cache $cache_file" >&6;} 2126 case $cache_file in 2127 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2128 *) . "./$cache_file";; 2129 esac 2130 fi 2131else 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2133$as_echo "$as_me: creating cache $cache_file" >&6;} 2134 >$cache_file 2135fi 2136 2137# Check that the precious variables saved in the cache have kept the same 2138# value. 2139ac_cache_corrupted=false 2140for ac_var in $ac_precious_vars; do 2141 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2142 eval ac_new_set=\$ac_env_${ac_var}_set 2143 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2144 eval ac_new_val=\$ac_env_${ac_var}_value 2145 case $ac_old_set,$ac_new_set in 2146 set,) 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2148$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2149 ac_cache_corrupted=: ;; 2150 ,set) 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2152$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2153 ac_cache_corrupted=: ;; 2154 ,);; 2155 *) 2156 if test "x$ac_old_val" != "x$ac_new_val"; then 2157 # differences in whitespace do not lead to failure. 2158 ac_old_val_w=`echo x $ac_old_val` 2159 ac_new_val_w=`echo x $ac_new_val` 2160 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2162$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2163 ac_cache_corrupted=: 2164 else 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2166$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2167 eval $ac_var=\$ac_old_val 2168 fi 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2170$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2172$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2173 fi;; 2174 esac 2175 # Pass precious variables to config.status. 2176 if test "$ac_new_set" = set; then 2177 case $ac_new_val in 2178 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2179 *) ac_arg=$ac_var=$ac_new_val ;; 2180 esac 2181 case " $ac_configure_args " in 2182 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2183 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2184 esac 2185 fi 2186done 2187if $ac_cache_corrupted; then 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2191$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2192 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2193fi 2194## -------------------- ## 2195## Main body of script. ## 2196## -------------------- ## 2197 2198ac_ext=c 2199ac_cpp='$CPP $CPPFLAGS' 2200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2202ac_compiler_gnu=$ac_cv_c_compiler_gnu 2203 2204 2205 2206ac_config_headers="$ac_config_headers config.h" 2207 2208ac_aux_dir= 2209for ac_dir in . "$srcdir"/.; do 2210 if test -f "$ac_dir/install-sh"; then 2211 ac_aux_dir=$ac_dir 2212 ac_install_sh="$ac_aux_dir/install-sh -c" 2213 break 2214 elif test -f "$ac_dir/install.sh"; then 2215 ac_aux_dir=$ac_dir 2216 ac_install_sh="$ac_aux_dir/install.sh -c" 2217 break 2218 elif test -f "$ac_dir/shtool"; then 2219 ac_aux_dir=$ac_dir 2220 ac_install_sh="$ac_aux_dir/shtool install -c" 2221 break 2222 fi 2223done 2224if test -z "$ac_aux_dir"; then 2225 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2226fi 2227 2228# These three variables are undocumented and unsupported, 2229# and are intended to be withdrawn in a future Autoconf release. 2230# They can cause serious problems if a builder's source tree is in a directory 2231# whose full name contains unusual characters. 2232ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2233ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2234ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2235 2236 2237 2238# Initialize Automake 2239am__api_version='1.11' 2240 2241# Find a good install program. We prefer a C program (faster), 2242# so one script is as good as another. But avoid the broken or 2243# incompatible versions: 2244# SysV /etc/install, /usr/sbin/install 2245# SunOS /usr/etc/install 2246# IRIX /sbin/install 2247# AIX /bin/install 2248# AmigaOS /C/install, which installs bootblocks on floppy discs 2249# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2250# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2251# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2252# OS/2's system install, which has a completely different semantic 2253# ./install, which can be erroneously created by make from ./install.sh. 2254# Reject install programs that cannot install multiple files. 2255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2256$as_echo_n "checking for a BSD-compatible install... " >&6; } 2257if test -z "$INSTALL"; then 2258if ${ac_cv_path_install+:} false; then : 2259 $as_echo_n "(cached) " >&6 2260else 2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2262for as_dir in $PATH 2263do 2264 IFS=$as_save_IFS 2265 test -z "$as_dir" && as_dir=. 2266 # Account for people who put trailing slashes in PATH elements. 2267case $as_dir/ in #(( 2268 ./ | .// | /[cC]/* | \ 2269 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2270 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2271 /usr/ucb/* ) ;; 2272 *) 2273 # OSF1 and SCO ODT 3.0 have their own names for install. 2274 # Don't use installbsd from OSF since it installs stuff as root 2275 # by default. 2276 for ac_prog in ginstall scoinst install; do 2277 for ac_exec_ext in '' $ac_executable_extensions; do 2278 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2279 if test $ac_prog = install && 2280 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2281 # AIX install. It has an incompatible calling convention. 2282 : 2283 elif test $ac_prog = install && 2284 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2285 # program-specific install script used by HP pwplus--don't use. 2286 : 2287 else 2288 rm -rf conftest.one conftest.two conftest.dir 2289 echo one > conftest.one 2290 echo two > conftest.two 2291 mkdir conftest.dir 2292 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2293 test -s conftest.one && test -s conftest.two && 2294 test -s conftest.dir/conftest.one && 2295 test -s conftest.dir/conftest.two 2296 then 2297 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2298 break 3 2299 fi 2300 fi 2301 fi 2302 done 2303 done 2304 ;; 2305esac 2306 2307 done 2308IFS=$as_save_IFS 2309 2310rm -rf conftest.one conftest.two conftest.dir 2311 2312fi 2313 if test "${ac_cv_path_install+set}" = set; then 2314 INSTALL=$ac_cv_path_install 2315 else 2316 # As a last resort, use the slow shell script. Don't cache a 2317 # value for INSTALL within a source directory, because that will 2318 # break other packages using the cache if that directory is 2319 # removed, or if the value is a relative name. 2320 INSTALL=$ac_install_sh 2321 fi 2322fi 2323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2324$as_echo "$INSTALL" >&6; } 2325 2326# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2327# It thinks the first close brace ends the variable substitution. 2328test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2329 2330test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2331 2332test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2333 2334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2335$as_echo_n "checking whether build environment is sane... " >&6; } 2336# Just in case 2337sleep 1 2338echo timestamp > conftest.file 2339# Reject unsafe characters in $srcdir or the absolute working directory 2340# name. Accept space and tab only in the latter. 2341am_lf=' 2342' 2343case `pwd` in 2344 *[\\\"\#\$\&\'\`$am_lf]*) 2345 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2346esac 2347case $srcdir in 2348 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2349 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2350esac 2351 2352# Do `set' in a subshell so we don't clobber the current shell's 2353# arguments. Must try -L first in case configure is actually a 2354# symlink; some systems play weird games with the mod time of symlinks 2355# (eg FreeBSD returns the mod time of the symlink's containing 2356# directory). 2357if ( 2358 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2359 if test "$*" = "X"; then 2360 # -L didn't work. 2361 set X `ls -t "$srcdir/configure" conftest.file` 2362 fi 2363 rm -f conftest.file 2364 if test "$*" != "X $srcdir/configure conftest.file" \ 2365 && test "$*" != "X conftest.file $srcdir/configure"; then 2366 2367 # If neither matched, then we have a broken ls. This can happen 2368 # if, for instance, CONFIG_SHELL is bash and it inherits a 2369 # broken ls alias from the environment. This has actually 2370 # happened. Such a system could not be considered "sane". 2371 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2372alias in your environment" "$LINENO" 5 2373 fi 2374 2375 test "$2" = conftest.file 2376 ) 2377then 2378 # Ok. 2379 : 2380else 2381 as_fn_error $? "newly created file is older than distributed files! 2382Check your system clock" "$LINENO" 5 2383fi 2384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2385$as_echo "yes" >&6; } 2386test "$program_prefix" != NONE && 2387 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2388# Use a double $ so make ignores it. 2389test "$program_suffix" != NONE && 2390 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2391# Double any \ or $. 2392# By default was `s,x,x', remove it if useless. 2393ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2394program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2395 2396# expand $ac_aux_dir to an absolute path 2397am_aux_dir=`cd $ac_aux_dir && pwd` 2398 2399if test x"${MISSING+set}" != xset; then 2400 case $am_aux_dir in 2401 *\ * | *\ *) 2402 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2403 *) 2404 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2405 esac 2406fi 2407# Use eval to expand $SHELL 2408if eval "$MISSING --run true"; then 2409 am_missing_run="$MISSING --run " 2410else 2411 am_missing_run= 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2413$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2414fi 2415 2416if test x"${install_sh}" != xset; then 2417 case $am_aux_dir in 2418 *\ * | *\ *) 2419 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2420 *) 2421 install_sh="\${SHELL} $am_aux_dir/install-sh" 2422 esac 2423fi 2424 2425# Installed binaries are usually stripped using `strip' when the user 2426# run `make install-strip'. However `strip' might not be the right 2427# tool to use in cross-compilation environments, therefore Automake 2428# will honor the `STRIP' environment variable to overrule this program. 2429if test "$cross_compiling" != no; then 2430 if test -n "$ac_tool_prefix"; then 2431 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2432set dummy ${ac_tool_prefix}strip; ac_word=$2 2433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2434$as_echo_n "checking for $ac_word... " >&6; } 2435if ${ac_cv_prog_STRIP+:} false; then : 2436 $as_echo_n "(cached) " >&6 2437else 2438 if test -n "$STRIP"; then 2439 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2440else 2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2442for as_dir in $PATH 2443do 2444 IFS=$as_save_IFS 2445 test -z "$as_dir" && as_dir=. 2446 for ac_exec_ext in '' $ac_executable_extensions; do 2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2448 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2450 break 2 2451 fi 2452done 2453 done 2454IFS=$as_save_IFS 2455 2456fi 2457fi 2458STRIP=$ac_cv_prog_STRIP 2459if test -n "$STRIP"; then 2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2461$as_echo "$STRIP" >&6; } 2462else 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2464$as_echo "no" >&6; } 2465fi 2466 2467 2468fi 2469if test -z "$ac_cv_prog_STRIP"; then 2470 ac_ct_STRIP=$STRIP 2471 # Extract the first word of "strip", so it can be a program name with args. 2472set dummy strip; ac_word=$2 2473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2474$as_echo_n "checking for $ac_word... " >&6; } 2475if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2476 $as_echo_n "(cached) " >&6 2477else 2478 if test -n "$ac_ct_STRIP"; then 2479 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2480else 2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2482for as_dir in $PATH 2483do 2484 IFS=$as_save_IFS 2485 test -z "$as_dir" && as_dir=. 2486 for ac_exec_ext in '' $ac_executable_extensions; do 2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2488 ac_cv_prog_ac_ct_STRIP="strip" 2489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2490 break 2 2491 fi 2492done 2493 done 2494IFS=$as_save_IFS 2495 2496fi 2497fi 2498ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2499if test -n "$ac_ct_STRIP"; then 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2501$as_echo "$ac_ct_STRIP" >&6; } 2502else 2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2504$as_echo "no" >&6; } 2505fi 2506 2507 if test "x$ac_ct_STRIP" = x; then 2508 STRIP=":" 2509 else 2510 case $cross_compiling:$ac_tool_warned in 2511yes:) 2512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2514ac_tool_warned=yes ;; 2515esac 2516 STRIP=$ac_ct_STRIP 2517 fi 2518else 2519 STRIP="$ac_cv_prog_STRIP" 2520fi 2521 2522fi 2523INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2524 2525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2526$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2527if test -z "$MKDIR_P"; then 2528 if ${ac_cv_path_mkdir+:} false; then : 2529 $as_echo_n "(cached) " >&6 2530else 2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2532for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2533do 2534 IFS=$as_save_IFS 2535 test -z "$as_dir" && as_dir=. 2536 for ac_prog in mkdir gmkdir; do 2537 for ac_exec_ext in '' $ac_executable_extensions; do 2538 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2539 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2540 'mkdir (GNU coreutils) '* | \ 2541 'mkdir (coreutils) '* | \ 2542 'mkdir (fileutils) '4.1*) 2543 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2544 break 3;; 2545 esac 2546 done 2547 done 2548 done 2549IFS=$as_save_IFS 2550 2551fi 2552 2553 test -d ./--version && rmdir ./--version 2554 if test "${ac_cv_path_mkdir+set}" = set; then 2555 MKDIR_P="$ac_cv_path_mkdir -p" 2556 else 2557 # As a last resort, use the slow shell script. Don't cache a 2558 # value for MKDIR_P within a source directory, because that will 2559 # break other packages using the cache if that directory is 2560 # removed, or if the value is a relative name. 2561 MKDIR_P="$ac_install_sh -d" 2562 fi 2563fi 2564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2565$as_echo "$MKDIR_P" >&6; } 2566 2567mkdir_p="$MKDIR_P" 2568case $mkdir_p in 2569 [\\/$]* | ?:[\\/]*) ;; 2570 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2571esac 2572 2573for ac_prog in gawk mawk nawk awk 2574do 2575 # Extract the first word of "$ac_prog", so it can be a program name with args. 2576set dummy $ac_prog; ac_word=$2 2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2578$as_echo_n "checking for $ac_word... " >&6; } 2579if ${ac_cv_prog_AWK+:} false; then : 2580 $as_echo_n "(cached) " >&6 2581else 2582 if test -n "$AWK"; then 2583 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2584else 2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2586for as_dir in $PATH 2587do 2588 IFS=$as_save_IFS 2589 test -z "$as_dir" && as_dir=. 2590 for ac_exec_ext in '' $ac_executable_extensions; do 2591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2592 ac_cv_prog_AWK="$ac_prog" 2593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2594 break 2 2595 fi 2596done 2597 done 2598IFS=$as_save_IFS 2599 2600fi 2601fi 2602AWK=$ac_cv_prog_AWK 2603if test -n "$AWK"; then 2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2605$as_echo "$AWK" >&6; } 2606else 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2608$as_echo "no" >&6; } 2609fi 2610 2611 2612 test -n "$AWK" && break 2613done 2614 2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2616$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2617set x ${MAKE-make} 2618ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2619if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2620 $as_echo_n "(cached) " >&6 2621else 2622 cat >conftest.make <<\_ACEOF 2623SHELL = /bin/sh 2624all: 2625 @echo '@@@%%%=$(MAKE)=@@@%%%' 2626_ACEOF 2627# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2628case `${MAKE-make} -f conftest.make 2>/dev/null` in 2629 *@@@%%%=?*=@@@%%%*) 2630 eval ac_cv_prog_make_${ac_make}_set=yes;; 2631 *) 2632 eval ac_cv_prog_make_${ac_make}_set=no;; 2633esac 2634rm -f conftest.make 2635fi 2636if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2638$as_echo "yes" >&6; } 2639 SET_MAKE= 2640else 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2642$as_echo "no" >&6; } 2643 SET_MAKE="MAKE=${MAKE-make}" 2644fi 2645 2646rm -rf .tst 2>/dev/null 2647mkdir .tst 2>/dev/null 2648if test -d .tst; then 2649 am__leading_dot=. 2650else 2651 am__leading_dot=_ 2652fi 2653rmdir .tst 2>/dev/null 2654 2655if test "`cd $srcdir && pwd`" != "`pwd`"; then 2656 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2657 # is not polluted with repeated "-I." 2658 am__isrc=' -I$(srcdir)' 2659 # test to see if srcdir already configured 2660 if test -f $srcdir/config.status; then 2661 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2662 fi 2663fi 2664 2665# test whether we have cygpath 2666if test -z "$CYGPATH_W"; then 2667 if (cygpath --version) >/dev/null 2>/dev/null; then 2668 CYGPATH_W='cygpath -w' 2669 else 2670 CYGPATH_W=echo 2671 fi 2672fi 2673 2674 2675# Define the identity of the package. 2676 PACKAGE='xf86-video-trident' 2677 VERSION='1.3.5' 2678 2679 2680cat >>confdefs.h <<_ACEOF 2681#define PACKAGE "$PACKAGE" 2682_ACEOF 2683 2684 2685cat >>confdefs.h <<_ACEOF 2686#define VERSION "$VERSION" 2687_ACEOF 2688 2689# Some tools Automake needs. 2690 2691ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2692 2693 2694AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2695 2696 2697AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2698 2699 2700AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2701 2702 2703MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2704 2705# We need awk for the "check" target. The system "awk" is bad on 2706# some platforms. 2707# Always define AMTAR for backward compatibility. 2708 2709AMTAR=${AMTAR-"${am_missing_run}tar"} 2710 2711am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2712 2713 2714 2715 2716 2717 2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2719$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2720 # Check whether --enable-maintainer-mode was given. 2721if test "${enable_maintainer_mode+set}" = set; then : 2722 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2723else 2724 USE_MAINTAINER_MODE=no 2725fi 2726 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2728$as_echo "$USE_MAINTAINER_MODE" >&6; } 2729 if test $USE_MAINTAINER_MODE = yes; then 2730 MAINTAINER_MODE_TRUE= 2731 MAINTAINER_MODE_FALSE='#' 2732else 2733 MAINTAINER_MODE_TRUE='#' 2734 MAINTAINER_MODE_FALSE= 2735fi 2736 2737 MAINT=$MAINTAINER_MODE_TRUE 2738 2739 2740 2741# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753DEPDIR="${am__leading_dot}deps" 2754 2755ac_config_commands="$ac_config_commands depfiles" 2756 2757 2758am_make=${MAKE-make} 2759cat > confinc << 'END' 2760am__doit: 2761 @echo this is the am__doit target 2762.PHONY: am__doit 2763END 2764# If we don't find an include directive, just comment out the code. 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2766$as_echo_n "checking for style of include used by $am_make... " >&6; } 2767am__include="#" 2768am__quote= 2769_am_result=none 2770# First try GNU make style include. 2771echo "include confinc" > confmf 2772# Ignore all kinds of additional output from `make'. 2773case `$am_make -s -f confmf 2> /dev/null` in #( 2774*the\ am__doit\ target*) 2775 am__include=include 2776 am__quote= 2777 _am_result=GNU 2778 ;; 2779esac 2780# Now try BSD make style include. 2781if test "$am__include" = "#"; then 2782 echo '.include "confinc"' > confmf 2783 case `$am_make -s -f confmf 2> /dev/null` in #( 2784 *the\ am__doit\ target*) 2785 am__include=.include 2786 am__quote="\"" 2787 _am_result=BSD 2788 ;; 2789 esac 2790fi 2791 2792 2793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2794$as_echo "$_am_result" >&6; } 2795rm -f confinc confmf 2796 2797# Check whether --enable-dependency-tracking was given. 2798if test "${enable_dependency_tracking+set}" = set; then : 2799 enableval=$enable_dependency_tracking; 2800fi 2801 2802if test "x$enable_dependency_tracking" != xno; then 2803 am_depcomp="$ac_aux_dir/depcomp" 2804 AMDEPBACKSLASH='\' 2805fi 2806 if test "x$enable_dependency_tracking" != xno; then 2807 AMDEP_TRUE= 2808 AMDEP_FALSE='#' 2809else 2810 AMDEP_TRUE='#' 2811 AMDEP_FALSE= 2812fi 2813 2814 2815ac_ext=c 2816ac_cpp='$CPP $CPPFLAGS' 2817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2819ac_compiler_gnu=$ac_cv_c_compiler_gnu 2820if test -n "$ac_tool_prefix"; then 2821 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2822set dummy ${ac_tool_prefix}gcc; ac_word=$2 2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2824$as_echo_n "checking for $ac_word... " >&6; } 2825if ${ac_cv_prog_CC+:} false; then : 2826 $as_echo_n "(cached) " >&6 2827else 2828 if test -n "$CC"; then 2829 ac_cv_prog_CC="$CC" # Let the user override the test. 2830else 2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2832for as_dir in $PATH 2833do 2834 IFS=$as_save_IFS 2835 test -z "$as_dir" && as_dir=. 2836 for ac_exec_ext in '' $ac_executable_extensions; do 2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2838 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2840 break 2 2841 fi 2842done 2843 done 2844IFS=$as_save_IFS 2845 2846fi 2847fi 2848CC=$ac_cv_prog_CC 2849if test -n "$CC"; then 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2851$as_echo "$CC" >&6; } 2852else 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2854$as_echo "no" >&6; } 2855fi 2856 2857 2858fi 2859if test -z "$ac_cv_prog_CC"; then 2860 ac_ct_CC=$CC 2861 # Extract the first word of "gcc", so it can be a program name with args. 2862set dummy gcc; ac_word=$2 2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2864$as_echo_n "checking for $ac_word... " >&6; } 2865if ${ac_cv_prog_ac_ct_CC+:} false; then : 2866 $as_echo_n "(cached) " >&6 2867else 2868 if test -n "$ac_ct_CC"; then 2869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2870else 2871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2872for as_dir in $PATH 2873do 2874 IFS=$as_save_IFS 2875 test -z "$as_dir" && as_dir=. 2876 for ac_exec_ext in '' $ac_executable_extensions; do 2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2878 ac_cv_prog_ac_ct_CC="gcc" 2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2880 break 2 2881 fi 2882done 2883 done 2884IFS=$as_save_IFS 2885 2886fi 2887fi 2888ac_ct_CC=$ac_cv_prog_ac_ct_CC 2889if test -n "$ac_ct_CC"; then 2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2891$as_echo "$ac_ct_CC" >&6; } 2892else 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2894$as_echo "no" >&6; } 2895fi 2896 2897 if test "x$ac_ct_CC" = x; then 2898 CC="" 2899 else 2900 case $cross_compiling:$ac_tool_warned in 2901yes:) 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2904ac_tool_warned=yes ;; 2905esac 2906 CC=$ac_ct_CC 2907 fi 2908else 2909 CC="$ac_cv_prog_CC" 2910fi 2911 2912if test -z "$CC"; then 2913 if test -n "$ac_tool_prefix"; then 2914 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2915set dummy ${ac_tool_prefix}cc; ac_word=$2 2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2917$as_echo_n "checking for $ac_word... " >&6; } 2918if ${ac_cv_prog_CC+:} false; then : 2919 $as_echo_n "(cached) " >&6 2920else 2921 if test -n "$CC"; then 2922 ac_cv_prog_CC="$CC" # Let the user override the test. 2923else 2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2925for as_dir in $PATH 2926do 2927 IFS=$as_save_IFS 2928 test -z "$as_dir" && as_dir=. 2929 for ac_exec_ext in '' $ac_executable_extensions; do 2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2931 ac_cv_prog_CC="${ac_tool_prefix}cc" 2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2933 break 2 2934 fi 2935done 2936 done 2937IFS=$as_save_IFS 2938 2939fi 2940fi 2941CC=$ac_cv_prog_CC 2942if test -n "$CC"; then 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2944$as_echo "$CC" >&6; } 2945else 2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2947$as_echo "no" >&6; } 2948fi 2949 2950 2951 fi 2952fi 2953if test -z "$CC"; then 2954 # Extract the first word of "cc", so it can be a program name with args. 2955set dummy cc; ac_word=$2 2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2957$as_echo_n "checking for $ac_word... " >&6; } 2958if ${ac_cv_prog_CC+:} false; then : 2959 $as_echo_n "(cached) " >&6 2960else 2961 if test -n "$CC"; then 2962 ac_cv_prog_CC="$CC" # Let the user override the test. 2963else 2964 ac_prog_rejected=no 2965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2966for as_dir in $PATH 2967do 2968 IFS=$as_save_IFS 2969 test -z "$as_dir" && as_dir=. 2970 for ac_exec_ext in '' $ac_executable_extensions; do 2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2972 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2973 ac_prog_rejected=yes 2974 continue 2975 fi 2976 ac_cv_prog_CC="cc" 2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2978 break 2 2979 fi 2980done 2981 done 2982IFS=$as_save_IFS 2983 2984if test $ac_prog_rejected = yes; then 2985 # We found a bogon in the path, so make sure we never use it. 2986 set dummy $ac_cv_prog_CC 2987 shift 2988 if test $# != 0; then 2989 # We chose a different compiler from the bogus one. 2990 # However, it has the same basename, so the bogon will be chosen 2991 # first if we set CC to just the basename; use the full file name. 2992 shift 2993 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2994 fi 2995fi 2996fi 2997fi 2998CC=$ac_cv_prog_CC 2999if test -n "$CC"; then 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3001$as_echo "$CC" >&6; } 3002else 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3004$as_echo "no" >&6; } 3005fi 3006 3007 3008fi 3009if test -z "$CC"; then 3010 if test -n "$ac_tool_prefix"; then 3011 for ac_prog in cl.exe 3012 do 3013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3014set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3016$as_echo_n "checking for $ac_word... " >&6; } 3017if ${ac_cv_prog_CC+:} false; then : 3018 $as_echo_n "(cached) " >&6 3019else 3020 if test -n "$CC"; then 3021 ac_cv_prog_CC="$CC" # Let the user override the test. 3022else 3023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3024for as_dir in $PATH 3025do 3026 IFS=$as_save_IFS 3027 test -z "$as_dir" && as_dir=. 3028 for ac_exec_ext in '' $ac_executable_extensions; do 3029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3030 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3032 break 2 3033 fi 3034done 3035 done 3036IFS=$as_save_IFS 3037 3038fi 3039fi 3040CC=$ac_cv_prog_CC 3041if test -n "$CC"; then 3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3043$as_echo "$CC" >&6; } 3044else 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3046$as_echo "no" >&6; } 3047fi 3048 3049 3050 test -n "$CC" && break 3051 done 3052fi 3053if test -z "$CC"; then 3054 ac_ct_CC=$CC 3055 for ac_prog in cl.exe 3056do 3057 # Extract the first word of "$ac_prog", so it can be a program name with args. 3058set dummy $ac_prog; ac_word=$2 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3060$as_echo_n "checking for $ac_word... " >&6; } 3061if ${ac_cv_prog_ac_ct_CC+:} false; then : 3062 $as_echo_n "(cached) " >&6 3063else 3064 if test -n "$ac_ct_CC"; then 3065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3066else 3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3068for as_dir in $PATH 3069do 3070 IFS=$as_save_IFS 3071 test -z "$as_dir" && as_dir=. 3072 for ac_exec_ext in '' $ac_executable_extensions; do 3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3074 ac_cv_prog_ac_ct_CC="$ac_prog" 3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3076 break 2 3077 fi 3078done 3079 done 3080IFS=$as_save_IFS 3081 3082fi 3083fi 3084ac_ct_CC=$ac_cv_prog_ac_ct_CC 3085if test -n "$ac_ct_CC"; then 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3087$as_echo "$ac_ct_CC" >&6; } 3088else 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3090$as_echo "no" >&6; } 3091fi 3092 3093 3094 test -n "$ac_ct_CC" && break 3095done 3096 3097 if test "x$ac_ct_CC" = x; then 3098 CC="" 3099 else 3100 case $cross_compiling:$ac_tool_warned in 3101yes:) 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3104ac_tool_warned=yes ;; 3105esac 3106 CC=$ac_ct_CC 3107 fi 3108fi 3109 3110fi 3111 3112 3113test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3115as_fn_error $? "no acceptable C compiler found in \$PATH 3116See \`config.log' for more details" "$LINENO" 5; } 3117 3118# Provide some information about the compiler. 3119$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3120set X $ac_compile 3121ac_compiler=$2 3122for ac_option in --version -v -V -qversion; do 3123 { { ac_try="$ac_compiler $ac_option >&5" 3124case "(($ac_try" in 3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3126 *) ac_try_echo=$ac_try;; 3127esac 3128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3129$as_echo "$ac_try_echo"; } >&5 3130 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3131 ac_status=$? 3132 if test -s conftest.err; then 3133 sed '10a\ 3134... rest of stderr output deleted ... 3135 10q' conftest.err >conftest.er1 3136 cat conftest.er1 >&5 3137 fi 3138 rm -f conftest.er1 conftest.err 3139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3140 test $ac_status = 0; } 3141done 3142 3143cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3144/* end confdefs.h. */ 3145 3146int 3147main () 3148{ 3149 3150 ; 3151 return 0; 3152} 3153_ACEOF 3154ac_clean_files_save=$ac_clean_files 3155ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3156# Try to create an executable without -o first, disregard a.out. 3157# It will help us diagnose broken compilers, and finding out an intuition 3158# of exeext. 3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3160$as_echo_n "checking whether the C compiler works... " >&6; } 3161ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3162 3163# The possible output files: 3164ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3165 3166ac_rmfiles= 3167for ac_file in $ac_files 3168do 3169 case $ac_file in 3170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3171 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3172 esac 3173done 3174rm -f $ac_rmfiles 3175 3176if { { ac_try="$ac_link_default" 3177case "(($ac_try" in 3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3179 *) ac_try_echo=$ac_try;; 3180esac 3181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3182$as_echo "$ac_try_echo"; } >&5 3183 (eval "$ac_link_default") 2>&5 3184 ac_status=$? 3185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3186 test $ac_status = 0; }; then : 3187 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3188# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3189# in a Makefile. We should not override ac_cv_exeext if it was cached, 3190# so that the user can short-circuit this test for compilers unknown to 3191# Autoconf. 3192for ac_file in $ac_files '' 3193do 3194 test -f "$ac_file" || continue 3195 case $ac_file in 3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3197 ;; 3198 [ab].out ) 3199 # We found the default executable, but exeext='' is most 3200 # certainly right. 3201 break;; 3202 *.* ) 3203 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3204 then :; else 3205 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3206 fi 3207 # We set ac_cv_exeext here because the later test for it is not 3208 # safe: cross compilers may not add the suffix if given an `-o' 3209 # argument, so we may need to know it at that point already. 3210 # Even if this section looks crufty: it has the advantage of 3211 # actually working. 3212 break;; 3213 * ) 3214 break;; 3215 esac 3216done 3217test "$ac_cv_exeext" = no && ac_cv_exeext= 3218 3219else 3220 ac_file='' 3221fi 3222if test -z "$ac_file"; then : 3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3224$as_echo "no" >&6; } 3225$as_echo "$as_me: failed program was:" >&5 3226sed 's/^/| /' conftest.$ac_ext >&5 3227 3228{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3230as_fn_error 77 "C compiler cannot create executables 3231See \`config.log' for more details" "$LINENO" 5; } 3232else 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3234$as_echo "yes" >&6; } 3235fi 3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3237$as_echo_n "checking for C compiler default output file name... " >&6; } 3238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3239$as_echo "$ac_file" >&6; } 3240ac_exeext=$ac_cv_exeext 3241 3242rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3243ac_clean_files=$ac_clean_files_save 3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3245$as_echo_n "checking for suffix of executables... " >&6; } 3246if { { ac_try="$ac_link" 3247case "(($ac_try" in 3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249 *) ac_try_echo=$ac_try;; 3250esac 3251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3252$as_echo "$ac_try_echo"; } >&5 3253 (eval "$ac_link") 2>&5 3254 ac_status=$? 3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3256 test $ac_status = 0; }; then : 3257 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3258# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3259# work properly (i.e., refer to `conftest.exe'), while it won't with 3260# `rm'. 3261for ac_file in conftest.exe conftest conftest.*; do 3262 test -f "$ac_file" || continue 3263 case $ac_file in 3264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3265 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3266 break;; 3267 * ) break;; 3268 esac 3269done 3270else 3271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3273as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3274See \`config.log' for more details" "$LINENO" 5; } 3275fi 3276rm -f conftest conftest$ac_cv_exeext 3277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3278$as_echo "$ac_cv_exeext" >&6; } 3279 3280rm -f conftest.$ac_ext 3281EXEEXT=$ac_cv_exeext 3282ac_exeext=$EXEEXT 3283cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3284/* end confdefs.h. */ 3285#include <stdio.h> 3286int 3287main () 3288{ 3289FILE *f = fopen ("conftest.out", "w"); 3290 return ferror (f) || fclose (f) != 0; 3291 3292 ; 3293 return 0; 3294} 3295_ACEOF 3296ac_clean_files="$ac_clean_files conftest.out" 3297# Check that the compiler produces executables we can run. If not, either 3298# the compiler is broken, or we cross compile. 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3300$as_echo_n "checking whether we are cross compiling... " >&6; } 3301if test "$cross_compiling" != yes; then 3302 { { ac_try="$ac_link" 3303case "(($ac_try" in 3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3305 *) ac_try_echo=$ac_try;; 3306esac 3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3308$as_echo "$ac_try_echo"; } >&5 3309 (eval "$ac_link") 2>&5 3310 ac_status=$? 3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3312 test $ac_status = 0; } 3313 if { ac_try='./conftest$ac_cv_exeext' 3314 { { case "(($ac_try" in 3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3316 *) ac_try_echo=$ac_try;; 3317esac 3318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3319$as_echo "$ac_try_echo"; } >&5 3320 (eval "$ac_try") 2>&5 3321 ac_status=$? 3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3323 test $ac_status = 0; }; }; then 3324 cross_compiling=no 3325 else 3326 if test "$cross_compiling" = maybe; then 3327 cross_compiling=yes 3328 else 3329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3331as_fn_error $? "cannot run C compiled programs. 3332If you meant to cross compile, use \`--host'. 3333See \`config.log' for more details" "$LINENO" 5; } 3334 fi 3335 fi 3336fi 3337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3338$as_echo "$cross_compiling" >&6; } 3339 3340rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3341ac_clean_files=$ac_clean_files_save 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3343$as_echo_n "checking for suffix of object files... " >&6; } 3344if ${ac_cv_objext+:} false; then : 3345 $as_echo_n "(cached) " >&6 3346else 3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3348/* end confdefs.h. */ 3349 3350int 3351main () 3352{ 3353 3354 ; 3355 return 0; 3356} 3357_ACEOF 3358rm -f conftest.o conftest.obj 3359if { { ac_try="$ac_compile" 3360case "(($ac_try" in 3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3362 *) ac_try_echo=$ac_try;; 3363esac 3364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3365$as_echo "$ac_try_echo"; } >&5 3366 (eval "$ac_compile") 2>&5 3367 ac_status=$? 3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3369 test $ac_status = 0; }; then : 3370 for ac_file in conftest.o conftest.obj conftest.*; do 3371 test -f "$ac_file" || continue; 3372 case $ac_file in 3373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3374 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3375 break;; 3376 esac 3377done 3378else 3379 $as_echo "$as_me: failed program was:" >&5 3380sed 's/^/| /' conftest.$ac_ext >&5 3381 3382{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3384as_fn_error $? "cannot compute suffix of object files: cannot compile 3385See \`config.log' for more details" "$LINENO" 5; } 3386fi 3387rm -f conftest.$ac_cv_objext conftest.$ac_ext 3388fi 3389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3390$as_echo "$ac_cv_objext" >&6; } 3391OBJEXT=$ac_cv_objext 3392ac_objext=$OBJEXT 3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3394$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3395if ${ac_cv_c_compiler_gnu+:} false; then : 3396 $as_echo_n "(cached) " >&6 3397else 3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3399/* end confdefs.h. */ 3400 3401int 3402main () 3403{ 3404#ifndef __GNUC__ 3405 choke me 3406#endif 3407 3408 ; 3409 return 0; 3410} 3411_ACEOF 3412if ac_fn_c_try_compile "$LINENO"; then : 3413 ac_compiler_gnu=yes 3414else 3415 ac_compiler_gnu=no 3416fi 3417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3418ac_cv_c_compiler_gnu=$ac_compiler_gnu 3419 3420fi 3421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3422$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3423if test $ac_compiler_gnu = yes; then 3424 GCC=yes 3425else 3426 GCC= 3427fi 3428ac_test_CFLAGS=${CFLAGS+set} 3429ac_save_CFLAGS=$CFLAGS 3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3431$as_echo_n "checking whether $CC accepts -g... " >&6; } 3432if ${ac_cv_prog_cc_g+:} false; then : 3433 $as_echo_n "(cached) " >&6 3434else 3435 ac_save_c_werror_flag=$ac_c_werror_flag 3436 ac_c_werror_flag=yes 3437 ac_cv_prog_cc_g=no 3438 CFLAGS="-g" 3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3440/* end confdefs.h. */ 3441 3442int 3443main () 3444{ 3445 3446 ; 3447 return 0; 3448} 3449_ACEOF 3450if ac_fn_c_try_compile "$LINENO"; then : 3451 ac_cv_prog_cc_g=yes 3452else 3453 CFLAGS="" 3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3455/* end confdefs.h. */ 3456 3457int 3458main () 3459{ 3460 3461 ; 3462 return 0; 3463} 3464_ACEOF 3465if ac_fn_c_try_compile "$LINENO"; then : 3466 3467else 3468 ac_c_werror_flag=$ac_save_c_werror_flag 3469 CFLAGS="-g" 3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3471/* end confdefs.h. */ 3472 3473int 3474main () 3475{ 3476 3477 ; 3478 return 0; 3479} 3480_ACEOF 3481if ac_fn_c_try_compile "$LINENO"; then : 3482 ac_cv_prog_cc_g=yes 3483fi 3484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3485fi 3486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3487fi 3488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3489 ac_c_werror_flag=$ac_save_c_werror_flag 3490fi 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3492$as_echo "$ac_cv_prog_cc_g" >&6; } 3493if test "$ac_test_CFLAGS" = set; then 3494 CFLAGS=$ac_save_CFLAGS 3495elif test $ac_cv_prog_cc_g = yes; then 3496 if test "$GCC" = yes; then 3497 CFLAGS="-g -O2" 3498 else 3499 CFLAGS="-g" 3500 fi 3501else 3502 if test "$GCC" = yes; then 3503 CFLAGS="-O2" 3504 else 3505 CFLAGS= 3506 fi 3507fi 3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3509$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3510if ${ac_cv_prog_cc_c89+:} false; then : 3511 $as_echo_n "(cached) " >&6 3512else 3513 ac_cv_prog_cc_c89=no 3514ac_save_CC=$CC 3515cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3516/* end confdefs.h. */ 3517#include <stdarg.h> 3518#include <stdio.h> 3519#include <sys/types.h> 3520#include <sys/stat.h> 3521/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3522struct buf { int x; }; 3523FILE * (*rcsopen) (struct buf *, struct stat *, int); 3524static char *e (p, i) 3525 char **p; 3526 int i; 3527{ 3528 return p[i]; 3529} 3530static char *f (char * (*g) (char **, int), char **p, ...) 3531{ 3532 char *s; 3533 va_list v; 3534 va_start (v,p); 3535 s = g (p, va_arg (v,int)); 3536 va_end (v); 3537 return s; 3538} 3539 3540/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3541 function prototypes and stuff, but not '\xHH' hex character constants. 3542 These don't provoke an error unfortunately, instead are silently treated 3543 as 'x'. The following induces an error, until -std is added to get 3544 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3545 array size at least. It's necessary to write '\x00'==0 to get something 3546 that's true only with -std. */ 3547int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3548 3549/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3550 inside strings and character constants. */ 3551#define FOO(x) 'x' 3552int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3553 3554int test (int i, double x); 3555struct s1 {int (*f) (int a);}; 3556struct s2 {int (*f) (double a);}; 3557int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3558int argc; 3559char **argv; 3560int 3561main () 3562{ 3563return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3564 ; 3565 return 0; 3566} 3567_ACEOF 3568for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3569 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3570do 3571 CC="$ac_save_CC $ac_arg" 3572 if ac_fn_c_try_compile "$LINENO"; then : 3573 ac_cv_prog_cc_c89=$ac_arg 3574fi 3575rm -f core conftest.err conftest.$ac_objext 3576 test "x$ac_cv_prog_cc_c89" != "xno" && break 3577done 3578rm -f conftest.$ac_ext 3579CC=$ac_save_CC 3580 3581fi 3582# AC_CACHE_VAL 3583case "x$ac_cv_prog_cc_c89" in 3584 x) 3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3586$as_echo "none needed" >&6; } ;; 3587 xno) 3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3589$as_echo "unsupported" >&6; } ;; 3590 *) 3591 CC="$CC $ac_cv_prog_cc_c89" 3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3593$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3594esac 3595if test "x$ac_cv_prog_cc_c89" != xno; then : 3596 3597fi 3598 3599ac_ext=c 3600ac_cpp='$CPP $CPPFLAGS' 3601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3603ac_compiler_gnu=$ac_cv_c_compiler_gnu 3604 3605depcc="$CC" am_compiler_list= 3606 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3608$as_echo_n "checking dependency style of $depcc... " >&6; } 3609if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3610 $as_echo_n "(cached) " >&6 3611else 3612 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3613 # We make a subdir and do the tests there. Otherwise we can end up 3614 # making bogus files that we don't know about and never remove. For 3615 # instance it was reported that on HP-UX the gcc test will end up 3616 # making a dummy file named `D' -- because `-MD' means `put the output 3617 # in D'. 3618 mkdir conftest.dir 3619 # Copy depcomp to subdir because otherwise we won't find it if we're 3620 # using a relative directory. 3621 cp "$am_depcomp" conftest.dir 3622 cd conftest.dir 3623 # We will build objects and dependencies in a subdirectory because 3624 # it helps to detect inapplicable dependency modes. For instance 3625 # both Tru64's cc and ICC support -MD to output dependencies as a 3626 # side effect of compilation, but ICC will put the dependencies in 3627 # the current directory while Tru64 will put them in the object 3628 # directory. 3629 mkdir sub 3630 3631 am_cv_CC_dependencies_compiler_type=none 3632 if test "$am_compiler_list" = ""; then 3633 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3634 fi 3635 am__universal=false 3636 case " $depcc " in #( 3637 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3638 esac 3639 3640 for depmode in $am_compiler_list; do 3641 # Setup a source with many dependencies, because some compilers 3642 # like to wrap large dependency lists on column 80 (with \), and 3643 # we should not choose a depcomp mode which is confused by this. 3644 # 3645 # We need to recreate these files for each test, as the compiler may 3646 # overwrite some of them when testing with obscure command lines. 3647 # This happens at least with the AIX C compiler. 3648 : > sub/conftest.c 3649 for i in 1 2 3 4 5 6; do 3650 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3651 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3652 # Solaris 8's {/usr,}/bin/sh. 3653 touch sub/conftst$i.h 3654 done 3655 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3656 3657 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3658 # mode. It turns out that the SunPro C++ compiler does not properly 3659 # handle `-M -o', and we need to detect this. Also, some Intel 3660 # versions had trouble with output in subdirs 3661 am__obj=sub/conftest.${OBJEXT-o} 3662 am__minus_obj="-o $am__obj" 3663 case $depmode in 3664 gcc) 3665 # This depmode causes a compiler race in universal mode. 3666 test "$am__universal" = false || continue 3667 ;; 3668 nosideeffect) 3669 # after this tag, mechanisms are not by side-effect, so they'll 3670 # only be used when explicitly requested 3671 if test "x$enable_dependency_tracking" = xyes; then 3672 continue 3673 else 3674 break 3675 fi 3676 ;; 3677 msvisualcpp | msvcmsys) 3678 # This compiler won't grok `-c -o', but also, the minuso test has 3679 # not run yet. These depmodes are late enough in the game, and 3680 # so weak that their functioning should not be impacted. 3681 am__obj=conftest.${OBJEXT-o} 3682 am__minus_obj= 3683 ;; 3684 none) break ;; 3685 esac 3686 if depmode=$depmode \ 3687 source=sub/conftest.c object=$am__obj \ 3688 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3689 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3690 >/dev/null 2>conftest.err && 3691 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3692 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3693 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3694 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3695 # icc doesn't choke on unknown options, it will just issue warnings 3696 # or remarks (even with -Werror). So we grep stderr for any message 3697 # that says an option was ignored or not supported. 3698 # When given -MP, icc 7.0 and 7.1 complain thusly: 3699 # icc: Command line warning: ignoring option '-M'; no argument required 3700 # The diagnosis changed in icc 8.0: 3701 # icc: Command line remark: option '-MP' not supported 3702 if (grep 'ignoring option' conftest.err || 3703 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3704 am_cv_CC_dependencies_compiler_type=$depmode 3705 break 3706 fi 3707 fi 3708 done 3709 3710 cd .. 3711 rm -rf conftest.dir 3712else 3713 am_cv_CC_dependencies_compiler_type=none 3714fi 3715 3716fi 3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3718$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3719CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3720 3721 if 3722 test "x$enable_dependency_tracking" != xno \ 3723 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3724 am__fastdepCC_TRUE= 3725 am__fastdepCC_FALSE='#' 3726else 3727 am__fastdepCC_TRUE='#' 3728 am__fastdepCC_FALSE= 3729fi 3730 3731 3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3733$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3734if ${ac_cv_prog_cc_c99+:} false; then : 3735 $as_echo_n "(cached) " >&6 3736else 3737 ac_cv_prog_cc_c99=no 3738ac_save_CC=$CC 3739cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3740/* end confdefs.h. */ 3741#include <stdarg.h> 3742#include <stdbool.h> 3743#include <stdlib.h> 3744#include <wchar.h> 3745#include <stdio.h> 3746 3747// Check varargs macros. These examples are taken from C99 6.10.3.5. 3748#define debug(...) fprintf (stderr, __VA_ARGS__) 3749#define showlist(...) puts (#__VA_ARGS__) 3750#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3751static void 3752test_varargs_macros (void) 3753{ 3754 int x = 1234; 3755 int y = 5678; 3756 debug ("Flag"); 3757 debug ("X = %d\n", x); 3758 showlist (The first, second, and third items.); 3759 report (x>y, "x is %d but y is %d", x, y); 3760} 3761 3762// Check long long types. 3763#define BIG64 18446744073709551615ull 3764#define BIG32 4294967295ul 3765#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3766#if !BIG_OK 3767 your preprocessor is broken; 3768#endif 3769#if BIG_OK 3770#else 3771 your preprocessor is broken; 3772#endif 3773static long long int bignum = -9223372036854775807LL; 3774static unsigned long long int ubignum = BIG64; 3775 3776struct incomplete_array 3777{ 3778 int datasize; 3779 double data[]; 3780}; 3781 3782struct named_init { 3783 int number; 3784 const wchar_t *name; 3785 double average; 3786}; 3787 3788typedef const char *ccp; 3789 3790static inline int 3791test_restrict (ccp restrict text) 3792{ 3793 // See if C++-style comments work. 3794 // Iterate through items via the restricted pointer. 3795 // Also check for declarations in for loops. 3796 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3797 continue; 3798 return 0; 3799} 3800 3801// Check varargs and va_copy. 3802static void 3803test_varargs (const char *format, ...) 3804{ 3805 va_list args; 3806 va_start (args, format); 3807 va_list args_copy; 3808 va_copy (args_copy, args); 3809 3810 const char *str; 3811 int number; 3812 float fnumber; 3813 3814 while (*format) 3815 { 3816 switch (*format++) 3817 { 3818 case 's': // string 3819 str = va_arg (args_copy, const char *); 3820 break; 3821 case 'd': // int 3822 number = va_arg (args_copy, int); 3823 break; 3824 case 'f': // float 3825 fnumber = va_arg (args_copy, double); 3826 break; 3827 default: 3828 break; 3829 } 3830 } 3831 va_end (args_copy); 3832 va_end (args); 3833} 3834 3835int 3836main () 3837{ 3838 3839 // Check bool. 3840 _Bool success = false; 3841 3842 // Check restrict. 3843 if (test_restrict ("String literal") == 0) 3844 success = true; 3845 char *restrict newvar = "Another string"; 3846 3847 // Check varargs. 3848 test_varargs ("s, d' f .", "string", 65, 34.234); 3849 test_varargs_macros (); 3850 3851 // Check flexible array members. 3852 struct incomplete_array *ia = 3853 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3854 ia->datasize = 10; 3855 for (int i = 0; i < ia->datasize; ++i) 3856 ia->data[i] = i * 1.234; 3857 3858 // Check named initializers. 3859 struct named_init ni = { 3860 .number = 34, 3861 .name = L"Test wide string", 3862 .average = 543.34343, 3863 }; 3864 3865 ni.number = 58; 3866 3867 int dynamic_array[ni.number]; 3868 dynamic_array[ni.number - 1] = 543; 3869 3870 // work around unused variable warnings 3871 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3872 || dynamic_array[ni.number - 1] != 543); 3873 3874 ; 3875 return 0; 3876} 3877_ACEOF 3878for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3879do 3880 CC="$ac_save_CC $ac_arg" 3881 if ac_fn_c_try_compile "$LINENO"; then : 3882 ac_cv_prog_cc_c99=$ac_arg 3883fi 3884rm -f core conftest.err conftest.$ac_objext 3885 test "x$ac_cv_prog_cc_c99" != "xno" && break 3886done 3887rm -f conftest.$ac_ext 3888CC=$ac_save_CC 3889 3890fi 3891# AC_CACHE_VAL 3892case "x$ac_cv_prog_cc_c99" in 3893 x) 3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3895$as_echo "none needed" >&6; } ;; 3896 xno) 3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3898$as_echo "unsupported" >&6; } ;; 3899 *) 3900 CC="$CC $ac_cv_prog_cc_c99" 3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3902$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3903esac 3904if test "x$ac_cv_prog_cc_c99" != xno; then : 3905 3906fi 3907 3908 3909 3910ac_ext=c 3911ac_cpp='$CPP $CPPFLAGS' 3912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3914ac_compiler_gnu=$ac_cv_c_compiler_gnu 3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3916$as_echo_n "checking how to run the C preprocessor... " >&6; } 3917# On Suns, sometimes $CPP names a directory. 3918if test -n "$CPP" && test -d "$CPP"; then 3919 CPP= 3920fi 3921if test -z "$CPP"; then 3922 if ${ac_cv_prog_CPP+:} false; then : 3923 $as_echo_n "(cached) " >&6 3924else 3925 # Double quotes because CPP needs to be expanded 3926 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3927 do 3928 ac_preproc_ok=false 3929for ac_c_preproc_warn_flag in '' yes 3930do 3931 # Use a header file that comes with gcc, so configuring glibc 3932 # with a fresh cross-compiler works. 3933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3934 # <limits.h> exists even on freestanding compilers. 3935 # On the NeXT, cc -E runs the code through the compiler's parser, 3936 # not just through cpp. "Syntax error" is here to catch this case. 3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3938/* end confdefs.h. */ 3939#ifdef __STDC__ 3940# include <limits.h> 3941#else 3942# include <assert.h> 3943#endif 3944 Syntax error 3945_ACEOF 3946if ac_fn_c_try_cpp "$LINENO"; then : 3947 3948else 3949 # Broken: fails on valid input. 3950continue 3951fi 3952rm -f conftest.err conftest.i conftest.$ac_ext 3953 3954 # OK, works on sane cases. Now check whether nonexistent headers 3955 # can be detected and how. 3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3957/* end confdefs.h. */ 3958#include <ac_nonexistent.h> 3959_ACEOF 3960if ac_fn_c_try_cpp "$LINENO"; then : 3961 # Broken: success on invalid input. 3962continue 3963else 3964 # Passes both tests. 3965ac_preproc_ok=: 3966break 3967fi 3968rm -f conftest.err conftest.i conftest.$ac_ext 3969 3970done 3971# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3972rm -f conftest.i conftest.err conftest.$ac_ext 3973if $ac_preproc_ok; then : 3974 break 3975fi 3976 3977 done 3978 ac_cv_prog_CPP=$CPP 3979 3980fi 3981 CPP=$ac_cv_prog_CPP 3982else 3983 ac_cv_prog_CPP=$CPP 3984fi 3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3986$as_echo "$CPP" >&6; } 3987ac_preproc_ok=false 3988for ac_c_preproc_warn_flag in '' yes 3989do 3990 # Use a header file that comes with gcc, so configuring glibc 3991 # with a fresh cross-compiler works. 3992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3993 # <limits.h> exists even on freestanding compilers. 3994 # On the NeXT, cc -E runs the code through the compiler's parser, 3995 # not just through cpp. "Syntax error" is here to catch this case. 3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3997/* end confdefs.h. */ 3998#ifdef __STDC__ 3999# include <limits.h> 4000#else 4001# include <assert.h> 4002#endif 4003 Syntax error 4004_ACEOF 4005if ac_fn_c_try_cpp "$LINENO"; then : 4006 4007else 4008 # Broken: fails on valid input. 4009continue 4010fi 4011rm -f conftest.err conftest.i conftest.$ac_ext 4012 4013 # OK, works on sane cases. Now check whether nonexistent headers 4014 # can be detected and how. 4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4016/* end confdefs.h. */ 4017#include <ac_nonexistent.h> 4018_ACEOF 4019if ac_fn_c_try_cpp "$LINENO"; then : 4020 # Broken: success on invalid input. 4021continue 4022else 4023 # Passes both tests. 4024ac_preproc_ok=: 4025break 4026fi 4027rm -f conftest.err conftest.i conftest.$ac_ext 4028 4029done 4030# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4031rm -f conftest.i conftest.err conftest.$ac_ext 4032if $ac_preproc_ok; then : 4033 4034else 4035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4037as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4038See \`config.log' for more details" "$LINENO" 5; } 4039fi 4040 4041ac_ext=c 4042ac_cpp='$CPP $CPPFLAGS' 4043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4045ac_compiler_gnu=$ac_cv_c_compiler_gnu 4046 4047 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4049$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4050if ${ac_cv_path_GREP+:} false; then : 4051 $as_echo_n "(cached) " >&6 4052else 4053 if test -z "$GREP"; then 4054 ac_path_GREP_found=false 4055 # Loop through the user's path and test for each of PROGNAME-LIST 4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4057for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4058do 4059 IFS=$as_save_IFS 4060 test -z "$as_dir" && as_dir=. 4061 for ac_prog in grep ggrep; do 4062 for ac_exec_ext in '' $ac_executable_extensions; do 4063 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4064 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4065# Check for GNU ac_path_GREP and select it if it is found. 4066 # Check for GNU $ac_path_GREP 4067case `"$ac_path_GREP" --version 2>&1` in 4068*GNU*) 4069 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4070*) 4071 ac_count=0 4072 $as_echo_n 0123456789 >"conftest.in" 4073 while : 4074 do 4075 cat "conftest.in" "conftest.in" >"conftest.tmp" 4076 mv "conftest.tmp" "conftest.in" 4077 cp "conftest.in" "conftest.nl" 4078 $as_echo 'GREP' >> "conftest.nl" 4079 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4081 as_fn_arith $ac_count + 1 && ac_count=$as_val 4082 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4083 # Best one so far, save it but keep looking for a better one 4084 ac_cv_path_GREP="$ac_path_GREP" 4085 ac_path_GREP_max=$ac_count 4086 fi 4087 # 10*(2^10) chars as input seems more than enough 4088 test $ac_count -gt 10 && break 4089 done 4090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4091esac 4092 4093 $ac_path_GREP_found && break 3 4094 done 4095 done 4096 done 4097IFS=$as_save_IFS 4098 if test -z "$ac_cv_path_GREP"; then 4099 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4100 fi 4101else 4102 ac_cv_path_GREP=$GREP 4103fi 4104 4105fi 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4107$as_echo "$ac_cv_path_GREP" >&6; } 4108 GREP="$ac_cv_path_GREP" 4109 4110 4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4112$as_echo_n "checking for egrep... " >&6; } 4113if ${ac_cv_path_EGREP+:} false; then : 4114 $as_echo_n "(cached) " >&6 4115else 4116 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4117 then ac_cv_path_EGREP="$GREP -E" 4118 else 4119 if test -z "$EGREP"; then 4120 ac_path_EGREP_found=false 4121 # Loop through the user's path and test for each of PROGNAME-LIST 4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4123for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4124do 4125 IFS=$as_save_IFS 4126 test -z "$as_dir" && as_dir=. 4127 for ac_prog in egrep; do 4128 for ac_exec_ext in '' $ac_executable_extensions; do 4129 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4130 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4131# Check for GNU ac_path_EGREP and select it if it is found. 4132 # Check for GNU $ac_path_EGREP 4133case `"$ac_path_EGREP" --version 2>&1` in 4134*GNU*) 4135 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4136*) 4137 ac_count=0 4138 $as_echo_n 0123456789 >"conftest.in" 4139 while : 4140 do 4141 cat "conftest.in" "conftest.in" >"conftest.tmp" 4142 mv "conftest.tmp" "conftest.in" 4143 cp "conftest.in" "conftest.nl" 4144 $as_echo 'EGREP' >> "conftest.nl" 4145 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4147 as_fn_arith $ac_count + 1 && ac_count=$as_val 4148 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4149 # Best one so far, save it but keep looking for a better one 4150 ac_cv_path_EGREP="$ac_path_EGREP" 4151 ac_path_EGREP_max=$ac_count 4152 fi 4153 # 10*(2^10) chars as input seems more than enough 4154 test $ac_count -gt 10 && break 4155 done 4156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4157esac 4158 4159 $ac_path_EGREP_found && break 3 4160 done 4161 done 4162 done 4163IFS=$as_save_IFS 4164 if test -z "$ac_cv_path_EGREP"; then 4165 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4166 fi 4167else 4168 ac_cv_path_EGREP=$EGREP 4169fi 4170 4171 fi 4172fi 4173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4174$as_echo "$ac_cv_path_EGREP" >&6; } 4175 EGREP="$ac_cv_path_EGREP" 4176 4177 4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4179$as_echo_n "checking for ANSI C header files... " >&6; } 4180if ${ac_cv_header_stdc+:} false; then : 4181 $as_echo_n "(cached) " >&6 4182else 4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4184/* end confdefs.h. */ 4185#include <stdlib.h> 4186#include <stdarg.h> 4187#include <string.h> 4188#include <float.h> 4189 4190int 4191main () 4192{ 4193 4194 ; 4195 return 0; 4196} 4197_ACEOF 4198if ac_fn_c_try_compile "$LINENO"; then : 4199 ac_cv_header_stdc=yes 4200else 4201 ac_cv_header_stdc=no 4202fi 4203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4204 4205if test $ac_cv_header_stdc = yes; then 4206 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4208/* end confdefs.h. */ 4209#include <string.h> 4210 4211_ACEOF 4212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4213 $EGREP "memchr" >/dev/null 2>&1; then : 4214 4215else 4216 ac_cv_header_stdc=no 4217fi 4218rm -f conftest* 4219 4220fi 4221 4222if test $ac_cv_header_stdc = yes; then 4223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4225/* end confdefs.h. */ 4226#include <stdlib.h> 4227 4228_ACEOF 4229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4230 $EGREP "free" >/dev/null 2>&1; then : 4231 4232else 4233 ac_cv_header_stdc=no 4234fi 4235rm -f conftest* 4236 4237fi 4238 4239if test $ac_cv_header_stdc = yes; then 4240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4241 if test "$cross_compiling" = yes; then : 4242 : 4243else 4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4245/* end confdefs.h. */ 4246#include <ctype.h> 4247#include <stdlib.h> 4248#if ((' ' & 0x0FF) == 0x020) 4249# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4250# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4251#else 4252# define ISLOWER(c) \ 4253 (('a' <= (c) && (c) <= 'i') \ 4254 || ('j' <= (c) && (c) <= 'r') \ 4255 || ('s' <= (c) && (c) <= 'z')) 4256# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4257#endif 4258 4259#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4260int 4261main () 4262{ 4263 int i; 4264 for (i = 0; i < 256; i++) 4265 if (XOR (islower (i), ISLOWER (i)) 4266 || toupper (i) != TOUPPER (i)) 4267 return 2; 4268 return 0; 4269} 4270_ACEOF 4271if ac_fn_c_try_run "$LINENO"; then : 4272 4273else 4274 ac_cv_header_stdc=no 4275fi 4276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4277 conftest.$ac_objext conftest.beam conftest.$ac_ext 4278fi 4279 4280fi 4281fi 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4283$as_echo "$ac_cv_header_stdc" >&6; } 4284if test $ac_cv_header_stdc = yes; then 4285 4286$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4287 4288fi 4289 4290# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4291for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4292 inttypes.h stdint.h unistd.h 4293do : 4294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4295ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4296" 4297if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4298 cat >>confdefs.h <<_ACEOF 4299#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4300_ACEOF 4301 4302fi 4303 4304done 4305 4306 4307 4308 4309 4310 4311ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4312if test "x$ac_cv_have_decl___clang__" = xyes; then : 4313 CLANGCC="yes" 4314else 4315 CLANGCC="no" 4316fi 4317 4318ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4319if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4320 INTELCC="yes" 4321else 4322 INTELCC="no" 4323fi 4324 4325ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4326if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4327 SUNCC="yes" 4328else 4329 SUNCC="no" 4330fi 4331 4332 4333 4334 4335if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4336 if test -n "$ac_tool_prefix"; then 4337 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4338set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4340$as_echo_n "checking for $ac_word... " >&6; } 4341if ${ac_cv_path_PKG_CONFIG+:} false; then : 4342 $as_echo_n "(cached) " >&6 4343else 4344 case $PKG_CONFIG in 4345 [\\/]* | ?:[\\/]*) 4346 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4347 ;; 4348 *) 4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4350for as_dir in $PATH 4351do 4352 IFS=$as_save_IFS 4353 test -z "$as_dir" && as_dir=. 4354 for ac_exec_ext in '' $ac_executable_extensions; do 4355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4356 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4358 break 2 4359 fi 4360done 4361 done 4362IFS=$as_save_IFS 4363 4364 ;; 4365esac 4366fi 4367PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4368if test -n "$PKG_CONFIG"; then 4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4370$as_echo "$PKG_CONFIG" >&6; } 4371else 4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4373$as_echo "no" >&6; } 4374fi 4375 4376 4377fi 4378if test -z "$ac_cv_path_PKG_CONFIG"; then 4379 ac_pt_PKG_CONFIG=$PKG_CONFIG 4380 # Extract the first word of "pkg-config", so it can be a program name with args. 4381set dummy pkg-config; ac_word=$2 4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4383$as_echo_n "checking for $ac_word... " >&6; } 4384if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4385 $as_echo_n "(cached) " >&6 4386else 4387 case $ac_pt_PKG_CONFIG in 4388 [\\/]* | ?:[\\/]*) 4389 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4390 ;; 4391 *) 4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4393for as_dir in $PATH 4394do 4395 IFS=$as_save_IFS 4396 test -z "$as_dir" && as_dir=. 4397 for ac_exec_ext in '' $ac_executable_extensions; do 4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4399 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4401 break 2 4402 fi 4403done 4404 done 4405IFS=$as_save_IFS 4406 4407 ;; 4408esac 4409fi 4410ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4411if test -n "$ac_pt_PKG_CONFIG"; then 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4413$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4414else 4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4416$as_echo "no" >&6; } 4417fi 4418 4419 if test "x$ac_pt_PKG_CONFIG" = x; then 4420 PKG_CONFIG="" 4421 else 4422 case $cross_compiling:$ac_tool_warned in 4423yes:) 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4426ac_tool_warned=yes ;; 4427esac 4428 PKG_CONFIG=$ac_pt_PKG_CONFIG 4429 fi 4430else 4431 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4432fi 4433 4434fi 4435if test -n "$PKG_CONFIG"; then 4436 _pkg_min_version=0.9.0 4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4438$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4439 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4441$as_echo "yes" >&6; } 4442 else 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4444$as_echo "no" >&6; } 4445 PKG_CONFIG="" 4446 fi 4447 4448fi 4449# Make sure we can run config.sub. 4450$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4451 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4452 4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4454$as_echo_n "checking build system type... " >&6; } 4455if ${ac_cv_build+:} false; then : 4456 $as_echo_n "(cached) " >&6 4457else 4458 ac_build_alias=$build_alias 4459test "x$ac_build_alias" = x && 4460 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4461test "x$ac_build_alias" = x && 4462 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4463ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4464 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4465 4466fi 4467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4468$as_echo "$ac_cv_build" >&6; } 4469case $ac_cv_build in 4470*-*-*) ;; 4471*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4472esac 4473build=$ac_cv_build 4474ac_save_IFS=$IFS; IFS='-' 4475set x $ac_cv_build 4476shift 4477build_cpu=$1 4478build_vendor=$2 4479shift; shift 4480# Remember, the first character of IFS is used to create $*, 4481# except with old shells: 4482build_os=$* 4483IFS=$ac_save_IFS 4484case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4485 4486 4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4488$as_echo_n "checking host system type... " >&6; } 4489if ${ac_cv_host+:} false; then : 4490 $as_echo_n "(cached) " >&6 4491else 4492 if test "x$host_alias" = x; then 4493 ac_cv_host=$ac_cv_build 4494else 4495 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4496 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4497fi 4498 4499fi 4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4501$as_echo "$ac_cv_host" >&6; } 4502case $ac_cv_host in 4503*-*-*) ;; 4504*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4505esac 4506host=$ac_cv_host 4507ac_save_IFS=$IFS; IFS='-' 4508set x $ac_cv_host 4509shift 4510host_cpu=$1 4511host_vendor=$2 4512shift; shift 4513# Remember, the first character of IFS is used to create $*, 4514# except with old shells: 4515host_os=$* 4516IFS=$ac_save_IFS 4517case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4518 4519 4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4521$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4522if ${ac_cv_path_SED+:} false; then : 4523 $as_echo_n "(cached) " >&6 4524else 4525 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4526 for ac_i in 1 2 3 4 5 6 7; do 4527 ac_script="$ac_script$as_nl$ac_script" 4528 done 4529 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4530 { ac_script=; unset ac_script;} 4531 if test -z "$SED"; then 4532 ac_path_SED_found=false 4533 # Loop through the user's path and test for each of PROGNAME-LIST 4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4535for as_dir in $PATH 4536do 4537 IFS=$as_save_IFS 4538 test -z "$as_dir" && as_dir=. 4539 for ac_prog in sed gsed; do 4540 for ac_exec_ext in '' $ac_executable_extensions; do 4541 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4542 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4543# Check for GNU ac_path_SED and select it if it is found. 4544 # Check for GNU $ac_path_SED 4545case `"$ac_path_SED" --version 2>&1` in 4546*GNU*) 4547 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4548*) 4549 ac_count=0 4550 $as_echo_n 0123456789 >"conftest.in" 4551 while : 4552 do 4553 cat "conftest.in" "conftest.in" >"conftest.tmp" 4554 mv "conftest.tmp" "conftest.in" 4555 cp "conftest.in" "conftest.nl" 4556 $as_echo '' >> "conftest.nl" 4557 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4558 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4559 as_fn_arith $ac_count + 1 && ac_count=$as_val 4560 if test $ac_count -gt ${ac_path_SED_max-0}; then 4561 # Best one so far, save it but keep looking for a better one 4562 ac_cv_path_SED="$ac_path_SED" 4563 ac_path_SED_max=$ac_count 4564 fi 4565 # 10*(2^10) chars as input seems more than enough 4566 test $ac_count -gt 10 && break 4567 done 4568 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4569esac 4570 4571 $ac_path_SED_found && break 3 4572 done 4573 done 4574 done 4575IFS=$as_save_IFS 4576 if test -z "$ac_cv_path_SED"; then 4577 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4578 fi 4579else 4580 ac_cv_path_SED=$SED 4581fi 4582 4583fi 4584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4585$as_echo "$ac_cv_path_SED" >&6; } 4586 SED="$ac_cv_path_SED" 4587 rm -f conftest.sed 4588 4589 4590 4591 4592 4593 4594# Check whether --enable-selective-werror was given. 4595if test "${enable_selective_werror+set}" = set; then : 4596 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4597else 4598 SELECTIVE_WERROR=yes 4599fi 4600 4601 4602 4603 4604 4605# -v is too short to test reliably with XORG_TESTSET_CFLAG 4606if test "x$SUNCC" = "xyes"; then 4607 BASE_CFLAGS="-v" 4608else 4609 BASE_CFLAGS="" 4610fi 4611 4612# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626xorg_testset_save_CFLAGS="$CFLAGS" 4627 4628if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4631$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4632if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4633 $as_echo_n "(cached) " >&6 4634else 4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4636/* end confdefs.h. */ 4637int i; 4638_ACEOF 4639if ac_fn_c_try_compile "$LINENO"; then : 4640 xorg_cv_cc_flag_unknown_warning_option=yes 4641else 4642 xorg_cv_cc_flag_unknown_warning_option=no 4643fi 4644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4645fi 4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4647$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4649 CFLAGS="$xorg_testset_save_CFLAGS" 4650fi 4651 4652if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4655 fi 4656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4658$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4659if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4660 $as_echo_n "(cached) " >&6 4661else 4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4663/* end confdefs.h. */ 4664int i; 4665_ACEOF 4666if ac_fn_c_try_compile "$LINENO"; then : 4667 xorg_cv_cc_flag_unused_command_line_argument=yes 4668else 4669 xorg_cv_cc_flag_unused_command_line_argument=no 4670fi 4671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4672fi 4673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4674$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4676 CFLAGS="$xorg_testset_save_CFLAGS" 4677fi 4678 4679found="no" 4680 4681 if test $found = "no" ; then 4682 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4684 fi 4685 4686 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4688 fi 4689 4690 CFLAGS="$CFLAGS -Wall" 4691 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5 4693$as_echo_n "checking if $CC supports-Wall... " >&6; } 4694 cacheid=xorg_cv_cc_flag__Wall 4695 if eval \${$cacheid+:} false; then : 4696 $as_echo_n "(cached) " >&6 4697else 4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4699/* end confdefs.h. */ 4700int i; 4701int 4702main () 4703{ 4704 4705 ; 4706 return 0; 4707} 4708_ACEOF 4709if ac_fn_c_try_link "$LINENO"; then : 4710 eval $cacheid=yes 4711else 4712 eval $cacheid=no 4713fi 4714rm -f core conftest.err conftest.$ac_objext \ 4715 conftest$ac_exeext conftest.$ac_ext 4716fi 4717 4718 4719 CFLAGS="$xorg_testset_save_CFLAGS" 4720 4721 eval supported=\$$cacheid 4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4723$as_echo "$supported" >&6; } 4724 if test "$supported" = "yes" ; then 4725 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4726 found="yes" 4727 fi 4728 fi 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744xorg_testset_save_CFLAGS="$CFLAGS" 4745 4746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4749$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4750if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4751 $as_echo_n "(cached) " >&6 4752else 4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4754/* end confdefs.h. */ 4755int i; 4756_ACEOF 4757if ac_fn_c_try_compile "$LINENO"; then : 4758 xorg_cv_cc_flag_unknown_warning_option=yes 4759else 4760 xorg_cv_cc_flag_unknown_warning_option=no 4761fi 4762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4763fi 4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4765$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4767 CFLAGS="$xorg_testset_save_CFLAGS" 4768fi 4769 4770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4773 fi 4774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4776$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4777if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4778 $as_echo_n "(cached) " >&6 4779else 4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4781/* end confdefs.h. */ 4782int i; 4783_ACEOF 4784if ac_fn_c_try_compile "$LINENO"; then : 4785 xorg_cv_cc_flag_unused_command_line_argument=yes 4786else 4787 xorg_cv_cc_flag_unused_command_line_argument=no 4788fi 4789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4790fi 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4792$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4794 CFLAGS="$xorg_testset_save_CFLAGS" 4795fi 4796 4797found="no" 4798 4799 if test $found = "no" ; then 4800 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4802 fi 4803 4804 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4806 fi 4807 4808 CFLAGS="$CFLAGS -Wpointer-arith" 4809 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5 4811$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; } 4812 cacheid=xorg_cv_cc_flag__Wpointer_arith 4813 if eval \${$cacheid+:} false; then : 4814 $as_echo_n "(cached) " >&6 4815else 4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4817/* end confdefs.h. */ 4818int i; 4819int 4820main () 4821{ 4822 4823 ; 4824 return 0; 4825} 4826_ACEOF 4827if ac_fn_c_try_link "$LINENO"; then : 4828 eval $cacheid=yes 4829else 4830 eval $cacheid=no 4831fi 4832rm -f core conftest.err conftest.$ac_objext \ 4833 conftest$ac_exeext conftest.$ac_ext 4834fi 4835 4836 4837 CFLAGS="$xorg_testset_save_CFLAGS" 4838 4839 eval supported=\$$cacheid 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4841$as_echo "$supported" >&6; } 4842 if test "$supported" = "yes" ; then 4843 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4844 found="yes" 4845 fi 4846 fi 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862xorg_testset_save_CFLAGS="$CFLAGS" 4863 4864if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4867$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4868if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4869 $as_echo_n "(cached) " >&6 4870else 4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4872/* end confdefs.h. */ 4873int i; 4874_ACEOF 4875if ac_fn_c_try_compile "$LINENO"; then : 4876 xorg_cv_cc_flag_unknown_warning_option=yes 4877else 4878 xorg_cv_cc_flag_unknown_warning_option=no 4879fi 4880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4881fi 4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4883$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4885 CFLAGS="$xorg_testset_save_CFLAGS" 4886fi 4887 4888if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4891 fi 4892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4894$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4895if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4896 $as_echo_n "(cached) " >&6 4897else 4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4899/* end confdefs.h. */ 4900int i; 4901_ACEOF 4902if ac_fn_c_try_compile "$LINENO"; then : 4903 xorg_cv_cc_flag_unused_command_line_argument=yes 4904else 4905 xorg_cv_cc_flag_unused_command_line_argument=no 4906fi 4907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4908fi 4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4910$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4912 CFLAGS="$xorg_testset_save_CFLAGS" 4913fi 4914 4915found="no" 4916 4917 if test $found = "no" ; then 4918 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4920 fi 4921 4922 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4924 fi 4925 4926 CFLAGS="$CFLAGS -Wmissing-declarations" 4927 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5 4929$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; } 4930 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4931 if eval \${$cacheid+:} false; then : 4932 $as_echo_n "(cached) " >&6 4933else 4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4935/* end confdefs.h. */ 4936int i; 4937int 4938main () 4939{ 4940 4941 ; 4942 return 0; 4943} 4944_ACEOF 4945if ac_fn_c_try_link "$LINENO"; then : 4946 eval $cacheid=yes 4947else 4948 eval $cacheid=no 4949fi 4950rm -f core conftest.err conftest.$ac_objext \ 4951 conftest$ac_exeext conftest.$ac_ext 4952fi 4953 4954 4955 CFLAGS="$xorg_testset_save_CFLAGS" 4956 4957 eval supported=\$$cacheid 4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4959$as_echo "$supported" >&6; } 4960 if test "$supported" = "yes" ; then 4961 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4962 found="yes" 4963 fi 4964 fi 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980xorg_testset_save_CFLAGS="$CFLAGS" 4981 4982if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4985$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4986if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4987 $as_echo_n "(cached) " >&6 4988else 4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4990/* end confdefs.h. */ 4991int i; 4992_ACEOF 4993if ac_fn_c_try_compile "$LINENO"; then : 4994 xorg_cv_cc_flag_unknown_warning_option=yes 4995else 4996 xorg_cv_cc_flag_unknown_warning_option=no 4997fi 4998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4999fi 5000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5001$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5003 CFLAGS="$xorg_testset_save_CFLAGS" 5004fi 5005 5006if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5009 fi 5010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5012$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5013if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5014 $as_echo_n "(cached) " >&6 5015else 5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5017/* end confdefs.h. */ 5018int i; 5019_ACEOF 5020if ac_fn_c_try_compile "$LINENO"; then : 5021 xorg_cv_cc_flag_unused_command_line_argument=yes 5022else 5023 xorg_cv_cc_flag_unused_command_line_argument=no 5024fi 5025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5026fi 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5028$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5030 CFLAGS="$xorg_testset_save_CFLAGS" 5031fi 5032 5033found="no" 5034 5035 if test $found = "no" ; then 5036 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5038 fi 5039 5040 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5042 fi 5043 5044 CFLAGS="$CFLAGS -Wformat=2" 5045 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5 5047$as_echo_n "checking if $CC supports-Wformat=2... " >&6; } 5048 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5049 if eval \${$cacheid+:} false; then : 5050 $as_echo_n "(cached) " >&6 5051else 5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5053/* end confdefs.h. */ 5054int i; 5055int 5056main () 5057{ 5058 5059 ; 5060 return 0; 5061} 5062_ACEOF 5063if ac_fn_c_try_link "$LINENO"; then : 5064 eval $cacheid=yes 5065else 5066 eval $cacheid=no 5067fi 5068rm -f core conftest.err conftest.$ac_objext \ 5069 conftest$ac_exeext conftest.$ac_ext 5070fi 5071 5072 5073 CFLAGS="$xorg_testset_save_CFLAGS" 5074 5075 eval supported=\$$cacheid 5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5077$as_echo "$supported" >&6; } 5078 if test "$supported" = "yes" ; then 5079 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5080 found="yes" 5081 fi 5082 fi 5083 5084 if test $found = "no" ; then 5085 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5087 fi 5088 5089 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5091 fi 5092 5093 CFLAGS="$CFLAGS -Wformat" 5094 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5 5096$as_echo_n "checking if $CC supports-Wformat... " >&6; } 5097 cacheid=xorg_cv_cc_flag__Wformat 5098 if eval \${$cacheid+:} false; then : 5099 $as_echo_n "(cached) " >&6 5100else 5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5102/* end confdefs.h. */ 5103int i; 5104int 5105main () 5106{ 5107 5108 ; 5109 return 0; 5110} 5111_ACEOF 5112if ac_fn_c_try_link "$LINENO"; then : 5113 eval $cacheid=yes 5114else 5115 eval $cacheid=no 5116fi 5117rm -f core conftest.err conftest.$ac_objext \ 5118 conftest$ac_exeext conftest.$ac_ext 5119fi 5120 5121 5122 CFLAGS="$xorg_testset_save_CFLAGS" 5123 5124 eval supported=\$$cacheid 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5126$as_echo "$supported" >&6; } 5127 if test "$supported" = "yes" ; then 5128 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5129 found="yes" 5130 fi 5131 fi 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149xorg_testset_save_CFLAGS="$CFLAGS" 5150 5151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5154$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5155if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5156 $as_echo_n "(cached) " >&6 5157else 5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5159/* end confdefs.h. */ 5160int i; 5161_ACEOF 5162if ac_fn_c_try_compile "$LINENO"; then : 5163 xorg_cv_cc_flag_unknown_warning_option=yes 5164else 5165 xorg_cv_cc_flag_unknown_warning_option=no 5166fi 5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5168fi 5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5170$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5172 CFLAGS="$xorg_testset_save_CFLAGS" 5173fi 5174 5175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5178 fi 5179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5181$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5182if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5183 $as_echo_n "(cached) " >&6 5184else 5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5186/* end confdefs.h. */ 5187int i; 5188_ACEOF 5189if ac_fn_c_try_compile "$LINENO"; then : 5190 xorg_cv_cc_flag_unused_command_line_argument=yes 5191else 5192 xorg_cv_cc_flag_unused_command_line_argument=no 5193fi 5194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5195fi 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5197$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5199 CFLAGS="$xorg_testset_save_CFLAGS" 5200fi 5201 5202found="no" 5203 5204 if test $found = "no" ; then 5205 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5207 fi 5208 5209 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5211 fi 5212 5213 CFLAGS="$CFLAGS -Wstrict-prototypes" 5214 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5 5216$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; } 5217 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5218 if eval \${$cacheid+:} false; then : 5219 $as_echo_n "(cached) " >&6 5220else 5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5222/* end confdefs.h. */ 5223int i; 5224int 5225main () 5226{ 5227 5228 ; 5229 return 0; 5230} 5231_ACEOF 5232if ac_fn_c_try_link "$LINENO"; then : 5233 eval $cacheid=yes 5234else 5235 eval $cacheid=no 5236fi 5237rm -f core conftest.err conftest.$ac_objext \ 5238 conftest$ac_exeext conftest.$ac_ext 5239fi 5240 5241 5242 CFLAGS="$xorg_testset_save_CFLAGS" 5243 5244 eval supported=\$$cacheid 5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5246$as_echo "$supported" >&6; } 5247 if test "$supported" = "yes" ; then 5248 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5249 found="yes" 5250 fi 5251 fi 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267xorg_testset_save_CFLAGS="$CFLAGS" 5268 5269if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5272$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5273if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5274 $as_echo_n "(cached) " >&6 5275else 5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5277/* end confdefs.h. */ 5278int i; 5279_ACEOF 5280if ac_fn_c_try_compile "$LINENO"; then : 5281 xorg_cv_cc_flag_unknown_warning_option=yes 5282else 5283 xorg_cv_cc_flag_unknown_warning_option=no 5284fi 5285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5286fi 5287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5288$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5290 CFLAGS="$xorg_testset_save_CFLAGS" 5291fi 5292 5293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5296 fi 5297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5299$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5300if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5301 $as_echo_n "(cached) " >&6 5302else 5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5304/* end confdefs.h. */ 5305int i; 5306_ACEOF 5307if ac_fn_c_try_compile "$LINENO"; then : 5308 xorg_cv_cc_flag_unused_command_line_argument=yes 5309else 5310 xorg_cv_cc_flag_unused_command_line_argument=no 5311fi 5312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5313fi 5314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5315$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5316 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5317 CFLAGS="$xorg_testset_save_CFLAGS" 5318fi 5319 5320found="no" 5321 5322 if test $found = "no" ; then 5323 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5325 fi 5326 5327 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5329 fi 5330 5331 CFLAGS="$CFLAGS -Wmissing-prototypes" 5332 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5 5334$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; } 5335 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5336 if eval \${$cacheid+:} false; then : 5337 $as_echo_n "(cached) " >&6 5338else 5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5340/* end confdefs.h. */ 5341int i; 5342int 5343main () 5344{ 5345 5346 ; 5347 return 0; 5348} 5349_ACEOF 5350if ac_fn_c_try_link "$LINENO"; then : 5351 eval $cacheid=yes 5352else 5353 eval $cacheid=no 5354fi 5355rm -f core conftest.err conftest.$ac_objext \ 5356 conftest$ac_exeext conftest.$ac_ext 5357fi 5358 5359 5360 CFLAGS="$xorg_testset_save_CFLAGS" 5361 5362 eval supported=\$$cacheid 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5364$as_echo "$supported" >&6; } 5365 if test "$supported" = "yes" ; then 5366 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5367 found="yes" 5368 fi 5369 fi 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385xorg_testset_save_CFLAGS="$CFLAGS" 5386 5387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5390$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5391if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5392 $as_echo_n "(cached) " >&6 5393else 5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5395/* end confdefs.h. */ 5396int i; 5397_ACEOF 5398if ac_fn_c_try_compile "$LINENO"; then : 5399 xorg_cv_cc_flag_unknown_warning_option=yes 5400else 5401 xorg_cv_cc_flag_unknown_warning_option=no 5402fi 5403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5404fi 5405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5406$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5408 CFLAGS="$xorg_testset_save_CFLAGS" 5409fi 5410 5411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5414 fi 5415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5417$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5418if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5419 $as_echo_n "(cached) " >&6 5420else 5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5422/* end confdefs.h. */ 5423int i; 5424_ACEOF 5425if ac_fn_c_try_compile "$LINENO"; then : 5426 xorg_cv_cc_flag_unused_command_line_argument=yes 5427else 5428 xorg_cv_cc_flag_unused_command_line_argument=no 5429fi 5430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5431fi 5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5433$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5435 CFLAGS="$xorg_testset_save_CFLAGS" 5436fi 5437 5438found="no" 5439 5440 if test $found = "no" ; then 5441 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5443 fi 5444 5445 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5447 fi 5448 5449 CFLAGS="$CFLAGS -Wnested-externs" 5450 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5 5452$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; } 5453 cacheid=xorg_cv_cc_flag__Wnested_externs 5454 if eval \${$cacheid+:} false; then : 5455 $as_echo_n "(cached) " >&6 5456else 5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5458/* end confdefs.h. */ 5459int i; 5460int 5461main () 5462{ 5463 5464 ; 5465 return 0; 5466} 5467_ACEOF 5468if ac_fn_c_try_link "$LINENO"; then : 5469 eval $cacheid=yes 5470else 5471 eval $cacheid=no 5472fi 5473rm -f core conftest.err conftest.$ac_objext \ 5474 conftest$ac_exeext conftest.$ac_ext 5475fi 5476 5477 5478 CFLAGS="$xorg_testset_save_CFLAGS" 5479 5480 eval supported=\$$cacheid 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5482$as_echo "$supported" >&6; } 5483 if test "$supported" = "yes" ; then 5484 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5485 found="yes" 5486 fi 5487 fi 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503xorg_testset_save_CFLAGS="$CFLAGS" 5504 5505if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5508$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5509if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5510 $as_echo_n "(cached) " >&6 5511else 5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5513/* end confdefs.h. */ 5514int i; 5515_ACEOF 5516if ac_fn_c_try_compile "$LINENO"; then : 5517 xorg_cv_cc_flag_unknown_warning_option=yes 5518else 5519 xorg_cv_cc_flag_unknown_warning_option=no 5520fi 5521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5522fi 5523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5524$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5526 CFLAGS="$xorg_testset_save_CFLAGS" 5527fi 5528 5529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5532 fi 5533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5535$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5536if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5537 $as_echo_n "(cached) " >&6 5538else 5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5540/* end confdefs.h. */ 5541int i; 5542_ACEOF 5543if ac_fn_c_try_compile "$LINENO"; then : 5544 xorg_cv_cc_flag_unused_command_line_argument=yes 5545else 5546 xorg_cv_cc_flag_unused_command_line_argument=no 5547fi 5548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5549fi 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5551$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5553 CFLAGS="$xorg_testset_save_CFLAGS" 5554fi 5555 5556found="no" 5557 5558 if test $found = "no" ; then 5559 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5561 fi 5562 5563 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5565 fi 5566 5567 CFLAGS="$CFLAGS -Wbad-function-cast" 5568 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5 5570$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; } 5571 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5572 if eval \${$cacheid+:} false; then : 5573 $as_echo_n "(cached) " >&6 5574else 5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5576/* end confdefs.h. */ 5577int i; 5578int 5579main () 5580{ 5581 5582 ; 5583 return 0; 5584} 5585_ACEOF 5586if ac_fn_c_try_link "$LINENO"; then : 5587 eval $cacheid=yes 5588else 5589 eval $cacheid=no 5590fi 5591rm -f core conftest.err conftest.$ac_objext \ 5592 conftest$ac_exeext conftest.$ac_ext 5593fi 5594 5595 5596 CFLAGS="$xorg_testset_save_CFLAGS" 5597 5598 eval supported=\$$cacheid 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5600$as_echo "$supported" >&6; } 5601 if test "$supported" = "yes" ; then 5602 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5603 found="yes" 5604 fi 5605 fi 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621xorg_testset_save_CFLAGS="$CFLAGS" 5622 5623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5626$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5627if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5628 $as_echo_n "(cached) " >&6 5629else 5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5631/* end confdefs.h. */ 5632int i; 5633_ACEOF 5634if ac_fn_c_try_compile "$LINENO"; then : 5635 xorg_cv_cc_flag_unknown_warning_option=yes 5636else 5637 xorg_cv_cc_flag_unknown_warning_option=no 5638fi 5639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5640fi 5641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5642$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5644 CFLAGS="$xorg_testset_save_CFLAGS" 5645fi 5646 5647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5648 if test "x$xorg_testset_cc_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; } 5654if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5655 $as_echo_n "(cached) " >&6 5656else 5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5658/* end confdefs.h. */ 5659int i; 5660_ACEOF 5661if ac_fn_c_try_compile "$LINENO"; then : 5662 xorg_cv_cc_flag_unused_command_line_argument=yes 5663else 5664 xorg_cv_cc_flag_unused_command_line_argument=no 5665fi 5666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5667fi 5668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5669$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5671 CFLAGS="$xorg_testset_save_CFLAGS" 5672fi 5673 5674found="no" 5675 5676 if test $found = "no" ; then 5677 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5679 fi 5680 5681 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5683 fi 5684 5685 CFLAGS="$CFLAGS -Wold-style-definition" 5686 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5 5688$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; } 5689 cacheid=xorg_cv_cc_flag__Wold_style_definition 5690 if eval \${$cacheid+:} false; then : 5691 $as_echo_n "(cached) " >&6 5692else 5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5694/* end confdefs.h. */ 5695int i; 5696int 5697main () 5698{ 5699 5700 ; 5701 return 0; 5702} 5703_ACEOF 5704if ac_fn_c_try_link "$LINENO"; then : 5705 eval $cacheid=yes 5706else 5707 eval $cacheid=no 5708fi 5709rm -f core conftest.err conftest.$ac_objext \ 5710 conftest$ac_exeext conftest.$ac_ext 5711fi 5712 5713 5714 CFLAGS="$xorg_testset_save_CFLAGS" 5715 5716 eval supported=\$$cacheid 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5718$as_echo "$supported" >&6; } 5719 if test "$supported" = "yes" ; then 5720 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5721 found="yes" 5722 fi 5723 fi 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739xorg_testset_save_CFLAGS="$CFLAGS" 5740 5741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5744$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5745if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5746 $as_echo_n "(cached) " >&6 5747else 5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5749/* end confdefs.h. */ 5750int i; 5751_ACEOF 5752if ac_fn_c_try_compile "$LINENO"; then : 5753 xorg_cv_cc_flag_unknown_warning_option=yes 5754else 5755 xorg_cv_cc_flag_unknown_warning_option=no 5756fi 5757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5758fi 5759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5760$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5762 CFLAGS="$xorg_testset_save_CFLAGS" 5763fi 5764 5765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5768 fi 5769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5771$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5772if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5773 $as_echo_n "(cached) " >&6 5774else 5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5776/* end confdefs.h. */ 5777int i; 5778_ACEOF 5779if ac_fn_c_try_compile "$LINENO"; then : 5780 xorg_cv_cc_flag_unused_command_line_argument=yes 5781else 5782 xorg_cv_cc_flag_unused_command_line_argument=no 5783fi 5784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5785fi 5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5787$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5789 CFLAGS="$xorg_testset_save_CFLAGS" 5790fi 5791 5792found="no" 5793 5794 if test $found = "no" ; then 5795 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5797 fi 5798 5799 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5801 fi 5802 5803 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5804 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5 5806$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; } 5807 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5808 if eval \${$cacheid+:} false; then : 5809 $as_echo_n "(cached) " >&6 5810else 5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5812/* end confdefs.h. */ 5813int i; 5814int 5815main () 5816{ 5817 5818 ; 5819 return 0; 5820} 5821_ACEOF 5822if ac_fn_c_try_link "$LINENO"; then : 5823 eval $cacheid=yes 5824else 5825 eval $cacheid=no 5826fi 5827rm -f core conftest.err conftest.$ac_objext \ 5828 conftest$ac_exeext conftest.$ac_ext 5829fi 5830 5831 5832 CFLAGS="$xorg_testset_save_CFLAGS" 5833 5834 eval supported=\$$cacheid 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5836$as_echo "$supported" >&6; } 5837 if test "$supported" = "yes" ; then 5838 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5839 found="yes" 5840 fi 5841 fi 5842 5843 5844 5845 5846 5847# This chunk adds additional warnings that could catch undesired effects. 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861xorg_testset_save_CFLAGS="$CFLAGS" 5862 5863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5866$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5867if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5868 $as_echo_n "(cached) " >&6 5869else 5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5871/* end confdefs.h. */ 5872int i; 5873_ACEOF 5874if ac_fn_c_try_compile "$LINENO"; then : 5875 xorg_cv_cc_flag_unknown_warning_option=yes 5876else 5877 xorg_cv_cc_flag_unknown_warning_option=no 5878fi 5879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5880fi 5881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5882$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5883 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5884 CFLAGS="$xorg_testset_save_CFLAGS" 5885fi 5886 5887if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5890 fi 5891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5893$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5894if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5895 $as_echo_n "(cached) " >&6 5896else 5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5898/* end confdefs.h. */ 5899int i; 5900_ACEOF 5901if ac_fn_c_try_compile "$LINENO"; then : 5902 xorg_cv_cc_flag_unused_command_line_argument=yes 5903else 5904 xorg_cv_cc_flag_unused_command_line_argument=no 5905fi 5906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5907fi 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5909$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5910 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5911 CFLAGS="$xorg_testset_save_CFLAGS" 5912fi 5913 5914found="no" 5915 5916 if test $found = "no" ; then 5917 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5919 fi 5920 5921 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5923 fi 5924 5925 CFLAGS="$CFLAGS -Wunused" 5926 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5 5928$as_echo_n "checking if $CC supports-Wunused... " >&6; } 5929 cacheid=xorg_cv_cc_flag__Wunused 5930 if eval \${$cacheid+:} false; then : 5931 $as_echo_n "(cached) " >&6 5932else 5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5934/* end confdefs.h. */ 5935int i; 5936int 5937main () 5938{ 5939 5940 ; 5941 return 0; 5942} 5943_ACEOF 5944if ac_fn_c_try_link "$LINENO"; then : 5945 eval $cacheid=yes 5946else 5947 eval $cacheid=no 5948fi 5949rm -f core conftest.err conftest.$ac_objext \ 5950 conftest$ac_exeext conftest.$ac_ext 5951fi 5952 5953 5954 CFLAGS="$xorg_testset_save_CFLAGS" 5955 5956 eval supported=\$$cacheid 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5958$as_echo "$supported" >&6; } 5959 if test "$supported" = "yes" ; then 5960 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5961 found="yes" 5962 fi 5963 fi 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979xorg_testset_save_CFLAGS="$CFLAGS" 5980 5981if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5984$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5985if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5986 $as_echo_n "(cached) " >&6 5987else 5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5989/* end confdefs.h. */ 5990int i; 5991_ACEOF 5992if ac_fn_c_try_compile "$LINENO"; then : 5993 xorg_cv_cc_flag_unknown_warning_option=yes 5994else 5995 xorg_cv_cc_flag_unknown_warning_option=no 5996fi 5997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5998fi 5999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6000$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6002 CFLAGS="$xorg_testset_save_CFLAGS" 6003fi 6004 6005if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6008 fi 6009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6011$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6012if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6013 $as_echo_n "(cached) " >&6 6014else 6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6016/* end confdefs.h. */ 6017int i; 6018_ACEOF 6019if ac_fn_c_try_compile "$LINENO"; then : 6020 xorg_cv_cc_flag_unused_command_line_argument=yes 6021else 6022 xorg_cv_cc_flag_unused_command_line_argument=no 6023fi 6024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6025fi 6026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6027$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6028 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6029 CFLAGS="$xorg_testset_save_CFLAGS" 6030fi 6031 6032found="no" 6033 6034 if test $found = "no" ; then 6035 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6037 fi 6038 6039 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6041 fi 6042 6043 CFLAGS="$CFLAGS -Wuninitialized" 6044 6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5 6046$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; } 6047 cacheid=xorg_cv_cc_flag__Wuninitialized 6048 if eval \${$cacheid+:} false; then : 6049 $as_echo_n "(cached) " >&6 6050else 6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6052/* end confdefs.h. */ 6053int i; 6054int 6055main () 6056{ 6057 6058 ; 6059 return 0; 6060} 6061_ACEOF 6062if ac_fn_c_try_link "$LINENO"; then : 6063 eval $cacheid=yes 6064else 6065 eval $cacheid=no 6066fi 6067rm -f core conftest.err conftest.$ac_objext \ 6068 conftest$ac_exeext conftest.$ac_ext 6069fi 6070 6071 6072 CFLAGS="$xorg_testset_save_CFLAGS" 6073 6074 eval supported=\$$cacheid 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6076$as_echo "$supported" >&6; } 6077 if test "$supported" = "yes" ; then 6078 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6079 found="yes" 6080 fi 6081 fi 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097xorg_testset_save_CFLAGS="$CFLAGS" 6098 6099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6102$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6103if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6104 $as_echo_n "(cached) " >&6 6105else 6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6107/* end confdefs.h. */ 6108int i; 6109_ACEOF 6110if ac_fn_c_try_compile "$LINENO"; then : 6111 xorg_cv_cc_flag_unknown_warning_option=yes 6112else 6113 xorg_cv_cc_flag_unknown_warning_option=no 6114fi 6115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6116fi 6117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6118$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6120 CFLAGS="$xorg_testset_save_CFLAGS" 6121fi 6122 6123if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6126 fi 6127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6129$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6130if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6131 $as_echo_n "(cached) " >&6 6132else 6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6134/* end confdefs.h. */ 6135int i; 6136_ACEOF 6137if ac_fn_c_try_compile "$LINENO"; then : 6138 xorg_cv_cc_flag_unused_command_line_argument=yes 6139else 6140 xorg_cv_cc_flag_unused_command_line_argument=no 6141fi 6142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6143fi 6144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6145$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6147 CFLAGS="$xorg_testset_save_CFLAGS" 6148fi 6149 6150found="no" 6151 6152 if test $found = "no" ; then 6153 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6155 fi 6156 6157 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6159 fi 6160 6161 CFLAGS="$CFLAGS -Wshadow" 6162 6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5 6164$as_echo_n "checking if $CC supports-Wshadow... " >&6; } 6165 cacheid=xorg_cv_cc_flag__Wshadow 6166 if eval \${$cacheid+:} false; then : 6167 $as_echo_n "(cached) " >&6 6168else 6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6170/* end confdefs.h. */ 6171int i; 6172int 6173main () 6174{ 6175 6176 ; 6177 return 0; 6178} 6179_ACEOF 6180if ac_fn_c_try_link "$LINENO"; then : 6181 eval $cacheid=yes 6182else 6183 eval $cacheid=no 6184fi 6185rm -f core conftest.err conftest.$ac_objext \ 6186 conftest$ac_exeext conftest.$ac_ext 6187fi 6188 6189 6190 CFLAGS="$xorg_testset_save_CFLAGS" 6191 6192 eval supported=\$$cacheid 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6194$as_echo "$supported" >&6; } 6195 if test "$supported" = "yes" ; then 6196 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6197 found="yes" 6198 fi 6199 fi 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215xorg_testset_save_CFLAGS="$CFLAGS" 6216 6217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6220$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6221if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6222 $as_echo_n "(cached) " >&6 6223else 6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6225/* end confdefs.h. */ 6226int i; 6227_ACEOF 6228if ac_fn_c_try_compile "$LINENO"; then : 6229 xorg_cv_cc_flag_unknown_warning_option=yes 6230else 6231 xorg_cv_cc_flag_unknown_warning_option=no 6232fi 6233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6234fi 6235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6236$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6238 CFLAGS="$xorg_testset_save_CFLAGS" 6239fi 6240 6241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6244 fi 6245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6247$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6248if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6249 $as_echo_n "(cached) " >&6 6250else 6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6252/* end confdefs.h. */ 6253int i; 6254_ACEOF 6255if ac_fn_c_try_compile "$LINENO"; then : 6256 xorg_cv_cc_flag_unused_command_line_argument=yes 6257else 6258 xorg_cv_cc_flag_unused_command_line_argument=no 6259fi 6260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6261fi 6262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6263$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6265 CFLAGS="$xorg_testset_save_CFLAGS" 6266fi 6267 6268found="no" 6269 6270 if test $found = "no" ; then 6271 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6273 fi 6274 6275 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6277 fi 6278 6279 CFLAGS="$CFLAGS -Wcast-qual" 6280 6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5 6282$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; } 6283 cacheid=xorg_cv_cc_flag__Wcast_qual 6284 if eval \${$cacheid+:} false; then : 6285 $as_echo_n "(cached) " >&6 6286else 6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6288/* end confdefs.h. */ 6289int i; 6290int 6291main () 6292{ 6293 6294 ; 6295 return 0; 6296} 6297_ACEOF 6298if ac_fn_c_try_link "$LINENO"; then : 6299 eval $cacheid=yes 6300else 6301 eval $cacheid=no 6302fi 6303rm -f core conftest.err conftest.$ac_objext \ 6304 conftest$ac_exeext conftest.$ac_ext 6305fi 6306 6307 6308 CFLAGS="$xorg_testset_save_CFLAGS" 6309 6310 eval supported=\$$cacheid 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6312$as_echo "$supported" >&6; } 6313 if test "$supported" = "yes" ; then 6314 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6315 found="yes" 6316 fi 6317 fi 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333xorg_testset_save_CFLAGS="$CFLAGS" 6334 6335if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6338$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6339if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6340 $as_echo_n "(cached) " >&6 6341else 6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6343/* end confdefs.h. */ 6344int i; 6345_ACEOF 6346if ac_fn_c_try_compile "$LINENO"; then : 6347 xorg_cv_cc_flag_unknown_warning_option=yes 6348else 6349 xorg_cv_cc_flag_unknown_warning_option=no 6350fi 6351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6352fi 6353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6354$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6356 CFLAGS="$xorg_testset_save_CFLAGS" 6357fi 6358 6359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6362 fi 6363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6365$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6366if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6367 $as_echo_n "(cached) " >&6 6368else 6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6370/* end confdefs.h. */ 6371int i; 6372_ACEOF 6373if ac_fn_c_try_compile "$LINENO"; then : 6374 xorg_cv_cc_flag_unused_command_line_argument=yes 6375else 6376 xorg_cv_cc_flag_unused_command_line_argument=no 6377fi 6378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6379fi 6380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6381$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6383 CFLAGS="$xorg_testset_save_CFLAGS" 6384fi 6385 6386found="no" 6387 6388 if test $found = "no" ; then 6389 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6391 fi 6392 6393 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6395 fi 6396 6397 CFLAGS="$CFLAGS -Wmissing-noreturn" 6398 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5 6400$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; } 6401 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6402 if eval \${$cacheid+:} false; then : 6403 $as_echo_n "(cached) " >&6 6404else 6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6406/* end confdefs.h. */ 6407int i; 6408int 6409main () 6410{ 6411 6412 ; 6413 return 0; 6414} 6415_ACEOF 6416if ac_fn_c_try_link "$LINENO"; then : 6417 eval $cacheid=yes 6418else 6419 eval $cacheid=no 6420fi 6421rm -f core conftest.err conftest.$ac_objext \ 6422 conftest$ac_exeext conftest.$ac_ext 6423fi 6424 6425 6426 CFLAGS="$xorg_testset_save_CFLAGS" 6427 6428 eval supported=\$$cacheid 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6430$as_echo "$supported" >&6; } 6431 if test "$supported" = "yes" ; then 6432 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6433 found="yes" 6434 fi 6435 fi 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451xorg_testset_save_CFLAGS="$CFLAGS" 6452 6453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6456$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6457if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6458 $as_echo_n "(cached) " >&6 6459else 6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6461/* end confdefs.h. */ 6462int i; 6463_ACEOF 6464if ac_fn_c_try_compile "$LINENO"; then : 6465 xorg_cv_cc_flag_unknown_warning_option=yes 6466else 6467 xorg_cv_cc_flag_unknown_warning_option=no 6468fi 6469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6470fi 6471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6472$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6474 CFLAGS="$xorg_testset_save_CFLAGS" 6475fi 6476 6477if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6480 fi 6481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6483$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6484if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6485 $as_echo_n "(cached) " >&6 6486else 6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6488/* end confdefs.h. */ 6489int i; 6490_ACEOF 6491if ac_fn_c_try_compile "$LINENO"; then : 6492 xorg_cv_cc_flag_unused_command_line_argument=yes 6493else 6494 xorg_cv_cc_flag_unused_command_line_argument=no 6495fi 6496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6497fi 6498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6499$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6501 CFLAGS="$xorg_testset_save_CFLAGS" 6502fi 6503 6504found="no" 6505 6506 if test $found = "no" ; then 6507 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6509 fi 6510 6511 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6513 fi 6514 6515 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6516 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5 6518$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; } 6519 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6520 if eval \${$cacheid+:} false; then : 6521 $as_echo_n "(cached) " >&6 6522else 6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6524/* end confdefs.h. */ 6525int i; 6526int 6527main () 6528{ 6529 6530 ; 6531 return 0; 6532} 6533_ACEOF 6534if ac_fn_c_try_link "$LINENO"; then : 6535 eval $cacheid=yes 6536else 6537 eval $cacheid=no 6538fi 6539rm -f core conftest.err conftest.$ac_objext \ 6540 conftest$ac_exeext conftest.$ac_ext 6541fi 6542 6543 6544 CFLAGS="$xorg_testset_save_CFLAGS" 6545 6546 eval supported=\$$cacheid 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6548$as_echo "$supported" >&6; } 6549 if test "$supported" = "yes" ; then 6550 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6551 found="yes" 6552 fi 6553 fi 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569xorg_testset_save_CFLAGS="$CFLAGS" 6570 6571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6574$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6575if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6576 $as_echo_n "(cached) " >&6 6577else 6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6579/* end confdefs.h. */ 6580int i; 6581_ACEOF 6582if ac_fn_c_try_compile "$LINENO"; then : 6583 xorg_cv_cc_flag_unknown_warning_option=yes 6584else 6585 xorg_cv_cc_flag_unknown_warning_option=no 6586fi 6587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6588fi 6589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6590$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6592 CFLAGS="$xorg_testset_save_CFLAGS" 6593fi 6594 6595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6598 fi 6599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6601$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6602if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6603 $as_echo_n "(cached) " >&6 6604else 6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6606/* end confdefs.h. */ 6607int i; 6608_ACEOF 6609if ac_fn_c_try_compile "$LINENO"; then : 6610 xorg_cv_cc_flag_unused_command_line_argument=yes 6611else 6612 xorg_cv_cc_flag_unused_command_line_argument=no 6613fi 6614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6615fi 6616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6617$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6619 CFLAGS="$xorg_testset_save_CFLAGS" 6620fi 6621 6622found="no" 6623 6624 if test $found = "no" ; then 6625 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6627 fi 6628 6629 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6631 fi 6632 6633 CFLAGS="$CFLAGS -Wredundant-decls" 6634 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5 6636$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; } 6637 cacheid=xorg_cv_cc_flag__Wredundant_decls 6638 if eval \${$cacheid+:} false; then : 6639 $as_echo_n "(cached) " >&6 6640else 6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6642/* end confdefs.h. */ 6643int i; 6644int 6645main () 6646{ 6647 6648 ; 6649 return 0; 6650} 6651_ACEOF 6652if ac_fn_c_try_link "$LINENO"; then : 6653 eval $cacheid=yes 6654else 6655 eval $cacheid=no 6656fi 6657rm -f core conftest.err conftest.$ac_objext \ 6658 conftest$ac_exeext conftest.$ac_ext 6659fi 6660 6661 6662 CFLAGS="$xorg_testset_save_CFLAGS" 6663 6664 eval supported=\$$cacheid 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6666$as_echo "$supported" >&6; } 6667 if test "$supported" = "yes" ; then 6668 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6669 found="yes" 6670 fi 6671 fi 6672 6673 6674 6675# These are currently disabled because they are noisy. They will be enabled 6676# in the future once the codebase is sufficiently modernized to silence 6677# them. For now, I don't want them to drown out the other warnings. 6678# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6679# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6680# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6681 6682# Turn some warnings into errors, so we don't accidently get successful builds 6683# when there are problems that should be fixed. 6684 6685if test "x$SELECTIVE_WERROR" = "xyes" ; then 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699xorg_testset_save_CFLAGS="$CFLAGS" 6700 6701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6706 $as_echo_n "(cached) " >&6 6707else 6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6709/* end confdefs.h. */ 6710int i; 6711_ACEOF 6712if ac_fn_c_try_compile "$LINENO"; then : 6713 xorg_cv_cc_flag_unknown_warning_option=yes 6714else 6715 xorg_cv_cc_flag_unknown_warning_option=no 6716fi 6717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6718fi 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6722 CFLAGS="$xorg_testset_save_CFLAGS" 6723fi 6724 6725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6728 fi 6729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6732if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6733 $as_echo_n "(cached) " >&6 6734else 6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6736/* end confdefs.h. */ 6737int i; 6738_ACEOF 6739if ac_fn_c_try_compile "$LINENO"; then : 6740 xorg_cv_cc_flag_unused_command_line_argument=yes 6741else 6742 xorg_cv_cc_flag_unused_command_line_argument=no 6743fi 6744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6745fi 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6749 CFLAGS="$xorg_testset_save_CFLAGS" 6750fi 6751 6752found="no" 6753 6754 if test $found = "no" ; then 6755 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6757 fi 6758 6759 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6761 fi 6762 6763 CFLAGS="$CFLAGS -Werror=implicit" 6764 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5 6766$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; } 6767 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6768 if eval \${$cacheid+:} false; then : 6769 $as_echo_n "(cached) " >&6 6770else 6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6772/* end confdefs.h. */ 6773int i; 6774int 6775main () 6776{ 6777 6778 ; 6779 return 0; 6780} 6781_ACEOF 6782if ac_fn_c_try_link "$LINENO"; then : 6783 eval $cacheid=yes 6784else 6785 eval $cacheid=no 6786fi 6787rm -f core conftest.err conftest.$ac_objext \ 6788 conftest$ac_exeext conftest.$ac_ext 6789fi 6790 6791 6792 CFLAGS="$xorg_testset_save_CFLAGS" 6793 6794 eval supported=\$$cacheid 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6796$as_echo "$supported" >&6; } 6797 if test "$supported" = "yes" ; then 6798 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6799 found="yes" 6800 fi 6801 fi 6802 6803 if test $found = "no" ; then 6804 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6806 fi 6807 6808 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6810 fi 6811 6812 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6813 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6815$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6816 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6817 if eval \${$cacheid+:} false; then : 6818 $as_echo_n "(cached) " >&6 6819else 6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6821/* end confdefs.h. */ 6822int i; 6823int 6824main () 6825{ 6826 6827 ; 6828 return 0; 6829} 6830_ACEOF 6831if ac_fn_c_try_link "$LINENO"; then : 6832 eval $cacheid=yes 6833else 6834 eval $cacheid=no 6835fi 6836rm -f core conftest.err conftest.$ac_objext \ 6837 conftest$ac_exeext conftest.$ac_ext 6838fi 6839 6840 6841 CFLAGS="$xorg_testset_save_CFLAGS" 6842 6843 eval supported=\$$cacheid 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6845$as_echo "$supported" >&6; } 6846 if test "$supported" = "yes" ; then 6847 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6848 found="yes" 6849 fi 6850 fi 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866xorg_testset_save_CFLAGS="$CFLAGS" 6867 6868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6871$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6872if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6873 $as_echo_n "(cached) " >&6 6874else 6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6876/* end confdefs.h. */ 6877int i; 6878_ACEOF 6879if ac_fn_c_try_compile "$LINENO"; then : 6880 xorg_cv_cc_flag_unknown_warning_option=yes 6881else 6882 xorg_cv_cc_flag_unknown_warning_option=no 6883fi 6884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6885fi 6886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6887$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6889 CFLAGS="$xorg_testset_save_CFLAGS" 6890fi 6891 6892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6895 fi 6896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6898$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6899if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6900 $as_echo_n "(cached) " >&6 6901else 6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6903/* end confdefs.h. */ 6904int i; 6905_ACEOF 6906if ac_fn_c_try_compile "$LINENO"; then : 6907 xorg_cv_cc_flag_unused_command_line_argument=yes 6908else 6909 xorg_cv_cc_flag_unused_command_line_argument=no 6910fi 6911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6912fi 6913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6914$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6916 CFLAGS="$xorg_testset_save_CFLAGS" 6917fi 6918 6919found="no" 6920 6921 if test $found = "no" ; then 6922 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6924 fi 6925 6926 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6928 fi 6929 6930 CFLAGS="$CFLAGS -Werror=nonnull" 6931 6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5 6933$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; } 6934 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 6935 if eval \${$cacheid+:} false; then : 6936 $as_echo_n "(cached) " >&6 6937else 6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6939/* end confdefs.h. */ 6940int i; 6941int 6942main () 6943{ 6944 6945 ; 6946 return 0; 6947} 6948_ACEOF 6949if ac_fn_c_try_link "$LINENO"; then : 6950 eval $cacheid=yes 6951else 6952 eval $cacheid=no 6953fi 6954rm -f core conftest.err conftest.$ac_objext \ 6955 conftest$ac_exeext conftest.$ac_ext 6956fi 6957 6958 6959 CFLAGS="$xorg_testset_save_CFLAGS" 6960 6961 eval supported=\$$cacheid 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6963$as_echo "$supported" >&6; } 6964 if test "$supported" = "yes" ; then 6965 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6966 found="yes" 6967 fi 6968 fi 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984xorg_testset_save_CFLAGS="$CFLAGS" 6985 6986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6989$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6990if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6991 $as_echo_n "(cached) " >&6 6992else 6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6994/* end confdefs.h. */ 6995int i; 6996_ACEOF 6997if ac_fn_c_try_compile "$LINENO"; then : 6998 xorg_cv_cc_flag_unknown_warning_option=yes 6999else 7000 xorg_cv_cc_flag_unknown_warning_option=no 7001fi 7002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7003fi 7004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7005$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7007 CFLAGS="$xorg_testset_save_CFLAGS" 7008fi 7009 7010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7013 fi 7014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7016$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7017if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7018 $as_echo_n "(cached) " >&6 7019else 7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7021/* end confdefs.h. */ 7022int i; 7023_ACEOF 7024if ac_fn_c_try_compile "$LINENO"; then : 7025 xorg_cv_cc_flag_unused_command_line_argument=yes 7026else 7027 xorg_cv_cc_flag_unused_command_line_argument=no 7028fi 7029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7030fi 7031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7032$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7034 CFLAGS="$xorg_testset_save_CFLAGS" 7035fi 7036 7037found="no" 7038 7039 if test $found = "no" ; then 7040 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7042 fi 7043 7044 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7046 fi 7047 7048 CFLAGS="$CFLAGS -Werror=init-self" 7049 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5 7051$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; } 7052 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7053 if eval \${$cacheid+:} false; then : 7054 $as_echo_n "(cached) " >&6 7055else 7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7057/* end confdefs.h. */ 7058int i; 7059int 7060main () 7061{ 7062 7063 ; 7064 return 0; 7065} 7066_ACEOF 7067if ac_fn_c_try_link "$LINENO"; then : 7068 eval $cacheid=yes 7069else 7070 eval $cacheid=no 7071fi 7072rm -f core conftest.err conftest.$ac_objext \ 7073 conftest$ac_exeext conftest.$ac_ext 7074fi 7075 7076 7077 CFLAGS="$xorg_testset_save_CFLAGS" 7078 7079 eval supported=\$$cacheid 7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7081$as_echo "$supported" >&6; } 7082 if test "$supported" = "yes" ; then 7083 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7084 found="yes" 7085 fi 7086 fi 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102xorg_testset_save_CFLAGS="$CFLAGS" 7103 7104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7107$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7108if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7109 $as_echo_n "(cached) " >&6 7110else 7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7112/* end confdefs.h. */ 7113int i; 7114_ACEOF 7115if ac_fn_c_try_compile "$LINENO"; then : 7116 xorg_cv_cc_flag_unknown_warning_option=yes 7117else 7118 xorg_cv_cc_flag_unknown_warning_option=no 7119fi 7120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7121fi 7122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7123$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7125 CFLAGS="$xorg_testset_save_CFLAGS" 7126fi 7127 7128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7131 fi 7132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7134$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7135if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7136 $as_echo_n "(cached) " >&6 7137else 7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7139/* end confdefs.h. */ 7140int i; 7141_ACEOF 7142if ac_fn_c_try_compile "$LINENO"; then : 7143 xorg_cv_cc_flag_unused_command_line_argument=yes 7144else 7145 xorg_cv_cc_flag_unused_command_line_argument=no 7146fi 7147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7148fi 7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7150$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7152 CFLAGS="$xorg_testset_save_CFLAGS" 7153fi 7154 7155found="no" 7156 7157 if test $found = "no" ; then 7158 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7160 fi 7161 7162 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7164 fi 7165 7166 CFLAGS="$CFLAGS -Werror=main" 7167 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5 7169$as_echo_n "checking if $CC supports-Werror=main... " >&6; } 7170 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7171 if eval \${$cacheid+:} false; then : 7172 $as_echo_n "(cached) " >&6 7173else 7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7175/* end confdefs.h. */ 7176int i; 7177int 7178main () 7179{ 7180 7181 ; 7182 return 0; 7183} 7184_ACEOF 7185if ac_fn_c_try_link "$LINENO"; then : 7186 eval $cacheid=yes 7187else 7188 eval $cacheid=no 7189fi 7190rm -f core conftest.err conftest.$ac_objext \ 7191 conftest$ac_exeext conftest.$ac_ext 7192fi 7193 7194 7195 CFLAGS="$xorg_testset_save_CFLAGS" 7196 7197 eval supported=\$$cacheid 7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7199$as_echo "$supported" >&6; } 7200 if test "$supported" = "yes" ; then 7201 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7202 found="yes" 7203 fi 7204 fi 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220xorg_testset_save_CFLAGS="$CFLAGS" 7221 7222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7225$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7226if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7227 $as_echo_n "(cached) " >&6 7228else 7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7230/* end confdefs.h. */ 7231int i; 7232_ACEOF 7233if ac_fn_c_try_compile "$LINENO"; then : 7234 xorg_cv_cc_flag_unknown_warning_option=yes 7235else 7236 xorg_cv_cc_flag_unknown_warning_option=no 7237fi 7238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7239fi 7240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7241$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7243 CFLAGS="$xorg_testset_save_CFLAGS" 7244fi 7245 7246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7249 fi 7250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7252$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7253if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7254 $as_echo_n "(cached) " >&6 7255else 7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7257/* end confdefs.h. */ 7258int i; 7259_ACEOF 7260if ac_fn_c_try_compile "$LINENO"; then : 7261 xorg_cv_cc_flag_unused_command_line_argument=yes 7262else 7263 xorg_cv_cc_flag_unused_command_line_argument=no 7264fi 7265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7266fi 7267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7268$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7270 CFLAGS="$xorg_testset_save_CFLAGS" 7271fi 7272 7273found="no" 7274 7275 if test $found = "no" ; then 7276 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7278 fi 7279 7280 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7282 fi 7283 7284 CFLAGS="$CFLAGS -Werror=missing-braces" 7285 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5 7287$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; } 7288 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7289 if eval \${$cacheid+:} false; then : 7290 $as_echo_n "(cached) " >&6 7291else 7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7293/* end confdefs.h. */ 7294int i; 7295int 7296main () 7297{ 7298 7299 ; 7300 return 0; 7301} 7302_ACEOF 7303if ac_fn_c_try_link "$LINENO"; then : 7304 eval $cacheid=yes 7305else 7306 eval $cacheid=no 7307fi 7308rm -f core conftest.err conftest.$ac_objext \ 7309 conftest$ac_exeext conftest.$ac_ext 7310fi 7311 7312 7313 CFLAGS="$xorg_testset_save_CFLAGS" 7314 7315 eval supported=\$$cacheid 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7317$as_echo "$supported" >&6; } 7318 if test "$supported" = "yes" ; then 7319 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7320 found="yes" 7321 fi 7322 fi 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338xorg_testset_save_CFLAGS="$CFLAGS" 7339 7340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7343$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7344if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7345 $as_echo_n "(cached) " >&6 7346else 7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7348/* end confdefs.h. */ 7349int i; 7350_ACEOF 7351if ac_fn_c_try_compile "$LINENO"; then : 7352 xorg_cv_cc_flag_unknown_warning_option=yes 7353else 7354 xorg_cv_cc_flag_unknown_warning_option=no 7355fi 7356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7357fi 7358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7359$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7361 CFLAGS="$xorg_testset_save_CFLAGS" 7362fi 7363 7364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7367 fi 7368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7370$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7371if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7372 $as_echo_n "(cached) " >&6 7373else 7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7375/* end confdefs.h. */ 7376int i; 7377_ACEOF 7378if ac_fn_c_try_compile "$LINENO"; then : 7379 xorg_cv_cc_flag_unused_command_line_argument=yes 7380else 7381 xorg_cv_cc_flag_unused_command_line_argument=no 7382fi 7383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7384fi 7385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7386$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7388 CFLAGS="$xorg_testset_save_CFLAGS" 7389fi 7390 7391found="no" 7392 7393 if test $found = "no" ; then 7394 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7396 fi 7397 7398 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7400 fi 7401 7402 CFLAGS="$CFLAGS -Werror=sequence-point" 7403 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5 7405$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; } 7406 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7407 if eval \${$cacheid+:} false; then : 7408 $as_echo_n "(cached) " >&6 7409else 7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7411/* end confdefs.h. */ 7412int i; 7413int 7414main () 7415{ 7416 7417 ; 7418 return 0; 7419} 7420_ACEOF 7421if ac_fn_c_try_link "$LINENO"; then : 7422 eval $cacheid=yes 7423else 7424 eval $cacheid=no 7425fi 7426rm -f core conftest.err conftest.$ac_objext \ 7427 conftest$ac_exeext conftest.$ac_ext 7428fi 7429 7430 7431 CFLAGS="$xorg_testset_save_CFLAGS" 7432 7433 eval supported=\$$cacheid 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7435$as_echo "$supported" >&6; } 7436 if test "$supported" = "yes" ; then 7437 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7438 found="yes" 7439 fi 7440 fi 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456xorg_testset_save_CFLAGS="$CFLAGS" 7457 7458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7463 $as_echo_n "(cached) " >&6 7464else 7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7466/* end confdefs.h. */ 7467int i; 7468_ACEOF 7469if ac_fn_c_try_compile "$LINENO"; then : 7470 xorg_cv_cc_flag_unknown_warning_option=yes 7471else 7472 xorg_cv_cc_flag_unknown_warning_option=no 7473fi 7474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7475fi 7476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7479 CFLAGS="$xorg_testset_save_CFLAGS" 7480fi 7481 7482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7485 fi 7486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7490 $as_echo_n "(cached) " >&6 7491else 7492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7493/* end confdefs.h. */ 7494int i; 7495_ACEOF 7496if ac_fn_c_try_compile "$LINENO"; then : 7497 xorg_cv_cc_flag_unused_command_line_argument=yes 7498else 7499 xorg_cv_cc_flag_unused_command_line_argument=no 7500fi 7501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7502fi 7503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7506 CFLAGS="$xorg_testset_save_CFLAGS" 7507fi 7508 7509found="no" 7510 7511 if test $found = "no" ; then 7512 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7514 fi 7515 7516 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7518 fi 7519 7520 CFLAGS="$CFLAGS -Werror=return-type" 7521 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5 7523$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; } 7524 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7525 if eval \${$cacheid+:} false; then : 7526 $as_echo_n "(cached) " >&6 7527else 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 eval $cacheid=yes 7541else 7542 eval $cacheid=no 7543fi 7544rm -f core conftest.err conftest.$ac_objext \ 7545 conftest$ac_exeext conftest.$ac_ext 7546fi 7547 7548 7549 CFLAGS="$xorg_testset_save_CFLAGS" 7550 7551 eval supported=\$$cacheid 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7553$as_echo "$supported" >&6; } 7554 if test "$supported" = "yes" ; then 7555 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7556 found="yes" 7557 fi 7558 fi 7559 7560 if test $found = "no" ; then 7561 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7563 fi 7564 7565 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7567 fi 7568 7569 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7570 7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7572$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7573 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7574 if eval \${$cacheid+:} false; then : 7575 $as_echo_n "(cached) " >&6 7576else 7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7578/* end confdefs.h. */ 7579int i; 7580int 7581main () 7582{ 7583 7584 ; 7585 return 0; 7586} 7587_ACEOF 7588if ac_fn_c_try_link "$LINENO"; then : 7589 eval $cacheid=yes 7590else 7591 eval $cacheid=no 7592fi 7593rm -f core conftest.err conftest.$ac_objext \ 7594 conftest$ac_exeext conftest.$ac_ext 7595fi 7596 7597 7598 CFLAGS="$xorg_testset_save_CFLAGS" 7599 7600 eval supported=\$$cacheid 7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7602$as_echo "$supported" >&6; } 7603 if test "$supported" = "yes" ; then 7604 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7605 found="yes" 7606 fi 7607 fi 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623xorg_testset_save_CFLAGS="$CFLAGS" 7624 7625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7630 $as_echo_n "(cached) " >&6 7631else 7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7633/* end confdefs.h. */ 7634int i; 7635_ACEOF 7636if ac_fn_c_try_compile "$LINENO"; then : 7637 xorg_cv_cc_flag_unknown_warning_option=yes 7638else 7639 xorg_cv_cc_flag_unknown_warning_option=no 7640fi 7641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7642fi 7643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7646 CFLAGS="$xorg_testset_save_CFLAGS" 7647fi 7648 7649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7652 fi 7653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7657 $as_echo_n "(cached) " >&6 7658else 7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7660/* end confdefs.h. */ 7661int i; 7662_ACEOF 7663if ac_fn_c_try_compile "$LINENO"; then : 7664 xorg_cv_cc_flag_unused_command_line_argument=yes 7665else 7666 xorg_cv_cc_flag_unused_command_line_argument=no 7667fi 7668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7669fi 7670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7673 CFLAGS="$xorg_testset_save_CFLAGS" 7674fi 7675 7676found="no" 7677 7678 if test $found = "no" ; then 7679 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7681 fi 7682 7683 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7685 fi 7686 7687 CFLAGS="$CFLAGS -Werror=trigraphs" 7688 7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5 7690$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; } 7691 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7692 if eval \${$cacheid+:} false; then : 7693 $as_echo_n "(cached) " >&6 7694else 7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7696/* end confdefs.h. */ 7697int i; 7698int 7699main () 7700{ 7701 7702 ; 7703 return 0; 7704} 7705_ACEOF 7706if ac_fn_c_try_link "$LINENO"; then : 7707 eval $cacheid=yes 7708else 7709 eval $cacheid=no 7710fi 7711rm -f core conftest.err conftest.$ac_objext \ 7712 conftest$ac_exeext conftest.$ac_ext 7713fi 7714 7715 7716 CFLAGS="$xorg_testset_save_CFLAGS" 7717 7718 eval supported=\$$cacheid 7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7720$as_echo "$supported" >&6; } 7721 if test "$supported" = "yes" ; then 7722 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7723 found="yes" 7724 fi 7725 fi 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741xorg_testset_save_CFLAGS="$CFLAGS" 7742 7743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7748 $as_echo_n "(cached) " >&6 7749else 7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7751/* end confdefs.h. */ 7752int i; 7753_ACEOF 7754if ac_fn_c_try_compile "$LINENO"; then : 7755 xorg_cv_cc_flag_unknown_warning_option=yes 7756else 7757 xorg_cv_cc_flag_unknown_warning_option=no 7758fi 7759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7760fi 7761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7764 CFLAGS="$xorg_testset_save_CFLAGS" 7765fi 7766 7767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7770 fi 7771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7775 $as_echo_n "(cached) " >&6 7776else 7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7778/* end confdefs.h. */ 7779int i; 7780_ACEOF 7781if ac_fn_c_try_compile "$LINENO"; then : 7782 xorg_cv_cc_flag_unused_command_line_argument=yes 7783else 7784 xorg_cv_cc_flag_unused_command_line_argument=no 7785fi 7786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7787fi 7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7791 CFLAGS="$xorg_testset_save_CFLAGS" 7792fi 7793 7794found="no" 7795 7796 if test $found = "no" ; then 7797 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7799 fi 7800 7801 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7803 fi 7804 7805 CFLAGS="$CFLAGS -Werror=array-bounds" 7806 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5 7808$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; } 7809 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7810 if eval \${$cacheid+:} false; then : 7811 $as_echo_n "(cached) " >&6 7812else 7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7814/* end confdefs.h. */ 7815int i; 7816int 7817main () 7818{ 7819 7820 ; 7821 return 0; 7822} 7823_ACEOF 7824if ac_fn_c_try_link "$LINENO"; then : 7825 eval $cacheid=yes 7826else 7827 eval $cacheid=no 7828fi 7829rm -f core conftest.err conftest.$ac_objext \ 7830 conftest$ac_exeext conftest.$ac_ext 7831fi 7832 7833 7834 CFLAGS="$xorg_testset_save_CFLAGS" 7835 7836 eval supported=\$$cacheid 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7838$as_echo "$supported" >&6; } 7839 if test "$supported" = "yes" ; then 7840 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7841 found="yes" 7842 fi 7843 fi 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859xorg_testset_save_CFLAGS="$CFLAGS" 7860 7861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7866 $as_echo_n "(cached) " >&6 7867else 7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7869/* end confdefs.h. */ 7870int i; 7871_ACEOF 7872if ac_fn_c_try_compile "$LINENO"; then : 7873 xorg_cv_cc_flag_unknown_warning_option=yes 7874else 7875 xorg_cv_cc_flag_unknown_warning_option=no 7876fi 7877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7878fi 7879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7882 CFLAGS="$xorg_testset_save_CFLAGS" 7883fi 7884 7885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7888 fi 7889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7893 $as_echo_n "(cached) " >&6 7894else 7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7896/* end confdefs.h. */ 7897int i; 7898_ACEOF 7899if ac_fn_c_try_compile "$LINENO"; then : 7900 xorg_cv_cc_flag_unused_command_line_argument=yes 7901else 7902 xorg_cv_cc_flag_unused_command_line_argument=no 7903fi 7904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7905fi 7906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7909 CFLAGS="$xorg_testset_save_CFLAGS" 7910fi 7911 7912found="no" 7913 7914 if test $found = "no" ; then 7915 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7917 fi 7918 7919 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7921 fi 7922 7923 CFLAGS="$CFLAGS -Werror=write-strings" 7924 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5 7926$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; } 7927 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 7928 if eval \${$cacheid+:} false; then : 7929 $as_echo_n "(cached) " >&6 7930else 7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7932/* end confdefs.h. */ 7933int i; 7934int 7935main () 7936{ 7937 7938 ; 7939 return 0; 7940} 7941_ACEOF 7942if ac_fn_c_try_link "$LINENO"; then : 7943 eval $cacheid=yes 7944else 7945 eval $cacheid=no 7946fi 7947rm -f core conftest.err conftest.$ac_objext \ 7948 conftest$ac_exeext conftest.$ac_ext 7949fi 7950 7951 7952 CFLAGS="$xorg_testset_save_CFLAGS" 7953 7954 eval supported=\$$cacheid 7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7956$as_echo "$supported" >&6; } 7957 if test "$supported" = "yes" ; then 7958 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7959 found="yes" 7960 fi 7961 fi 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977xorg_testset_save_CFLAGS="$CFLAGS" 7978 7979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7982$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7983if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7984 $as_echo_n "(cached) " >&6 7985else 7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7987/* end confdefs.h. */ 7988int i; 7989_ACEOF 7990if ac_fn_c_try_compile "$LINENO"; then : 7991 xorg_cv_cc_flag_unknown_warning_option=yes 7992else 7993 xorg_cv_cc_flag_unknown_warning_option=no 7994fi 7995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7996fi 7997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7998$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8000 CFLAGS="$xorg_testset_save_CFLAGS" 8001fi 8002 8003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8006 fi 8007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8010if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8011 $as_echo_n "(cached) " >&6 8012else 8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8014/* end confdefs.h. */ 8015int i; 8016_ACEOF 8017if ac_fn_c_try_compile "$LINENO"; then : 8018 xorg_cv_cc_flag_unused_command_line_argument=yes 8019else 8020 xorg_cv_cc_flag_unused_command_line_argument=no 8021fi 8022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8023fi 8024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8025$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8027 CFLAGS="$xorg_testset_save_CFLAGS" 8028fi 8029 8030found="no" 8031 8032 if test $found = "no" ; then 8033 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8035 fi 8036 8037 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8039 fi 8040 8041 CFLAGS="$CFLAGS -Werror=address" 8042 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5 8044$as_echo_n "checking if $CC supports-Werror=address... " >&6; } 8045 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8046 if eval \${$cacheid+:} false; then : 8047 $as_echo_n "(cached) " >&6 8048else 8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8050/* end confdefs.h. */ 8051int i; 8052int 8053main () 8054{ 8055 8056 ; 8057 return 0; 8058} 8059_ACEOF 8060if ac_fn_c_try_link "$LINENO"; then : 8061 eval $cacheid=yes 8062else 8063 eval $cacheid=no 8064fi 8065rm -f core conftest.err conftest.$ac_objext \ 8066 conftest$ac_exeext conftest.$ac_ext 8067fi 8068 8069 8070 CFLAGS="$xorg_testset_save_CFLAGS" 8071 8072 eval supported=\$$cacheid 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8074$as_echo "$supported" >&6; } 8075 if test "$supported" = "yes" ; then 8076 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8077 found="yes" 8078 fi 8079 fi 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095xorg_testset_save_CFLAGS="$CFLAGS" 8096 8097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8100$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8101if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8102 $as_echo_n "(cached) " >&6 8103else 8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8105/* end confdefs.h. */ 8106int i; 8107_ACEOF 8108if ac_fn_c_try_compile "$LINENO"; then : 8109 xorg_cv_cc_flag_unknown_warning_option=yes 8110else 8111 xorg_cv_cc_flag_unknown_warning_option=no 8112fi 8113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8114fi 8115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8116$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8118 CFLAGS="$xorg_testset_save_CFLAGS" 8119fi 8120 8121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8124 fi 8125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8127$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8128if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8129 $as_echo_n "(cached) " >&6 8130else 8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8132/* end confdefs.h. */ 8133int i; 8134_ACEOF 8135if ac_fn_c_try_compile "$LINENO"; then : 8136 xorg_cv_cc_flag_unused_command_line_argument=yes 8137else 8138 xorg_cv_cc_flag_unused_command_line_argument=no 8139fi 8140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8141fi 8142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8143$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8145 CFLAGS="$xorg_testset_save_CFLAGS" 8146fi 8147 8148found="no" 8149 8150 if test $found = "no" ; then 8151 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8153 fi 8154 8155 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8157 fi 8158 8159 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8160 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5 8162$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; } 8163 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8164 if eval \${$cacheid+:} false; then : 8165 $as_echo_n "(cached) " >&6 8166else 8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8168/* end confdefs.h. */ 8169int i; 8170int 8171main () 8172{ 8173 8174 ; 8175 return 0; 8176} 8177_ACEOF 8178if ac_fn_c_try_link "$LINENO"; then : 8179 eval $cacheid=yes 8180else 8181 eval $cacheid=no 8182fi 8183rm -f core conftest.err conftest.$ac_objext \ 8184 conftest$ac_exeext conftest.$ac_ext 8185fi 8186 8187 8188 CFLAGS="$xorg_testset_save_CFLAGS" 8189 8190 eval supported=\$$cacheid 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8192$as_echo "$supported" >&6; } 8193 if test "$supported" = "yes" ; then 8194 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8195 found="yes" 8196 fi 8197 fi 8198 8199 if test $found = "no" ; then 8200 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8202 fi 8203 8204 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8206 fi 8207 8208 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8209 8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8211$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8212 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8213 if eval \${$cacheid+:} false; then : 8214 $as_echo_n "(cached) " >&6 8215else 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 eval $cacheid=yes 8229else 8230 eval $cacheid=no 8231fi 8232rm -f core conftest.err conftest.$ac_objext \ 8233 conftest$ac_exeext conftest.$ac_ext 8234fi 8235 8236 8237 CFLAGS="$xorg_testset_save_CFLAGS" 8238 8239 eval supported=\$$cacheid 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8241$as_echo "$supported" >&6; } 8242 if test "$supported" = "yes" ; then 8243 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8244 found="yes" 8245 fi 8246 fi 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262xorg_testset_save_CFLAGS="$CFLAGS" 8263 8264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8267$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8268if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8269 $as_echo_n "(cached) " >&6 8270else 8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8272/* end confdefs.h. */ 8273int i; 8274_ACEOF 8275if ac_fn_c_try_compile "$LINENO"; then : 8276 xorg_cv_cc_flag_unknown_warning_option=yes 8277else 8278 xorg_cv_cc_flag_unknown_warning_option=no 8279fi 8280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8281fi 8282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8283$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8284 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8285 CFLAGS="$xorg_testset_save_CFLAGS" 8286fi 8287 8288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8291 fi 8292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8294$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8295if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8296 $as_echo_n "(cached) " >&6 8297else 8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8299/* end confdefs.h. */ 8300int i; 8301_ACEOF 8302if ac_fn_c_try_compile "$LINENO"; then : 8303 xorg_cv_cc_flag_unused_command_line_argument=yes 8304else 8305 xorg_cv_cc_flag_unused_command_line_argument=no 8306fi 8307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8308fi 8309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8310$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8312 CFLAGS="$xorg_testset_save_CFLAGS" 8313fi 8314 8315found="no" 8316 8317 if test $found = "no" ; then 8318 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8320 fi 8321 8322 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8324 fi 8325 8326 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8327 8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5 8329$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; } 8330 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8331 if eval \${$cacheid+:} false; then : 8332 $as_echo_n "(cached) " >&6 8333else 8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8335/* end confdefs.h. */ 8336int i; 8337int 8338main () 8339{ 8340 8341 ; 8342 return 0; 8343} 8344_ACEOF 8345if ac_fn_c_try_link "$LINENO"; then : 8346 eval $cacheid=yes 8347else 8348 eval $cacheid=no 8349fi 8350rm -f core conftest.err conftest.$ac_objext \ 8351 conftest$ac_exeext conftest.$ac_ext 8352fi 8353 8354 8355 CFLAGS="$xorg_testset_save_CFLAGS" 8356 8357 eval supported=\$$cacheid 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8359$as_echo "$supported" >&6; } 8360 if test "$supported" = "yes" ; then 8361 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8362 found="yes" 8363 fi 8364 fi 8365 8366 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8367else 8368{ $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 8369$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;} 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383xorg_testset_save_CFLAGS="$CFLAGS" 8384 8385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8388$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8389if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8390 $as_echo_n "(cached) " >&6 8391else 8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8393/* end confdefs.h. */ 8394int i; 8395_ACEOF 8396if ac_fn_c_try_compile "$LINENO"; then : 8397 xorg_cv_cc_flag_unknown_warning_option=yes 8398else 8399 xorg_cv_cc_flag_unknown_warning_option=no 8400fi 8401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8402fi 8403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8404$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8406 CFLAGS="$xorg_testset_save_CFLAGS" 8407fi 8408 8409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8412 fi 8413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8415$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8416if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8417 $as_echo_n "(cached) " >&6 8418else 8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8420/* end confdefs.h. */ 8421int i; 8422_ACEOF 8423if ac_fn_c_try_compile "$LINENO"; then : 8424 xorg_cv_cc_flag_unused_command_line_argument=yes 8425else 8426 xorg_cv_cc_flag_unused_command_line_argument=no 8427fi 8428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8429fi 8430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8431$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8433 CFLAGS="$xorg_testset_save_CFLAGS" 8434fi 8435 8436found="no" 8437 8438 if test $found = "no" ; then 8439 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8441 fi 8442 8443 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8445 fi 8446 8447 CFLAGS="$CFLAGS -Wimplicit" 8448 8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5 8450$as_echo_n "checking if $CC supports-Wimplicit... " >&6; } 8451 cacheid=xorg_cv_cc_flag__Wimplicit 8452 if eval \${$cacheid+:} false; then : 8453 $as_echo_n "(cached) " >&6 8454else 8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8456/* end confdefs.h. */ 8457int i; 8458int 8459main () 8460{ 8461 8462 ; 8463 return 0; 8464} 8465_ACEOF 8466if ac_fn_c_try_link "$LINENO"; then : 8467 eval $cacheid=yes 8468else 8469 eval $cacheid=no 8470fi 8471rm -f core conftest.err conftest.$ac_objext \ 8472 conftest$ac_exeext conftest.$ac_ext 8473fi 8474 8475 8476 CFLAGS="$xorg_testset_save_CFLAGS" 8477 8478 eval supported=\$$cacheid 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8480$as_echo "$supported" >&6; } 8481 if test "$supported" = "yes" ; then 8482 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8483 found="yes" 8484 fi 8485 fi 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501xorg_testset_save_CFLAGS="$CFLAGS" 8502 8503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8506$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8507if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8508 $as_echo_n "(cached) " >&6 8509else 8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8511/* end confdefs.h. */ 8512int i; 8513_ACEOF 8514if ac_fn_c_try_compile "$LINENO"; then : 8515 xorg_cv_cc_flag_unknown_warning_option=yes 8516else 8517 xorg_cv_cc_flag_unknown_warning_option=no 8518fi 8519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8520fi 8521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8522$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8524 CFLAGS="$xorg_testset_save_CFLAGS" 8525fi 8526 8527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8530 fi 8531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8533$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8534if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8535 $as_echo_n "(cached) " >&6 8536else 8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8538/* end confdefs.h. */ 8539int i; 8540_ACEOF 8541if ac_fn_c_try_compile "$LINENO"; then : 8542 xorg_cv_cc_flag_unused_command_line_argument=yes 8543else 8544 xorg_cv_cc_flag_unused_command_line_argument=no 8545fi 8546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8547fi 8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8549$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8551 CFLAGS="$xorg_testset_save_CFLAGS" 8552fi 8553 8554found="no" 8555 8556 if test $found = "no" ; then 8557 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8559 fi 8560 8561 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8563 fi 8564 8565 CFLAGS="$CFLAGS -Wnonnull" 8566 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5 8568$as_echo_n "checking if $CC supports-Wnonnull... " >&6; } 8569 cacheid=xorg_cv_cc_flag__Wnonnull 8570 if eval \${$cacheid+:} false; then : 8571 $as_echo_n "(cached) " >&6 8572else 8573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8574/* end confdefs.h. */ 8575int i; 8576int 8577main () 8578{ 8579 8580 ; 8581 return 0; 8582} 8583_ACEOF 8584if ac_fn_c_try_link "$LINENO"; then : 8585 eval $cacheid=yes 8586else 8587 eval $cacheid=no 8588fi 8589rm -f core conftest.err conftest.$ac_objext \ 8590 conftest$ac_exeext conftest.$ac_ext 8591fi 8592 8593 8594 CFLAGS="$xorg_testset_save_CFLAGS" 8595 8596 eval supported=\$$cacheid 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8598$as_echo "$supported" >&6; } 8599 if test "$supported" = "yes" ; then 8600 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8601 found="yes" 8602 fi 8603 fi 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619xorg_testset_save_CFLAGS="$CFLAGS" 8620 8621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8624$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8625if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8626 $as_echo_n "(cached) " >&6 8627else 8628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8629/* end confdefs.h. */ 8630int i; 8631_ACEOF 8632if ac_fn_c_try_compile "$LINENO"; then : 8633 xorg_cv_cc_flag_unknown_warning_option=yes 8634else 8635 xorg_cv_cc_flag_unknown_warning_option=no 8636fi 8637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8638fi 8639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8640$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8642 CFLAGS="$xorg_testset_save_CFLAGS" 8643fi 8644 8645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8648 fi 8649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8651$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8652if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8653 $as_echo_n "(cached) " >&6 8654else 8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8656/* end confdefs.h. */ 8657int i; 8658_ACEOF 8659if ac_fn_c_try_compile "$LINENO"; then : 8660 xorg_cv_cc_flag_unused_command_line_argument=yes 8661else 8662 xorg_cv_cc_flag_unused_command_line_argument=no 8663fi 8664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8665fi 8666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8667$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8669 CFLAGS="$xorg_testset_save_CFLAGS" 8670fi 8671 8672found="no" 8673 8674 if test $found = "no" ; then 8675 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8677 fi 8678 8679 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8681 fi 8682 8683 CFLAGS="$CFLAGS -Winit-self" 8684 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5 8686$as_echo_n "checking if $CC supports-Winit-self... " >&6; } 8687 cacheid=xorg_cv_cc_flag__Winit_self 8688 if eval \${$cacheid+:} false; then : 8689 $as_echo_n "(cached) " >&6 8690else 8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8692/* end confdefs.h. */ 8693int i; 8694int 8695main () 8696{ 8697 8698 ; 8699 return 0; 8700} 8701_ACEOF 8702if ac_fn_c_try_link "$LINENO"; then : 8703 eval $cacheid=yes 8704else 8705 eval $cacheid=no 8706fi 8707rm -f core conftest.err conftest.$ac_objext \ 8708 conftest$ac_exeext conftest.$ac_ext 8709fi 8710 8711 8712 CFLAGS="$xorg_testset_save_CFLAGS" 8713 8714 eval supported=\$$cacheid 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8716$as_echo "$supported" >&6; } 8717 if test "$supported" = "yes" ; then 8718 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8719 found="yes" 8720 fi 8721 fi 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737xorg_testset_save_CFLAGS="$CFLAGS" 8738 8739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8742$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8743if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8744 $as_echo_n "(cached) " >&6 8745else 8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8747/* end confdefs.h. */ 8748int i; 8749_ACEOF 8750if ac_fn_c_try_compile "$LINENO"; then : 8751 xorg_cv_cc_flag_unknown_warning_option=yes 8752else 8753 xorg_cv_cc_flag_unknown_warning_option=no 8754fi 8755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8756fi 8757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8758$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8760 CFLAGS="$xorg_testset_save_CFLAGS" 8761fi 8762 8763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8766 fi 8767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8769$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8770if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8771 $as_echo_n "(cached) " >&6 8772else 8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8774/* end confdefs.h. */ 8775int i; 8776_ACEOF 8777if ac_fn_c_try_compile "$LINENO"; then : 8778 xorg_cv_cc_flag_unused_command_line_argument=yes 8779else 8780 xorg_cv_cc_flag_unused_command_line_argument=no 8781fi 8782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8783fi 8784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8785$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8787 CFLAGS="$xorg_testset_save_CFLAGS" 8788fi 8789 8790found="no" 8791 8792 if test $found = "no" ; then 8793 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8795 fi 8796 8797 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8799 fi 8800 8801 CFLAGS="$CFLAGS -Wmain" 8802 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5 8804$as_echo_n "checking if $CC supports-Wmain... " >&6; } 8805 cacheid=xorg_cv_cc_flag__Wmain 8806 if eval \${$cacheid+:} false; then : 8807 $as_echo_n "(cached) " >&6 8808else 8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8810/* end confdefs.h. */ 8811int i; 8812int 8813main () 8814{ 8815 8816 ; 8817 return 0; 8818} 8819_ACEOF 8820if ac_fn_c_try_link "$LINENO"; then : 8821 eval $cacheid=yes 8822else 8823 eval $cacheid=no 8824fi 8825rm -f core conftest.err conftest.$ac_objext \ 8826 conftest$ac_exeext conftest.$ac_ext 8827fi 8828 8829 8830 CFLAGS="$xorg_testset_save_CFLAGS" 8831 8832 eval supported=\$$cacheid 8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8834$as_echo "$supported" >&6; } 8835 if test "$supported" = "yes" ; then 8836 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8837 found="yes" 8838 fi 8839 fi 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855xorg_testset_save_CFLAGS="$CFLAGS" 8856 8857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8860$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8861if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8862 $as_echo_n "(cached) " >&6 8863else 8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8865/* end confdefs.h. */ 8866int i; 8867_ACEOF 8868if ac_fn_c_try_compile "$LINENO"; then : 8869 xorg_cv_cc_flag_unknown_warning_option=yes 8870else 8871 xorg_cv_cc_flag_unknown_warning_option=no 8872fi 8873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8874fi 8875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8876$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8878 CFLAGS="$xorg_testset_save_CFLAGS" 8879fi 8880 8881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8884 fi 8885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8887$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8888if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8889 $as_echo_n "(cached) " >&6 8890else 8891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8892/* end confdefs.h. */ 8893int i; 8894_ACEOF 8895if ac_fn_c_try_compile "$LINENO"; then : 8896 xorg_cv_cc_flag_unused_command_line_argument=yes 8897else 8898 xorg_cv_cc_flag_unused_command_line_argument=no 8899fi 8900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8901fi 8902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8903$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8905 CFLAGS="$xorg_testset_save_CFLAGS" 8906fi 8907 8908found="no" 8909 8910 if test $found = "no" ; then 8911 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8913 fi 8914 8915 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8917 fi 8918 8919 CFLAGS="$CFLAGS -Wmissing-braces" 8920 8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5 8922$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; } 8923 cacheid=xorg_cv_cc_flag__Wmissing_braces 8924 if eval \${$cacheid+:} false; then : 8925 $as_echo_n "(cached) " >&6 8926else 8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8928/* end confdefs.h. */ 8929int i; 8930int 8931main () 8932{ 8933 8934 ; 8935 return 0; 8936} 8937_ACEOF 8938if ac_fn_c_try_link "$LINENO"; then : 8939 eval $cacheid=yes 8940else 8941 eval $cacheid=no 8942fi 8943rm -f core conftest.err conftest.$ac_objext \ 8944 conftest$ac_exeext conftest.$ac_ext 8945fi 8946 8947 8948 CFLAGS="$xorg_testset_save_CFLAGS" 8949 8950 eval supported=\$$cacheid 8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8952$as_echo "$supported" >&6; } 8953 if test "$supported" = "yes" ; then 8954 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8955 found="yes" 8956 fi 8957 fi 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973xorg_testset_save_CFLAGS="$CFLAGS" 8974 8975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8980 $as_echo_n "(cached) " >&6 8981else 8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8983/* end confdefs.h. */ 8984int i; 8985_ACEOF 8986if ac_fn_c_try_compile "$LINENO"; then : 8987 xorg_cv_cc_flag_unknown_warning_option=yes 8988else 8989 xorg_cv_cc_flag_unknown_warning_option=no 8990fi 8991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8992fi 8993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8996 CFLAGS="$xorg_testset_save_CFLAGS" 8997fi 8998 8999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9002 fi 9003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9007 $as_echo_n "(cached) " >&6 9008else 9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9010/* end confdefs.h. */ 9011int i; 9012_ACEOF 9013if ac_fn_c_try_compile "$LINENO"; then : 9014 xorg_cv_cc_flag_unused_command_line_argument=yes 9015else 9016 xorg_cv_cc_flag_unused_command_line_argument=no 9017fi 9018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9019fi 9020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9023 CFLAGS="$xorg_testset_save_CFLAGS" 9024fi 9025 9026found="no" 9027 9028 if test $found = "no" ; then 9029 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9031 fi 9032 9033 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9035 fi 9036 9037 CFLAGS="$CFLAGS -Wsequence-point" 9038 9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5 9040$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; } 9041 cacheid=xorg_cv_cc_flag__Wsequence_point 9042 if eval \${$cacheid+:} false; then : 9043 $as_echo_n "(cached) " >&6 9044else 9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9046/* end confdefs.h. */ 9047int i; 9048int 9049main () 9050{ 9051 9052 ; 9053 return 0; 9054} 9055_ACEOF 9056if ac_fn_c_try_link "$LINENO"; then : 9057 eval $cacheid=yes 9058else 9059 eval $cacheid=no 9060fi 9061rm -f core conftest.err conftest.$ac_objext \ 9062 conftest$ac_exeext conftest.$ac_ext 9063fi 9064 9065 9066 CFLAGS="$xorg_testset_save_CFLAGS" 9067 9068 eval supported=\$$cacheid 9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9070$as_echo "$supported" >&6; } 9071 if test "$supported" = "yes" ; then 9072 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9073 found="yes" 9074 fi 9075 fi 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091xorg_testset_save_CFLAGS="$CFLAGS" 9092 9093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9098 $as_echo_n "(cached) " >&6 9099else 9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9101/* end confdefs.h. */ 9102int i; 9103_ACEOF 9104if ac_fn_c_try_compile "$LINENO"; then : 9105 xorg_cv_cc_flag_unknown_warning_option=yes 9106else 9107 xorg_cv_cc_flag_unknown_warning_option=no 9108fi 9109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9110fi 9111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9114 CFLAGS="$xorg_testset_save_CFLAGS" 9115fi 9116 9117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9120 fi 9121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9125 $as_echo_n "(cached) " >&6 9126else 9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9128/* end confdefs.h. */ 9129int i; 9130_ACEOF 9131if ac_fn_c_try_compile "$LINENO"; then : 9132 xorg_cv_cc_flag_unused_command_line_argument=yes 9133else 9134 xorg_cv_cc_flag_unused_command_line_argument=no 9135fi 9136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9137fi 9138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9141 CFLAGS="$xorg_testset_save_CFLAGS" 9142fi 9143 9144found="no" 9145 9146 if test $found = "no" ; then 9147 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9149 fi 9150 9151 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9153 fi 9154 9155 CFLAGS="$CFLAGS -Wreturn-type" 9156 9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5 9158$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; } 9159 cacheid=xorg_cv_cc_flag__Wreturn_type 9160 if eval \${$cacheid+:} false; then : 9161 $as_echo_n "(cached) " >&6 9162else 9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9164/* end confdefs.h. */ 9165int i; 9166int 9167main () 9168{ 9169 9170 ; 9171 return 0; 9172} 9173_ACEOF 9174if ac_fn_c_try_link "$LINENO"; then : 9175 eval $cacheid=yes 9176else 9177 eval $cacheid=no 9178fi 9179rm -f core conftest.err conftest.$ac_objext \ 9180 conftest$ac_exeext conftest.$ac_ext 9181fi 9182 9183 9184 CFLAGS="$xorg_testset_save_CFLAGS" 9185 9186 eval supported=\$$cacheid 9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9188$as_echo "$supported" >&6; } 9189 if test "$supported" = "yes" ; then 9190 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9191 found="yes" 9192 fi 9193 fi 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209xorg_testset_save_CFLAGS="$CFLAGS" 9210 9211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9214$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9215if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9216 $as_echo_n "(cached) " >&6 9217else 9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9219/* end confdefs.h. */ 9220int i; 9221_ACEOF 9222if ac_fn_c_try_compile "$LINENO"; then : 9223 xorg_cv_cc_flag_unknown_warning_option=yes 9224else 9225 xorg_cv_cc_flag_unknown_warning_option=no 9226fi 9227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9228fi 9229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9230$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9232 CFLAGS="$xorg_testset_save_CFLAGS" 9233fi 9234 9235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9238 fi 9239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9241$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9242if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9243 $as_echo_n "(cached) " >&6 9244else 9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9246/* end confdefs.h. */ 9247int i; 9248_ACEOF 9249if ac_fn_c_try_compile "$LINENO"; then : 9250 xorg_cv_cc_flag_unused_command_line_argument=yes 9251else 9252 xorg_cv_cc_flag_unused_command_line_argument=no 9253fi 9254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9255fi 9256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9257$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9259 CFLAGS="$xorg_testset_save_CFLAGS" 9260fi 9261 9262found="no" 9263 9264 if test $found = "no" ; then 9265 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9267 fi 9268 9269 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9271 fi 9272 9273 CFLAGS="$CFLAGS -Wtrigraphs" 9274 9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5 9276$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; } 9277 cacheid=xorg_cv_cc_flag__Wtrigraphs 9278 if eval \${$cacheid+:} false; then : 9279 $as_echo_n "(cached) " >&6 9280else 9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9282/* end confdefs.h. */ 9283int i; 9284int 9285main () 9286{ 9287 9288 ; 9289 return 0; 9290} 9291_ACEOF 9292if ac_fn_c_try_link "$LINENO"; then : 9293 eval $cacheid=yes 9294else 9295 eval $cacheid=no 9296fi 9297rm -f core conftest.err conftest.$ac_objext \ 9298 conftest$ac_exeext conftest.$ac_ext 9299fi 9300 9301 9302 CFLAGS="$xorg_testset_save_CFLAGS" 9303 9304 eval supported=\$$cacheid 9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9306$as_echo "$supported" >&6; } 9307 if test "$supported" = "yes" ; then 9308 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9309 found="yes" 9310 fi 9311 fi 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327xorg_testset_save_CFLAGS="$CFLAGS" 9328 9329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9332$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9333if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9334 $as_echo_n "(cached) " >&6 9335else 9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9337/* end confdefs.h. */ 9338int i; 9339_ACEOF 9340if ac_fn_c_try_compile "$LINENO"; then : 9341 xorg_cv_cc_flag_unknown_warning_option=yes 9342else 9343 xorg_cv_cc_flag_unknown_warning_option=no 9344fi 9345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9346fi 9347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9348$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9350 CFLAGS="$xorg_testset_save_CFLAGS" 9351fi 9352 9353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9356 fi 9357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9359$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9360if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9361 $as_echo_n "(cached) " >&6 9362else 9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9364/* end confdefs.h. */ 9365int i; 9366_ACEOF 9367if ac_fn_c_try_compile "$LINENO"; then : 9368 xorg_cv_cc_flag_unused_command_line_argument=yes 9369else 9370 xorg_cv_cc_flag_unused_command_line_argument=no 9371fi 9372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9373fi 9374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9375$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9377 CFLAGS="$xorg_testset_save_CFLAGS" 9378fi 9379 9380found="no" 9381 9382 if test $found = "no" ; then 9383 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9385 fi 9386 9387 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9389 fi 9390 9391 CFLAGS="$CFLAGS -Warray-bounds" 9392 9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5 9394$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; } 9395 cacheid=xorg_cv_cc_flag__Warray_bounds 9396 if eval \${$cacheid+:} false; then : 9397 $as_echo_n "(cached) " >&6 9398else 9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9400/* end confdefs.h. */ 9401int i; 9402int 9403main () 9404{ 9405 9406 ; 9407 return 0; 9408} 9409_ACEOF 9410if ac_fn_c_try_link "$LINENO"; then : 9411 eval $cacheid=yes 9412else 9413 eval $cacheid=no 9414fi 9415rm -f core conftest.err conftest.$ac_objext \ 9416 conftest$ac_exeext conftest.$ac_ext 9417fi 9418 9419 9420 CFLAGS="$xorg_testset_save_CFLAGS" 9421 9422 eval supported=\$$cacheid 9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9424$as_echo "$supported" >&6; } 9425 if test "$supported" = "yes" ; then 9426 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9427 found="yes" 9428 fi 9429 fi 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445xorg_testset_save_CFLAGS="$CFLAGS" 9446 9447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9452 $as_echo_n "(cached) " >&6 9453else 9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9455/* end confdefs.h. */ 9456int i; 9457_ACEOF 9458if ac_fn_c_try_compile "$LINENO"; then : 9459 xorg_cv_cc_flag_unknown_warning_option=yes 9460else 9461 xorg_cv_cc_flag_unknown_warning_option=no 9462fi 9463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9464fi 9465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9468 CFLAGS="$xorg_testset_save_CFLAGS" 9469fi 9470 9471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9474 fi 9475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9479 $as_echo_n "(cached) " >&6 9480else 9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9482/* end confdefs.h. */ 9483int i; 9484_ACEOF 9485if ac_fn_c_try_compile "$LINENO"; then : 9486 xorg_cv_cc_flag_unused_command_line_argument=yes 9487else 9488 xorg_cv_cc_flag_unused_command_line_argument=no 9489fi 9490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9491fi 9492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9495 CFLAGS="$xorg_testset_save_CFLAGS" 9496fi 9497 9498found="no" 9499 9500 if test $found = "no" ; then 9501 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9503 fi 9504 9505 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9507 fi 9508 9509 CFLAGS="$CFLAGS -Wwrite-strings" 9510 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5 9512$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; } 9513 cacheid=xorg_cv_cc_flag__Wwrite_strings 9514 if eval \${$cacheid+:} false; then : 9515 $as_echo_n "(cached) " >&6 9516else 9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9518/* end confdefs.h. */ 9519int i; 9520int 9521main () 9522{ 9523 9524 ; 9525 return 0; 9526} 9527_ACEOF 9528if ac_fn_c_try_link "$LINENO"; then : 9529 eval $cacheid=yes 9530else 9531 eval $cacheid=no 9532fi 9533rm -f core conftest.err conftest.$ac_objext \ 9534 conftest$ac_exeext conftest.$ac_ext 9535fi 9536 9537 9538 CFLAGS="$xorg_testset_save_CFLAGS" 9539 9540 eval supported=\$$cacheid 9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9542$as_echo "$supported" >&6; } 9543 if test "$supported" = "yes" ; then 9544 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9545 found="yes" 9546 fi 9547 fi 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563xorg_testset_save_CFLAGS="$CFLAGS" 9564 9565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9568$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9569if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9570 $as_echo_n "(cached) " >&6 9571else 9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9573/* end confdefs.h. */ 9574int i; 9575_ACEOF 9576if ac_fn_c_try_compile "$LINENO"; then : 9577 xorg_cv_cc_flag_unknown_warning_option=yes 9578else 9579 xorg_cv_cc_flag_unknown_warning_option=no 9580fi 9581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9582fi 9583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9584$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9586 CFLAGS="$xorg_testset_save_CFLAGS" 9587fi 9588 9589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9592 fi 9593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9595$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9596if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9597 $as_echo_n "(cached) " >&6 9598else 9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9600/* end confdefs.h. */ 9601int i; 9602_ACEOF 9603if ac_fn_c_try_compile "$LINENO"; then : 9604 xorg_cv_cc_flag_unused_command_line_argument=yes 9605else 9606 xorg_cv_cc_flag_unused_command_line_argument=no 9607fi 9608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9609fi 9610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9611$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9613 CFLAGS="$xorg_testset_save_CFLAGS" 9614fi 9615 9616found="no" 9617 9618 if test $found = "no" ; then 9619 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9621 fi 9622 9623 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9625 fi 9626 9627 CFLAGS="$CFLAGS -Waddress" 9628 9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5 9630$as_echo_n "checking if $CC supports-Waddress... " >&6; } 9631 cacheid=xorg_cv_cc_flag__Waddress 9632 if eval \${$cacheid+:} false; then : 9633 $as_echo_n "(cached) " >&6 9634else 9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9636/* end confdefs.h. */ 9637int i; 9638int 9639main () 9640{ 9641 9642 ; 9643 return 0; 9644} 9645_ACEOF 9646if ac_fn_c_try_link "$LINENO"; then : 9647 eval $cacheid=yes 9648else 9649 eval $cacheid=no 9650fi 9651rm -f core conftest.err conftest.$ac_objext \ 9652 conftest$ac_exeext conftest.$ac_ext 9653fi 9654 9655 9656 CFLAGS="$xorg_testset_save_CFLAGS" 9657 9658 eval supported=\$$cacheid 9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9660$as_echo "$supported" >&6; } 9661 if test "$supported" = "yes" ; then 9662 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9663 found="yes" 9664 fi 9665 fi 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681xorg_testset_save_CFLAGS="$CFLAGS" 9682 9683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9686$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9687if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9688 $as_echo_n "(cached) " >&6 9689else 9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9691/* end confdefs.h. */ 9692int i; 9693_ACEOF 9694if ac_fn_c_try_compile "$LINENO"; then : 9695 xorg_cv_cc_flag_unknown_warning_option=yes 9696else 9697 xorg_cv_cc_flag_unknown_warning_option=no 9698fi 9699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9700fi 9701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9702$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9704 CFLAGS="$xorg_testset_save_CFLAGS" 9705fi 9706 9707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9710 fi 9711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9713$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9714if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9715 $as_echo_n "(cached) " >&6 9716else 9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9718/* end confdefs.h. */ 9719int i; 9720_ACEOF 9721if ac_fn_c_try_compile "$LINENO"; then : 9722 xorg_cv_cc_flag_unused_command_line_argument=yes 9723else 9724 xorg_cv_cc_flag_unused_command_line_argument=no 9725fi 9726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9727fi 9728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9729$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9731 CFLAGS="$xorg_testset_save_CFLAGS" 9732fi 9733 9734found="no" 9735 9736 if test $found = "no" ; then 9737 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9739 fi 9740 9741 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9743 fi 9744 9745 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9746 9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5 9748$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; } 9749 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9750 if eval \${$cacheid+:} false; then : 9751 $as_echo_n "(cached) " >&6 9752else 9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9754/* end confdefs.h. */ 9755int i; 9756int 9757main () 9758{ 9759 9760 ; 9761 return 0; 9762} 9763_ACEOF 9764if ac_fn_c_try_link "$LINENO"; then : 9765 eval $cacheid=yes 9766else 9767 eval $cacheid=no 9768fi 9769rm -f core conftest.err conftest.$ac_objext \ 9770 conftest$ac_exeext conftest.$ac_ext 9771fi 9772 9773 9774 CFLAGS="$xorg_testset_save_CFLAGS" 9775 9776 eval supported=\$$cacheid 9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9778$as_echo "$supported" >&6; } 9779 if test "$supported" = "yes" ; then 9780 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9781 found="yes" 9782 fi 9783 fi 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799xorg_testset_save_CFLAGS="$CFLAGS" 9800 9801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9804$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9805if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9806 $as_echo_n "(cached) " >&6 9807else 9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9809/* end confdefs.h. */ 9810int i; 9811_ACEOF 9812if ac_fn_c_try_compile "$LINENO"; then : 9813 xorg_cv_cc_flag_unknown_warning_option=yes 9814else 9815 xorg_cv_cc_flag_unknown_warning_option=no 9816fi 9817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9818fi 9819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9820$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9822 CFLAGS="$xorg_testset_save_CFLAGS" 9823fi 9824 9825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9828 fi 9829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9831$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9832if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9833 $as_echo_n "(cached) " >&6 9834else 9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9836/* end confdefs.h. */ 9837int i; 9838_ACEOF 9839if ac_fn_c_try_compile "$LINENO"; then : 9840 xorg_cv_cc_flag_unused_command_line_argument=yes 9841else 9842 xorg_cv_cc_flag_unused_command_line_argument=no 9843fi 9844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9845fi 9846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9847$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9849 CFLAGS="$xorg_testset_save_CFLAGS" 9850fi 9851 9852found="no" 9853 9854 if test $found = "no" ; then 9855 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9857 fi 9858 9859 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9861 fi 9862 9863 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9864 9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5 9866$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; } 9867 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9868 if eval \${$cacheid+:} false; then : 9869 $as_echo_n "(cached) " >&6 9870else 9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9872/* end confdefs.h. */ 9873int i; 9874int 9875main () 9876{ 9877 9878 ; 9879 return 0; 9880} 9881_ACEOF 9882if ac_fn_c_try_link "$LINENO"; then : 9883 eval $cacheid=yes 9884else 9885 eval $cacheid=no 9886fi 9887rm -f core conftest.err conftest.$ac_objext \ 9888 conftest$ac_exeext conftest.$ac_ext 9889fi 9890 9891 9892 CFLAGS="$xorg_testset_save_CFLAGS" 9893 9894 eval supported=\$$cacheid 9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9896$as_echo "$supported" >&6; } 9897 if test "$supported" = "yes" ; then 9898 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9899 found="yes" 9900 fi 9901 fi 9902 9903 9904fi 9905 9906 9907 9908 9909 9910 9911 9912 CWARNFLAGS="$BASE_CFLAGS" 9913 if test "x$GCC" = xyes ; then 9914 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9915 fi 9916 9917 9918 9919 9920 9921 9922 9923 9924# Check whether --enable-strict-compilation was given. 9925if test "${enable_strict_compilation+set}" = set; then : 9926 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9927else 9928 STRICT_COMPILE=no 9929fi 9930 9931 9932 9933 9934 9935 9936STRICT_CFLAGS="" 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950xorg_testset_save_CFLAGS="$CFLAGS" 9951 9952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9955$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9956if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9957 $as_echo_n "(cached) " >&6 9958else 9959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9960/* end confdefs.h. */ 9961int i; 9962_ACEOF 9963if ac_fn_c_try_compile "$LINENO"; then : 9964 xorg_cv_cc_flag_unknown_warning_option=yes 9965else 9966 xorg_cv_cc_flag_unknown_warning_option=no 9967fi 9968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9969fi 9970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9971$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9973 CFLAGS="$xorg_testset_save_CFLAGS" 9974fi 9975 9976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9979 fi 9980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9982$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9983if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9984 $as_echo_n "(cached) " >&6 9985else 9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9987/* end confdefs.h. */ 9988int i; 9989_ACEOF 9990if ac_fn_c_try_compile "$LINENO"; then : 9991 xorg_cv_cc_flag_unused_command_line_argument=yes 9992else 9993 xorg_cv_cc_flag_unused_command_line_argument=no 9994fi 9995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9996fi 9997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9998$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10000 CFLAGS="$xorg_testset_save_CFLAGS" 10001fi 10002 10003found="no" 10004 10005 if test $found = "no" ; then 10006 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10008 fi 10009 10010 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10012 fi 10013 10014 CFLAGS="$CFLAGS -pedantic" 10015 10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5 10017$as_echo_n "checking if $CC supports-pedantic... " >&6; } 10018 cacheid=xorg_cv_cc_flag__pedantic 10019 if eval \${$cacheid+:} false; then : 10020 $as_echo_n "(cached) " >&6 10021else 10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10023/* end confdefs.h. */ 10024int i; 10025int 10026main () 10027{ 10028 10029 ; 10030 return 0; 10031} 10032_ACEOF 10033if ac_fn_c_try_link "$LINENO"; then : 10034 eval $cacheid=yes 10035else 10036 eval $cacheid=no 10037fi 10038rm -f core conftest.err conftest.$ac_objext \ 10039 conftest$ac_exeext conftest.$ac_ext 10040fi 10041 10042 10043 CFLAGS="$xorg_testset_save_CFLAGS" 10044 10045 eval supported=\$$cacheid 10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10047$as_echo "$supported" >&6; } 10048 if test "$supported" = "yes" ; then 10049 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10050 found="yes" 10051 fi 10052 fi 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068xorg_testset_save_CFLAGS="$CFLAGS" 10069 10070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10073$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10074if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10075 $as_echo_n "(cached) " >&6 10076else 10077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10078/* end confdefs.h. */ 10079int i; 10080_ACEOF 10081if ac_fn_c_try_compile "$LINENO"; then : 10082 xorg_cv_cc_flag_unknown_warning_option=yes 10083else 10084 xorg_cv_cc_flag_unknown_warning_option=no 10085fi 10086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10087fi 10088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10089$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10091 CFLAGS="$xorg_testset_save_CFLAGS" 10092fi 10093 10094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10097 fi 10098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10100$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10101if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10102 $as_echo_n "(cached) " >&6 10103else 10104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10105/* end confdefs.h. */ 10106int i; 10107_ACEOF 10108if ac_fn_c_try_compile "$LINENO"; then : 10109 xorg_cv_cc_flag_unused_command_line_argument=yes 10110else 10111 xorg_cv_cc_flag_unused_command_line_argument=no 10112fi 10113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10114fi 10115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10116$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10118 CFLAGS="$xorg_testset_save_CFLAGS" 10119fi 10120 10121found="no" 10122 10123 if test $found = "no" ; then 10124 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10126 fi 10127 10128 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10130 fi 10131 10132 CFLAGS="$CFLAGS -Werror" 10133 10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5 10135$as_echo_n "checking if $CC supports-Werror... " >&6; } 10136 cacheid=xorg_cv_cc_flag__Werror 10137 if eval \${$cacheid+:} false; then : 10138 $as_echo_n "(cached) " >&6 10139else 10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10141/* end confdefs.h. */ 10142int i; 10143int 10144main () 10145{ 10146 10147 ; 10148 return 0; 10149} 10150_ACEOF 10151if ac_fn_c_try_link "$LINENO"; then : 10152 eval $cacheid=yes 10153else 10154 eval $cacheid=no 10155fi 10156rm -f core conftest.err conftest.$ac_objext \ 10157 conftest$ac_exeext conftest.$ac_ext 10158fi 10159 10160 10161 CFLAGS="$xorg_testset_save_CFLAGS" 10162 10163 eval supported=\$$cacheid 10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10165$as_echo "$supported" >&6; } 10166 if test "$supported" = "yes" ; then 10167 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10168 found="yes" 10169 fi 10170 fi 10171 10172 if test $found = "no" ; then 10173 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10175 fi 10176 10177 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10179 fi 10180 10181 CFLAGS="$CFLAGS -errwarn" 10182 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5 10184$as_echo_n "checking if $CC supports-errwarn... " >&6; } 10185 cacheid=xorg_cv_cc_flag__errwarn 10186 if eval \${$cacheid+:} false; then : 10187 $as_echo_n "(cached) " >&6 10188else 10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10190/* end confdefs.h. */ 10191int i; 10192int 10193main () 10194{ 10195 10196 ; 10197 return 0; 10198} 10199_ACEOF 10200if ac_fn_c_try_link "$LINENO"; then : 10201 eval $cacheid=yes 10202else 10203 eval $cacheid=no 10204fi 10205rm -f core conftest.err conftest.$ac_objext \ 10206 conftest$ac_exeext conftest.$ac_ext 10207fi 10208 10209 10210 CFLAGS="$xorg_testset_save_CFLAGS" 10211 10212 eval supported=\$$cacheid 10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10214$as_echo "$supported" >&6; } 10215 if test "$supported" = "yes" ; then 10216 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10217 found="yes" 10218 fi 10219 fi 10220 10221 10222 10223# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10224# activate it with -Werror, so we add it here explicitly. 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238xorg_testset_save_CFLAGS="$CFLAGS" 10239 10240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10243$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10244if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10245 $as_echo_n "(cached) " >&6 10246else 10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10248/* end confdefs.h. */ 10249int i; 10250_ACEOF 10251if ac_fn_c_try_compile "$LINENO"; then : 10252 xorg_cv_cc_flag_unknown_warning_option=yes 10253else 10254 xorg_cv_cc_flag_unknown_warning_option=no 10255fi 10256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10257fi 10258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10259$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10261 CFLAGS="$xorg_testset_save_CFLAGS" 10262fi 10263 10264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10267 fi 10268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10270$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10271if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10272 $as_echo_n "(cached) " >&6 10273else 10274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10275/* end confdefs.h. */ 10276int i; 10277_ACEOF 10278if ac_fn_c_try_compile "$LINENO"; then : 10279 xorg_cv_cc_flag_unused_command_line_argument=yes 10280else 10281 xorg_cv_cc_flag_unused_command_line_argument=no 10282fi 10283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10284fi 10285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10286$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10288 CFLAGS="$xorg_testset_save_CFLAGS" 10289fi 10290 10291found="no" 10292 10293 if test $found = "no" ; then 10294 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10296 fi 10297 10298 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10300 fi 10301 10302 CFLAGS="$CFLAGS -Werror=attributes" 10303 10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5 10305$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; } 10306 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10307 if eval \${$cacheid+:} false; then : 10308 $as_echo_n "(cached) " >&6 10309else 10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10311/* end confdefs.h. */ 10312int i; 10313int 10314main () 10315{ 10316 10317 ; 10318 return 0; 10319} 10320_ACEOF 10321if ac_fn_c_try_link "$LINENO"; then : 10322 eval $cacheid=yes 10323else 10324 eval $cacheid=no 10325fi 10326rm -f core conftest.err conftest.$ac_objext \ 10327 conftest$ac_exeext conftest.$ac_ext 10328fi 10329 10330 10331 CFLAGS="$xorg_testset_save_CFLAGS" 10332 10333 eval supported=\$$cacheid 10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10335$as_echo "$supported" >&6; } 10336 if test "$supported" = "yes" ; then 10337 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10338 found="yes" 10339 fi 10340 fi 10341 10342 10343 10344if test "x$STRICT_COMPILE" = "xyes"; then 10345 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10346 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10347fi 10348 10349 10350 10351 10352 10353 10354cat >>confdefs.h <<_ACEOF 10355#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10356_ACEOF 10357 10358 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10359 if test "x$PVM" = "x"; then 10360 PVM="0" 10361 fi 10362 10363cat >>confdefs.h <<_ACEOF 10364#define PACKAGE_VERSION_MINOR $PVM 10365_ACEOF 10366 10367 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10368 if test "x$PVP" = "x"; then 10369 PVP="0" 10370 fi 10371 10372cat >>confdefs.h <<_ACEOF 10373#define PACKAGE_VERSION_PATCHLEVEL $PVP 10374_ACEOF 10375 10376 10377 10378CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10379mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10380|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10381echo 'git directory not found: installing possibly empty changelog.' >&2)" 10382 10383 10384 10385 10386macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10387INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10388mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10389|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10390echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10391 10392 10393 10394 10395 10396 10397if test x$APP_MAN_SUFFIX = x ; then 10398 APP_MAN_SUFFIX=1 10399fi 10400if test x$APP_MAN_DIR = x ; then 10401 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10402fi 10403 10404if test x$LIB_MAN_SUFFIX = x ; then 10405 LIB_MAN_SUFFIX=3 10406fi 10407if test x$LIB_MAN_DIR = x ; then 10408 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10409fi 10410 10411if test x$FILE_MAN_SUFFIX = x ; then 10412 case $host_os in 10413 solaris*) FILE_MAN_SUFFIX=4 ;; 10414 *) FILE_MAN_SUFFIX=5 ;; 10415 esac 10416fi 10417if test x$FILE_MAN_DIR = x ; then 10418 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10419fi 10420 10421if test x$MISC_MAN_SUFFIX = x ; then 10422 case $host_os in 10423 solaris*) MISC_MAN_SUFFIX=5 ;; 10424 *) MISC_MAN_SUFFIX=7 ;; 10425 esac 10426fi 10427if test x$MISC_MAN_DIR = x ; then 10428 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10429fi 10430 10431if test x$DRIVER_MAN_SUFFIX = x ; then 10432 case $host_os in 10433 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10434 *) DRIVER_MAN_SUFFIX=4 ;; 10435 esac 10436fi 10437if test x$DRIVER_MAN_DIR = x ; then 10438 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10439fi 10440 10441if test x$ADMIN_MAN_SUFFIX = x ; then 10442 case $host_os in 10443 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10444 *) ADMIN_MAN_SUFFIX=8 ;; 10445 esac 10446fi 10447if test x$ADMIN_MAN_DIR = x ; then 10448 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10449fi 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465XORG_MAN_PAGE="X Version 11" 10466 10467MAN_SUBSTS="\ 10468 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10469 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10470 -e 's|__xservername__|Xorg|g' \ 10471 -e 's|__xconfigfile__|xorg.conf|g' \ 10472 -e 's|__projectroot__|\$(prefix)|g' \ 10473 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10474 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10475 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10476 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10477 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10478 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10479 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10480 10481 10482 10483# Check whether --enable-silent-rules was given. 10484if test "${enable_silent_rules+set}" = set; then : 10485 enableval=$enable_silent_rules; 10486fi 10487 10488case $enable_silent_rules in 10489yes) AM_DEFAULT_VERBOSITY=0;; 10490no) AM_DEFAULT_VERBOSITY=1;; 10491*) AM_DEFAULT_VERBOSITY=0;; 10492esac 10493AM_BACKSLASH='\' 10494 10495 10496 10497# Initialize libtool 10498# Check whether --enable-static was given. 10499if test "${enable_static+set}" = set; then : 10500 enableval=$enable_static; p=${PACKAGE-default} 10501 case $enableval in 10502 yes) enable_static=yes ;; 10503 no) enable_static=no ;; 10504 *) 10505 enable_static=no 10506 # Look at the argument we got. We use all the common list separators. 10507 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10508 for pkg in $enableval; do 10509 IFS="$lt_save_ifs" 10510 if test "X$pkg" = "X$p"; then 10511 enable_static=yes 10512 fi 10513 done 10514 IFS="$lt_save_ifs" 10515 ;; 10516 esac 10517else 10518 enable_static=no 10519fi 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529case `pwd` in 10530 *\ * | *\ *) 10531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10532$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10533esac 10534 10535 10536 10537macro_version='2.4' 10538macro_revision='1.3293' 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552ltmain="$ac_aux_dir/ltmain.sh" 10553 10554# Backslashify metacharacters that are still active within 10555# double-quoted strings. 10556sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10557 10558# Same as above, but do not quote variable references. 10559double_quote_subst='s/\(["`\\]\)/\\\1/g' 10560 10561# Sed substitution to delay expansion of an escaped shell variable in a 10562# double_quote_subst'ed string. 10563delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10564 10565# Sed substitution to delay expansion of an escaped single quote. 10566delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10567 10568# Sed substitution to avoid accidental globbing in evaled expressions 10569no_glob_subst='s/\*/\\\*/g' 10570 10571ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10572ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10573ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10574 10575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10576$as_echo_n "checking how to print strings... " >&6; } 10577# Test print first, because it will be a builtin if present. 10578if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10579 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10580 ECHO='print -r --' 10581elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10582 ECHO='printf %s\n' 10583else 10584 # Use this function as a fallback that always works. 10585 func_fallback_echo () 10586 { 10587 eval 'cat <<_LTECHO_EOF 10588$1 10589_LTECHO_EOF' 10590 } 10591 ECHO='func_fallback_echo' 10592fi 10593 10594# func_echo_all arg... 10595# Invoke $ECHO with all args, space-separated. 10596func_echo_all () 10597{ 10598 $ECHO "" 10599} 10600 10601case "$ECHO" in 10602 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10603$as_echo "printf" >&6; } ;; 10604 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10605$as_echo "print -r" >&6; } ;; 10606 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10607$as_echo "cat" >&6; } ;; 10608esac 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10624$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10625if ${ac_cv_path_SED+:} false; then : 10626 $as_echo_n "(cached) " >&6 10627else 10628 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10629 for ac_i in 1 2 3 4 5 6 7; do 10630 ac_script="$ac_script$as_nl$ac_script" 10631 done 10632 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 10633 { ac_script=; unset ac_script;} 10634 if test -z "$SED"; then 10635 ac_path_SED_found=false 10636 # Loop through the user's path and test for each of PROGNAME-LIST 10637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10638for as_dir in $PATH 10639do 10640 IFS=$as_save_IFS 10641 test -z "$as_dir" && as_dir=. 10642 for ac_prog in sed gsed; do 10643 for ac_exec_ext in '' $ac_executable_extensions; do 10644 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 10645 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 10646# Check for GNU ac_path_SED and select it if it is found. 10647 # Check for GNU $ac_path_SED 10648case `"$ac_path_SED" --version 2>&1` in 10649*GNU*) 10650 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 10651*) 10652 ac_count=0 10653 $as_echo_n 0123456789 >"conftest.in" 10654 while : 10655 do 10656 cat "conftest.in" "conftest.in" >"conftest.tmp" 10657 mv "conftest.tmp" "conftest.in" 10658 cp "conftest.in" "conftest.nl" 10659 $as_echo '' >> "conftest.nl" 10660 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 10661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10662 as_fn_arith $ac_count + 1 && ac_count=$as_val 10663 if test $ac_count -gt ${ac_path_SED_max-0}; then 10664 # Best one so far, save it but keep looking for a better one 10665 ac_cv_path_SED="$ac_path_SED" 10666 ac_path_SED_max=$ac_count 10667 fi 10668 # 10*(2^10) chars as input seems more than enough 10669 test $ac_count -gt 10 && break 10670 done 10671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10672esac 10673 10674 $ac_path_SED_found && break 3 10675 done 10676 done 10677 done 10678IFS=$as_save_IFS 10679 if test -z "$ac_cv_path_SED"; then 10680 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 10681 fi 10682else 10683 ac_cv_path_SED=$SED 10684fi 10685 10686fi 10687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 10688$as_echo "$ac_cv_path_SED" >&6; } 10689 SED="$ac_cv_path_SED" 10690 rm -f conftest.sed 10691 10692test -z "$SED" && SED=sed 10693Xsed="$SED -e 1s/^X//" 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 10706$as_echo_n "checking for fgrep... " >&6; } 10707if ${ac_cv_path_FGREP+:} false; then : 10708 $as_echo_n "(cached) " >&6 10709else 10710 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 10711 then ac_cv_path_FGREP="$GREP -F" 10712 else 10713 if test -z "$FGREP"; then 10714 ac_path_FGREP_found=false 10715 # Loop through the user's path and test for each of PROGNAME-LIST 10716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10717for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10718do 10719 IFS=$as_save_IFS 10720 test -z "$as_dir" && as_dir=. 10721 for ac_prog in fgrep; do 10722 for ac_exec_ext in '' $ac_executable_extensions; do 10723 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 10724 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 10725# Check for GNU ac_path_FGREP and select it if it is found. 10726 # Check for GNU $ac_path_FGREP 10727case `"$ac_path_FGREP" --version 2>&1` in 10728*GNU*) 10729 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 10730*) 10731 ac_count=0 10732 $as_echo_n 0123456789 >"conftest.in" 10733 while : 10734 do 10735 cat "conftest.in" "conftest.in" >"conftest.tmp" 10736 mv "conftest.tmp" "conftest.in" 10737 cp "conftest.in" "conftest.nl" 10738 $as_echo 'FGREP' >> "conftest.nl" 10739 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 10740 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10741 as_fn_arith $ac_count + 1 && ac_count=$as_val 10742 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 10743 # Best one so far, save it but keep looking for a better one 10744 ac_cv_path_FGREP="$ac_path_FGREP" 10745 ac_path_FGREP_max=$ac_count 10746 fi 10747 # 10*(2^10) chars as input seems more than enough 10748 test $ac_count -gt 10 && break 10749 done 10750 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10751esac 10752 10753 $ac_path_FGREP_found && break 3 10754 done 10755 done 10756 done 10757IFS=$as_save_IFS 10758 if test -z "$ac_cv_path_FGREP"; then 10759 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 10760 fi 10761else 10762 ac_cv_path_FGREP=$FGREP 10763fi 10764 10765 fi 10766fi 10767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 10768$as_echo "$ac_cv_path_FGREP" >&6; } 10769 FGREP="$ac_cv_path_FGREP" 10770 10771 10772test -z "$GREP" && GREP=grep 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792# Check whether --with-gnu-ld was given. 10793if test "${with_gnu_ld+set}" = set; then : 10794 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10795else 10796 with_gnu_ld=no 10797fi 10798 10799ac_prog=ld 10800if test "$GCC" = yes; then 10801 # Check if gcc -print-prog-name=ld gives a path. 10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 10803$as_echo_n "checking for ld used by $CC... " >&6; } 10804 case $host in 10805 *-*-mingw*) 10806 # gcc leaves a trailing carriage return which upsets mingw 10807 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10808 *) 10809 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10810 esac 10811 case $ac_prog in 10812 # Accept absolute paths. 10813 [\\/]* | ?:[\\/]*) 10814 re_direlt='/[^/][^/]*/\.\./' 10815 # Canonicalize the pathname of ld 10816 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 10817 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 10818 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 10819 done 10820 test -z "$LD" && LD="$ac_prog" 10821 ;; 10822 "") 10823 # If it fails, then pretend we aren't using GCC. 10824 ac_prog=ld 10825 ;; 10826 *) 10827 # If it is relative, then search for the first ld in PATH. 10828 with_gnu_ld=unknown 10829 ;; 10830 esac 10831elif test "$with_gnu_ld" = yes; then 10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 10833$as_echo_n "checking for GNU ld... " >&6; } 10834else 10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 10836$as_echo_n "checking for non-GNU ld... " >&6; } 10837fi 10838if ${lt_cv_path_LD+:} false; then : 10839 $as_echo_n "(cached) " >&6 10840else 10841 if test -z "$LD"; then 10842 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10843 for ac_dir in $PATH; do 10844 IFS="$lt_save_ifs" 10845 test -z "$ac_dir" && ac_dir=. 10846 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10847 lt_cv_path_LD="$ac_dir/$ac_prog" 10848 # Check to see if the program is GNU ld. I'd rather use --version, 10849 # but apparently some variants of GNU ld only accept -v. 10850 # Break only if it was the GNU/non-GNU ld that we prefer. 10851 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10852 *GNU* | *'with BFD'*) 10853 test "$with_gnu_ld" != no && break 10854 ;; 10855 *) 10856 test "$with_gnu_ld" != yes && break 10857 ;; 10858 esac 10859 fi 10860 done 10861 IFS="$lt_save_ifs" 10862else 10863 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10864fi 10865fi 10866 10867LD="$lt_cv_path_LD" 10868if test -n "$LD"; then 10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 10870$as_echo "$LD" >&6; } 10871else 10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10873$as_echo "no" >&6; } 10874fi 10875test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 10876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 10877$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 10878if ${lt_cv_prog_gnu_ld+:} false; then : 10879 $as_echo_n "(cached) " >&6 10880else 10881 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10882case `$LD -v 2>&1 </dev/null` in 10883*GNU* | *'with BFD'*) 10884 lt_cv_prog_gnu_ld=yes 10885 ;; 10886*) 10887 lt_cv_prog_gnu_ld=no 10888 ;; 10889esac 10890fi 10891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 10892$as_echo "$lt_cv_prog_gnu_ld" >&6; } 10893with_gnu_ld=$lt_cv_prog_gnu_ld 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 10904$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 10905if ${lt_cv_path_NM+:} false; then : 10906 $as_echo_n "(cached) " >&6 10907else 10908 if test -n "$NM"; then 10909 # Let the user override the test. 10910 lt_cv_path_NM="$NM" 10911else 10912 lt_nm_to_check="${ac_tool_prefix}nm" 10913 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 10914 lt_nm_to_check="$lt_nm_to_check nm" 10915 fi 10916 for lt_tmp_nm in $lt_nm_to_check; do 10917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10918 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 10919 IFS="$lt_save_ifs" 10920 test -z "$ac_dir" && ac_dir=. 10921 tmp_nm="$ac_dir/$lt_tmp_nm" 10922 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 10923 # Check to see if the nm accepts a BSD-compat flag. 10924 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 10925 # nm: unknown option "B" ignored 10926 # Tru64's nm complains that /dev/null is an invalid object file 10927 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 10928 */dev/null* | *'Invalid file or object type'*) 10929 lt_cv_path_NM="$tmp_nm -B" 10930 break 10931 ;; 10932 *) 10933 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 10934 */dev/null*) 10935 lt_cv_path_NM="$tmp_nm -p" 10936 break 10937 ;; 10938 *) 10939 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 10940 continue # so that we can try to find one that supports BSD flags 10941 ;; 10942 esac 10943 ;; 10944 esac 10945 fi 10946 done 10947 IFS="$lt_save_ifs" 10948 done 10949 : ${lt_cv_path_NM=no} 10950fi 10951fi 10952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 10953$as_echo "$lt_cv_path_NM" >&6; } 10954if test "$lt_cv_path_NM" != "no"; then 10955 NM="$lt_cv_path_NM" 10956else 10957 # Didn't find any BSD compatible name lister, look for dumpbin. 10958 if test -n "$DUMPBIN"; then : 10959 # Let the user override the test. 10960 else 10961 if test -n "$ac_tool_prefix"; then 10962 for ac_prog in dumpbin "link -dump" 10963 do 10964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10965set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10967$as_echo_n "checking for $ac_word... " >&6; } 10968if ${ac_cv_prog_DUMPBIN+:} false; then : 10969 $as_echo_n "(cached) " >&6 10970else 10971 if test -n "$DUMPBIN"; then 10972 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 10973else 10974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10975for as_dir in $PATH 10976do 10977 IFS=$as_save_IFS 10978 test -z "$as_dir" && as_dir=. 10979 for ac_exec_ext in '' $ac_executable_extensions; do 10980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10981 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 10982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10983 break 2 10984 fi 10985done 10986 done 10987IFS=$as_save_IFS 10988 10989fi 10990fi 10991DUMPBIN=$ac_cv_prog_DUMPBIN 10992if test -n "$DUMPBIN"; then 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 10994$as_echo "$DUMPBIN" >&6; } 10995else 10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10997$as_echo "no" >&6; } 10998fi 10999 11000 11001 test -n "$DUMPBIN" && break 11002 done 11003fi 11004if test -z "$DUMPBIN"; then 11005 ac_ct_DUMPBIN=$DUMPBIN 11006 for ac_prog in dumpbin "link -dump" 11007do 11008 # Extract the first word of "$ac_prog", so it can be a program name with args. 11009set dummy $ac_prog; ac_word=$2 11010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11011$as_echo_n "checking for $ac_word... " >&6; } 11012if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11013 $as_echo_n "(cached) " >&6 11014else 11015 if test -n "$ac_ct_DUMPBIN"; then 11016 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11017else 11018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11019for as_dir in $PATH 11020do 11021 IFS=$as_save_IFS 11022 test -z "$as_dir" && as_dir=. 11023 for ac_exec_ext in '' $ac_executable_extensions; do 11024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11025 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11027 break 2 11028 fi 11029done 11030 done 11031IFS=$as_save_IFS 11032 11033fi 11034fi 11035ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11036if test -n "$ac_ct_DUMPBIN"; then 11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11038$as_echo "$ac_ct_DUMPBIN" >&6; } 11039else 11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11041$as_echo "no" >&6; } 11042fi 11043 11044 11045 test -n "$ac_ct_DUMPBIN" && break 11046done 11047 11048 if test "x$ac_ct_DUMPBIN" = x; then 11049 DUMPBIN=":" 11050 else 11051 case $cross_compiling:$ac_tool_warned in 11052yes:) 11053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11055ac_tool_warned=yes ;; 11056esac 11057 DUMPBIN=$ac_ct_DUMPBIN 11058 fi 11059fi 11060 11061 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 11062 *COFF*) 11063 DUMPBIN="$DUMPBIN -symbols" 11064 ;; 11065 *) 11066 DUMPBIN=: 11067 ;; 11068 esac 11069 fi 11070 11071 if test "$DUMPBIN" != ":"; then 11072 NM="$DUMPBIN" 11073 fi 11074fi 11075test -z "$NM" && NM=nm 11076 11077 11078 11079 11080 11081 11082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11083$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11084if ${lt_cv_nm_interface+:} false; then : 11085 $as_echo_n "(cached) " >&6 11086else 11087 lt_cv_nm_interface="BSD nm" 11088 echo "int some_variable = 0;" > conftest.$ac_ext 11089 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11090 (eval "$ac_compile" 2>conftest.err) 11091 cat conftest.err >&5 11092 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11093 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11094 cat conftest.err >&5 11095 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11096 cat conftest.out >&5 11097 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11098 lt_cv_nm_interface="MS dumpbin" 11099 fi 11100 rm -f conftest* 11101fi 11102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11103$as_echo "$lt_cv_nm_interface" >&6; } 11104 11105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11106$as_echo_n "checking whether ln -s works... " >&6; } 11107LN_S=$as_ln_s 11108if test "$LN_S" = "ln -s"; then 11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11110$as_echo "yes" >&6; } 11111else 11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11113$as_echo "no, using $LN_S" >&6; } 11114fi 11115 11116# find the maximum length of command line arguments 11117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11118$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11119if ${lt_cv_sys_max_cmd_len+:} false; then : 11120 $as_echo_n "(cached) " >&6 11121else 11122 i=0 11123 teststring="ABCD" 11124 11125 case $build_os in 11126 msdosdjgpp*) 11127 # On DJGPP, this test can blow up pretty badly due to problems in libc 11128 # (any single argument exceeding 2000 bytes causes a buffer overrun 11129 # during glob expansion). Even if it were fixed, the result of this 11130 # check would be larger than it should be. 11131 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11132 ;; 11133 11134 gnu*) 11135 # Under GNU Hurd, this test is not required because there is 11136 # no limit to the length of command line arguments. 11137 # Libtool will interpret -1 as no limit whatsoever 11138 lt_cv_sys_max_cmd_len=-1; 11139 ;; 11140 11141 cygwin* | mingw* | cegcc*) 11142 # On Win9x/ME, this test blows up -- it succeeds, but takes 11143 # about 5 minutes as the teststring grows exponentially. 11144 # Worse, since 9x/ME are not pre-emptively multitasking, 11145 # you end up with a "frozen" computer, even though with patience 11146 # the test eventually succeeds (with a max line length of 256k). 11147 # Instead, let's just punt: use the minimum linelength reported by 11148 # all of the supported platforms: 8192 (on NT/2K/XP). 11149 lt_cv_sys_max_cmd_len=8192; 11150 ;; 11151 11152 mint*) 11153 # On MiNT this can take a long time and run out of memory. 11154 lt_cv_sys_max_cmd_len=8192; 11155 ;; 11156 11157 amigaos*) 11158 # On AmigaOS with pdksh, this test takes hours, literally. 11159 # So we just punt and use a minimum line length of 8192. 11160 lt_cv_sys_max_cmd_len=8192; 11161 ;; 11162 11163 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 11164 # This has been around since 386BSD, at least. Likely further. 11165 if test -x /sbin/sysctl; then 11166 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11167 elif test -x /usr/sbin/sysctl; then 11168 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11169 else 11170 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11171 fi 11172 # And add a safety zone 11173 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11174 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11175 ;; 11176 11177 interix*) 11178 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11179 lt_cv_sys_max_cmd_len=196608 11180 ;; 11181 11182 osf*) 11183 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11184 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11185 # nice to cause kernel panics so lets avoid the loop below. 11186 # First set a reasonable default. 11187 lt_cv_sys_max_cmd_len=16384 11188 # 11189 if test -x /sbin/sysconfig; then 11190 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11191 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11192 esac 11193 fi 11194 ;; 11195 sco3.2v5*) 11196 lt_cv_sys_max_cmd_len=102400 11197 ;; 11198 sysv5* | sco5v6* | sysv4.2uw2*) 11199 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11200 if test -n "$kargmax"; then 11201 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11202 else 11203 lt_cv_sys_max_cmd_len=32768 11204 fi 11205 ;; 11206 *) 11207 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11208 if test -n "$lt_cv_sys_max_cmd_len"; then 11209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11211 else 11212 # Make teststring a little bigger before we do anything with it. 11213 # a 1K string should be a reasonable start. 11214 for i in 1 2 3 4 5 6 7 8 ; do 11215 teststring=$teststring$teststring 11216 done 11217 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11218 # If test is not a shell built-in, we'll probably end up computing a 11219 # maximum length that is only half of the actual maximum length, but 11220 # we can't tell. 11221 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 11222 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11223 test $i != 17 # 1/2 MB should be enough 11224 do 11225 i=`expr $i + 1` 11226 teststring=$teststring$teststring 11227 done 11228 # Only check the string length outside the loop. 11229 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11230 teststring= 11231 # Add a significant safety factor because C++ compilers can tack on 11232 # massive amounts of additional arguments before passing them to the 11233 # linker. It appears as though 1/2 is a usable value. 11234 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11235 fi 11236 ;; 11237 esac 11238 11239fi 11240 11241if test -n $lt_cv_sys_max_cmd_len ; then 11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11243$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11244else 11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11246$as_echo "none" >&6; } 11247fi 11248max_cmd_len=$lt_cv_sys_max_cmd_len 11249 11250 11251 11252 11253 11254 11255: ${CP="cp -f"} 11256: ${MV="mv -f"} 11257: ${RM="rm -f"} 11258 11259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 11260$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 11261# Try some XSI features 11262xsi_shell=no 11263( _lt_dummy="a/b/c" 11264 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 11265 = c,a/b,b/c, \ 11266 && eval 'test $(( 1 + 1 )) -eq 2 \ 11267 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 11268 && xsi_shell=yes 11269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 11270$as_echo "$xsi_shell" >&6; } 11271 11272 11273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 11274$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 11275lt_shell_append=no 11276( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 11277 >/dev/null 2>&1 \ 11278 && lt_shell_append=yes 11279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 11280$as_echo "$lt_shell_append" >&6; } 11281 11282 11283if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11284 lt_unset=unset 11285else 11286 lt_unset=false 11287fi 11288 11289 11290 11291 11292 11293# test EBCDIC or ASCII 11294case `echo X|tr X '\101'` in 11295 A) # ASCII based system 11296 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11297 lt_SP2NL='tr \040 \012' 11298 lt_NL2SP='tr \015\012 \040\040' 11299 ;; 11300 *) # EBCDIC based system 11301 lt_SP2NL='tr \100 \n' 11302 lt_NL2SP='tr \r\n \100\100' 11303 ;; 11304esac 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11315$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11316if ${lt_cv_to_host_file_cmd+:} false; then : 11317 $as_echo_n "(cached) " >&6 11318else 11319 case $host in 11320 *-*-mingw* ) 11321 case $build in 11322 *-*-mingw* ) # actually msys 11323 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11324 ;; 11325 *-*-cygwin* ) 11326 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11327 ;; 11328 * ) # otherwise, assume *nix 11329 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11330 ;; 11331 esac 11332 ;; 11333 *-*-cygwin* ) 11334 case $build in 11335 *-*-mingw* ) # actually msys 11336 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11337 ;; 11338 *-*-cygwin* ) 11339 lt_cv_to_host_file_cmd=func_convert_file_noop 11340 ;; 11341 * ) # otherwise, assume *nix 11342 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11343 ;; 11344 esac 11345 ;; 11346 * ) # unhandled hosts (and "normal" native builds) 11347 lt_cv_to_host_file_cmd=func_convert_file_noop 11348 ;; 11349esac 11350 11351fi 11352 11353to_host_file_cmd=$lt_cv_to_host_file_cmd 11354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11355$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11356 11357 11358 11359 11360 11361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11362$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11363if ${lt_cv_to_tool_file_cmd+:} false; then : 11364 $as_echo_n "(cached) " >&6 11365else 11366 #assume ordinary cross tools, or native build. 11367lt_cv_to_tool_file_cmd=func_convert_file_noop 11368case $host in 11369 *-*-mingw* ) 11370 case $build in 11371 *-*-mingw* ) # actually msys 11372 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11373 ;; 11374 esac 11375 ;; 11376esac 11377 11378fi 11379 11380to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11382$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11383 11384 11385 11386 11387 11388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11389$as_echo_n "checking for $LD option to reload object files... " >&6; } 11390if ${lt_cv_ld_reload_flag+:} false; then : 11391 $as_echo_n "(cached) " >&6 11392else 11393 lt_cv_ld_reload_flag='-r' 11394fi 11395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11396$as_echo "$lt_cv_ld_reload_flag" >&6; } 11397reload_flag=$lt_cv_ld_reload_flag 11398case $reload_flag in 11399"" | " "*) ;; 11400*) reload_flag=" $reload_flag" ;; 11401esac 11402reload_cmds='$LD$reload_flag -o $output$reload_objs' 11403case $host_os in 11404 cygwin* | mingw* | pw32* | cegcc*) 11405 if test "$GCC" != yes; then 11406 reload_cmds=false 11407 fi 11408 ;; 11409 darwin*) 11410 if test "$GCC" = yes; then 11411 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 11412 else 11413 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11414 fi 11415 ;; 11416esac 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426if test -n "$ac_tool_prefix"; then 11427 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11428set dummy ${ac_tool_prefix}objdump; ac_word=$2 11429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11430$as_echo_n "checking for $ac_word... " >&6; } 11431if ${ac_cv_prog_OBJDUMP+:} false; then : 11432 $as_echo_n "(cached) " >&6 11433else 11434 if test -n "$OBJDUMP"; then 11435 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11436else 11437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11438for as_dir in $PATH 11439do 11440 IFS=$as_save_IFS 11441 test -z "$as_dir" && as_dir=. 11442 for ac_exec_ext in '' $ac_executable_extensions; do 11443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11444 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11446 break 2 11447 fi 11448done 11449 done 11450IFS=$as_save_IFS 11451 11452fi 11453fi 11454OBJDUMP=$ac_cv_prog_OBJDUMP 11455if test -n "$OBJDUMP"; then 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11457$as_echo "$OBJDUMP" >&6; } 11458else 11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11460$as_echo "no" >&6; } 11461fi 11462 11463 11464fi 11465if test -z "$ac_cv_prog_OBJDUMP"; then 11466 ac_ct_OBJDUMP=$OBJDUMP 11467 # Extract the first word of "objdump", so it can be a program name with args. 11468set dummy objdump; ac_word=$2 11469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11470$as_echo_n "checking for $ac_word... " >&6; } 11471if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11472 $as_echo_n "(cached) " >&6 11473else 11474 if test -n "$ac_ct_OBJDUMP"; then 11475 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11476else 11477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11478for as_dir in $PATH 11479do 11480 IFS=$as_save_IFS 11481 test -z "$as_dir" && as_dir=. 11482 for ac_exec_ext in '' $ac_executable_extensions; do 11483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11484 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11486 break 2 11487 fi 11488done 11489 done 11490IFS=$as_save_IFS 11491 11492fi 11493fi 11494ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11495if test -n "$ac_ct_OBJDUMP"; then 11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11497$as_echo "$ac_ct_OBJDUMP" >&6; } 11498else 11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11500$as_echo "no" >&6; } 11501fi 11502 11503 if test "x$ac_ct_OBJDUMP" = x; then 11504 OBJDUMP="false" 11505 else 11506 case $cross_compiling:$ac_tool_warned in 11507yes:) 11508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11510ac_tool_warned=yes ;; 11511esac 11512 OBJDUMP=$ac_ct_OBJDUMP 11513 fi 11514else 11515 OBJDUMP="$ac_cv_prog_OBJDUMP" 11516fi 11517 11518test -z "$OBJDUMP" && OBJDUMP=objdump 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11529$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11530if ${lt_cv_deplibs_check_method+:} false; then : 11531 $as_echo_n "(cached) " >&6 11532else 11533 lt_cv_file_magic_cmd='$MAGIC_CMD' 11534lt_cv_file_magic_test_file= 11535lt_cv_deplibs_check_method='unknown' 11536# Need to set the preceding variable on all platforms that support 11537# interlibrary dependencies. 11538# 'none' -- dependencies not supported. 11539# `unknown' -- same as none, but documents that we really don't know. 11540# 'pass_all' -- all dependencies passed with no checks. 11541# 'test_compile' -- check by making test program. 11542# 'file_magic [[regex]]' -- check by looking for files in library path 11543# which responds to the $file_magic_cmd with a given extended regex. 11544# If you have `file' or equivalent on your system and you're not sure 11545# whether `pass_all' will *always* work, you probably want this one. 11546 11547case $host_os in 11548aix[4-9]*) 11549 lt_cv_deplibs_check_method=pass_all 11550 ;; 11551 11552beos*) 11553 lt_cv_deplibs_check_method=pass_all 11554 ;; 11555 11556bsdi[45]*) 11557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11558 lt_cv_file_magic_cmd='/usr/bin/file -L' 11559 lt_cv_file_magic_test_file=/shlib/libc.so 11560 ;; 11561 11562cygwin*) 11563 # func_win32_libid is a shell function defined in ltmain.sh 11564 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11565 lt_cv_file_magic_cmd='func_win32_libid' 11566 ;; 11567 11568mingw* | pw32*) 11569 # Base MSYS/MinGW do not provide the 'file' command needed by 11570 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11571 # unless we find 'file', for example because we are cross-compiling. 11572 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 11573 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 11574 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11575 lt_cv_file_magic_cmd='func_win32_libid' 11576 else 11577 # Keep this pattern in sync with the one in func_win32_libid. 11578 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11579 lt_cv_file_magic_cmd='$OBJDUMP -f' 11580 fi 11581 ;; 11582 11583cegcc*) 11584 # use the weaker test based on 'objdump'. See mingw*. 11585 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11586 lt_cv_file_magic_cmd='$OBJDUMP -f' 11587 ;; 11588 11589darwin* | rhapsody*) 11590 lt_cv_deplibs_check_method=pass_all 11591 ;; 11592 11593freebsd* | dragonfly*) 11594 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11595 case $host_cpu in 11596 i*86 ) 11597 # Not sure whether the presence of OpenBSD here was a mistake. 11598 # Let's accept both of them until this is cleared up. 11599 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11600 lt_cv_file_magic_cmd=/usr/bin/file 11601 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11602 ;; 11603 esac 11604 else 11605 lt_cv_deplibs_check_method=pass_all 11606 fi 11607 ;; 11608 11609gnu*) 11610 lt_cv_deplibs_check_method=pass_all 11611 ;; 11612 11613haiku*) 11614 lt_cv_deplibs_check_method=pass_all 11615 ;; 11616 11617hpux10.20* | hpux11*) 11618 lt_cv_file_magic_cmd=/usr/bin/file 11619 case $host_cpu in 11620 ia64*) 11621 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11622 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11623 ;; 11624 hppa*64*) 11625 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]' 11626 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11627 ;; 11628 *) 11629 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11630 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11631 ;; 11632 esac 11633 ;; 11634 11635interix[3-9]*) 11636 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11638 ;; 11639 11640irix5* | irix6* | nonstopux*) 11641 case $LD in 11642 *-32|*"-32 ") libmagic=32-bit;; 11643 *-n32|*"-n32 ") libmagic=N32;; 11644 *-64|*"-64 ") libmagic=64-bit;; 11645 *) libmagic=never-match;; 11646 esac 11647 lt_cv_deplibs_check_method=pass_all 11648 ;; 11649 11650# This must be Linux ELF. 11651linux* | k*bsd*-gnu | kopensolaris*-gnu) 11652 lt_cv_deplibs_check_method=pass_all 11653 ;; 11654 11655netbsd*) 11656 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11658 else 11659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 11660 fi 11661 ;; 11662 11663newos6*) 11664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 11665 lt_cv_file_magic_cmd=/usr/bin/file 11666 lt_cv_file_magic_test_file=/usr/lib/libnls.so 11667 ;; 11668 11669*nto* | *qnx*) 11670 lt_cv_deplibs_check_method=pass_all 11671 ;; 11672 11673openbsd*) 11674 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 11676 else 11677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11678 fi 11679 ;; 11680 11681osf3* | osf4* | osf5*) 11682 lt_cv_deplibs_check_method=pass_all 11683 ;; 11684 11685rdos*) 11686 lt_cv_deplibs_check_method=pass_all 11687 ;; 11688 11689solaris*) 11690 lt_cv_deplibs_check_method=pass_all 11691 ;; 11692 11693sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11694 lt_cv_deplibs_check_method=pass_all 11695 ;; 11696 11697sysv4 | sysv4.3*) 11698 case $host_vendor in 11699 motorola) 11700 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]' 11701 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 11702 ;; 11703 ncr) 11704 lt_cv_deplibs_check_method=pass_all 11705 ;; 11706 sequent) 11707 lt_cv_file_magic_cmd='/bin/file' 11708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 11709 ;; 11710 sni) 11711 lt_cv_file_magic_cmd='/bin/file' 11712 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 11713 lt_cv_file_magic_test_file=/lib/libc.so 11714 ;; 11715 siemens) 11716 lt_cv_deplibs_check_method=pass_all 11717 ;; 11718 pc) 11719 lt_cv_deplibs_check_method=pass_all 11720 ;; 11721 esac 11722 ;; 11723 11724tpf*) 11725 lt_cv_deplibs_check_method=pass_all 11726 ;; 11727esac 11728 11729fi 11730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 11731$as_echo "$lt_cv_deplibs_check_method" >&6; } 11732 11733file_magic_glob= 11734want_nocaseglob=no 11735if test "$build" = "$host"; then 11736 case $host_os in 11737 mingw* | pw32*) 11738 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 11739 want_nocaseglob=yes 11740 else 11741 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 11742 fi 11743 ;; 11744 esac 11745fi 11746 11747file_magic_cmd=$lt_cv_file_magic_cmd 11748deplibs_check_method=$lt_cv_deplibs_check_method 11749test -z "$deplibs_check_method" && deplibs_check_method=unknown 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772if test -n "$ac_tool_prefix"; then 11773 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 11774set dummy ${ac_tool_prefix}dlltool; ac_word=$2 11775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11776$as_echo_n "checking for $ac_word... " >&6; } 11777if ${ac_cv_prog_DLLTOOL+:} false; then : 11778 $as_echo_n "(cached) " >&6 11779else 11780 if test -n "$DLLTOOL"; then 11781 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 11782else 11783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11784for as_dir in $PATH 11785do 11786 IFS=$as_save_IFS 11787 test -z "$as_dir" && as_dir=. 11788 for ac_exec_ext in '' $ac_executable_extensions; do 11789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11790 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 11791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11792 break 2 11793 fi 11794done 11795 done 11796IFS=$as_save_IFS 11797 11798fi 11799fi 11800DLLTOOL=$ac_cv_prog_DLLTOOL 11801if test -n "$DLLTOOL"; then 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 11803$as_echo "$DLLTOOL" >&6; } 11804else 11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11806$as_echo "no" >&6; } 11807fi 11808 11809 11810fi 11811if test -z "$ac_cv_prog_DLLTOOL"; then 11812 ac_ct_DLLTOOL=$DLLTOOL 11813 # Extract the first word of "dlltool", so it can be a program name with args. 11814set dummy dlltool; ac_word=$2 11815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11816$as_echo_n "checking for $ac_word... " >&6; } 11817if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 11818 $as_echo_n "(cached) " >&6 11819else 11820 if test -n "$ac_ct_DLLTOOL"; then 11821 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 11822else 11823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11824for as_dir in $PATH 11825do 11826 IFS=$as_save_IFS 11827 test -z "$as_dir" && as_dir=. 11828 for ac_exec_ext in '' $ac_executable_extensions; do 11829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11830 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 11831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11832 break 2 11833 fi 11834done 11835 done 11836IFS=$as_save_IFS 11837 11838fi 11839fi 11840ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 11841if test -n "$ac_ct_DLLTOOL"; then 11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 11843$as_echo "$ac_ct_DLLTOOL" >&6; } 11844else 11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11846$as_echo "no" >&6; } 11847fi 11848 11849 if test "x$ac_ct_DLLTOOL" = x; then 11850 DLLTOOL="false" 11851 else 11852 case $cross_compiling:$ac_tool_warned in 11853yes:) 11854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11856ac_tool_warned=yes ;; 11857esac 11858 DLLTOOL=$ac_ct_DLLTOOL 11859 fi 11860else 11861 DLLTOOL="$ac_cv_prog_DLLTOOL" 11862fi 11863 11864test -z "$DLLTOOL" && DLLTOOL=dlltool 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 11876$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 11877if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 11878 $as_echo_n "(cached) " >&6 11879else 11880 lt_cv_sharedlib_from_linklib_cmd='unknown' 11881 11882case $host_os in 11883cygwin* | mingw* | pw32* | cegcc*) 11884 # two different shell functions defined in ltmain.sh 11885 # decide which to use based on capabilities of $DLLTOOL 11886 case `$DLLTOOL --help 2>&1` in 11887 *--identify-strict*) 11888 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 11889 ;; 11890 *) 11891 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 11892 ;; 11893 esac 11894 ;; 11895*) 11896 # fallback: assume linklib IS sharedlib 11897 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 11898 ;; 11899esac 11900 11901fi 11902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 11903$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 11904sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 11905test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 11906 11907 11908 11909 11910 11911 11912 11913if test -n "$ac_tool_prefix"; then 11914 for ac_prog in ar 11915 do 11916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11917set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11919$as_echo_n "checking for $ac_word... " >&6; } 11920if ${ac_cv_prog_AR+:} false; then : 11921 $as_echo_n "(cached) " >&6 11922else 11923 if test -n "$AR"; then 11924 ac_cv_prog_AR="$AR" # Let the user override the test. 11925else 11926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11927for as_dir in $PATH 11928do 11929 IFS=$as_save_IFS 11930 test -z "$as_dir" && as_dir=. 11931 for ac_exec_ext in '' $ac_executable_extensions; do 11932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11933 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 11934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11935 break 2 11936 fi 11937done 11938 done 11939IFS=$as_save_IFS 11940 11941fi 11942fi 11943AR=$ac_cv_prog_AR 11944if test -n "$AR"; then 11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 11946$as_echo "$AR" >&6; } 11947else 11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11949$as_echo "no" >&6; } 11950fi 11951 11952 11953 test -n "$AR" && break 11954 done 11955fi 11956if test -z "$AR"; then 11957 ac_ct_AR=$AR 11958 for ac_prog in ar 11959do 11960 # Extract the first word of "$ac_prog", so it can be a program name with args. 11961set dummy $ac_prog; ac_word=$2 11962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11963$as_echo_n "checking for $ac_word... " >&6; } 11964if ${ac_cv_prog_ac_ct_AR+:} false; then : 11965 $as_echo_n "(cached) " >&6 11966else 11967 if test -n "$ac_ct_AR"; then 11968 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 11969else 11970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11971for as_dir in $PATH 11972do 11973 IFS=$as_save_IFS 11974 test -z "$as_dir" && as_dir=. 11975 for ac_exec_ext in '' $ac_executable_extensions; do 11976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11977 ac_cv_prog_ac_ct_AR="$ac_prog" 11978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11979 break 2 11980 fi 11981done 11982 done 11983IFS=$as_save_IFS 11984 11985fi 11986fi 11987ac_ct_AR=$ac_cv_prog_ac_ct_AR 11988if test -n "$ac_ct_AR"; then 11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 11990$as_echo "$ac_ct_AR" >&6; } 11991else 11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11993$as_echo "no" >&6; } 11994fi 11995 11996 11997 test -n "$ac_ct_AR" && break 11998done 11999 12000 if test "x$ac_ct_AR" = x; then 12001 AR="false" 12002 else 12003 case $cross_compiling:$ac_tool_warned in 12004yes:) 12005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12007ac_tool_warned=yes ;; 12008esac 12009 AR=$ac_ct_AR 12010 fi 12011fi 12012 12013: ${AR=ar} 12014: ${AR_FLAGS=cru} 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12027$as_echo_n "checking for archiver @FILE support... " >&6; } 12028if ${lt_cv_ar_at_file+:} false; then : 12029 $as_echo_n "(cached) " >&6 12030else 12031 lt_cv_ar_at_file=no 12032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12033/* end confdefs.h. */ 12034 12035int 12036main () 12037{ 12038 12039 ; 12040 return 0; 12041} 12042_ACEOF 12043if ac_fn_c_try_compile "$LINENO"; then : 12044 echo conftest.$ac_objext > conftest.lst 12045 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12047 (eval $lt_ar_try) 2>&5 12048 ac_status=$? 12049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12050 test $ac_status = 0; } 12051 if test "$ac_status" -eq 0; then 12052 # Ensure the archiver fails upon bogus file names. 12053 rm -f conftest.$ac_objext libconftest.a 12054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12055 (eval $lt_ar_try) 2>&5 12056 ac_status=$? 12057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12058 test $ac_status = 0; } 12059 if test "$ac_status" -ne 0; then 12060 lt_cv_ar_at_file=@ 12061 fi 12062 fi 12063 rm -f conftest.* libconftest.a 12064 12065fi 12066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12067 12068fi 12069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12070$as_echo "$lt_cv_ar_at_file" >&6; } 12071 12072if test "x$lt_cv_ar_at_file" = xno; then 12073 archiver_list_spec= 12074else 12075 archiver_list_spec=$lt_cv_ar_at_file 12076fi 12077 12078 12079 12080 12081 12082 12083 12084if test -n "$ac_tool_prefix"; then 12085 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12086set dummy ${ac_tool_prefix}strip; ac_word=$2 12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12088$as_echo_n "checking for $ac_word... " >&6; } 12089if ${ac_cv_prog_STRIP+:} false; then : 12090 $as_echo_n "(cached) " >&6 12091else 12092 if test -n "$STRIP"; then 12093 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12094else 12095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12096for as_dir in $PATH 12097do 12098 IFS=$as_save_IFS 12099 test -z "$as_dir" && as_dir=. 12100 for ac_exec_ext in '' $ac_executable_extensions; do 12101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12102 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12104 break 2 12105 fi 12106done 12107 done 12108IFS=$as_save_IFS 12109 12110fi 12111fi 12112STRIP=$ac_cv_prog_STRIP 12113if test -n "$STRIP"; then 12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12115$as_echo "$STRIP" >&6; } 12116else 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12118$as_echo "no" >&6; } 12119fi 12120 12121 12122fi 12123if test -z "$ac_cv_prog_STRIP"; then 12124 ac_ct_STRIP=$STRIP 12125 # Extract the first word of "strip", so it can be a program name with args. 12126set dummy strip; ac_word=$2 12127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12128$as_echo_n "checking for $ac_word... " >&6; } 12129if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12130 $as_echo_n "(cached) " >&6 12131else 12132 if test -n "$ac_ct_STRIP"; then 12133 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12134else 12135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12136for as_dir in $PATH 12137do 12138 IFS=$as_save_IFS 12139 test -z "$as_dir" && as_dir=. 12140 for ac_exec_ext in '' $ac_executable_extensions; do 12141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12142 ac_cv_prog_ac_ct_STRIP="strip" 12143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12144 break 2 12145 fi 12146done 12147 done 12148IFS=$as_save_IFS 12149 12150fi 12151fi 12152ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12153if test -n "$ac_ct_STRIP"; then 12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12155$as_echo "$ac_ct_STRIP" >&6; } 12156else 12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12158$as_echo "no" >&6; } 12159fi 12160 12161 if test "x$ac_ct_STRIP" = x; then 12162 STRIP=":" 12163 else 12164 case $cross_compiling:$ac_tool_warned in 12165yes:) 12166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12168ac_tool_warned=yes ;; 12169esac 12170 STRIP=$ac_ct_STRIP 12171 fi 12172else 12173 STRIP="$ac_cv_prog_STRIP" 12174fi 12175 12176test -z "$STRIP" && STRIP=: 12177 12178 12179 12180 12181 12182 12183if test -n "$ac_tool_prefix"; then 12184 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12185set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12187$as_echo_n "checking for $ac_word... " >&6; } 12188if ${ac_cv_prog_RANLIB+:} false; then : 12189 $as_echo_n "(cached) " >&6 12190else 12191 if test -n "$RANLIB"; then 12192 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12193else 12194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12195for as_dir in $PATH 12196do 12197 IFS=$as_save_IFS 12198 test -z "$as_dir" && as_dir=. 12199 for ac_exec_ext in '' $ac_executable_extensions; do 12200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12201 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12203 break 2 12204 fi 12205done 12206 done 12207IFS=$as_save_IFS 12208 12209fi 12210fi 12211RANLIB=$ac_cv_prog_RANLIB 12212if test -n "$RANLIB"; then 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12214$as_echo "$RANLIB" >&6; } 12215else 12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12217$as_echo "no" >&6; } 12218fi 12219 12220 12221fi 12222if test -z "$ac_cv_prog_RANLIB"; then 12223 ac_ct_RANLIB=$RANLIB 12224 # Extract the first word of "ranlib", so it can be a program name with args. 12225set dummy ranlib; ac_word=$2 12226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12227$as_echo_n "checking for $ac_word... " >&6; } 12228if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12229 $as_echo_n "(cached) " >&6 12230else 12231 if test -n "$ac_ct_RANLIB"; then 12232 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12233else 12234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12235for as_dir in $PATH 12236do 12237 IFS=$as_save_IFS 12238 test -z "$as_dir" && as_dir=. 12239 for ac_exec_ext in '' $ac_executable_extensions; do 12240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12241 ac_cv_prog_ac_ct_RANLIB="ranlib" 12242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12243 break 2 12244 fi 12245done 12246 done 12247IFS=$as_save_IFS 12248 12249fi 12250fi 12251ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12252if test -n "$ac_ct_RANLIB"; then 12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12254$as_echo "$ac_ct_RANLIB" >&6; } 12255else 12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12257$as_echo "no" >&6; } 12258fi 12259 12260 if test "x$ac_ct_RANLIB" = x; then 12261 RANLIB=":" 12262 else 12263 case $cross_compiling:$ac_tool_warned in 12264yes:) 12265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12267ac_tool_warned=yes ;; 12268esac 12269 RANLIB=$ac_ct_RANLIB 12270 fi 12271else 12272 RANLIB="$ac_cv_prog_RANLIB" 12273fi 12274 12275test -z "$RANLIB" && RANLIB=: 12276 12277 12278 12279 12280 12281 12282# Determine commands to create old-style static archives. 12283old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12284old_postinstall_cmds='chmod 644 $oldlib' 12285old_postuninstall_cmds= 12286 12287if test -n "$RANLIB"; then 12288 case $host_os in 12289 openbsd*) 12290 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 12291 ;; 12292 *) 12293 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 12294 ;; 12295 esac 12296 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 12297fi 12298 12299case $host_os in 12300 darwin*) 12301 lock_old_archive_extraction=yes ;; 12302 *) 12303 lock_old_archive_extraction=no ;; 12304esac 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344# If no C compiler was specified, use CC. 12345LTCC=${LTCC-"$CC"} 12346 12347# If no C compiler flags were specified, use CFLAGS. 12348LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12349 12350# Allow CC to be a program name with arguments. 12351compiler=$CC 12352 12353 12354# Check for command to grab the raw symbol name followed by C symbol from nm. 12355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12356$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12357if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12358 $as_echo_n "(cached) " >&6 12359else 12360 12361# These are sane defaults that work on at least a few old systems. 12362# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12363 12364# Character class describing NM global symbol codes. 12365symcode='[BCDEGRST]' 12366 12367# Regexp to match symbols that can be accessed directly from C. 12368sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12369 12370# Define system-specific variables. 12371case $host_os in 12372aix*) 12373 symcode='[BCDT]' 12374 ;; 12375cygwin* | mingw* | pw32* | cegcc*) 12376 symcode='[ABCDGISTW]' 12377 ;; 12378hpux*) 12379 if test "$host_cpu" = ia64; then 12380 symcode='[ABCDEGRST]' 12381 fi 12382 ;; 12383irix* | nonstopux*) 12384 symcode='[BCDEGRST]' 12385 ;; 12386osf*) 12387 symcode='[BCDEGQRST]' 12388 ;; 12389solaris*) 12390 symcode='[BDRT]' 12391 ;; 12392sco3.2v5*) 12393 symcode='[DT]' 12394 ;; 12395sysv4.2uw2*) 12396 symcode='[DT]' 12397 ;; 12398sysv5* | sco5v6* | unixware* | OpenUNIX*) 12399 symcode='[ABDT]' 12400 ;; 12401sysv4) 12402 symcode='[DFNSTU]' 12403 ;; 12404esac 12405 12406# If we're using GNU nm, then use its standard symbol codes. 12407case `$NM -V 2>&1` in 12408*GNU* | *'with BFD'*) 12409 symcode='[ABCDGIRSTW]' ;; 12410esac 12411 12412# Transform an extracted symbol line into a proper C declaration. 12413# Some systems (esp. on ia64) link data and code symbols differently, 12414# so use this general approach. 12415lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 12416 12417# Transform an extracted symbol line into symbol name and symbol address 12418lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 12419lt_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'" 12420 12421# Handle CRLF in mingw tool chain 12422opt_cr= 12423case $build_os in 12424mingw*) 12425 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12426 ;; 12427esac 12428 12429# Try without a prefix underscore, then with it. 12430for ac_symprfx in "" "_"; do 12431 12432 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12433 symxfrm="\\1 $ac_symprfx\\2 \\2" 12434 12435 # Write the raw and C identifiers. 12436 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12437 # Fake it for dumpbin and say T for any non-static function 12438 # and D for any global variable. 12439 # Also find C++ and __fastcall symbols from MSVC++, 12440 # which start with @ or ?. 12441 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12442" {last_section=section; section=\$ 3};"\ 12443" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12444" \$ 0!~/External *\|/{next};"\ 12445" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12446" {if(hide[section]) next};"\ 12447" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 12448" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 12449" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 12450" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 12451" ' prfx=^$ac_symprfx" 12452 else 12453 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12454 fi 12455 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12456 12457 # Check to see that the pipe works correctly. 12458 pipe_works=no 12459 12460 rm -f conftest* 12461 cat > conftest.$ac_ext <<_LT_EOF 12462#ifdef __cplusplus 12463extern "C" { 12464#endif 12465char nm_test_var; 12466void nm_test_func(void); 12467void nm_test_func(void){} 12468#ifdef __cplusplus 12469} 12470#endif 12471int main(){nm_test_var='a';nm_test_func();return(0);} 12472_LT_EOF 12473 12474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12475 (eval $ac_compile) 2>&5 12476 ac_status=$? 12477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12478 test $ac_status = 0; }; then 12479 # Now try to grab the symbols. 12480 nlist=conftest.nm 12481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12482 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12483 ac_status=$? 12484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12485 test $ac_status = 0; } && test -s "$nlist"; then 12486 # Try sorting and uniquifying the output. 12487 if sort "$nlist" | uniq > "$nlist"T; then 12488 mv -f "$nlist"T "$nlist" 12489 else 12490 rm -f "$nlist"T 12491 fi 12492 12493 # Make sure that we snagged all the symbols we need. 12494 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12495 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12496 cat <<_LT_EOF > conftest.$ac_ext 12497/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12498#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 12499/* DATA imports from DLLs on WIN32 con't be const, because runtime 12500 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12501# define LT_DLSYM_CONST 12502#elif defined(__osf__) 12503/* This system does not cope well with relocations in const data. */ 12504# define LT_DLSYM_CONST 12505#else 12506# define LT_DLSYM_CONST const 12507#endif 12508 12509#ifdef __cplusplus 12510extern "C" { 12511#endif 12512 12513_LT_EOF 12514 # Now generate the symbol file. 12515 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12516 12517 cat <<_LT_EOF >> conftest.$ac_ext 12518 12519/* The mapping between symbol names and symbols. */ 12520LT_DLSYM_CONST struct { 12521 const char *name; 12522 void *address; 12523} 12524lt__PROGRAM__LTX_preloaded_symbols[] = 12525{ 12526 { "@PROGRAM@", (void *) 0 }, 12527_LT_EOF 12528 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12529 cat <<\_LT_EOF >> conftest.$ac_ext 12530 {0, (void *) 0} 12531}; 12532 12533/* This works around a problem in FreeBSD linker */ 12534#ifdef FREEBSD_WORKAROUND 12535static const void *lt_preloaded_setup() { 12536 return lt__PROGRAM__LTX_preloaded_symbols; 12537} 12538#endif 12539 12540#ifdef __cplusplus 12541} 12542#endif 12543_LT_EOF 12544 # Now try linking the two files. 12545 mv conftest.$ac_objext conftstm.$ac_objext 12546 lt_globsym_save_LIBS=$LIBS 12547 lt_globsym_save_CFLAGS=$CFLAGS 12548 LIBS="conftstm.$ac_objext" 12549 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12551 (eval $ac_link) 2>&5 12552 ac_status=$? 12553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12554 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 12555 pipe_works=yes 12556 fi 12557 LIBS=$lt_globsym_save_LIBS 12558 CFLAGS=$lt_globsym_save_CFLAGS 12559 else 12560 echo "cannot find nm_test_func in $nlist" >&5 12561 fi 12562 else 12563 echo "cannot find nm_test_var in $nlist" >&5 12564 fi 12565 else 12566 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12567 fi 12568 else 12569 echo "$progname: failed program was:" >&5 12570 cat conftest.$ac_ext >&5 12571 fi 12572 rm -rf conftest* conftst* 12573 12574 # Do not use the global_symbol_pipe unless it works. 12575 if test "$pipe_works" = yes; then 12576 break 12577 else 12578 lt_cv_sys_global_symbol_pipe= 12579 fi 12580done 12581 12582fi 12583 12584if test -z "$lt_cv_sys_global_symbol_pipe"; then 12585 lt_cv_sys_global_symbol_to_cdecl= 12586fi 12587if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12589$as_echo "failed" >&6; } 12590else 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12592$as_echo "ok" >&6; } 12593fi 12594 12595# Response file support. 12596if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12597 nm_file_list_spec='@' 12598elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12599 nm_file_list_spec='@' 12600fi 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 12629$as_echo_n "checking for sysroot... " >&6; } 12630 12631# Check whether --with-sysroot was given. 12632if test "${with_sysroot+set}" = set; then : 12633 withval=$with_sysroot; 12634else 12635 with_sysroot=no 12636fi 12637 12638 12639lt_sysroot= 12640case ${with_sysroot} in #( 12641 yes) 12642 if test "$GCC" = yes; then 12643 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 12644 fi 12645 ;; #( 12646 /*) 12647 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 12648 ;; #( 12649 no|'') 12650 ;; #( 12651 *) 12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 12653$as_echo "${with_sysroot}" >&6; } 12654 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 12655 ;; 12656esac 12657 12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 12659$as_echo "${lt_sysroot:-no}" >&6; } 12660 12661 12662 12663 12664 12665# Check whether --enable-libtool-lock was given. 12666if test "${enable_libtool_lock+set}" = set; then : 12667 enableval=$enable_libtool_lock; 12668fi 12669 12670test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 12671 12672# Some flags need to be propagated to the compiler or linker for good 12673# libtool support. 12674case $host in 12675ia64-*-hpux*) 12676 # Find out which ABI we are using. 12677 echo 'int i;' > conftest.$ac_ext 12678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12679 (eval $ac_compile) 2>&5 12680 ac_status=$? 12681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12682 test $ac_status = 0; }; then 12683 case `/usr/bin/file conftest.$ac_objext` in 12684 *ELF-32*) 12685 HPUX_IA64_MODE="32" 12686 ;; 12687 *ELF-64*) 12688 HPUX_IA64_MODE="64" 12689 ;; 12690 esac 12691 fi 12692 rm -rf conftest* 12693 ;; 12694*-*-irix6*) 12695 # Find out which ABI we are using. 12696 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 12697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12698 (eval $ac_compile) 2>&5 12699 ac_status=$? 12700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12701 test $ac_status = 0; }; then 12702 if test "$lt_cv_prog_gnu_ld" = yes; then 12703 case `/usr/bin/file conftest.$ac_objext` in 12704 *32-bit*) 12705 LD="${LD-ld} -melf32bsmip" 12706 ;; 12707 *N32*) 12708 LD="${LD-ld} -melf32bmipn32" 12709 ;; 12710 *64-bit*) 12711 LD="${LD-ld} -melf64bmip" 12712 ;; 12713 esac 12714 else 12715 case `/usr/bin/file conftest.$ac_objext` in 12716 *32-bit*) 12717 LD="${LD-ld} -32" 12718 ;; 12719 *N32*) 12720 LD="${LD-ld} -n32" 12721 ;; 12722 *64-bit*) 12723 LD="${LD-ld} -64" 12724 ;; 12725 esac 12726 fi 12727 fi 12728 rm -rf conftest* 12729 ;; 12730 12731x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 12732s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 12733 # Find out which ABI we are using. 12734 echo 'int i;' > conftest.$ac_ext 12735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12736 (eval $ac_compile) 2>&5 12737 ac_status=$? 12738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12739 test $ac_status = 0; }; then 12740 case `/usr/bin/file conftest.o` in 12741 *32-bit*) 12742 case $host in 12743 x86_64-*kfreebsd*-gnu) 12744 LD="${LD-ld} -m elf_i386_fbsd" 12745 ;; 12746 x86_64-*linux*) 12747 LD="${LD-ld} -m elf_i386" 12748 ;; 12749 ppc64-*linux*|powerpc64-*linux*) 12750 LD="${LD-ld} -m elf32ppclinux" 12751 ;; 12752 s390x-*linux*) 12753 LD="${LD-ld} -m elf_s390" 12754 ;; 12755 sparc64-*linux*) 12756 LD="${LD-ld} -m elf32_sparc" 12757 ;; 12758 esac 12759 ;; 12760 *64-bit*) 12761 case $host in 12762 x86_64-*kfreebsd*-gnu) 12763 LD="${LD-ld} -m elf_x86_64_fbsd" 12764 ;; 12765 x86_64-*linux*) 12766 LD="${LD-ld} -m elf_x86_64" 12767 ;; 12768 ppc*-*linux*|powerpc*-*linux*) 12769 LD="${LD-ld} -m elf64ppc" 12770 ;; 12771 s390*-*linux*|s390*-*tpf*) 12772 LD="${LD-ld} -m elf64_s390" 12773 ;; 12774 sparc*-*linux*) 12775 LD="${LD-ld} -m elf64_sparc" 12776 ;; 12777 esac 12778 ;; 12779 esac 12780 fi 12781 rm -rf conftest* 12782 ;; 12783 12784*-*-sco3.2v5*) 12785 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 12786 SAVE_CFLAGS="$CFLAGS" 12787 CFLAGS="$CFLAGS -belf" 12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 12789$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 12790if ${lt_cv_cc_needs_belf+:} false; then : 12791 $as_echo_n "(cached) " >&6 12792else 12793 ac_ext=c 12794ac_cpp='$CPP $CPPFLAGS' 12795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12797ac_compiler_gnu=$ac_cv_c_compiler_gnu 12798 12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12800/* end confdefs.h. */ 12801 12802int 12803main () 12804{ 12805 12806 ; 12807 return 0; 12808} 12809_ACEOF 12810if ac_fn_c_try_link "$LINENO"; then : 12811 lt_cv_cc_needs_belf=yes 12812else 12813 lt_cv_cc_needs_belf=no 12814fi 12815rm -f core conftest.err conftest.$ac_objext \ 12816 conftest$ac_exeext conftest.$ac_ext 12817 ac_ext=c 12818ac_cpp='$CPP $CPPFLAGS' 12819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12821ac_compiler_gnu=$ac_cv_c_compiler_gnu 12822 12823fi 12824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 12825$as_echo "$lt_cv_cc_needs_belf" >&6; } 12826 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 12827 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 12828 CFLAGS="$SAVE_CFLAGS" 12829 fi 12830 ;; 12831sparc*-*solaris*) 12832 # Find out which ABI we are using. 12833 echo 'int i;' > conftest.$ac_ext 12834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12835 (eval $ac_compile) 2>&5 12836 ac_status=$? 12837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12838 test $ac_status = 0; }; then 12839 case `/usr/bin/file conftest.o` in 12840 *64-bit*) 12841 case $lt_cv_prog_gnu_ld in 12842 yes*) LD="${LD-ld} -m elf64_sparc" ;; 12843 *) 12844 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 12845 LD="${LD-ld} -64" 12846 fi 12847 ;; 12848 esac 12849 ;; 12850 esac 12851 fi 12852 rm -rf conftest* 12853 ;; 12854esac 12855 12856need_locks="$enable_libtool_lock" 12857 12858if test -n "$ac_tool_prefix"; then 12859 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 12860set dummy ${ac_tool_prefix}mt; ac_word=$2 12861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12862$as_echo_n "checking for $ac_word... " >&6; } 12863if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 12864 $as_echo_n "(cached) " >&6 12865else 12866 if test -n "$MANIFEST_TOOL"; then 12867 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 12868else 12869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12870for as_dir in $PATH 12871do 12872 IFS=$as_save_IFS 12873 test -z "$as_dir" && as_dir=. 12874 for ac_exec_ext in '' $ac_executable_extensions; do 12875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12876 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 12877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12878 break 2 12879 fi 12880done 12881 done 12882IFS=$as_save_IFS 12883 12884fi 12885fi 12886MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 12887if test -n "$MANIFEST_TOOL"; then 12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 12889$as_echo "$MANIFEST_TOOL" >&6; } 12890else 12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12892$as_echo "no" >&6; } 12893fi 12894 12895 12896fi 12897if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 12898 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 12899 # Extract the first word of "mt", so it can be a program name with args. 12900set dummy mt; ac_word=$2 12901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12902$as_echo_n "checking for $ac_word... " >&6; } 12903if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 12904 $as_echo_n "(cached) " >&6 12905else 12906 if test -n "$ac_ct_MANIFEST_TOOL"; then 12907 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 12908else 12909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12910for as_dir in $PATH 12911do 12912 IFS=$as_save_IFS 12913 test -z "$as_dir" && as_dir=. 12914 for ac_exec_ext in '' $ac_executable_extensions; do 12915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12916 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 12917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12918 break 2 12919 fi 12920done 12921 done 12922IFS=$as_save_IFS 12923 12924fi 12925fi 12926ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 12927if test -n "$ac_ct_MANIFEST_TOOL"; then 12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 12929$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 12930else 12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12932$as_echo "no" >&6; } 12933fi 12934 12935 if test "x$ac_ct_MANIFEST_TOOL" = x; then 12936 MANIFEST_TOOL=":" 12937 else 12938 case $cross_compiling:$ac_tool_warned in 12939yes:) 12940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12942ac_tool_warned=yes ;; 12943esac 12944 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 12945 fi 12946else 12947 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 12948fi 12949 12950test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 12951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 12952$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 12953if ${lt_cv_path_mainfest_tool+:} false; then : 12954 $as_echo_n "(cached) " >&6 12955else 12956 lt_cv_path_mainfest_tool=no 12957 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 12958 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 12959 cat conftest.err >&5 12960 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 12961 lt_cv_path_mainfest_tool=yes 12962 fi 12963 rm -f conftest* 12964fi 12965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 12966$as_echo "$lt_cv_path_mainfest_tool" >&6; } 12967if test "x$lt_cv_path_mainfest_tool" != xyes; then 12968 MANIFEST_TOOL=: 12969fi 12970 12971 12972 12973 12974 12975 12976 case $host_os in 12977 rhapsody* | darwin*) 12978 if test -n "$ac_tool_prefix"; then 12979 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 12980set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 12981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12982$as_echo_n "checking for $ac_word... " >&6; } 12983if ${ac_cv_prog_DSYMUTIL+:} false; then : 12984 $as_echo_n "(cached) " >&6 12985else 12986 if test -n "$DSYMUTIL"; then 12987 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 12988else 12989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12990for as_dir in $PATH 12991do 12992 IFS=$as_save_IFS 12993 test -z "$as_dir" && as_dir=. 12994 for ac_exec_ext in '' $ac_executable_extensions; do 12995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12996 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 12997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12998 break 2 12999 fi 13000done 13001 done 13002IFS=$as_save_IFS 13003 13004fi 13005fi 13006DSYMUTIL=$ac_cv_prog_DSYMUTIL 13007if test -n "$DSYMUTIL"; then 13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13009$as_echo "$DSYMUTIL" >&6; } 13010else 13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13012$as_echo "no" >&6; } 13013fi 13014 13015 13016fi 13017if test -z "$ac_cv_prog_DSYMUTIL"; then 13018 ac_ct_DSYMUTIL=$DSYMUTIL 13019 # Extract the first word of "dsymutil", so it can be a program name with args. 13020set dummy dsymutil; ac_word=$2 13021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13022$as_echo_n "checking for $ac_word... " >&6; } 13023if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13024 $as_echo_n "(cached) " >&6 13025else 13026 if test -n "$ac_ct_DSYMUTIL"; then 13027 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13028else 13029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13030for as_dir in $PATH 13031do 13032 IFS=$as_save_IFS 13033 test -z "$as_dir" && as_dir=. 13034 for ac_exec_ext in '' $ac_executable_extensions; do 13035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13036 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13038 break 2 13039 fi 13040done 13041 done 13042IFS=$as_save_IFS 13043 13044fi 13045fi 13046ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13047if test -n "$ac_ct_DSYMUTIL"; then 13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13049$as_echo "$ac_ct_DSYMUTIL" >&6; } 13050else 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13052$as_echo "no" >&6; } 13053fi 13054 13055 if test "x$ac_ct_DSYMUTIL" = x; then 13056 DSYMUTIL=":" 13057 else 13058 case $cross_compiling:$ac_tool_warned in 13059yes:) 13060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13062ac_tool_warned=yes ;; 13063esac 13064 DSYMUTIL=$ac_ct_DSYMUTIL 13065 fi 13066else 13067 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13068fi 13069 13070 if test -n "$ac_tool_prefix"; then 13071 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13072set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13074$as_echo_n "checking for $ac_word... " >&6; } 13075if ${ac_cv_prog_NMEDIT+:} false; then : 13076 $as_echo_n "(cached) " >&6 13077else 13078 if test -n "$NMEDIT"; then 13079 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13080else 13081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13082for as_dir in $PATH 13083do 13084 IFS=$as_save_IFS 13085 test -z "$as_dir" && as_dir=. 13086 for ac_exec_ext in '' $ac_executable_extensions; do 13087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13088 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13090 break 2 13091 fi 13092done 13093 done 13094IFS=$as_save_IFS 13095 13096fi 13097fi 13098NMEDIT=$ac_cv_prog_NMEDIT 13099if test -n "$NMEDIT"; then 13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13101$as_echo "$NMEDIT" >&6; } 13102else 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13104$as_echo "no" >&6; } 13105fi 13106 13107 13108fi 13109if test -z "$ac_cv_prog_NMEDIT"; then 13110 ac_ct_NMEDIT=$NMEDIT 13111 # Extract the first word of "nmedit", so it can be a program name with args. 13112set dummy nmedit; ac_word=$2 13113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13114$as_echo_n "checking for $ac_word... " >&6; } 13115if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13116 $as_echo_n "(cached) " >&6 13117else 13118 if test -n "$ac_ct_NMEDIT"; then 13119 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13120else 13121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13122for as_dir in $PATH 13123do 13124 IFS=$as_save_IFS 13125 test -z "$as_dir" && as_dir=. 13126 for ac_exec_ext in '' $ac_executable_extensions; do 13127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13128 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13130 break 2 13131 fi 13132done 13133 done 13134IFS=$as_save_IFS 13135 13136fi 13137fi 13138ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13139if test -n "$ac_ct_NMEDIT"; then 13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13141$as_echo "$ac_ct_NMEDIT" >&6; } 13142else 13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13144$as_echo "no" >&6; } 13145fi 13146 13147 if test "x$ac_ct_NMEDIT" = x; then 13148 NMEDIT=":" 13149 else 13150 case $cross_compiling:$ac_tool_warned in 13151yes:) 13152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13154ac_tool_warned=yes ;; 13155esac 13156 NMEDIT=$ac_ct_NMEDIT 13157 fi 13158else 13159 NMEDIT="$ac_cv_prog_NMEDIT" 13160fi 13161 13162 if test -n "$ac_tool_prefix"; then 13163 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13164set dummy ${ac_tool_prefix}lipo; ac_word=$2 13165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13166$as_echo_n "checking for $ac_word... " >&6; } 13167if ${ac_cv_prog_LIPO+:} false; then : 13168 $as_echo_n "(cached) " >&6 13169else 13170 if test -n "$LIPO"; then 13171 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13172else 13173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13174for as_dir in $PATH 13175do 13176 IFS=$as_save_IFS 13177 test -z "$as_dir" && as_dir=. 13178 for ac_exec_ext in '' $ac_executable_extensions; do 13179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13180 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13182 break 2 13183 fi 13184done 13185 done 13186IFS=$as_save_IFS 13187 13188fi 13189fi 13190LIPO=$ac_cv_prog_LIPO 13191if test -n "$LIPO"; then 13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13193$as_echo "$LIPO" >&6; } 13194else 13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13196$as_echo "no" >&6; } 13197fi 13198 13199 13200fi 13201if test -z "$ac_cv_prog_LIPO"; then 13202 ac_ct_LIPO=$LIPO 13203 # Extract the first word of "lipo", so it can be a program name with args. 13204set dummy lipo; ac_word=$2 13205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13206$as_echo_n "checking for $ac_word... " >&6; } 13207if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13208 $as_echo_n "(cached) " >&6 13209else 13210 if test -n "$ac_ct_LIPO"; then 13211 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13212else 13213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13214for as_dir in $PATH 13215do 13216 IFS=$as_save_IFS 13217 test -z "$as_dir" && as_dir=. 13218 for ac_exec_ext in '' $ac_executable_extensions; do 13219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13220 ac_cv_prog_ac_ct_LIPO="lipo" 13221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13222 break 2 13223 fi 13224done 13225 done 13226IFS=$as_save_IFS 13227 13228fi 13229fi 13230ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13231if test -n "$ac_ct_LIPO"; then 13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13233$as_echo "$ac_ct_LIPO" >&6; } 13234else 13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13236$as_echo "no" >&6; } 13237fi 13238 13239 if test "x$ac_ct_LIPO" = x; then 13240 LIPO=":" 13241 else 13242 case $cross_compiling:$ac_tool_warned in 13243yes:) 13244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13246ac_tool_warned=yes ;; 13247esac 13248 LIPO=$ac_ct_LIPO 13249 fi 13250else 13251 LIPO="$ac_cv_prog_LIPO" 13252fi 13253 13254 if test -n "$ac_tool_prefix"; then 13255 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13256set dummy ${ac_tool_prefix}otool; ac_word=$2 13257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13258$as_echo_n "checking for $ac_word... " >&6; } 13259if ${ac_cv_prog_OTOOL+:} false; then : 13260 $as_echo_n "(cached) " >&6 13261else 13262 if test -n "$OTOOL"; then 13263 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13264else 13265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13266for as_dir in $PATH 13267do 13268 IFS=$as_save_IFS 13269 test -z "$as_dir" && as_dir=. 13270 for ac_exec_ext in '' $ac_executable_extensions; do 13271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13272 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13274 break 2 13275 fi 13276done 13277 done 13278IFS=$as_save_IFS 13279 13280fi 13281fi 13282OTOOL=$ac_cv_prog_OTOOL 13283if test -n "$OTOOL"; then 13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13285$as_echo "$OTOOL" >&6; } 13286else 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13288$as_echo "no" >&6; } 13289fi 13290 13291 13292fi 13293if test -z "$ac_cv_prog_OTOOL"; then 13294 ac_ct_OTOOL=$OTOOL 13295 # Extract the first word of "otool", so it can be a program name with args. 13296set dummy otool; ac_word=$2 13297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13298$as_echo_n "checking for $ac_word... " >&6; } 13299if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13300 $as_echo_n "(cached) " >&6 13301else 13302 if test -n "$ac_ct_OTOOL"; then 13303 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13304else 13305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13306for as_dir in $PATH 13307do 13308 IFS=$as_save_IFS 13309 test -z "$as_dir" && as_dir=. 13310 for ac_exec_ext in '' $ac_executable_extensions; do 13311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13312 ac_cv_prog_ac_ct_OTOOL="otool" 13313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13314 break 2 13315 fi 13316done 13317 done 13318IFS=$as_save_IFS 13319 13320fi 13321fi 13322ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13323if test -n "$ac_ct_OTOOL"; then 13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13325$as_echo "$ac_ct_OTOOL" >&6; } 13326else 13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13328$as_echo "no" >&6; } 13329fi 13330 13331 if test "x$ac_ct_OTOOL" = x; then 13332 OTOOL=":" 13333 else 13334 case $cross_compiling:$ac_tool_warned in 13335yes:) 13336{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13338ac_tool_warned=yes ;; 13339esac 13340 OTOOL=$ac_ct_OTOOL 13341 fi 13342else 13343 OTOOL="$ac_cv_prog_OTOOL" 13344fi 13345 13346 if test -n "$ac_tool_prefix"; then 13347 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13348set dummy ${ac_tool_prefix}otool64; ac_word=$2 13349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13350$as_echo_n "checking for $ac_word... " >&6; } 13351if ${ac_cv_prog_OTOOL64+:} false; then : 13352 $as_echo_n "(cached) " >&6 13353else 13354 if test -n "$OTOOL64"; then 13355 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13356else 13357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13358for as_dir in $PATH 13359do 13360 IFS=$as_save_IFS 13361 test -z "$as_dir" && as_dir=. 13362 for ac_exec_ext in '' $ac_executable_extensions; do 13363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13364 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13366 break 2 13367 fi 13368done 13369 done 13370IFS=$as_save_IFS 13371 13372fi 13373fi 13374OTOOL64=$ac_cv_prog_OTOOL64 13375if test -n "$OTOOL64"; then 13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13377$as_echo "$OTOOL64" >&6; } 13378else 13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13380$as_echo "no" >&6; } 13381fi 13382 13383 13384fi 13385if test -z "$ac_cv_prog_OTOOL64"; then 13386 ac_ct_OTOOL64=$OTOOL64 13387 # Extract the first word of "otool64", so it can be a program name with args. 13388set dummy otool64; ac_word=$2 13389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13390$as_echo_n "checking for $ac_word... " >&6; } 13391if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13392 $as_echo_n "(cached) " >&6 13393else 13394 if test -n "$ac_ct_OTOOL64"; then 13395 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13396else 13397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13398for as_dir in $PATH 13399do 13400 IFS=$as_save_IFS 13401 test -z "$as_dir" && as_dir=. 13402 for ac_exec_ext in '' $ac_executable_extensions; do 13403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13404 ac_cv_prog_ac_ct_OTOOL64="otool64" 13405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13406 break 2 13407 fi 13408done 13409 done 13410IFS=$as_save_IFS 13411 13412fi 13413fi 13414ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13415if test -n "$ac_ct_OTOOL64"; then 13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13417$as_echo "$ac_ct_OTOOL64" >&6; } 13418else 13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13420$as_echo "no" >&6; } 13421fi 13422 13423 if test "x$ac_ct_OTOOL64" = x; then 13424 OTOOL64=":" 13425 else 13426 case $cross_compiling:$ac_tool_warned in 13427yes:) 13428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13430ac_tool_warned=yes ;; 13431esac 13432 OTOOL64=$ac_ct_OTOOL64 13433 fi 13434else 13435 OTOOL64="$ac_cv_prog_OTOOL64" 13436fi 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13465$as_echo_n "checking for -single_module linker flag... " >&6; } 13466if ${lt_cv_apple_cc_single_mod+:} false; then : 13467 $as_echo_n "(cached) " >&6 13468else 13469 lt_cv_apple_cc_single_mod=no 13470 if test -z "${LT_MULTI_MODULE}"; then 13471 # By default we will add the -single_module flag. You can override 13472 # by either setting the environment variable LT_MULTI_MODULE 13473 # non-empty at configure time, or by adding -multi_module to the 13474 # link flags. 13475 rm -rf libconftest.dylib* 13476 echo "int foo(void){return 1;}" > conftest.c 13477 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13478-dynamiclib -Wl,-single_module conftest.c" >&5 13479 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13480 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 13481 _lt_result=$? 13482 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 13483 lt_cv_apple_cc_single_mod=yes 13484 else 13485 cat conftest.err >&5 13486 fi 13487 rm -rf libconftest.dylib* 13488 rm -f conftest.* 13489 fi 13490fi 13491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 13492$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 13494$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 13495if ${lt_cv_ld_exported_symbols_list+:} false; then : 13496 $as_echo_n "(cached) " >&6 13497else 13498 lt_cv_ld_exported_symbols_list=no 13499 save_LDFLAGS=$LDFLAGS 13500 echo "_main" > conftest.sym 13501 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 13502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13503/* end confdefs.h. */ 13504 13505int 13506main () 13507{ 13508 13509 ; 13510 return 0; 13511} 13512_ACEOF 13513if ac_fn_c_try_link "$LINENO"; then : 13514 lt_cv_ld_exported_symbols_list=yes 13515else 13516 lt_cv_ld_exported_symbols_list=no 13517fi 13518rm -f core conftest.err conftest.$ac_objext \ 13519 conftest$ac_exeext conftest.$ac_ext 13520 LDFLAGS="$save_LDFLAGS" 13521 13522fi 13523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 13524$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 13526$as_echo_n "checking for -force_load linker flag... " >&6; } 13527if ${lt_cv_ld_force_load+:} false; then : 13528 $as_echo_n "(cached) " >&6 13529else 13530 lt_cv_ld_force_load=no 13531 cat > conftest.c << _LT_EOF 13532int forced_loaded() { return 2;} 13533_LT_EOF 13534 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 13535 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 13536 echo "$AR cru libconftest.a conftest.o" >&5 13537 $AR cru libconftest.a conftest.o 2>&5 13538 echo "$RANLIB libconftest.a" >&5 13539 $RANLIB libconftest.a 2>&5 13540 cat > conftest.c << _LT_EOF 13541int main() { return 0;} 13542_LT_EOF 13543 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 13544 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 13545 _lt_result=$? 13546 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 13547 lt_cv_ld_force_load=yes 13548 else 13549 cat conftest.err >&5 13550 fi 13551 rm -f conftest.err libconftest.a conftest conftest.c 13552 rm -rf conftest.dSYM 13553 13554fi 13555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 13556$as_echo "$lt_cv_ld_force_load" >&6; } 13557 case $host_os in 13558 rhapsody* | darwin1.[012]) 13559 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 13560 darwin1.*) 13561 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13562 darwin*) # darwin 5.x on 13563 # if running on 10.5 or later, the deployment target defaults 13564 # to the OS version, if on x86, and 10.4, the deployment 13565 # target defaults to 10.4. Don't you love it? 13566 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 13567 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 13568 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13569 10.[012]*) 13570 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13571 10.*) 13572 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13573 esac 13574 ;; 13575 esac 13576 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 13577 _lt_dar_single_mod='$single_module' 13578 fi 13579 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 13580 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 13581 else 13582 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 13583 fi 13584 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 13585 _lt_dsymutil='~$DSYMUTIL $lib || :' 13586 else 13587 _lt_dsymutil= 13588 fi 13589 ;; 13590 esac 13591 13592for ac_header in dlfcn.h 13593do : 13594 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 13595" 13596if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13597 cat >>confdefs.h <<_ACEOF 13598#define HAVE_DLFCN_H 1 13599_ACEOF 13600 13601fi 13602 13603done 13604 13605 13606 13607 13608 13609# Set options 13610 13611 13612 13613 enable_dlopen=no 13614 13615 13616 enable_win32_dll=no 13617 13618 13619 # Check whether --enable-shared was given. 13620if test "${enable_shared+set}" = set; then : 13621 enableval=$enable_shared; p=${PACKAGE-default} 13622 case $enableval in 13623 yes) enable_shared=yes ;; 13624 no) enable_shared=no ;; 13625 *) 13626 enable_shared=no 13627 # Look at the argument we got. We use all the common list separators. 13628 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13629 for pkg in $enableval; do 13630 IFS="$lt_save_ifs" 13631 if test "X$pkg" = "X$p"; then 13632 enable_shared=yes 13633 fi 13634 done 13635 IFS="$lt_save_ifs" 13636 ;; 13637 esac 13638else 13639 enable_shared=yes 13640fi 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652# Check whether --with-pic was given. 13653if test "${with_pic+set}" = set; then : 13654 withval=$with_pic; pic_mode="$withval" 13655else 13656 pic_mode=default 13657fi 13658 13659 13660test -z "$pic_mode" && pic_mode=default 13661 13662 13663 13664 13665 13666 13667 13668 # Check whether --enable-fast-install was given. 13669if test "${enable_fast_install+set}" = set; then : 13670 enableval=$enable_fast_install; p=${PACKAGE-default} 13671 case $enableval in 13672 yes) enable_fast_install=yes ;; 13673 no) enable_fast_install=no ;; 13674 *) 13675 enable_fast_install=no 13676 # Look at the argument we got. We use all the common list separators. 13677 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13678 for pkg in $enableval; do 13679 IFS="$lt_save_ifs" 13680 if test "X$pkg" = "X$p"; then 13681 enable_fast_install=yes 13682 fi 13683 done 13684 IFS="$lt_save_ifs" 13685 ;; 13686 esac 13687else 13688 enable_fast_install=yes 13689fi 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701# This can be used to rebuild libtool when needed 13702LIBTOOL_DEPS="$ltmain" 13703 13704# Always use our own libtool. 13705LIBTOOL='$(SHELL) $(top_builddir)/libtool' 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732test -z "$LN_S" && LN_S="ln -s" 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747if test -n "${ZSH_VERSION+set}" ; then 13748 setopt NO_GLOB_SUBST 13749fi 13750 13751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 13752$as_echo_n "checking for objdir... " >&6; } 13753if ${lt_cv_objdir+:} false; then : 13754 $as_echo_n "(cached) " >&6 13755else 13756 rm -f .libs 2>/dev/null 13757mkdir .libs 2>/dev/null 13758if test -d .libs; then 13759 lt_cv_objdir=.libs 13760else 13761 # MS-DOS does not allow filenames that begin with a dot. 13762 lt_cv_objdir=_libs 13763fi 13764rmdir .libs 2>/dev/null 13765fi 13766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 13767$as_echo "$lt_cv_objdir" >&6; } 13768objdir=$lt_cv_objdir 13769 13770 13771 13772 13773 13774cat >>confdefs.h <<_ACEOF 13775#define LT_OBJDIR "$lt_cv_objdir/" 13776_ACEOF 13777 13778 13779 13780 13781case $host_os in 13782aix3*) 13783 # AIX sometimes has problems with the GCC collect2 program. For some 13784 # reason, if we set the COLLECT_NAMES environment variable, the problems 13785 # vanish in a puff of smoke. 13786 if test "X${COLLECT_NAMES+set}" != Xset; then 13787 COLLECT_NAMES= 13788 export COLLECT_NAMES 13789 fi 13790 ;; 13791esac 13792 13793# Global variables: 13794ofile=libtool 13795can_build_shared=yes 13796 13797# All known linkers require a `.a' archive for static linking (except MSVC, 13798# which needs '.lib'). 13799libext=a 13800 13801with_gnu_ld="$lt_cv_prog_gnu_ld" 13802 13803old_CC="$CC" 13804old_CFLAGS="$CFLAGS" 13805 13806# Set sane defaults for various variables 13807test -z "$CC" && CC=cc 13808test -z "$LTCC" && LTCC=$CC 13809test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 13810test -z "$LD" && LD=ld 13811test -z "$ac_objext" && ac_objext=o 13812 13813for cc_temp in $compiler""; do 13814 case $cc_temp in 13815 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13816 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13817 \-*) ;; 13818 *) break;; 13819 esac 13820done 13821cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13822 13823 13824# Only perform the check for file, if the check method requires it 13825test -z "$MAGIC_CMD" && MAGIC_CMD=file 13826case $deplibs_check_method in 13827file_magic*) 13828 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 13830$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 13831if ${lt_cv_path_MAGIC_CMD+:} false; then : 13832 $as_echo_n "(cached) " >&6 13833else 13834 case $MAGIC_CMD in 13835[\\/*] | ?:[\\/]*) 13836 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 13837 ;; 13838*) 13839 lt_save_MAGIC_CMD="$MAGIC_CMD" 13840 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13841 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 13842 for ac_dir in $ac_dummy; do 13843 IFS="$lt_save_ifs" 13844 test -z "$ac_dir" && ac_dir=. 13845 if test -f $ac_dir/${ac_tool_prefix}file; then 13846 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 13847 if test -n "$file_magic_test_file"; then 13848 case $deplibs_check_method in 13849 "file_magic "*) 13850 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 13851 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 13852 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 13853 $EGREP "$file_magic_regex" > /dev/null; then 13854 : 13855 else 13856 cat <<_LT_EOF 1>&2 13857 13858*** Warning: the command libtool uses to detect shared libraries, 13859*** $file_magic_cmd, produces output that libtool cannot recognize. 13860*** The result is that libtool may fail to recognize shared libraries 13861*** as such. This will affect the creation of libtool libraries that 13862*** depend on shared libraries, but programs linked with such libtool 13863*** libraries will work regardless of this problem. Nevertheless, you 13864*** may want to report the problem to your system manager and/or to 13865*** bug-libtool@gnu.org 13866 13867_LT_EOF 13868 fi ;; 13869 esac 13870 fi 13871 break 13872 fi 13873 done 13874 IFS="$lt_save_ifs" 13875 MAGIC_CMD="$lt_save_MAGIC_CMD" 13876 ;; 13877esac 13878fi 13879 13880MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 13881if test -n "$MAGIC_CMD"; then 13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 13883$as_echo "$MAGIC_CMD" >&6; } 13884else 13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13886$as_echo "no" >&6; } 13887fi 13888 13889 13890 13891 13892 13893if test -z "$lt_cv_path_MAGIC_CMD"; then 13894 if test -n "$ac_tool_prefix"; then 13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 13896$as_echo_n "checking for file... " >&6; } 13897if ${lt_cv_path_MAGIC_CMD+:} false; then : 13898 $as_echo_n "(cached) " >&6 13899else 13900 case $MAGIC_CMD in 13901[\\/*] | ?:[\\/]*) 13902 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 13903 ;; 13904*) 13905 lt_save_MAGIC_CMD="$MAGIC_CMD" 13906 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13907 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 13908 for ac_dir in $ac_dummy; do 13909 IFS="$lt_save_ifs" 13910 test -z "$ac_dir" && ac_dir=. 13911 if test -f $ac_dir/file; then 13912 lt_cv_path_MAGIC_CMD="$ac_dir/file" 13913 if test -n "$file_magic_test_file"; then 13914 case $deplibs_check_method in 13915 "file_magic "*) 13916 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 13917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 13918 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 13919 $EGREP "$file_magic_regex" > /dev/null; then 13920 : 13921 else 13922 cat <<_LT_EOF 1>&2 13923 13924*** Warning: the command libtool uses to detect shared libraries, 13925*** $file_magic_cmd, produces output that libtool cannot recognize. 13926*** The result is that libtool may fail to recognize shared libraries 13927*** as such. This will affect the creation of libtool libraries that 13928*** depend on shared libraries, but programs linked with such libtool 13929*** libraries will work regardless of this problem. Nevertheless, you 13930*** may want to report the problem to your system manager and/or to 13931*** bug-libtool@gnu.org 13932 13933_LT_EOF 13934 fi ;; 13935 esac 13936 fi 13937 break 13938 fi 13939 done 13940 IFS="$lt_save_ifs" 13941 MAGIC_CMD="$lt_save_MAGIC_CMD" 13942 ;; 13943esac 13944fi 13945 13946MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 13947if test -n "$MAGIC_CMD"; then 13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 13949$as_echo "$MAGIC_CMD" >&6; } 13950else 13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13952$as_echo "no" >&6; } 13953fi 13954 13955 13956 else 13957 MAGIC_CMD=: 13958 fi 13959fi 13960 13961 fi 13962 ;; 13963esac 13964 13965# Use C for the default configuration in the libtool script 13966 13967lt_save_CC="$CC" 13968ac_ext=c 13969ac_cpp='$CPP $CPPFLAGS' 13970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13972ac_compiler_gnu=$ac_cv_c_compiler_gnu 13973 13974 13975# Source file extension for C test sources. 13976ac_ext=c 13977 13978# Object file extension for compiled C test sources. 13979objext=o 13980objext=$objext 13981 13982# Code to be used in simple compile tests 13983lt_simple_compile_test_code="int some_variable = 0;" 13984 13985# Code to be used in simple link tests 13986lt_simple_link_test_code='int main(){return(0);}' 13987 13988 13989 13990 13991 13992 13993 13994# If no C compiler was specified, use CC. 13995LTCC=${LTCC-"$CC"} 13996 13997# If no C compiler flags were specified, use CFLAGS. 13998LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13999 14000# Allow CC to be a program name with arguments. 14001compiler=$CC 14002 14003# Save the default compiler, since it gets overwritten when the other 14004# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14005compiler_DEFAULT=$CC 14006 14007# save warnings/boilerplate of simple test code 14008ac_outfile=conftest.$ac_objext 14009echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14010eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14011_lt_compiler_boilerplate=`cat conftest.err` 14012$RM conftest* 14013 14014ac_outfile=conftest.$ac_objext 14015echo "$lt_simple_link_test_code" >conftest.$ac_ext 14016eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14017_lt_linker_boilerplate=`cat conftest.err` 14018$RM -r conftest* 14019 14020 14021if test -n "$compiler"; then 14022 14023lt_prog_compiler_no_builtin_flag= 14024 14025if test "$GCC" = yes; then 14026 case $cc_basename in 14027 nvcc*) 14028 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14029 *) 14030 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14031 esac 14032 14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14034$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14035if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14036 $as_echo_n "(cached) " >&6 14037else 14038 lt_cv_prog_compiler_rtti_exceptions=no 14039 ac_outfile=conftest.$ac_objext 14040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14041 lt_compiler_flag="-fno-rtti -fno-exceptions" 14042 # Insert the option either (1) after the last *FLAGS variable, or 14043 # (2) before a word containing "conftest.", or (3) at the end. 14044 # Note that $ac_compile itself does not contain backslashes and begins 14045 # with a dollar sign (not a hyphen), so the echo should work correctly. 14046 # The option is referenced via a variable to avoid confusing sed. 14047 lt_compile=`echo "$ac_compile" | $SED \ 14048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14050 -e 's:$: $lt_compiler_flag:'` 14051 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14052 (eval "$lt_compile" 2>conftest.err) 14053 ac_status=$? 14054 cat conftest.err >&5 14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14056 if (exit $ac_status) && test -s "$ac_outfile"; then 14057 # The compiler can only warn and ignore the option if not recognized 14058 # So say no if there are warnings other than the usual output. 14059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14061 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14062 lt_cv_prog_compiler_rtti_exceptions=yes 14063 fi 14064 fi 14065 $RM conftest* 14066 14067fi 14068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14069$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14070 14071if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14072 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14073else 14074 : 14075fi 14076 14077fi 14078 14079 14080 14081 14082 14083 14084 lt_prog_compiler_wl= 14085lt_prog_compiler_pic= 14086lt_prog_compiler_static= 14087 14088 14089 if test "$GCC" = yes; then 14090 lt_prog_compiler_wl='-Wl,' 14091 lt_prog_compiler_static='-static' 14092 14093 case $host_os in 14094 aix*) 14095 # All AIX code is PIC. 14096 if test "$host_cpu" = ia64; then 14097 # AIX 5 now supports IA64 processor 14098 lt_prog_compiler_static='-Bstatic' 14099 fi 14100 ;; 14101 14102 amigaos*) 14103 case $host_cpu in 14104 powerpc) 14105 # see comment about AmigaOS4 .so support 14106 lt_prog_compiler_pic='-fPIC' 14107 ;; 14108 m68k) 14109 # FIXME: we need at least 68020 code to build shared libraries, but 14110 # adding the `-m68020' flag to GCC prevents building anything better, 14111 # like `-m68040'. 14112 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14113 ;; 14114 esac 14115 ;; 14116 14117 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14118 # PIC is the default for these OSes. 14119 ;; 14120 14121 mingw* | cygwin* | pw32* | os2* | cegcc*) 14122 # This hack is so that the source file can tell whether it is being 14123 # built for inclusion in a dll (and should export symbols for example). 14124 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14125 # (--disable-auto-import) libraries 14126 lt_prog_compiler_pic='-DDLL_EXPORT' 14127 ;; 14128 14129 darwin* | rhapsody*) 14130 # PIC is the default on this platform 14131 # Common symbols not allowed in MH_DYLIB files 14132 lt_prog_compiler_pic='-fno-common' 14133 ;; 14134 14135 haiku*) 14136 # PIC is the default for Haiku. 14137 # The "-static" flag exists, but is broken. 14138 lt_prog_compiler_static= 14139 ;; 14140 14141 hpux*) 14142 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14143 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14144 # sets the default TLS model and affects inlining. 14145 case $host_cpu in 14146 hppa*64*) 14147 # +Z the default 14148 ;; 14149 *) 14150 lt_prog_compiler_pic='-fPIC' 14151 ;; 14152 esac 14153 ;; 14154 14155 interix[3-9]*) 14156 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14157 # Instead, we relocate shared libraries at runtime. 14158 ;; 14159 14160 msdosdjgpp*) 14161 # Just because we use GCC doesn't mean we suddenly get shared libraries 14162 # on systems that don't support them. 14163 lt_prog_compiler_can_build_shared=no 14164 enable_shared=no 14165 ;; 14166 14167 *nto* | *qnx*) 14168 # QNX uses GNU C++, but need to define -shared option too, otherwise 14169 # it will coredump. 14170 lt_prog_compiler_pic='-fPIC -shared' 14171 ;; 14172 14173 sysv4*MP*) 14174 if test -d /usr/nec; then 14175 lt_prog_compiler_pic=-Kconform_pic 14176 fi 14177 ;; 14178 14179 *) 14180 lt_prog_compiler_pic='-fPIC' 14181 ;; 14182 esac 14183 14184 case $cc_basename in 14185 nvcc*) # Cuda Compiler Driver 2.2 14186 lt_prog_compiler_wl='-Xlinker ' 14187 lt_prog_compiler_pic='-Xcompiler -fPIC' 14188 ;; 14189 esac 14190 else 14191 # PORTME Check for flag to pass linker flags through the system compiler. 14192 case $host_os in 14193 aix*) 14194 lt_prog_compiler_wl='-Wl,' 14195 if test "$host_cpu" = ia64; then 14196 # AIX 5 now supports IA64 processor 14197 lt_prog_compiler_static='-Bstatic' 14198 else 14199 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14200 fi 14201 ;; 14202 14203 mingw* | cygwin* | pw32* | os2* | cegcc*) 14204 # This hack is so that the source file can tell whether it is being 14205 # built for inclusion in a dll (and should export symbols for example). 14206 lt_prog_compiler_pic='-DDLL_EXPORT' 14207 ;; 14208 14209 hpux9* | hpux10* | hpux11*) 14210 lt_prog_compiler_wl='-Wl,' 14211 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14212 # not for PA HP-UX. 14213 case $host_cpu in 14214 hppa*64*|ia64*) 14215 # +Z the default 14216 ;; 14217 *) 14218 lt_prog_compiler_pic='+Z' 14219 ;; 14220 esac 14221 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14222 lt_prog_compiler_static='${wl}-a ${wl}archive' 14223 ;; 14224 14225 irix5* | irix6* | nonstopux*) 14226 lt_prog_compiler_wl='-Wl,' 14227 # PIC (with -KPIC) is the default. 14228 lt_prog_compiler_static='-non_shared' 14229 ;; 14230 14231 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14232 case $cc_basename in 14233 # old Intel for x86_64 which still supported -KPIC. 14234 ecc*) 14235 lt_prog_compiler_wl='-Wl,' 14236 lt_prog_compiler_pic='-KPIC' 14237 lt_prog_compiler_static='-static' 14238 ;; 14239 # icc used to be incompatible with GCC. 14240 # ICC 10 doesn't accept -KPIC any more. 14241 icc* | ifort*) 14242 lt_prog_compiler_wl='-Wl,' 14243 lt_prog_compiler_pic='-fPIC' 14244 lt_prog_compiler_static='-static' 14245 ;; 14246 # Lahey Fortran 8.1. 14247 lf95*) 14248 lt_prog_compiler_wl='-Wl,' 14249 lt_prog_compiler_pic='--shared' 14250 lt_prog_compiler_static='--static' 14251 ;; 14252 nagfor*) 14253 # NAG Fortran compiler 14254 lt_prog_compiler_wl='-Wl,-Wl,,' 14255 lt_prog_compiler_pic='-PIC' 14256 lt_prog_compiler_static='-Bstatic' 14257 ;; 14258 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14259 # Portland Group compilers (*not* the Pentium gcc compiler, 14260 # which looks to be a dead project) 14261 lt_prog_compiler_wl='-Wl,' 14262 lt_prog_compiler_pic='-fpic' 14263 lt_prog_compiler_static='-Bstatic' 14264 ;; 14265 ccc*) 14266 lt_prog_compiler_wl='-Wl,' 14267 # All Alpha code is PIC. 14268 lt_prog_compiler_static='-non_shared' 14269 ;; 14270 xl* | bgxl* | bgf* | mpixl*) 14271 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14272 lt_prog_compiler_wl='-Wl,' 14273 lt_prog_compiler_pic='-qpic' 14274 lt_prog_compiler_static='-qstaticlink' 14275 ;; 14276 *) 14277 case `$CC -V 2>&1 | sed 5q` in 14278 *Sun\ F* | *Sun*Fortran*) 14279 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14280 lt_prog_compiler_pic='-KPIC' 14281 lt_prog_compiler_static='-Bstatic' 14282 lt_prog_compiler_wl='' 14283 ;; 14284 *Sun\ C*) 14285 # Sun C 5.9 14286 lt_prog_compiler_pic='-KPIC' 14287 lt_prog_compiler_static='-Bstatic' 14288 lt_prog_compiler_wl='-Wl,' 14289 ;; 14290 esac 14291 ;; 14292 esac 14293 ;; 14294 14295 newsos6) 14296 lt_prog_compiler_pic='-KPIC' 14297 lt_prog_compiler_static='-Bstatic' 14298 ;; 14299 14300 *nto* | *qnx*) 14301 # QNX uses GNU C++, but need to define -shared option too, otherwise 14302 # it will coredump. 14303 lt_prog_compiler_pic='-fPIC -shared' 14304 ;; 14305 14306 osf3* | osf4* | osf5*) 14307 lt_prog_compiler_wl='-Wl,' 14308 # All OSF/1 code is PIC. 14309 lt_prog_compiler_static='-non_shared' 14310 ;; 14311 14312 rdos*) 14313 lt_prog_compiler_static='-non_shared' 14314 ;; 14315 14316 solaris*) 14317 lt_prog_compiler_pic='-KPIC' 14318 lt_prog_compiler_static='-Bstatic' 14319 case $cc_basename in 14320 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14321 lt_prog_compiler_wl='-Qoption ld ';; 14322 *) 14323 lt_prog_compiler_wl='-Wl,';; 14324 esac 14325 ;; 14326 14327 sunos4*) 14328 lt_prog_compiler_wl='-Qoption ld ' 14329 lt_prog_compiler_pic='-PIC' 14330 lt_prog_compiler_static='-Bstatic' 14331 ;; 14332 14333 sysv4 | sysv4.2uw2* | sysv4.3*) 14334 lt_prog_compiler_wl='-Wl,' 14335 lt_prog_compiler_pic='-KPIC' 14336 lt_prog_compiler_static='-Bstatic' 14337 ;; 14338 14339 sysv4*MP*) 14340 if test -d /usr/nec ;then 14341 lt_prog_compiler_pic='-Kconform_pic' 14342 lt_prog_compiler_static='-Bstatic' 14343 fi 14344 ;; 14345 14346 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14347 lt_prog_compiler_wl='-Wl,' 14348 lt_prog_compiler_pic='-KPIC' 14349 lt_prog_compiler_static='-Bstatic' 14350 ;; 14351 14352 unicos*) 14353 lt_prog_compiler_wl='-Wl,' 14354 lt_prog_compiler_can_build_shared=no 14355 ;; 14356 14357 uts4*) 14358 lt_prog_compiler_pic='-pic' 14359 lt_prog_compiler_static='-Bstatic' 14360 ;; 14361 14362 *) 14363 lt_prog_compiler_can_build_shared=no 14364 ;; 14365 esac 14366 fi 14367 14368case $host_os in 14369 # For platforms which do not support PIC, -DPIC is meaningless: 14370 *djgpp*) 14371 lt_prog_compiler_pic= 14372 ;; 14373 *) 14374 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 14375 ;; 14376esac 14377 14378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14379$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14380if ${lt_cv_prog_compiler_pic+:} false; then : 14381 $as_echo_n "(cached) " >&6 14382else 14383 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 14384fi 14385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 14386$as_echo "$lt_cv_prog_compiler_pic" >&6; } 14387lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 14388 14389# 14390# Check to make sure the PIC flag actually works. 14391# 14392if test -n "$lt_prog_compiler_pic"; then 14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 14394$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 14395if ${lt_cv_prog_compiler_pic_works+:} false; then : 14396 $as_echo_n "(cached) " >&6 14397else 14398 lt_cv_prog_compiler_pic_works=no 14399 ac_outfile=conftest.$ac_objext 14400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14401 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 14402 # Insert the option either (1) after the last *FLAGS variable, or 14403 # (2) before a word containing "conftest.", or (3) at the end. 14404 # Note that $ac_compile itself does not contain backslashes and begins 14405 # with a dollar sign (not a hyphen), so the echo should work correctly. 14406 # The option is referenced via a variable to avoid confusing sed. 14407 lt_compile=`echo "$ac_compile" | $SED \ 14408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14410 -e 's:$: $lt_compiler_flag:'` 14411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14412 (eval "$lt_compile" 2>conftest.err) 14413 ac_status=$? 14414 cat conftest.err >&5 14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14416 if (exit $ac_status) && test -s "$ac_outfile"; then 14417 # The compiler can only warn and ignore the option if not recognized 14418 # So say no if there are warnings other than the usual output. 14419 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14421 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14422 lt_cv_prog_compiler_pic_works=yes 14423 fi 14424 fi 14425 $RM conftest* 14426 14427fi 14428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 14429$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 14430 14431if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 14432 case $lt_prog_compiler_pic in 14433 "" | " "*) ;; 14434 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 14435 esac 14436else 14437 lt_prog_compiler_pic= 14438 lt_prog_compiler_can_build_shared=no 14439fi 14440 14441fi 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453# 14454# Check to make sure the static flag actually works. 14455# 14456wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 14457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14458$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14459if ${lt_cv_prog_compiler_static_works+:} false; then : 14460 $as_echo_n "(cached) " >&6 14461else 14462 lt_cv_prog_compiler_static_works=no 14463 save_LDFLAGS="$LDFLAGS" 14464 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14465 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14466 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14467 # The linker can only warn and ignore the option if not recognized 14468 # So say no if there are warnings 14469 if test -s conftest.err; then 14470 # Append any errors to the config.log. 14471 cat conftest.err 1>&5 14472 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14474 if diff conftest.exp conftest.er2 >/dev/null; then 14475 lt_cv_prog_compiler_static_works=yes 14476 fi 14477 else 14478 lt_cv_prog_compiler_static_works=yes 14479 fi 14480 fi 14481 $RM -r conftest* 14482 LDFLAGS="$save_LDFLAGS" 14483 14484fi 14485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 14486$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 14487 14488if test x"$lt_cv_prog_compiler_static_works" = xyes; then 14489 : 14490else 14491 lt_prog_compiler_static= 14492fi 14493 14494 14495 14496 14497 14498 14499 14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14501$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14502if ${lt_cv_prog_compiler_c_o+:} false; then : 14503 $as_echo_n "(cached) " >&6 14504else 14505 lt_cv_prog_compiler_c_o=no 14506 $RM -r conftest 2>/dev/null 14507 mkdir conftest 14508 cd conftest 14509 mkdir out 14510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14511 14512 lt_compiler_flag="-o out/conftest2.$ac_objext" 14513 # Insert the option either (1) after the last *FLAGS variable, or 14514 # (2) before a word containing "conftest.", or (3) at the end. 14515 # Note that $ac_compile itself does not contain backslashes and begins 14516 # with a dollar sign (not a hyphen), so the echo should work correctly. 14517 lt_compile=`echo "$ac_compile" | $SED \ 14518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14520 -e 's:$: $lt_compiler_flag:'` 14521 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14522 (eval "$lt_compile" 2>out/conftest.err) 14523 ac_status=$? 14524 cat out/conftest.err >&5 14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14526 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14527 then 14528 # The compiler can only warn and ignore the option if not recognized 14529 # So say no if there are warnings 14530 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14531 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14532 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14533 lt_cv_prog_compiler_c_o=yes 14534 fi 14535 fi 14536 chmod u+w . 2>&5 14537 $RM conftest* 14538 # SGI C++ compiler will create directory out/ii_files/ for 14539 # template instantiation 14540 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14541 $RM out/* && rmdir out 14542 cd .. 14543 $RM -r conftest 14544 $RM conftest* 14545 14546fi 14547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14548$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14549 14550 14551 14552 14553 14554 14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14556$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14557if ${lt_cv_prog_compiler_c_o+:} false; then : 14558 $as_echo_n "(cached) " >&6 14559else 14560 lt_cv_prog_compiler_c_o=no 14561 $RM -r conftest 2>/dev/null 14562 mkdir conftest 14563 cd conftest 14564 mkdir out 14565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14566 14567 lt_compiler_flag="-o out/conftest2.$ac_objext" 14568 # Insert the option either (1) after the last *FLAGS variable, or 14569 # (2) before a word containing "conftest.", or (3) at the end. 14570 # Note that $ac_compile itself does not contain backslashes and begins 14571 # with a dollar sign (not a hyphen), so the echo should work correctly. 14572 lt_compile=`echo "$ac_compile" | $SED \ 14573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14575 -e 's:$: $lt_compiler_flag:'` 14576 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14577 (eval "$lt_compile" 2>out/conftest.err) 14578 ac_status=$? 14579 cat out/conftest.err >&5 14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14581 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14582 then 14583 # The compiler can only warn and ignore the option if not recognized 14584 # So say no if there are warnings 14585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14586 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14587 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14588 lt_cv_prog_compiler_c_o=yes 14589 fi 14590 fi 14591 chmod u+w . 2>&5 14592 $RM conftest* 14593 # SGI C++ compiler will create directory out/ii_files/ for 14594 # template instantiation 14595 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14596 $RM out/* && rmdir out 14597 cd .. 14598 $RM -r conftest 14599 $RM conftest* 14600 14601fi 14602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14603$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14604 14605 14606 14607 14608hard_links="nottested" 14609if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 14610 # do not overwrite the value of need_locks provided by the user 14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14612$as_echo_n "checking if we can lock with hard links... " >&6; } 14613 hard_links=yes 14614 $RM conftest* 14615 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14616 touch conftest.a 14617 ln conftest.a conftest.b 2>&5 || hard_links=no 14618 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14620$as_echo "$hard_links" >&6; } 14621 if test "$hard_links" = no; then 14622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14623$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14624 need_locks=warn 14625 fi 14626else 14627 need_locks=no 14628fi 14629 14630 14631 14632 14633 14634 14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14636$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14637 14638 runpath_var= 14639 allow_undefined_flag= 14640 always_export_symbols=no 14641 archive_cmds= 14642 archive_expsym_cmds= 14643 compiler_needs_object=no 14644 enable_shared_with_static_runtimes=no 14645 export_dynamic_flag_spec= 14646 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14647 hardcode_automatic=no 14648 hardcode_direct=no 14649 hardcode_direct_absolute=no 14650 hardcode_libdir_flag_spec= 14651 hardcode_libdir_flag_spec_ld= 14652 hardcode_libdir_separator= 14653 hardcode_minus_L=no 14654 hardcode_shlibpath_var=unsupported 14655 inherit_rpath=no 14656 link_all_deplibs=unknown 14657 module_cmds= 14658 module_expsym_cmds= 14659 old_archive_from_new_cmds= 14660 old_archive_from_expsyms_cmds= 14661 thread_safe_flag_spec= 14662 whole_archive_flag_spec= 14663 # include_expsyms should be a list of space-separated symbols to be *always* 14664 # included in the symbol list 14665 include_expsyms= 14666 # exclude_expsyms can be an extended regexp of symbols to exclude 14667 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14668 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14669 # as well as any symbol that contains `d'. 14670 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14671 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14672 # platforms (ab)use it in PIC code, but their linkers get confused if 14673 # the symbol is explicitly referenced. Since portable code cannot 14674 # rely on this symbol name, it's probably fine to never include it in 14675 # preloaded symbol tables. 14676 # Exclude shared library initialization/finalization symbols. 14677 extract_expsyms_cmds= 14678 14679 case $host_os in 14680 cygwin* | mingw* | pw32* | cegcc*) 14681 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14682 # When not using gcc, we currently assume that we are using 14683 # Microsoft Visual C++. 14684 if test "$GCC" != yes; then 14685 with_gnu_ld=no 14686 fi 14687 ;; 14688 interix*) 14689 # we just hope/assume this is gcc and not c89 (= MSVC++) 14690 with_gnu_ld=yes 14691 ;; 14692 openbsd*) 14693 with_gnu_ld=no 14694 ;; 14695 esac 14696 14697 ld_shlibs=yes 14698 14699 # On some targets, GNU ld is compatible enough with the native linker 14700 # that we're better off using the native interface for both. 14701 lt_use_gnu_ld_interface=no 14702 if test "$with_gnu_ld" = yes; then 14703 case $host_os in 14704 aix*) 14705 # The AIX port of GNU ld has always aspired to compatibility 14706 # with the native linker. However, as the warning in the GNU ld 14707 # block says, versions before 2.19.5* couldn't really create working 14708 # shared libraries, regardless of the interface used. 14709 case `$LD -v 2>&1` in 14710 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 14711 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 14712 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 14713 *) 14714 lt_use_gnu_ld_interface=yes 14715 ;; 14716 esac 14717 ;; 14718 *) 14719 lt_use_gnu_ld_interface=yes 14720 ;; 14721 esac 14722 fi 14723 14724 if test "$lt_use_gnu_ld_interface" = yes; then 14725 # If archive_cmds runs LD, not CC, wlarc should be empty 14726 wlarc='${wl}' 14727 14728 # Set some defaults for GNU ld with shared library support. These 14729 # are reset later if shared libraries are not supported. Putting them 14730 # here allows them to be overridden if necessary. 14731 runpath_var=LD_RUN_PATH 14732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14733 export_dynamic_flag_spec='${wl}--export-dynamic' 14734 # ancient GNU ld didn't support --whole-archive et. al. 14735 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 14736 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14737 else 14738 whole_archive_flag_spec= 14739 fi 14740 supports_anon_versioning=no 14741 case `$LD -v 2>&1` in 14742 *GNU\ gold*) supports_anon_versioning=yes ;; 14743 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14744 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14745 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14746 *\ 2.11.*) ;; # other 2.11 versions 14747 *) supports_anon_versioning=yes ;; 14748 esac 14749 14750 # See if GNU ld supports shared libraries. 14751 case $host_os in 14752 aix[3-9]*) 14753 # On AIX/PPC, the GNU linker is very broken 14754 if test "$host_cpu" != ia64; then 14755 ld_shlibs=no 14756 cat <<_LT_EOF 1>&2 14757 14758*** Warning: the GNU linker, at least up to release 2.19, is reported 14759*** to be unable to reliably create shared libraries on AIX. 14760*** Therefore, libtool is disabling shared libraries support. If you 14761*** really care for shared libraries, you may want to install binutils 14762*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 14763*** You will then need to restart the configuration process. 14764 14765_LT_EOF 14766 fi 14767 ;; 14768 14769 amigaos*) 14770 case $host_cpu in 14771 powerpc) 14772 # see comment about AmigaOS4 .so support 14773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14774 archive_expsym_cmds='' 14775 ;; 14776 m68k) 14777 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)' 14778 hardcode_libdir_flag_spec='-L$libdir' 14779 hardcode_minus_L=yes 14780 ;; 14781 esac 14782 ;; 14783 14784 beos*) 14785 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14786 allow_undefined_flag=unsupported 14787 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14788 # support --undefined. This deserves some investigation. FIXME 14789 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14790 else 14791 ld_shlibs=no 14792 fi 14793 ;; 14794 14795 cygwin* | mingw* | pw32* | cegcc*) 14796 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 14797 # as there is no search path for DLLs. 14798 hardcode_libdir_flag_spec='-L$libdir' 14799 export_dynamic_flag_spec='${wl}--export-all-symbols' 14800 allow_undefined_flag=unsupported 14801 always_export_symbols=no 14802 enable_shared_with_static_runtimes=yes 14803 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' 14804 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14805 14806 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14808 # If the export-symbols file already is a .def file (1st line 14809 # is EXPORTS), use it as is; otherwise, prepend... 14810 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14811 cp $export_symbols $output_objdir/$soname.def; 14812 else 14813 echo EXPORTS > $output_objdir/$soname.def; 14814 cat $export_symbols >> $output_objdir/$soname.def; 14815 fi~ 14816 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14817 else 14818 ld_shlibs=no 14819 fi 14820 ;; 14821 14822 haiku*) 14823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14824 link_all_deplibs=yes 14825 ;; 14826 14827 interix[3-9]*) 14828 hardcode_direct=no 14829 hardcode_shlibpath_var=no 14830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 14831 export_dynamic_flag_spec='${wl}-E' 14832 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14833 # Instead, shared libraries are loaded at an image base (0x10000000 by 14834 # default) and relocated if they conflict, which is a slow very memory 14835 # consuming and fragmenting process. To avoid this, we pick a random, 14836 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14837 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14838 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14839 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' 14840 ;; 14841 14842 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 14843 tmp_diet=no 14844 if test "$host_os" = linux-dietlibc; then 14845 case $cc_basename in 14846 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 14847 esac 14848 fi 14849 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 14850 && test "$tmp_diet" = no 14851 then 14852 tmp_addflag=' $pic_flag' 14853 tmp_sharedflag='-shared' 14854 case $cc_basename,$host_cpu in 14855 pgcc*) # Portland Group C compiler 14856 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' 14857 tmp_addflag=' $pic_flag' 14858 ;; 14859 pgf77* | pgf90* | pgf95* | pgfortran*) 14860 # Portland Group f77 and f90 compilers 14861 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' 14862 tmp_addflag=' $pic_flag -Mnomain' ;; 14863 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14864 tmp_addflag=' -i_dynamic' ;; 14865 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14866 tmp_addflag=' -i_dynamic -nofor_main' ;; 14867 ifc* | ifort*) # Intel Fortran compiler 14868 tmp_addflag=' -nofor_main' ;; 14869 lf95*) # Lahey Fortran 8.1 14870 whole_archive_flag_spec= 14871 tmp_sharedflag='--shared' ;; 14872 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 14873 tmp_sharedflag='-qmkshrobj' 14874 tmp_addflag= ;; 14875 nvcc*) # Cuda Compiler Driver 2.2 14876 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' 14877 compiler_needs_object=yes 14878 ;; 14879 esac 14880 case `$CC -V 2>&1 | sed 5q` in 14881 *Sun\ C*) # Sun C 5.9 14882 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' 14883 compiler_needs_object=yes 14884 tmp_sharedflag='-G' ;; 14885 *Sun\ F*) # Sun Fortran 8.3 14886 tmp_sharedflag='-G' ;; 14887 esac 14888 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14889 14890 if test "x$supports_anon_versioning" = xyes; then 14891 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 14892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14893 echo "local: *; };" >> $output_objdir/$libname.ver~ 14894 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14895 fi 14896 14897 case $cc_basename in 14898 xlf* | bgf* | bgxlf* | mpixlf*) 14899 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 14900 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 14901 hardcode_libdir_flag_spec= 14902 hardcode_libdir_flag_spec_ld='-rpath $libdir' 14903 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 14904 if test "x$supports_anon_versioning" = xyes; then 14905 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 14906 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14907 echo "local: *; };" >> $output_objdir/$libname.ver~ 14908 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 14909 fi 14910 ;; 14911 esac 14912 else 14913 ld_shlibs=no 14914 fi 14915 ;; 14916 14917 netbsd*) 14918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14919 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14920 wlarc= 14921 else 14922 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14923 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14924 fi 14925 ;; 14926 14927 solaris*) 14928 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 14929 ld_shlibs=no 14930 cat <<_LT_EOF 1>&2 14931 14932*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14933*** create shared libraries on Solaris systems. Therefore, libtool 14934*** is disabling shared libraries support. We urge you to upgrade GNU 14935*** binutils to release 2.9.1 or newer. Another option is to modify 14936*** your PATH or compiler configuration so that the native linker is 14937*** used, and then restart. 14938 14939_LT_EOF 14940 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14941 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14942 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14943 else 14944 ld_shlibs=no 14945 fi 14946 ;; 14947 14948 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14949 case `$LD -v 2>&1` in 14950 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14951 ld_shlibs=no 14952 cat <<_LT_EOF 1>&2 14953 14954*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14955*** reliably create shared libraries on SCO systems. Therefore, libtool 14956*** is disabling shared libraries support. We urge you to upgrade GNU 14957*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14958*** your PATH or compiler configuration so that the native linker is 14959*** used, and then restart. 14960 14961_LT_EOF 14962 ;; 14963 *) 14964 # For security reasons, it is highly recommended that you always 14965 # use absolute paths for naming shared libraries, and exclude the 14966 # DT_RUNPATH tag from executables and libraries. But doing so 14967 # requires that you compile everything twice, which is a pain. 14968 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14971 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14972 else 14973 ld_shlibs=no 14974 fi 14975 ;; 14976 esac 14977 ;; 14978 14979 sunos4*) 14980 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14981 wlarc= 14982 hardcode_direct=yes 14983 hardcode_shlibpath_var=no 14984 ;; 14985 14986 *) 14987 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14988 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14989 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14990 else 14991 ld_shlibs=no 14992 fi 14993 ;; 14994 esac 14995 14996 if test "$ld_shlibs" = no; then 14997 runpath_var= 14998 hardcode_libdir_flag_spec= 14999 export_dynamic_flag_spec= 15000 whole_archive_flag_spec= 15001 fi 15002 else 15003 # PORTME fill in a description of your system's linker (not GNU ld) 15004 case $host_os in 15005 aix3*) 15006 allow_undefined_flag=unsupported 15007 always_export_symbols=yes 15008 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' 15009 # Note: this linker hardcodes the directories in LIBPATH if there 15010 # are no directories specified by -L. 15011 hardcode_minus_L=yes 15012 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15013 # Neither direct hardcoding nor static linking is supported with a 15014 # broken collect2. 15015 hardcode_direct=unsupported 15016 fi 15017 ;; 15018 15019 aix[4-9]*) 15020 if test "$host_cpu" = ia64; then 15021 # On IA64, the linker does run time linking by default, so we don't 15022 # have to do anything special. 15023 aix_use_runtimelinking=no 15024 exp_sym_flag='-Bexport' 15025 no_entry_flag="" 15026 else 15027 # If we're using GNU nm, then we don't want the "-C" option. 15028 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15029 # Also, AIX nm treats weak defined symbols like other global 15030 # defined symbols, whereas GNU nm marks them as "W". 15031 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15032 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' 15033 else 15034 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' 15035 fi 15036 aix_use_runtimelinking=no 15037 15038 # Test if we are trying to use run time linking or normal 15039 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15040 # need to do runtime linking. 15041 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15042 for ld_flag in $LDFLAGS; do 15043 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15044 aix_use_runtimelinking=yes 15045 break 15046 fi 15047 done 15048 ;; 15049 esac 15050 15051 exp_sym_flag='-bexport' 15052 no_entry_flag='-bnoentry' 15053 fi 15054 15055 # When large executables or shared objects are built, AIX ld can 15056 # have problems creating the table of contents. If linking a library 15057 # or program results in "error TOC overflow" add -mminimal-toc to 15058 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15059 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15060 15061 archive_cmds='' 15062 hardcode_direct=yes 15063 hardcode_direct_absolute=yes 15064 hardcode_libdir_separator=':' 15065 link_all_deplibs=yes 15066 file_list_spec='${wl}-f,' 15067 15068 if test "$GCC" = yes; then 15069 case $host_os in aix4.[012]|aix4.[012].*) 15070 # We only want to do this on AIX 4.2 and lower, the check 15071 # below for broken collect2 doesn't work under 4.3+ 15072 collect2name=`${CC} -print-prog-name=collect2` 15073 if test -f "$collect2name" && 15074 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15075 then 15076 # We have reworked collect2 15077 : 15078 else 15079 # We have old collect2 15080 hardcode_direct=unsupported 15081 # It fails to find uninstalled libraries when the uninstalled 15082 # path is not listed in the libpath. Setting hardcode_minus_L 15083 # to unsupported forces relinking 15084 hardcode_minus_L=yes 15085 hardcode_libdir_flag_spec='-L$libdir' 15086 hardcode_libdir_separator= 15087 fi 15088 ;; 15089 esac 15090 shared_flag='-shared' 15091 if test "$aix_use_runtimelinking" = yes; then 15092 shared_flag="$shared_flag "'${wl}-G' 15093 fi 15094 else 15095 # not using gcc 15096 if test "$host_cpu" = ia64; then 15097 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15098 # chokes on -Wl,-G. The following line is correct: 15099 shared_flag='-G' 15100 else 15101 if test "$aix_use_runtimelinking" = yes; then 15102 shared_flag='${wl}-G' 15103 else 15104 shared_flag='${wl}-bM:SRE' 15105 fi 15106 fi 15107 fi 15108 15109 export_dynamic_flag_spec='${wl}-bexpall' 15110 # It seems that -bexpall does not export symbols beginning with 15111 # underscore (_), so it is better to generate a list of symbols to export. 15112 always_export_symbols=yes 15113 if test "$aix_use_runtimelinking" = yes; then 15114 # Warning - without using the other runtime loading flags (-brtl), 15115 # -berok will link without error, but may produce a broken library. 15116 allow_undefined_flag='-berok' 15117 # Determine the default libpath from the value encoded in an 15118 # empty executable. 15119 if test "${lt_cv_aix_libpath+set}" = set; then 15120 aix_libpath=$lt_cv_aix_libpath 15121else 15122 if ${lt_cv_aix_libpath_+:} false; then : 15123 $as_echo_n "(cached) " >&6 15124else 15125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15126/* end confdefs.h. */ 15127 15128int 15129main () 15130{ 15131 15132 ; 15133 return 0; 15134} 15135_ACEOF 15136if ac_fn_c_try_link "$LINENO"; then : 15137 15138 lt_aix_libpath_sed=' 15139 /Import File Strings/,/^$/ { 15140 /^0/ { 15141 s/^0 *\([^ ]*\) *$/\1/ 15142 p 15143 } 15144 }' 15145 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15146 # Check for a 64-bit object if we didn't find anything. 15147 if test -z "$lt_cv_aix_libpath_"; then 15148 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15149 fi 15150fi 15151rm -f core conftest.err conftest.$ac_objext \ 15152 conftest$ac_exeext conftest.$ac_ext 15153 if test -z "$lt_cv_aix_libpath_"; then 15154 lt_cv_aix_libpath_="/usr/lib:/lib" 15155 fi 15156 15157fi 15158 15159 aix_libpath=$lt_cv_aix_libpath_ 15160fi 15161 15162 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15163 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" 15164 else 15165 if test "$host_cpu" = ia64; then 15166 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 15167 allow_undefined_flag="-z nodefs" 15168 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" 15169 else 15170 # Determine the default libpath from the value encoded in an 15171 # empty executable. 15172 if test "${lt_cv_aix_libpath+set}" = set; then 15173 aix_libpath=$lt_cv_aix_libpath 15174else 15175 if ${lt_cv_aix_libpath_+:} false; then : 15176 $as_echo_n "(cached) " >&6 15177else 15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15179/* end confdefs.h. */ 15180 15181int 15182main () 15183{ 15184 15185 ; 15186 return 0; 15187} 15188_ACEOF 15189if ac_fn_c_try_link "$LINENO"; then : 15190 15191 lt_aix_libpath_sed=' 15192 /Import File Strings/,/^$/ { 15193 /^0/ { 15194 s/^0 *\([^ ]*\) *$/\1/ 15195 p 15196 } 15197 }' 15198 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15199 # Check for a 64-bit object if we didn't find anything. 15200 if test -z "$lt_cv_aix_libpath_"; then 15201 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15202 fi 15203fi 15204rm -f core conftest.err conftest.$ac_objext \ 15205 conftest$ac_exeext conftest.$ac_ext 15206 if test -z "$lt_cv_aix_libpath_"; then 15207 lt_cv_aix_libpath_="/usr/lib:/lib" 15208 fi 15209 15210fi 15211 15212 aix_libpath=$lt_cv_aix_libpath_ 15213fi 15214 15215 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15216 # Warning - without using the other run time loading flags, 15217 # -berok will link without error, but may produce a broken library. 15218 no_undefined_flag=' ${wl}-bernotok' 15219 allow_undefined_flag=' ${wl}-berok' 15220 if test "$with_gnu_ld" = yes; then 15221 # We only use this code for GNU lds that support --whole-archive. 15222 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15223 else 15224 # Exported symbols can be pulled into shared objects from archives 15225 whole_archive_flag_spec='$convenience' 15226 fi 15227 archive_cmds_need_lc=yes 15228 # This is similar to how AIX traditionally builds its shared libraries. 15229 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' 15230 fi 15231 fi 15232 ;; 15233 15234 amigaos*) 15235 case $host_cpu in 15236 powerpc) 15237 # see comment about AmigaOS4 .so support 15238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15239 archive_expsym_cmds='' 15240 ;; 15241 m68k) 15242 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)' 15243 hardcode_libdir_flag_spec='-L$libdir' 15244 hardcode_minus_L=yes 15245 ;; 15246 esac 15247 ;; 15248 15249 bsdi[45]*) 15250 export_dynamic_flag_spec=-rdynamic 15251 ;; 15252 15253 cygwin* | mingw* | pw32* | cegcc*) 15254 # When not using gcc, we currently assume that we are using 15255 # Microsoft Visual C++. 15256 # hardcode_libdir_flag_spec is actually meaningless, as there is 15257 # no search path for DLLs. 15258 case $cc_basename in 15259 cl*) 15260 # Native MSVC 15261 hardcode_libdir_flag_spec=' ' 15262 allow_undefined_flag=unsupported 15263 always_export_symbols=yes 15264 file_list_spec='@' 15265 # Tell ltmain to make .lib files, not .a files. 15266 libext=lib 15267 # Tell ltmain to make .dll files, not .so files. 15268 shrext_cmds=".dll" 15269 # FIXME: Setting linknames here is a bad hack. 15270 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 15271 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15272 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 15273 else 15274 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 15275 fi~ 15276 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15277 linknames=' 15278 # The linker will not automatically build a static lib if we build a DLL. 15279 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 15280 enable_shared_with_static_runtimes=yes 15281 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15282 # Don't use ranlib 15283 old_postinstall_cmds='chmod 644 $oldlib' 15284 postlink_cmds='lt_outputfile="@OUTPUT@"~ 15285 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15286 case $lt_outputfile in 15287 *.exe|*.EXE) ;; 15288 *) 15289 lt_outputfile="$lt_outputfile.exe" 15290 lt_tool_outputfile="$lt_tool_outputfile.exe" 15291 ;; 15292 esac~ 15293 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 15294 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15295 $RM "$lt_outputfile.manifest"; 15296 fi' 15297 ;; 15298 *) 15299 # Assume MSVC wrapper 15300 hardcode_libdir_flag_spec=' ' 15301 allow_undefined_flag=unsupported 15302 # Tell ltmain to make .lib files, not .a files. 15303 libext=lib 15304 # Tell ltmain to make .dll files, not .so files. 15305 shrext_cmds=".dll" 15306 # FIXME: Setting linknames here is a bad hack. 15307 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 15308 # The linker will automatically build a .lib file if we build a DLL. 15309 old_archive_from_new_cmds='true' 15310 # FIXME: Should let the user specify the lib program. 15311 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 15312 enable_shared_with_static_runtimes=yes 15313 ;; 15314 esac 15315 ;; 15316 15317 darwin* | rhapsody*) 15318 15319 15320 archive_cmds_need_lc=no 15321 hardcode_direct=no 15322 hardcode_automatic=yes 15323 hardcode_shlibpath_var=unsupported 15324 if test "$lt_cv_ld_force_load" = "yes"; then 15325 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\"`' 15326 else 15327 whole_archive_flag_spec='' 15328 fi 15329 link_all_deplibs=yes 15330 allow_undefined_flag="$_lt_dar_allow_undefined" 15331 case $cc_basename in 15332 ifort*) _lt_dar_can_shared=yes ;; 15333 *) _lt_dar_can_shared=$GCC ;; 15334 esac 15335 if test "$_lt_dar_can_shared" = "yes"; then 15336 output_verbose_link_cmd=func_echo_all 15337 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15338 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15339 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}" 15340 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}" 15341 15342 else 15343 ld_shlibs=no 15344 fi 15345 15346 ;; 15347 15348 dgux*) 15349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15350 hardcode_libdir_flag_spec='-L$libdir' 15351 hardcode_shlibpath_var=no 15352 ;; 15353 15354 freebsd1*) 15355 ld_shlibs=no 15356 ;; 15357 15358 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15359 # support. Future versions do this automatically, but an explicit c++rt0.o 15360 # does not break anything, and helps significantly (at the cost of a little 15361 # extra space). 15362 freebsd2.2*) 15363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15364 hardcode_libdir_flag_spec='-R$libdir' 15365 hardcode_direct=yes 15366 hardcode_shlibpath_var=no 15367 ;; 15368 15369 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15370 freebsd2*) 15371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15372 hardcode_direct=yes 15373 hardcode_minus_L=yes 15374 hardcode_shlibpath_var=no 15375 ;; 15376 15377 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15378 freebsd* | dragonfly*) 15379 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15380 hardcode_libdir_flag_spec='-R$libdir' 15381 hardcode_direct=yes 15382 hardcode_shlibpath_var=no 15383 ;; 15384 15385 hpux9*) 15386 if test "$GCC" = yes; then 15387 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' 15388 else 15389 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' 15390 fi 15391 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15392 hardcode_libdir_separator=: 15393 hardcode_direct=yes 15394 15395 # hardcode_minus_L: Not really in the search PATH, 15396 # but as the default location of the library. 15397 hardcode_minus_L=yes 15398 export_dynamic_flag_spec='${wl}-E' 15399 ;; 15400 15401 hpux10*) 15402 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15403 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15404 else 15405 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15406 fi 15407 if test "$with_gnu_ld" = no; then 15408 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15409 hardcode_libdir_flag_spec_ld='+b $libdir' 15410 hardcode_libdir_separator=: 15411 hardcode_direct=yes 15412 hardcode_direct_absolute=yes 15413 export_dynamic_flag_spec='${wl}-E' 15414 # hardcode_minus_L: Not really in the search PATH, 15415 # but as the default location of the library. 15416 hardcode_minus_L=yes 15417 fi 15418 ;; 15419 15420 hpux11*) 15421 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15422 case $host_cpu in 15423 hppa*64*) 15424 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15425 ;; 15426 ia64*) 15427 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15428 ;; 15429 *) 15430 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15431 ;; 15432 esac 15433 else 15434 case $host_cpu in 15435 hppa*64*) 15436 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15437 ;; 15438 ia64*) 15439 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15440 ;; 15441 *) 15442 15443 # Older versions of the 11.00 compiler do not understand -b yet 15444 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 15446$as_echo_n "checking if $CC understands -b... " >&6; } 15447if ${lt_cv_prog_compiler__b+:} false; then : 15448 $as_echo_n "(cached) " >&6 15449else 15450 lt_cv_prog_compiler__b=no 15451 save_LDFLAGS="$LDFLAGS" 15452 LDFLAGS="$LDFLAGS -b" 15453 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15454 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15455 # The linker can only warn and ignore the option if not recognized 15456 # So say no if there are warnings 15457 if test -s conftest.err; then 15458 # Append any errors to the config.log. 15459 cat conftest.err 1>&5 15460 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15462 if diff conftest.exp conftest.er2 >/dev/null; then 15463 lt_cv_prog_compiler__b=yes 15464 fi 15465 else 15466 lt_cv_prog_compiler__b=yes 15467 fi 15468 fi 15469 $RM -r conftest* 15470 LDFLAGS="$save_LDFLAGS" 15471 15472fi 15473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 15474$as_echo "$lt_cv_prog_compiler__b" >&6; } 15475 15476if test x"$lt_cv_prog_compiler__b" = xyes; then 15477 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15478else 15479 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15480fi 15481 15482 ;; 15483 esac 15484 fi 15485 if test "$with_gnu_ld" = no; then 15486 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15487 hardcode_libdir_separator=: 15488 15489 case $host_cpu in 15490 hppa*64*|ia64*) 15491 hardcode_direct=no 15492 hardcode_shlibpath_var=no 15493 ;; 15494 *) 15495 hardcode_direct=yes 15496 hardcode_direct_absolute=yes 15497 export_dynamic_flag_spec='${wl}-E' 15498 15499 # hardcode_minus_L: Not really in the search PATH, 15500 # but as the default location of the library. 15501 hardcode_minus_L=yes 15502 ;; 15503 esac 15504 fi 15505 ;; 15506 15507 irix5* | irix6* | nonstopux*) 15508 if test "$GCC" = yes; then 15509 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' 15510 # Try to use the -exported_symbol ld option, if it does not 15511 # work, assume that -exports_file does not work either and 15512 # implicitly export all symbols. 15513 # This should be the same for all languages, so no per-tag cache variable. 15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 15515$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 15516if ${lt_cv_irix_exported_symbol+:} false; then : 15517 $as_echo_n "(cached) " >&6 15518else 15519 save_LDFLAGS="$LDFLAGS" 15520 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 15521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15522/* end confdefs.h. */ 15523int foo (void) { return 0; } 15524_ACEOF 15525if ac_fn_c_try_link "$LINENO"; then : 15526 lt_cv_irix_exported_symbol=yes 15527else 15528 lt_cv_irix_exported_symbol=no 15529fi 15530rm -f core conftest.err conftest.$ac_objext \ 15531 conftest$ac_exeext conftest.$ac_ext 15532 LDFLAGS="$save_LDFLAGS" 15533fi 15534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 15535$as_echo "$lt_cv_irix_exported_symbol" >&6; } 15536 if test "$lt_cv_irix_exported_symbol" = yes; then 15537 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' 15538 fi 15539 else 15540 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' 15541 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' 15542 fi 15543 archive_cmds_need_lc='no' 15544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15545 hardcode_libdir_separator=: 15546 inherit_rpath=yes 15547 link_all_deplibs=yes 15548 ;; 15549 15550 netbsd*) 15551 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15553 else 15554 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15555 fi 15556 hardcode_libdir_flag_spec='-R$libdir' 15557 hardcode_direct=yes 15558 hardcode_shlibpath_var=no 15559 ;; 15560 15561 newsos6) 15562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15563 hardcode_direct=yes 15564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15565 hardcode_libdir_separator=: 15566 hardcode_shlibpath_var=no 15567 ;; 15568 15569 *nto* | *qnx*) 15570 ;; 15571 15572 openbsd*) 15573 if test -f /usr/libexec/ld.so; then 15574 hardcode_direct=yes 15575 hardcode_shlibpath_var=no 15576 hardcode_direct_absolute=yes 15577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15579 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15580 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15581 export_dynamic_flag_spec='${wl}-E' 15582 else 15583 case $host_os in 15584 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15586 hardcode_libdir_flag_spec='-R$libdir' 15587 ;; 15588 *) 15589 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15590 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15591 ;; 15592 esac 15593 fi 15594 else 15595 ld_shlibs=no 15596 fi 15597 ;; 15598 15599 os2*) 15600 hardcode_libdir_flag_spec='-L$libdir' 15601 hardcode_minus_L=yes 15602 allow_undefined_flag=unsupported 15603 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' 15604 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15605 ;; 15606 15607 osf3*) 15608 if test "$GCC" = yes; then 15609 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15610 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' 15611 else 15612 allow_undefined_flag=' -expect_unresolved \*' 15613 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' 15614 fi 15615 archive_cmds_need_lc='no' 15616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15617 hardcode_libdir_separator=: 15618 ;; 15619 15620 osf4* | osf5*) # as osf3* with the addition of -msym flag 15621 if test "$GCC" = yes; then 15622 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15623 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' 15624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15625 else 15626 allow_undefined_flag=' -expect_unresolved \*' 15627 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' 15628 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~ 15629 $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' 15630 15631 # Both c and cxx compiler support -rpath directly 15632 hardcode_libdir_flag_spec='-rpath $libdir' 15633 fi 15634 archive_cmds_need_lc='no' 15635 hardcode_libdir_separator=: 15636 ;; 15637 15638 solaris*) 15639 no_undefined_flag=' -z defs' 15640 if test "$GCC" = yes; then 15641 wlarc='${wl}' 15642 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15644 $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' 15645 else 15646 case `$CC -V 2>&1` in 15647 *"Compilers 5.0"*) 15648 wlarc='' 15649 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15650 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15651 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 15652 ;; 15653 *) 15654 wlarc='${wl}' 15655 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 15656 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15657 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15658 ;; 15659 esac 15660 fi 15661 hardcode_libdir_flag_spec='-R$libdir' 15662 hardcode_shlibpath_var=no 15663 case $host_os in 15664 solaris2.[0-5] | solaris2.[0-5].*) ;; 15665 *) 15666 # The compiler driver will combine and reorder linker options, 15667 # but understands `-z linker_flag'. GCC discards it without `$wl', 15668 # but is careful enough not to reorder. 15669 # Supported since Solaris 2.6 (maybe 2.5.1?) 15670 if test "$GCC" = yes; then 15671 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15672 else 15673 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 15674 fi 15675 ;; 15676 esac 15677 link_all_deplibs=yes 15678 ;; 15679 15680 sunos4*) 15681 if test "x$host_vendor" = xsequent; then 15682 # Use $CC to link under sequent, because it throws in some extra .o 15683 # files that make .init and .fini sections work. 15684 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15685 else 15686 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15687 fi 15688 hardcode_libdir_flag_spec='-L$libdir' 15689 hardcode_direct=yes 15690 hardcode_minus_L=yes 15691 hardcode_shlibpath_var=no 15692 ;; 15693 15694 sysv4) 15695 case $host_vendor in 15696 sni) 15697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15698 hardcode_direct=yes # is this really true??? 15699 ;; 15700 siemens) 15701 ## LD is ld it makes a PLAMLIB 15702 ## CC just makes a GrossModule. 15703 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15704 reload_cmds='$CC -r -o $output$reload_objs' 15705 hardcode_direct=no 15706 ;; 15707 motorola) 15708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15709 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 15710 ;; 15711 esac 15712 runpath_var='LD_RUN_PATH' 15713 hardcode_shlibpath_var=no 15714 ;; 15715 15716 sysv4.3*) 15717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15718 hardcode_shlibpath_var=no 15719 export_dynamic_flag_spec='-Bexport' 15720 ;; 15721 15722 sysv4*MP*) 15723 if test -d /usr/nec; then 15724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15725 hardcode_shlibpath_var=no 15726 runpath_var=LD_RUN_PATH 15727 hardcode_runpath_var=yes 15728 ld_shlibs=yes 15729 fi 15730 ;; 15731 15732 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15733 no_undefined_flag='${wl}-z,text' 15734 archive_cmds_need_lc=no 15735 hardcode_shlibpath_var=no 15736 runpath_var='LD_RUN_PATH' 15737 15738 if test "$GCC" = yes; then 15739 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15740 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15741 else 15742 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15743 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15744 fi 15745 ;; 15746 15747 sysv5* | sco3.2v5* | sco5v6*) 15748 # Note: We can NOT use -z defs as we might desire, because we do not 15749 # link with -lc, and that would cause any symbols used from libc to 15750 # always be unresolved, which means just about no library would 15751 # ever link correctly. If we're not using GNU ld we use -z text 15752 # though, which does catch some bad symbols but isn't as heavy-handed 15753 # as -z defs. 15754 no_undefined_flag='${wl}-z,text' 15755 allow_undefined_flag='${wl}-z,nodefs' 15756 archive_cmds_need_lc=no 15757 hardcode_shlibpath_var=no 15758 hardcode_libdir_flag_spec='${wl}-R,$libdir' 15759 hardcode_libdir_separator=':' 15760 link_all_deplibs=yes 15761 export_dynamic_flag_spec='${wl}-Bexport' 15762 runpath_var='LD_RUN_PATH' 15763 15764 if test "$GCC" = yes; then 15765 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15766 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15767 else 15768 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15769 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15770 fi 15771 ;; 15772 15773 uts4*) 15774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15775 hardcode_libdir_flag_spec='-L$libdir' 15776 hardcode_shlibpath_var=no 15777 ;; 15778 15779 *) 15780 ld_shlibs=no 15781 ;; 15782 esac 15783 15784 if test x$host_vendor = xsni; then 15785 case $host in 15786 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15787 export_dynamic_flag_spec='${wl}-Blargedynsym' 15788 ;; 15789 esac 15790 fi 15791 fi 15792 15793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 15794$as_echo "$ld_shlibs" >&6; } 15795test "$ld_shlibs" = no && can_build_shared=no 15796 15797with_gnu_ld=$with_gnu_ld 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813# 15814# Do we need to explicitly link libc? 15815# 15816case "x$archive_cmds_need_lc" in 15817x|xyes) 15818 # Assume -lc should be added 15819 archive_cmds_need_lc=yes 15820 15821 if test "$enable_shared" = yes && test "$GCC" = yes; then 15822 case $archive_cmds in 15823 *'~'*) 15824 # FIXME: we may have to deal with multi-command sequences. 15825 ;; 15826 '$CC '*) 15827 # Test whether the compiler implicitly links with -lc since on some 15828 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15829 # to ld, don't add -lc before -lgcc. 15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15831$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15832if ${lt_cv_archive_cmds_need_lc+:} false; then : 15833 $as_echo_n "(cached) " >&6 15834else 15835 $RM conftest* 15836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15837 15838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15839 (eval $ac_compile) 2>&5 15840 ac_status=$? 15841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15842 test $ac_status = 0; } 2>conftest.err; then 15843 soname=conftest 15844 lib=conftest 15845 libobjs=conftest.$ac_objext 15846 deplibs= 15847 wl=$lt_prog_compiler_wl 15848 pic_flag=$lt_prog_compiler_pic 15849 compiler_flags=-v 15850 linker_flags=-v 15851 verstring= 15852 output_objdir=. 15853 libname=conftest 15854 lt_save_allow_undefined_flag=$allow_undefined_flag 15855 allow_undefined_flag= 15856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15857 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15858 ac_status=$? 15859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15860 test $ac_status = 0; } 15861 then 15862 lt_cv_archive_cmds_need_lc=no 15863 else 15864 lt_cv_archive_cmds_need_lc=yes 15865 fi 15866 allow_undefined_flag=$lt_save_allow_undefined_flag 15867 else 15868 cat conftest.err 1>&5 15869 fi 15870 $RM conftest* 15871 15872fi 15873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 15874$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 15875 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 15876 ;; 15877 esac 15878 fi 15879 ;; 15880esac 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 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16039$as_echo_n "checking dynamic linker characteristics... " >&6; } 16040 16041if test "$GCC" = yes; then 16042 case $host_os in 16043 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 16044 *) lt_awk_arg="/^libraries:/" ;; 16045 esac 16046 case $host_os in 16047 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 16048 *) lt_sed_strip_eq="s,=/,/,g" ;; 16049 esac 16050 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16051 case $lt_search_path_spec in 16052 *\;*) 16053 # if the path contains ";" then we assume it to be the separator 16054 # otherwise default to the standard path separator (i.e. ":") - it is 16055 # assumed that no part of a normal pathname contains ";" but that should 16056 # okay in the real world where ";" in dirpaths is itself problematic. 16057 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16058 ;; 16059 *) 16060 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16061 ;; 16062 esac 16063 # Ok, now we have the path, separated by spaces, we can step through it 16064 # and add multilib dir if necessary. 16065 lt_tmp_lt_search_path_spec= 16066 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16067 for lt_sys_path in $lt_search_path_spec; do 16068 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 16069 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 16070 else 16071 test -d "$lt_sys_path" && \ 16072 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16073 fi 16074 done 16075 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16076BEGIN {RS=" "; FS="/|\n";} { 16077 lt_foo=""; 16078 lt_count=0; 16079 for (lt_i = NF; lt_i > 0; lt_i--) { 16080 if ($lt_i != "" && $lt_i != ".") { 16081 if ($lt_i == "..") { 16082 lt_count++; 16083 } else { 16084 if (lt_count == 0) { 16085 lt_foo="/" $lt_i lt_foo; 16086 } else { 16087 lt_count--; 16088 } 16089 } 16090 } 16091 } 16092 if (lt_foo != "") { lt_freq[lt_foo]++; } 16093 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16094}'` 16095 # AWK program above erroneously prepends '/' to C:/dos/paths 16096 # for these hosts. 16097 case $host_os in 16098 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16099 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 16100 esac 16101 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16102else 16103 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16104fi 16105library_names_spec= 16106libname_spec='lib$name' 16107soname_spec= 16108shrext_cmds=".so" 16109postinstall_cmds= 16110postuninstall_cmds= 16111finish_cmds= 16112finish_eval= 16113shlibpath_var= 16114shlibpath_overrides_runpath=unknown 16115version_type=none 16116dynamic_linker="$host_os ld.so" 16117sys_lib_dlsearch_path_spec="/lib /usr/lib" 16118need_lib_prefix=unknown 16119hardcode_into_libs=no 16120 16121# when you set need_version to no, make sure it does not cause -set_version 16122# flags to be left without arguments 16123need_version=unknown 16124 16125case $host_os in 16126aix3*) 16127 version_type=linux 16128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16129 shlibpath_var=LIBPATH 16130 16131 # AIX 3 has no versioning support, so we append a major version to the name. 16132 soname_spec='${libname}${release}${shared_ext}$major' 16133 ;; 16134 16135aix[4-9]*) 16136 version_type=linux 16137 need_lib_prefix=no 16138 need_version=no 16139 hardcode_into_libs=yes 16140 if test "$host_cpu" = ia64; then 16141 # AIX 5 supports IA64 16142 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16143 shlibpath_var=LD_LIBRARY_PATH 16144 else 16145 # With GCC up to 2.95.x, collect2 would create an import file 16146 # for dependence libraries. The import file would start with 16147 # the line `#! .'. This would cause the generated library to 16148 # depend on `.', always an invalid library. This was fixed in 16149 # development snapshots of GCC prior to 3.0. 16150 case $host_os in 16151 aix4 | aix4.[01] | aix4.[01].*) 16152 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16153 echo ' yes ' 16154 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16155 : 16156 else 16157 can_build_shared=no 16158 fi 16159 ;; 16160 esac 16161 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16162 # soname into executable. Probably we can add versioning support to 16163 # collect2, so additional links can be useful in future. 16164 if test "$aix_use_runtimelinking" = yes; then 16165 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16166 # instead of lib<name>.a to let people know that these are not 16167 # typical AIX shared libraries. 16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16169 else 16170 # We preserve .a as extension for shared libraries through AIX4.2 16171 # and later when we are not doing run time linking. 16172 library_names_spec='${libname}${release}.a $libname.a' 16173 soname_spec='${libname}${release}${shared_ext}$major' 16174 fi 16175 shlibpath_var=LIBPATH 16176 fi 16177 ;; 16178 16179amigaos*) 16180 case $host_cpu in 16181 powerpc) 16182 # Since July 2007 AmigaOS4 officially supports .so libraries. 16183 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16185 ;; 16186 m68k) 16187 library_names_spec='$libname.ixlibrary $libname.a' 16188 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16189 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' 16190 ;; 16191 esac 16192 ;; 16193 16194beos*) 16195 library_names_spec='${libname}${shared_ext}' 16196 dynamic_linker="$host_os ld.so" 16197 shlibpath_var=LIBRARY_PATH 16198 ;; 16199 16200bsdi[45]*) 16201 version_type=linux 16202 need_version=no 16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16204 soname_spec='${libname}${release}${shared_ext}$major' 16205 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16206 shlibpath_var=LD_LIBRARY_PATH 16207 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16208 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16209 # the default ld.so.conf also contains /usr/contrib/lib and 16210 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16211 # libtool to hard-code these into programs 16212 ;; 16213 16214cygwin* | mingw* | pw32* | cegcc*) 16215 version_type=windows 16216 shrext_cmds=".dll" 16217 need_version=no 16218 need_lib_prefix=no 16219 16220 case $GCC,$cc_basename in 16221 yes,*) 16222 # gcc 16223 library_names_spec='$libname.dll.a' 16224 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16225 postinstall_cmds='base_file=`basename \${file}`~ 16226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16227 dldir=$destdir/`dirname \$dlpath`~ 16228 test -d \$dldir || mkdir -p \$dldir~ 16229 $install_prog $dir/$dlname \$dldir/$dlname~ 16230 chmod a+x \$dldir/$dlname~ 16231 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16232 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16233 fi' 16234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16235 dlpath=$dir/\$dldll~ 16236 $RM \$dlpath' 16237 shlibpath_overrides_runpath=yes 16238 16239 case $host_os in 16240 cygwin*) 16241 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16242 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16243 16244 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 16245 ;; 16246 mingw* | cegcc*) 16247 # MinGW DLLs use traditional 'lib' prefix 16248 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16249 ;; 16250 pw32*) 16251 # pw32 DLLs use 'pw' prefix rather than 'lib' 16252 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16253 ;; 16254 esac 16255 dynamic_linker='Win32 ld.exe' 16256 ;; 16257 16258 *,cl*) 16259 # Native MSVC 16260 libname_spec='$name' 16261 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16262 library_names_spec='${libname}.dll.lib' 16263 16264 case $build_os in 16265 mingw*) 16266 sys_lib_search_path_spec= 16267 lt_save_ifs=$IFS 16268 IFS=';' 16269 for lt_path in $LIB 16270 do 16271 IFS=$lt_save_ifs 16272 # Let DOS variable expansion print the short 8.3 style file name. 16273 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16274 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16275 done 16276 IFS=$lt_save_ifs 16277 # Convert to MSYS style. 16278 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16279 ;; 16280 cygwin*) 16281 # Convert to unix form, then to dos form, then back to unix form 16282 # but this time dos style (no spaces!) so that the unix form looks 16283 # like /cygdrive/c/PROGRA~1:/cygdr... 16284 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16285 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16286 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16287 ;; 16288 *) 16289 sys_lib_search_path_spec="$LIB" 16290 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16291 # It is most probably a Windows format PATH. 16292 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16293 else 16294 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16295 fi 16296 # FIXME: find the short name or the path components, as spaces are 16297 # common. (e.g. "Program Files" -> "PROGRA~1") 16298 ;; 16299 esac 16300 16301 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16302 postinstall_cmds='base_file=`basename \${file}`~ 16303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16304 dldir=$destdir/`dirname \$dlpath`~ 16305 test -d \$dldir || mkdir -p \$dldir~ 16306 $install_prog $dir/$dlname \$dldir/$dlname' 16307 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16308 dlpath=$dir/\$dldll~ 16309 $RM \$dlpath' 16310 shlibpath_overrides_runpath=yes 16311 dynamic_linker='Win32 link.exe' 16312 ;; 16313 16314 *) 16315 # Assume MSVC wrapper 16316 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16317 dynamic_linker='Win32 ld.exe' 16318 ;; 16319 esac 16320 # FIXME: first we should search . and the directory the executable is in 16321 shlibpath_var=PATH 16322 ;; 16323 16324darwin* | rhapsody*) 16325 dynamic_linker="$host_os dyld" 16326 version_type=darwin 16327 need_lib_prefix=no 16328 need_version=no 16329 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16330 soname_spec='${libname}${release}${major}$shared_ext' 16331 shlibpath_overrides_runpath=yes 16332 shlibpath_var=DYLD_LIBRARY_PATH 16333 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16334 16335 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 16336 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16337 ;; 16338 16339dgux*) 16340 version_type=linux 16341 need_lib_prefix=no 16342 need_version=no 16343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16344 soname_spec='${libname}${release}${shared_ext}$major' 16345 shlibpath_var=LD_LIBRARY_PATH 16346 ;; 16347 16348freebsd1*) 16349 dynamic_linker=no 16350 ;; 16351 16352freebsd* | dragonfly*) 16353 # DragonFly does not have aout. When/if they implement a new 16354 # versioning mechanism, adjust this. 16355 if test -x /usr/bin/objformat; then 16356 objformat=`/usr/bin/objformat` 16357 else 16358 case $host_os in 16359 freebsd[123]*) objformat=aout ;; 16360 *) objformat=elf ;; 16361 esac 16362 fi 16363 version_type=freebsd-$objformat 16364 case $version_type in 16365 freebsd-elf*) 16366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16367 need_version=no 16368 need_lib_prefix=no 16369 ;; 16370 freebsd-*) 16371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16372 need_version=yes 16373 ;; 16374 esac 16375 shlibpath_var=LD_LIBRARY_PATH 16376 case $host_os in 16377 freebsd2*) 16378 shlibpath_overrides_runpath=yes 16379 ;; 16380 freebsd3.[01]* | freebsdelf3.[01]*) 16381 shlibpath_overrides_runpath=yes 16382 hardcode_into_libs=yes 16383 ;; 16384 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16385 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16386 shlibpath_overrides_runpath=no 16387 hardcode_into_libs=yes 16388 ;; 16389 *) # from 4.6 on, and DragonFly 16390 shlibpath_overrides_runpath=yes 16391 hardcode_into_libs=yes 16392 ;; 16393 esac 16394 ;; 16395 16396gnu*) 16397 version_type=linux 16398 need_lib_prefix=no 16399 need_version=no 16400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16401 soname_spec='${libname}${release}${shared_ext}$major' 16402 shlibpath_var=LD_LIBRARY_PATH 16403 hardcode_into_libs=yes 16404 ;; 16405 16406haiku*) 16407 version_type=linux 16408 need_lib_prefix=no 16409 need_version=no 16410 dynamic_linker="$host_os runtime_loader" 16411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16412 soname_spec='${libname}${release}${shared_ext}$major' 16413 shlibpath_var=LIBRARY_PATH 16414 shlibpath_overrides_runpath=yes 16415 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16416 hardcode_into_libs=yes 16417 ;; 16418 16419hpux9* | hpux10* | hpux11*) 16420 # Give a soname corresponding to the major version so that dld.sl refuses to 16421 # link against other versions. 16422 version_type=sunos 16423 need_lib_prefix=no 16424 need_version=no 16425 case $host_cpu in 16426 ia64*) 16427 shrext_cmds='.so' 16428 hardcode_into_libs=yes 16429 dynamic_linker="$host_os dld.so" 16430 shlibpath_var=LD_LIBRARY_PATH 16431 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16433 soname_spec='${libname}${release}${shared_ext}$major' 16434 if test "X$HPUX_IA64_MODE" = X32; then 16435 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16436 else 16437 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16438 fi 16439 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16440 ;; 16441 hppa*64*) 16442 shrext_cmds='.sl' 16443 hardcode_into_libs=yes 16444 dynamic_linker="$host_os dld.sl" 16445 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16446 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16448 soname_spec='${libname}${release}${shared_ext}$major' 16449 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16451 ;; 16452 *) 16453 shrext_cmds='.sl' 16454 dynamic_linker="$host_os dld.sl" 16455 shlibpath_var=SHLIB_PATH 16456 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16458 soname_spec='${libname}${release}${shared_ext}$major' 16459 ;; 16460 esac 16461 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16462 postinstall_cmds='chmod 555 $lib' 16463 # or fails outright, so override atomically: 16464 install_override_mode=555 16465 ;; 16466 16467interix[3-9]*) 16468 version_type=linux 16469 need_lib_prefix=no 16470 need_version=no 16471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16472 soname_spec='${libname}${release}${shared_ext}$major' 16473 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16474 shlibpath_var=LD_LIBRARY_PATH 16475 shlibpath_overrides_runpath=no 16476 hardcode_into_libs=yes 16477 ;; 16478 16479irix5* | irix6* | nonstopux*) 16480 case $host_os in 16481 nonstopux*) version_type=nonstopux ;; 16482 *) 16483 if test "$lt_cv_prog_gnu_ld" = yes; then 16484 version_type=linux 16485 else 16486 version_type=irix 16487 fi ;; 16488 esac 16489 need_lib_prefix=no 16490 need_version=no 16491 soname_spec='${libname}${release}${shared_ext}$major' 16492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16493 case $host_os in 16494 irix5* | nonstopux*) 16495 libsuff= shlibsuff= 16496 ;; 16497 *) 16498 case $LD in # libtool.m4 will add one of these switches to LD 16499 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16500 libsuff= shlibsuff= libmagic=32-bit;; 16501 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16502 libsuff=32 shlibsuff=N32 libmagic=N32;; 16503 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16504 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16505 *) libsuff= shlibsuff= libmagic=never-match;; 16506 esac 16507 ;; 16508 esac 16509 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16510 shlibpath_overrides_runpath=no 16511 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16512 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16513 hardcode_into_libs=yes 16514 ;; 16515 16516# No shared lib support for Linux oldld, aout, or coff. 16517linux*oldld* | linux*aout* | linux*coff*) 16518 dynamic_linker=no 16519 ;; 16520 16521# This must be Linux ELF. 16522linux* | k*bsd*-gnu | kopensolaris*-gnu) 16523 version_type=linux 16524 need_lib_prefix=no 16525 need_version=no 16526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16527 soname_spec='${libname}${release}${shared_ext}$major' 16528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16529 shlibpath_var=LD_LIBRARY_PATH 16530 shlibpath_overrides_runpath=no 16531 16532 # Some binutils ld are patched to set DT_RUNPATH 16533 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16534 $as_echo_n "(cached) " >&6 16535else 16536 lt_cv_shlibpath_overrides_runpath=no 16537 save_LDFLAGS=$LDFLAGS 16538 save_libdir=$libdir 16539 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 16540 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 16541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16542/* end confdefs.h. */ 16543 16544int 16545main () 16546{ 16547 16548 ; 16549 return 0; 16550} 16551_ACEOF 16552if ac_fn_c_try_link "$LINENO"; then : 16553 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16554 lt_cv_shlibpath_overrides_runpath=yes 16555fi 16556fi 16557rm -f core conftest.err conftest.$ac_objext \ 16558 conftest$ac_exeext conftest.$ac_ext 16559 LDFLAGS=$save_LDFLAGS 16560 libdir=$save_libdir 16561 16562fi 16563 16564 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16565 16566 # This implies no fast_install, which is unacceptable. 16567 # Some rework will be needed to allow for fast_install 16568 # before this can be enabled. 16569 hardcode_into_libs=yes 16570 16571 # Append ld.so.conf contents to the search path 16572 if test -f /etc/ld.so.conf; then 16573 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' ' '` 16574 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16575 fi 16576 16577 # We used to test for /lib/ld.so.1 and disable shared libraries on 16578 # powerpc, because MkLinux only supported shared libraries with the 16579 # GNU dynamic linker. Since this was broken with cross compilers, 16580 # most powerpc-linux boxes support dynamic linking these days and 16581 # people can always --disable-shared, the test was removed, and we 16582 # assume the GNU/Linux dynamic linker is in use. 16583 dynamic_linker='GNU/Linux ld.so' 16584 ;; 16585 16586netbsd*) 16587 version_type=sunos 16588 need_lib_prefix=no 16589 need_version=no 16590 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16592 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16593 dynamic_linker='NetBSD (a.out) ld.so' 16594 else 16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16596 soname_spec='${libname}${release}${shared_ext}$major' 16597 dynamic_linker='NetBSD ld.elf_so' 16598 fi 16599 shlibpath_var=LD_LIBRARY_PATH 16600 shlibpath_overrides_runpath=yes 16601 hardcode_into_libs=yes 16602 ;; 16603 16604newsos6) 16605 version_type=linux 16606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16607 shlibpath_var=LD_LIBRARY_PATH 16608 shlibpath_overrides_runpath=yes 16609 ;; 16610 16611*nto* | *qnx*) 16612 version_type=qnx 16613 need_lib_prefix=no 16614 need_version=no 16615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16616 soname_spec='${libname}${release}${shared_ext}$major' 16617 shlibpath_var=LD_LIBRARY_PATH 16618 shlibpath_overrides_runpath=no 16619 hardcode_into_libs=yes 16620 dynamic_linker='ldqnx.so' 16621 ;; 16622 16623openbsd*) 16624 version_type=sunos 16625 sys_lib_dlsearch_path_spec="/usr/lib" 16626 need_lib_prefix=no 16627 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16628 case $host_os in 16629 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16630 *) need_version=no ;; 16631 esac 16632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16634 shlibpath_var=LD_LIBRARY_PATH 16635 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16636 case $host_os in 16637 openbsd2.[89] | openbsd2.[89].*) 16638 shlibpath_overrides_runpath=no 16639 ;; 16640 *) 16641 shlibpath_overrides_runpath=yes 16642 ;; 16643 esac 16644 else 16645 shlibpath_overrides_runpath=yes 16646 fi 16647 ;; 16648 16649os2*) 16650 libname_spec='$name' 16651 shrext_cmds=".dll" 16652 need_lib_prefix=no 16653 library_names_spec='$libname${shared_ext} $libname.a' 16654 dynamic_linker='OS/2 ld.exe' 16655 shlibpath_var=LIBPATH 16656 ;; 16657 16658osf3* | osf4* | osf5*) 16659 version_type=osf 16660 need_lib_prefix=no 16661 need_version=no 16662 soname_spec='${libname}${release}${shared_ext}$major' 16663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16664 shlibpath_var=LD_LIBRARY_PATH 16665 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16666 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16667 ;; 16668 16669rdos*) 16670 dynamic_linker=no 16671 ;; 16672 16673solaris*) 16674 version_type=linux 16675 need_lib_prefix=no 16676 need_version=no 16677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16678 soname_spec='${libname}${release}${shared_ext}$major' 16679 shlibpath_var=LD_LIBRARY_PATH 16680 shlibpath_overrides_runpath=yes 16681 hardcode_into_libs=yes 16682 # ldd complains unless libraries are executable 16683 postinstall_cmds='chmod +x $lib' 16684 ;; 16685 16686sunos4*) 16687 version_type=sunos 16688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16689 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16690 shlibpath_var=LD_LIBRARY_PATH 16691 shlibpath_overrides_runpath=yes 16692 if test "$with_gnu_ld" = yes; then 16693 need_lib_prefix=no 16694 fi 16695 need_version=yes 16696 ;; 16697 16698sysv4 | sysv4.3*) 16699 version_type=linux 16700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16701 soname_spec='${libname}${release}${shared_ext}$major' 16702 shlibpath_var=LD_LIBRARY_PATH 16703 case $host_vendor in 16704 sni) 16705 shlibpath_overrides_runpath=no 16706 need_lib_prefix=no 16707 runpath_var=LD_RUN_PATH 16708 ;; 16709 siemens) 16710 need_lib_prefix=no 16711 ;; 16712 motorola) 16713 need_lib_prefix=no 16714 need_version=no 16715 shlibpath_overrides_runpath=no 16716 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16717 ;; 16718 esac 16719 ;; 16720 16721sysv4*MP*) 16722 if test -d /usr/nec ;then 16723 version_type=linux 16724 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16725 soname_spec='$libname${shared_ext}.$major' 16726 shlibpath_var=LD_LIBRARY_PATH 16727 fi 16728 ;; 16729 16730sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16731 version_type=freebsd-elf 16732 need_lib_prefix=no 16733 need_version=no 16734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16735 soname_spec='${libname}${release}${shared_ext}$major' 16736 shlibpath_var=LD_LIBRARY_PATH 16737 shlibpath_overrides_runpath=yes 16738 hardcode_into_libs=yes 16739 if test "$with_gnu_ld" = yes; then 16740 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16741 else 16742 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16743 case $host_os in 16744 sco3.2v5*) 16745 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16746 ;; 16747 esac 16748 fi 16749 sys_lib_dlsearch_path_spec='/usr/lib' 16750 ;; 16751 16752tpf*) 16753 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16754 version_type=linux 16755 need_lib_prefix=no 16756 need_version=no 16757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16758 shlibpath_var=LD_LIBRARY_PATH 16759 shlibpath_overrides_runpath=no 16760 hardcode_into_libs=yes 16761 ;; 16762 16763uts4*) 16764 version_type=linux 16765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16766 soname_spec='${libname}${release}${shared_ext}$major' 16767 shlibpath_var=LD_LIBRARY_PATH 16768 ;; 16769 16770*) 16771 dynamic_linker=no 16772 ;; 16773esac 16774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16775$as_echo "$dynamic_linker" >&6; } 16776test "$dynamic_linker" = no && can_build_shared=no 16777 16778variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16779if test "$GCC" = yes; then 16780 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16781fi 16782 16783if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16784 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16785fi 16786if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16787 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16788fi 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16882$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16883hardcode_action= 16884if test -n "$hardcode_libdir_flag_spec" || 16885 test -n "$runpath_var" || 16886 test "X$hardcode_automatic" = "Xyes" ; then 16887 16888 # We can hardcode non-existent directories. 16889 if test "$hardcode_direct" != no && 16890 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16891 # have to relink, otherwise we might link with an installed library 16892 # when we should be linking with a yet-to-be-installed one 16893 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 16894 test "$hardcode_minus_L" != no; then 16895 # Linking always hardcodes the temporary library directory. 16896 hardcode_action=relink 16897 else 16898 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16899 hardcode_action=immediate 16900 fi 16901else 16902 # We cannot hardcode anything, or else we can only hardcode existing 16903 # directories. 16904 hardcode_action=unsupported 16905fi 16906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 16907$as_echo "$hardcode_action" >&6; } 16908 16909if test "$hardcode_action" = relink || 16910 test "$inherit_rpath" = yes; then 16911 # Fast installation is not supported 16912 enable_fast_install=no 16913elif test "$shlibpath_overrides_runpath" = yes || 16914 test "$enable_shared" = no; then 16915 # Fast installation is not necessary 16916 enable_fast_install=needless 16917fi 16918 16919 16920 16921 16922 16923 16924 if test "x$enable_dlopen" != xyes; then 16925 enable_dlopen=unknown 16926 enable_dlopen_self=unknown 16927 enable_dlopen_self_static=unknown 16928else 16929 lt_cv_dlopen=no 16930 lt_cv_dlopen_libs= 16931 16932 case $host_os in 16933 beos*) 16934 lt_cv_dlopen="load_add_on" 16935 lt_cv_dlopen_libs= 16936 lt_cv_dlopen_self=yes 16937 ;; 16938 16939 mingw* | pw32* | cegcc*) 16940 lt_cv_dlopen="LoadLibrary" 16941 lt_cv_dlopen_libs= 16942 ;; 16943 16944 cygwin*) 16945 lt_cv_dlopen="dlopen" 16946 lt_cv_dlopen_libs= 16947 ;; 16948 16949 darwin*) 16950 # if libdl is installed we need to link against it 16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16952$as_echo_n "checking for dlopen in -ldl... " >&6; } 16953if ${ac_cv_lib_dl_dlopen+:} false; then : 16954 $as_echo_n "(cached) " >&6 16955else 16956 ac_check_lib_save_LIBS=$LIBS 16957LIBS="-ldl $LIBS" 16958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16959/* end confdefs.h. */ 16960 16961/* Override any GCC internal prototype to avoid an error. 16962 Use char because int might match the return type of a GCC 16963 builtin and then its argument prototype would still apply. */ 16964#ifdef __cplusplus 16965extern "C" 16966#endif 16967char dlopen (); 16968int 16969main () 16970{ 16971return dlopen (); 16972 ; 16973 return 0; 16974} 16975_ACEOF 16976if ac_fn_c_try_link "$LINENO"; then : 16977 ac_cv_lib_dl_dlopen=yes 16978else 16979 ac_cv_lib_dl_dlopen=no 16980fi 16981rm -f core conftest.err conftest.$ac_objext \ 16982 conftest$ac_exeext conftest.$ac_ext 16983LIBS=$ac_check_lib_save_LIBS 16984fi 16985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16986$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 16987if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 16988 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16989else 16990 16991 lt_cv_dlopen="dyld" 16992 lt_cv_dlopen_libs= 16993 lt_cv_dlopen_self=yes 16994 16995fi 16996 16997 ;; 16998 16999 *) 17000 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17001if test "x$ac_cv_func_shl_load" = xyes; then : 17002 lt_cv_dlopen="shl_load" 17003else 17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17005$as_echo_n "checking for shl_load in -ldld... " >&6; } 17006if ${ac_cv_lib_dld_shl_load+:} false; then : 17007 $as_echo_n "(cached) " >&6 17008else 17009 ac_check_lib_save_LIBS=$LIBS 17010LIBS="-ldld $LIBS" 17011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17012/* end confdefs.h. */ 17013 17014/* Override any GCC internal prototype to avoid an error. 17015 Use char because int might match the return type of a GCC 17016 builtin and then its argument prototype would still apply. */ 17017#ifdef __cplusplus 17018extern "C" 17019#endif 17020char shl_load (); 17021int 17022main () 17023{ 17024return shl_load (); 17025 ; 17026 return 0; 17027} 17028_ACEOF 17029if ac_fn_c_try_link "$LINENO"; then : 17030 ac_cv_lib_dld_shl_load=yes 17031else 17032 ac_cv_lib_dld_shl_load=no 17033fi 17034rm -f core conftest.err conftest.$ac_objext \ 17035 conftest$ac_exeext conftest.$ac_ext 17036LIBS=$ac_check_lib_save_LIBS 17037fi 17038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17039$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17040if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17041 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 17042else 17043 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17044if test "x$ac_cv_func_dlopen" = xyes; then : 17045 lt_cv_dlopen="dlopen" 17046else 17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17048$as_echo_n "checking for dlopen in -ldl... " >&6; } 17049if ${ac_cv_lib_dl_dlopen+:} false; then : 17050 $as_echo_n "(cached) " >&6 17051else 17052 ac_check_lib_save_LIBS=$LIBS 17053LIBS="-ldl $LIBS" 17054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17055/* end confdefs.h. */ 17056 17057/* Override any GCC internal prototype to avoid an error. 17058 Use char because int might match the return type of a GCC 17059 builtin and then its argument prototype would still apply. */ 17060#ifdef __cplusplus 17061extern "C" 17062#endif 17063char dlopen (); 17064int 17065main () 17066{ 17067return dlopen (); 17068 ; 17069 return 0; 17070} 17071_ACEOF 17072if ac_fn_c_try_link "$LINENO"; then : 17073 ac_cv_lib_dl_dlopen=yes 17074else 17075 ac_cv_lib_dl_dlopen=no 17076fi 17077rm -f core conftest.err conftest.$ac_objext \ 17078 conftest$ac_exeext conftest.$ac_ext 17079LIBS=$ac_check_lib_save_LIBS 17080fi 17081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17082$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17083if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17084 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17085else 17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17087$as_echo_n "checking for dlopen in -lsvld... " >&6; } 17088if ${ac_cv_lib_svld_dlopen+:} false; then : 17089 $as_echo_n "(cached) " >&6 17090else 17091 ac_check_lib_save_LIBS=$LIBS 17092LIBS="-lsvld $LIBS" 17093cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17094/* end confdefs.h. */ 17095 17096/* Override any GCC internal prototype to avoid an error. 17097 Use char because int might match the return type of a GCC 17098 builtin and then its argument prototype would still apply. */ 17099#ifdef __cplusplus 17100extern "C" 17101#endif 17102char dlopen (); 17103int 17104main () 17105{ 17106return dlopen (); 17107 ; 17108 return 0; 17109} 17110_ACEOF 17111if ac_fn_c_try_link "$LINENO"; then : 17112 ac_cv_lib_svld_dlopen=yes 17113else 17114 ac_cv_lib_svld_dlopen=no 17115fi 17116rm -f core conftest.err conftest.$ac_objext \ 17117 conftest$ac_exeext conftest.$ac_ext 17118LIBS=$ac_check_lib_save_LIBS 17119fi 17120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17121$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 17122if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 17123 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17124else 17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 17126$as_echo_n "checking for dld_link in -ldld... " >&6; } 17127if ${ac_cv_lib_dld_dld_link+:} false; then : 17128 $as_echo_n "(cached) " >&6 17129else 17130 ac_check_lib_save_LIBS=$LIBS 17131LIBS="-ldld $LIBS" 17132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17133/* end confdefs.h. */ 17134 17135/* Override any GCC internal prototype to avoid an error. 17136 Use char because int might match the return type of a GCC 17137 builtin and then its argument prototype would still apply. */ 17138#ifdef __cplusplus 17139extern "C" 17140#endif 17141char dld_link (); 17142int 17143main () 17144{ 17145return dld_link (); 17146 ; 17147 return 0; 17148} 17149_ACEOF 17150if ac_fn_c_try_link "$LINENO"; then : 17151 ac_cv_lib_dld_dld_link=yes 17152else 17153 ac_cv_lib_dld_dld_link=no 17154fi 17155rm -f core conftest.err conftest.$ac_objext \ 17156 conftest$ac_exeext conftest.$ac_ext 17157LIBS=$ac_check_lib_save_LIBS 17158fi 17159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 17160$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 17161if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 17162 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 17163fi 17164 17165 17166fi 17167 17168 17169fi 17170 17171 17172fi 17173 17174 17175fi 17176 17177 17178fi 17179 17180 ;; 17181 esac 17182 17183 if test "x$lt_cv_dlopen" != xno; then 17184 enable_dlopen=yes 17185 else 17186 enable_dlopen=no 17187 fi 17188 17189 case $lt_cv_dlopen in 17190 dlopen) 17191 save_CPPFLAGS="$CPPFLAGS" 17192 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17193 17194 save_LDFLAGS="$LDFLAGS" 17195 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17196 17197 save_LIBS="$LIBS" 17198 LIBS="$lt_cv_dlopen_libs $LIBS" 17199 17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 17201$as_echo_n "checking whether a program can dlopen itself... " >&6; } 17202if ${lt_cv_dlopen_self+:} false; then : 17203 $as_echo_n "(cached) " >&6 17204else 17205 if test "$cross_compiling" = yes; then : 17206 lt_cv_dlopen_self=cross 17207else 17208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17209 lt_status=$lt_dlunknown 17210 cat > conftest.$ac_ext <<_LT_EOF 17211#line $LINENO "configure" 17212#include "confdefs.h" 17213 17214#if HAVE_DLFCN_H 17215#include <dlfcn.h> 17216#endif 17217 17218#include <stdio.h> 17219 17220#ifdef RTLD_GLOBAL 17221# define LT_DLGLOBAL RTLD_GLOBAL 17222#else 17223# ifdef DL_GLOBAL 17224# define LT_DLGLOBAL DL_GLOBAL 17225# else 17226# define LT_DLGLOBAL 0 17227# endif 17228#endif 17229 17230/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17231 find out it does not work in some platform. */ 17232#ifndef LT_DLLAZY_OR_NOW 17233# ifdef RTLD_LAZY 17234# define LT_DLLAZY_OR_NOW RTLD_LAZY 17235# else 17236# ifdef DL_LAZY 17237# define LT_DLLAZY_OR_NOW DL_LAZY 17238# else 17239# ifdef RTLD_NOW 17240# define LT_DLLAZY_OR_NOW RTLD_NOW 17241# else 17242# ifdef DL_NOW 17243# define LT_DLLAZY_OR_NOW DL_NOW 17244# else 17245# define LT_DLLAZY_OR_NOW 0 17246# endif 17247# endif 17248# endif 17249# endif 17250#endif 17251 17252/* When -fvisbility=hidden is used, assume the code has been annotated 17253 correspondingly for the symbols needed. */ 17254#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17255int fnord () __attribute__((visibility("default"))); 17256#endif 17257 17258int fnord () { return 42; } 17259int main () 17260{ 17261 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17262 int status = $lt_dlunknown; 17263 17264 if (self) 17265 { 17266 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17267 else 17268 { 17269 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17270 else puts (dlerror ()); 17271 } 17272 /* dlclose (self); */ 17273 } 17274 else 17275 puts (dlerror ()); 17276 17277 return status; 17278} 17279_LT_EOF 17280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17281 (eval $ac_link) 2>&5 17282 ac_status=$? 17283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17284 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17285 (./conftest; exit; ) >&5 2>/dev/null 17286 lt_status=$? 17287 case x$lt_status in 17288 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17289 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17290 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 17291 esac 17292 else : 17293 # compilation failed 17294 lt_cv_dlopen_self=no 17295 fi 17296fi 17297rm -fr conftest* 17298 17299 17300fi 17301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 17302$as_echo "$lt_cv_dlopen_self" >&6; } 17303 17304 if test "x$lt_cv_dlopen_self" = xyes; then 17305 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 17307$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 17308if ${lt_cv_dlopen_self_static+:} false; then : 17309 $as_echo_n "(cached) " >&6 17310else 17311 if test "$cross_compiling" = yes; then : 17312 lt_cv_dlopen_self_static=cross 17313else 17314 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17315 lt_status=$lt_dlunknown 17316 cat > conftest.$ac_ext <<_LT_EOF 17317#line $LINENO "configure" 17318#include "confdefs.h" 17319 17320#if HAVE_DLFCN_H 17321#include <dlfcn.h> 17322#endif 17323 17324#include <stdio.h> 17325 17326#ifdef RTLD_GLOBAL 17327# define LT_DLGLOBAL RTLD_GLOBAL 17328#else 17329# ifdef DL_GLOBAL 17330# define LT_DLGLOBAL DL_GLOBAL 17331# else 17332# define LT_DLGLOBAL 0 17333# endif 17334#endif 17335 17336/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17337 find out it does not work in some platform. */ 17338#ifndef LT_DLLAZY_OR_NOW 17339# ifdef RTLD_LAZY 17340# define LT_DLLAZY_OR_NOW RTLD_LAZY 17341# else 17342# ifdef DL_LAZY 17343# define LT_DLLAZY_OR_NOW DL_LAZY 17344# else 17345# ifdef RTLD_NOW 17346# define LT_DLLAZY_OR_NOW RTLD_NOW 17347# else 17348# ifdef DL_NOW 17349# define LT_DLLAZY_OR_NOW DL_NOW 17350# else 17351# define LT_DLLAZY_OR_NOW 0 17352# endif 17353# endif 17354# endif 17355# endif 17356#endif 17357 17358/* When -fvisbility=hidden is used, assume the code has been annotated 17359 correspondingly for the symbols needed. */ 17360#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17361int fnord () __attribute__((visibility("default"))); 17362#endif 17363 17364int fnord () { return 42; } 17365int main () 17366{ 17367 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17368 int status = $lt_dlunknown; 17369 17370 if (self) 17371 { 17372 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17373 else 17374 { 17375 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17376 else puts (dlerror ()); 17377 } 17378 /* dlclose (self); */ 17379 } 17380 else 17381 puts (dlerror ()); 17382 17383 return status; 17384} 17385_LT_EOF 17386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17387 (eval $ac_link) 2>&5 17388 ac_status=$? 17389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17390 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17391 (./conftest; exit; ) >&5 2>/dev/null 17392 lt_status=$? 17393 case x$lt_status in 17394 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17395 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17396 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 17397 esac 17398 else : 17399 # compilation failed 17400 lt_cv_dlopen_self_static=no 17401 fi 17402fi 17403rm -fr conftest* 17404 17405 17406fi 17407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 17408$as_echo "$lt_cv_dlopen_self_static" >&6; } 17409 fi 17410 17411 CPPFLAGS="$save_CPPFLAGS" 17412 LDFLAGS="$save_LDFLAGS" 17413 LIBS="$save_LIBS" 17414 ;; 17415 esac 17416 17417 case $lt_cv_dlopen_self in 17418 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17419 *) enable_dlopen_self=unknown ;; 17420 esac 17421 17422 case $lt_cv_dlopen_self_static in 17423 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17424 *) enable_dlopen_self_static=unknown ;; 17425 esac 17426fi 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444striplib= 17445old_striplib= 17446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 17447$as_echo_n "checking whether stripping libraries is possible... " >&6; } 17448if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 17449 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17450 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17452$as_echo "yes" >&6; } 17453else 17454# FIXME - insert some real tests, host_os isn't really good enough 17455 case $host_os in 17456 darwin*) 17457 if test -n "$STRIP" ; then 17458 striplib="$STRIP -x" 17459 old_striplib="$STRIP -S" 17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17461$as_echo "yes" >&6; } 17462 else 17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17464$as_echo "no" >&6; } 17465 fi 17466 ;; 17467 *) 17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17469$as_echo "no" >&6; } 17470 ;; 17471 esac 17472fi 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 # Report which library types will actually be built 17486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 17487$as_echo_n "checking if libtool supports shared libraries... " >&6; } 17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 17489$as_echo "$can_build_shared" >&6; } 17490 17491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 17492$as_echo_n "checking whether to build shared libraries... " >&6; } 17493 test "$can_build_shared" = "no" && enable_shared=no 17494 17495 # On AIX, shared libraries and static libraries use the same namespace, and 17496 # are all built from PIC. 17497 case $host_os in 17498 aix3*) 17499 test "$enable_shared" = yes && enable_static=no 17500 if test -n "$RANLIB"; then 17501 archive_cmds="$archive_cmds~\$RANLIB \$lib" 17502 postinstall_cmds='$RANLIB $lib' 17503 fi 17504 ;; 17505 17506 aix[4-9]*) 17507 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 17508 test "$enable_shared" = yes && enable_static=no 17509 fi 17510 ;; 17511 esac 17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 17513$as_echo "$enable_shared" >&6; } 17514 17515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 17516$as_echo_n "checking whether to build static libraries... " >&6; } 17517 # Make sure either enable_shared or enable_static is yes. 17518 test "$enable_shared" = yes || enable_static=yes 17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 17520$as_echo "$enable_static" >&6; } 17521 17522 17523 17524 17525fi 17526ac_ext=c 17527ac_cpp='$CPP $CPPFLAGS' 17528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17530ac_compiler_gnu=$ac_cv_c_compiler_gnu 17531 17532CC="$lt_save_CC" 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 ac_config_commands="$ac_config_commands libtool" 17547 17548 17549 17550 17551# Only expand once: 17552 17553 17554 17555 17556 17557# Define a configure option for an alternate module directory 17558 17559# Check whether --with-xorg-module-dir was given. 17560if test "${with_xorg_module_dir+set}" = set; then : 17561 withval=$with_xorg_module_dir; moduledir="$withval" 17562else 17563 moduledir="$libdir/xorg/modules" 17564fi 17565 17566 17567# Store the list of server defined optional extensions in REQUIRED_MODULES 17568 17569 17570 SAVE_CFLAGS="$CFLAGS" 17571 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17573/* end confdefs.h. */ 17574 17575#include "xorg-server.h" 17576#if !defined RANDR 17577#error RANDR not defined 17578#endif 17579 17580int 17581main () 17582{ 17583 17584 ; 17585 return 0; 17586} 17587_ACEOF 17588if ac_fn_c_try_compile "$LINENO"; then : 17589 _EXT_CHECK=yes 17590else 17591 _EXT_CHECK=no 17592fi 17593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17594 CFLAGS="$SAVE_CFLAGS" 17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 17596$as_echo_n "checking if RANDR is defined... " >&6; } 17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17598$as_echo "$_EXT_CHECK" >&6; } 17599 if test "$_EXT_CHECK" != no; then 17600 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 17601 fi 17602 17603 17604 17605 SAVE_CFLAGS="$CFLAGS" 17606 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17608/* end confdefs.h. */ 17609 17610#include "xorg-server.h" 17611#if !defined RENDER 17612#error RENDER not defined 17613#endif 17614 17615int 17616main () 17617{ 17618 17619 ; 17620 return 0; 17621} 17622_ACEOF 17623if ac_fn_c_try_compile "$LINENO"; then : 17624 _EXT_CHECK=yes 17625else 17626 _EXT_CHECK=no 17627fi 17628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17629 CFLAGS="$SAVE_CFLAGS" 17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 17631$as_echo_n "checking if RENDER is defined... " >&6; } 17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17633$as_echo "$_EXT_CHECK" >&6; } 17634 if test "$_EXT_CHECK" != no; then 17635 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 17636 fi 17637 17638 17639 17640 SAVE_CFLAGS="$CFLAGS" 17641 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17643/* end confdefs.h. */ 17644 17645#include "xorg-server.h" 17646#if !defined XV 17647#error XV not defined 17648#endif 17649 17650int 17651main () 17652{ 17653 17654 ; 17655 return 0; 17656} 17657_ACEOF 17658if ac_fn_c_try_compile "$LINENO"; then : 17659 _EXT_CHECK=yes 17660else 17661 _EXT_CHECK=no 17662fi 17663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17664 CFLAGS="$SAVE_CFLAGS" 17665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 17666$as_echo_n "checking if XV is defined... " >&6; } 17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17668$as_echo "$_EXT_CHECK" >&6; } 17669 if test "$_EXT_CHECK" != no; then 17670 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 17671 fi 17672 17673 17674 17675 SAVE_CFLAGS="$CFLAGS" 17676 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17678/* end confdefs.h. */ 17679 17680#include "xorg-server.h" 17681#if !defined DPMSExtension 17682#error DPMSExtension not defined 17683#endif 17684 17685int 17686main () 17687{ 17688 17689 ; 17690 return 0; 17691} 17692_ACEOF 17693if ac_fn_c_try_compile "$LINENO"; then : 17694 _EXT_CHECK=yes 17695else 17696 _EXT_CHECK=no 17697fi 17698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17699 CFLAGS="$SAVE_CFLAGS" 17700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 17701$as_echo_n "checking if DPMSExtension is defined... " >&6; } 17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17703$as_echo "$_EXT_CHECK" >&6; } 17704 if test "$_EXT_CHECK" != no; then 17705 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 17706 fi 17707 17708 17709 17710 SAVE_CFLAGS="$CFLAGS" 17711 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17713/* end confdefs.h. */ 17714 17715#include "xorg-server.h" 17716#if !defined XFreeXDGA 17717#error XFreeXDGA not defined 17718#endif 17719 17720int 17721main () 17722{ 17723 17724 ; 17725 return 0; 17726} 17727_ACEOF 17728if ac_fn_c_try_compile "$LINENO"; then : 17729 _EXT_CHECK=yes 17730else 17731 _EXT_CHECK=no 17732fi 17733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17734 CFLAGS="$SAVE_CFLAGS" 17735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XFreeXDGA is defined" >&5 17736$as_echo_n "checking if XFreeXDGA is defined... " >&6; } 17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17738$as_echo "$_EXT_CHECK" >&6; } 17739 if test "$_EXT_CHECK" != no; then 17740 REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto" 17741 fi 17742 17743 17744# Obtain compiler/linker options for the driver dependencies 17745 17746pkg_failed=no 17747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 17748$as_echo_n "checking for XORG... " >&6; } 17749 17750if test -n "$XORG_CFLAGS"; then 17751 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 17752 elif test -n "$PKG_CONFIG"; then 17753 if test -n "$PKG_CONFIG" && \ 17754 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 17755 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 17756 ac_status=$? 17757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17758 test $ac_status = 0; }; then 17759 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 17760else 17761 pkg_failed=yes 17762fi 17763 else 17764 pkg_failed=untried 17765fi 17766if test -n "$XORG_LIBS"; then 17767 pkg_cv_XORG_LIBS="$XORG_LIBS" 17768 elif test -n "$PKG_CONFIG"; then 17769 if test -n "$PKG_CONFIG" && \ 17770 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 17771 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 17772 ac_status=$? 17773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17774 test $ac_status = 0; }; then 17775 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 17776else 17777 pkg_failed=yes 17778fi 17779 else 17780 pkg_failed=untried 17781fi 17782 17783 17784 17785if test $pkg_failed = yes; then 17786 17787if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17788 _pkg_short_errors_supported=yes 17789else 17790 _pkg_short_errors_supported=no 17791fi 17792 if test $_pkg_short_errors_supported = yes; then 17793 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 17794 else 17795 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 17796 fi 17797 # Put the nasty error message in config.log where it belongs 17798 echo "$XORG_PKG_ERRORS" >&5 17799 17800 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 17801 17802$XORG_PKG_ERRORS 17803 17804Consider adjusting the PKG_CONFIG_PATH environment variable if you 17805installed software in a non-standard prefix. 17806 17807Alternatively, you may set the environment variables XORG_CFLAGS 17808and XORG_LIBS to avoid the need to call pkg-config. 17809See the pkg-config man page for more details. 17810" "$LINENO" 5 17811elif test $pkg_failed = untried; then 17812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17814as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17815is in your PATH or set the PKG_CONFIG environment variable to the full 17816path to pkg-config. 17817 17818Alternatively, you may set the environment variables XORG_CFLAGS 17819and XORG_LIBS to avoid the need to call pkg-config. 17820See the pkg-config man page for more details. 17821 17822To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17823See \`config.log' for more details" "$LINENO" 5; } 17824else 17825 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 17826 XORG_LIBS=$pkg_cv_XORG_LIBS 17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17828$as_echo "yes" >&6; } 17829 : 17830fi 17831 17832pkg_failed=no 17833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 17834$as_echo_n "checking for XEXT... " >&6; } 17835 17836if test -n "$XEXT_CFLAGS"; then 17837 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 17838 elif test -n "$PKG_CONFIG"; then 17839 if test -n "$PKG_CONFIG" && \ 17840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 17841 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 17842 ac_status=$? 17843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17844 test $ac_status = 0; }; then 17845 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 17846else 17847 pkg_failed=yes 17848fi 17849 else 17850 pkg_failed=untried 17851fi 17852if test -n "$XEXT_LIBS"; then 17853 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 17854 elif test -n "$PKG_CONFIG"; then 17855 if test -n "$PKG_CONFIG" && \ 17856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 17857 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 17858 ac_status=$? 17859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17860 test $ac_status = 0; }; then 17861 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 17862else 17863 pkg_failed=yes 17864fi 17865 else 17866 pkg_failed=untried 17867fi 17868 17869 17870 17871if test $pkg_failed = yes; then 17872 17873if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17874 _pkg_short_errors_supported=yes 17875else 17876 _pkg_short_errors_supported=no 17877fi 17878 if test $_pkg_short_errors_supported = yes; then 17879 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1` 17880 else 17881 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1` 17882 fi 17883 # Put the nasty error message in config.log where it belongs 17884 echo "$XEXT_PKG_ERRORS" >&5 17885 17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17887$as_echo "no" >&6; } 17888 HAVE_XEXTPROTO_71="no" 17889elif test $pkg_failed = untried; then 17890 HAVE_XEXTPROTO_71="no" 17891else 17892 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 17893 XEXT_LIBS=$pkg_cv_XEXT_LIBS 17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17895$as_echo "yes" >&6; } 17896 HAVE_XEXTPROTO_71="yes"; 17897$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 17898 17899fi 17900 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 17901 HAVE_XEXTPROTO_71_TRUE= 17902 HAVE_XEXTPROTO_71_FALSE='#' 17903else 17904 HAVE_XEXTPROTO_71_TRUE='#' 17905 HAVE_XEXTPROTO_71_FALSE= 17906fi 17907 17908 17909save_CFLAGS="$CFLAGS" 17910CFLAGS="$XORG_CFLAGS" 17911ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\" 17912" 17913if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then : 17914 17915$as_echo "#define HAVE_ISA 1" >>confdefs.h 17916 17917fi 17918 17919CFLAGS="$save_CFLAGS" 17920 17921SAVE_CPPFLAGS="$CPPFLAGS" 17922CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 17923ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 17924" 17925if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 17926 XSERVER_LIBPCIACCESS=yes 17927else 17928 XSERVER_LIBPCIACCESS=no 17929fi 17930 17931CPPFLAGS="$SAVE_CPPFLAGS" 17932 17933if test "x$XSERVER_LIBPCIACCESS" = xyes; then 17934 17935pkg_failed=no 17936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 17937$as_echo_n "checking for PCIACCESS... " >&6; } 17938 17939if test -n "$PCIACCESS_CFLAGS"; then 17940 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 17941 elif test -n "$PKG_CONFIG"; then 17942 if test -n "$PKG_CONFIG" && \ 17943 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 17944 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 17945 ac_status=$? 17946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17947 test $ac_status = 0; }; then 17948 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 17949else 17950 pkg_failed=yes 17951fi 17952 else 17953 pkg_failed=untried 17954fi 17955if test -n "$PCIACCESS_LIBS"; then 17956 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 17957 elif test -n "$PKG_CONFIG"; then 17958 if test -n "$PKG_CONFIG" && \ 17959 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 17960 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 17961 ac_status=$? 17962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17963 test $ac_status = 0; }; then 17964 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 17965else 17966 pkg_failed=yes 17967fi 17968 else 17969 pkg_failed=untried 17970fi 17971 17972 17973 17974if test $pkg_failed = yes; then 17975 17976if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17977 _pkg_short_errors_supported=yes 17978else 17979 _pkg_short_errors_supported=no 17980fi 17981 if test $_pkg_short_errors_supported = yes; then 17982 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 17983 else 17984 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 17985 fi 17986 # Put the nasty error message in config.log where it belongs 17987 echo "$PCIACCESS_PKG_ERRORS" >&5 17988 17989 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 17990 17991$PCIACCESS_PKG_ERRORS 17992 17993Consider adjusting the PKG_CONFIG_PATH environment variable if you 17994installed software in a non-standard prefix. 17995 17996Alternatively, you may set the environment variables PCIACCESS_CFLAGS 17997and PCIACCESS_LIBS to avoid the need to call pkg-config. 17998See the pkg-config man page for more details. 17999" "$LINENO" 5 18000elif test $pkg_failed = untried; then 18001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18003as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18004is in your PATH or set the PKG_CONFIG environment variable to the full 18005path to pkg-config. 18006 18007Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18008and PCIACCESS_LIBS to avoid the need to call pkg-config. 18009See the pkg-config man page for more details. 18010 18011To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18012See \`config.log' for more details" "$LINENO" 5; } 18013else 18014 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 18015 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18017$as_echo "yes" >&6; } 18018 : 18019fi 18020 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 18021fi 18022 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18023 XSERVER_LIBPCIACCESS_TRUE= 18024 XSERVER_LIBPCIACCESS_FALSE='#' 18025else 18026 XSERVER_LIBPCIACCESS_TRUE='#' 18027 XSERVER_LIBPCIACCESS_FALSE= 18028fi 18029 18030 18031# Checks for libraries. 18032 18033 18034 18035DRIVER_NAME=trident 18036 18037 18038ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 18039 18040cat >confcache <<\_ACEOF 18041# This file is a shell script that caches the results of configure 18042# tests run on this system so they can be shared between configure 18043# scripts and configure runs, see configure's option --config-cache. 18044# It is not useful on other systems. If it contains results you don't 18045# want to keep, you may remove or edit it. 18046# 18047# config.status only pays attention to the cache file if you give it 18048# the --recheck option to rerun configure. 18049# 18050# `ac_cv_env_foo' variables (set or unset) will be overridden when 18051# loading this file, other *unset* `ac_cv_foo' will be assigned the 18052# following values. 18053 18054_ACEOF 18055 18056# The following way of writing the cache mishandles newlines in values, 18057# but we know of no workaround that is simple, portable, and efficient. 18058# So, we kill variables containing newlines. 18059# Ultrix sh set writes to stderr and can't be redirected directly, 18060# and sets the high bit in the cache file unless we assign to the vars. 18061( 18062 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18063 eval ac_val=\$$ac_var 18064 case $ac_val in #( 18065 *${as_nl}*) 18066 case $ac_var in #( 18067 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18068$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18069 esac 18070 case $ac_var in #( 18071 _ | IFS | as_nl) ;; #( 18072 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18073 *) { eval $ac_var=; unset $ac_var;} ;; 18074 esac ;; 18075 esac 18076 done 18077 18078 (set) 2>&1 | 18079 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18080 *${as_nl}ac_space=\ *) 18081 # `set' does not quote correctly, so add quotes: double-quote 18082 # substitution turns \\\\ into \\, and sed turns \\ into \. 18083 sed -n \ 18084 "s/'/'\\\\''/g; 18085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18086 ;; #( 18087 *) 18088 # `set' quotes correctly as required by POSIX, so do not add quotes. 18089 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18090 ;; 18091 esac | 18092 sort 18093) | 18094 sed ' 18095 /^ac_cv_env_/b end 18096 t clear 18097 :clear 18098 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18099 t end 18100 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18101 :end' >>confcache 18102if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18103 if test -w "$cache_file"; then 18104 if test "x$cache_file" != "x/dev/null"; then 18105 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18106$as_echo "$as_me: updating cache $cache_file" >&6;} 18107 if test ! -f "$cache_file" || test -h "$cache_file"; then 18108 cat confcache >"$cache_file" 18109 else 18110 case $cache_file in #( 18111 */* | ?:*) 18112 mv -f confcache "$cache_file"$$ && 18113 mv -f "$cache_file"$$ "$cache_file" ;; #( 18114 *) 18115 mv -f confcache "$cache_file" ;; 18116 esac 18117 fi 18118 fi 18119 else 18120 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18121$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18122 fi 18123fi 18124rm -f confcache 18125 18126test "x$prefix" = xNONE && prefix=$ac_default_prefix 18127# Let make expand exec_prefix. 18128test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18129 18130DEFS=-DHAVE_CONFIG_H 18131 18132ac_libobjs= 18133ac_ltlibobjs= 18134U= 18135for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18136 # 1. Remove the extension, and $U if already installed. 18137 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18138 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18139 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18140 # will be set to the directory where LIBOBJS objects are built. 18141 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18142 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18143done 18144LIBOBJS=$ac_libobjs 18145 18146LTLIBOBJS=$ac_ltlibobjs 18147 18148 18149 if test -n "$EXEEXT"; then 18150 am__EXEEXT_TRUE= 18151 am__EXEEXT_FALSE='#' 18152else 18153 am__EXEEXT_TRUE='#' 18154 am__EXEEXT_FALSE= 18155fi 18156 18157if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18158 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18159Usually this means the macro was only invoked conditionally." "$LINENO" 5 18160fi 18161if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18162 as_fn_error $? "conditional \"AMDEP\" was never defined. 18163Usually this means the macro was only invoked conditionally." "$LINENO" 5 18164fi 18165if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18166 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18167Usually this means the macro was only invoked conditionally." "$LINENO" 5 18168fi 18169if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 18170 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 18171Usually this means the macro was only invoked conditionally." "$LINENO" 5 18172fi 18173if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 18174 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 18175Usually this means the macro was only invoked conditionally." "$LINENO" 5 18176fi 18177 18178: "${CONFIG_STATUS=./config.status}" 18179ac_write_fail=0 18180ac_clean_files_save=$ac_clean_files 18181ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18182{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18183$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18184as_write_fail=0 18185cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18186#! $SHELL 18187# Generated by $as_me. 18188# Run this file to recreate the current configuration. 18189# Compiler output produced by configure, useful for debugging 18190# configure, is in config.log if it exists. 18191 18192debug=false 18193ac_cs_recheck=false 18194ac_cs_silent=false 18195 18196SHELL=\${CONFIG_SHELL-$SHELL} 18197export SHELL 18198_ASEOF 18199cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18200## -------------------- ## 18201## M4sh Initialization. ## 18202## -------------------- ## 18203 18204# Be more Bourne compatible 18205DUALCASE=1; export DUALCASE # for MKS sh 18206if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18207 emulate sh 18208 NULLCMD=: 18209 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18210 # is contrary to our usage. Disable this feature. 18211 alias -g '${1+"$@"}'='"$@"' 18212 setopt NO_GLOB_SUBST 18213else 18214 case `(set -o) 2>/dev/null` in #( 18215 *posix*) : 18216 set -o posix ;; #( 18217 *) : 18218 ;; 18219esac 18220fi 18221 18222 18223as_nl=' 18224' 18225export as_nl 18226# Printing a long string crashes Solaris 7 /usr/bin/printf. 18227as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18228as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18229as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18230# Prefer a ksh shell builtin over an external printf program on Solaris, 18231# but without wasting forks for bash or zsh. 18232if test -z "$BASH_VERSION$ZSH_VERSION" \ 18233 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18234 as_echo='print -r --' 18235 as_echo_n='print -rn --' 18236elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18237 as_echo='printf %s\n' 18238 as_echo_n='printf %s' 18239else 18240 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18241 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18242 as_echo_n='/usr/ucb/echo -n' 18243 else 18244 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18245 as_echo_n_body='eval 18246 arg=$1; 18247 case $arg in #( 18248 *"$as_nl"*) 18249 expr "X$arg" : "X\\(.*\\)$as_nl"; 18250 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18251 esac; 18252 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18253 ' 18254 export as_echo_n_body 18255 as_echo_n='sh -c $as_echo_n_body as_echo' 18256 fi 18257 export as_echo_body 18258 as_echo='sh -c $as_echo_body as_echo' 18259fi 18260 18261# The user is always right. 18262if test "${PATH_SEPARATOR+set}" != set; then 18263 PATH_SEPARATOR=: 18264 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18265 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18266 PATH_SEPARATOR=';' 18267 } 18268fi 18269 18270 18271# IFS 18272# We need space, tab and new line, in precisely that order. Quoting is 18273# there to prevent editors from complaining about space-tab. 18274# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18275# splitting by setting IFS to empty value.) 18276IFS=" "" $as_nl" 18277 18278# Find who we are. Look in the path if we contain no directory separator. 18279as_myself= 18280case $0 in #(( 18281 *[\\/]* ) as_myself=$0 ;; 18282 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18283for as_dir in $PATH 18284do 18285 IFS=$as_save_IFS 18286 test -z "$as_dir" && as_dir=. 18287 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18288 done 18289IFS=$as_save_IFS 18290 18291 ;; 18292esac 18293# We did not find ourselves, most probably we were run as `sh COMMAND' 18294# in which case we are not to be found in the path. 18295if test "x$as_myself" = x; then 18296 as_myself=$0 18297fi 18298if test ! -f "$as_myself"; then 18299 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18300 exit 1 18301fi 18302 18303# Unset variables that we do not need and which cause bugs (e.g. in 18304# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18305# suppresses any "Segmentation fault" message there. '((' could 18306# trigger a bug in pdksh 5.2.14. 18307for as_var in BASH_ENV ENV MAIL MAILPATH 18308do eval test x\${$as_var+set} = xset \ 18309 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18310done 18311PS1='$ ' 18312PS2='> ' 18313PS4='+ ' 18314 18315# NLS nuisances. 18316LC_ALL=C 18317export LC_ALL 18318LANGUAGE=C 18319export LANGUAGE 18320 18321# CDPATH. 18322(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18323 18324 18325# as_fn_error STATUS ERROR [LINENO LOG_FD] 18326# ---------------------------------------- 18327# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18328# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18329# script with STATUS, using 1 if that was 0. 18330as_fn_error () 18331{ 18332 as_status=$1; test $as_status -eq 0 && as_status=1 18333 if test "$4"; then 18334 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18335 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18336 fi 18337 $as_echo "$as_me: error: $2" >&2 18338 as_fn_exit $as_status 18339} # as_fn_error 18340 18341 18342# as_fn_set_status STATUS 18343# ----------------------- 18344# Set $? to STATUS, without forking. 18345as_fn_set_status () 18346{ 18347 return $1 18348} # as_fn_set_status 18349 18350# as_fn_exit STATUS 18351# ----------------- 18352# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18353as_fn_exit () 18354{ 18355 set +e 18356 as_fn_set_status $1 18357 exit $1 18358} # as_fn_exit 18359 18360# as_fn_unset VAR 18361# --------------- 18362# Portably unset VAR. 18363as_fn_unset () 18364{ 18365 { eval $1=; unset $1;} 18366} 18367as_unset=as_fn_unset 18368# as_fn_append VAR VALUE 18369# ---------------------- 18370# Append the text in VALUE to the end of the definition contained in VAR. Take 18371# advantage of any shell optimizations that allow amortized linear growth over 18372# repeated appends, instead of the typical quadratic growth present in naive 18373# implementations. 18374if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18375 eval 'as_fn_append () 18376 { 18377 eval $1+=\$2 18378 }' 18379else 18380 as_fn_append () 18381 { 18382 eval $1=\$$1\$2 18383 } 18384fi # as_fn_append 18385 18386# as_fn_arith ARG... 18387# ------------------ 18388# Perform arithmetic evaluation on the ARGs, and store the result in the 18389# global $as_val. Take advantage of shells that can avoid forks. The arguments 18390# must be portable across $(()) and expr. 18391if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18392 eval 'as_fn_arith () 18393 { 18394 as_val=$(( $* )) 18395 }' 18396else 18397 as_fn_arith () 18398 { 18399 as_val=`expr "$@" || test $? -eq 1` 18400 } 18401fi # as_fn_arith 18402 18403 18404if expr a : '\(a\)' >/dev/null 2>&1 && 18405 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18406 as_expr=expr 18407else 18408 as_expr=false 18409fi 18410 18411if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18412 as_basename=basename 18413else 18414 as_basename=false 18415fi 18416 18417if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18418 as_dirname=dirname 18419else 18420 as_dirname=false 18421fi 18422 18423as_me=`$as_basename -- "$0" || 18424$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18425 X"$0" : 'X\(//\)$' \| \ 18426 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18427$as_echo X/"$0" | 18428 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18429 s//\1/ 18430 q 18431 } 18432 /^X\/\(\/\/\)$/{ 18433 s//\1/ 18434 q 18435 } 18436 /^X\/\(\/\).*/{ 18437 s//\1/ 18438 q 18439 } 18440 s/.*/./; q'` 18441 18442# Avoid depending upon Character Ranges. 18443as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18444as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18445as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18446as_cr_digits='0123456789' 18447as_cr_alnum=$as_cr_Letters$as_cr_digits 18448 18449ECHO_C= ECHO_N= ECHO_T= 18450case `echo -n x` in #((((( 18451-n*) 18452 case `echo 'xy\c'` in 18453 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18454 xy) ECHO_C='\c';; 18455 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18456 ECHO_T=' ';; 18457 esac;; 18458*) 18459 ECHO_N='-n';; 18460esac 18461 18462rm -f conf$$ conf$$.exe conf$$.file 18463if test -d conf$$.dir; then 18464 rm -f conf$$.dir/conf$$.file 18465else 18466 rm -f conf$$.dir 18467 mkdir conf$$.dir 2>/dev/null 18468fi 18469if (echo >conf$$.file) 2>/dev/null; then 18470 if ln -s conf$$.file conf$$ 2>/dev/null; then 18471 as_ln_s='ln -s' 18472 # ... but there are two gotchas: 18473 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18474 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18475 # In both cases, we have to default to `cp -p'. 18476 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18477 as_ln_s='cp -p' 18478 elif ln conf$$.file conf$$ 2>/dev/null; then 18479 as_ln_s=ln 18480 else 18481 as_ln_s='cp -p' 18482 fi 18483else 18484 as_ln_s='cp -p' 18485fi 18486rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18487rmdir conf$$.dir 2>/dev/null 18488 18489 18490# as_fn_mkdir_p 18491# ------------- 18492# Create "$as_dir" as a directory, including parents if necessary. 18493as_fn_mkdir_p () 18494{ 18495 18496 case $as_dir in #( 18497 -*) as_dir=./$as_dir;; 18498 esac 18499 test -d "$as_dir" || eval $as_mkdir_p || { 18500 as_dirs= 18501 while :; do 18502 case $as_dir in #( 18503 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18504 *) as_qdir=$as_dir;; 18505 esac 18506 as_dirs="'$as_qdir' $as_dirs" 18507 as_dir=`$as_dirname -- "$as_dir" || 18508$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18509 X"$as_dir" : 'X\(//\)[^/]' \| \ 18510 X"$as_dir" : 'X\(//\)$' \| \ 18511 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18512$as_echo X"$as_dir" | 18513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18514 s//\1/ 18515 q 18516 } 18517 /^X\(\/\/\)[^/].*/{ 18518 s//\1/ 18519 q 18520 } 18521 /^X\(\/\/\)$/{ 18522 s//\1/ 18523 q 18524 } 18525 /^X\(\/\).*/{ 18526 s//\1/ 18527 q 18528 } 18529 s/.*/./; q'` 18530 test -d "$as_dir" && break 18531 done 18532 test -z "$as_dirs" || eval "mkdir $as_dirs" 18533 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18534 18535 18536} # as_fn_mkdir_p 18537if mkdir -p . 2>/dev/null; then 18538 as_mkdir_p='mkdir -p "$as_dir"' 18539else 18540 test -d ./-p && rmdir ./-p 18541 as_mkdir_p=false 18542fi 18543 18544if test -x / >/dev/null 2>&1; then 18545 as_test_x='test -x' 18546else 18547 if ls -dL / >/dev/null 2>&1; then 18548 as_ls_L_option=L 18549 else 18550 as_ls_L_option= 18551 fi 18552 as_test_x=' 18553 eval sh -c '\'' 18554 if test -d "$1"; then 18555 test -d "$1/."; 18556 else 18557 case $1 in #( 18558 -*)set "./$1";; 18559 esac; 18560 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18561 ???[sx]*):;;*)false;;esac;fi 18562 '\'' sh 18563 ' 18564fi 18565as_executable_p=$as_test_x 18566 18567# Sed expression to map a string onto a valid CPP name. 18568as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18569 18570# Sed expression to map a string onto a valid variable name. 18571as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18572 18573 18574exec 6>&1 18575## ----------------------------------- ## 18576## Main body of $CONFIG_STATUS script. ## 18577## ----------------------------------- ## 18578_ASEOF 18579test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18580 18581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18582# Save the log message, to keep $0 and so on meaningful, and to 18583# report actual input values of CONFIG_FILES etc. instead of their 18584# values after options handling. 18585ac_log=" 18586This file was extended by xf86-video-trident $as_me 1.3.5, which was 18587generated by GNU Autoconf 2.68. Invocation command line was 18588 18589 CONFIG_FILES = $CONFIG_FILES 18590 CONFIG_HEADERS = $CONFIG_HEADERS 18591 CONFIG_LINKS = $CONFIG_LINKS 18592 CONFIG_COMMANDS = $CONFIG_COMMANDS 18593 $ $0 $@ 18594 18595on `(hostname || uname -n) 2>/dev/null | sed 1q` 18596" 18597 18598_ACEOF 18599 18600case $ac_config_files in *" 18601"*) set x $ac_config_files; shift; ac_config_files=$*;; 18602esac 18603 18604case $ac_config_headers in *" 18605"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18606esac 18607 18608 18609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18610# Files that config.status was made for. 18611config_files="$ac_config_files" 18612config_headers="$ac_config_headers" 18613config_commands="$ac_config_commands" 18614 18615_ACEOF 18616 18617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18618ac_cs_usage="\ 18619\`$as_me' instantiates files and other configuration actions 18620from templates according to the current configuration. Unless the files 18621and actions are specified as TAGs, all are instantiated by default. 18622 18623Usage: $0 [OPTION]... [TAG]... 18624 18625 -h, --help print this help, then exit 18626 -V, --version print version number and configuration settings, then exit 18627 --config print configuration, then exit 18628 -q, --quiet, --silent 18629 do not print progress messages 18630 -d, --debug don't remove temporary files 18631 --recheck update $as_me by reconfiguring in the same conditions 18632 --file=FILE[:TEMPLATE] 18633 instantiate the configuration file FILE 18634 --header=FILE[:TEMPLATE] 18635 instantiate the configuration header FILE 18636 18637Configuration files: 18638$config_files 18639 18640Configuration headers: 18641$config_headers 18642 18643Configuration commands: 18644$config_commands 18645 18646Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18647 18648_ACEOF 18649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18650ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18651ac_cs_version="\\ 18652xf86-video-trident config.status 1.3.5 18653configured by $0, generated by GNU Autoconf 2.68, 18654 with options \\"\$ac_cs_config\\" 18655 18656Copyright (C) 2010 Free Software Foundation, Inc. 18657This config.status script is free software; the Free Software Foundation 18658gives unlimited permission to copy, distribute and modify it." 18659 18660ac_pwd='$ac_pwd' 18661srcdir='$srcdir' 18662INSTALL='$INSTALL' 18663MKDIR_P='$MKDIR_P' 18664AWK='$AWK' 18665test -n "\$AWK" || AWK=awk 18666_ACEOF 18667 18668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18669# The default lists apply if the user does not specify any file. 18670ac_need_defaults=: 18671while test $# != 0 18672do 18673 case $1 in 18674 --*=?*) 18675 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18676 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18677 ac_shift=: 18678 ;; 18679 --*=) 18680 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18681 ac_optarg= 18682 ac_shift=: 18683 ;; 18684 *) 18685 ac_option=$1 18686 ac_optarg=$2 18687 ac_shift=shift 18688 ;; 18689 esac 18690 18691 case $ac_option in 18692 # Handling of the options. 18693 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18694 ac_cs_recheck=: ;; 18695 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18696 $as_echo "$ac_cs_version"; exit ;; 18697 --config | --confi | --conf | --con | --co | --c ) 18698 $as_echo "$ac_cs_config"; exit ;; 18699 --debug | --debu | --deb | --de | --d | -d ) 18700 debug=: ;; 18701 --file | --fil | --fi | --f ) 18702 $ac_shift 18703 case $ac_optarg in 18704 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18705 '') as_fn_error $? "missing file argument" ;; 18706 esac 18707 as_fn_append CONFIG_FILES " '$ac_optarg'" 18708 ac_need_defaults=false;; 18709 --header | --heade | --head | --hea ) 18710 $ac_shift 18711 case $ac_optarg in 18712 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18713 esac 18714 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18715 ac_need_defaults=false;; 18716 --he | --h) 18717 # Conflict between --help and --header 18718 as_fn_error $? "ambiguous option: \`$1' 18719Try \`$0 --help' for more information.";; 18720 --help | --hel | -h ) 18721 $as_echo "$ac_cs_usage"; exit ;; 18722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18723 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18724 ac_cs_silent=: ;; 18725 18726 # This is an error. 18727 -*) as_fn_error $? "unrecognized option: \`$1' 18728Try \`$0 --help' for more information." ;; 18729 18730 *) as_fn_append ac_config_targets " $1" 18731 ac_need_defaults=false ;; 18732 18733 esac 18734 shift 18735done 18736 18737ac_configure_extra_args= 18738 18739if $ac_cs_silent; then 18740 exec 6>/dev/null 18741 ac_configure_extra_args="$ac_configure_extra_args --silent" 18742fi 18743 18744_ACEOF 18745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18746if \$ac_cs_recheck; then 18747 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18748 shift 18749 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18750 CONFIG_SHELL='$SHELL' 18751 export CONFIG_SHELL 18752 exec "\$@" 18753fi 18754 18755_ACEOF 18756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18757exec 5>>config.log 18758{ 18759 echo 18760 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18761## Running $as_me. ## 18762_ASBOX 18763 $as_echo "$ac_log" 18764} >&5 18765 18766_ACEOF 18767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18768# 18769# INIT-COMMANDS 18770# 18771AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18772 18773 18774# The HP-UX ksh and POSIX shell print the target directory to stdout 18775# if CDPATH is set. 18776(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18777 18778sed_quote_subst='$sed_quote_subst' 18779double_quote_subst='$double_quote_subst' 18780delay_variable_subst='$delay_variable_subst' 18781enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18782macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18783macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18784enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18785pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18786enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18787SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18788ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18789host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18790host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18791host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18792build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18793build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18794build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18795SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18796Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18797GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18798EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18799FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18800LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18801NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18802LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18803max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18804ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18805exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18806lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18807lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18808lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18809lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18810lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18811reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18812reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18813OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18814deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18815file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18816file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18817want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18818DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18819sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18820AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18821AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18822archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18823STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18824RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18825old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18826old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18827old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18828lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18829CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18830CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18831compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18832GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18833lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18834lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18835lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18836lt_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"`' 18837nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18838lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18839objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18840MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18841lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18842lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18843lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18844lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18845lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18846need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18847MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18848DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18849NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18850LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18851OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18852OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18853libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18854shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18855extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18856archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18857enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18858export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18859whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18860compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18861old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18862old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18863archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18864archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18865module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18866module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18867with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18868allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18869no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18870hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18871hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 18872hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18873hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18874hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18875hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18876hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18877hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18878inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18879link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18880always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18881export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18882exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18883include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18884prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18885postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18886file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18887variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18888need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18889need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18890version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18891runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18892shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18893shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18894libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18895library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18896soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18897install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18898postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18899postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18900finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18901finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18902hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18903sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18904sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18905hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18906enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18907enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18908enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18909old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18910striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18911 18912LTCC='$LTCC' 18913LTCFLAGS='$LTCFLAGS' 18914compiler='$compiler_DEFAULT' 18915 18916# A function that is used when there is no print builtin or printf. 18917func_fallback_echo () 18918{ 18919 eval 'cat <<_LTECHO_EOF 18920\$1 18921_LTECHO_EOF' 18922} 18923 18924# Quote evaled strings. 18925for var in SHELL \ 18926ECHO \ 18927SED \ 18928GREP \ 18929EGREP \ 18930FGREP \ 18931LD \ 18932NM \ 18933LN_S \ 18934lt_SP2NL \ 18935lt_NL2SP \ 18936reload_flag \ 18937OBJDUMP \ 18938deplibs_check_method \ 18939file_magic_cmd \ 18940file_magic_glob \ 18941want_nocaseglob \ 18942DLLTOOL \ 18943sharedlib_from_linklib_cmd \ 18944AR \ 18945AR_FLAGS \ 18946archiver_list_spec \ 18947STRIP \ 18948RANLIB \ 18949CC \ 18950CFLAGS \ 18951compiler \ 18952lt_cv_sys_global_symbol_pipe \ 18953lt_cv_sys_global_symbol_to_cdecl \ 18954lt_cv_sys_global_symbol_to_c_name_address \ 18955lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18956nm_file_list_spec \ 18957lt_prog_compiler_no_builtin_flag \ 18958lt_prog_compiler_pic \ 18959lt_prog_compiler_wl \ 18960lt_prog_compiler_static \ 18961lt_cv_prog_compiler_c_o \ 18962need_locks \ 18963MANIFEST_TOOL \ 18964DSYMUTIL \ 18965NMEDIT \ 18966LIPO \ 18967OTOOL \ 18968OTOOL64 \ 18969shrext_cmds \ 18970export_dynamic_flag_spec \ 18971whole_archive_flag_spec \ 18972compiler_needs_object \ 18973with_gnu_ld \ 18974allow_undefined_flag \ 18975no_undefined_flag \ 18976hardcode_libdir_flag_spec \ 18977hardcode_libdir_flag_spec_ld \ 18978hardcode_libdir_separator \ 18979exclude_expsyms \ 18980include_expsyms \ 18981file_list_spec \ 18982variables_saved_for_relink \ 18983libname_spec \ 18984library_names_spec \ 18985soname_spec \ 18986install_override_mode \ 18987finish_eval \ 18988old_striplib \ 18989striplib; do 18990 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18991 *[\\\\\\\`\\"\\\$]*) 18992 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18993 ;; 18994 *) 18995 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18996 ;; 18997 esac 18998done 18999 19000# Double-quote double-evaled strings. 19001for var in reload_cmds \ 19002old_postinstall_cmds \ 19003old_postuninstall_cmds \ 19004old_archive_cmds \ 19005extract_expsyms_cmds \ 19006old_archive_from_new_cmds \ 19007old_archive_from_expsyms_cmds \ 19008archive_cmds \ 19009archive_expsym_cmds \ 19010module_cmds \ 19011module_expsym_cmds \ 19012export_symbols_cmds \ 19013prelink_cmds \ 19014postlink_cmds \ 19015postinstall_cmds \ 19016postuninstall_cmds \ 19017finish_cmds \ 19018sys_lib_search_path_spec \ 19019sys_lib_dlsearch_path_spec; do 19020 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19021 *[\\\\\\\`\\"\\\$]*) 19022 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19023 ;; 19024 *) 19025 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19026 ;; 19027 esac 19028done 19029 19030ac_aux_dir='$ac_aux_dir' 19031xsi_shell='$xsi_shell' 19032lt_shell_append='$lt_shell_append' 19033 19034# See if we are running on zsh, and set the options which allow our 19035# commands through without removal of \ escapes INIT. 19036if test -n "\${ZSH_VERSION+set}" ; then 19037 setopt NO_GLOB_SUBST 19038fi 19039 19040 19041 PACKAGE='$PACKAGE' 19042 VERSION='$VERSION' 19043 TIMESTAMP='$TIMESTAMP' 19044 RM='$RM' 19045 ofile='$ofile' 19046 19047 19048 19049 19050_ACEOF 19051 19052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19053 19054# Handling of arguments. 19055for ac_config_target in $ac_config_targets 19056do 19057 case $ac_config_target in 19058 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19059 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19060 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19061 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19062 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19063 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19064 19065 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19066 esac 19067done 19068 19069 19070# If the user did not use the arguments to specify the items to instantiate, 19071# then the envvar interface is used. Set only those that are not. 19072# We use the long form for the default assignment because of an extremely 19073# bizarre bug on SunOS 4.1.3. 19074if $ac_need_defaults; then 19075 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19076 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19077 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19078fi 19079 19080# Have a temporary directory for convenience. Make it in the build tree 19081# simply because there is no reason against having it here, and in addition, 19082# creating and moving files from /tmp can sometimes cause problems. 19083# Hook for its removal unless debugging. 19084# Note that there is a small window in which the directory will not be cleaned: 19085# after its creation but before its name has been assigned to `$tmp'. 19086$debug || 19087{ 19088 tmp= ac_tmp= 19089 trap 'exit_status=$? 19090 : "${ac_tmp:=$tmp}" 19091 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19092' 0 19093 trap 'as_fn_exit 1' 1 2 13 15 19094} 19095# Create a (secure) tmp directory for tmp files. 19096 19097{ 19098 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19099 test -d "$tmp" 19100} || 19101{ 19102 tmp=./conf$$-$RANDOM 19103 (umask 077 && mkdir "$tmp") 19104} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19105ac_tmp=$tmp 19106 19107# Set up the scripts for CONFIG_FILES section. 19108# No need to generate them if there are no CONFIG_FILES. 19109# This happens for instance with `./config.status config.h'. 19110if test -n "$CONFIG_FILES"; then 19111 19112 19113ac_cr=`echo X | tr X '\015'` 19114# On cygwin, bash can eat \r inside `` if the user requested igncr. 19115# But we know of no other shell where ac_cr would be empty at this 19116# point, so we can use a bashism as a fallback. 19117if test "x$ac_cr" = x; then 19118 eval ac_cr=\$\'\\r\' 19119fi 19120ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19121if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19122 ac_cs_awk_cr='\\r' 19123else 19124 ac_cs_awk_cr=$ac_cr 19125fi 19126 19127echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19128_ACEOF 19129 19130 19131{ 19132 echo "cat >conf$$subs.awk <<_ACEOF" && 19133 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19134 echo "_ACEOF" 19135} >conf$$subs.sh || 19136 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19137ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19138ac_delim='%!_!# ' 19139for ac_last_try in false false false false false :; do 19140 . ./conf$$subs.sh || 19141 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19142 19143 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19144 if test $ac_delim_n = $ac_delim_num; then 19145 break 19146 elif $ac_last_try; then 19147 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19148 else 19149 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19150 fi 19151done 19152rm -f conf$$subs.sh 19153 19154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19155cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19156_ACEOF 19157sed -n ' 19158h 19159s/^/S["/; s/!.*/"]=/ 19160p 19161g 19162s/^[^!]*!// 19163:repl 19164t repl 19165s/'"$ac_delim"'$// 19166t delim 19167:nl 19168h 19169s/\(.\{148\}\)..*/\1/ 19170t more1 19171s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19172p 19173n 19174b repl 19175:more1 19176s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19177p 19178g 19179s/.\{148\}// 19180t nl 19181:delim 19182h 19183s/\(.\{148\}\)..*/\1/ 19184t more2 19185s/["\\]/\\&/g; s/^/"/; s/$/"/ 19186p 19187b 19188:more2 19189s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19190p 19191g 19192s/.\{148\}// 19193t delim 19194' <conf$$subs.awk | sed ' 19195/^[^""]/{ 19196 N 19197 s/\n// 19198} 19199' >>$CONFIG_STATUS || ac_write_fail=1 19200rm -f conf$$subs.awk 19201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19202_ACAWK 19203cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19204 for (key in S) S_is_set[key] = 1 19205 FS = "" 19206 19207} 19208{ 19209 line = $ 0 19210 nfields = split(line, field, "@") 19211 substed = 0 19212 len = length(field[1]) 19213 for (i = 2; i < nfields; i++) { 19214 key = field[i] 19215 keylen = length(key) 19216 if (S_is_set[key]) { 19217 value = S[key] 19218 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19219 len += length(value) + length(field[++i]) 19220 substed = 1 19221 } else 19222 len += 1 + keylen 19223 } 19224 19225 print line 19226} 19227 19228_ACAWK 19229_ACEOF 19230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19231if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19232 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19233else 19234 cat 19235fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19236 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19237_ACEOF 19238 19239# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19240# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19241# trailing colons and then remove the whole line if VPATH becomes empty 19242# (actually we leave an empty line to preserve line numbers). 19243if test "x$srcdir" = x.; then 19244 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19245h 19246s/// 19247s/^/:/ 19248s/[ ]*$/:/ 19249s/:\$(srcdir):/:/g 19250s/:\${srcdir}:/:/g 19251s/:@srcdir@:/:/g 19252s/^:*// 19253s/:*$// 19254x 19255s/\(=[ ]*\).*/\1/ 19256G 19257s/\n// 19258s/^[^=]*=[ ]*$// 19259}' 19260fi 19261 19262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19263fi # test -n "$CONFIG_FILES" 19264 19265# Set up the scripts for CONFIG_HEADERS section. 19266# No need to generate them if there are no CONFIG_HEADERS. 19267# This happens for instance with `./config.status Makefile'. 19268if test -n "$CONFIG_HEADERS"; then 19269cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19270BEGIN { 19271_ACEOF 19272 19273# Transform confdefs.h into an awk script `defines.awk', embedded as 19274# here-document in config.status, that substitutes the proper values into 19275# config.h.in to produce config.h. 19276 19277# Create a delimiter string that does not exist in confdefs.h, to ease 19278# handling of long lines. 19279ac_delim='%!_!# ' 19280for ac_last_try in false false :; do 19281 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19282 if test -z "$ac_tt"; then 19283 break 19284 elif $ac_last_try; then 19285 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19286 else 19287 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19288 fi 19289done 19290 19291# For the awk script, D is an array of macro values keyed by name, 19292# likewise P contains macro parameters if any. Preserve backslash 19293# newline sequences. 19294 19295ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19296sed -n ' 19297s/.\{148\}/&'"$ac_delim"'/g 19298t rset 19299:rset 19300s/^[ ]*#[ ]*define[ ][ ]*/ / 19301t def 19302d 19303:def 19304s/\\$// 19305t bsnl 19306s/["\\]/\\&/g 19307s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19308D["\1"]=" \3"/p 19309s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19310d 19311:bsnl 19312s/["\\]/\\&/g 19313s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19314D["\1"]=" \3\\\\\\n"\\/p 19315t cont 19316s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19317t cont 19318d 19319:cont 19320n 19321s/.\{148\}/&'"$ac_delim"'/g 19322t clear 19323:clear 19324s/\\$// 19325t bsnlc 19326s/["\\]/\\&/g; s/^/"/; s/$/"/p 19327d 19328:bsnlc 19329s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19330b cont 19331' <confdefs.h | sed ' 19332s/'"$ac_delim"'/"\\\ 19333"/g' >>$CONFIG_STATUS || ac_write_fail=1 19334 19335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19336 for (key in D) D_is_set[key] = 1 19337 FS = "" 19338} 19339/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19340 line = \$ 0 19341 split(line, arg, " ") 19342 if (arg[1] == "#") { 19343 defundef = arg[2] 19344 mac1 = arg[3] 19345 } else { 19346 defundef = substr(arg[1], 2) 19347 mac1 = arg[2] 19348 } 19349 split(mac1, mac2, "(") #) 19350 macro = mac2[1] 19351 prefix = substr(line, 1, index(line, defundef) - 1) 19352 if (D_is_set[macro]) { 19353 # Preserve the white space surrounding the "#". 19354 print prefix "define", macro P[macro] D[macro] 19355 next 19356 } else { 19357 # Replace #undef with comments. This is necessary, for example, 19358 # in the case of _POSIX_SOURCE, which is predefined and required 19359 # on some systems where configure will not decide to define it. 19360 if (defundef == "undef") { 19361 print "/*", prefix defundef, macro, "*/" 19362 next 19363 } 19364 } 19365} 19366{ print } 19367_ACAWK 19368_ACEOF 19369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19370 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19371fi # test -n "$CONFIG_HEADERS" 19372 19373 19374eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19375shift 19376for ac_tag 19377do 19378 case $ac_tag in 19379 :[FHLC]) ac_mode=$ac_tag; continue;; 19380 esac 19381 case $ac_mode$ac_tag in 19382 :[FHL]*:*);; 19383 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19384 :[FH]-) ac_tag=-:-;; 19385 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19386 esac 19387 ac_save_IFS=$IFS 19388 IFS=: 19389 set x $ac_tag 19390 IFS=$ac_save_IFS 19391 shift 19392 ac_file=$1 19393 shift 19394 19395 case $ac_mode in 19396 :L) ac_source=$1;; 19397 :[FH]) 19398 ac_file_inputs= 19399 for ac_f 19400 do 19401 case $ac_f in 19402 -) ac_f="$ac_tmp/stdin";; 19403 *) # Look for the file first in the build tree, then in the source tree 19404 # (if the path is not absolute). The absolute path cannot be DOS-style, 19405 # because $ac_f cannot contain `:'. 19406 test -f "$ac_f" || 19407 case $ac_f in 19408 [\\/$]*) false;; 19409 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19410 esac || 19411 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19412 esac 19413 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19414 as_fn_append ac_file_inputs " '$ac_f'" 19415 done 19416 19417 # Let's still pretend it is `configure' which instantiates (i.e., don't 19418 # use $as_me), people would be surprised to read: 19419 # /* config.h. Generated by config.status. */ 19420 configure_input='Generated from '` 19421 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19422 `' by configure.' 19423 if test x"$ac_file" != x-; then 19424 configure_input="$ac_file. $configure_input" 19425 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19426$as_echo "$as_me: creating $ac_file" >&6;} 19427 fi 19428 # Neutralize special characters interpreted by sed in replacement strings. 19429 case $configure_input in #( 19430 *\&* | *\|* | *\\* ) 19431 ac_sed_conf_input=`$as_echo "$configure_input" | 19432 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19433 *) ac_sed_conf_input=$configure_input;; 19434 esac 19435 19436 case $ac_tag in 19437 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19438 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19439 esac 19440 ;; 19441 esac 19442 19443 ac_dir=`$as_dirname -- "$ac_file" || 19444$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19445 X"$ac_file" : 'X\(//\)[^/]' \| \ 19446 X"$ac_file" : 'X\(//\)$' \| \ 19447 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19448$as_echo X"$ac_file" | 19449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19450 s//\1/ 19451 q 19452 } 19453 /^X\(\/\/\)[^/].*/{ 19454 s//\1/ 19455 q 19456 } 19457 /^X\(\/\/\)$/{ 19458 s//\1/ 19459 q 19460 } 19461 /^X\(\/\).*/{ 19462 s//\1/ 19463 q 19464 } 19465 s/.*/./; q'` 19466 as_dir="$ac_dir"; as_fn_mkdir_p 19467 ac_builddir=. 19468 19469case "$ac_dir" in 19470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19471*) 19472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19473 # A ".." for each directory in $ac_dir_suffix. 19474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19475 case $ac_top_builddir_sub in 19476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19478 esac ;; 19479esac 19480ac_abs_top_builddir=$ac_pwd 19481ac_abs_builddir=$ac_pwd$ac_dir_suffix 19482# for backward compatibility: 19483ac_top_builddir=$ac_top_build_prefix 19484 19485case $srcdir in 19486 .) # We are building in place. 19487 ac_srcdir=. 19488 ac_top_srcdir=$ac_top_builddir_sub 19489 ac_abs_top_srcdir=$ac_pwd ;; 19490 [\\/]* | ?:[\\/]* ) # Absolute name. 19491 ac_srcdir=$srcdir$ac_dir_suffix; 19492 ac_top_srcdir=$srcdir 19493 ac_abs_top_srcdir=$srcdir ;; 19494 *) # Relative name. 19495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19496 ac_top_srcdir=$ac_top_build_prefix$srcdir 19497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19498esac 19499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19500 19501 19502 case $ac_mode in 19503 :F) 19504 # 19505 # CONFIG_FILE 19506 # 19507 19508 case $INSTALL in 19509 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19510 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19511 esac 19512 ac_MKDIR_P=$MKDIR_P 19513 case $MKDIR_P in 19514 [\\/$]* | ?:[\\/]* ) ;; 19515 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19516 esac 19517_ACEOF 19518 19519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19520# If the template does not know about datarootdir, expand it. 19521# FIXME: This hack should be removed a few years after 2.60. 19522ac_datarootdir_hack=; ac_datarootdir_seen= 19523ac_sed_dataroot=' 19524/datarootdir/ { 19525 p 19526 q 19527} 19528/@datadir@/p 19529/@docdir@/p 19530/@infodir@/p 19531/@localedir@/p 19532/@mandir@/p' 19533case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19534*datarootdir*) ac_datarootdir_seen=yes;; 19535*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19537$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19538_ACEOF 19539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19540 ac_datarootdir_hack=' 19541 s&@datadir@&$datadir&g 19542 s&@docdir@&$docdir&g 19543 s&@infodir@&$infodir&g 19544 s&@localedir@&$localedir&g 19545 s&@mandir@&$mandir&g 19546 s&\\\${datarootdir}&$datarootdir&g' ;; 19547esac 19548_ACEOF 19549 19550# Neutralize VPATH when `$srcdir' = `.'. 19551# Shell code in configure.ac might set extrasub. 19552# FIXME: do we really want to maintain this feature? 19553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19554ac_sed_extra="$ac_vpsub 19555$extrasub 19556_ACEOF 19557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19558:t 19559/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19560s|@configure_input@|$ac_sed_conf_input|;t t 19561s&@top_builddir@&$ac_top_builddir_sub&;t t 19562s&@top_build_prefix@&$ac_top_build_prefix&;t t 19563s&@srcdir@&$ac_srcdir&;t t 19564s&@abs_srcdir@&$ac_abs_srcdir&;t t 19565s&@top_srcdir@&$ac_top_srcdir&;t t 19566s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19567s&@builddir@&$ac_builddir&;t t 19568s&@abs_builddir@&$ac_abs_builddir&;t t 19569s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19570s&@INSTALL@&$ac_INSTALL&;t t 19571s&@MKDIR_P@&$ac_MKDIR_P&;t t 19572$ac_datarootdir_hack 19573" 19574eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19575 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19576 19577test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19578 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19579 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19580 "$ac_tmp/out"`; test -z "$ac_out"; } && 19581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19582which seems to be undefined. Please make sure it is defined" >&5 19583$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19584which seems to be undefined. Please make sure it is defined" >&2;} 19585 19586 rm -f "$ac_tmp/stdin" 19587 case $ac_file in 19588 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19589 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19590 esac \ 19591 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19592 ;; 19593 :H) 19594 # 19595 # CONFIG_HEADER 19596 # 19597 if test x"$ac_file" != x-; then 19598 { 19599 $as_echo "/* $configure_input */" \ 19600 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19601 } >"$ac_tmp/config.h" \ 19602 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19603 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19604 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19605$as_echo "$as_me: $ac_file is unchanged" >&6;} 19606 else 19607 rm -f "$ac_file" 19608 mv "$ac_tmp/config.h" "$ac_file" \ 19609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19610 fi 19611 else 19612 $as_echo "/* $configure_input */" \ 19613 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19614 || as_fn_error $? "could not create -" "$LINENO" 5 19615 fi 19616# Compute "$ac_file"'s index in $config_headers. 19617_am_arg="$ac_file" 19618_am_stamp_count=1 19619for _am_header in $config_headers :; do 19620 case $_am_header in 19621 $_am_arg | $_am_arg:* ) 19622 break ;; 19623 * ) 19624 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19625 esac 19626done 19627echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19628$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19629 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19630 X"$_am_arg" : 'X\(//\)$' \| \ 19631 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19632$as_echo X"$_am_arg" | 19633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19634 s//\1/ 19635 q 19636 } 19637 /^X\(\/\/\)[^/].*/{ 19638 s//\1/ 19639 q 19640 } 19641 /^X\(\/\/\)$/{ 19642 s//\1/ 19643 q 19644 } 19645 /^X\(\/\).*/{ 19646 s//\1/ 19647 q 19648 } 19649 s/.*/./; q'`/stamp-h$_am_stamp_count 19650 ;; 19651 19652 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19653$as_echo "$as_me: executing $ac_file commands" >&6;} 19654 ;; 19655 esac 19656 19657 19658 case $ac_file$ac_mode in 19659 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19660 # Autoconf 2.62 quotes --file arguments for eval, but not when files 19661 # are listed without --file. Let's play safe and only enable the eval 19662 # if we detect the quoting. 19663 case $CONFIG_FILES in 19664 *\'*) eval set x "$CONFIG_FILES" ;; 19665 *) set x $CONFIG_FILES ;; 19666 esac 19667 shift 19668 for mf 19669 do 19670 # Strip MF so we end up with the name of the file. 19671 mf=`echo "$mf" | sed -e 's/:.*$//'` 19672 # Check whether this is an Automake generated Makefile or not. 19673 # We used to match only the files named `Makefile.in', but 19674 # some people rename them; so instead we look at the file content. 19675 # Grep'ing the first line is not enough: some people post-process 19676 # each Makefile.in and add a new line on top of each file to say so. 19677 # Grep'ing the whole file is not good either: AIX grep has a line 19678 # limit of 2048, but all sed's we know have understand at least 4000. 19679 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19680 dirpart=`$as_dirname -- "$mf" || 19681$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19682 X"$mf" : 'X\(//\)[^/]' \| \ 19683 X"$mf" : 'X\(//\)$' \| \ 19684 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19685$as_echo X"$mf" | 19686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19687 s//\1/ 19688 q 19689 } 19690 /^X\(\/\/\)[^/].*/{ 19691 s//\1/ 19692 q 19693 } 19694 /^X\(\/\/\)$/{ 19695 s//\1/ 19696 q 19697 } 19698 /^X\(\/\).*/{ 19699 s//\1/ 19700 q 19701 } 19702 s/.*/./; q'` 19703 else 19704 continue 19705 fi 19706 # Extract the definition of DEPDIR, am__include, and am__quote 19707 # from the Makefile without running `make'. 19708 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19709 test -z "$DEPDIR" && continue 19710 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19711 test -z "am__include" && continue 19712 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19713 # When using ansi2knr, U may be empty or an underscore; expand it 19714 U=`sed -n 's/^U = //p' < "$mf"` 19715 # Find all dependency output files, they are included files with 19716 # $(DEPDIR) in their names. We invoke sed twice because it is the 19717 # simplest approach to changing $(DEPDIR) to its actual value in the 19718 # expansion. 19719 for file in `sed -n " 19720 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19721 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 19722 # Make sure the directory exists. 19723 test -f "$dirpart/$file" && continue 19724 fdir=`$as_dirname -- "$file" || 19725$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19726 X"$file" : 'X\(//\)[^/]' \| \ 19727 X"$file" : 'X\(//\)$' \| \ 19728 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19729$as_echo X"$file" | 19730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19731 s//\1/ 19732 q 19733 } 19734 /^X\(\/\/\)[^/].*/{ 19735 s//\1/ 19736 q 19737 } 19738 /^X\(\/\/\)$/{ 19739 s//\1/ 19740 q 19741 } 19742 /^X\(\/\).*/{ 19743 s//\1/ 19744 q 19745 } 19746 s/.*/./; q'` 19747 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19748 # echo "creating $dirpart/$file" 19749 echo '# dummy' > "$dirpart/$file" 19750 done 19751 done 19752} 19753 ;; 19754 "libtool":C) 19755 19756 # See if we are running on zsh, and set the options which allow our 19757 # commands through without removal of \ escapes. 19758 if test -n "${ZSH_VERSION+set}" ; then 19759 setopt NO_GLOB_SUBST 19760 fi 19761 19762 cfgfile="${ofile}T" 19763 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19764 $RM "$cfgfile" 19765 19766 cat <<_LT_EOF >> "$cfgfile" 19767#! $SHELL 19768 19769# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19770# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19771# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19772# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19773# 19774# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19775# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 19776# Inc. 19777# Written by Gordon Matzigkeit, 1996 19778# 19779# This file is part of GNU Libtool. 19780# 19781# GNU Libtool is free software; you can redistribute it and/or 19782# modify it under the terms of the GNU General Public License as 19783# published by the Free Software Foundation; either version 2 of 19784# the License, or (at your option) any later version. 19785# 19786# As a special exception to the GNU General Public License, 19787# if you distribute this file as part of a program or library that 19788# is built using GNU Libtool, you may include this file under the 19789# same distribution terms that you use for the rest of that program. 19790# 19791# GNU Libtool is distributed in the hope that it will be useful, 19792# but WITHOUT ANY WARRANTY; without even the implied warranty of 19793# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19794# GNU General Public License for more details. 19795# 19796# You should have received a copy of the GNU General Public License 19797# along with GNU Libtool; see the file COPYING. If not, a copy 19798# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19799# obtained by writing to the Free Software Foundation, Inc., 19800# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19801 19802 19803# The names of the tagged configurations supported by this script. 19804available_tags="" 19805 19806# ### BEGIN LIBTOOL CONFIG 19807 19808# Whether or not to build static libraries. 19809build_old_libs=$enable_static 19810 19811# Which release of libtool.m4 was used? 19812macro_version=$macro_version 19813macro_revision=$macro_revision 19814 19815# Whether or not to build shared libraries. 19816build_libtool_libs=$enable_shared 19817 19818# What type of objects to build. 19819pic_mode=$pic_mode 19820 19821# Whether or not to optimize for fast installation. 19822fast_install=$enable_fast_install 19823 19824# Shell to use when invoking shell scripts. 19825SHELL=$lt_SHELL 19826 19827# An echo program that protects backslashes. 19828ECHO=$lt_ECHO 19829 19830# The host system. 19831host_alias=$host_alias 19832host=$host 19833host_os=$host_os 19834 19835# The build system. 19836build_alias=$build_alias 19837build=$build 19838build_os=$build_os 19839 19840# A sed program that does not truncate output. 19841SED=$lt_SED 19842 19843# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19844Xsed="\$SED -e 1s/^X//" 19845 19846# A grep program that handles long lines. 19847GREP=$lt_GREP 19848 19849# An ERE matcher. 19850EGREP=$lt_EGREP 19851 19852# A literal string matcher. 19853FGREP=$lt_FGREP 19854 19855# A BSD- or MS-compatible name lister. 19856NM=$lt_NM 19857 19858# Whether we need soft or hard links. 19859LN_S=$lt_LN_S 19860 19861# What is the maximum length of a command? 19862max_cmd_len=$max_cmd_len 19863 19864# Object file suffix (normally "o"). 19865objext=$ac_objext 19866 19867# Executable file suffix (normally ""). 19868exeext=$exeext 19869 19870# whether the shell understands "unset". 19871lt_unset=$lt_unset 19872 19873# turn spaces into newlines. 19874SP2NL=$lt_lt_SP2NL 19875 19876# turn newlines into spaces. 19877NL2SP=$lt_lt_NL2SP 19878 19879# convert \$build file names to \$host format. 19880to_host_file_cmd=$lt_cv_to_host_file_cmd 19881 19882# convert \$build files to toolchain format. 19883to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19884 19885# An object symbol dumper. 19886OBJDUMP=$lt_OBJDUMP 19887 19888# Method to check whether dependent libraries are shared objects. 19889deplibs_check_method=$lt_deplibs_check_method 19890 19891# Command to use when deplibs_check_method = "file_magic". 19892file_magic_cmd=$lt_file_magic_cmd 19893 19894# How to find potential files when deplibs_check_method = "file_magic". 19895file_magic_glob=$lt_file_magic_glob 19896 19897# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19898want_nocaseglob=$lt_want_nocaseglob 19899 19900# DLL creation program. 19901DLLTOOL=$lt_DLLTOOL 19902 19903# Command to associate shared and link libraries. 19904sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19905 19906# The archiver. 19907AR=$lt_AR 19908 19909# Flags to create an archive. 19910AR_FLAGS=$lt_AR_FLAGS 19911 19912# How to feed a file listing to the archiver. 19913archiver_list_spec=$lt_archiver_list_spec 19914 19915# A symbol stripping program. 19916STRIP=$lt_STRIP 19917 19918# Commands used to install an old-style archive. 19919RANLIB=$lt_RANLIB 19920old_postinstall_cmds=$lt_old_postinstall_cmds 19921old_postuninstall_cmds=$lt_old_postuninstall_cmds 19922 19923# Whether to use a lock for old archive extraction. 19924lock_old_archive_extraction=$lock_old_archive_extraction 19925 19926# A C compiler. 19927LTCC=$lt_CC 19928 19929# LTCC compiler flags. 19930LTCFLAGS=$lt_CFLAGS 19931 19932# Take the output of nm and produce a listing of raw symbols and C names. 19933global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19934 19935# Transform the output of nm in a proper C declaration. 19936global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19937 19938# Transform the output of nm in a C name address pair. 19939global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19940 19941# Transform the output of nm in a C name address pair when lib prefix is needed. 19942global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19943 19944# Specify filename containing input files for \$NM. 19945nm_file_list_spec=$lt_nm_file_list_spec 19946 19947# The root where to search for dependent libraries,and in which our libraries should be installed. 19948lt_sysroot=$lt_sysroot 19949 19950# The name of the directory that contains temporary libtool files. 19951objdir=$objdir 19952 19953# Used to examine libraries when file_magic_cmd begins with "file". 19954MAGIC_CMD=$MAGIC_CMD 19955 19956# Must we lock files when doing compilation? 19957need_locks=$lt_need_locks 19958 19959# Manifest tool. 19960MANIFEST_TOOL=$lt_MANIFEST_TOOL 19961 19962# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19963DSYMUTIL=$lt_DSYMUTIL 19964 19965# Tool to change global to local symbols on Mac OS X. 19966NMEDIT=$lt_NMEDIT 19967 19968# Tool to manipulate fat objects and archives on Mac OS X. 19969LIPO=$lt_LIPO 19970 19971# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19972OTOOL=$lt_OTOOL 19973 19974# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19975OTOOL64=$lt_OTOOL64 19976 19977# Old archive suffix (normally "a"). 19978libext=$libext 19979 19980# Shared library suffix (normally ".so"). 19981shrext_cmds=$lt_shrext_cmds 19982 19983# The commands to extract the exported symbol list from a shared archive. 19984extract_expsyms_cmds=$lt_extract_expsyms_cmds 19985 19986# Variables whose values should be saved in libtool wrapper scripts and 19987# restored at link time. 19988variables_saved_for_relink=$lt_variables_saved_for_relink 19989 19990# Do we need the "lib" prefix for modules? 19991need_lib_prefix=$need_lib_prefix 19992 19993# Do we need a version for libraries? 19994need_version=$need_version 19995 19996# Library versioning type. 19997version_type=$version_type 19998 19999# Shared library runtime path variable. 20000runpath_var=$runpath_var 20001 20002# Shared library path variable. 20003shlibpath_var=$shlibpath_var 20004 20005# Is shlibpath searched before the hard-coded library search path? 20006shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20007 20008# Format of library name prefix. 20009libname_spec=$lt_libname_spec 20010 20011# List of archive names. First name is the real one, the rest are links. 20012# The last name is the one that the linker finds with -lNAME 20013library_names_spec=$lt_library_names_spec 20014 20015# The coded name of the library, if different from the real name. 20016soname_spec=$lt_soname_spec 20017 20018# Permission mode override for installation of shared libraries. 20019install_override_mode=$lt_install_override_mode 20020 20021# Command to use after installation of a shared archive. 20022postinstall_cmds=$lt_postinstall_cmds 20023 20024# Command to use after uninstallation of a shared archive. 20025postuninstall_cmds=$lt_postuninstall_cmds 20026 20027# Commands used to finish a libtool library installation in a directory. 20028finish_cmds=$lt_finish_cmds 20029 20030# As "finish_cmds", except a single script fragment to be evaled but 20031# not shown. 20032finish_eval=$lt_finish_eval 20033 20034# Whether we should hardcode library paths into libraries. 20035hardcode_into_libs=$hardcode_into_libs 20036 20037# Compile-time system search path for libraries. 20038sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20039 20040# Run-time system search path for libraries. 20041sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20042 20043# Whether dlopen is supported. 20044dlopen_support=$enable_dlopen 20045 20046# Whether dlopen of programs is supported. 20047dlopen_self=$enable_dlopen_self 20048 20049# Whether dlopen of statically linked programs is supported. 20050dlopen_self_static=$enable_dlopen_self_static 20051 20052# Commands to strip libraries. 20053old_striplib=$lt_old_striplib 20054striplib=$lt_striplib 20055 20056 20057# The linker used to build libraries. 20058LD=$lt_LD 20059 20060# How to create reloadable object files. 20061reload_flag=$lt_reload_flag 20062reload_cmds=$lt_reload_cmds 20063 20064# Commands used to build an old-style archive. 20065old_archive_cmds=$lt_old_archive_cmds 20066 20067# A language specific compiler. 20068CC=$lt_compiler 20069 20070# Is the compiler the GNU compiler? 20071with_gcc=$GCC 20072 20073# Compiler flag to turn off builtin functions. 20074no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20075 20076# Additional compiler flags for building library objects. 20077pic_flag=$lt_lt_prog_compiler_pic 20078 20079# How to pass a linker flag through the compiler. 20080wl=$lt_lt_prog_compiler_wl 20081 20082# Compiler flag to prevent dynamic linking. 20083link_static_flag=$lt_lt_prog_compiler_static 20084 20085# Does compiler simultaneously support -c and -o options? 20086compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20087 20088# Whether or not to add -lc for building shared libraries. 20089build_libtool_need_lc=$archive_cmds_need_lc 20090 20091# Whether or not to disallow shared libs when runtime libs are static. 20092allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20093 20094# Compiler flag to allow reflexive dlopens. 20095export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20096 20097# Compiler flag to generate shared objects directly from archives. 20098whole_archive_flag_spec=$lt_whole_archive_flag_spec 20099 20100# Whether the compiler copes with passing no objects directly. 20101compiler_needs_object=$lt_compiler_needs_object 20102 20103# Create an old-style archive from a shared archive. 20104old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20105 20106# Create a temporary old-style archive to link instead of a shared archive. 20107old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20108 20109# Commands used to build a shared archive. 20110archive_cmds=$lt_archive_cmds 20111archive_expsym_cmds=$lt_archive_expsym_cmds 20112 20113# Commands used to build a loadable module if different from building 20114# a shared archive. 20115module_cmds=$lt_module_cmds 20116module_expsym_cmds=$lt_module_expsym_cmds 20117 20118# Whether we are building with GNU ld or not. 20119with_gnu_ld=$lt_with_gnu_ld 20120 20121# Flag that allows shared libraries with undefined symbols to be built. 20122allow_undefined_flag=$lt_allow_undefined_flag 20123 20124# Flag that enforces no undefined symbols. 20125no_undefined_flag=$lt_no_undefined_flag 20126 20127# Flag to hardcode \$libdir into a binary during linking. 20128# This must work even if \$libdir does not exist 20129hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20130 20131# If ld is used when linking, flag to hardcode \$libdir into a binary 20132# during linking. This must work even if \$libdir does not exist. 20133hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 20134 20135# Whether we need a single "-rpath" flag with a separated argument. 20136hardcode_libdir_separator=$lt_hardcode_libdir_separator 20137 20138# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20139# DIR into the resulting binary. 20140hardcode_direct=$hardcode_direct 20141 20142# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20143# DIR into the resulting binary and the resulting library dependency is 20144# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20145# library is relocated. 20146hardcode_direct_absolute=$hardcode_direct_absolute 20147 20148# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20149# into the resulting binary. 20150hardcode_minus_L=$hardcode_minus_L 20151 20152# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20153# into the resulting binary. 20154hardcode_shlibpath_var=$hardcode_shlibpath_var 20155 20156# Set to "yes" if building a shared library automatically hardcodes DIR 20157# into the library and all subsequent libraries and executables linked 20158# against it. 20159hardcode_automatic=$hardcode_automatic 20160 20161# Set to yes if linker adds runtime paths of dependent libraries 20162# to runtime path list. 20163inherit_rpath=$inherit_rpath 20164 20165# Whether libtool must link a program against all its dependency libraries. 20166link_all_deplibs=$link_all_deplibs 20167 20168# Set to "yes" if exported symbols are required. 20169always_export_symbols=$always_export_symbols 20170 20171# The commands to list exported symbols. 20172export_symbols_cmds=$lt_export_symbols_cmds 20173 20174# Symbols that should not be listed in the preloaded symbols. 20175exclude_expsyms=$lt_exclude_expsyms 20176 20177# Symbols that must always be exported. 20178include_expsyms=$lt_include_expsyms 20179 20180# Commands necessary for linking programs (against libraries) with templates. 20181prelink_cmds=$lt_prelink_cmds 20182 20183# Commands necessary for finishing linking programs. 20184postlink_cmds=$lt_postlink_cmds 20185 20186# Specify filename containing input files. 20187file_list_spec=$lt_file_list_spec 20188 20189# How to hardcode a shared library path into an executable. 20190hardcode_action=$hardcode_action 20191 20192# ### END LIBTOOL CONFIG 20193 20194_LT_EOF 20195 20196 case $host_os in 20197 aix3*) 20198 cat <<\_LT_EOF >> "$cfgfile" 20199# AIX sometimes has problems with the GCC collect2 program. For some 20200# reason, if we set the COLLECT_NAMES environment variable, the problems 20201# vanish in a puff of smoke. 20202if test "X${COLLECT_NAMES+set}" != Xset; then 20203 COLLECT_NAMES= 20204 export COLLECT_NAMES 20205fi 20206_LT_EOF 20207 ;; 20208 esac 20209 20210 20211ltmain="$ac_aux_dir/ltmain.sh" 20212 20213 20214 # We use sed instead of cat because bash on DJGPP gets confused if 20215 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20216 # text mode, it properly converts lines to CR/LF. This bash problem 20217 # is reportedly fixed, but why not run on old versions too? 20218 sed '$q' "$ltmain" >> "$cfgfile" \ 20219 || (rm -f "$cfgfile"; exit 1) 20220 20221 if test x"$xsi_shell" = xyes; then 20222 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20223func_dirname ()\ 20224{\ 20225\ case ${1} in\ 20226\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20227\ * ) func_dirname_result="${3}" ;;\ 20228\ esac\ 20229} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20230 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20231 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20232test 0 -eq $? || _lt_function_replace_fail=: 20233 20234 20235 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20236func_basename ()\ 20237{\ 20238\ func_basename_result="${1##*/}"\ 20239} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20240 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20241 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20242test 0 -eq $? || _lt_function_replace_fail=: 20243 20244 20245 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20246func_dirname_and_basename ()\ 20247{\ 20248\ case ${1} in\ 20249\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20250\ * ) func_dirname_result="${3}" ;;\ 20251\ esac\ 20252\ func_basename_result="${1##*/}"\ 20253} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20254 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20255 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20256test 0 -eq $? || _lt_function_replace_fail=: 20257 20258 20259 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20260func_stripname ()\ 20261{\ 20262\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20263\ # positional parameters, so assign one to ordinary parameter first.\ 20264\ func_stripname_result=${3}\ 20265\ func_stripname_result=${func_stripname_result#"${1}"}\ 20266\ func_stripname_result=${func_stripname_result%"${2}"}\ 20267} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20268 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20269 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20270test 0 -eq $? || _lt_function_replace_fail=: 20271 20272 20273 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20274func_split_long_opt ()\ 20275{\ 20276\ func_split_long_opt_name=${1%%=*}\ 20277\ func_split_long_opt_arg=${1#*=}\ 20278} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20279 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20280 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20281test 0 -eq $? || _lt_function_replace_fail=: 20282 20283 20284 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20285func_split_short_opt ()\ 20286{\ 20287\ func_split_short_opt_arg=${1#??}\ 20288\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20289} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20290 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20291 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20292test 0 -eq $? || _lt_function_replace_fail=: 20293 20294 20295 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20296func_lo2o ()\ 20297{\ 20298\ case ${1} in\ 20299\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20300\ *) func_lo2o_result=${1} ;;\ 20301\ esac\ 20302} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20303 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20304 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20305test 0 -eq $? || _lt_function_replace_fail=: 20306 20307 20308 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20309func_xform ()\ 20310{\ 20311 func_xform_result=${1%.*}.lo\ 20312} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20313 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20314 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20315test 0 -eq $? || _lt_function_replace_fail=: 20316 20317 20318 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20319func_arith ()\ 20320{\ 20321 func_arith_result=$(( $* ))\ 20322} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20323 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20324 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20325test 0 -eq $? || _lt_function_replace_fail=: 20326 20327 20328 sed -e '/^func_len ()$/,/^} # func_len /c\ 20329func_len ()\ 20330{\ 20331 func_len_result=${#1}\ 20332} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20333 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20334 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20335test 0 -eq $? || _lt_function_replace_fail=: 20336 20337fi 20338 20339if test x"$lt_shell_append" = xyes; then 20340 sed -e '/^func_append ()$/,/^} # func_append /c\ 20341func_append ()\ 20342{\ 20343 eval "${1}+=\\${2}"\ 20344} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20345 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20346 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20347test 0 -eq $? || _lt_function_replace_fail=: 20348 20349 20350 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20351func_append_quoted ()\ 20352{\ 20353\ func_quote_for_eval "${2}"\ 20354\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20355} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20356 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20357 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20358test 0 -eq $? || _lt_function_replace_fail=: 20359 20360 20361 # Save a `func_append' function call where possible by direct use of '+=' 20362 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20363 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20364 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20365 test 0 -eq $? || _lt_function_replace_fail=: 20366else 20367 # Save a `func_append' function call even when '+=' is not available 20368 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20369 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20370 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20371 test 0 -eq $? || _lt_function_replace_fail=: 20372fi 20373 20374if test x"$_lt_function_replace_fail" = x":"; then 20375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20376$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20377fi 20378 20379 20380 mv -f "$cfgfile" "$ofile" || 20381 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20382 chmod +x "$ofile" 20383 20384 ;; 20385 20386 esac 20387done # for ac_tag 20388 20389 20390as_fn_exit 0 20391_ACEOF 20392ac_clean_files=$ac_clean_files_save 20393 20394test $ac_write_fail = 0 || 20395 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20396 20397 20398# configure is writing to config.log, and then calls config.status. 20399# config.status does its own redirection, appending to config.log. 20400# Unfortunately, on DOS this fails, as config.log is still kept open 20401# by configure, so config.status won't be able to write to it; its 20402# output is simply discarded. So we exec the FD to /dev/null, 20403# effectively closing config.log, so it can be properly (re)opened and 20404# appended to by config.status. When coming back to configure, we 20405# need to make the FD available again. 20406if test "$no_create" != yes; then 20407 ac_cs_success=: 20408 ac_config_status_args= 20409 test "$silent" = yes && 20410 ac_config_status_args="$ac_config_status_args --quiet" 20411 exec 5>/dev/null 20412 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20413 exec 5>>config.log 20414 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20415 # would make configure fail if this is the last instruction. 20416 $ac_cs_success || as_fn_exit 1 20417fi 20418if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20420$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20421fi 20422 20423