configure revision 17caa701
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXvMC 1.0.8. 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 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || 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='libXvMC' 573PACKAGE_TARNAME='libXvMC' 574PACKAGE_VERSION='1.0.8' 575PACKAGE_STRING='libXvMC 1.0.8' 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 620LINT_FALSE 621LINT_TRUE 622LINT_FLAGS 623LINT 624XVMC_LIBS 625XVMC_CFLAGS 626XTMALLOC_ZERO_CFLAGS 627XMALLOC_ZERO_CFLAGS 628MALLOC_ZERO_CFLAGS 629MAN_SUBSTS 630XORG_MAN_PAGE 631ADMIN_MAN_DIR 632DRIVER_MAN_DIR 633MISC_MAN_DIR 634FILE_MAN_DIR 635LIB_MAN_DIR 636APP_MAN_DIR 637ADMIN_MAN_SUFFIX 638DRIVER_MAN_SUFFIX 639MISC_MAN_SUFFIX 640FILE_MAN_SUFFIX 641LIB_MAN_SUFFIX 642APP_MAN_SUFFIX 643INSTALL_CMD 644PKG_CONFIG 645CHANGELOG_CMD 646STRICT_CFLAGS 647CWARNFLAGS 648BASE_CFLAGS 649CPP 650OTOOL64 651OTOOL 652LIPO 653NMEDIT 654DSYMUTIL 655MANIFEST_TOOL 656RANLIB 657ac_ct_AR 658AR 659DLLTOOL 660OBJDUMP 661LN_S 662NM 663ac_ct_DUMPBIN 664DUMPBIN 665LD 666FGREP 667EGREP 668GREP 669SED 670am__fastdepCC_FALSE 671am__fastdepCC_TRUE 672CCDEPMODE 673am__nodep 674AMDEPBACKSLASH 675AMDEP_FALSE 676AMDEP_TRUE 677am__quote 678am__include 679DEPDIR 680OBJEXT 681EXEEXT 682ac_ct_CC 683CPPFLAGS 684LDFLAGS 685CFLAGS 686CC 687host_os 688host_vendor 689host_cpu 690host 691build_os 692build_vendor 693build_cpu 694build 695LIBTOOL 696AM_BACKSLASH 697AM_DEFAULT_VERBOSITY 698AM_DEFAULT_V 699AM_V 700am__untar 701am__tar 702AMTAR 703am__leading_dot 704SET_MAKE 705AWK 706mkdir_p 707MKDIR_P 708INSTALL_STRIP_PROGRAM 709STRIP 710install_sh 711MAKEINFO 712AUTOHEADER 713AUTOMAKE 714AUTOCONF 715ACLOCAL 716VERSION 717PACKAGE 718CYGPATH_W 719am__isrc 720INSTALL_DATA 721INSTALL_SCRIPT 722INSTALL_PROGRAM 723target_alias 724host_alias 725build_alias 726LIBS 727ECHO_T 728ECHO_N 729ECHO_C 730DEFS 731mandir 732localedir 733libdir 734psdir 735pdfdir 736dvidir 737htmldir 738infodir 739docdir 740oldincludedir 741includedir 742localstatedir 743sharedstatedir 744sysconfdir 745datadir 746datarootdir 747libexecdir 748sbindir 749bindir 750program_transform_name 751prefix 752exec_prefix 753PACKAGE_URL 754PACKAGE_BUGREPORT 755PACKAGE_STRING 756PACKAGE_VERSION 757PACKAGE_TARNAME 758PACKAGE_NAME 759PATH_SEPARATOR 760SHELL' 761ac_subst_files='' 762ac_user_opts=' 763enable_option_checking 764enable_silent_rules 765enable_shared 766enable_static 767with_pic 768enable_fast_install 769enable_dependency_tracking 770with_gnu_ld 771with_sysroot 772enable_libtool_lock 773enable_selective_werror 774enable_strict_compilation 775enable_malloc0returnsnull 776with_lint 777' 778 ac_precious_vars='build_alias 779host_alias 780target_alias 781CC 782CFLAGS 783LDFLAGS 784LIBS 785CPPFLAGS 786CPP 787PKG_CONFIG 788XVMC_CFLAGS 789XVMC_LIBS 790LINT 791LINT_FLAGS' 792 793 794# Initialize some variables set by options. 795ac_init_help= 796ac_init_version=false 797ac_unrecognized_opts= 798ac_unrecognized_sep= 799# The variables have the same names as the options, with 800# dashes changed to underlines. 801cache_file=/dev/null 802exec_prefix=NONE 803no_create= 804no_recursion= 805prefix=NONE 806program_prefix=NONE 807program_suffix=NONE 808program_transform_name=s,x,x, 809silent= 810site= 811srcdir= 812verbose= 813x_includes=NONE 814x_libraries=NONE 815 816# Installation directory options. 817# These are left unexpanded so users can "make install exec_prefix=/foo" 818# and all the variables that are supposed to be based on exec_prefix 819# by default will actually change. 820# Use braces instead of parens because sh, perl, etc. also accept them. 821# (The list follows the same order as the GNU Coding Standards.) 822bindir='${exec_prefix}/bin' 823sbindir='${exec_prefix}/sbin' 824libexecdir='${exec_prefix}/libexec' 825datarootdir='${prefix}/share' 826datadir='${datarootdir}' 827sysconfdir='${prefix}/etc' 828sharedstatedir='${prefix}/com' 829localstatedir='${prefix}/var' 830includedir='${prefix}/include' 831oldincludedir='/usr/include' 832docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 833infodir='${datarootdir}/info' 834htmldir='${docdir}' 835dvidir='${docdir}' 836pdfdir='${docdir}' 837psdir='${docdir}' 838libdir='${exec_prefix}/lib' 839localedir='${datarootdir}/locale' 840mandir='${datarootdir}/man' 841 842ac_prev= 843ac_dashdash= 844for ac_option 845do 846 # If the previous option needs an argument, assign it. 847 if test -n "$ac_prev"; then 848 eval $ac_prev=\$ac_option 849 ac_prev= 850 continue 851 fi 852 853 case $ac_option in 854 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 855 *=) ac_optarg= ;; 856 *) ac_optarg=yes ;; 857 esac 858 859 # Accept the important Cygnus configure options, so we can diagnose typos. 860 861 case $ac_dashdash$ac_option in 862 --) 863 ac_dashdash=yes ;; 864 865 -bindir | --bindir | --bindi | --bind | --bin | --bi) 866 ac_prev=bindir ;; 867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 868 bindir=$ac_optarg ;; 869 870 -build | --build | --buil | --bui | --bu) 871 ac_prev=build_alias ;; 872 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 873 build_alias=$ac_optarg ;; 874 875 -cache-file | --cache-file | --cache-fil | --cache-fi \ 876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 877 ac_prev=cache_file ;; 878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 880 cache_file=$ac_optarg ;; 881 882 --config-cache | -C) 883 cache_file=config.cache ;; 884 885 -datadir | --datadir | --datadi | --datad) 886 ac_prev=datadir ;; 887 -datadir=* | --datadir=* | --datadi=* | --datad=*) 888 datadir=$ac_optarg ;; 889 890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 891 | --dataroo | --dataro | --datar) 892 ac_prev=datarootdir ;; 893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 895 datarootdir=$ac_optarg ;; 896 897 -disable-* | --disable-*) 898 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 899 # Reject names that are not valid shell variable names. 900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 901 as_fn_error $? "invalid feature name: $ac_useropt" 902 ac_useropt_orig=$ac_useropt 903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 904 case $ac_user_opts in 905 *" 906"enable_$ac_useropt" 907"*) ;; 908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 909 ac_unrecognized_sep=', ';; 910 esac 911 eval enable_$ac_useropt=no ;; 912 913 -docdir | --docdir | --docdi | --doc | --do) 914 ac_prev=docdir ;; 915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 916 docdir=$ac_optarg ;; 917 918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 919 ac_prev=dvidir ;; 920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 921 dvidir=$ac_optarg ;; 922 923 -enable-* | --enable-*) 924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 925 # Reject names that are not valid shell variable names. 926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 927 as_fn_error $? "invalid feature name: $ac_useropt" 928 ac_useropt_orig=$ac_useropt 929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 930 case $ac_user_opts in 931 *" 932"enable_$ac_useropt" 933"*) ;; 934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 935 ac_unrecognized_sep=', ';; 936 esac 937 eval enable_$ac_useropt=\$ac_optarg ;; 938 939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 941 | --exec | --exe | --ex) 942 ac_prev=exec_prefix ;; 943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 945 | --exec=* | --exe=* | --ex=*) 946 exec_prefix=$ac_optarg ;; 947 948 -gas | --gas | --ga | --g) 949 # Obsolete; use --with-gas. 950 with_gas=yes ;; 951 952 -help | --help | --hel | --he | -h) 953 ac_init_help=long ;; 954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 955 ac_init_help=recursive ;; 956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 957 ac_init_help=short ;; 958 959 -host | --host | --hos | --ho) 960 ac_prev=host_alias ;; 961 -host=* | --host=* | --hos=* | --ho=*) 962 host_alias=$ac_optarg ;; 963 964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 965 ac_prev=htmldir ;; 966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 967 | --ht=*) 968 htmldir=$ac_optarg ;; 969 970 -includedir | --includedir | --includedi | --included | --include \ 971 | --includ | --inclu | --incl | --inc) 972 ac_prev=includedir ;; 973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 974 | --includ=* | --inclu=* | --incl=* | --inc=*) 975 includedir=$ac_optarg ;; 976 977 -infodir | --infodir | --infodi | --infod | --info | --inf) 978 ac_prev=infodir ;; 979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 980 infodir=$ac_optarg ;; 981 982 -libdir | --libdir | --libdi | --libd) 983 ac_prev=libdir ;; 984 -libdir=* | --libdir=* | --libdi=* | --libd=*) 985 libdir=$ac_optarg ;; 986 987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 988 | --libexe | --libex | --libe) 989 ac_prev=libexecdir ;; 990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 991 | --libexe=* | --libex=* | --libe=*) 992 libexecdir=$ac_optarg ;; 993 994 -localedir | --localedir | --localedi | --localed | --locale) 995 ac_prev=localedir ;; 996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 997 localedir=$ac_optarg ;; 998 999 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1000 | --localstate | --localstat | --localsta | --localst | --locals) 1001 ac_prev=localstatedir ;; 1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1004 localstatedir=$ac_optarg ;; 1005 1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1007 ac_prev=mandir ;; 1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1009 mandir=$ac_optarg ;; 1010 1011 -nfp | --nfp | --nf) 1012 # Obsolete; use --without-fp. 1013 with_fp=no ;; 1014 1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1016 | --no-cr | --no-c | -n) 1017 no_create=yes ;; 1018 1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1021 no_recursion=yes ;; 1022 1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1025 | --oldin | --oldi | --old | --ol | --o) 1026 ac_prev=oldincludedir ;; 1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1030 oldincludedir=$ac_optarg ;; 1031 1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1033 ac_prev=prefix ;; 1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1035 prefix=$ac_optarg ;; 1036 1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1038 | --program-pre | --program-pr | --program-p) 1039 ac_prev=program_prefix ;; 1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1042 program_prefix=$ac_optarg ;; 1043 1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1045 | --program-suf | --program-su | --program-s) 1046 ac_prev=program_suffix ;; 1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1049 program_suffix=$ac_optarg ;; 1050 1051 -program-transform-name | --program-transform-name \ 1052 | --program-transform-nam | --program-transform-na \ 1053 | --program-transform-n | --program-transform- \ 1054 | --program-transform | --program-transfor \ 1055 | --program-transfo | --program-transf \ 1056 | --program-trans | --program-tran \ 1057 | --progr-tra | --program-tr | --program-t) 1058 ac_prev=program_transform_name ;; 1059 -program-transform-name=* | --program-transform-name=* \ 1060 | --program-transform-nam=* | --program-transform-na=* \ 1061 | --program-transform-n=* | --program-transform-=* \ 1062 | --program-transform=* | --program-transfor=* \ 1063 | --program-transfo=* | --program-transf=* \ 1064 | --program-trans=* | --program-tran=* \ 1065 | --progr-tra=* | --program-tr=* | --program-t=*) 1066 program_transform_name=$ac_optarg ;; 1067 1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1069 ac_prev=pdfdir ;; 1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1071 pdfdir=$ac_optarg ;; 1072 1073 -psdir | --psdir | --psdi | --psd | --ps) 1074 ac_prev=psdir ;; 1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1076 psdir=$ac_optarg ;; 1077 1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1079 | -silent | --silent | --silen | --sile | --sil) 1080 silent=yes ;; 1081 1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1083 ac_prev=sbindir ;; 1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1085 | --sbi=* | --sb=*) 1086 sbindir=$ac_optarg ;; 1087 1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1090 | --sharedst | --shareds | --shared | --share | --shar \ 1091 | --sha | --sh) 1092 ac_prev=sharedstatedir ;; 1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1096 | --sha=* | --sh=*) 1097 sharedstatedir=$ac_optarg ;; 1098 1099 -site | --site | --sit) 1100 ac_prev=site ;; 1101 -site=* | --site=* | --sit=*) 1102 site=$ac_optarg ;; 1103 1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1105 ac_prev=srcdir ;; 1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1107 srcdir=$ac_optarg ;; 1108 1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1110 | --syscon | --sysco | --sysc | --sys | --sy) 1111 ac_prev=sysconfdir ;; 1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1114 sysconfdir=$ac_optarg ;; 1115 1116 -target | --target | --targe | --targ | --tar | --ta | --t) 1117 ac_prev=target_alias ;; 1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1119 target_alias=$ac_optarg ;; 1120 1121 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1122 verbose=yes ;; 1123 1124 -version | --version | --versio | --versi | --vers | -V) 1125 ac_init_version=: ;; 1126 1127 -with-* | --with-*) 1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1129 # Reject names that are not valid shell variable names. 1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1131 as_fn_error $? "invalid package name: $ac_useropt" 1132 ac_useropt_orig=$ac_useropt 1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1134 case $ac_user_opts in 1135 *" 1136"with_$ac_useropt" 1137"*) ;; 1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1139 ac_unrecognized_sep=', ';; 1140 esac 1141 eval with_$ac_useropt=\$ac_optarg ;; 1142 1143 -without-* | --without-*) 1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1145 # Reject names that are not valid shell variable names. 1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1147 as_fn_error $? "invalid package name: $ac_useropt" 1148 ac_useropt_orig=$ac_useropt 1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1150 case $ac_user_opts in 1151 *" 1152"with_$ac_useropt" 1153"*) ;; 1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1155 ac_unrecognized_sep=', ';; 1156 esac 1157 eval with_$ac_useropt=no ;; 1158 1159 --x) 1160 # Obsolete; use --with-x. 1161 with_x=yes ;; 1162 1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1164 | --x-incl | --x-inc | --x-in | --x-i) 1165 ac_prev=x_includes ;; 1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1168 x_includes=$ac_optarg ;; 1169 1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1172 ac_prev=x_libraries ;; 1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1175 x_libraries=$ac_optarg ;; 1176 1177 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1178Try \`$0 --help' for more information" 1179 ;; 1180 1181 *=*) 1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1183 # Reject names that are not valid shell variable names. 1184 case $ac_envvar in #( 1185 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1186 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1187 esac 1188 eval $ac_envvar=\$ac_optarg 1189 export $ac_envvar ;; 1190 1191 *) 1192 # FIXME: should be removed in autoconf 3.0. 1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1197 ;; 1198 1199 esac 1200done 1201 1202if test -n "$ac_prev"; then 1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1204 as_fn_error $? "missing argument to $ac_option" 1205fi 1206 1207if test -n "$ac_unrecognized_opts"; then 1208 case $enable_option_checking in 1209 no) ;; 1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1212 esac 1213fi 1214 1215# Check all directory arguments for consistency. 1216for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1217 datadir sysconfdir sharedstatedir localstatedir includedir \ 1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1219 libdir localedir mandir 1220do 1221 eval ac_val=\$$ac_var 1222 # Remove trailing slashes. 1223 case $ac_val in 1224 */ ) 1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1226 eval $ac_var=\$ac_val;; 1227 esac 1228 # Be sure to have absolute directory names. 1229 case $ac_val in 1230 [\\/$]* | ?:[\\/]* ) continue;; 1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1232 esac 1233 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1234done 1235 1236# There might be people who depend on the old broken behavior: `$host' 1237# used to hold the argument of --host etc. 1238# FIXME: To remove some day. 1239build=$build_alias 1240host=$host_alias 1241target=$target_alias 1242 1243# FIXME: To remove some day. 1244if test "x$host_alias" != x; then 1245 if test "x$build_alias" = x; then 1246 cross_compiling=maybe 1247 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1248 If a cross compiler is detected then cross compile mode will be used" >&2 1249 elif test "x$build_alias" != "x$host_alias"; then 1250 cross_compiling=yes 1251 fi 1252fi 1253 1254ac_tool_prefix= 1255test -n "$host_alias" && ac_tool_prefix=$host_alias- 1256 1257test "$silent" = yes && exec 6>/dev/null 1258 1259 1260ac_pwd=`pwd` && test -n "$ac_pwd" && 1261ac_ls_di=`ls -di .` && 1262ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1263 as_fn_error $? "working directory cannot be determined" 1264test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1265 as_fn_error $? "pwd does not report name of working directory" 1266 1267 1268# Find the source files, if location was not specified. 1269if test -z "$srcdir"; then 1270 ac_srcdir_defaulted=yes 1271 # Try the directory containing this script, then the parent directory. 1272 ac_confdir=`$as_dirname -- "$as_myself" || 1273$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1274 X"$as_myself" : 'X\(//\)[^/]' \| \ 1275 X"$as_myself" : 'X\(//\)$' \| \ 1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1277$as_echo X"$as_myself" | 1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1279 s//\1/ 1280 q 1281 } 1282 /^X\(\/\/\)[^/].*/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\/\)$/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\).*/{ 1291 s//\1/ 1292 q 1293 } 1294 s/.*/./; q'` 1295 srcdir=$ac_confdir 1296 if test ! -r "$srcdir/$ac_unique_file"; then 1297 srcdir=.. 1298 fi 1299else 1300 ac_srcdir_defaulted=no 1301fi 1302if test ! -r "$srcdir/$ac_unique_file"; then 1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1305fi 1306ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1307ac_abs_confdir=`( 1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1309 pwd)` 1310# When building in place, set srcdir=. 1311if test "$ac_abs_confdir" = "$ac_pwd"; then 1312 srcdir=. 1313fi 1314# Remove unnecessary trailing slashes from srcdir. 1315# Double slashes in file names in object file debugging info 1316# mess up M-x gdb in Emacs. 1317case $srcdir in 1318*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1319esac 1320for ac_var in $ac_precious_vars; do 1321 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1322 eval ac_env_${ac_var}_value=\$${ac_var} 1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1324 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1325done 1326 1327# 1328# Report the --help message. 1329# 1330if test "$ac_init_help" = "long"; then 1331 # Omit some internal or obsolete options to make the list less imposing. 1332 # This message is too long to be a string in the A/UX 3.1 sh. 1333 cat <<_ACEOF 1334\`configure' configures libXvMC 1.0.8 to adapt to many kinds of systems. 1335 1336Usage: $0 [OPTION]... [VAR=VALUE]... 1337 1338To assign environment variables (e.g., CC, CFLAGS...), specify them as 1339VAR=VALUE. See below for descriptions of some of the useful variables. 1340 1341Defaults for the options are specified in brackets. 1342 1343Configuration: 1344 -h, --help display this help and exit 1345 --help=short display options specific to this package 1346 --help=recursive display the short help of all the included packages 1347 -V, --version display version information and exit 1348 -q, --quiet, --silent do not print \`checking ...' messages 1349 --cache-file=FILE cache test results in FILE [disabled] 1350 -C, --config-cache alias for \`--cache-file=config.cache' 1351 -n, --no-create do not create output files 1352 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1353 1354Installation directories: 1355 --prefix=PREFIX install architecture-independent files in PREFIX 1356 [$ac_default_prefix] 1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1358 [PREFIX] 1359 1360By default, \`make install' will install all the files in 1361\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1362an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1363for instance \`--prefix=\$HOME'. 1364 1365For better control, use the options below. 1366 1367Fine tuning of the installation directories: 1368 --bindir=DIR user executables [EPREFIX/bin] 1369 --sbindir=DIR system admin executables [EPREFIX/sbin] 1370 --libexecdir=DIR program executables [EPREFIX/libexec] 1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1374 --libdir=DIR object code libraries [EPREFIX/lib] 1375 --includedir=DIR C header files [PREFIX/include] 1376 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1379 --infodir=DIR info documentation [DATAROOTDIR/info] 1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1381 --mandir=DIR man documentation [DATAROOTDIR/man] 1382 --docdir=DIR documentation root [DATAROOTDIR/doc/libXvMC] 1383 --htmldir=DIR html documentation [DOCDIR] 1384 --dvidir=DIR dvi documentation [DOCDIR] 1385 --pdfdir=DIR pdf documentation [DOCDIR] 1386 --psdir=DIR ps documentation [DOCDIR] 1387_ACEOF 1388 1389 cat <<\_ACEOF 1390 1391Program names: 1392 --program-prefix=PREFIX prepend PREFIX to installed program names 1393 --program-suffix=SUFFIX append SUFFIX to installed program names 1394 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1395 1396System types: 1397 --build=BUILD configure for building on BUILD [guessed] 1398 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1399_ACEOF 1400fi 1401 1402if test -n "$ac_init_help"; then 1403 case $ac_init_help in 1404 short | recursive ) echo "Configuration of libXvMC 1.0.8:";; 1405 esac 1406 cat <<\_ACEOF 1407 1408Optional Features: 1409 --disable-option-checking ignore unrecognized --enable/--with options 1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1412 --enable-silent-rules less verbose build output (undo: "make V=1") 1413 --disable-silent-rules verbose build output (undo: "make V=0") 1414 --enable-shared[=PKGS] build shared libraries [default=yes] 1415 --enable-static[=PKGS] build static libraries [default=yes] 1416 --enable-fast-install[=PKGS] 1417 optimize for fast installation [default=yes] 1418 --enable-dependency-tracking 1419 do not reject slow dependency extractors 1420 --disable-dependency-tracking 1421 speeds up one-time build 1422 --disable-libtool-lock avoid locking (might break parallel builds) 1423 --disable-selective-werror 1424 Turn off selective compiler errors. (default: 1425 enabled) 1426 --enable-strict-compilation 1427 Enable all warnings from compiler and make them 1428 errors (default: disabled) 1429 --enable-malloc0returnsnull 1430 malloc(0) returns NULL (default: auto) 1431 1432Optional Packages: 1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1435 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1436 both] 1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1438 --with-sysroot=DIR Search for dependent libraries within DIR 1439 (or the compiler's sysroot if not specified). 1440 --with-lint Use a lint-style source code checker (default: 1441 disabled) 1442 1443Some influential environment variables: 1444 CC C compiler command 1445 CFLAGS C compiler flags 1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1447 nonstandard directory <lib dir> 1448 LIBS libraries to pass to the linker, e.g. -l<library> 1449 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1450 you have headers in a nonstandard directory <include dir> 1451 CPP C preprocessor 1452 PKG_CONFIG path to pkg-config utility 1453 XVMC_CFLAGS C compiler flags for XVMC, overriding pkg-config 1454 XVMC_LIBS linker flags for XVMC, overriding pkg-config 1455 LINT Path to a lint-style command 1456 LINT_FLAGS Flags for the lint-style command 1457 1458Use these variables to override the choices made by `configure' or to help 1459it to find libraries and programs with nonstandard names/locations. 1460 1461Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1462_ACEOF 1463ac_status=$? 1464fi 1465 1466if test "$ac_init_help" = "recursive"; then 1467 # If there are subdirs, report their specific --help. 1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1469 test -d "$ac_dir" || 1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1471 continue 1472 ac_builddir=. 1473 1474case "$ac_dir" in 1475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1476*) 1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1478 # A ".." for each directory in $ac_dir_suffix. 1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1480 case $ac_top_builddir_sub in 1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1483 esac ;; 1484esac 1485ac_abs_top_builddir=$ac_pwd 1486ac_abs_builddir=$ac_pwd$ac_dir_suffix 1487# for backward compatibility: 1488ac_top_builddir=$ac_top_build_prefix 1489 1490case $srcdir in 1491 .) # We are building in place. 1492 ac_srcdir=. 1493 ac_top_srcdir=$ac_top_builddir_sub 1494 ac_abs_top_srcdir=$ac_pwd ;; 1495 [\\/]* | ?:[\\/]* ) # Absolute name. 1496 ac_srcdir=$srcdir$ac_dir_suffix; 1497 ac_top_srcdir=$srcdir 1498 ac_abs_top_srcdir=$srcdir ;; 1499 *) # Relative name. 1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1501 ac_top_srcdir=$ac_top_build_prefix$srcdir 1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1503esac 1504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1505 1506 cd "$ac_dir" || { ac_status=$?; continue; } 1507 # Check for guested configure. 1508 if test -f "$ac_srcdir/configure.gnu"; then 1509 echo && 1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1511 elif test -f "$ac_srcdir/configure"; then 1512 echo && 1513 $SHELL "$ac_srcdir/configure" --help=recursive 1514 else 1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1516 fi || ac_status=$? 1517 cd "$ac_pwd" || { ac_status=$?; break; } 1518 done 1519fi 1520 1521test -n "$ac_init_help" && exit $ac_status 1522if $ac_init_version; then 1523 cat <<\_ACEOF 1524libXvMC configure 1.0.8 1525generated by GNU Autoconf 2.68 1526 1527Copyright (C) 2010 Free Software Foundation, Inc. 1528This configure script is free software; the Free Software Foundation 1529gives unlimited permission to copy, distribute and modify it. 1530_ACEOF 1531 exit 1532fi 1533 1534## ------------------------ ## 1535## Autoconf initialization. ## 1536## ------------------------ ## 1537 1538# ac_fn_c_try_compile LINENO 1539# -------------------------- 1540# Try to compile conftest.$ac_ext, and return whether this succeeded. 1541ac_fn_c_try_compile () 1542{ 1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1544 rm -f conftest.$ac_objext 1545 if { { ac_try="$ac_compile" 1546case "(($ac_try" in 1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1548 *) ac_try_echo=$ac_try;; 1549esac 1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1551$as_echo "$ac_try_echo"; } >&5 1552 (eval "$ac_compile") 2>conftest.err 1553 ac_status=$? 1554 if test -s conftest.err; then 1555 grep -v '^ *+' conftest.err >conftest.er1 1556 cat conftest.er1 >&5 1557 mv -f conftest.er1 conftest.err 1558 fi 1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1560 test $ac_status = 0; } && { 1561 test -z "$ac_c_werror_flag" || 1562 test ! -s conftest.err 1563 } && test -s conftest.$ac_objext; then : 1564 ac_retval=0 1565else 1566 $as_echo "$as_me: failed program was:" >&5 1567sed 's/^/| /' conftest.$ac_ext >&5 1568 1569 ac_retval=1 1570fi 1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1572 as_fn_set_status $ac_retval 1573 1574} # ac_fn_c_try_compile 1575 1576# ac_fn_c_try_link LINENO 1577# ----------------------- 1578# Try to link conftest.$ac_ext, and return whether this succeeded. 1579ac_fn_c_try_link () 1580{ 1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1582 rm -f conftest.$ac_objext conftest$ac_exeext 1583 if { { ac_try="$ac_link" 1584case "(($ac_try" in 1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1586 *) ac_try_echo=$ac_try;; 1587esac 1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1589$as_echo "$ac_try_echo"; } >&5 1590 (eval "$ac_link") 2>conftest.err 1591 ac_status=$? 1592 if test -s conftest.err; then 1593 grep -v '^ *+' conftest.err >conftest.er1 1594 cat conftest.er1 >&5 1595 mv -f conftest.er1 conftest.err 1596 fi 1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1598 test $ac_status = 0; } && { 1599 test -z "$ac_c_werror_flag" || 1600 test ! -s conftest.err 1601 } && test -s conftest$ac_exeext && { 1602 test "$cross_compiling" = yes || 1603 $as_test_x conftest$ac_exeext 1604 }; then : 1605 ac_retval=0 1606else 1607 $as_echo "$as_me: failed program was:" >&5 1608sed 's/^/| /' conftest.$ac_ext >&5 1609 1610 ac_retval=1 1611fi 1612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1614 # interfere with the next link command; also delete a directory that is 1615 # left behind by Apple's compiler. We do this before executing the actions. 1616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1618 as_fn_set_status $ac_retval 1619 1620} # ac_fn_c_try_link 1621 1622# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1623# ------------------------------------------------------- 1624# Tests whether HEADER exists and can be compiled using the include files in 1625# INCLUDES, setting the cache variable VAR accordingly. 1626ac_fn_c_check_header_compile () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1630$as_echo_n "checking for $2... " >&6; } 1631if eval \${$3+:} false; then : 1632 $as_echo_n "(cached) " >&6 1633else 1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1635/* end confdefs.h. */ 1636$4 1637#include <$2> 1638_ACEOF 1639if ac_fn_c_try_compile "$LINENO"; then : 1640 eval "$3=yes" 1641else 1642 eval "$3=no" 1643fi 1644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1645fi 1646eval ac_res=\$$3 1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1648$as_echo "$ac_res" >&6; } 1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1650 1651} # ac_fn_c_check_header_compile 1652 1653# ac_fn_c_try_cpp LINENO 1654# ---------------------- 1655# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1656ac_fn_c_try_cpp () 1657{ 1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1659 if { { ac_try="$ac_cpp conftest.$ac_ext" 1660case "(($ac_try" in 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1662 *) ac_try_echo=$ac_try;; 1663esac 1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1665$as_echo "$ac_try_echo"; } >&5 1666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1667 ac_status=$? 1668 if test -s conftest.err; then 1669 grep -v '^ *+' conftest.err >conftest.er1 1670 cat conftest.er1 >&5 1671 mv -f conftest.er1 conftest.err 1672 fi 1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1674 test $ac_status = 0; } > conftest.i && { 1675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1676 test ! -s conftest.err 1677 }; then : 1678 ac_retval=0 1679else 1680 $as_echo "$as_me: failed program was:" >&5 1681sed 's/^/| /' conftest.$ac_ext >&5 1682 1683 ac_retval=1 1684fi 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1686 as_fn_set_status $ac_retval 1687 1688} # ac_fn_c_try_cpp 1689 1690# ac_fn_c_try_run LINENO 1691# ---------------------- 1692# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1693# that executables *can* be run. 1694ac_fn_c_try_run () 1695{ 1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1697 if { { ac_try="$ac_link" 1698case "(($ac_try" in 1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1700 *) ac_try_echo=$ac_try;; 1701esac 1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1703$as_echo "$ac_try_echo"; } >&5 1704 (eval "$ac_link") 2>&5 1705 ac_status=$? 1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1708 { { case "(($ac_try" in 1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1710 *) ac_try_echo=$ac_try;; 1711esac 1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1713$as_echo "$ac_try_echo"; } >&5 1714 (eval "$ac_try") 2>&5 1715 ac_status=$? 1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1717 test $ac_status = 0; }; }; then : 1718 ac_retval=0 1719else 1720 $as_echo "$as_me: program exited with status $ac_status" >&5 1721 $as_echo "$as_me: failed program was:" >&5 1722sed 's/^/| /' conftest.$ac_ext >&5 1723 1724 ac_retval=$ac_status 1725fi 1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1728 as_fn_set_status $ac_retval 1729 1730} # ac_fn_c_try_run 1731 1732# ac_fn_c_check_func LINENO FUNC VAR 1733# ---------------------------------- 1734# Tests whether FUNC exists, setting the cache variable VAR accordingly 1735ac_fn_c_check_func () 1736{ 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1739$as_echo_n "checking for $2... " >&6; } 1740if eval \${$3+:} false; then : 1741 $as_echo_n "(cached) " >&6 1742else 1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1744/* end confdefs.h. */ 1745/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1746 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1747#define $2 innocuous_$2 1748 1749/* System header to define __stub macros and hopefully few prototypes, 1750 which can conflict with char $2 (); below. 1751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1752 <limits.h> exists even on freestanding compilers. */ 1753 1754#ifdef __STDC__ 1755# include <limits.h> 1756#else 1757# include <assert.h> 1758#endif 1759 1760#undef $2 1761 1762/* Override any GCC internal prototype to avoid an error. 1763 Use char because int might match the return type of a GCC 1764 builtin and then its argument prototype would still apply. */ 1765#ifdef __cplusplus 1766extern "C" 1767#endif 1768char $2 (); 1769/* The GNU C library defines this for functions which it implements 1770 to always fail with ENOSYS. Some functions are actually named 1771 something starting with __ and the normal name is an alias. */ 1772#if defined __stub_$2 || defined __stub___$2 1773choke me 1774#endif 1775 1776int 1777main () 1778{ 1779return $2 (); 1780 ; 1781 return 0; 1782} 1783_ACEOF 1784if ac_fn_c_try_link "$LINENO"; then : 1785 eval "$3=yes" 1786else 1787 eval "$3=no" 1788fi 1789rm -f core conftest.err conftest.$ac_objext \ 1790 conftest$ac_exeext conftest.$ac_ext 1791fi 1792eval ac_res=\$$3 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1794$as_echo "$ac_res" >&6; } 1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1796 1797} # ac_fn_c_check_func 1798 1799# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1800# --------------------------------------------- 1801# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1802# accordingly. 1803ac_fn_c_check_decl () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 as_decl_name=`echo $2|sed 's/ *(.*//'` 1807 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1809$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1810if eval \${$3+:} false; then : 1811 $as_echo_n "(cached) " >&6 1812else 1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1814/* end confdefs.h. */ 1815$4 1816int 1817main () 1818{ 1819#ifndef $as_decl_name 1820#ifdef __cplusplus 1821 (void) $as_decl_use; 1822#else 1823 (void) $as_decl_name; 1824#endif 1825#endif 1826 1827 ; 1828 return 0; 1829} 1830_ACEOF 1831if ac_fn_c_try_compile "$LINENO"; then : 1832 eval "$3=yes" 1833else 1834 eval "$3=no" 1835fi 1836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1837fi 1838eval ac_res=\$$3 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1840$as_echo "$ac_res" >&6; } 1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1842 1843} # ac_fn_c_check_decl 1844cat >config.log <<_ACEOF 1845This file contains any messages produced by compilers while 1846running configure, to aid debugging if configure makes a mistake. 1847 1848It was created by libXvMC $as_me 1.0.8, which was 1849generated by GNU Autoconf 2.68. Invocation command line was 1850 1851 $ $0 $@ 1852 1853_ACEOF 1854exec 5>>config.log 1855{ 1856cat <<_ASUNAME 1857## --------- ## 1858## Platform. ## 1859## --------- ## 1860 1861hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1862uname -m = `(uname -m) 2>/dev/null || echo unknown` 1863uname -r = `(uname -r) 2>/dev/null || echo unknown` 1864uname -s = `(uname -s) 2>/dev/null || echo unknown` 1865uname -v = `(uname -v) 2>/dev/null || echo unknown` 1866 1867/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1868/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1869 1870/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1871/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1872/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1873/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1874/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1875/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1876/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1877 1878_ASUNAME 1879 1880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1881for as_dir in $PATH 1882do 1883 IFS=$as_save_IFS 1884 test -z "$as_dir" && as_dir=. 1885 $as_echo "PATH: $as_dir" 1886 done 1887IFS=$as_save_IFS 1888 1889} >&5 1890 1891cat >&5 <<_ACEOF 1892 1893 1894## ----------- ## 1895## Core tests. ## 1896## ----------- ## 1897 1898_ACEOF 1899 1900 1901# Keep a trace of the command line. 1902# Strip out --no-create and --no-recursion so they do not pile up. 1903# Strip out --silent because we don't want to record it for future runs. 1904# Also quote any args containing shell meta-characters. 1905# Make two passes to allow for proper duplicate-argument suppression. 1906ac_configure_args= 1907ac_configure_args0= 1908ac_configure_args1= 1909ac_must_keep_next=false 1910for ac_pass in 1 2 1911do 1912 for ac_arg 1913 do 1914 case $ac_arg in 1915 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1916 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1917 | -silent | --silent | --silen | --sile | --sil) 1918 continue ;; 1919 *\'*) 1920 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1921 esac 1922 case $ac_pass in 1923 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1924 2) 1925 as_fn_append ac_configure_args1 " '$ac_arg'" 1926 if test $ac_must_keep_next = true; then 1927 ac_must_keep_next=false # Got value, back to normal. 1928 else 1929 case $ac_arg in 1930 *=* | --config-cache | -C | -disable-* | --disable-* \ 1931 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1932 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1933 | -with-* | --with-* | -without-* | --without-* | --x) 1934 case "$ac_configure_args0 " in 1935 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1936 esac 1937 ;; 1938 -* ) ac_must_keep_next=true ;; 1939 esac 1940 fi 1941 as_fn_append ac_configure_args " '$ac_arg'" 1942 ;; 1943 esac 1944 done 1945done 1946{ ac_configure_args0=; unset ac_configure_args0;} 1947{ ac_configure_args1=; unset ac_configure_args1;} 1948 1949# When interrupted or exit'd, cleanup temporary files, and complete 1950# config.log. We remove comments because anyway the quotes in there 1951# would cause problems or look ugly. 1952# WARNING: Use '\'' to represent an apostrophe within the trap. 1953# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1954trap 'exit_status=$? 1955 # Save into config.log some information that might help in debugging. 1956 { 1957 echo 1958 1959 $as_echo "## ---------------- ## 1960## Cache variables. ## 1961## ---------------- ##" 1962 echo 1963 # The following way of writing the cache mishandles newlines in values, 1964( 1965 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1966 eval ac_val=\$$ac_var 1967 case $ac_val in #( 1968 *${as_nl}*) 1969 case $ac_var in #( 1970 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1971$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1972 esac 1973 case $ac_var in #( 1974 _ | IFS | as_nl) ;; #( 1975 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1976 *) { eval $ac_var=; unset $ac_var;} ;; 1977 esac ;; 1978 esac 1979 done 1980 (set) 2>&1 | 1981 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1982 *${as_nl}ac_space=\ *) 1983 sed -n \ 1984 "s/'\''/'\''\\\\'\'''\''/g; 1985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1986 ;; #( 1987 *) 1988 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1989 ;; 1990 esac | 1991 sort 1992) 1993 echo 1994 1995 $as_echo "## ----------------- ## 1996## Output variables. ## 1997## ----------------- ##" 1998 echo 1999 for ac_var in $ac_subst_vars 2000 do 2001 eval ac_val=\$$ac_var 2002 case $ac_val in 2003 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2004 esac 2005 $as_echo "$ac_var='\''$ac_val'\''" 2006 done | sort 2007 echo 2008 2009 if test -n "$ac_subst_files"; then 2010 $as_echo "## ------------------- ## 2011## File substitutions. ## 2012## ------------------- ##" 2013 echo 2014 for ac_var in $ac_subst_files 2015 do 2016 eval ac_val=\$$ac_var 2017 case $ac_val in 2018 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2019 esac 2020 $as_echo "$ac_var='\''$ac_val'\''" 2021 done | sort 2022 echo 2023 fi 2024 2025 if test -s confdefs.h; then 2026 $as_echo "## ----------- ## 2027## confdefs.h. ## 2028## ----------- ##" 2029 echo 2030 cat confdefs.h 2031 echo 2032 fi 2033 test "$ac_signal" != 0 && 2034 $as_echo "$as_me: caught signal $ac_signal" 2035 $as_echo "$as_me: exit $exit_status" 2036 } >&5 2037 rm -f core *.core core.conftest.* && 2038 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2039 exit $exit_status 2040' 0 2041for ac_signal in 1 2 13 15; do 2042 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2043done 2044ac_signal=0 2045 2046# confdefs.h avoids OS command line length limits that DEFS can exceed. 2047rm -f -r conftest* confdefs.h 2048 2049$as_echo "/* confdefs.h */" > confdefs.h 2050 2051# Predefined preprocessor variables. 2052 2053cat >>confdefs.h <<_ACEOF 2054#define PACKAGE_NAME "$PACKAGE_NAME" 2055_ACEOF 2056 2057cat >>confdefs.h <<_ACEOF 2058#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2059_ACEOF 2060 2061cat >>confdefs.h <<_ACEOF 2062#define PACKAGE_VERSION "$PACKAGE_VERSION" 2063_ACEOF 2064 2065cat >>confdefs.h <<_ACEOF 2066#define PACKAGE_STRING "$PACKAGE_STRING" 2067_ACEOF 2068 2069cat >>confdefs.h <<_ACEOF 2070#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2071_ACEOF 2072 2073cat >>confdefs.h <<_ACEOF 2074#define PACKAGE_URL "$PACKAGE_URL" 2075_ACEOF 2076 2077 2078# Let the site file select an alternate cache file if it wants to. 2079# Prefer an explicitly selected file to automatically selected ones. 2080ac_site_file1=NONE 2081ac_site_file2=NONE 2082if test -n "$CONFIG_SITE"; then 2083 # We do not want a PATH search for config.site. 2084 case $CONFIG_SITE in #(( 2085 -*) ac_site_file1=./$CONFIG_SITE;; 2086 */*) ac_site_file1=$CONFIG_SITE;; 2087 *) ac_site_file1=./$CONFIG_SITE;; 2088 esac 2089elif test "x$prefix" != xNONE; then 2090 ac_site_file1=$prefix/share/config.site 2091 ac_site_file2=$prefix/etc/config.site 2092else 2093 ac_site_file1=$ac_default_prefix/share/config.site 2094 ac_site_file2=$ac_default_prefix/etc/config.site 2095fi 2096for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2097do 2098 test "x$ac_site_file" = xNONE && continue 2099 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2100 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2101$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2102 sed 's/^/| /' "$ac_site_file" >&5 2103 . "$ac_site_file" \ 2104 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2106as_fn_error $? "failed to load site script $ac_site_file 2107See \`config.log' for more details" "$LINENO" 5; } 2108 fi 2109done 2110 2111if test -r "$cache_file"; then 2112 # Some versions of bash will fail to source /dev/null (special files 2113 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2114 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2116$as_echo "$as_me: loading cache $cache_file" >&6;} 2117 case $cache_file in 2118 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2119 *) . "./$cache_file";; 2120 esac 2121 fi 2122else 2123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2124$as_echo "$as_me: creating cache $cache_file" >&6;} 2125 >$cache_file 2126fi 2127 2128# Check that the precious variables saved in the cache have kept the same 2129# value. 2130ac_cache_corrupted=false 2131for ac_var in $ac_precious_vars; do 2132 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2133 eval ac_new_set=\$ac_env_${ac_var}_set 2134 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2135 eval ac_new_val=\$ac_env_${ac_var}_value 2136 case $ac_old_set,$ac_new_set in 2137 set,) 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2139$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2140 ac_cache_corrupted=: ;; 2141 ,set) 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2143$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2144 ac_cache_corrupted=: ;; 2145 ,);; 2146 *) 2147 if test "x$ac_old_val" != "x$ac_new_val"; then 2148 # differences in whitespace do not lead to failure. 2149 ac_old_val_w=`echo x $ac_old_val` 2150 ac_new_val_w=`echo x $ac_new_val` 2151 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2153$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2154 ac_cache_corrupted=: 2155 else 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2157$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2158 eval $ac_var=\$ac_old_val 2159 fi 2160 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2161$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2163$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2164 fi;; 2165 esac 2166 # Pass precious variables to config.status. 2167 if test "$ac_new_set" = set; then 2168 case $ac_new_val in 2169 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2170 *) ac_arg=$ac_var=$ac_new_val ;; 2171 esac 2172 case " $ac_configure_args " in 2173 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2174 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2175 esac 2176 fi 2177done 2178if $ac_cache_corrupted; then 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2182$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2183 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2184fi 2185## -------------------- ## 2186## Main body of script. ## 2187## -------------------- ## 2188 2189ac_ext=c 2190ac_cpp='$CPP $CPPFLAGS' 2191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2193ac_compiler_gnu=$ac_cv_c_compiler_gnu 2194 2195 2196 2197ac_config_headers="$ac_config_headers config.h" 2198 2199 2200# Initialize Automake 2201am__api_version='1.13' 2202 2203ac_aux_dir= 2204for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2205 if test -f "$ac_dir/install-sh"; then 2206 ac_aux_dir=$ac_dir 2207 ac_install_sh="$ac_aux_dir/install-sh -c" 2208 break 2209 elif test -f "$ac_dir/install.sh"; then 2210 ac_aux_dir=$ac_dir 2211 ac_install_sh="$ac_aux_dir/install.sh -c" 2212 break 2213 elif test -f "$ac_dir/shtool"; then 2214 ac_aux_dir=$ac_dir 2215 ac_install_sh="$ac_aux_dir/shtool install -c" 2216 break 2217 fi 2218done 2219if test -z "$ac_aux_dir"; then 2220 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2221fi 2222 2223# These three variables are undocumented and unsupported, 2224# and are intended to be withdrawn in a future Autoconf release. 2225# They can cause serious problems if a builder's source tree is in a directory 2226# whose full name contains unusual characters. 2227ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2228ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2229ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2230 2231 2232# Find a good install program. We prefer a C program (faster), 2233# so one script is as good as another. But avoid the broken or 2234# incompatible versions: 2235# SysV /etc/install, /usr/sbin/install 2236# SunOS /usr/etc/install 2237# IRIX /sbin/install 2238# AIX /bin/install 2239# AmigaOS /C/install, which installs bootblocks on floppy discs 2240# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2241# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2242# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2243# OS/2's system install, which has a completely different semantic 2244# ./install, which can be erroneously created by make from ./install.sh. 2245# Reject install programs that cannot install multiple files. 2246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2247$as_echo_n "checking for a BSD-compatible install... " >&6; } 2248if test -z "$INSTALL"; then 2249if ${ac_cv_path_install+:} false; then : 2250 $as_echo_n "(cached) " >&6 2251else 2252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2253for as_dir in $PATH 2254do 2255 IFS=$as_save_IFS 2256 test -z "$as_dir" && as_dir=. 2257 # Account for people who put trailing slashes in PATH elements. 2258case $as_dir/ in #(( 2259 ./ | .// | /[cC]/* | \ 2260 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2261 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2262 /usr/ucb/* ) ;; 2263 *) 2264 # OSF1 and SCO ODT 3.0 have their own names for install. 2265 # Don't use installbsd from OSF since it installs stuff as root 2266 # by default. 2267 for ac_prog in ginstall scoinst install; do 2268 for ac_exec_ext in '' $ac_executable_extensions; do 2269 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2270 if test $ac_prog = install && 2271 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2272 # AIX install. It has an incompatible calling convention. 2273 : 2274 elif test $ac_prog = install && 2275 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2276 # program-specific install script used by HP pwplus--don't use. 2277 : 2278 else 2279 rm -rf conftest.one conftest.two conftest.dir 2280 echo one > conftest.one 2281 echo two > conftest.two 2282 mkdir conftest.dir 2283 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2284 test -s conftest.one && test -s conftest.two && 2285 test -s conftest.dir/conftest.one && 2286 test -s conftest.dir/conftest.two 2287 then 2288 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2289 break 3 2290 fi 2291 fi 2292 fi 2293 done 2294 done 2295 ;; 2296esac 2297 2298 done 2299IFS=$as_save_IFS 2300 2301rm -rf conftest.one conftest.two conftest.dir 2302 2303fi 2304 if test "${ac_cv_path_install+set}" = set; then 2305 INSTALL=$ac_cv_path_install 2306 else 2307 # As a last resort, use the slow shell script. Don't cache a 2308 # value for INSTALL within a source directory, because that will 2309 # break other packages using the cache if that directory is 2310 # removed, or if the value is a relative name. 2311 INSTALL=$ac_install_sh 2312 fi 2313fi 2314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2315$as_echo "$INSTALL" >&6; } 2316 2317# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2318# It thinks the first close brace ends the variable substitution. 2319test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2320 2321test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2322 2323test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2324 2325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2326$as_echo_n "checking whether build environment is sane... " >&6; } 2327# Reject unsafe characters in $srcdir or the absolute working directory 2328# name. Accept space and tab only in the latter. 2329am_lf=' 2330' 2331case `pwd` in 2332 *[\\\"\#\$\&\'\`$am_lf]*) 2333 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2334esac 2335case $srcdir in 2336 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2337 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2338esac 2339 2340# Do 'set' in a subshell so we don't clobber the current shell's 2341# arguments. Must try -L first in case configure is actually a 2342# symlink; some systems play weird games with the mod time of symlinks 2343# (eg FreeBSD returns the mod time of the symlink's containing 2344# directory). 2345if ( 2346 am_has_slept=no 2347 for am_try in 1 2; do 2348 echo "timestamp, slept: $am_has_slept" > conftest.file 2349 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2350 if test "$*" = "X"; then 2351 # -L didn't work. 2352 set X `ls -t "$srcdir/configure" conftest.file` 2353 fi 2354 if test "$*" != "X $srcdir/configure conftest.file" \ 2355 && test "$*" != "X conftest.file $srcdir/configure"; then 2356 2357 # If neither matched, then we have a broken ls. This can happen 2358 # if, for instance, CONFIG_SHELL is bash and it inherits a 2359 # broken ls alias from the environment. This has actually 2360 # happened. Such a system could not be considered "sane". 2361 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2362 alias in your environment" "$LINENO" 5 2363 fi 2364 if test "$2" = conftest.file || test $am_try -eq 2; then 2365 break 2366 fi 2367 # Just in case. 2368 sleep 1 2369 am_has_slept=yes 2370 done 2371 test "$2" = conftest.file 2372 ) 2373then 2374 # Ok. 2375 : 2376else 2377 as_fn_error $? "newly created file is older than distributed files! 2378Check your system clock" "$LINENO" 5 2379fi 2380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2381$as_echo "yes" >&6; } 2382# If we didn't sleep, we still need to ensure time stamps of config.status and 2383# generated files are strictly newer. 2384am_sleep_pid= 2385if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2386 ( sleep 1 ) & 2387 am_sleep_pid=$! 2388fi 2389 2390rm -f conftest.file 2391 2392test "$program_prefix" != NONE && 2393 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2394# Use a double $ so make ignores it. 2395test "$program_suffix" != NONE && 2396 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2397# Double any \ or $. 2398# By default was `s,x,x', remove it if useless. 2399ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2400program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2401 2402# expand $ac_aux_dir to an absolute path 2403am_aux_dir=`cd $ac_aux_dir && pwd` 2404 2405if test x"${MISSING+set}" != xset; then 2406 case $am_aux_dir in 2407 *\ * | *\ *) 2408 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2409 *) 2410 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2411 esac 2412fi 2413# Use eval to expand $SHELL 2414if eval "$MISSING --is-lightweight"; then 2415 am_missing_run="$MISSING " 2416else 2417 am_missing_run= 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2419$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2420fi 2421 2422if test x"${install_sh}" != xset; then 2423 case $am_aux_dir in 2424 *\ * | *\ *) 2425 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2426 *) 2427 install_sh="\${SHELL} $am_aux_dir/install-sh" 2428 esac 2429fi 2430 2431# Installed binaries are usually stripped using 'strip' when the user 2432# run "make install-strip". However 'strip' might not be the right 2433# tool to use in cross-compilation environments, therefore Automake 2434# will honor the 'STRIP' environment variable to overrule this program. 2435if test "$cross_compiling" != no; then 2436 if test -n "$ac_tool_prefix"; then 2437 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2438set dummy ${ac_tool_prefix}strip; ac_word=$2 2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2440$as_echo_n "checking for $ac_word... " >&6; } 2441if ${ac_cv_prog_STRIP+:} false; then : 2442 $as_echo_n "(cached) " >&6 2443else 2444 if test -n "$STRIP"; then 2445 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2446else 2447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2448for as_dir in $PATH 2449do 2450 IFS=$as_save_IFS 2451 test -z "$as_dir" && as_dir=. 2452 for ac_exec_ext in '' $ac_executable_extensions; do 2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2454 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2456 break 2 2457 fi 2458done 2459 done 2460IFS=$as_save_IFS 2461 2462fi 2463fi 2464STRIP=$ac_cv_prog_STRIP 2465if test -n "$STRIP"; then 2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2467$as_echo "$STRIP" >&6; } 2468else 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2470$as_echo "no" >&6; } 2471fi 2472 2473 2474fi 2475if test -z "$ac_cv_prog_STRIP"; then 2476 ac_ct_STRIP=$STRIP 2477 # Extract the first word of "strip", so it can be a program name with args. 2478set dummy strip; ac_word=$2 2479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2480$as_echo_n "checking for $ac_word... " >&6; } 2481if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2482 $as_echo_n "(cached) " >&6 2483else 2484 if test -n "$ac_ct_STRIP"; then 2485 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2486else 2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2488for as_dir in $PATH 2489do 2490 IFS=$as_save_IFS 2491 test -z "$as_dir" && as_dir=. 2492 for ac_exec_ext in '' $ac_executable_extensions; do 2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2494 ac_cv_prog_ac_ct_STRIP="strip" 2495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2496 break 2 2497 fi 2498done 2499 done 2500IFS=$as_save_IFS 2501 2502fi 2503fi 2504ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2505if test -n "$ac_ct_STRIP"; then 2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2507$as_echo "$ac_ct_STRIP" >&6; } 2508else 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2510$as_echo "no" >&6; } 2511fi 2512 2513 if test "x$ac_ct_STRIP" = x; then 2514 STRIP=":" 2515 else 2516 case $cross_compiling:$ac_tool_warned in 2517yes:) 2518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2520ac_tool_warned=yes ;; 2521esac 2522 STRIP=$ac_ct_STRIP 2523 fi 2524else 2525 STRIP="$ac_cv_prog_STRIP" 2526fi 2527 2528fi 2529INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2530 2531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2532$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2533if test -z "$MKDIR_P"; then 2534 if ${ac_cv_path_mkdir+:} false; then : 2535 $as_echo_n "(cached) " >&6 2536else 2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2538for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2539do 2540 IFS=$as_save_IFS 2541 test -z "$as_dir" && as_dir=. 2542 for ac_prog in mkdir gmkdir; do 2543 for ac_exec_ext in '' $ac_executable_extensions; do 2544 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2545 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2546 'mkdir (GNU coreutils) '* | \ 2547 'mkdir (coreutils) '* | \ 2548 'mkdir (fileutils) '4.1*) 2549 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2550 break 3;; 2551 esac 2552 done 2553 done 2554 done 2555IFS=$as_save_IFS 2556 2557fi 2558 2559 test -d ./--version && rmdir ./--version 2560 if test "${ac_cv_path_mkdir+set}" = set; then 2561 MKDIR_P="$ac_cv_path_mkdir -p" 2562 else 2563 # As a last resort, use the slow shell script. Don't cache a 2564 # value for MKDIR_P within a source directory, because that will 2565 # break other packages using the cache if that directory is 2566 # removed, or if the value is a relative name. 2567 MKDIR_P="$ac_install_sh -d" 2568 fi 2569fi 2570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2571$as_echo "$MKDIR_P" >&6; } 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 2655# Check whether --enable-silent-rules was given. 2656if test "${enable_silent_rules+set}" = set; then : 2657 enableval=$enable_silent_rules; 2658fi 2659 2660case $enable_silent_rules in # ((( 2661 yes) AM_DEFAULT_VERBOSITY=0;; 2662 no) AM_DEFAULT_VERBOSITY=1;; 2663 *) AM_DEFAULT_VERBOSITY=1;; 2664esac 2665am_make=${MAKE-make} 2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2667$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2668if ${am_cv_make_support_nested_variables+:} false; then : 2669 $as_echo_n "(cached) " >&6 2670else 2671 if $as_echo 'TRUE=$(BAR$(V)) 2672BAR0=false 2673BAR1=true 2674V=1 2675am__doit: 2676 @$(TRUE) 2677.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2678 am_cv_make_support_nested_variables=yes 2679else 2680 am_cv_make_support_nested_variables=no 2681fi 2682fi 2683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2684$as_echo "$am_cv_make_support_nested_variables" >&6; } 2685if test $am_cv_make_support_nested_variables = yes; then 2686 AM_V='$(V)' 2687 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2688else 2689 AM_V=$AM_DEFAULT_VERBOSITY 2690 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2691fi 2692AM_BACKSLASH='\' 2693 2694if test "`cd $srcdir && pwd`" != "`pwd`"; then 2695 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2696 # is not polluted with repeated "-I." 2697 am__isrc=' -I$(srcdir)' 2698 # test to see if srcdir already configured 2699 if test -f $srcdir/config.status; then 2700 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2701 fi 2702fi 2703 2704# test whether we have cygpath 2705if test -z "$CYGPATH_W"; then 2706 if (cygpath --version) >/dev/null 2>/dev/null; then 2707 CYGPATH_W='cygpath -w' 2708 else 2709 CYGPATH_W=echo 2710 fi 2711fi 2712 2713 2714# Define the identity of the package. 2715 PACKAGE='libXvMC' 2716 VERSION='1.0.8' 2717 2718 2719cat >>confdefs.h <<_ACEOF 2720#define PACKAGE "$PACKAGE" 2721_ACEOF 2722 2723 2724cat >>confdefs.h <<_ACEOF 2725#define VERSION "$VERSION" 2726_ACEOF 2727 2728# Some tools Automake needs. 2729 2730ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2731 2732 2733AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2734 2735 2736AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2737 2738 2739AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2740 2741 2742MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2743 2744# For better backward compatibility. To be removed once Automake 1.9.x 2745# dies out for good. For more background, see: 2746# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2747# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2748mkdir_p='$(MKDIR_P)' 2749 2750# We need awk for the "check" target. The system "awk" is bad on 2751# some platforms. 2752# Always define AMTAR for backward compatibility. Yes, it's still used 2753# in the wild :-( We should find a proper way to deprecate it ... 2754AMTAR='$${TAR-tar}' 2755 2756 2757# We'll loop over all known methods to create a tar archive until one works. 2758_am_tools='gnutar pax cpio none' 2759 2760am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2761 2762 2763 2764 2765 2766 2767 2768# Initialize libtool 2769case `pwd` in 2770 *\ * | *\ *) 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2772$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2773esac 2774 2775 2776 2777macro_version='2.4.2' 2778macro_revision='1.3337' 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792ltmain="$ac_aux_dir/ltmain.sh" 2793 2794# Make sure we can run config.sub. 2795$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2796 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2797 2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2799$as_echo_n "checking build system type... " >&6; } 2800if ${ac_cv_build+:} false; then : 2801 $as_echo_n "(cached) " >&6 2802else 2803 ac_build_alias=$build_alias 2804test "x$ac_build_alias" = x && 2805 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2806test "x$ac_build_alias" = x && 2807 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2808ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2810 2811fi 2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2813$as_echo "$ac_cv_build" >&6; } 2814case $ac_cv_build in 2815*-*-*) ;; 2816*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2817esac 2818build=$ac_cv_build 2819ac_save_IFS=$IFS; IFS='-' 2820set x $ac_cv_build 2821shift 2822build_cpu=$1 2823build_vendor=$2 2824shift; shift 2825# Remember, the first character of IFS is used to create $*, 2826# except with old shells: 2827build_os=$* 2828IFS=$ac_save_IFS 2829case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2830 2831 2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2833$as_echo_n "checking host system type... " >&6; } 2834if ${ac_cv_host+:} false; then : 2835 $as_echo_n "(cached) " >&6 2836else 2837 if test "x$host_alias" = x; then 2838 ac_cv_host=$ac_cv_build 2839else 2840 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2841 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2842fi 2843 2844fi 2845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2846$as_echo "$ac_cv_host" >&6; } 2847case $ac_cv_host in 2848*-*-*) ;; 2849*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2850esac 2851host=$ac_cv_host 2852ac_save_IFS=$IFS; IFS='-' 2853set x $ac_cv_host 2854shift 2855host_cpu=$1 2856host_vendor=$2 2857shift; shift 2858# Remember, the first character of IFS is used to create $*, 2859# except with old shells: 2860host_os=$* 2861IFS=$ac_save_IFS 2862case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2863 2864 2865# Backslashify metacharacters that are still active within 2866# double-quoted strings. 2867sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2868 2869# Same as above, but do not quote variable references. 2870double_quote_subst='s/\(["`\\]\)/\\\1/g' 2871 2872# Sed substitution to delay expansion of an escaped shell variable in a 2873# double_quote_subst'ed string. 2874delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2875 2876# Sed substitution to delay expansion of an escaped single quote. 2877delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2878 2879# Sed substitution to avoid accidental globbing in evaled expressions 2880no_glob_subst='s/\*/\\\*/g' 2881 2882ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2883ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2884ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2885 2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2887$as_echo_n "checking how to print strings... " >&6; } 2888# Test print first, because it will be a builtin if present. 2889if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2890 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2891 ECHO='print -r --' 2892elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2893 ECHO='printf %s\n' 2894else 2895 # Use this function as a fallback that always works. 2896 func_fallback_echo () 2897 { 2898 eval 'cat <<_LTECHO_EOF 2899$1 2900_LTECHO_EOF' 2901 } 2902 ECHO='func_fallback_echo' 2903fi 2904 2905# func_echo_all arg... 2906# Invoke $ECHO with all args, space-separated. 2907func_echo_all () 2908{ 2909 $ECHO "" 2910} 2911 2912case "$ECHO" in 2913 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2914$as_echo "printf" >&6; } ;; 2915 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2916$as_echo "print -r" >&6; } ;; 2917 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2918$as_echo "cat" >&6; } ;; 2919esac 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934DEPDIR="${am__leading_dot}deps" 2935 2936ac_config_commands="$ac_config_commands depfiles" 2937 2938 2939am_make=${MAKE-make} 2940cat > confinc << 'END' 2941am__doit: 2942 @echo this is the am__doit target 2943.PHONY: am__doit 2944END 2945# If we don't find an include directive, just comment out the code. 2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2947$as_echo_n "checking for style of include used by $am_make... " >&6; } 2948am__include="#" 2949am__quote= 2950_am_result=none 2951# First try GNU make style include. 2952echo "include confinc" > confmf 2953# Ignore all kinds of additional output from 'make'. 2954case `$am_make -s -f confmf 2> /dev/null` in #( 2955*the\ am__doit\ target*) 2956 am__include=include 2957 am__quote= 2958 _am_result=GNU 2959 ;; 2960esac 2961# Now try BSD make style include. 2962if test "$am__include" = "#"; then 2963 echo '.include "confinc"' > confmf 2964 case `$am_make -s -f confmf 2> /dev/null` in #( 2965 *the\ am__doit\ target*) 2966 am__include=.include 2967 am__quote="\"" 2968 _am_result=BSD 2969 ;; 2970 esac 2971fi 2972 2973 2974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2975$as_echo "$_am_result" >&6; } 2976rm -f confinc confmf 2977 2978# Check whether --enable-dependency-tracking was given. 2979if test "${enable_dependency_tracking+set}" = set; then : 2980 enableval=$enable_dependency_tracking; 2981fi 2982 2983if test "x$enable_dependency_tracking" != xno; then 2984 am_depcomp="$ac_aux_dir/depcomp" 2985 AMDEPBACKSLASH='\' 2986 am__nodep='_no' 2987fi 2988 if test "x$enable_dependency_tracking" != xno; then 2989 AMDEP_TRUE= 2990 AMDEP_FALSE='#' 2991else 2992 AMDEP_TRUE='#' 2993 AMDEP_FALSE= 2994fi 2995 2996 2997ac_ext=c 2998ac_cpp='$CPP $CPPFLAGS' 2999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3001ac_compiler_gnu=$ac_cv_c_compiler_gnu 3002if test -n "$ac_tool_prefix"; then 3003 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3004set dummy ${ac_tool_prefix}gcc; ac_word=$2 3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3006$as_echo_n "checking for $ac_word... " >&6; } 3007if ${ac_cv_prog_CC+:} false; then : 3008 $as_echo_n "(cached) " >&6 3009else 3010 if test -n "$CC"; then 3011 ac_cv_prog_CC="$CC" # Let the user override the test. 3012else 3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3014for as_dir in $PATH 3015do 3016 IFS=$as_save_IFS 3017 test -z "$as_dir" && as_dir=. 3018 for ac_exec_ext in '' $ac_executable_extensions; do 3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3020 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3022 break 2 3023 fi 3024done 3025 done 3026IFS=$as_save_IFS 3027 3028fi 3029fi 3030CC=$ac_cv_prog_CC 3031if test -n "$CC"; then 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3033$as_echo "$CC" >&6; } 3034else 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3036$as_echo "no" >&6; } 3037fi 3038 3039 3040fi 3041if test -z "$ac_cv_prog_CC"; then 3042 ac_ct_CC=$CC 3043 # Extract the first word of "gcc", so it can be a program name with args. 3044set dummy gcc; ac_word=$2 3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3046$as_echo_n "checking for $ac_word... " >&6; } 3047if ${ac_cv_prog_ac_ct_CC+:} false; then : 3048 $as_echo_n "(cached) " >&6 3049else 3050 if test -n "$ac_ct_CC"; then 3051 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3052else 3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3054for as_dir in $PATH 3055do 3056 IFS=$as_save_IFS 3057 test -z "$as_dir" && as_dir=. 3058 for ac_exec_ext in '' $ac_executable_extensions; do 3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3060 ac_cv_prog_ac_ct_CC="gcc" 3061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3062 break 2 3063 fi 3064done 3065 done 3066IFS=$as_save_IFS 3067 3068fi 3069fi 3070ac_ct_CC=$ac_cv_prog_ac_ct_CC 3071if test -n "$ac_ct_CC"; then 3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3073$as_echo "$ac_ct_CC" >&6; } 3074else 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3076$as_echo "no" >&6; } 3077fi 3078 3079 if test "x$ac_ct_CC" = x; then 3080 CC="" 3081 else 3082 case $cross_compiling:$ac_tool_warned in 3083yes:) 3084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3086ac_tool_warned=yes ;; 3087esac 3088 CC=$ac_ct_CC 3089 fi 3090else 3091 CC="$ac_cv_prog_CC" 3092fi 3093 3094if test -z "$CC"; then 3095 if test -n "$ac_tool_prefix"; then 3096 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3097set dummy ${ac_tool_prefix}cc; ac_word=$2 3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3099$as_echo_n "checking for $ac_word... " >&6; } 3100if ${ac_cv_prog_CC+:} false; then : 3101 $as_echo_n "(cached) " >&6 3102else 3103 if test -n "$CC"; then 3104 ac_cv_prog_CC="$CC" # Let the user override the test. 3105else 3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3107for as_dir in $PATH 3108do 3109 IFS=$as_save_IFS 3110 test -z "$as_dir" && as_dir=. 3111 for ac_exec_ext in '' $ac_executable_extensions; do 3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3113 ac_cv_prog_CC="${ac_tool_prefix}cc" 3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3115 break 2 3116 fi 3117done 3118 done 3119IFS=$as_save_IFS 3120 3121fi 3122fi 3123CC=$ac_cv_prog_CC 3124if test -n "$CC"; then 3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3126$as_echo "$CC" >&6; } 3127else 3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3129$as_echo "no" >&6; } 3130fi 3131 3132 3133 fi 3134fi 3135if test -z "$CC"; then 3136 # Extract the first word of "cc", so it can be a program name with args. 3137set dummy cc; ac_word=$2 3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3139$as_echo_n "checking for $ac_word... " >&6; } 3140if ${ac_cv_prog_CC+:} false; then : 3141 $as_echo_n "(cached) " >&6 3142else 3143 if test -n "$CC"; then 3144 ac_cv_prog_CC="$CC" # Let the user override the test. 3145else 3146 ac_prog_rejected=no 3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3148for as_dir in $PATH 3149do 3150 IFS=$as_save_IFS 3151 test -z "$as_dir" && as_dir=. 3152 for ac_exec_ext in '' $ac_executable_extensions; do 3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3154 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3155 ac_prog_rejected=yes 3156 continue 3157 fi 3158 ac_cv_prog_CC="cc" 3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3160 break 2 3161 fi 3162done 3163 done 3164IFS=$as_save_IFS 3165 3166if test $ac_prog_rejected = yes; then 3167 # We found a bogon in the path, so make sure we never use it. 3168 set dummy $ac_cv_prog_CC 3169 shift 3170 if test $# != 0; then 3171 # We chose a different compiler from the bogus one. 3172 # However, it has the same basename, so the bogon will be chosen 3173 # first if we set CC to just the basename; use the full file name. 3174 shift 3175 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3176 fi 3177fi 3178fi 3179fi 3180CC=$ac_cv_prog_CC 3181if test -n "$CC"; then 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3183$as_echo "$CC" >&6; } 3184else 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3186$as_echo "no" >&6; } 3187fi 3188 3189 3190fi 3191if test -z "$CC"; then 3192 if test -n "$ac_tool_prefix"; then 3193 for ac_prog in cl.exe 3194 do 3195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3196set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3198$as_echo_n "checking for $ac_word... " >&6; } 3199if ${ac_cv_prog_CC+:} false; then : 3200 $as_echo_n "(cached) " >&6 3201else 3202 if test -n "$CC"; then 3203 ac_cv_prog_CC="$CC" # Let the user override the test. 3204else 3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3206for as_dir in $PATH 3207do 3208 IFS=$as_save_IFS 3209 test -z "$as_dir" && as_dir=. 3210 for ac_exec_ext in '' $ac_executable_extensions; do 3211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3212 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3214 break 2 3215 fi 3216done 3217 done 3218IFS=$as_save_IFS 3219 3220fi 3221fi 3222CC=$ac_cv_prog_CC 3223if test -n "$CC"; then 3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3225$as_echo "$CC" >&6; } 3226else 3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3228$as_echo "no" >&6; } 3229fi 3230 3231 3232 test -n "$CC" && break 3233 done 3234fi 3235if test -z "$CC"; then 3236 ac_ct_CC=$CC 3237 for ac_prog in cl.exe 3238do 3239 # Extract the first word of "$ac_prog", so it can be a program name with args. 3240set dummy $ac_prog; ac_word=$2 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3242$as_echo_n "checking for $ac_word... " >&6; } 3243if ${ac_cv_prog_ac_ct_CC+:} false; then : 3244 $as_echo_n "(cached) " >&6 3245else 3246 if test -n "$ac_ct_CC"; then 3247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3248else 3249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3250for as_dir in $PATH 3251do 3252 IFS=$as_save_IFS 3253 test -z "$as_dir" && as_dir=. 3254 for ac_exec_ext in '' $ac_executable_extensions; do 3255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3256 ac_cv_prog_ac_ct_CC="$ac_prog" 3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3258 break 2 3259 fi 3260done 3261 done 3262IFS=$as_save_IFS 3263 3264fi 3265fi 3266ac_ct_CC=$ac_cv_prog_ac_ct_CC 3267if test -n "$ac_ct_CC"; then 3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3269$as_echo "$ac_ct_CC" >&6; } 3270else 3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3272$as_echo "no" >&6; } 3273fi 3274 3275 3276 test -n "$ac_ct_CC" && break 3277done 3278 3279 if test "x$ac_ct_CC" = x; then 3280 CC="" 3281 else 3282 case $cross_compiling:$ac_tool_warned in 3283yes:) 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3286ac_tool_warned=yes ;; 3287esac 3288 CC=$ac_ct_CC 3289 fi 3290fi 3291 3292fi 3293 3294 3295test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3297as_fn_error $? "no acceptable C compiler found in \$PATH 3298See \`config.log' for more details" "$LINENO" 5; } 3299 3300# Provide some information about the compiler. 3301$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3302set X $ac_compile 3303ac_compiler=$2 3304for ac_option in --version -v -V -qversion; do 3305 { { ac_try="$ac_compiler $ac_option >&5" 3306case "(($ac_try" in 3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3308 *) ac_try_echo=$ac_try;; 3309esac 3310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3311$as_echo "$ac_try_echo"; } >&5 3312 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3313 ac_status=$? 3314 if test -s conftest.err; then 3315 sed '10a\ 3316... rest of stderr output deleted ... 3317 10q' conftest.err >conftest.er1 3318 cat conftest.er1 >&5 3319 fi 3320 rm -f conftest.er1 conftest.err 3321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3322 test $ac_status = 0; } 3323done 3324 3325cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3326/* end confdefs.h. */ 3327 3328int 3329main () 3330{ 3331 3332 ; 3333 return 0; 3334} 3335_ACEOF 3336ac_clean_files_save=$ac_clean_files 3337ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3338# Try to create an executable without -o first, disregard a.out. 3339# It will help us diagnose broken compilers, and finding out an intuition 3340# of exeext. 3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3342$as_echo_n "checking whether the C compiler works... " >&6; } 3343ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3344 3345# The possible output files: 3346ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3347 3348ac_rmfiles= 3349for ac_file in $ac_files 3350do 3351 case $ac_file in 3352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3353 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3354 esac 3355done 3356rm -f $ac_rmfiles 3357 3358if { { ac_try="$ac_link_default" 3359case "(($ac_try" in 3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3361 *) ac_try_echo=$ac_try;; 3362esac 3363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3364$as_echo "$ac_try_echo"; } >&5 3365 (eval "$ac_link_default") 2>&5 3366 ac_status=$? 3367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3368 test $ac_status = 0; }; then : 3369 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3370# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3371# in a Makefile. We should not override ac_cv_exeext if it was cached, 3372# so that the user can short-circuit this test for compilers unknown to 3373# Autoconf. 3374for ac_file in $ac_files '' 3375do 3376 test -f "$ac_file" || continue 3377 case $ac_file in 3378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3379 ;; 3380 [ab].out ) 3381 # We found the default executable, but exeext='' is most 3382 # certainly right. 3383 break;; 3384 *.* ) 3385 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3386 then :; else 3387 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3388 fi 3389 # We set ac_cv_exeext here because the later test for it is not 3390 # safe: cross compilers may not add the suffix if given an `-o' 3391 # argument, so we may need to know it at that point already. 3392 # Even if this section looks crufty: it has the advantage of 3393 # actually working. 3394 break;; 3395 * ) 3396 break;; 3397 esac 3398done 3399test "$ac_cv_exeext" = no && ac_cv_exeext= 3400 3401else 3402 ac_file='' 3403fi 3404if test -z "$ac_file"; then : 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3406$as_echo "no" >&6; } 3407$as_echo "$as_me: failed program was:" >&5 3408sed 's/^/| /' conftest.$ac_ext >&5 3409 3410{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3412as_fn_error 77 "C compiler cannot create executables 3413See \`config.log' for more details" "$LINENO" 5; } 3414else 3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3416$as_echo "yes" >&6; } 3417fi 3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3419$as_echo_n "checking for C compiler default output file name... " >&6; } 3420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3421$as_echo "$ac_file" >&6; } 3422ac_exeext=$ac_cv_exeext 3423 3424rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3425ac_clean_files=$ac_clean_files_save 3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3427$as_echo_n "checking for suffix of executables... " >&6; } 3428if { { ac_try="$ac_link" 3429case "(($ac_try" in 3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3431 *) ac_try_echo=$ac_try;; 3432esac 3433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3434$as_echo "$ac_try_echo"; } >&5 3435 (eval "$ac_link") 2>&5 3436 ac_status=$? 3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3438 test $ac_status = 0; }; then : 3439 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3440# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3441# work properly (i.e., refer to `conftest.exe'), while it won't with 3442# `rm'. 3443for ac_file in conftest.exe conftest conftest.*; do 3444 test -f "$ac_file" || continue 3445 case $ac_file in 3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3447 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3448 break;; 3449 * ) break;; 3450 esac 3451done 3452else 3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3455as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3456See \`config.log' for more details" "$LINENO" 5; } 3457fi 3458rm -f conftest conftest$ac_cv_exeext 3459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3460$as_echo "$ac_cv_exeext" >&6; } 3461 3462rm -f conftest.$ac_ext 3463EXEEXT=$ac_cv_exeext 3464ac_exeext=$EXEEXT 3465cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3466/* end confdefs.h. */ 3467#include <stdio.h> 3468int 3469main () 3470{ 3471FILE *f = fopen ("conftest.out", "w"); 3472 return ferror (f) || fclose (f) != 0; 3473 3474 ; 3475 return 0; 3476} 3477_ACEOF 3478ac_clean_files="$ac_clean_files conftest.out" 3479# Check that the compiler produces executables we can run. If not, either 3480# the compiler is broken, or we cross compile. 3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3482$as_echo_n "checking whether we are cross compiling... " >&6; } 3483if test "$cross_compiling" != yes; then 3484 { { ac_try="$ac_link" 3485case "(($ac_try" in 3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3487 *) ac_try_echo=$ac_try;; 3488esac 3489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3490$as_echo "$ac_try_echo"; } >&5 3491 (eval "$ac_link") 2>&5 3492 ac_status=$? 3493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3494 test $ac_status = 0; } 3495 if { ac_try='./conftest$ac_cv_exeext' 3496 { { case "(($ac_try" in 3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3498 *) ac_try_echo=$ac_try;; 3499esac 3500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3501$as_echo "$ac_try_echo"; } >&5 3502 (eval "$ac_try") 2>&5 3503 ac_status=$? 3504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3505 test $ac_status = 0; }; }; then 3506 cross_compiling=no 3507 else 3508 if test "$cross_compiling" = maybe; then 3509 cross_compiling=yes 3510 else 3511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3513as_fn_error $? "cannot run C compiled programs. 3514If you meant to cross compile, use \`--host'. 3515See \`config.log' for more details" "$LINENO" 5; } 3516 fi 3517 fi 3518fi 3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3520$as_echo "$cross_compiling" >&6; } 3521 3522rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3523ac_clean_files=$ac_clean_files_save 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3525$as_echo_n "checking for suffix of object files... " >&6; } 3526if ${ac_cv_objext+:} false; then : 3527 $as_echo_n "(cached) " >&6 3528else 3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3530/* end confdefs.h. */ 3531 3532int 3533main () 3534{ 3535 3536 ; 3537 return 0; 3538} 3539_ACEOF 3540rm -f conftest.o conftest.obj 3541if { { ac_try="$ac_compile" 3542case "(($ac_try" in 3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3544 *) ac_try_echo=$ac_try;; 3545esac 3546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3547$as_echo "$ac_try_echo"; } >&5 3548 (eval "$ac_compile") 2>&5 3549 ac_status=$? 3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3551 test $ac_status = 0; }; then : 3552 for ac_file in conftest.o conftest.obj conftest.*; do 3553 test -f "$ac_file" || continue; 3554 case $ac_file in 3555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3556 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3557 break;; 3558 esac 3559done 3560else 3561 $as_echo "$as_me: failed program was:" >&5 3562sed 's/^/| /' conftest.$ac_ext >&5 3563 3564{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3566as_fn_error $? "cannot compute suffix of object files: cannot compile 3567See \`config.log' for more details" "$LINENO" 5; } 3568fi 3569rm -f conftest.$ac_cv_objext conftest.$ac_ext 3570fi 3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3572$as_echo "$ac_cv_objext" >&6; } 3573OBJEXT=$ac_cv_objext 3574ac_objext=$OBJEXT 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3576$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3577if ${ac_cv_c_compiler_gnu+:} false; then : 3578 $as_echo_n "(cached) " >&6 3579else 3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3581/* end confdefs.h. */ 3582 3583int 3584main () 3585{ 3586#ifndef __GNUC__ 3587 choke me 3588#endif 3589 3590 ; 3591 return 0; 3592} 3593_ACEOF 3594if ac_fn_c_try_compile "$LINENO"; then : 3595 ac_compiler_gnu=yes 3596else 3597 ac_compiler_gnu=no 3598fi 3599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3600ac_cv_c_compiler_gnu=$ac_compiler_gnu 3601 3602fi 3603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3604$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3605if test $ac_compiler_gnu = yes; then 3606 GCC=yes 3607else 3608 GCC= 3609fi 3610ac_test_CFLAGS=${CFLAGS+set} 3611ac_save_CFLAGS=$CFLAGS 3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3613$as_echo_n "checking whether $CC accepts -g... " >&6; } 3614if ${ac_cv_prog_cc_g+:} false; then : 3615 $as_echo_n "(cached) " >&6 3616else 3617 ac_save_c_werror_flag=$ac_c_werror_flag 3618 ac_c_werror_flag=yes 3619 ac_cv_prog_cc_g=no 3620 CFLAGS="-g" 3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3622/* end confdefs.h. */ 3623 3624int 3625main () 3626{ 3627 3628 ; 3629 return 0; 3630} 3631_ACEOF 3632if ac_fn_c_try_compile "$LINENO"; then : 3633 ac_cv_prog_cc_g=yes 3634else 3635 CFLAGS="" 3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3637/* end confdefs.h. */ 3638 3639int 3640main () 3641{ 3642 3643 ; 3644 return 0; 3645} 3646_ACEOF 3647if ac_fn_c_try_compile "$LINENO"; then : 3648 3649else 3650 ac_c_werror_flag=$ac_save_c_werror_flag 3651 CFLAGS="-g" 3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3653/* end confdefs.h. */ 3654 3655int 3656main () 3657{ 3658 3659 ; 3660 return 0; 3661} 3662_ACEOF 3663if ac_fn_c_try_compile "$LINENO"; then : 3664 ac_cv_prog_cc_g=yes 3665fi 3666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3667fi 3668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3669fi 3670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3671 ac_c_werror_flag=$ac_save_c_werror_flag 3672fi 3673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3674$as_echo "$ac_cv_prog_cc_g" >&6; } 3675if test "$ac_test_CFLAGS" = set; then 3676 CFLAGS=$ac_save_CFLAGS 3677elif test $ac_cv_prog_cc_g = yes; then 3678 if test "$GCC" = yes; then 3679 CFLAGS="-g -O2" 3680 else 3681 CFLAGS="-g" 3682 fi 3683else 3684 if test "$GCC" = yes; then 3685 CFLAGS="-O2" 3686 else 3687 CFLAGS= 3688 fi 3689fi 3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3691$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3692if ${ac_cv_prog_cc_c89+:} false; then : 3693 $as_echo_n "(cached) " >&6 3694else 3695 ac_cv_prog_cc_c89=no 3696ac_save_CC=$CC 3697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3698/* end confdefs.h. */ 3699#include <stdarg.h> 3700#include <stdio.h> 3701#include <sys/types.h> 3702#include <sys/stat.h> 3703/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3704struct buf { int x; }; 3705FILE * (*rcsopen) (struct buf *, struct stat *, int); 3706static char *e (p, i) 3707 char **p; 3708 int i; 3709{ 3710 return p[i]; 3711} 3712static char *f (char * (*g) (char **, int), char **p, ...) 3713{ 3714 char *s; 3715 va_list v; 3716 va_start (v,p); 3717 s = g (p, va_arg (v,int)); 3718 va_end (v); 3719 return s; 3720} 3721 3722/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3723 function prototypes and stuff, but not '\xHH' hex character constants. 3724 These don't provoke an error unfortunately, instead are silently treated 3725 as 'x'. The following induces an error, until -std is added to get 3726 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3727 array size at least. It's necessary to write '\x00'==0 to get something 3728 that's true only with -std. */ 3729int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3730 3731/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3732 inside strings and character constants. */ 3733#define FOO(x) 'x' 3734int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3735 3736int test (int i, double x); 3737struct s1 {int (*f) (int a);}; 3738struct s2 {int (*f) (double a);}; 3739int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3740int argc; 3741char **argv; 3742int 3743main () 3744{ 3745return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3746 ; 3747 return 0; 3748} 3749_ACEOF 3750for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3751 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3752do 3753 CC="$ac_save_CC $ac_arg" 3754 if ac_fn_c_try_compile "$LINENO"; then : 3755 ac_cv_prog_cc_c89=$ac_arg 3756fi 3757rm -f core conftest.err conftest.$ac_objext 3758 test "x$ac_cv_prog_cc_c89" != "xno" && break 3759done 3760rm -f conftest.$ac_ext 3761CC=$ac_save_CC 3762 3763fi 3764# AC_CACHE_VAL 3765case "x$ac_cv_prog_cc_c89" in 3766 x) 3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3768$as_echo "none needed" >&6; } ;; 3769 xno) 3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3771$as_echo "unsupported" >&6; } ;; 3772 *) 3773 CC="$CC $ac_cv_prog_cc_c89" 3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3775$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3776esac 3777if test "x$ac_cv_prog_cc_c89" != xno; then : 3778 3779fi 3780 3781ac_ext=c 3782ac_cpp='$CPP $CPPFLAGS' 3783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3785ac_compiler_gnu=$ac_cv_c_compiler_gnu 3786 3787depcc="$CC" am_compiler_list= 3788 3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3790$as_echo_n "checking dependency style of $depcc... " >&6; } 3791if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3792 $as_echo_n "(cached) " >&6 3793else 3794 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3795 # We make a subdir and do the tests there. Otherwise we can end up 3796 # making bogus files that we don't know about and never remove. For 3797 # instance it was reported that on HP-UX the gcc test will end up 3798 # making a dummy file named 'D' -- because '-MD' means "put the output 3799 # in D". 3800 rm -rf conftest.dir 3801 mkdir conftest.dir 3802 # Copy depcomp to subdir because otherwise we won't find it if we're 3803 # using a relative directory. 3804 cp "$am_depcomp" conftest.dir 3805 cd conftest.dir 3806 # We will build objects and dependencies in a subdirectory because 3807 # it helps to detect inapplicable dependency modes. For instance 3808 # both Tru64's cc and ICC support -MD to output dependencies as a 3809 # side effect of compilation, but ICC will put the dependencies in 3810 # the current directory while Tru64 will put them in the object 3811 # directory. 3812 mkdir sub 3813 3814 am_cv_CC_dependencies_compiler_type=none 3815 if test "$am_compiler_list" = ""; then 3816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3817 fi 3818 am__universal=false 3819 case " $depcc " in #( 3820 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3821 esac 3822 3823 for depmode in $am_compiler_list; do 3824 # Setup a source with many dependencies, because some compilers 3825 # like to wrap large dependency lists on column 80 (with \), and 3826 # we should not choose a depcomp mode which is confused by this. 3827 # 3828 # We need to recreate these files for each test, as the compiler may 3829 # overwrite some of them when testing with obscure command lines. 3830 # This happens at least with the AIX C compiler. 3831 : > sub/conftest.c 3832 for i in 1 2 3 4 5 6; do 3833 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3834 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3835 # Solaris 10 /bin/sh. 3836 echo '/* dummy */' > sub/conftst$i.h 3837 done 3838 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3839 3840 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3841 # mode. It turns out that the SunPro C++ compiler does not properly 3842 # handle '-M -o', and we need to detect this. Also, some Intel 3843 # versions had trouble with output in subdirs. 3844 am__obj=sub/conftest.${OBJEXT-o} 3845 am__minus_obj="-o $am__obj" 3846 case $depmode in 3847 gcc) 3848 # This depmode causes a compiler race in universal mode. 3849 test "$am__universal" = false || continue 3850 ;; 3851 nosideeffect) 3852 # After this tag, mechanisms are not by side-effect, so they'll 3853 # only be used when explicitly requested. 3854 if test "x$enable_dependency_tracking" = xyes; then 3855 continue 3856 else 3857 break 3858 fi 3859 ;; 3860 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3861 # This compiler won't grok '-c -o', but also, the minuso test has 3862 # not run yet. These depmodes are late enough in the game, and 3863 # so weak that their functioning should not be impacted. 3864 am__obj=conftest.${OBJEXT-o} 3865 am__minus_obj= 3866 ;; 3867 none) break ;; 3868 esac 3869 if depmode=$depmode \ 3870 source=sub/conftest.c object=$am__obj \ 3871 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3872 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3873 >/dev/null 2>conftest.err && 3874 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3875 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3876 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3877 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3878 # icc doesn't choke on unknown options, it will just issue warnings 3879 # or remarks (even with -Werror). So we grep stderr for any message 3880 # that says an option was ignored or not supported. 3881 # When given -MP, icc 7.0 and 7.1 complain thusly: 3882 # icc: Command line warning: ignoring option '-M'; no argument required 3883 # The diagnosis changed in icc 8.0: 3884 # icc: Command line remark: option '-MP' not supported 3885 if (grep 'ignoring option' conftest.err || 3886 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3887 am_cv_CC_dependencies_compiler_type=$depmode 3888 break 3889 fi 3890 fi 3891 done 3892 3893 cd .. 3894 rm -rf conftest.dir 3895else 3896 am_cv_CC_dependencies_compiler_type=none 3897fi 3898 3899fi 3900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3901$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3902CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3903 3904 if 3905 test "x$enable_dependency_tracking" != xno \ 3906 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3907 am__fastdepCC_TRUE= 3908 am__fastdepCC_FALSE='#' 3909else 3910 am__fastdepCC_TRUE='#' 3911 am__fastdepCC_FALSE= 3912fi 3913 3914 3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3916$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3917if ${ac_cv_path_SED+:} false; then : 3918 $as_echo_n "(cached) " >&6 3919else 3920 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3921 for ac_i in 1 2 3 4 5 6 7; do 3922 ac_script="$ac_script$as_nl$ac_script" 3923 done 3924 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3925 { ac_script=; unset ac_script;} 3926 if test -z "$SED"; then 3927 ac_path_SED_found=false 3928 # Loop through the user's path and test for each of PROGNAME-LIST 3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3930for as_dir in $PATH 3931do 3932 IFS=$as_save_IFS 3933 test -z "$as_dir" && as_dir=. 3934 for ac_prog in sed gsed; do 3935 for ac_exec_ext in '' $ac_executable_extensions; do 3936 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3937 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3938# Check for GNU ac_path_SED and select it if it is found. 3939 # Check for GNU $ac_path_SED 3940case `"$ac_path_SED" --version 2>&1` in 3941*GNU*) 3942 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3943*) 3944 ac_count=0 3945 $as_echo_n 0123456789 >"conftest.in" 3946 while : 3947 do 3948 cat "conftest.in" "conftest.in" >"conftest.tmp" 3949 mv "conftest.tmp" "conftest.in" 3950 cp "conftest.in" "conftest.nl" 3951 $as_echo '' >> "conftest.nl" 3952 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3953 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3954 as_fn_arith $ac_count + 1 && ac_count=$as_val 3955 if test $ac_count -gt ${ac_path_SED_max-0}; then 3956 # Best one so far, save it but keep looking for a better one 3957 ac_cv_path_SED="$ac_path_SED" 3958 ac_path_SED_max=$ac_count 3959 fi 3960 # 10*(2^10) chars as input seems more than enough 3961 test $ac_count -gt 10 && break 3962 done 3963 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3964esac 3965 3966 $ac_path_SED_found && break 3 3967 done 3968 done 3969 done 3970IFS=$as_save_IFS 3971 if test -z "$ac_cv_path_SED"; then 3972 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3973 fi 3974else 3975 ac_cv_path_SED=$SED 3976fi 3977 3978fi 3979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3980$as_echo "$ac_cv_path_SED" >&6; } 3981 SED="$ac_cv_path_SED" 3982 rm -f conftest.sed 3983 3984test -z "$SED" && SED=sed 3985Xsed="$SED -e 1s/^X//" 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3998$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3999if ${ac_cv_path_GREP+:} false; then : 4000 $as_echo_n "(cached) " >&6 4001else 4002 if test -z "$GREP"; then 4003 ac_path_GREP_found=false 4004 # Loop through the user's path and test for each of PROGNAME-LIST 4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4006for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4007do 4008 IFS=$as_save_IFS 4009 test -z "$as_dir" && as_dir=. 4010 for ac_prog in grep ggrep; do 4011 for ac_exec_ext in '' $ac_executable_extensions; do 4012 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4013 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4014# Check for GNU ac_path_GREP and select it if it is found. 4015 # Check for GNU $ac_path_GREP 4016case `"$ac_path_GREP" --version 2>&1` in 4017*GNU*) 4018 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4019*) 4020 ac_count=0 4021 $as_echo_n 0123456789 >"conftest.in" 4022 while : 4023 do 4024 cat "conftest.in" "conftest.in" >"conftest.tmp" 4025 mv "conftest.tmp" "conftest.in" 4026 cp "conftest.in" "conftest.nl" 4027 $as_echo 'GREP' >> "conftest.nl" 4028 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4030 as_fn_arith $ac_count + 1 && ac_count=$as_val 4031 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4032 # Best one so far, save it but keep looking for a better one 4033 ac_cv_path_GREP="$ac_path_GREP" 4034 ac_path_GREP_max=$ac_count 4035 fi 4036 # 10*(2^10) chars as input seems more than enough 4037 test $ac_count -gt 10 && break 4038 done 4039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4040esac 4041 4042 $ac_path_GREP_found && break 3 4043 done 4044 done 4045 done 4046IFS=$as_save_IFS 4047 if test -z "$ac_cv_path_GREP"; then 4048 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4049 fi 4050else 4051 ac_cv_path_GREP=$GREP 4052fi 4053 4054fi 4055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4056$as_echo "$ac_cv_path_GREP" >&6; } 4057 GREP="$ac_cv_path_GREP" 4058 4059 4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4061$as_echo_n "checking for egrep... " >&6; } 4062if ${ac_cv_path_EGREP+:} false; then : 4063 $as_echo_n "(cached) " >&6 4064else 4065 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4066 then ac_cv_path_EGREP="$GREP -E" 4067 else 4068 if test -z "$EGREP"; then 4069 ac_path_EGREP_found=false 4070 # Loop through the user's path and test for each of PROGNAME-LIST 4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4072for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4073do 4074 IFS=$as_save_IFS 4075 test -z "$as_dir" && as_dir=. 4076 for ac_prog in egrep; do 4077 for ac_exec_ext in '' $ac_executable_extensions; do 4078 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4079 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4080# Check for GNU ac_path_EGREP and select it if it is found. 4081 # Check for GNU $ac_path_EGREP 4082case `"$ac_path_EGREP" --version 2>&1` in 4083*GNU*) 4084 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4085*) 4086 ac_count=0 4087 $as_echo_n 0123456789 >"conftest.in" 4088 while : 4089 do 4090 cat "conftest.in" "conftest.in" >"conftest.tmp" 4091 mv "conftest.tmp" "conftest.in" 4092 cp "conftest.in" "conftest.nl" 4093 $as_echo 'EGREP' >> "conftest.nl" 4094 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4096 as_fn_arith $ac_count + 1 && ac_count=$as_val 4097 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4098 # Best one so far, save it but keep looking for a better one 4099 ac_cv_path_EGREP="$ac_path_EGREP" 4100 ac_path_EGREP_max=$ac_count 4101 fi 4102 # 10*(2^10) chars as input seems more than enough 4103 test $ac_count -gt 10 && break 4104 done 4105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4106esac 4107 4108 $ac_path_EGREP_found && break 3 4109 done 4110 done 4111 done 4112IFS=$as_save_IFS 4113 if test -z "$ac_cv_path_EGREP"; then 4114 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4115 fi 4116else 4117 ac_cv_path_EGREP=$EGREP 4118fi 4119 4120 fi 4121fi 4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4123$as_echo "$ac_cv_path_EGREP" >&6; } 4124 EGREP="$ac_cv_path_EGREP" 4125 4126 4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4128$as_echo_n "checking for fgrep... " >&6; } 4129if ${ac_cv_path_FGREP+:} false; then : 4130 $as_echo_n "(cached) " >&6 4131else 4132 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4133 then ac_cv_path_FGREP="$GREP -F" 4134 else 4135 if test -z "$FGREP"; then 4136 ac_path_FGREP_found=false 4137 # Loop through the user's path and test for each of PROGNAME-LIST 4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4139for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4140do 4141 IFS=$as_save_IFS 4142 test -z "$as_dir" && as_dir=. 4143 for ac_prog in fgrep; do 4144 for ac_exec_ext in '' $ac_executable_extensions; do 4145 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4146 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4147# Check for GNU ac_path_FGREP and select it if it is found. 4148 # Check for GNU $ac_path_FGREP 4149case `"$ac_path_FGREP" --version 2>&1` in 4150*GNU*) 4151 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4152*) 4153 ac_count=0 4154 $as_echo_n 0123456789 >"conftest.in" 4155 while : 4156 do 4157 cat "conftest.in" "conftest.in" >"conftest.tmp" 4158 mv "conftest.tmp" "conftest.in" 4159 cp "conftest.in" "conftest.nl" 4160 $as_echo 'FGREP' >> "conftest.nl" 4161 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4163 as_fn_arith $ac_count + 1 && ac_count=$as_val 4164 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4165 # Best one so far, save it but keep looking for a better one 4166 ac_cv_path_FGREP="$ac_path_FGREP" 4167 ac_path_FGREP_max=$ac_count 4168 fi 4169 # 10*(2^10) chars as input seems more than enough 4170 test $ac_count -gt 10 && break 4171 done 4172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4173esac 4174 4175 $ac_path_FGREP_found && break 3 4176 done 4177 done 4178 done 4179IFS=$as_save_IFS 4180 if test -z "$ac_cv_path_FGREP"; then 4181 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4182 fi 4183else 4184 ac_cv_path_FGREP=$FGREP 4185fi 4186 4187 fi 4188fi 4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4190$as_echo "$ac_cv_path_FGREP" >&6; } 4191 FGREP="$ac_cv_path_FGREP" 4192 4193 4194test -z "$GREP" && GREP=grep 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214# Check whether --with-gnu-ld was given. 4215if test "${with_gnu_ld+set}" = set; then : 4216 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4217else 4218 with_gnu_ld=no 4219fi 4220 4221ac_prog=ld 4222if test "$GCC" = yes; then 4223 # Check if gcc -print-prog-name=ld gives a path. 4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4225$as_echo_n "checking for ld used by $CC... " >&6; } 4226 case $host in 4227 *-*-mingw*) 4228 # gcc leaves a trailing carriage return which upsets mingw 4229 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4230 *) 4231 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4232 esac 4233 case $ac_prog in 4234 # Accept absolute paths. 4235 [\\/]* | ?:[\\/]*) 4236 re_direlt='/[^/][^/]*/\.\./' 4237 # Canonicalize the pathname of ld 4238 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4239 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4240 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4241 done 4242 test -z "$LD" && LD="$ac_prog" 4243 ;; 4244 "") 4245 # If it fails, then pretend we aren't using GCC. 4246 ac_prog=ld 4247 ;; 4248 *) 4249 # If it is relative, then search for the first ld in PATH. 4250 with_gnu_ld=unknown 4251 ;; 4252 esac 4253elif test "$with_gnu_ld" = yes; then 4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4255$as_echo_n "checking for GNU ld... " >&6; } 4256else 4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4258$as_echo_n "checking for non-GNU ld... " >&6; } 4259fi 4260if ${lt_cv_path_LD+:} false; then : 4261 $as_echo_n "(cached) " >&6 4262else 4263 if test -z "$LD"; then 4264 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4265 for ac_dir in $PATH; do 4266 IFS="$lt_save_ifs" 4267 test -z "$ac_dir" && ac_dir=. 4268 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4269 lt_cv_path_LD="$ac_dir/$ac_prog" 4270 # Check to see if the program is GNU ld. I'd rather use --version, 4271 # but apparently some variants of GNU ld only accept -v. 4272 # Break only if it was the GNU/non-GNU ld that we prefer. 4273 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4274 *GNU* | *'with BFD'*) 4275 test "$with_gnu_ld" != no && break 4276 ;; 4277 *) 4278 test "$with_gnu_ld" != yes && break 4279 ;; 4280 esac 4281 fi 4282 done 4283 IFS="$lt_save_ifs" 4284else 4285 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4286fi 4287fi 4288 4289LD="$lt_cv_path_LD" 4290if test -n "$LD"; then 4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4292$as_echo "$LD" >&6; } 4293else 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4295$as_echo "no" >&6; } 4296fi 4297test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4299$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4300if ${lt_cv_prog_gnu_ld+:} false; then : 4301 $as_echo_n "(cached) " >&6 4302else 4303 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4304case `$LD -v 2>&1 </dev/null` in 4305*GNU* | *'with BFD'*) 4306 lt_cv_prog_gnu_ld=yes 4307 ;; 4308*) 4309 lt_cv_prog_gnu_ld=no 4310 ;; 4311esac 4312fi 4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4314$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4315with_gnu_ld=$lt_cv_prog_gnu_ld 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4326$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4327if ${lt_cv_path_NM+:} false; then : 4328 $as_echo_n "(cached) " >&6 4329else 4330 if test -n "$NM"; then 4331 # Let the user override the test. 4332 lt_cv_path_NM="$NM" 4333else 4334 lt_nm_to_check="${ac_tool_prefix}nm" 4335 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4336 lt_nm_to_check="$lt_nm_to_check nm" 4337 fi 4338 for lt_tmp_nm in $lt_nm_to_check; do 4339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4340 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4341 IFS="$lt_save_ifs" 4342 test -z "$ac_dir" && ac_dir=. 4343 tmp_nm="$ac_dir/$lt_tmp_nm" 4344 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4345 # Check to see if the nm accepts a BSD-compat flag. 4346 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4347 # nm: unknown option "B" ignored 4348 # Tru64's nm complains that /dev/null is an invalid object file 4349 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4350 */dev/null* | *'Invalid file or object type'*) 4351 lt_cv_path_NM="$tmp_nm -B" 4352 break 4353 ;; 4354 *) 4355 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4356 */dev/null*) 4357 lt_cv_path_NM="$tmp_nm -p" 4358 break 4359 ;; 4360 *) 4361 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4362 continue # so that we can try to find one that supports BSD flags 4363 ;; 4364 esac 4365 ;; 4366 esac 4367 fi 4368 done 4369 IFS="$lt_save_ifs" 4370 done 4371 : ${lt_cv_path_NM=no} 4372fi 4373fi 4374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4375$as_echo "$lt_cv_path_NM" >&6; } 4376if test "$lt_cv_path_NM" != "no"; then 4377 NM="$lt_cv_path_NM" 4378else 4379 # Didn't find any BSD compatible name lister, look for dumpbin. 4380 if test -n "$DUMPBIN"; then : 4381 # Let the user override the test. 4382 else 4383 if test -n "$ac_tool_prefix"; then 4384 for ac_prog in dumpbin "link -dump" 4385 do 4386 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4387set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4389$as_echo_n "checking for $ac_word... " >&6; } 4390if ${ac_cv_prog_DUMPBIN+:} false; then : 4391 $as_echo_n "(cached) " >&6 4392else 4393 if test -n "$DUMPBIN"; then 4394 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4395else 4396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4397for as_dir in $PATH 4398do 4399 IFS=$as_save_IFS 4400 test -z "$as_dir" && as_dir=. 4401 for ac_exec_ext in '' $ac_executable_extensions; do 4402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4403 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4405 break 2 4406 fi 4407done 4408 done 4409IFS=$as_save_IFS 4410 4411fi 4412fi 4413DUMPBIN=$ac_cv_prog_DUMPBIN 4414if test -n "$DUMPBIN"; then 4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4416$as_echo "$DUMPBIN" >&6; } 4417else 4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4419$as_echo "no" >&6; } 4420fi 4421 4422 4423 test -n "$DUMPBIN" && break 4424 done 4425fi 4426if test -z "$DUMPBIN"; then 4427 ac_ct_DUMPBIN=$DUMPBIN 4428 for ac_prog in dumpbin "link -dump" 4429do 4430 # Extract the first word of "$ac_prog", so it can be a program name with args. 4431set dummy $ac_prog; ac_word=$2 4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4433$as_echo_n "checking for $ac_word... " >&6; } 4434if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4435 $as_echo_n "(cached) " >&6 4436else 4437 if test -n "$ac_ct_DUMPBIN"; then 4438 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4439else 4440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4441for as_dir in $PATH 4442do 4443 IFS=$as_save_IFS 4444 test -z "$as_dir" && as_dir=. 4445 for ac_exec_ext in '' $ac_executable_extensions; do 4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4447 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4449 break 2 4450 fi 4451done 4452 done 4453IFS=$as_save_IFS 4454 4455fi 4456fi 4457ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4458if test -n "$ac_ct_DUMPBIN"; then 4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4460$as_echo "$ac_ct_DUMPBIN" >&6; } 4461else 4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4463$as_echo "no" >&6; } 4464fi 4465 4466 4467 test -n "$ac_ct_DUMPBIN" && break 4468done 4469 4470 if test "x$ac_ct_DUMPBIN" = x; then 4471 DUMPBIN=":" 4472 else 4473 case $cross_compiling:$ac_tool_warned in 4474yes:) 4475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4477ac_tool_warned=yes ;; 4478esac 4479 DUMPBIN=$ac_ct_DUMPBIN 4480 fi 4481fi 4482 4483 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4484 *COFF*) 4485 DUMPBIN="$DUMPBIN -symbols" 4486 ;; 4487 *) 4488 DUMPBIN=: 4489 ;; 4490 esac 4491 fi 4492 4493 if test "$DUMPBIN" != ":"; then 4494 NM="$DUMPBIN" 4495 fi 4496fi 4497test -z "$NM" && NM=nm 4498 4499 4500 4501 4502 4503 4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4505$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4506if ${lt_cv_nm_interface+:} false; then : 4507 $as_echo_n "(cached) " >&6 4508else 4509 lt_cv_nm_interface="BSD nm" 4510 echo "int some_variable = 0;" > conftest.$ac_ext 4511 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4512 (eval "$ac_compile" 2>conftest.err) 4513 cat conftest.err >&5 4514 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4515 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4516 cat conftest.err >&5 4517 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4518 cat conftest.out >&5 4519 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4520 lt_cv_nm_interface="MS dumpbin" 4521 fi 4522 rm -f conftest* 4523fi 4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4525$as_echo "$lt_cv_nm_interface" >&6; } 4526 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4528$as_echo_n "checking whether ln -s works... " >&6; } 4529LN_S=$as_ln_s 4530if test "$LN_S" = "ln -s"; then 4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4532$as_echo "yes" >&6; } 4533else 4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4535$as_echo "no, using $LN_S" >&6; } 4536fi 4537 4538# find the maximum length of command line arguments 4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4540$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4541if ${lt_cv_sys_max_cmd_len+:} false; then : 4542 $as_echo_n "(cached) " >&6 4543else 4544 i=0 4545 teststring="ABCD" 4546 4547 case $build_os in 4548 msdosdjgpp*) 4549 # On DJGPP, this test can blow up pretty badly due to problems in libc 4550 # (any single argument exceeding 2000 bytes causes a buffer overrun 4551 # during glob expansion). Even if it were fixed, the result of this 4552 # check would be larger than it should be. 4553 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4554 ;; 4555 4556 gnu*) 4557 # Under GNU Hurd, this test is not required because there is 4558 # no limit to the length of command line arguments. 4559 # Libtool will interpret -1 as no limit whatsoever 4560 lt_cv_sys_max_cmd_len=-1; 4561 ;; 4562 4563 cygwin* | mingw* | cegcc*) 4564 # On Win9x/ME, this test blows up -- it succeeds, but takes 4565 # about 5 minutes as the teststring grows exponentially. 4566 # Worse, since 9x/ME are not pre-emptively multitasking, 4567 # you end up with a "frozen" computer, even though with patience 4568 # the test eventually succeeds (with a max line length of 256k). 4569 # Instead, let's just punt: use the minimum linelength reported by 4570 # all of the supported platforms: 8192 (on NT/2K/XP). 4571 lt_cv_sys_max_cmd_len=8192; 4572 ;; 4573 4574 mint*) 4575 # On MiNT this can take a long time and run out of memory. 4576 lt_cv_sys_max_cmd_len=8192; 4577 ;; 4578 4579 amigaos*) 4580 # On AmigaOS with pdksh, this test takes hours, literally. 4581 # So we just punt and use a minimum line length of 8192. 4582 lt_cv_sys_max_cmd_len=8192; 4583 ;; 4584 4585 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4586 # This has been around since 386BSD, at least. Likely further. 4587 if test -x /sbin/sysctl; then 4588 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4589 elif test -x /usr/sbin/sysctl; then 4590 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4591 else 4592 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4593 fi 4594 # And add a safety zone 4595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4597 ;; 4598 4599 interix*) 4600 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4601 lt_cv_sys_max_cmd_len=196608 4602 ;; 4603 4604 os2*) 4605 # The test takes a long time on OS/2. 4606 lt_cv_sys_max_cmd_len=8192 4607 ;; 4608 4609 osf*) 4610 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4611 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4612 # nice to cause kernel panics so lets avoid the loop below. 4613 # First set a reasonable default. 4614 lt_cv_sys_max_cmd_len=16384 4615 # 4616 if test -x /sbin/sysconfig; then 4617 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4618 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4619 esac 4620 fi 4621 ;; 4622 sco3.2v5*) 4623 lt_cv_sys_max_cmd_len=102400 4624 ;; 4625 sysv5* | sco5v6* | sysv4.2uw2*) 4626 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4627 if test -n "$kargmax"; then 4628 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4629 else 4630 lt_cv_sys_max_cmd_len=32768 4631 fi 4632 ;; 4633 *) 4634 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4635 if test -n "$lt_cv_sys_max_cmd_len"; then 4636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4638 else 4639 # Make teststring a little bigger before we do anything with it. 4640 # a 1K string should be a reasonable start. 4641 for i in 1 2 3 4 5 6 7 8 ; do 4642 teststring=$teststring$teststring 4643 done 4644 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4645 # If test is not a shell built-in, we'll probably end up computing a 4646 # maximum length that is only half of the actual maximum length, but 4647 # we can't tell. 4648 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4649 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4650 test $i != 17 # 1/2 MB should be enough 4651 do 4652 i=`expr $i + 1` 4653 teststring=$teststring$teststring 4654 done 4655 # Only check the string length outside the loop. 4656 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4657 teststring= 4658 # Add a significant safety factor because C++ compilers can tack on 4659 # massive amounts of additional arguments before passing them to the 4660 # linker. It appears as though 1/2 is a usable value. 4661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4662 fi 4663 ;; 4664 esac 4665 4666fi 4667 4668if test -n $lt_cv_sys_max_cmd_len ; then 4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4670$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4671else 4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4673$as_echo "none" >&6; } 4674fi 4675max_cmd_len=$lt_cv_sys_max_cmd_len 4676 4677 4678 4679 4680 4681 4682: ${CP="cp -f"} 4683: ${MV="mv -f"} 4684: ${RM="rm -f"} 4685 4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4687$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4688# Try some XSI features 4689xsi_shell=no 4690( _lt_dummy="a/b/c" 4691 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4692 = c,a/b,b/c, \ 4693 && eval 'test $(( 1 + 1 )) -eq 2 \ 4694 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4695 && xsi_shell=yes 4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4697$as_echo "$xsi_shell" >&6; } 4698 4699 4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4701$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4702lt_shell_append=no 4703( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4704 >/dev/null 2>&1 \ 4705 && lt_shell_append=yes 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4707$as_echo "$lt_shell_append" >&6; } 4708 4709 4710if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4711 lt_unset=unset 4712else 4713 lt_unset=false 4714fi 4715 4716 4717 4718 4719 4720# test EBCDIC or ASCII 4721case `echo X|tr X '\101'` in 4722 A) # ASCII based system 4723 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4724 lt_SP2NL='tr \040 \012' 4725 lt_NL2SP='tr \015\012 \040\040' 4726 ;; 4727 *) # EBCDIC based system 4728 lt_SP2NL='tr \100 \n' 4729 lt_NL2SP='tr \r\n \100\100' 4730 ;; 4731esac 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4742$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4743if ${lt_cv_to_host_file_cmd+:} false; then : 4744 $as_echo_n "(cached) " >&6 4745else 4746 case $host in 4747 *-*-mingw* ) 4748 case $build in 4749 *-*-mingw* ) # actually msys 4750 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4751 ;; 4752 *-*-cygwin* ) 4753 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4754 ;; 4755 * ) # otherwise, assume *nix 4756 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4757 ;; 4758 esac 4759 ;; 4760 *-*-cygwin* ) 4761 case $build in 4762 *-*-mingw* ) # actually msys 4763 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4764 ;; 4765 *-*-cygwin* ) 4766 lt_cv_to_host_file_cmd=func_convert_file_noop 4767 ;; 4768 * ) # otherwise, assume *nix 4769 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4770 ;; 4771 esac 4772 ;; 4773 * ) # unhandled hosts (and "normal" native builds) 4774 lt_cv_to_host_file_cmd=func_convert_file_noop 4775 ;; 4776esac 4777 4778fi 4779 4780to_host_file_cmd=$lt_cv_to_host_file_cmd 4781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4782$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4783 4784 4785 4786 4787 4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4789$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4790if ${lt_cv_to_tool_file_cmd+:} false; then : 4791 $as_echo_n "(cached) " >&6 4792else 4793 #assume ordinary cross tools, or native build. 4794lt_cv_to_tool_file_cmd=func_convert_file_noop 4795case $host in 4796 *-*-mingw* ) 4797 case $build in 4798 *-*-mingw* ) # actually msys 4799 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4800 ;; 4801 esac 4802 ;; 4803esac 4804 4805fi 4806 4807to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4809$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4810 4811 4812 4813 4814 4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4816$as_echo_n "checking for $LD option to reload object files... " >&6; } 4817if ${lt_cv_ld_reload_flag+:} false; then : 4818 $as_echo_n "(cached) " >&6 4819else 4820 lt_cv_ld_reload_flag='-r' 4821fi 4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4823$as_echo "$lt_cv_ld_reload_flag" >&6; } 4824reload_flag=$lt_cv_ld_reload_flag 4825case $reload_flag in 4826"" | " "*) ;; 4827*) reload_flag=" $reload_flag" ;; 4828esac 4829reload_cmds='$LD$reload_flag -o $output$reload_objs' 4830case $host_os in 4831 cygwin* | mingw* | pw32* | cegcc*) 4832 if test "$GCC" != yes; then 4833 reload_cmds=false 4834 fi 4835 ;; 4836 darwin*) 4837 if test "$GCC" = yes; then 4838 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4839 else 4840 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4841 fi 4842 ;; 4843esac 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853if test -n "$ac_tool_prefix"; then 4854 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4855set dummy ${ac_tool_prefix}objdump; ac_word=$2 4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4857$as_echo_n "checking for $ac_word... " >&6; } 4858if ${ac_cv_prog_OBJDUMP+:} false; then : 4859 $as_echo_n "(cached) " >&6 4860else 4861 if test -n "$OBJDUMP"; then 4862 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4863else 4864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4865for as_dir in $PATH 4866do 4867 IFS=$as_save_IFS 4868 test -z "$as_dir" && as_dir=. 4869 for ac_exec_ext in '' $ac_executable_extensions; do 4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4871 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4873 break 2 4874 fi 4875done 4876 done 4877IFS=$as_save_IFS 4878 4879fi 4880fi 4881OBJDUMP=$ac_cv_prog_OBJDUMP 4882if test -n "$OBJDUMP"; then 4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4884$as_echo "$OBJDUMP" >&6; } 4885else 4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4887$as_echo "no" >&6; } 4888fi 4889 4890 4891fi 4892if test -z "$ac_cv_prog_OBJDUMP"; then 4893 ac_ct_OBJDUMP=$OBJDUMP 4894 # Extract the first word of "objdump", so it can be a program name with args. 4895set dummy objdump; ac_word=$2 4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4897$as_echo_n "checking for $ac_word... " >&6; } 4898if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4899 $as_echo_n "(cached) " >&6 4900else 4901 if test -n "$ac_ct_OBJDUMP"; then 4902 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4903else 4904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4905for as_dir in $PATH 4906do 4907 IFS=$as_save_IFS 4908 test -z "$as_dir" && as_dir=. 4909 for ac_exec_ext in '' $ac_executable_extensions; do 4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4911 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4913 break 2 4914 fi 4915done 4916 done 4917IFS=$as_save_IFS 4918 4919fi 4920fi 4921ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4922if test -n "$ac_ct_OBJDUMP"; then 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4924$as_echo "$ac_ct_OBJDUMP" >&6; } 4925else 4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4927$as_echo "no" >&6; } 4928fi 4929 4930 if test "x$ac_ct_OBJDUMP" = x; then 4931 OBJDUMP="false" 4932 else 4933 case $cross_compiling:$ac_tool_warned in 4934yes:) 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4937ac_tool_warned=yes ;; 4938esac 4939 OBJDUMP=$ac_ct_OBJDUMP 4940 fi 4941else 4942 OBJDUMP="$ac_cv_prog_OBJDUMP" 4943fi 4944 4945test -z "$OBJDUMP" && OBJDUMP=objdump 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4956$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4957if ${lt_cv_deplibs_check_method+:} false; then : 4958 $as_echo_n "(cached) " >&6 4959else 4960 lt_cv_file_magic_cmd='$MAGIC_CMD' 4961lt_cv_file_magic_test_file= 4962lt_cv_deplibs_check_method='unknown' 4963# Need to set the preceding variable on all platforms that support 4964# interlibrary dependencies. 4965# 'none' -- dependencies not supported. 4966# `unknown' -- same as none, but documents that we really don't know. 4967# 'pass_all' -- all dependencies passed with no checks. 4968# 'test_compile' -- check by making test program. 4969# 'file_magic [[regex]]' -- check by looking for files in library path 4970# which responds to the $file_magic_cmd with a given extended regex. 4971# If you have `file' or equivalent on your system and you're not sure 4972# whether `pass_all' will *always* work, you probably want this one. 4973 4974case $host_os in 4975aix[4-9]*) 4976 lt_cv_deplibs_check_method=pass_all 4977 ;; 4978 4979beos*) 4980 lt_cv_deplibs_check_method=pass_all 4981 ;; 4982 4983bsdi[45]*) 4984 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4985 lt_cv_file_magic_cmd='/usr/bin/file -L' 4986 lt_cv_file_magic_test_file=/shlib/libc.so 4987 ;; 4988 4989cygwin*) 4990 # func_win32_libid is a shell function defined in ltmain.sh 4991 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4992 lt_cv_file_magic_cmd='func_win32_libid' 4993 ;; 4994 4995mingw* | pw32*) 4996 # Base MSYS/MinGW do not provide the 'file' command needed by 4997 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4998 # unless we find 'file', for example because we are cross-compiling. 4999 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5000 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5001 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5002 lt_cv_file_magic_cmd='func_win32_libid' 5003 else 5004 # Keep this pattern in sync with the one in func_win32_libid. 5005 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5006 lt_cv_file_magic_cmd='$OBJDUMP -f' 5007 fi 5008 ;; 5009 5010cegcc*) 5011 # use the weaker test based on 'objdump'. See mingw*. 5012 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5013 lt_cv_file_magic_cmd='$OBJDUMP -f' 5014 ;; 5015 5016darwin* | rhapsody*) 5017 lt_cv_deplibs_check_method=pass_all 5018 ;; 5019 5020freebsd* | dragonfly*) 5021 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5022 case $host_cpu in 5023 i*86 ) 5024 # Not sure whether the presence of OpenBSD here was a mistake. 5025 # Let's accept both of them until this is cleared up. 5026 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5027 lt_cv_file_magic_cmd=/usr/bin/file 5028 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5029 ;; 5030 esac 5031 else 5032 lt_cv_deplibs_check_method=pass_all 5033 fi 5034 ;; 5035 5036gnu*) 5037 lt_cv_deplibs_check_method=pass_all 5038 ;; 5039 5040haiku*) 5041 lt_cv_deplibs_check_method=pass_all 5042 ;; 5043 5044hpux10.20* | hpux11*) 5045 lt_cv_file_magic_cmd=/usr/bin/file 5046 case $host_cpu in 5047 ia64*) 5048 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5049 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5050 ;; 5051 hppa*64*) 5052 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]' 5053 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5054 ;; 5055 *) 5056 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5057 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5058 ;; 5059 esac 5060 ;; 5061 5062interix[3-9]*) 5063 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5065 ;; 5066 5067irix5* | irix6* | nonstopux*) 5068 case $LD in 5069 *-32|*"-32 ") libmagic=32-bit;; 5070 *-n32|*"-n32 ") libmagic=N32;; 5071 *-64|*"-64 ") libmagic=64-bit;; 5072 *) libmagic=never-match;; 5073 esac 5074 lt_cv_deplibs_check_method=pass_all 5075 ;; 5076 5077# This must be glibc/ELF. 5078linux* | k*bsd*-gnu | kopensolaris*-gnu) 5079 lt_cv_deplibs_check_method=pass_all 5080 ;; 5081 5082netbsd*) 5083 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5085 else 5086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5087 fi 5088 ;; 5089 5090newos6*) 5091 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5092 lt_cv_file_magic_cmd=/usr/bin/file 5093 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5094 ;; 5095 5096*nto* | *qnx*) 5097 lt_cv_deplibs_check_method=pass_all 5098 ;; 5099 5100openbsd*) 5101 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5103 else 5104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5105 fi 5106 ;; 5107 5108osf3* | osf4* | osf5*) 5109 lt_cv_deplibs_check_method=pass_all 5110 ;; 5111 5112rdos*) 5113 lt_cv_deplibs_check_method=pass_all 5114 ;; 5115 5116solaris*) 5117 lt_cv_deplibs_check_method=pass_all 5118 ;; 5119 5120sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5121 lt_cv_deplibs_check_method=pass_all 5122 ;; 5123 5124sysv4 | sysv4.3*) 5125 case $host_vendor in 5126 motorola) 5127 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]' 5128 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5129 ;; 5130 ncr) 5131 lt_cv_deplibs_check_method=pass_all 5132 ;; 5133 sequent) 5134 lt_cv_file_magic_cmd='/bin/file' 5135 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5136 ;; 5137 sni) 5138 lt_cv_file_magic_cmd='/bin/file' 5139 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5140 lt_cv_file_magic_test_file=/lib/libc.so 5141 ;; 5142 siemens) 5143 lt_cv_deplibs_check_method=pass_all 5144 ;; 5145 pc) 5146 lt_cv_deplibs_check_method=pass_all 5147 ;; 5148 esac 5149 ;; 5150 5151tpf*) 5152 lt_cv_deplibs_check_method=pass_all 5153 ;; 5154esac 5155 5156fi 5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5158$as_echo "$lt_cv_deplibs_check_method" >&6; } 5159 5160file_magic_glob= 5161want_nocaseglob=no 5162if test "$build" = "$host"; then 5163 case $host_os in 5164 mingw* | pw32*) 5165 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5166 want_nocaseglob=yes 5167 else 5168 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5169 fi 5170 ;; 5171 esac 5172fi 5173 5174file_magic_cmd=$lt_cv_file_magic_cmd 5175deplibs_check_method=$lt_cv_deplibs_check_method 5176test -z "$deplibs_check_method" && deplibs_check_method=unknown 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199if test -n "$ac_tool_prefix"; then 5200 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5201set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5203$as_echo_n "checking for $ac_word... " >&6; } 5204if ${ac_cv_prog_DLLTOOL+:} false; then : 5205 $as_echo_n "(cached) " >&6 5206else 5207 if test -n "$DLLTOOL"; then 5208 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5209else 5210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5211for as_dir in $PATH 5212do 5213 IFS=$as_save_IFS 5214 test -z "$as_dir" && as_dir=. 5215 for ac_exec_ext in '' $ac_executable_extensions; do 5216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5217 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5219 break 2 5220 fi 5221done 5222 done 5223IFS=$as_save_IFS 5224 5225fi 5226fi 5227DLLTOOL=$ac_cv_prog_DLLTOOL 5228if test -n "$DLLTOOL"; then 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5230$as_echo "$DLLTOOL" >&6; } 5231else 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5233$as_echo "no" >&6; } 5234fi 5235 5236 5237fi 5238if test -z "$ac_cv_prog_DLLTOOL"; then 5239 ac_ct_DLLTOOL=$DLLTOOL 5240 # Extract the first word of "dlltool", so it can be a program name with args. 5241set dummy dlltool; ac_word=$2 5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5243$as_echo_n "checking for $ac_word... " >&6; } 5244if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5245 $as_echo_n "(cached) " >&6 5246else 5247 if test -n "$ac_ct_DLLTOOL"; then 5248 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5249else 5250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5251for as_dir in $PATH 5252do 5253 IFS=$as_save_IFS 5254 test -z "$as_dir" && as_dir=. 5255 for ac_exec_ext in '' $ac_executable_extensions; do 5256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5257 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5259 break 2 5260 fi 5261done 5262 done 5263IFS=$as_save_IFS 5264 5265fi 5266fi 5267ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5268if test -n "$ac_ct_DLLTOOL"; then 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5270$as_echo "$ac_ct_DLLTOOL" >&6; } 5271else 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5273$as_echo "no" >&6; } 5274fi 5275 5276 if test "x$ac_ct_DLLTOOL" = x; then 5277 DLLTOOL="false" 5278 else 5279 case $cross_compiling:$ac_tool_warned in 5280yes:) 5281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5283ac_tool_warned=yes ;; 5284esac 5285 DLLTOOL=$ac_ct_DLLTOOL 5286 fi 5287else 5288 DLLTOOL="$ac_cv_prog_DLLTOOL" 5289fi 5290 5291test -z "$DLLTOOL" && DLLTOOL=dlltool 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5303$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5304if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5305 $as_echo_n "(cached) " >&6 5306else 5307 lt_cv_sharedlib_from_linklib_cmd='unknown' 5308 5309case $host_os in 5310cygwin* | mingw* | pw32* | cegcc*) 5311 # two different shell functions defined in ltmain.sh 5312 # decide which to use based on capabilities of $DLLTOOL 5313 case `$DLLTOOL --help 2>&1` in 5314 *--identify-strict*) 5315 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5316 ;; 5317 *) 5318 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5319 ;; 5320 esac 5321 ;; 5322*) 5323 # fallback: assume linklib IS sharedlib 5324 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5325 ;; 5326esac 5327 5328fi 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5330$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5331sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5332test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5333 5334 5335 5336 5337 5338 5339 5340 5341if test -n "$ac_tool_prefix"; then 5342 for ac_prog in ar 5343 do 5344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5345set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5347$as_echo_n "checking for $ac_word... " >&6; } 5348if ${ac_cv_prog_AR+:} false; then : 5349 $as_echo_n "(cached) " >&6 5350else 5351 if test -n "$AR"; then 5352 ac_cv_prog_AR="$AR" # Let the user override the test. 5353else 5354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5355for as_dir in $PATH 5356do 5357 IFS=$as_save_IFS 5358 test -z "$as_dir" && as_dir=. 5359 for ac_exec_ext in '' $ac_executable_extensions; do 5360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5361 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5363 break 2 5364 fi 5365done 5366 done 5367IFS=$as_save_IFS 5368 5369fi 5370fi 5371AR=$ac_cv_prog_AR 5372if test -n "$AR"; then 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5374$as_echo "$AR" >&6; } 5375else 5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5377$as_echo "no" >&6; } 5378fi 5379 5380 5381 test -n "$AR" && break 5382 done 5383fi 5384if test -z "$AR"; then 5385 ac_ct_AR=$AR 5386 for ac_prog in ar 5387do 5388 # Extract the first word of "$ac_prog", so it can be a program name with args. 5389set dummy $ac_prog; ac_word=$2 5390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5391$as_echo_n "checking for $ac_word... " >&6; } 5392if ${ac_cv_prog_ac_ct_AR+:} false; then : 5393 $as_echo_n "(cached) " >&6 5394else 5395 if test -n "$ac_ct_AR"; then 5396 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5397else 5398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5399for as_dir in $PATH 5400do 5401 IFS=$as_save_IFS 5402 test -z "$as_dir" && as_dir=. 5403 for ac_exec_ext in '' $ac_executable_extensions; do 5404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5405 ac_cv_prog_ac_ct_AR="$ac_prog" 5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5407 break 2 5408 fi 5409done 5410 done 5411IFS=$as_save_IFS 5412 5413fi 5414fi 5415ac_ct_AR=$ac_cv_prog_ac_ct_AR 5416if test -n "$ac_ct_AR"; then 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5418$as_echo "$ac_ct_AR" >&6; } 5419else 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5421$as_echo "no" >&6; } 5422fi 5423 5424 5425 test -n "$ac_ct_AR" && break 5426done 5427 5428 if test "x$ac_ct_AR" = x; then 5429 AR="false" 5430 else 5431 case $cross_compiling:$ac_tool_warned in 5432yes:) 5433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5435ac_tool_warned=yes ;; 5436esac 5437 AR=$ac_ct_AR 5438 fi 5439fi 5440 5441: ${AR=ar} 5442: ${AR_FLAGS=cru} 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5455$as_echo_n "checking for archiver @FILE support... " >&6; } 5456if ${lt_cv_ar_at_file+:} false; then : 5457 $as_echo_n "(cached) " >&6 5458else 5459 lt_cv_ar_at_file=no 5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5461/* end confdefs.h. */ 5462 5463int 5464main () 5465{ 5466 5467 ; 5468 return 0; 5469} 5470_ACEOF 5471if ac_fn_c_try_compile "$LINENO"; then : 5472 echo conftest.$ac_objext > conftest.lst 5473 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5475 (eval $lt_ar_try) 2>&5 5476 ac_status=$? 5477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5478 test $ac_status = 0; } 5479 if test "$ac_status" -eq 0; then 5480 # Ensure the archiver fails upon bogus file names. 5481 rm -f conftest.$ac_objext libconftest.a 5482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5483 (eval $lt_ar_try) 2>&5 5484 ac_status=$? 5485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5486 test $ac_status = 0; } 5487 if test "$ac_status" -ne 0; then 5488 lt_cv_ar_at_file=@ 5489 fi 5490 fi 5491 rm -f conftest.* libconftest.a 5492 5493fi 5494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5495 5496fi 5497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5498$as_echo "$lt_cv_ar_at_file" >&6; } 5499 5500if test "x$lt_cv_ar_at_file" = xno; then 5501 archiver_list_spec= 5502else 5503 archiver_list_spec=$lt_cv_ar_at_file 5504fi 5505 5506 5507 5508 5509 5510 5511 5512if test -n "$ac_tool_prefix"; then 5513 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5514set dummy ${ac_tool_prefix}strip; ac_word=$2 5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5516$as_echo_n "checking for $ac_word... " >&6; } 5517if ${ac_cv_prog_STRIP+:} false; then : 5518 $as_echo_n "(cached) " >&6 5519else 5520 if test -n "$STRIP"; then 5521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5522else 5523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5524for as_dir in $PATH 5525do 5526 IFS=$as_save_IFS 5527 test -z "$as_dir" && as_dir=. 5528 for ac_exec_ext in '' $ac_executable_extensions; do 5529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5530 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5532 break 2 5533 fi 5534done 5535 done 5536IFS=$as_save_IFS 5537 5538fi 5539fi 5540STRIP=$ac_cv_prog_STRIP 5541if test -n "$STRIP"; then 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5543$as_echo "$STRIP" >&6; } 5544else 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5546$as_echo "no" >&6; } 5547fi 5548 5549 5550fi 5551if test -z "$ac_cv_prog_STRIP"; then 5552 ac_ct_STRIP=$STRIP 5553 # Extract the first word of "strip", so it can be a program name with args. 5554set dummy strip; ac_word=$2 5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5556$as_echo_n "checking for $ac_word... " >&6; } 5557if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5558 $as_echo_n "(cached) " >&6 5559else 5560 if test -n "$ac_ct_STRIP"; then 5561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5562else 5563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5564for as_dir in $PATH 5565do 5566 IFS=$as_save_IFS 5567 test -z "$as_dir" && as_dir=. 5568 for ac_exec_ext in '' $ac_executable_extensions; do 5569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5570 ac_cv_prog_ac_ct_STRIP="strip" 5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5572 break 2 5573 fi 5574done 5575 done 5576IFS=$as_save_IFS 5577 5578fi 5579fi 5580ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5581if test -n "$ac_ct_STRIP"; then 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5583$as_echo "$ac_ct_STRIP" >&6; } 5584else 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5586$as_echo "no" >&6; } 5587fi 5588 5589 if test "x$ac_ct_STRIP" = x; then 5590 STRIP=":" 5591 else 5592 case $cross_compiling:$ac_tool_warned in 5593yes:) 5594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5596ac_tool_warned=yes ;; 5597esac 5598 STRIP=$ac_ct_STRIP 5599 fi 5600else 5601 STRIP="$ac_cv_prog_STRIP" 5602fi 5603 5604test -z "$STRIP" && STRIP=: 5605 5606 5607 5608 5609 5610 5611if test -n "$ac_tool_prefix"; then 5612 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5613set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5615$as_echo_n "checking for $ac_word... " >&6; } 5616if ${ac_cv_prog_RANLIB+:} false; then : 5617 $as_echo_n "(cached) " >&6 5618else 5619 if test -n "$RANLIB"; then 5620 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5621else 5622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5623for as_dir in $PATH 5624do 5625 IFS=$as_save_IFS 5626 test -z "$as_dir" && as_dir=. 5627 for ac_exec_ext in '' $ac_executable_extensions; do 5628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5631 break 2 5632 fi 5633done 5634 done 5635IFS=$as_save_IFS 5636 5637fi 5638fi 5639RANLIB=$ac_cv_prog_RANLIB 5640if test -n "$RANLIB"; then 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5642$as_echo "$RANLIB" >&6; } 5643else 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5645$as_echo "no" >&6; } 5646fi 5647 5648 5649fi 5650if test -z "$ac_cv_prog_RANLIB"; then 5651 ac_ct_RANLIB=$RANLIB 5652 # Extract the first word of "ranlib", so it can be a program name with args. 5653set dummy ranlib; ac_word=$2 5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5655$as_echo_n "checking for $ac_word... " >&6; } 5656if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5657 $as_echo_n "(cached) " >&6 5658else 5659 if test -n "$ac_ct_RANLIB"; then 5660 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5661else 5662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5663for as_dir in $PATH 5664do 5665 IFS=$as_save_IFS 5666 test -z "$as_dir" && as_dir=. 5667 for ac_exec_ext in '' $ac_executable_extensions; do 5668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5669 ac_cv_prog_ac_ct_RANLIB="ranlib" 5670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5671 break 2 5672 fi 5673done 5674 done 5675IFS=$as_save_IFS 5676 5677fi 5678fi 5679ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5680if test -n "$ac_ct_RANLIB"; then 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5682$as_echo "$ac_ct_RANLIB" >&6; } 5683else 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5685$as_echo "no" >&6; } 5686fi 5687 5688 if test "x$ac_ct_RANLIB" = x; then 5689 RANLIB=":" 5690 else 5691 case $cross_compiling:$ac_tool_warned in 5692yes:) 5693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5695ac_tool_warned=yes ;; 5696esac 5697 RANLIB=$ac_ct_RANLIB 5698 fi 5699else 5700 RANLIB="$ac_cv_prog_RANLIB" 5701fi 5702 5703test -z "$RANLIB" && RANLIB=: 5704 5705 5706 5707 5708 5709 5710# Determine commands to create old-style static archives. 5711old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5712old_postinstall_cmds='chmod 644 $oldlib' 5713old_postuninstall_cmds= 5714 5715if test -n "$RANLIB"; then 5716 case $host_os in 5717 openbsd*) 5718 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5719 ;; 5720 *) 5721 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5722 ;; 5723 esac 5724 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5725fi 5726 5727case $host_os in 5728 darwin*) 5729 lock_old_archive_extraction=yes ;; 5730 *) 5731 lock_old_archive_extraction=no ;; 5732esac 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772# If no C compiler was specified, use CC. 5773LTCC=${LTCC-"$CC"} 5774 5775# If no C compiler flags were specified, use CFLAGS. 5776LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5777 5778# Allow CC to be a program name with arguments. 5779compiler=$CC 5780 5781 5782# Check for command to grab the raw symbol name followed by C symbol from nm. 5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5784$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5785if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5786 $as_echo_n "(cached) " >&6 5787else 5788 5789# These are sane defaults that work on at least a few old systems. 5790# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5791 5792# Character class describing NM global symbol codes. 5793symcode='[BCDEGRST]' 5794 5795# Regexp to match symbols that can be accessed directly from C. 5796sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5797 5798# Define system-specific variables. 5799case $host_os in 5800aix*) 5801 symcode='[BCDT]' 5802 ;; 5803cygwin* | mingw* | pw32* | cegcc*) 5804 symcode='[ABCDGISTW]' 5805 ;; 5806hpux*) 5807 if test "$host_cpu" = ia64; then 5808 symcode='[ABCDEGRST]' 5809 fi 5810 ;; 5811irix* | nonstopux*) 5812 symcode='[BCDEGRST]' 5813 ;; 5814osf*) 5815 symcode='[BCDEGQRST]' 5816 ;; 5817solaris*) 5818 symcode='[BDRT]' 5819 ;; 5820sco3.2v5*) 5821 symcode='[DT]' 5822 ;; 5823sysv4.2uw2*) 5824 symcode='[DT]' 5825 ;; 5826sysv5* | sco5v6* | unixware* | OpenUNIX*) 5827 symcode='[ABDT]' 5828 ;; 5829sysv4) 5830 symcode='[DFNSTU]' 5831 ;; 5832esac 5833 5834# If we're using GNU nm, then use its standard symbol codes. 5835case `$NM -V 2>&1` in 5836*GNU* | *'with BFD'*) 5837 symcode='[ABCDGIRSTW]' ;; 5838esac 5839 5840# Transform an extracted symbol line into a proper C declaration. 5841# Some systems (esp. on ia64) link data and code symbols differently, 5842# so use this general approach. 5843lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5844 5845# Transform an extracted symbol line into symbol name and symbol address 5846lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5847lt_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'" 5848 5849# Handle CRLF in mingw tool chain 5850opt_cr= 5851case $build_os in 5852mingw*) 5853 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5854 ;; 5855esac 5856 5857# Try without a prefix underscore, then with it. 5858for ac_symprfx in "" "_"; do 5859 5860 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5861 symxfrm="\\1 $ac_symprfx\\2 \\2" 5862 5863 # Write the raw and C identifiers. 5864 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5865 # Fake it for dumpbin and say T for any non-static function 5866 # and D for any global variable. 5867 # Also find C++ and __fastcall symbols from MSVC++, 5868 # which start with @ or ?. 5869 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5870" {last_section=section; section=\$ 3};"\ 5871" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5872" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5873" \$ 0!~/External *\|/{next};"\ 5874" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5875" {if(hide[section]) next};"\ 5876" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5877" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5878" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5879" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5880" ' prfx=^$ac_symprfx" 5881 else 5882 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5883 fi 5884 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5885 5886 # Check to see that the pipe works correctly. 5887 pipe_works=no 5888 5889 rm -f conftest* 5890 cat > conftest.$ac_ext <<_LT_EOF 5891#ifdef __cplusplus 5892extern "C" { 5893#endif 5894char nm_test_var; 5895void nm_test_func(void); 5896void nm_test_func(void){} 5897#ifdef __cplusplus 5898} 5899#endif 5900int main(){nm_test_var='a';nm_test_func();return(0);} 5901_LT_EOF 5902 5903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5904 (eval $ac_compile) 2>&5 5905 ac_status=$? 5906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5907 test $ac_status = 0; }; then 5908 # Now try to grab the symbols. 5909 nlist=conftest.nm 5910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5911 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5912 ac_status=$? 5913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5914 test $ac_status = 0; } && test -s "$nlist"; then 5915 # Try sorting and uniquifying the output. 5916 if sort "$nlist" | uniq > "$nlist"T; then 5917 mv -f "$nlist"T "$nlist" 5918 else 5919 rm -f "$nlist"T 5920 fi 5921 5922 # Make sure that we snagged all the symbols we need. 5923 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5924 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5925 cat <<_LT_EOF > conftest.$ac_ext 5926/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5927#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5928/* DATA imports from DLLs on WIN32 con't be const, because runtime 5929 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5930# define LT_DLSYM_CONST 5931#elif defined(__osf__) 5932/* This system does not cope well with relocations in const data. */ 5933# define LT_DLSYM_CONST 5934#else 5935# define LT_DLSYM_CONST const 5936#endif 5937 5938#ifdef __cplusplus 5939extern "C" { 5940#endif 5941 5942_LT_EOF 5943 # Now generate the symbol file. 5944 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5945 5946 cat <<_LT_EOF >> conftest.$ac_ext 5947 5948/* The mapping between symbol names and symbols. */ 5949LT_DLSYM_CONST struct { 5950 const char *name; 5951 void *address; 5952} 5953lt__PROGRAM__LTX_preloaded_symbols[] = 5954{ 5955 { "@PROGRAM@", (void *) 0 }, 5956_LT_EOF 5957 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5958 cat <<\_LT_EOF >> conftest.$ac_ext 5959 {0, (void *) 0} 5960}; 5961 5962/* This works around a problem in FreeBSD linker */ 5963#ifdef FREEBSD_WORKAROUND 5964static const void *lt_preloaded_setup() { 5965 return lt__PROGRAM__LTX_preloaded_symbols; 5966} 5967#endif 5968 5969#ifdef __cplusplus 5970} 5971#endif 5972_LT_EOF 5973 # Now try linking the two files. 5974 mv conftest.$ac_objext conftstm.$ac_objext 5975 lt_globsym_save_LIBS=$LIBS 5976 lt_globsym_save_CFLAGS=$CFLAGS 5977 LIBS="conftstm.$ac_objext" 5978 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5980 (eval $ac_link) 2>&5 5981 ac_status=$? 5982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5983 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5984 pipe_works=yes 5985 fi 5986 LIBS=$lt_globsym_save_LIBS 5987 CFLAGS=$lt_globsym_save_CFLAGS 5988 else 5989 echo "cannot find nm_test_func in $nlist" >&5 5990 fi 5991 else 5992 echo "cannot find nm_test_var in $nlist" >&5 5993 fi 5994 else 5995 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5996 fi 5997 else 5998 echo "$progname: failed program was:" >&5 5999 cat conftest.$ac_ext >&5 6000 fi 6001 rm -rf conftest* conftst* 6002 6003 # Do not use the global_symbol_pipe unless it works. 6004 if test "$pipe_works" = yes; then 6005 break 6006 else 6007 lt_cv_sys_global_symbol_pipe= 6008 fi 6009done 6010 6011fi 6012 6013if test -z "$lt_cv_sys_global_symbol_pipe"; then 6014 lt_cv_sys_global_symbol_to_cdecl= 6015fi 6016if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6018$as_echo "failed" >&6; } 6019else 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6021$as_echo "ok" >&6; } 6022fi 6023 6024# Response file support. 6025if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6026 nm_file_list_spec='@' 6027elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6028 nm_file_list_spec='@' 6029fi 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6058$as_echo_n "checking for sysroot... " >&6; } 6059 6060# Check whether --with-sysroot was given. 6061if test "${with_sysroot+set}" = set; then : 6062 withval=$with_sysroot; 6063else 6064 with_sysroot=no 6065fi 6066 6067 6068lt_sysroot= 6069case ${with_sysroot} in #( 6070 yes) 6071 if test "$GCC" = yes; then 6072 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6073 fi 6074 ;; #( 6075 /*) 6076 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6077 ;; #( 6078 no|'') 6079 ;; #( 6080 *) 6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6082$as_echo "${with_sysroot}" >&6; } 6083 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6084 ;; 6085esac 6086 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6088$as_echo "${lt_sysroot:-no}" >&6; } 6089 6090 6091 6092 6093 6094# Check whether --enable-libtool-lock was given. 6095if test "${enable_libtool_lock+set}" = set; then : 6096 enableval=$enable_libtool_lock; 6097fi 6098 6099test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6100 6101# Some flags need to be propagated to the compiler or linker for good 6102# libtool support. 6103case $host in 6104ia64-*-hpux*) 6105 # Find out which ABI we are using. 6106 echo 'int i;' > conftest.$ac_ext 6107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6108 (eval $ac_compile) 2>&5 6109 ac_status=$? 6110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6111 test $ac_status = 0; }; then 6112 case `/usr/bin/file conftest.$ac_objext` in 6113 *ELF-32*) 6114 HPUX_IA64_MODE="32" 6115 ;; 6116 *ELF-64*) 6117 HPUX_IA64_MODE="64" 6118 ;; 6119 esac 6120 fi 6121 rm -rf conftest* 6122 ;; 6123*-*-irix6*) 6124 # Find out which ABI we are using. 6125 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6127 (eval $ac_compile) 2>&5 6128 ac_status=$? 6129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6130 test $ac_status = 0; }; then 6131 if test "$lt_cv_prog_gnu_ld" = yes; then 6132 case `/usr/bin/file conftest.$ac_objext` in 6133 *32-bit*) 6134 LD="${LD-ld} -melf32bsmip" 6135 ;; 6136 *N32*) 6137 LD="${LD-ld} -melf32bmipn32" 6138 ;; 6139 *64-bit*) 6140 LD="${LD-ld} -melf64bmip" 6141 ;; 6142 esac 6143 else 6144 case `/usr/bin/file conftest.$ac_objext` in 6145 *32-bit*) 6146 LD="${LD-ld} -32" 6147 ;; 6148 *N32*) 6149 LD="${LD-ld} -n32" 6150 ;; 6151 *64-bit*) 6152 LD="${LD-ld} -64" 6153 ;; 6154 esac 6155 fi 6156 fi 6157 rm -rf conftest* 6158 ;; 6159 6160x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6161s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6162 # Find out which ABI we are using. 6163 echo 'int i;' > conftest.$ac_ext 6164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6165 (eval $ac_compile) 2>&5 6166 ac_status=$? 6167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6168 test $ac_status = 0; }; then 6169 case `/usr/bin/file conftest.o` in 6170 *32-bit*) 6171 case $host in 6172 x86_64-*kfreebsd*-gnu) 6173 LD="${LD-ld} -m elf_i386_fbsd" 6174 ;; 6175 x86_64-*linux*) 6176 LD="${LD-ld} -m elf_i386" 6177 ;; 6178 ppc64-*linux*|powerpc64-*linux*) 6179 LD="${LD-ld} -m elf32ppclinux" 6180 ;; 6181 s390x-*linux*) 6182 LD="${LD-ld} -m elf_s390" 6183 ;; 6184 sparc64-*linux*) 6185 LD="${LD-ld} -m elf32_sparc" 6186 ;; 6187 esac 6188 ;; 6189 *64-bit*) 6190 case $host in 6191 x86_64-*kfreebsd*-gnu) 6192 LD="${LD-ld} -m elf_x86_64_fbsd" 6193 ;; 6194 x86_64-*linux*) 6195 LD="${LD-ld} -m elf_x86_64" 6196 ;; 6197 ppc*-*linux*|powerpc*-*linux*) 6198 LD="${LD-ld} -m elf64ppc" 6199 ;; 6200 s390*-*linux*|s390*-*tpf*) 6201 LD="${LD-ld} -m elf64_s390" 6202 ;; 6203 sparc*-*linux*) 6204 LD="${LD-ld} -m elf64_sparc" 6205 ;; 6206 esac 6207 ;; 6208 esac 6209 fi 6210 rm -rf conftest* 6211 ;; 6212 6213*-*-sco3.2v5*) 6214 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6215 SAVE_CFLAGS="$CFLAGS" 6216 CFLAGS="$CFLAGS -belf" 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6218$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6219if ${lt_cv_cc_needs_belf+:} false; then : 6220 $as_echo_n "(cached) " >&6 6221else 6222 ac_ext=c 6223ac_cpp='$CPP $CPPFLAGS' 6224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6226ac_compiler_gnu=$ac_cv_c_compiler_gnu 6227 6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6229/* end confdefs.h. */ 6230 6231int 6232main () 6233{ 6234 6235 ; 6236 return 0; 6237} 6238_ACEOF 6239if ac_fn_c_try_link "$LINENO"; then : 6240 lt_cv_cc_needs_belf=yes 6241else 6242 lt_cv_cc_needs_belf=no 6243fi 6244rm -f core conftest.err conftest.$ac_objext \ 6245 conftest$ac_exeext conftest.$ac_ext 6246 ac_ext=c 6247ac_cpp='$CPP $CPPFLAGS' 6248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6250ac_compiler_gnu=$ac_cv_c_compiler_gnu 6251 6252fi 6253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6254$as_echo "$lt_cv_cc_needs_belf" >&6; } 6255 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6256 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6257 CFLAGS="$SAVE_CFLAGS" 6258 fi 6259 ;; 6260*-*solaris*) 6261 # Find out which ABI we are using. 6262 echo 'int i;' > conftest.$ac_ext 6263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6264 (eval $ac_compile) 2>&5 6265 ac_status=$? 6266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6267 test $ac_status = 0; }; then 6268 case `/usr/bin/file conftest.o` in 6269 *64-bit*) 6270 case $lt_cv_prog_gnu_ld in 6271 yes*) 6272 case $host in 6273 i?86-*-solaris*) 6274 LD="${LD-ld} -m elf_x86_64" 6275 ;; 6276 sparc*-*-solaris*) 6277 LD="${LD-ld} -m elf64_sparc" 6278 ;; 6279 esac 6280 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6281 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6282 LD="${LD-ld}_sol2" 6283 fi 6284 ;; 6285 *) 6286 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6287 LD="${LD-ld} -64" 6288 fi 6289 ;; 6290 esac 6291 ;; 6292 esac 6293 fi 6294 rm -rf conftest* 6295 ;; 6296esac 6297 6298need_locks="$enable_libtool_lock" 6299 6300if test -n "$ac_tool_prefix"; then 6301 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6302set dummy ${ac_tool_prefix}mt; ac_word=$2 6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6304$as_echo_n "checking for $ac_word... " >&6; } 6305if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6306 $as_echo_n "(cached) " >&6 6307else 6308 if test -n "$MANIFEST_TOOL"; then 6309 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6310else 6311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6312for as_dir in $PATH 6313do 6314 IFS=$as_save_IFS 6315 test -z "$as_dir" && as_dir=. 6316 for ac_exec_ext in '' $ac_executable_extensions; do 6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6318 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6320 break 2 6321 fi 6322done 6323 done 6324IFS=$as_save_IFS 6325 6326fi 6327fi 6328MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6329if test -n "$MANIFEST_TOOL"; then 6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6331$as_echo "$MANIFEST_TOOL" >&6; } 6332else 6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6334$as_echo "no" >&6; } 6335fi 6336 6337 6338fi 6339if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6340 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6341 # Extract the first word of "mt", so it can be a program name with args. 6342set dummy mt; ac_word=$2 6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6344$as_echo_n "checking for $ac_word... " >&6; } 6345if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6346 $as_echo_n "(cached) " >&6 6347else 6348 if test -n "$ac_ct_MANIFEST_TOOL"; then 6349 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6350else 6351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6352for as_dir in $PATH 6353do 6354 IFS=$as_save_IFS 6355 test -z "$as_dir" && as_dir=. 6356 for ac_exec_ext in '' $ac_executable_extensions; do 6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6358 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6360 break 2 6361 fi 6362done 6363 done 6364IFS=$as_save_IFS 6365 6366fi 6367fi 6368ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6369if test -n "$ac_ct_MANIFEST_TOOL"; then 6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6371$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6372else 6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6374$as_echo "no" >&6; } 6375fi 6376 6377 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6378 MANIFEST_TOOL=":" 6379 else 6380 case $cross_compiling:$ac_tool_warned in 6381yes:) 6382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6384ac_tool_warned=yes ;; 6385esac 6386 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6387 fi 6388else 6389 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6390fi 6391 6392test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6394$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6395if ${lt_cv_path_mainfest_tool+:} false; then : 6396 $as_echo_n "(cached) " >&6 6397else 6398 lt_cv_path_mainfest_tool=no 6399 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6400 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6401 cat conftest.err >&5 6402 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6403 lt_cv_path_mainfest_tool=yes 6404 fi 6405 rm -f conftest* 6406fi 6407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6408$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6409if test "x$lt_cv_path_mainfest_tool" != xyes; then 6410 MANIFEST_TOOL=: 6411fi 6412 6413 6414 6415 6416 6417 6418 case $host_os in 6419 rhapsody* | darwin*) 6420 if test -n "$ac_tool_prefix"; then 6421 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6422set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6424$as_echo_n "checking for $ac_word... " >&6; } 6425if ${ac_cv_prog_DSYMUTIL+:} false; then : 6426 $as_echo_n "(cached) " >&6 6427else 6428 if test -n "$DSYMUTIL"; then 6429 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6430else 6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6432for as_dir in $PATH 6433do 6434 IFS=$as_save_IFS 6435 test -z "$as_dir" && as_dir=. 6436 for ac_exec_ext in '' $ac_executable_extensions; do 6437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6438 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6440 break 2 6441 fi 6442done 6443 done 6444IFS=$as_save_IFS 6445 6446fi 6447fi 6448DSYMUTIL=$ac_cv_prog_DSYMUTIL 6449if test -n "$DSYMUTIL"; then 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6451$as_echo "$DSYMUTIL" >&6; } 6452else 6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6454$as_echo "no" >&6; } 6455fi 6456 6457 6458fi 6459if test -z "$ac_cv_prog_DSYMUTIL"; then 6460 ac_ct_DSYMUTIL=$DSYMUTIL 6461 # Extract the first word of "dsymutil", so it can be a program name with args. 6462set dummy dsymutil; ac_word=$2 6463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6464$as_echo_n "checking for $ac_word... " >&6; } 6465if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6466 $as_echo_n "(cached) " >&6 6467else 6468 if test -n "$ac_ct_DSYMUTIL"; then 6469 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6470else 6471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6472for as_dir in $PATH 6473do 6474 IFS=$as_save_IFS 6475 test -z "$as_dir" && as_dir=. 6476 for ac_exec_ext in '' $ac_executable_extensions; do 6477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6478 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6480 break 2 6481 fi 6482done 6483 done 6484IFS=$as_save_IFS 6485 6486fi 6487fi 6488ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6489if test -n "$ac_ct_DSYMUTIL"; then 6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6491$as_echo "$ac_ct_DSYMUTIL" >&6; } 6492else 6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6494$as_echo "no" >&6; } 6495fi 6496 6497 if test "x$ac_ct_DSYMUTIL" = x; then 6498 DSYMUTIL=":" 6499 else 6500 case $cross_compiling:$ac_tool_warned in 6501yes:) 6502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6504ac_tool_warned=yes ;; 6505esac 6506 DSYMUTIL=$ac_ct_DSYMUTIL 6507 fi 6508else 6509 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6510fi 6511 6512 if test -n "$ac_tool_prefix"; then 6513 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6514set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6516$as_echo_n "checking for $ac_word... " >&6; } 6517if ${ac_cv_prog_NMEDIT+:} false; then : 6518 $as_echo_n "(cached) " >&6 6519else 6520 if test -n "$NMEDIT"; then 6521 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6522else 6523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6524for as_dir in $PATH 6525do 6526 IFS=$as_save_IFS 6527 test -z "$as_dir" && as_dir=. 6528 for ac_exec_ext in '' $ac_executable_extensions; do 6529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6530 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6532 break 2 6533 fi 6534done 6535 done 6536IFS=$as_save_IFS 6537 6538fi 6539fi 6540NMEDIT=$ac_cv_prog_NMEDIT 6541if test -n "$NMEDIT"; then 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6543$as_echo "$NMEDIT" >&6; } 6544else 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6546$as_echo "no" >&6; } 6547fi 6548 6549 6550fi 6551if test -z "$ac_cv_prog_NMEDIT"; then 6552 ac_ct_NMEDIT=$NMEDIT 6553 # Extract the first word of "nmedit", so it can be a program name with args. 6554set dummy nmedit; ac_word=$2 6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6556$as_echo_n "checking for $ac_word... " >&6; } 6557if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6558 $as_echo_n "(cached) " >&6 6559else 6560 if test -n "$ac_ct_NMEDIT"; then 6561 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6562else 6563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6564for as_dir in $PATH 6565do 6566 IFS=$as_save_IFS 6567 test -z "$as_dir" && as_dir=. 6568 for ac_exec_ext in '' $ac_executable_extensions; do 6569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6570 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6572 break 2 6573 fi 6574done 6575 done 6576IFS=$as_save_IFS 6577 6578fi 6579fi 6580ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6581if test -n "$ac_ct_NMEDIT"; then 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6583$as_echo "$ac_ct_NMEDIT" >&6; } 6584else 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6586$as_echo "no" >&6; } 6587fi 6588 6589 if test "x$ac_ct_NMEDIT" = x; then 6590 NMEDIT=":" 6591 else 6592 case $cross_compiling:$ac_tool_warned in 6593yes:) 6594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6596ac_tool_warned=yes ;; 6597esac 6598 NMEDIT=$ac_ct_NMEDIT 6599 fi 6600else 6601 NMEDIT="$ac_cv_prog_NMEDIT" 6602fi 6603 6604 if test -n "$ac_tool_prefix"; then 6605 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6606set dummy ${ac_tool_prefix}lipo; ac_word=$2 6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6608$as_echo_n "checking for $ac_word... " >&6; } 6609if ${ac_cv_prog_LIPO+:} false; then : 6610 $as_echo_n "(cached) " >&6 6611else 6612 if test -n "$LIPO"; then 6613 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6614else 6615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6616for as_dir in $PATH 6617do 6618 IFS=$as_save_IFS 6619 test -z "$as_dir" && as_dir=. 6620 for ac_exec_ext in '' $ac_executable_extensions; do 6621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6622 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6624 break 2 6625 fi 6626done 6627 done 6628IFS=$as_save_IFS 6629 6630fi 6631fi 6632LIPO=$ac_cv_prog_LIPO 6633if test -n "$LIPO"; then 6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6635$as_echo "$LIPO" >&6; } 6636else 6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6638$as_echo "no" >&6; } 6639fi 6640 6641 6642fi 6643if test -z "$ac_cv_prog_LIPO"; then 6644 ac_ct_LIPO=$LIPO 6645 # Extract the first word of "lipo", so it can be a program name with args. 6646set dummy lipo; ac_word=$2 6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6648$as_echo_n "checking for $ac_word... " >&6; } 6649if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6650 $as_echo_n "(cached) " >&6 6651else 6652 if test -n "$ac_ct_LIPO"; then 6653 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6654else 6655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6656for as_dir in $PATH 6657do 6658 IFS=$as_save_IFS 6659 test -z "$as_dir" && as_dir=. 6660 for ac_exec_ext in '' $ac_executable_extensions; do 6661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6662 ac_cv_prog_ac_ct_LIPO="lipo" 6663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6664 break 2 6665 fi 6666done 6667 done 6668IFS=$as_save_IFS 6669 6670fi 6671fi 6672ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6673if test -n "$ac_ct_LIPO"; then 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6675$as_echo "$ac_ct_LIPO" >&6; } 6676else 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6678$as_echo "no" >&6; } 6679fi 6680 6681 if test "x$ac_ct_LIPO" = x; then 6682 LIPO=":" 6683 else 6684 case $cross_compiling:$ac_tool_warned in 6685yes:) 6686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6688ac_tool_warned=yes ;; 6689esac 6690 LIPO=$ac_ct_LIPO 6691 fi 6692else 6693 LIPO="$ac_cv_prog_LIPO" 6694fi 6695 6696 if test -n "$ac_tool_prefix"; then 6697 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6698set dummy ${ac_tool_prefix}otool; ac_word=$2 6699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6700$as_echo_n "checking for $ac_word... " >&6; } 6701if ${ac_cv_prog_OTOOL+:} false; then : 6702 $as_echo_n "(cached) " >&6 6703else 6704 if test -n "$OTOOL"; then 6705 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6706else 6707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6708for as_dir in $PATH 6709do 6710 IFS=$as_save_IFS 6711 test -z "$as_dir" && as_dir=. 6712 for ac_exec_ext in '' $ac_executable_extensions; do 6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6714 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6716 break 2 6717 fi 6718done 6719 done 6720IFS=$as_save_IFS 6721 6722fi 6723fi 6724OTOOL=$ac_cv_prog_OTOOL 6725if test -n "$OTOOL"; then 6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6727$as_echo "$OTOOL" >&6; } 6728else 6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6730$as_echo "no" >&6; } 6731fi 6732 6733 6734fi 6735if test -z "$ac_cv_prog_OTOOL"; then 6736 ac_ct_OTOOL=$OTOOL 6737 # Extract the first word of "otool", so it can be a program name with args. 6738set dummy otool; ac_word=$2 6739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6740$as_echo_n "checking for $ac_word... " >&6; } 6741if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6742 $as_echo_n "(cached) " >&6 6743else 6744 if test -n "$ac_ct_OTOOL"; then 6745 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6746else 6747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6748for as_dir in $PATH 6749do 6750 IFS=$as_save_IFS 6751 test -z "$as_dir" && as_dir=. 6752 for ac_exec_ext in '' $ac_executable_extensions; do 6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6754 ac_cv_prog_ac_ct_OTOOL="otool" 6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6756 break 2 6757 fi 6758done 6759 done 6760IFS=$as_save_IFS 6761 6762fi 6763fi 6764ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6765if test -n "$ac_ct_OTOOL"; then 6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6767$as_echo "$ac_ct_OTOOL" >&6; } 6768else 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6770$as_echo "no" >&6; } 6771fi 6772 6773 if test "x$ac_ct_OTOOL" = x; then 6774 OTOOL=":" 6775 else 6776 case $cross_compiling:$ac_tool_warned in 6777yes:) 6778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6780ac_tool_warned=yes ;; 6781esac 6782 OTOOL=$ac_ct_OTOOL 6783 fi 6784else 6785 OTOOL="$ac_cv_prog_OTOOL" 6786fi 6787 6788 if test -n "$ac_tool_prefix"; then 6789 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6790set dummy ${ac_tool_prefix}otool64; ac_word=$2 6791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6792$as_echo_n "checking for $ac_word... " >&6; } 6793if ${ac_cv_prog_OTOOL64+:} false; then : 6794 $as_echo_n "(cached) " >&6 6795else 6796 if test -n "$OTOOL64"; then 6797 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6798else 6799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6800for as_dir in $PATH 6801do 6802 IFS=$as_save_IFS 6803 test -z "$as_dir" && as_dir=. 6804 for ac_exec_ext in '' $ac_executable_extensions; do 6805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6806 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6808 break 2 6809 fi 6810done 6811 done 6812IFS=$as_save_IFS 6813 6814fi 6815fi 6816OTOOL64=$ac_cv_prog_OTOOL64 6817if test -n "$OTOOL64"; then 6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6819$as_echo "$OTOOL64" >&6; } 6820else 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6822$as_echo "no" >&6; } 6823fi 6824 6825 6826fi 6827if test -z "$ac_cv_prog_OTOOL64"; then 6828 ac_ct_OTOOL64=$OTOOL64 6829 # Extract the first word of "otool64", so it can be a program name with args. 6830set dummy otool64; ac_word=$2 6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6832$as_echo_n "checking for $ac_word... " >&6; } 6833if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6834 $as_echo_n "(cached) " >&6 6835else 6836 if test -n "$ac_ct_OTOOL64"; then 6837 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6838else 6839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6840for as_dir in $PATH 6841do 6842 IFS=$as_save_IFS 6843 test -z "$as_dir" && as_dir=. 6844 for ac_exec_ext in '' $ac_executable_extensions; do 6845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6846 ac_cv_prog_ac_ct_OTOOL64="otool64" 6847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6848 break 2 6849 fi 6850done 6851 done 6852IFS=$as_save_IFS 6853 6854fi 6855fi 6856ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6857if test -n "$ac_ct_OTOOL64"; then 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6859$as_echo "$ac_ct_OTOOL64" >&6; } 6860else 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6862$as_echo "no" >&6; } 6863fi 6864 6865 if test "x$ac_ct_OTOOL64" = x; then 6866 OTOOL64=":" 6867 else 6868 case $cross_compiling:$ac_tool_warned in 6869yes:) 6870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6872ac_tool_warned=yes ;; 6873esac 6874 OTOOL64=$ac_ct_OTOOL64 6875 fi 6876else 6877 OTOOL64="$ac_cv_prog_OTOOL64" 6878fi 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6907$as_echo_n "checking for -single_module linker flag... " >&6; } 6908if ${lt_cv_apple_cc_single_mod+:} false; then : 6909 $as_echo_n "(cached) " >&6 6910else 6911 lt_cv_apple_cc_single_mod=no 6912 if test -z "${LT_MULTI_MODULE}"; then 6913 # By default we will add the -single_module flag. You can override 6914 # by either setting the environment variable LT_MULTI_MODULE 6915 # non-empty at configure time, or by adding -multi_module to the 6916 # link flags. 6917 rm -rf libconftest.dylib* 6918 echo "int foo(void){return 1;}" > conftest.c 6919 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6920-dynamiclib -Wl,-single_module conftest.c" >&5 6921 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6922 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6923 _lt_result=$? 6924 # If there is a non-empty error log, and "single_module" 6925 # appears in it, assume the flag caused a linker warning 6926 if test -s conftest.err && $GREP single_module conftest.err; then 6927 cat conftest.err >&5 6928 # Otherwise, if the output was created with a 0 exit code from 6929 # the compiler, it worked. 6930 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 6931 lt_cv_apple_cc_single_mod=yes 6932 else 6933 cat conftest.err >&5 6934 fi 6935 rm -rf libconftest.dylib* 6936 rm -f conftest.* 6937 fi 6938fi 6939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6940$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6941 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6943$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6944if ${lt_cv_ld_exported_symbols_list+:} false; then : 6945 $as_echo_n "(cached) " >&6 6946else 6947 lt_cv_ld_exported_symbols_list=no 6948 save_LDFLAGS=$LDFLAGS 6949 echo "_main" > conftest.sym 6950 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6952/* end confdefs.h. */ 6953 6954int 6955main () 6956{ 6957 6958 ; 6959 return 0; 6960} 6961_ACEOF 6962if ac_fn_c_try_link "$LINENO"; then : 6963 lt_cv_ld_exported_symbols_list=yes 6964else 6965 lt_cv_ld_exported_symbols_list=no 6966fi 6967rm -f core conftest.err conftest.$ac_objext \ 6968 conftest$ac_exeext conftest.$ac_ext 6969 LDFLAGS="$save_LDFLAGS" 6970 6971fi 6972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6973$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6974 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6976$as_echo_n "checking for -force_load linker flag... " >&6; } 6977if ${lt_cv_ld_force_load+:} false; then : 6978 $as_echo_n "(cached) " >&6 6979else 6980 lt_cv_ld_force_load=no 6981 cat > conftest.c << _LT_EOF 6982int forced_loaded() { return 2;} 6983_LT_EOF 6984 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6985 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6986 echo "$AR cru libconftest.a conftest.o" >&5 6987 $AR cru libconftest.a conftest.o 2>&5 6988 echo "$RANLIB libconftest.a" >&5 6989 $RANLIB libconftest.a 2>&5 6990 cat > conftest.c << _LT_EOF 6991int main() { return 0;} 6992_LT_EOF 6993 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6994 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6995 _lt_result=$? 6996 if test -s conftest.err && $GREP force_load conftest.err; then 6997 cat conftest.err >&5 6998 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 6999 lt_cv_ld_force_load=yes 7000 else 7001 cat conftest.err >&5 7002 fi 7003 rm -f conftest.err libconftest.a conftest conftest.c 7004 rm -rf conftest.dSYM 7005 7006fi 7007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7008$as_echo "$lt_cv_ld_force_load" >&6; } 7009 case $host_os in 7010 rhapsody* | darwin1.[012]) 7011 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7012 darwin1.*) 7013 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7014 darwin*) # darwin 5.x on 7015 # if running on 10.5 or later, the deployment target defaults 7016 # to the OS version, if on x86, and 10.4, the deployment 7017 # target defaults to 10.4. Don't you love it? 7018 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7019 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7020 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7021 10.[012]*) 7022 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7023 10.*) 7024 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7025 esac 7026 ;; 7027 esac 7028 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7029 _lt_dar_single_mod='$single_module' 7030 fi 7031 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7032 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7033 else 7034 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7035 fi 7036 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7037 _lt_dsymutil='~$DSYMUTIL $lib || :' 7038 else 7039 _lt_dsymutil= 7040 fi 7041 ;; 7042 esac 7043 7044ac_ext=c 7045ac_cpp='$CPP $CPPFLAGS' 7046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7048ac_compiler_gnu=$ac_cv_c_compiler_gnu 7049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7050$as_echo_n "checking how to run the C preprocessor... " >&6; } 7051# On Suns, sometimes $CPP names a directory. 7052if test -n "$CPP" && test -d "$CPP"; then 7053 CPP= 7054fi 7055if test -z "$CPP"; then 7056 if ${ac_cv_prog_CPP+:} false; then : 7057 $as_echo_n "(cached) " >&6 7058else 7059 # Double quotes because CPP needs to be expanded 7060 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7061 do 7062 ac_preproc_ok=false 7063for ac_c_preproc_warn_flag in '' yes 7064do 7065 # Use a header file that comes with gcc, so configuring glibc 7066 # with a fresh cross-compiler works. 7067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7068 # <limits.h> exists even on freestanding compilers. 7069 # On the NeXT, cc -E runs the code through the compiler's parser, 7070 # not just through cpp. "Syntax error" is here to catch this case. 7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7072/* end confdefs.h. */ 7073#ifdef __STDC__ 7074# include <limits.h> 7075#else 7076# include <assert.h> 7077#endif 7078 Syntax error 7079_ACEOF 7080if ac_fn_c_try_cpp "$LINENO"; then : 7081 7082else 7083 # Broken: fails on valid input. 7084continue 7085fi 7086rm -f conftest.err conftest.i conftest.$ac_ext 7087 7088 # OK, works on sane cases. Now check whether nonexistent headers 7089 # can be detected and how. 7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7091/* end confdefs.h. */ 7092#include <ac_nonexistent.h> 7093_ACEOF 7094if ac_fn_c_try_cpp "$LINENO"; then : 7095 # Broken: success on invalid input. 7096continue 7097else 7098 # Passes both tests. 7099ac_preproc_ok=: 7100break 7101fi 7102rm -f conftest.err conftest.i conftest.$ac_ext 7103 7104done 7105# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7106rm -f conftest.i conftest.err conftest.$ac_ext 7107if $ac_preproc_ok; then : 7108 break 7109fi 7110 7111 done 7112 ac_cv_prog_CPP=$CPP 7113 7114fi 7115 CPP=$ac_cv_prog_CPP 7116else 7117 ac_cv_prog_CPP=$CPP 7118fi 7119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7120$as_echo "$CPP" >&6; } 7121ac_preproc_ok=false 7122for ac_c_preproc_warn_flag in '' yes 7123do 7124 # Use a header file that comes with gcc, so configuring glibc 7125 # with a fresh cross-compiler works. 7126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7127 # <limits.h> exists even on freestanding compilers. 7128 # On the NeXT, cc -E runs the code through the compiler's parser, 7129 # not just through cpp. "Syntax error" is here to catch this case. 7130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7131/* end confdefs.h. */ 7132#ifdef __STDC__ 7133# include <limits.h> 7134#else 7135# include <assert.h> 7136#endif 7137 Syntax error 7138_ACEOF 7139if ac_fn_c_try_cpp "$LINENO"; then : 7140 7141else 7142 # Broken: fails on valid input. 7143continue 7144fi 7145rm -f conftest.err conftest.i conftest.$ac_ext 7146 7147 # OK, works on sane cases. Now check whether nonexistent headers 7148 # can be detected and how. 7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7150/* end confdefs.h. */ 7151#include <ac_nonexistent.h> 7152_ACEOF 7153if ac_fn_c_try_cpp "$LINENO"; then : 7154 # Broken: success on invalid input. 7155continue 7156else 7157 # Passes both tests. 7158ac_preproc_ok=: 7159break 7160fi 7161rm -f conftest.err conftest.i conftest.$ac_ext 7162 7163done 7164# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7165rm -f conftest.i conftest.err conftest.$ac_ext 7166if $ac_preproc_ok; then : 7167 7168else 7169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7171as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7172See \`config.log' for more details" "$LINENO" 5; } 7173fi 7174 7175ac_ext=c 7176ac_cpp='$CPP $CPPFLAGS' 7177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7179ac_compiler_gnu=$ac_cv_c_compiler_gnu 7180 7181 7182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7183$as_echo_n "checking for ANSI C header files... " >&6; } 7184if ${ac_cv_header_stdc+:} false; then : 7185 $as_echo_n "(cached) " >&6 7186else 7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7188/* end confdefs.h. */ 7189#include <stdlib.h> 7190#include <stdarg.h> 7191#include <string.h> 7192#include <float.h> 7193 7194int 7195main () 7196{ 7197 7198 ; 7199 return 0; 7200} 7201_ACEOF 7202if ac_fn_c_try_compile "$LINENO"; then : 7203 ac_cv_header_stdc=yes 7204else 7205 ac_cv_header_stdc=no 7206fi 7207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7208 7209if test $ac_cv_header_stdc = yes; then 7210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7212/* end confdefs.h. */ 7213#include <string.h> 7214 7215_ACEOF 7216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7217 $EGREP "memchr" >/dev/null 2>&1; then : 7218 7219else 7220 ac_cv_header_stdc=no 7221fi 7222rm -f conftest* 7223 7224fi 7225 7226if test $ac_cv_header_stdc = yes; then 7227 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7229/* end confdefs.h. */ 7230#include <stdlib.h> 7231 7232_ACEOF 7233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7234 $EGREP "free" >/dev/null 2>&1; then : 7235 7236else 7237 ac_cv_header_stdc=no 7238fi 7239rm -f conftest* 7240 7241fi 7242 7243if test $ac_cv_header_stdc = yes; then 7244 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7245 if test "$cross_compiling" = yes; then : 7246 : 7247else 7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7249/* end confdefs.h. */ 7250#include <ctype.h> 7251#include <stdlib.h> 7252#if ((' ' & 0x0FF) == 0x020) 7253# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7254# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7255#else 7256# define ISLOWER(c) \ 7257 (('a' <= (c) && (c) <= 'i') \ 7258 || ('j' <= (c) && (c) <= 'r') \ 7259 || ('s' <= (c) && (c) <= 'z')) 7260# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7261#endif 7262 7263#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7264int 7265main () 7266{ 7267 int i; 7268 for (i = 0; i < 256; i++) 7269 if (XOR (islower (i), ISLOWER (i)) 7270 || toupper (i) != TOUPPER (i)) 7271 return 2; 7272 return 0; 7273} 7274_ACEOF 7275if ac_fn_c_try_run "$LINENO"; then : 7276 7277else 7278 ac_cv_header_stdc=no 7279fi 7280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7281 conftest.$ac_objext conftest.beam conftest.$ac_ext 7282fi 7283 7284fi 7285fi 7286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7287$as_echo "$ac_cv_header_stdc" >&6; } 7288if test $ac_cv_header_stdc = yes; then 7289 7290$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7291 7292fi 7293 7294# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7295for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7296 inttypes.h stdint.h unistd.h 7297do : 7298 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7299ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7300" 7301if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7302 cat >>confdefs.h <<_ACEOF 7303#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7304_ACEOF 7305 7306fi 7307 7308done 7309 7310 7311for ac_header in dlfcn.h 7312do : 7313 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7314" 7315if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7316 cat >>confdefs.h <<_ACEOF 7317#define HAVE_DLFCN_H 1 7318_ACEOF 7319 7320fi 7321 7322done 7323 7324 7325 7326 7327 7328# Set options 7329 7330 7331 7332 enable_dlopen=no 7333 7334 7335 enable_win32_dll=no 7336 7337 7338 # Check whether --enable-shared was given. 7339if test "${enable_shared+set}" = set; then : 7340 enableval=$enable_shared; p=${PACKAGE-default} 7341 case $enableval in 7342 yes) enable_shared=yes ;; 7343 no) enable_shared=no ;; 7344 *) 7345 enable_shared=no 7346 # Look at the argument we got. We use all the common list separators. 7347 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7348 for pkg in $enableval; do 7349 IFS="$lt_save_ifs" 7350 if test "X$pkg" = "X$p"; then 7351 enable_shared=yes 7352 fi 7353 done 7354 IFS="$lt_save_ifs" 7355 ;; 7356 esac 7357else 7358 enable_shared=yes 7359fi 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 # Check whether --enable-static was given. 7370if test "${enable_static+set}" = set; then : 7371 enableval=$enable_static; p=${PACKAGE-default} 7372 case $enableval in 7373 yes) enable_static=yes ;; 7374 no) enable_static=no ;; 7375 *) 7376 enable_static=no 7377 # Look at the argument we got. We use all the common list separators. 7378 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7379 for pkg in $enableval; do 7380 IFS="$lt_save_ifs" 7381 if test "X$pkg" = "X$p"; then 7382 enable_static=yes 7383 fi 7384 done 7385 IFS="$lt_save_ifs" 7386 ;; 7387 esac 7388else 7389 enable_static=yes 7390fi 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401# Check whether --with-pic was given. 7402if test "${with_pic+set}" = set; then : 7403 withval=$with_pic; lt_p=${PACKAGE-default} 7404 case $withval in 7405 yes|no) pic_mode=$withval ;; 7406 *) 7407 pic_mode=default 7408 # Look at the argument we got. We use all the common list separators. 7409 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7410 for lt_pkg in $withval; do 7411 IFS="$lt_save_ifs" 7412 if test "X$lt_pkg" = "X$lt_p"; then 7413 pic_mode=yes 7414 fi 7415 done 7416 IFS="$lt_save_ifs" 7417 ;; 7418 esac 7419else 7420 pic_mode=default 7421fi 7422 7423 7424test -z "$pic_mode" && pic_mode=default 7425 7426 7427 7428 7429 7430 7431 7432 # Check whether --enable-fast-install was given. 7433if test "${enable_fast_install+set}" = set; then : 7434 enableval=$enable_fast_install; p=${PACKAGE-default} 7435 case $enableval in 7436 yes) enable_fast_install=yes ;; 7437 no) enable_fast_install=no ;; 7438 *) 7439 enable_fast_install=no 7440 # Look at the argument we got. We use all the common list separators. 7441 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7442 for pkg in $enableval; do 7443 IFS="$lt_save_ifs" 7444 if test "X$pkg" = "X$p"; then 7445 enable_fast_install=yes 7446 fi 7447 done 7448 IFS="$lt_save_ifs" 7449 ;; 7450 esac 7451else 7452 enable_fast_install=yes 7453fi 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465# This can be used to rebuild libtool when needed 7466LIBTOOL_DEPS="$ltmain" 7467 7468# Always use our own libtool. 7469LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500test -z "$LN_S" && LN_S="ln -s" 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515if test -n "${ZSH_VERSION+set}" ; then 7516 setopt NO_GLOB_SUBST 7517fi 7518 7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7520$as_echo_n "checking for objdir... " >&6; } 7521if ${lt_cv_objdir+:} false; then : 7522 $as_echo_n "(cached) " >&6 7523else 7524 rm -f .libs 2>/dev/null 7525mkdir .libs 2>/dev/null 7526if test -d .libs; then 7527 lt_cv_objdir=.libs 7528else 7529 # MS-DOS does not allow filenames that begin with a dot. 7530 lt_cv_objdir=_libs 7531fi 7532rmdir .libs 2>/dev/null 7533fi 7534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7535$as_echo "$lt_cv_objdir" >&6; } 7536objdir=$lt_cv_objdir 7537 7538 7539 7540 7541 7542cat >>confdefs.h <<_ACEOF 7543#define LT_OBJDIR "$lt_cv_objdir/" 7544_ACEOF 7545 7546 7547 7548 7549case $host_os in 7550aix3*) 7551 # AIX sometimes has problems with the GCC collect2 program. For some 7552 # reason, if we set the COLLECT_NAMES environment variable, the problems 7553 # vanish in a puff of smoke. 7554 if test "X${COLLECT_NAMES+set}" != Xset; then 7555 COLLECT_NAMES= 7556 export COLLECT_NAMES 7557 fi 7558 ;; 7559esac 7560 7561# Global variables: 7562ofile=libtool 7563can_build_shared=yes 7564 7565# All known linkers require a `.a' archive for static linking (except MSVC, 7566# which needs '.lib'). 7567libext=a 7568 7569with_gnu_ld="$lt_cv_prog_gnu_ld" 7570 7571old_CC="$CC" 7572old_CFLAGS="$CFLAGS" 7573 7574# Set sane defaults for various variables 7575test -z "$CC" && CC=cc 7576test -z "$LTCC" && LTCC=$CC 7577test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7578test -z "$LD" && LD=ld 7579test -z "$ac_objext" && ac_objext=o 7580 7581for cc_temp in $compiler""; do 7582 case $cc_temp in 7583 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7584 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7585 \-*) ;; 7586 *) break;; 7587 esac 7588done 7589cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7590 7591 7592# Only perform the check for file, if the check method requires it 7593test -z "$MAGIC_CMD" && MAGIC_CMD=file 7594case $deplibs_check_method in 7595file_magic*) 7596 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7598$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7599if ${lt_cv_path_MAGIC_CMD+:} false; then : 7600 $as_echo_n "(cached) " >&6 7601else 7602 case $MAGIC_CMD in 7603[\\/*] | ?:[\\/]*) 7604 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7605 ;; 7606*) 7607 lt_save_MAGIC_CMD="$MAGIC_CMD" 7608 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7609 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7610 for ac_dir in $ac_dummy; do 7611 IFS="$lt_save_ifs" 7612 test -z "$ac_dir" && ac_dir=. 7613 if test -f $ac_dir/${ac_tool_prefix}file; then 7614 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7615 if test -n "$file_magic_test_file"; then 7616 case $deplibs_check_method in 7617 "file_magic "*) 7618 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7619 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7620 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7621 $EGREP "$file_magic_regex" > /dev/null; then 7622 : 7623 else 7624 cat <<_LT_EOF 1>&2 7625 7626*** Warning: the command libtool uses to detect shared libraries, 7627*** $file_magic_cmd, produces output that libtool cannot recognize. 7628*** The result is that libtool may fail to recognize shared libraries 7629*** as such. This will affect the creation of libtool libraries that 7630*** depend on shared libraries, but programs linked with such libtool 7631*** libraries will work regardless of this problem. Nevertheless, you 7632*** may want to report the problem to your system manager and/or to 7633*** bug-libtool@gnu.org 7634 7635_LT_EOF 7636 fi ;; 7637 esac 7638 fi 7639 break 7640 fi 7641 done 7642 IFS="$lt_save_ifs" 7643 MAGIC_CMD="$lt_save_MAGIC_CMD" 7644 ;; 7645esac 7646fi 7647 7648MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7649if test -n "$MAGIC_CMD"; then 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7651$as_echo "$MAGIC_CMD" >&6; } 7652else 7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7654$as_echo "no" >&6; } 7655fi 7656 7657 7658 7659 7660 7661if test -z "$lt_cv_path_MAGIC_CMD"; then 7662 if test -n "$ac_tool_prefix"; then 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7664$as_echo_n "checking for file... " >&6; } 7665if ${lt_cv_path_MAGIC_CMD+:} false; then : 7666 $as_echo_n "(cached) " >&6 7667else 7668 case $MAGIC_CMD in 7669[\\/*] | ?:[\\/]*) 7670 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7671 ;; 7672*) 7673 lt_save_MAGIC_CMD="$MAGIC_CMD" 7674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7675 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7676 for ac_dir in $ac_dummy; do 7677 IFS="$lt_save_ifs" 7678 test -z "$ac_dir" && ac_dir=. 7679 if test -f $ac_dir/file; then 7680 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7681 if test -n "$file_magic_test_file"; then 7682 case $deplibs_check_method in 7683 "file_magic "*) 7684 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7685 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7686 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7687 $EGREP "$file_magic_regex" > /dev/null; then 7688 : 7689 else 7690 cat <<_LT_EOF 1>&2 7691 7692*** Warning: the command libtool uses to detect shared libraries, 7693*** $file_magic_cmd, produces output that libtool cannot recognize. 7694*** The result is that libtool may fail to recognize shared libraries 7695*** as such. This will affect the creation of libtool libraries that 7696*** depend on shared libraries, but programs linked with such libtool 7697*** libraries will work regardless of this problem. Nevertheless, you 7698*** may want to report the problem to your system manager and/or to 7699*** bug-libtool@gnu.org 7700 7701_LT_EOF 7702 fi ;; 7703 esac 7704 fi 7705 break 7706 fi 7707 done 7708 IFS="$lt_save_ifs" 7709 MAGIC_CMD="$lt_save_MAGIC_CMD" 7710 ;; 7711esac 7712fi 7713 7714MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7715if test -n "$MAGIC_CMD"; then 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7717$as_echo "$MAGIC_CMD" >&6; } 7718else 7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7720$as_echo "no" >&6; } 7721fi 7722 7723 7724 else 7725 MAGIC_CMD=: 7726 fi 7727fi 7728 7729 fi 7730 ;; 7731esac 7732 7733# Use C for the default configuration in the libtool script 7734 7735lt_save_CC="$CC" 7736ac_ext=c 7737ac_cpp='$CPP $CPPFLAGS' 7738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7740ac_compiler_gnu=$ac_cv_c_compiler_gnu 7741 7742 7743# Source file extension for C test sources. 7744ac_ext=c 7745 7746# Object file extension for compiled C test sources. 7747objext=o 7748objext=$objext 7749 7750# Code to be used in simple compile tests 7751lt_simple_compile_test_code="int some_variable = 0;" 7752 7753# Code to be used in simple link tests 7754lt_simple_link_test_code='int main(){return(0);}' 7755 7756 7757 7758 7759 7760 7761 7762# If no C compiler was specified, use CC. 7763LTCC=${LTCC-"$CC"} 7764 7765# If no C compiler flags were specified, use CFLAGS. 7766LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7767 7768# Allow CC to be a program name with arguments. 7769compiler=$CC 7770 7771# Save the default compiler, since it gets overwritten when the other 7772# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7773compiler_DEFAULT=$CC 7774 7775# save warnings/boilerplate of simple test code 7776ac_outfile=conftest.$ac_objext 7777echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7778eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7779_lt_compiler_boilerplate=`cat conftest.err` 7780$RM conftest* 7781 7782ac_outfile=conftest.$ac_objext 7783echo "$lt_simple_link_test_code" >conftest.$ac_ext 7784eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7785_lt_linker_boilerplate=`cat conftest.err` 7786$RM -r conftest* 7787 7788 7789if test -n "$compiler"; then 7790 7791lt_prog_compiler_no_builtin_flag= 7792 7793if test "$GCC" = yes; then 7794 case $cc_basename in 7795 nvcc*) 7796 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7797 *) 7798 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7799 esac 7800 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7802$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7803if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7804 $as_echo_n "(cached) " >&6 7805else 7806 lt_cv_prog_compiler_rtti_exceptions=no 7807 ac_outfile=conftest.$ac_objext 7808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7809 lt_compiler_flag="-fno-rtti -fno-exceptions" 7810 # Insert the option either (1) after the last *FLAGS variable, or 7811 # (2) before a word containing "conftest.", or (3) at the end. 7812 # Note that $ac_compile itself does not contain backslashes and begins 7813 # with a dollar sign (not a hyphen), so the echo should work correctly. 7814 # The option is referenced via a variable to avoid confusing sed. 7815 lt_compile=`echo "$ac_compile" | $SED \ 7816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7818 -e 's:$: $lt_compiler_flag:'` 7819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7820 (eval "$lt_compile" 2>conftest.err) 7821 ac_status=$? 7822 cat conftest.err >&5 7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7824 if (exit $ac_status) && test -s "$ac_outfile"; then 7825 # The compiler can only warn and ignore the option if not recognized 7826 # So say no if there are warnings other than the usual output. 7827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7829 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7830 lt_cv_prog_compiler_rtti_exceptions=yes 7831 fi 7832 fi 7833 $RM conftest* 7834 7835fi 7836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7837$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7838 7839if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7840 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7841else 7842 : 7843fi 7844 7845fi 7846 7847 7848 7849 7850 7851 7852 lt_prog_compiler_wl= 7853lt_prog_compiler_pic= 7854lt_prog_compiler_static= 7855 7856 7857 if test "$GCC" = yes; then 7858 lt_prog_compiler_wl='-Wl,' 7859 lt_prog_compiler_static='-static' 7860 7861 case $host_os in 7862 aix*) 7863 # All AIX code is PIC. 7864 if test "$host_cpu" = ia64; then 7865 # AIX 5 now supports IA64 processor 7866 lt_prog_compiler_static='-Bstatic' 7867 fi 7868 ;; 7869 7870 amigaos*) 7871 case $host_cpu in 7872 powerpc) 7873 # see comment about AmigaOS4 .so support 7874 lt_prog_compiler_pic='-fPIC' 7875 ;; 7876 m68k) 7877 # FIXME: we need at least 68020 code to build shared libraries, but 7878 # adding the `-m68020' flag to GCC prevents building anything better, 7879 # like `-m68040'. 7880 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7881 ;; 7882 esac 7883 ;; 7884 7885 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7886 # PIC is the default for these OSes. 7887 ;; 7888 7889 mingw* | cygwin* | pw32* | os2* | cegcc*) 7890 # This hack is so that the source file can tell whether it is being 7891 # built for inclusion in a dll (and should export symbols for example). 7892 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7893 # (--disable-auto-import) libraries 7894 lt_prog_compiler_pic='-DDLL_EXPORT' 7895 ;; 7896 7897 darwin* | rhapsody*) 7898 # PIC is the default on this platform 7899 # Common symbols not allowed in MH_DYLIB files 7900 lt_prog_compiler_pic='-fno-common' 7901 ;; 7902 7903 haiku*) 7904 # PIC is the default for Haiku. 7905 # The "-static" flag exists, but is broken. 7906 lt_prog_compiler_static= 7907 ;; 7908 7909 hpux*) 7910 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7911 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7912 # sets the default TLS model and affects inlining. 7913 case $host_cpu in 7914 hppa*64*) 7915 # +Z the default 7916 ;; 7917 *) 7918 lt_prog_compiler_pic='-fPIC' 7919 ;; 7920 esac 7921 ;; 7922 7923 interix[3-9]*) 7924 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7925 # Instead, we relocate shared libraries at runtime. 7926 ;; 7927 7928 msdosdjgpp*) 7929 # Just because we use GCC doesn't mean we suddenly get shared libraries 7930 # on systems that don't support them. 7931 lt_prog_compiler_can_build_shared=no 7932 enable_shared=no 7933 ;; 7934 7935 *nto* | *qnx*) 7936 # QNX uses GNU C++, but need to define -shared option too, otherwise 7937 # it will coredump. 7938 lt_prog_compiler_pic='-fPIC -shared' 7939 ;; 7940 7941 sysv4*MP*) 7942 if test -d /usr/nec; then 7943 lt_prog_compiler_pic=-Kconform_pic 7944 fi 7945 ;; 7946 7947 *) 7948 lt_prog_compiler_pic='-fPIC' 7949 ;; 7950 esac 7951 7952 case $cc_basename in 7953 nvcc*) # Cuda Compiler Driver 2.2 7954 lt_prog_compiler_wl='-Xlinker ' 7955 if test -n "$lt_prog_compiler_pic"; then 7956 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 7957 fi 7958 ;; 7959 esac 7960 else 7961 # PORTME Check for flag to pass linker flags through the system compiler. 7962 case $host_os in 7963 aix*) 7964 lt_prog_compiler_wl='-Wl,' 7965 if test "$host_cpu" = ia64; then 7966 # AIX 5 now supports IA64 processor 7967 lt_prog_compiler_static='-Bstatic' 7968 else 7969 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7970 fi 7971 ;; 7972 7973 mingw* | cygwin* | pw32* | os2* | cegcc*) 7974 # This hack is so that the source file can tell whether it is being 7975 # built for inclusion in a dll (and should export symbols for example). 7976 lt_prog_compiler_pic='-DDLL_EXPORT' 7977 ;; 7978 7979 hpux9* | hpux10* | hpux11*) 7980 lt_prog_compiler_wl='-Wl,' 7981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7982 # not for PA HP-UX. 7983 case $host_cpu in 7984 hppa*64*|ia64*) 7985 # +Z the default 7986 ;; 7987 *) 7988 lt_prog_compiler_pic='+Z' 7989 ;; 7990 esac 7991 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7992 lt_prog_compiler_static='${wl}-a ${wl}archive' 7993 ;; 7994 7995 irix5* | irix6* | nonstopux*) 7996 lt_prog_compiler_wl='-Wl,' 7997 # PIC (with -KPIC) is the default. 7998 lt_prog_compiler_static='-non_shared' 7999 ;; 8000 8001 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8002 case $cc_basename in 8003 # old Intel for x86_64 which still supported -KPIC. 8004 ecc*) 8005 lt_prog_compiler_wl='-Wl,' 8006 lt_prog_compiler_pic='-KPIC' 8007 lt_prog_compiler_static='-static' 8008 ;; 8009 # icc used to be incompatible with GCC. 8010 # ICC 10 doesn't accept -KPIC any more. 8011 icc* | ifort*) 8012 lt_prog_compiler_wl='-Wl,' 8013 lt_prog_compiler_pic='-fPIC' 8014 lt_prog_compiler_static='-static' 8015 ;; 8016 # Lahey Fortran 8.1. 8017 lf95*) 8018 lt_prog_compiler_wl='-Wl,' 8019 lt_prog_compiler_pic='--shared' 8020 lt_prog_compiler_static='--static' 8021 ;; 8022 nagfor*) 8023 # NAG Fortran compiler 8024 lt_prog_compiler_wl='-Wl,-Wl,,' 8025 lt_prog_compiler_pic='-PIC' 8026 lt_prog_compiler_static='-Bstatic' 8027 ;; 8028 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8029 # Portland Group compilers (*not* the Pentium gcc compiler, 8030 # which looks to be a dead project) 8031 lt_prog_compiler_wl='-Wl,' 8032 lt_prog_compiler_pic='-fpic' 8033 lt_prog_compiler_static='-Bstatic' 8034 ;; 8035 ccc*) 8036 lt_prog_compiler_wl='-Wl,' 8037 # All Alpha code is PIC. 8038 lt_prog_compiler_static='-non_shared' 8039 ;; 8040 xl* | bgxl* | bgf* | mpixl*) 8041 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8042 lt_prog_compiler_wl='-Wl,' 8043 lt_prog_compiler_pic='-qpic' 8044 lt_prog_compiler_static='-qstaticlink' 8045 ;; 8046 *) 8047 case `$CC -V 2>&1 | sed 5q` in 8048 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8049 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8050 lt_prog_compiler_pic='-KPIC' 8051 lt_prog_compiler_static='-Bstatic' 8052 lt_prog_compiler_wl='' 8053 ;; 8054 *Sun\ F* | *Sun*Fortran*) 8055 lt_prog_compiler_pic='-KPIC' 8056 lt_prog_compiler_static='-Bstatic' 8057 lt_prog_compiler_wl='-Qoption ld ' 8058 ;; 8059 *Sun\ C*) 8060 # Sun C 5.9 8061 lt_prog_compiler_pic='-KPIC' 8062 lt_prog_compiler_static='-Bstatic' 8063 lt_prog_compiler_wl='-Wl,' 8064 ;; 8065 *Intel*\ [CF]*Compiler*) 8066 lt_prog_compiler_wl='-Wl,' 8067 lt_prog_compiler_pic='-fPIC' 8068 lt_prog_compiler_static='-static' 8069 ;; 8070 *Portland\ Group*) 8071 lt_prog_compiler_wl='-Wl,' 8072 lt_prog_compiler_pic='-fpic' 8073 lt_prog_compiler_static='-Bstatic' 8074 ;; 8075 esac 8076 ;; 8077 esac 8078 ;; 8079 8080 newsos6) 8081 lt_prog_compiler_pic='-KPIC' 8082 lt_prog_compiler_static='-Bstatic' 8083 ;; 8084 8085 *nto* | *qnx*) 8086 # QNX uses GNU C++, but need to define -shared option too, otherwise 8087 # it will coredump. 8088 lt_prog_compiler_pic='-fPIC -shared' 8089 ;; 8090 8091 osf3* | osf4* | osf5*) 8092 lt_prog_compiler_wl='-Wl,' 8093 # All OSF/1 code is PIC. 8094 lt_prog_compiler_static='-non_shared' 8095 ;; 8096 8097 rdos*) 8098 lt_prog_compiler_static='-non_shared' 8099 ;; 8100 8101 solaris*) 8102 lt_prog_compiler_pic='-KPIC' 8103 lt_prog_compiler_static='-Bstatic' 8104 case $cc_basename in 8105 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8106 lt_prog_compiler_wl='-Qoption ld ';; 8107 *) 8108 lt_prog_compiler_wl='-Wl,';; 8109 esac 8110 ;; 8111 8112 sunos4*) 8113 lt_prog_compiler_wl='-Qoption ld ' 8114 lt_prog_compiler_pic='-PIC' 8115 lt_prog_compiler_static='-Bstatic' 8116 ;; 8117 8118 sysv4 | sysv4.2uw2* | sysv4.3*) 8119 lt_prog_compiler_wl='-Wl,' 8120 lt_prog_compiler_pic='-KPIC' 8121 lt_prog_compiler_static='-Bstatic' 8122 ;; 8123 8124 sysv4*MP*) 8125 if test -d /usr/nec ;then 8126 lt_prog_compiler_pic='-Kconform_pic' 8127 lt_prog_compiler_static='-Bstatic' 8128 fi 8129 ;; 8130 8131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8132 lt_prog_compiler_wl='-Wl,' 8133 lt_prog_compiler_pic='-KPIC' 8134 lt_prog_compiler_static='-Bstatic' 8135 ;; 8136 8137 unicos*) 8138 lt_prog_compiler_wl='-Wl,' 8139 lt_prog_compiler_can_build_shared=no 8140 ;; 8141 8142 uts4*) 8143 lt_prog_compiler_pic='-pic' 8144 lt_prog_compiler_static='-Bstatic' 8145 ;; 8146 8147 *) 8148 lt_prog_compiler_can_build_shared=no 8149 ;; 8150 esac 8151 fi 8152 8153case $host_os in 8154 # For platforms which do not support PIC, -DPIC is meaningless: 8155 *djgpp*) 8156 lt_prog_compiler_pic= 8157 ;; 8158 *) 8159 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8160 ;; 8161esac 8162 8163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8164$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8165if ${lt_cv_prog_compiler_pic+:} false; then : 8166 $as_echo_n "(cached) " >&6 8167else 8168 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8169fi 8170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8171$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8172lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8173 8174# 8175# Check to make sure the PIC flag actually works. 8176# 8177if test -n "$lt_prog_compiler_pic"; then 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8179$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8180if ${lt_cv_prog_compiler_pic_works+:} false; then : 8181 $as_echo_n "(cached) " >&6 8182else 8183 lt_cv_prog_compiler_pic_works=no 8184 ac_outfile=conftest.$ac_objext 8185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8186 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8187 # Insert the option either (1) after the last *FLAGS variable, or 8188 # (2) before a word containing "conftest.", or (3) at the end. 8189 # Note that $ac_compile itself does not contain backslashes and begins 8190 # with a dollar sign (not a hyphen), so the echo should work correctly. 8191 # The option is referenced via a variable to avoid confusing sed. 8192 lt_compile=`echo "$ac_compile" | $SED \ 8193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8195 -e 's:$: $lt_compiler_flag:'` 8196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8197 (eval "$lt_compile" 2>conftest.err) 8198 ac_status=$? 8199 cat conftest.err >&5 8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8201 if (exit $ac_status) && test -s "$ac_outfile"; then 8202 # The compiler can only warn and ignore the option if not recognized 8203 # So say no if there are warnings other than the usual output. 8204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8207 lt_cv_prog_compiler_pic_works=yes 8208 fi 8209 fi 8210 $RM conftest* 8211 8212fi 8213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8214$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8215 8216if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8217 case $lt_prog_compiler_pic in 8218 "" | " "*) ;; 8219 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8220 esac 8221else 8222 lt_prog_compiler_pic= 8223 lt_prog_compiler_can_build_shared=no 8224fi 8225 8226fi 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238# 8239# Check to make sure the static flag actually works. 8240# 8241wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8243$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8244if ${lt_cv_prog_compiler_static_works+:} false; then : 8245 $as_echo_n "(cached) " >&6 8246else 8247 lt_cv_prog_compiler_static_works=no 8248 save_LDFLAGS="$LDFLAGS" 8249 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8250 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8251 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8252 # The linker can only warn and ignore the option if not recognized 8253 # So say no if there are warnings 8254 if test -s conftest.err; then 8255 # Append any errors to the config.log. 8256 cat conftest.err 1>&5 8257 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8259 if diff conftest.exp conftest.er2 >/dev/null; then 8260 lt_cv_prog_compiler_static_works=yes 8261 fi 8262 else 8263 lt_cv_prog_compiler_static_works=yes 8264 fi 8265 fi 8266 $RM -r conftest* 8267 LDFLAGS="$save_LDFLAGS" 8268 8269fi 8270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8271$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8272 8273if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8274 : 8275else 8276 lt_prog_compiler_static= 8277fi 8278 8279 8280 8281 8282 8283 8284 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8286$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8287if ${lt_cv_prog_compiler_c_o+:} false; then : 8288 $as_echo_n "(cached) " >&6 8289else 8290 lt_cv_prog_compiler_c_o=no 8291 $RM -r conftest 2>/dev/null 8292 mkdir conftest 8293 cd conftest 8294 mkdir out 8295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8296 8297 lt_compiler_flag="-o out/conftest2.$ac_objext" 8298 # Insert the option either (1) after the last *FLAGS variable, or 8299 # (2) before a word containing "conftest.", or (3) at the end. 8300 # Note that $ac_compile itself does not contain backslashes and begins 8301 # with a dollar sign (not a hyphen), so the echo should work correctly. 8302 lt_compile=`echo "$ac_compile" | $SED \ 8303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8305 -e 's:$: $lt_compiler_flag:'` 8306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8307 (eval "$lt_compile" 2>out/conftest.err) 8308 ac_status=$? 8309 cat out/conftest.err >&5 8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8311 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8312 then 8313 # The compiler can only warn and ignore the option if not recognized 8314 # So say no if there are warnings 8315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8318 lt_cv_prog_compiler_c_o=yes 8319 fi 8320 fi 8321 chmod u+w . 2>&5 8322 $RM conftest* 8323 # SGI C++ compiler will create directory out/ii_files/ for 8324 # template instantiation 8325 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8326 $RM out/* && rmdir out 8327 cd .. 8328 $RM -r conftest 8329 $RM conftest* 8330 8331fi 8332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8333$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8334 8335 8336 8337 8338 8339 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8341$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8342if ${lt_cv_prog_compiler_c_o+:} false; then : 8343 $as_echo_n "(cached) " >&6 8344else 8345 lt_cv_prog_compiler_c_o=no 8346 $RM -r conftest 2>/dev/null 8347 mkdir conftest 8348 cd conftest 8349 mkdir out 8350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8351 8352 lt_compiler_flag="-o out/conftest2.$ac_objext" 8353 # Insert the option either (1) after the last *FLAGS variable, or 8354 # (2) before a word containing "conftest.", or (3) at the end. 8355 # Note that $ac_compile itself does not contain backslashes and begins 8356 # with a dollar sign (not a hyphen), so the echo should work correctly. 8357 lt_compile=`echo "$ac_compile" | $SED \ 8358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8360 -e 's:$: $lt_compiler_flag:'` 8361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8362 (eval "$lt_compile" 2>out/conftest.err) 8363 ac_status=$? 8364 cat out/conftest.err >&5 8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8366 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8367 then 8368 # The compiler can only warn and ignore the option if not recognized 8369 # So say no if there are warnings 8370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8373 lt_cv_prog_compiler_c_o=yes 8374 fi 8375 fi 8376 chmod u+w . 2>&5 8377 $RM conftest* 8378 # SGI C++ compiler will create directory out/ii_files/ for 8379 # template instantiation 8380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8381 $RM out/* && rmdir out 8382 cd .. 8383 $RM -r conftest 8384 $RM conftest* 8385 8386fi 8387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8388$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8389 8390 8391 8392 8393hard_links="nottested" 8394if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8395 # do not overwrite the value of need_locks provided by the user 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8397$as_echo_n "checking if we can lock with hard links... " >&6; } 8398 hard_links=yes 8399 $RM conftest* 8400 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8401 touch conftest.a 8402 ln conftest.a conftest.b 2>&5 || hard_links=no 8403 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8405$as_echo "$hard_links" >&6; } 8406 if test "$hard_links" = no; then 8407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8408$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8409 need_locks=warn 8410 fi 8411else 8412 need_locks=no 8413fi 8414 8415 8416 8417 8418 8419 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8421$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8422 8423 runpath_var= 8424 allow_undefined_flag= 8425 always_export_symbols=no 8426 archive_cmds= 8427 archive_expsym_cmds= 8428 compiler_needs_object=no 8429 enable_shared_with_static_runtimes=no 8430 export_dynamic_flag_spec= 8431 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8432 hardcode_automatic=no 8433 hardcode_direct=no 8434 hardcode_direct_absolute=no 8435 hardcode_libdir_flag_spec= 8436 hardcode_libdir_separator= 8437 hardcode_minus_L=no 8438 hardcode_shlibpath_var=unsupported 8439 inherit_rpath=no 8440 link_all_deplibs=unknown 8441 module_cmds= 8442 module_expsym_cmds= 8443 old_archive_from_new_cmds= 8444 old_archive_from_expsyms_cmds= 8445 thread_safe_flag_spec= 8446 whole_archive_flag_spec= 8447 # include_expsyms should be a list of space-separated symbols to be *always* 8448 # included in the symbol list 8449 include_expsyms= 8450 # exclude_expsyms can be an extended regexp of symbols to exclude 8451 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8452 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8453 # as well as any symbol that contains `d'. 8454 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8455 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8456 # platforms (ab)use it in PIC code, but their linkers get confused if 8457 # the symbol is explicitly referenced. Since portable code cannot 8458 # rely on this symbol name, it's probably fine to never include it in 8459 # preloaded symbol tables. 8460 # Exclude shared library initialization/finalization symbols. 8461 extract_expsyms_cmds= 8462 8463 case $host_os in 8464 cygwin* | mingw* | pw32* | cegcc*) 8465 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8466 # When not using gcc, we currently assume that we are using 8467 # Microsoft Visual C++. 8468 if test "$GCC" != yes; then 8469 with_gnu_ld=no 8470 fi 8471 ;; 8472 interix*) 8473 # we just hope/assume this is gcc and not c89 (= MSVC++) 8474 with_gnu_ld=yes 8475 ;; 8476 openbsd*) 8477 with_gnu_ld=no 8478 ;; 8479 esac 8480 8481 ld_shlibs=yes 8482 8483 # On some targets, GNU ld is compatible enough with the native linker 8484 # that we're better off using the native interface for both. 8485 lt_use_gnu_ld_interface=no 8486 if test "$with_gnu_ld" = yes; then 8487 case $host_os in 8488 aix*) 8489 # The AIX port of GNU ld has always aspired to compatibility 8490 # with the native linker. However, as the warning in the GNU ld 8491 # block says, versions before 2.19.5* couldn't really create working 8492 # shared libraries, regardless of the interface used. 8493 case `$LD -v 2>&1` in 8494 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8495 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8496 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8497 *) 8498 lt_use_gnu_ld_interface=yes 8499 ;; 8500 esac 8501 ;; 8502 *) 8503 lt_use_gnu_ld_interface=yes 8504 ;; 8505 esac 8506 fi 8507 8508 if test "$lt_use_gnu_ld_interface" = yes; then 8509 # If archive_cmds runs LD, not CC, wlarc should be empty 8510 wlarc='${wl}' 8511 8512 # Set some defaults for GNU ld with shared library support. These 8513 # are reset later if shared libraries are not supported. Putting them 8514 # here allows them to be overridden if necessary. 8515 runpath_var=LD_RUN_PATH 8516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8517 export_dynamic_flag_spec='${wl}--export-dynamic' 8518 # ancient GNU ld didn't support --whole-archive et. al. 8519 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8520 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8521 else 8522 whole_archive_flag_spec= 8523 fi 8524 supports_anon_versioning=no 8525 case `$LD -v 2>&1` in 8526 *GNU\ gold*) supports_anon_versioning=yes ;; 8527 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8528 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8529 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8530 *\ 2.11.*) ;; # other 2.11 versions 8531 *) supports_anon_versioning=yes ;; 8532 esac 8533 8534 # See if GNU ld supports shared libraries. 8535 case $host_os in 8536 aix[3-9]*) 8537 # On AIX/PPC, the GNU linker is very broken 8538 if test "$host_cpu" != ia64; then 8539 ld_shlibs=no 8540 cat <<_LT_EOF 1>&2 8541 8542*** Warning: the GNU linker, at least up to release 2.19, is reported 8543*** to be unable to reliably create shared libraries on AIX. 8544*** Therefore, libtool is disabling shared libraries support. If you 8545*** really care for shared libraries, you may want to install binutils 8546*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8547*** You will then need to restart the configuration process. 8548 8549_LT_EOF 8550 fi 8551 ;; 8552 8553 amigaos*) 8554 case $host_cpu in 8555 powerpc) 8556 # see comment about AmigaOS4 .so support 8557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8558 archive_expsym_cmds='' 8559 ;; 8560 m68k) 8561 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)' 8562 hardcode_libdir_flag_spec='-L$libdir' 8563 hardcode_minus_L=yes 8564 ;; 8565 esac 8566 ;; 8567 8568 beos*) 8569 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8570 allow_undefined_flag=unsupported 8571 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8572 # support --undefined. This deserves some investigation. FIXME 8573 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8574 else 8575 ld_shlibs=no 8576 fi 8577 ;; 8578 8579 cygwin* | mingw* | pw32* | cegcc*) 8580 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8581 # as there is no search path for DLLs. 8582 hardcode_libdir_flag_spec='-L$libdir' 8583 export_dynamic_flag_spec='${wl}--export-all-symbols' 8584 allow_undefined_flag=unsupported 8585 always_export_symbols=no 8586 enable_shared_with_static_runtimes=yes 8587 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' 8588 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8589 8590 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8591 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8592 # If the export-symbols file already is a .def file (1st line 8593 # is EXPORTS), use it as is; otherwise, prepend... 8594 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8595 cp $export_symbols $output_objdir/$soname.def; 8596 else 8597 echo EXPORTS > $output_objdir/$soname.def; 8598 cat $export_symbols >> $output_objdir/$soname.def; 8599 fi~ 8600 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8601 else 8602 ld_shlibs=no 8603 fi 8604 ;; 8605 8606 haiku*) 8607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8608 link_all_deplibs=yes 8609 ;; 8610 8611 interix[3-9]*) 8612 hardcode_direct=no 8613 hardcode_shlibpath_var=no 8614 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8615 export_dynamic_flag_spec='${wl}-E' 8616 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8617 # Instead, shared libraries are loaded at an image base (0x10000000 by 8618 # default) and relocated if they conflict, which is a slow very memory 8619 # consuming and fragmenting process. To avoid this, we pick a random, 8620 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8621 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8622 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8623 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' 8624 ;; 8625 8626 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8627 tmp_diet=no 8628 if test "$host_os" = linux-dietlibc; then 8629 case $cc_basename in 8630 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8631 esac 8632 fi 8633 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8634 && test "$tmp_diet" = no 8635 then 8636 tmp_addflag=' $pic_flag' 8637 tmp_sharedflag='-shared' 8638 case $cc_basename,$host_cpu in 8639 pgcc*) # Portland Group C compiler 8640 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' 8641 tmp_addflag=' $pic_flag' 8642 ;; 8643 pgf77* | pgf90* | pgf95* | pgfortran*) 8644 # Portland Group f77 and f90 compilers 8645 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' 8646 tmp_addflag=' $pic_flag -Mnomain' ;; 8647 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8648 tmp_addflag=' -i_dynamic' ;; 8649 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8650 tmp_addflag=' -i_dynamic -nofor_main' ;; 8651 ifc* | ifort*) # Intel Fortran compiler 8652 tmp_addflag=' -nofor_main' ;; 8653 lf95*) # Lahey Fortran 8.1 8654 whole_archive_flag_spec= 8655 tmp_sharedflag='--shared' ;; 8656 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8657 tmp_sharedflag='-qmkshrobj' 8658 tmp_addflag= ;; 8659 nvcc*) # Cuda Compiler Driver 2.2 8660 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' 8661 compiler_needs_object=yes 8662 ;; 8663 esac 8664 case `$CC -V 2>&1 | sed 5q` in 8665 *Sun\ C*) # Sun C 5.9 8666 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' 8667 compiler_needs_object=yes 8668 tmp_sharedflag='-G' ;; 8669 *Sun\ F*) # Sun Fortran 8.3 8670 tmp_sharedflag='-G' ;; 8671 esac 8672 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8673 8674 if test "x$supports_anon_versioning" = xyes; then 8675 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8676 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8677 echo "local: *; };" >> $output_objdir/$libname.ver~ 8678 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8679 fi 8680 8681 case $cc_basename in 8682 xlf* | bgf* | bgxlf* | mpixlf*) 8683 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8684 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8686 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8687 if test "x$supports_anon_versioning" = xyes; then 8688 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8689 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8690 echo "local: *; };" >> $output_objdir/$libname.ver~ 8691 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8692 fi 8693 ;; 8694 esac 8695 else 8696 ld_shlibs=no 8697 fi 8698 ;; 8699 8700 netbsd*) 8701 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8702 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8703 wlarc= 8704 else 8705 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8706 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8707 fi 8708 ;; 8709 8710 solaris*) 8711 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8712 ld_shlibs=no 8713 cat <<_LT_EOF 1>&2 8714 8715*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8716*** create shared libraries on Solaris systems. Therefore, libtool 8717*** is disabling shared libraries support. We urge you to upgrade GNU 8718*** binutils to release 2.9.1 or newer. Another option is to modify 8719*** your PATH or compiler configuration so that the native linker is 8720*** used, and then restart. 8721 8722_LT_EOF 8723 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8725 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8726 else 8727 ld_shlibs=no 8728 fi 8729 ;; 8730 8731 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8732 case `$LD -v 2>&1` in 8733 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8734 ld_shlibs=no 8735 cat <<_LT_EOF 1>&2 8736 8737*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8738*** reliably create shared libraries on SCO systems. Therefore, libtool 8739*** is disabling shared libraries support. We urge you to upgrade GNU 8740*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8741*** your PATH or compiler configuration so that the native linker is 8742*** used, and then restart. 8743 8744_LT_EOF 8745 ;; 8746 *) 8747 # For security reasons, it is highly recommended that you always 8748 # use absolute paths for naming shared libraries, and exclude the 8749 # DT_RUNPATH tag from executables and libraries. But doing so 8750 # requires that you compile everything twice, which is a pain. 8751 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8754 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8755 else 8756 ld_shlibs=no 8757 fi 8758 ;; 8759 esac 8760 ;; 8761 8762 sunos4*) 8763 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8764 wlarc= 8765 hardcode_direct=yes 8766 hardcode_shlibpath_var=no 8767 ;; 8768 8769 *) 8770 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8771 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8772 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8773 else 8774 ld_shlibs=no 8775 fi 8776 ;; 8777 esac 8778 8779 if test "$ld_shlibs" = no; then 8780 runpath_var= 8781 hardcode_libdir_flag_spec= 8782 export_dynamic_flag_spec= 8783 whole_archive_flag_spec= 8784 fi 8785 else 8786 # PORTME fill in a description of your system's linker (not GNU ld) 8787 case $host_os in 8788 aix3*) 8789 allow_undefined_flag=unsupported 8790 always_export_symbols=yes 8791 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' 8792 # Note: this linker hardcodes the directories in LIBPATH if there 8793 # are no directories specified by -L. 8794 hardcode_minus_L=yes 8795 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8796 # Neither direct hardcoding nor static linking is supported with a 8797 # broken collect2. 8798 hardcode_direct=unsupported 8799 fi 8800 ;; 8801 8802 aix[4-9]*) 8803 if test "$host_cpu" = ia64; then 8804 # On IA64, the linker does run time linking by default, so we don't 8805 # have to do anything special. 8806 aix_use_runtimelinking=no 8807 exp_sym_flag='-Bexport' 8808 no_entry_flag="" 8809 else 8810 # If we're using GNU nm, then we don't want the "-C" option. 8811 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8812 # Also, AIX nm treats weak defined symbols like other global 8813 # defined symbols, whereas GNU nm marks them as "W". 8814 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8815 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' 8816 else 8817 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' 8818 fi 8819 aix_use_runtimelinking=no 8820 8821 # Test if we are trying to use run time linking or normal 8822 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8823 # need to do runtime linking. 8824 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8825 for ld_flag in $LDFLAGS; do 8826 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8827 aix_use_runtimelinking=yes 8828 break 8829 fi 8830 done 8831 ;; 8832 esac 8833 8834 exp_sym_flag='-bexport' 8835 no_entry_flag='-bnoentry' 8836 fi 8837 8838 # When large executables or shared objects are built, AIX ld can 8839 # have problems creating the table of contents. If linking a library 8840 # or program results in "error TOC overflow" add -mminimal-toc to 8841 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8842 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8843 8844 archive_cmds='' 8845 hardcode_direct=yes 8846 hardcode_direct_absolute=yes 8847 hardcode_libdir_separator=':' 8848 link_all_deplibs=yes 8849 file_list_spec='${wl}-f,' 8850 8851 if test "$GCC" = yes; then 8852 case $host_os in aix4.[012]|aix4.[012].*) 8853 # We only want to do this on AIX 4.2 and lower, the check 8854 # below for broken collect2 doesn't work under 4.3+ 8855 collect2name=`${CC} -print-prog-name=collect2` 8856 if test -f "$collect2name" && 8857 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8858 then 8859 # We have reworked collect2 8860 : 8861 else 8862 # We have old collect2 8863 hardcode_direct=unsupported 8864 # It fails to find uninstalled libraries when the uninstalled 8865 # path is not listed in the libpath. Setting hardcode_minus_L 8866 # to unsupported forces relinking 8867 hardcode_minus_L=yes 8868 hardcode_libdir_flag_spec='-L$libdir' 8869 hardcode_libdir_separator= 8870 fi 8871 ;; 8872 esac 8873 shared_flag='-shared' 8874 if test "$aix_use_runtimelinking" = yes; then 8875 shared_flag="$shared_flag "'${wl}-G' 8876 fi 8877 else 8878 # not using gcc 8879 if test "$host_cpu" = ia64; then 8880 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8881 # chokes on -Wl,-G. The following line is correct: 8882 shared_flag='-G' 8883 else 8884 if test "$aix_use_runtimelinking" = yes; then 8885 shared_flag='${wl}-G' 8886 else 8887 shared_flag='${wl}-bM:SRE' 8888 fi 8889 fi 8890 fi 8891 8892 export_dynamic_flag_spec='${wl}-bexpall' 8893 # It seems that -bexpall does not export symbols beginning with 8894 # underscore (_), so it is better to generate a list of symbols to export. 8895 always_export_symbols=yes 8896 if test "$aix_use_runtimelinking" = yes; then 8897 # Warning - without using the other runtime loading flags (-brtl), 8898 # -berok will link without error, but may produce a broken library. 8899 allow_undefined_flag='-berok' 8900 # Determine the default libpath from the value encoded in an 8901 # empty executable. 8902 if test "${lt_cv_aix_libpath+set}" = set; then 8903 aix_libpath=$lt_cv_aix_libpath 8904else 8905 if ${lt_cv_aix_libpath_+:} false; then : 8906 $as_echo_n "(cached) " >&6 8907else 8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8909/* end confdefs.h. */ 8910 8911int 8912main () 8913{ 8914 8915 ; 8916 return 0; 8917} 8918_ACEOF 8919if ac_fn_c_try_link "$LINENO"; then : 8920 8921 lt_aix_libpath_sed=' 8922 /Import File Strings/,/^$/ { 8923 /^0/ { 8924 s/^0 *\([^ ]*\) *$/\1/ 8925 p 8926 } 8927 }' 8928 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8929 # Check for a 64-bit object if we didn't find anything. 8930 if test -z "$lt_cv_aix_libpath_"; then 8931 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8932 fi 8933fi 8934rm -f core conftest.err conftest.$ac_objext \ 8935 conftest$ac_exeext conftest.$ac_ext 8936 if test -z "$lt_cv_aix_libpath_"; then 8937 lt_cv_aix_libpath_="/usr/lib:/lib" 8938 fi 8939 8940fi 8941 8942 aix_libpath=$lt_cv_aix_libpath_ 8943fi 8944 8945 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8946 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" 8947 else 8948 if test "$host_cpu" = ia64; then 8949 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8950 allow_undefined_flag="-z nodefs" 8951 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" 8952 else 8953 # Determine the default libpath from the value encoded in an 8954 # empty executable. 8955 if test "${lt_cv_aix_libpath+set}" = set; then 8956 aix_libpath=$lt_cv_aix_libpath 8957else 8958 if ${lt_cv_aix_libpath_+:} false; then : 8959 $as_echo_n "(cached) " >&6 8960else 8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8962/* end confdefs.h. */ 8963 8964int 8965main () 8966{ 8967 8968 ; 8969 return 0; 8970} 8971_ACEOF 8972if ac_fn_c_try_link "$LINENO"; then : 8973 8974 lt_aix_libpath_sed=' 8975 /Import File Strings/,/^$/ { 8976 /^0/ { 8977 s/^0 *\([^ ]*\) *$/\1/ 8978 p 8979 } 8980 }' 8981 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8982 # Check for a 64-bit object if we didn't find anything. 8983 if test -z "$lt_cv_aix_libpath_"; then 8984 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8985 fi 8986fi 8987rm -f core conftest.err conftest.$ac_objext \ 8988 conftest$ac_exeext conftest.$ac_ext 8989 if test -z "$lt_cv_aix_libpath_"; then 8990 lt_cv_aix_libpath_="/usr/lib:/lib" 8991 fi 8992 8993fi 8994 8995 aix_libpath=$lt_cv_aix_libpath_ 8996fi 8997 8998 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8999 # Warning - without using the other run time loading flags, 9000 # -berok will link without error, but may produce a broken library. 9001 no_undefined_flag=' ${wl}-bernotok' 9002 allow_undefined_flag=' ${wl}-berok' 9003 if test "$with_gnu_ld" = yes; then 9004 # We only use this code for GNU lds that support --whole-archive. 9005 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9006 else 9007 # Exported symbols can be pulled into shared objects from archives 9008 whole_archive_flag_spec='$convenience' 9009 fi 9010 archive_cmds_need_lc=yes 9011 # This is similar to how AIX traditionally builds its shared libraries. 9012 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' 9013 fi 9014 fi 9015 ;; 9016 9017 amigaos*) 9018 case $host_cpu in 9019 powerpc) 9020 # see comment about AmigaOS4 .so support 9021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9022 archive_expsym_cmds='' 9023 ;; 9024 m68k) 9025 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)' 9026 hardcode_libdir_flag_spec='-L$libdir' 9027 hardcode_minus_L=yes 9028 ;; 9029 esac 9030 ;; 9031 9032 bsdi[45]*) 9033 export_dynamic_flag_spec=-rdynamic 9034 ;; 9035 9036 cygwin* | mingw* | pw32* | cegcc*) 9037 # When not using gcc, we currently assume that we are using 9038 # Microsoft Visual C++. 9039 # hardcode_libdir_flag_spec is actually meaningless, as there is 9040 # no search path for DLLs. 9041 case $cc_basename in 9042 cl*) 9043 # Native MSVC 9044 hardcode_libdir_flag_spec=' ' 9045 allow_undefined_flag=unsupported 9046 always_export_symbols=yes 9047 file_list_spec='@' 9048 # Tell ltmain to make .lib files, not .a files. 9049 libext=lib 9050 # Tell ltmain to make .dll files, not .so files. 9051 shrext_cmds=".dll" 9052 # FIXME: Setting linknames here is a bad hack. 9053 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9054 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9055 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9056 else 9057 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9058 fi~ 9059 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9060 linknames=' 9061 # The linker will not automatically build a static lib if we build a DLL. 9062 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9063 enable_shared_with_static_runtimes=yes 9064 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9065 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9066 # Don't use ranlib 9067 old_postinstall_cmds='chmod 644 $oldlib' 9068 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9069 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9070 case $lt_outputfile in 9071 *.exe|*.EXE) ;; 9072 *) 9073 lt_outputfile="$lt_outputfile.exe" 9074 lt_tool_outputfile="$lt_tool_outputfile.exe" 9075 ;; 9076 esac~ 9077 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9078 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9079 $RM "$lt_outputfile.manifest"; 9080 fi' 9081 ;; 9082 *) 9083 # Assume MSVC wrapper 9084 hardcode_libdir_flag_spec=' ' 9085 allow_undefined_flag=unsupported 9086 # Tell ltmain to make .lib files, not .a files. 9087 libext=lib 9088 # Tell ltmain to make .dll files, not .so files. 9089 shrext_cmds=".dll" 9090 # FIXME: Setting linknames here is a bad hack. 9091 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9092 # The linker will automatically build a .lib file if we build a DLL. 9093 old_archive_from_new_cmds='true' 9094 # FIXME: Should let the user specify the lib program. 9095 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9096 enable_shared_with_static_runtimes=yes 9097 ;; 9098 esac 9099 ;; 9100 9101 darwin* | rhapsody*) 9102 9103 9104 archive_cmds_need_lc=no 9105 hardcode_direct=no 9106 hardcode_automatic=yes 9107 hardcode_shlibpath_var=unsupported 9108 if test "$lt_cv_ld_force_load" = "yes"; then 9109 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\"`' 9110 9111 else 9112 whole_archive_flag_spec='' 9113 fi 9114 link_all_deplibs=yes 9115 allow_undefined_flag="$_lt_dar_allow_undefined" 9116 case $cc_basename in 9117 ifort*) _lt_dar_can_shared=yes ;; 9118 *) _lt_dar_can_shared=$GCC ;; 9119 esac 9120 if test "$_lt_dar_can_shared" = "yes"; then 9121 output_verbose_link_cmd=func_echo_all 9122 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9123 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9124 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}" 9125 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}" 9126 9127 else 9128 ld_shlibs=no 9129 fi 9130 9131 ;; 9132 9133 dgux*) 9134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9135 hardcode_libdir_flag_spec='-L$libdir' 9136 hardcode_shlibpath_var=no 9137 ;; 9138 9139 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9140 # support. Future versions do this automatically, but an explicit c++rt0.o 9141 # does not break anything, and helps significantly (at the cost of a little 9142 # extra space). 9143 freebsd2.2*) 9144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9145 hardcode_libdir_flag_spec='-R$libdir' 9146 hardcode_direct=yes 9147 hardcode_shlibpath_var=no 9148 ;; 9149 9150 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9151 freebsd2.*) 9152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9153 hardcode_direct=yes 9154 hardcode_minus_L=yes 9155 hardcode_shlibpath_var=no 9156 ;; 9157 9158 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9159 freebsd* | dragonfly*) 9160 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9161 hardcode_libdir_flag_spec='-R$libdir' 9162 hardcode_direct=yes 9163 hardcode_shlibpath_var=no 9164 ;; 9165 9166 hpux9*) 9167 if test "$GCC" = yes; then 9168 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' 9169 else 9170 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' 9171 fi 9172 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9173 hardcode_libdir_separator=: 9174 hardcode_direct=yes 9175 9176 # hardcode_minus_L: Not really in the search PATH, 9177 # but as the default location of the library. 9178 hardcode_minus_L=yes 9179 export_dynamic_flag_spec='${wl}-E' 9180 ;; 9181 9182 hpux10*) 9183 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9184 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9185 else 9186 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9187 fi 9188 if test "$with_gnu_ld" = no; then 9189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9190 hardcode_libdir_separator=: 9191 hardcode_direct=yes 9192 hardcode_direct_absolute=yes 9193 export_dynamic_flag_spec='${wl}-E' 9194 # hardcode_minus_L: Not really in the search PATH, 9195 # but as the default location of the library. 9196 hardcode_minus_L=yes 9197 fi 9198 ;; 9199 9200 hpux11*) 9201 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9202 case $host_cpu in 9203 hppa*64*) 9204 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9205 ;; 9206 ia64*) 9207 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9208 ;; 9209 *) 9210 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9211 ;; 9212 esac 9213 else 9214 case $host_cpu in 9215 hppa*64*) 9216 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9217 ;; 9218 ia64*) 9219 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9220 ;; 9221 *) 9222 9223 # Older versions of the 11.00 compiler do not understand -b yet 9224 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9226$as_echo_n "checking if $CC understands -b... " >&6; } 9227if ${lt_cv_prog_compiler__b+:} false; then : 9228 $as_echo_n "(cached) " >&6 9229else 9230 lt_cv_prog_compiler__b=no 9231 save_LDFLAGS="$LDFLAGS" 9232 LDFLAGS="$LDFLAGS -b" 9233 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9234 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9235 # The linker can only warn and ignore the option if not recognized 9236 # So say no if there are warnings 9237 if test -s conftest.err; then 9238 # Append any errors to the config.log. 9239 cat conftest.err 1>&5 9240 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9241 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9242 if diff conftest.exp conftest.er2 >/dev/null; then 9243 lt_cv_prog_compiler__b=yes 9244 fi 9245 else 9246 lt_cv_prog_compiler__b=yes 9247 fi 9248 fi 9249 $RM -r conftest* 9250 LDFLAGS="$save_LDFLAGS" 9251 9252fi 9253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9254$as_echo "$lt_cv_prog_compiler__b" >&6; } 9255 9256if test x"$lt_cv_prog_compiler__b" = xyes; then 9257 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9258else 9259 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9260fi 9261 9262 ;; 9263 esac 9264 fi 9265 if test "$with_gnu_ld" = no; then 9266 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9267 hardcode_libdir_separator=: 9268 9269 case $host_cpu in 9270 hppa*64*|ia64*) 9271 hardcode_direct=no 9272 hardcode_shlibpath_var=no 9273 ;; 9274 *) 9275 hardcode_direct=yes 9276 hardcode_direct_absolute=yes 9277 export_dynamic_flag_spec='${wl}-E' 9278 9279 # hardcode_minus_L: Not really in the search PATH, 9280 # but as the default location of the library. 9281 hardcode_minus_L=yes 9282 ;; 9283 esac 9284 fi 9285 ;; 9286 9287 irix5* | irix6* | nonstopux*) 9288 if test "$GCC" = yes; then 9289 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' 9290 # Try to use the -exported_symbol ld option, if it does not 9291 # work, assume that -exports_file does not work either and 9292 # implicitly export all symbols. 9293 # This should be the same for all languages, so no per-tag cache variable. 9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9295$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9296if ${lt_cv_irix_exported_symbol+:} false; then : 9297 $as_echo_n "(cached) " >&6 9298else 9299 save_LDFLAGS="$LDFLAGS" 9300 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9302/* end confdefs.h. */ 9303int foo (void) { return 0; } 9304_ACEOF 9305if ac_fn_c_try_link "$LINENO"; then : 9306 lt_cv_irix_exported_symbol=yes 9307else 9308 lt_cv_irix_exported_symbol=no 9309fi 9310rm -f core conftest.err conftest.$ac_objext \ 9311 conftest$ac_exeext conftest.$ac_ext 9312 LDFLAGS="$save_LDFLAGS" 9313fi 9314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9315$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9316 if test "$lt_cv_irix_exported_symbol" = yes; then 9317 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' 9318 fi 9319 else 9320 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' 9321 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' 9322 fi 9323 archive_cmds_need_lc='no' 9324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9325 hardcode_libdir_separator=: 9326 inherit_rpath=yes 9327 link_all_deplibs=yes 9328 ;; 9329 9330 netbsd*) 9331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9333 else 9334 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9335 fi 9336 hardcode_libdir_flag_spec='-R$libdir' 9337 hardcode_direct=yes 9338 hardcode_shlibpath_var=no 9339 ;; 9340 9341 newsos6) 9342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9343 hardcode_direct=yes 9344 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9345 hardcode_libdir_separator=: 9346 hardcode_shlibpath_var=no 9347 ;; 9348 9349 *nto* | *qnx*) 9350 ;; 9351 9352 openbsd*) 9353 if test -f /usr/libexec/ld.so; then 9354 hardcode_direct=yes 9355 hardcode_shlibpath_var=no 9356 hardcode_direct_absolute=yes 9357 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9358 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9359 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9360 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9361 export_dynamic_flag_spec='${wl}-E' 9362 else 9363 case $host_os in 9364 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9365 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9366 hardcode_libdir_flag_spec='-R$libdir' 9367 ;; 9368 *) 9369 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9370 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9371 ;; 9372 esac 9373 fi 9374 else 9375 ld_shlibs=no 9376 fi 9377 ;; 9378 9379 os2*) 9380 hardcode_libdir_flag_spec='-L$libdir' 9381 hardcode_minus_L=yes 9382 allow_undefined_flag=unsupported 9383 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' 9384 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9385 ;; 9386 9387 osf3*) 9388 if test "$GCC" = yes; then 9389 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9390 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' 9391 else 9392 allow_undefined_flag=' -expect_unresolved \*' 9393 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' 9394 fi 9395 archive_cmds_need_lc='no' 9396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9397 hardcode_libdir_separator=: 9398 ;; 9399 9400 osf4* | osf5*) # as osf3* with the addition of -msym flag 9401 if test "$GCC" = yes; then 9402 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9403 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' 9404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9405 else 9406 allow_undefined_flag=' -expect_unresolved \*' 9407 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' 9408 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~ 9409 $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' 9410 9411 # Both c and cxx compiler support -rpath directly 9412 hardcode_libdir_flag_spec='-rpath $libdir' 9413 fi 9414 archive_cmds_need_lc='no' 9415 hardcode_libdir_separator=: 9416 ;; 9417 9418 solaris*) 9419 no_undefined_flag=' -z defs' 9420 if test "$GCC" = yes; then 9421 wlarc='${wl}' 9422 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9423 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9424 $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' 9425 else 9426 case `$CC -V 2>&1` in 9427 *"Compilers 5.0"*) 9428 wlarc='' 9429 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9430 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9431 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9432 ;; 9433 *) 9434 wlarc='${wl}' 9435 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9436 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9437 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9438 ;; 9439 esac 9440 fi 9441 hardcode_libdir_flag_spec='-R$libdir' 9442 hardcode_shlibpath_var=no 9443 case $host_os in 9444 solaris2.[0-5] | solaris2.[0-5].*) ;; 9445 *) 9446 # The compiler driver will combine and reorder linker options, 9447 # but understands `-z linker_flag'. GCC discards it without `$wl', 9448 # but is careful enough not to reorder. 9449 # Supported since Solaris 2.6 (maybe 2.5.1?) 9450 if test "$GCC" = yes; then 9451 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9452 else 9453 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9454 fi 9455 ;; 9456 esac 9457 link_all_deplibs=yes 9458 ;; 9459 9460 sunos4*) 9461 if test "x$host_vendor" = xsequent; then 9462 # Use $CC to link under sequent, because it throws in some extra .o 9463 # files that make .init and .fini sections work. 9464 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9465 else 9466 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9467 fi 9468 hardcode_libdir_flag_spec='-L$libdir' 9469 hardcode_direct=yes 9470 hardcode_minus_L=yes 9471 hardcode_shlibpath_var=no 9472 ;; 9473 9474 sysv4) 9475 case $host_vendor in 9476 sni) 9477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9478 hardcode_direct=yes # is this really true??? 9479 ;; 9480 siemens) 9481 ## LD is ld it makes a PLAMLIB 9482 ## CC just makes a GrossModule. 9483 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9484 reload_cmds='$CC -r -o $output$reload_objs' 9485 hardcode_direct=no 9486 ;; 9487 motorola) 9488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9489 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9490 ;; 9491 esac 9492 runpath_var='LD_RUN_PATH' 9493 hardcode_shlibpath_var=no 9494 ;; 9495 9496 sysv4.3*) 9497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9498 hardcode_shlibpath_var=no 9499 export_dynamic_flag_spec='-Bexport' 9500 ;; 9501 9502 sysv4*MP*) 9503 if test -d /usr/nec; then 9504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9505 hardcode_shlibpath_var=no 9506 runpath_var=LD_RUN_PATH 9507 hardcode_runpath_var=yes 9508 ld_shlibs=yes 9509 fi 9510 ;; 9511 9512 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9513 no_undefined_flag='${wl}-z,text' 9514 archive_cmds_need_lc=no 9515 hardcode_shlibpath_var=no 9516 runpath_var='LD_RUN_PATH' 9517 9518 if test "$GCC" = yes; then 9519 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9520 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9521 else 9522 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9523 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9524 fi 9525 ;; 9526 9527 sysv5* | sco3.2v5* | sco5v6*) 9528 # Note: We can NOT use -z defs as we might desire, because we do not 9529 # link with -lc, and that would cause any symbols used from libc to 9530 # always be unresolved, which means just about no library would 9531 # ever link correctly. If we're not using GNU ld we use -z text 9532 # though, which does catch some bad symbols but isn't as heavy-handed 9533 # as -z defs. 9534 no_undefined_flag='${wl}-z,text' 9535 allow_undefined_flag='${wl}-z,nodefs' 9536 archive_cmds_need_lc=no 9537 hardcode_shlibpath_var=no 9538 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9539 hardcode_libdir_separator=':' 9540 link_all_deplibs=yes 9541 export_dynamic_flag_spec='${wl}-Bexport' 9542 runpath_var='LD_RUN_PATH' 9543 9544 if test "$GCC" = yes; then 9545 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9546 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9547 else 9548 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9549 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9550 fi 9551 ;; 9552 9553 uts4*) 9554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9555 hardcode_libdir_flag_spec='-L$libdir' 9556 hardcode_shlibpath_var=no 9557 ;; 9558 9559 *) 9560 ld_shlibs=no 9561 ;; 9562 esac 9563 9564 if test x$host_vendor = xsni; then 9565 case $host in 9566 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9567 export_dynamic_flag_spec='${wl}-Blargedynsym' 9568 ;; 9569 esac 9570 fi 9571 fi 9572 9573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9574$as_echo "$ld_shlibs" >&6; } 9575test "$ld_shlibs" = no && can_build_shared=no 9576 9577with_gnu_ld=$with_gnu_ld 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593# 9594# Do we need to explicitly link libc? 9595# 9596case "x$archive_cmds_need_lc" in 9597x|xyes) 9598 # Assume -lc should be added 9599 archive_cmds_need_lc=yes 9600 9601 if test "$enable_shared" = yes && test "$GCC" = yes; then 9602 case $archive_cmds in 9603 *'~'*) 9604 # FIXME: we may have to deal with multi-command sequences. 9605 ;; 9606 '$CC '*) 9607 # Test whether the compiler implicitly links with -lc since on some 9608 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9609 # to ld, don't add -lc before -lgcc. 9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9611$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9612if ${lt_cv_archive_cmds_need_lc+:} false; then : 9613 $as_echo_n "(cached) " >&6 9614else 9615 $RM conftest* 9616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9617 9618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9619 (eval $ac_compile) 2>&5 9620 ac_status=$? 9621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9622 test $ac_status = 0; } 2>conftest.err; then 9623 soname=conftest 9624 lib=conftest 9625 libobjs=conftest.$ac_objext 9626 deplibs= 9627 wl=$lt_prog_compiler_wl 9628 pic_flag=$lt_prog_compiler_pic 9629 compiler_flags=-v 9630 linker_flags=-v 9631 verstring= 9632 output_objdir=. 9633 libname=conftest 9634 lt_save_allow_undefined_flag=$allow_undefined_flag 9635 allow_undefined_flag= 9636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9637 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9638 ac_status=$? 9639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9640 test $ac_status = 0; } 9641 then 9642 lt_cv_archive_cmds_need_lc=no 9643 else 9644 lt_cv_archive_cmds_need_lc=yes 9645 fi 9646 allow_undefined_flag=$lt_save_allow_undefined_flag 9647 else 9648 cat conftest.err 1>&5 9649 fi 9650 $RM conftest* 9651 9652fi 9653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9654$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9655 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9656 ;; 9657 esac 9658 fi 9659 ;; 9660esac 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9814$as_echo_n "checking dynamic linker characteristics... " >&6; } 9815 9816if test "$GCC" = yes; then 9817 case $host_os in 9818 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9819 *) lt_awk_arg="/^libraries:/" ;; 9820 esac 9821 case $host_os in 9822 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9823 *) lt_sed_strip_eq="s,=/,/,g" ;; 9824 esac 9825 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9826 case $lt_search_path_spec in 9827 *\;*) 9828 # if the path contains ";" then we assume it to be the separator 9829 # otherwise default to the standard path separator (i.e. ":") - it is 9830 # assumed that no part of a normal pathname contains ";" but that should 9831 # okay in the real world where ";" in dirpaths is itself problematic. 9832 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9833 ;; 9834 *) 9835 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9836 ;; 9837 esac 9838 # Ok, now we have the path, separated by spaces, we can step through it 9839 # and add multilib dir if necessary. 9840 lt_tmp_lt_search_path_spec= 9841 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9842 for lt_sys_path in $lt_search_path_spec; do 9843 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9844 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9845 else 9846 test -d "$lt_sys_path" && \ 9847 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9848 fi 9849 done 9850 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9851BEGIN {RS=" "; FS="/|\n";} { 9852 lt_foo=""; 9853 lt_count=0; 9854 for (lt_i = NF; lt_i > 0; lt_i--) { 9855 if ($lt_i != "" && $lt_i != ".") { 9856 if ($lt_i == "..") { 9857 lt_count++; 9858 } else { 9859 if (lt_count == 0) { 9860 lt_foo="/" $lt_i lt_foo; 9861 } else { 9862 lt_count--; 9863 } 9864 } 9865 } 9866 } 9867 if (lt_foo != "") { lt_freq[lt_foo]++; } 9868 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9869}'` 9870 # AWK program above erroneously prepends '/' to C:/dos/paths 9871 # for these hosts. 9872 case $host_os in 9873 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9874 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9875 esac 9876 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9877else 9878 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9879fi 9880library_names_spec= 9881libname_spec='lib$name' 9882soname_spec= 9883shrext_cmds=".so" 9884postinstall_cmds= 9885postuninstall_cmds= 9886finish_cmds= 9887finish_eval= 9888shlibpath_var= 9889shlibpath_overrides_runpath=unknown 9890version_type=none 9891dynamic_linker="$host_os ld.so" 9892sys_lib_dlsearch_path_spec="/lib /usr/lib" 9893need_lib_prefix=unknown 9894hardcode_into_libs=no 9895 9896# when you set need_version to no, make sure it does not cause -set_version 9897# flags to be left without arguments 9898need_version=unknown 9899 9900case $host_os in 9901aix3*) 9902 version_type=linux # correct to gnu/linux during the next big refactor 9903 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9904 shlibpath_var=LIBPATH 9905 9906 # AIX 3 has no versioning support, so we append a major version to the name. 9907 soname_spec='${libname}${release}${shared_ext}$major' 9908 ;; 9909 9910aix[4-9]*) 9911 version_type=linux # correct to gnu/linux during the next big refactor 9912 need_lib_prefix=no 9913 need_version=no 9914 hardcode_into_libs=yes 9915 if test "$host_cpu" = ia64; then 9916 # AIX 5 supports IA64 9917 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9918 shlibpath_var=LD_LIBRARY_PATH 9919 else 9920 # With GCC up to 2.95.x, collect2 would create an import file 9921 # for dependence libraries. The import file would start with 9922 # the line `#! .'. This would cause the generated library to 9923 # depend on `.', always an invalid library. This was fixed in 9924 # development snapshots of GCC prior to 3.0. 9925 case $host_os in 9926 aix4 | aix4.[01] | aix4.[01].*) 9927 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9928 echo ' yes ' 9929 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9930 : 9931 else 9932 can_build_shared=no 9933 fi 9934 ;; 9935 esac 9936 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9937 # soname into executable. Probably we can add versioning support to 9938 # collect2, so additional links can be useful in future. 9939 if test "$aix_use_runtimelinking" = yes; then 9940 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9941 # instead of lib<name>.a to let people know that these are not 9942 # typical AIX shared libraries. 9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9944 else 9945 # We preserve .a as extension for shared libraries through AIX4.2 9946 # and later when we are not doing run time linking. 9947 library_names_spec='${libname}${release}.a $libname.a' 9948 soname_spec='${libname}${release}${shared_ext}$major' 9949 fi 9950 shlibpath_var=LIBPATH 9951 fi 9952 ;; 9953 9954amigaos*) 9955 case $host_cpu in 9956 powerpc) 9957 # Since July 2007 AmigaOS4 officially supports .so libraries. 9958 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9960 ;; 9961 m68k) 9962 library_names_spec='$libname.ixlibrary $libname.a' 9963 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9964 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' 9965 ;; 9966 esac 9967 ;; 9968 9969beos*) 9970 library_names_spec='${libname}${shared_ext}' 9971 dynamic_linker="$host_os ld.so" 9972 shlibpath_var=LIBRARY_PATH 9973 ;; 9974 9975bsdi[45]*) 9976 version_type=linux # correct to gnu/linux during the next big refactor 9977 need_version=no 9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9979 soname_spec='${libname}${release}${shared_ext}$major' 9980 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9981 shlibpath_var=LD_LIBRARY_PATH 9982 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9983 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9984 # the default ld.so.conf also contains /usr/contrib/lib and 9985 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9986 # libtool to hard-code these into programs 9987 ;; 9988 9989cygwin* | mingw* | pw32* | cegcc*) 9990 version_type=windows 9991 shrext_cmds=".dll" 9992 need_version=no 9993 need_lib_prefix=no 9994 9995 case $GCC,$cc_basename in 9996 yes,*) 9997 # gcc 9998 library_names_spec='$libname.dll.a' 9999 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10000 postinstall_cmds='base_file=`basename \${file}`~ 10001 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10002 dldir=$destdir/`dirname \$dlpath`~ 10003 test -d \$dldir || mkdir -p \$dldir~ 10004 $install_prog $dir/$dlname \$dldir/$dlname~ 10005 chmod a+x \$dldir/$dlname~ 10006 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10007 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10008 fi' 10009 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10010 dlpath=$dir/\$dldll~ 10011 $RM \$dlpath' 10012 shlibpath_overrides_runpath=yes 10013 10014 case $host_os in 10015 cygwin*) 10016 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10017 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10018 10019 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10020 ;; 10021 mingw* | cegcc*) 10022 # MinGW DLLs use traditional 'lib' prefix 10023 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10024 ;; 10025 pw32*) 10026 # pw32 DLLs use 'pw' prefix rather than 'lib' 10027 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10028 ;; 10029 esac 10030 dynamic_linker='Win32 ld.exe' 10031 ;; 10032 10033 *,cl*) 10034 # Native MSVC 10035 libname_spec='$name' 10036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10037 library_names_spec='${libname}.dll.lib' 10038 10039 case $build_os in 10040 mingw*) 10041 sys_lib_search_path_spec= 10042 lt_save_ifs=$IFS 10043 IFS=';' 10044 for lt_path in $LIB 10045 do 10046 IFS=$lt_save_ifs 10047 # Let DOS variable expansion print the short 8.3 style file name. 10048 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10049 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10050 done 10051 IFS=$lt_save_ifs 10052 # Convert to MSYS style. 10053 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10054 ;; 10055 cygwin*) 10056 # Convert to unix form, then to dos form, then back to unix form 10057 # but this time dos style (no spaces!) so that the unix form looks 10058 # like /cygdrive/c/PROGRA~1:/cygdr... 10059 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10060 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10061 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10062 ;; 10063 *) 10064 sys_lib_search_path_spec="$LIB" 10065 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10066 # It is most probably a Windows format PATH. 10067 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10068 else 10069 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10070 fi 10071 # FIXME: find the short name or the path components, as spaces are 10072 # common. (e.g. "Program Files" -> "PROGRA~1") 10073 ;; 10074 esac 10075 10076 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10077 postinstall_cmds='base_file=`basename \${file}`~ 10078 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10079 dldir=$destdir/`dirname \$dlpath`~ 10080 test -d \$dldir || mkdir -p \$dldir~ 10081 $install_prog $dir/$dlname \$dldir/$dlname' 10082 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10083 dlpath=$dir/\$dldll~ 10084 $RM \$dlpath' 10085 shlibpath_overrides_runpath=yes 10086 dynamic_linker='Win32 link.exe' 10087 ;; 10088 10089 *) 10090 # Assume MSVC wrapper 10091 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10092 dynamic_linker='Win32 ld.exe' 10093 ;; 10094 esac 10095 # FIXME: first we should search . and the directory the executable is in 10096 shlibpath_var=PATH 10097 ;; 10098 10099darwin* | rhapsody*) 10100 dynamic_linker="$host_os dyld" 10101 version_type=darwin 10102 need_lib_prefix=no 10103 need_version=no 10104 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10105 soname_spec='${libname}${release}${major}$shared_ext' 10106 shlibpath_overrides_runpath=yes 10107 shlibpath_var=DYLD_LIBRARY_PATH 10108 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10109 10110 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10111 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10112 ;; 10113 10114dgux*) 10115 version_type=linux # correct to gnu/linux during the next big refactor 10116 need_lib_prefix=no 10117 need_version=no 10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10119 soname_spec='${libname}${release}${shared_ext}$major' 10120 shlibpath_var=LD_LIBRARY_PATH 10121 ;; 10122 10123freebsd* | dragonfly*) 10124 # DragonFly does not have aout. When/if they implement a new 10125 # versioning mechanism, adjust this. 10126 if test -x /usr/bin/objformat; then 10127 objformat=`/usr/bin/objformat` 10128 else 10129 case $host_os in 10130 freebsd[23].*) objformat=aout ;; 10131 *) objformat=elf ;; 10132 esac 10133 fi 10134 version_type=freebsd-$objformat 10135 case $version_type in 10136 freebsd-elf*) 10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10138 need_version=no 10139 need_lib_prefix=no 10140 ;; 10141 freebsd-*) 10142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10143 need_version=yes 10144 ;; 10145 esac 10146 shlibpath_var=LD_LIBRARY_PATH 10147 case $host_os in 10148 freebsd2.*) 10149 shlibpath_overrides_runpath=yes 10150 ;; 10151 freebsd3.[01]* | freebsdelf3.[01]*) 10152 shlibpath_overrides_runpath=yes 10153 hardcode_into_libs=yes 10154 ;; 10155 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10156 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10157 shlibpath_overrides_runpath=no 10158 hardcode_into_libs=yes 10159 ;; 10160 *) # from 4.6 on, and DragonFly 10161 shlibpath_overrides_runpath=yes 10162 hardcode_into_libs=yes 10163 ;; 10164 esac 10165 ;; 10166 10167gnu*) 10168 version_type=linux # correct to gnu/linux during the next big refactor 10169 need_lib_prefix=no 10170 need_version=no 10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10172 soname_spec='${libname}${release}${shared_ext}$major' 10173 shlibpath_var=LD_LIBRARY_PATH 10174 shlibpath_overrides_runpath=no 10175 hardcode_into_libs=yes 10176 ;; 10177 10178haiku*) 10179 version_type=linux # correct to gnu/linux during the next big refactor 10180 need_lib_prefix=no 10181 need_version=no 10182 dynamic_linker="$host_os runtime_loader" 10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10184 soname_spec='${libname}${release}${shared_ext}$major' 10185 shlibpath_var=LIBRARY_PATH 10186 shlibpath_overrides_runpath=yes 10187 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10188 hardcode_into_libs=yes 10189 ;; 10190 10191hpux9* | hpux10* | hpux11*) 10192 # Give a soname corresponding to the major version so that dld.sl refuses to 10193 # link against other versions. 10194 version_type=sunos 10195 need_lib_prefix=no 10196 need_version=no 10197 case $host_cpu in 10198 ia64*) 10199 shrext_cmds='.so' 10200 hardcode_into_libs=yes 10201 dynamic_linker="$host_os dld.so" 10202 shlibpath_var=LD_LIBRARY_PATH 10203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10205 soname_spec='${libname}${release}${shared_ext}$major' 10206 if test "X$HPUX_IA64_MODE" = X32; then 10207 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10208 else 10209 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10210 fi 10211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10212 ;; 10213 hppa*64*) 10214 shrext_cmds='.sl' 10215 hardcode_into_libs=yes 10216 dynamic_linker="$host_os dld.sl" 10217 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10220 soname_spec='${libname}${release}${shared_ext}$major' 10221 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10222 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10223 ;; 10224 *) 10225 shrext_cmds='.sl' 10226 dynamic_linker="$host_os dld.sl" 10227 shlibpath_var=SHLIB_PATH 10228 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10230 soname_spec='${libname}${release}${shared_ext}$major' 10231 ;; 10232 esac 10233 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10234 postinstall_cmds='chmod 555 $lib' 10235 # or fails outright, so override atomically: 10236 install_override_mode=555 10237 ;; 10238 10239interix[3-9]*) 10240 version_type=linux # correct to gnu/linux during the next big refactor 10241 need_lib_prefix=no 10242 need_version=no 10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10244 soname_spec='${libname}${release}${shared_ext}$major' 10245 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10246 shlibpath_var=LD_LIBRARY_PATH 10247 shlibpath_overrides_runpath=no 10248 hardcode_into_libs=yes 10249 ;; 10250 10251irix5* | irix6* | nonstopux*) 10252 case $host_os in 10253 nonstopux*) version_type=nonstopux ;; 10254 *) 10255 if test "$lt_cv_prog_gnu_ld" = yes; then 10256 version_type=linux # correct to gnu/linux during the next big refactor 10257 else 10258 version_type=irix 10259 fi ;; 10260 esac 10261 need_lib_prefix=no 10262 need_version=no 10263 soname_spec='${libname}${release}${shared_ext}$major' 10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10265 case $host_os in 10266 irix5* | nonstopux*) 10267 libsuff= shlibsuff= 10268 ;; 10269 *) 10270 case $LD in # libtool.m4 will add one of these switches to LD 10271 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10272 libsuff= shlibsuff= libmagic=32-bit;; 10273 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10274 libsuff=32 shlibsuff=N32 libmagic=N32;; 10275 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10276 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10277 *) libsuff= shlibsuff= libmagic=never-match;; 10278 esac 10279 ;; 10280 esac 10281 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10282 shlibpath_overrides_runpath=no 10283 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10284 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10285 hardcode_into_libs=yes 10286 ;; 10287 10288# No shared lib support for Linux oldld, aout, or coff. 10289linux*oldld* | linux*aout* | linux*coff*) 10290 dynamic_linker=no 10291 ;; 10292 10293# This must be glibc/ELF. 10294linux* | k*bsd*-gnu | kopensolaris*-gnu) 10295 version_type=linux # correct to gnu/linux during the next big refactor 10296 need_lib_prefix=no 10297 need_version=no 10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10299 soname_spec='${libname}${release}${shared_ext}$major' 10300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10301 shlibpath_var=LD_LIBRARY_PATH 10302 shlibpath_overrides_runpath=no 10303 10304 # Some binutils ld are patched to set DT_RUNPATH 10305 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10306 $as_echo_n "(cached) " >&6 10307else 10308 lt_cv_shlibpath_overrides_runpath=no 10309 save_LDFLAGS=$LDFLAGS 10310 save_libdir=$libdir 10311 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10312 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10314/* end confdefs.h. */ 10315 10316int 10317main () 10318{ 10319 10320 ; 10321 return 0; 10322} 10323_ACEOF 10324if ac_fn_c_try_link "$LINENO"; then : 10325 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10326 lt_cv_shlibpath_overrides_runpath=yes 10327fi 10328fi 10329rm -f core conftest.err conftest.$ac_objext \ 10330 conftest$ac_exeext conftest.$ac_ext 10331 LDFLAGS=$save_LDFLAGS 10332 libdir=$save_libdir 10333 10334fi 10335 10336 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10337 10338 # This implies no fast_install, which is unacceptable. 10339 # Some rework will be needed to allow for fast_install 10340 # before this can be enabled. 10341 hardcode_into_libs=yes 10342 10343 # Append ld.so.conf contents to the search path 10344 if test -f /etc/ld.so.conf; then 10345 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' ' '` 10346 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10347 fi 10348 10349 # We used to test for /lib/ld.so.1 and disable shared libraries on 10350 # powerpc, because MkLinux only supported shared libraries with the 10351 # GNU dynamic linker. Since this was broken with cross compilers, 10352 # most powerpc-linux boxes support dynamic linking these days and 10353 # people can always --disable-shared, the test was removed, and we 10354 # assume the GNU/Linux dynamic linker is in use. 10355 dynamic_linker='GNU/Linux ld.so' 10356 ;; 10357 10358netbsd*) 10359 version_type=sunos 10360 need_lib_prefix=no 10361 need_version=no 10362 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10365 dynamic_linker='NetBSD (a.out) ld.so' 10366 else 10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10368 soname_spec='${libname}${release}${shared_ext}$major' 10369 dynamic_linker='NetBSD ld.elf_so' 10370 fi 10371 shlibpath_var=LD_LIBRARY_PATH 10372 shlibpath_overrides_runpath=yes 10373 hardcode_into_libs=yes 10374 ;; 10375 10376newsos6) 10377 version_type=linux # correct to gnu/linux during the next big refactor 10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10379 shlibpath_var=LD_LIBRARY_PATH 10380 shlibpath_overrides_runpath=yes 10381 ;; 10382 10383*nto* | *qnx*) 10384 version_type=qnx 10385 need_lib_prefix=no 10386 need_version=no 10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10388 soname_spec='${libname}${release}${shared_ext}$major' 10389 shlibpath_var=LD_LIBRARY_PATH 10390 shlibpath_overrides_runpath=no 10391 hardcode_into_libs=yes 10392 dynamic_linker='ldqnx.so' 10393 ;; 10394 10395openbsd*) 10396 version_type=sunos 10397 sys_lib_dlsearch_path_spec="/usr/lib" 10398 need_lib_prefix=no 10399 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10400 case $host_os in 10401 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10402 *) need_version=no ;; 10403 esac 10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10406 shlibpath_var=LD_LIBRARY_PATH 10407 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10408 case $host_os in 10409 openbsd2.[89] | openbsd2.[89].*) 10410 shlibpath_overrides_runpath=no 10411 ;; 10412 *) 10413 shlibpath_overrides_runpath=yes 10414 ;; 10415 esac 10416 else 10417 shlibpath_overrides_runpath=yes 10418 fi 10419 ;; 10420 10421os2*) 10422 libname_spec='$name' 10423 shrext_cmds=".dll" 10424 need_lib_prefix=no 10425 library_names_spec='$libname${shared_ext} $libname.a' 10426 dynamic_linker='OS/2 ld.exe' 10427 shlibpath_var=LIBPATH 10428 ;; 10429 10430osf3* | osf4* | osf5*) 10431 version_type=osf 10432 need_lib_prefix=no 10433 need_version=no 10434 soname_spec='${libname}${release}${shared_ext}$major' 10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10436 shlibpath_var=LD_LIBRARY_PATH 10437 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10438 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10439 ;; 10440 10441rdos*) 10442 dynamic_linker=no 10443 ;; 10444 10445solaris*) 10446 version_type=linux # correct to gnu/linux during the next big refactor 10447 need_lib_prefix=no 10448 need_version=no 10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10450 soname_spec='${libname}${release}${shared_ext}$major' 10451 shlibpath_var=LD_LIBRARY_PATH 10452 shlibpath_overrides_runpath=yes 10453 hardcode_into_libs=yes 10454 # ldd complains unless libraries are executable 10455 postinstall_cmds='chmod +x $lib' 10456 ;; 10457 10458sunos4*) 10459 version_type=sunos 10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10461 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10462 shlibpath_var=LD_LIBRARY_PATH 10463 shlibpath_overrides_runpath=yes 10464 if test "$with_gnu_ld" = yes; then 10465 need_lib_prefix=no 10466 fi 10467 need_version=yes 10468 ;; 10469 10470sysv4 | sysv4.3*) 10471 version_type=linux # correct to gnu/linux during the next big refactor 10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10473 soname_spec='${libname}${release}${shared_ext}$major' 10474 shlibpath_var=LD_LIBRARY_PATH 10475 case $host_vendor in 10476 sni) 10477 shlibpath_overrides_runpath=no 10478 need_lib_prefix=no 10479 runpath_var=LD_RUN_PATH 10480 ;; 10481 siemens) 10482 need_lib_prefix=no 10483 ;; 10484 motorola) 10485 need_lib_prefix=no 10486 need_version=no 10487 shlibpath_overrides_runpath=no 10488 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10489 ;; 10490 esac 10491 ;; 10492 10493sysv4*MP*) 10494 if test -d /usr/nec ;then 10495 version_type=linux # correct to gnu/linux during the next big refactor 10496 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10497 soname_spec='$libname${shared_ext}.$major' 10498 shlibpath_var=LD_LIBRARY_PATH 10499 fi 10500 ;; 10501 10502sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10503 version_type=freebsd-elf 10504 need_lib_prefix=no 10505 need_version=no 10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10507 soname_spec='${libname}${release}${shared_ext}$major' 10508 shlibpath_var=LD_LIBRARY_PATH 10509 shlibpath_overrides_runpath=yes 10510 hardcode_into_libs=yes 10511 if test "$with_gnu_ld" = yes; then 10512 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10513 else 10514 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10515 case $host_os in 10516 sco3.2v5*) 10517 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10518 ;; 10519 esac 10520 fi 10521 sys_lib_dlsearch_path_spec='/usr/lib' 10522 ;; 10523 10524tpf*) 10525 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10526 version_type=linux # correct to gnu/linux during the next big refactor 10527 need_lib_prefix=no 10528 need_version=no 10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10530 shlibpath_var=LD_LIBRARY_PATH 10531 shlibpath_overrides_runpath=no 10532 hardcode_into_libs=yes 10533 ;; 10534 10535uts4*) 10536 version_type=linux # correct to gnu/linux during the next big refactor 10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10538 soname_spec='${libname}${release}${shared_ext}$major' 10539 shlibpath_var=LD_LIBRARY_PATH 10540 ;; 10541 10542*) 10543 dynamic_linker=no 10544 ;; 10545esac 10546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10547$as_echo "$dynamic_linker" >&6; } 10548test "$dynamic_linker" = no && can_build_shared=no 10549 10550variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10551if test "$GCC" = yes; then 10552 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10553fi 10554 10555if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10556 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10557fi 10558if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10559 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10560fi 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10654$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10655hardcode_action= 10656if test -n "$hardcode_libdir_flag_spec" || 10657 test -n "$runpath_var" || 10658 test "X$hardcode_automatic" = "Xyes" ; then 10659 10660 # We can hardcode non-existent directories. 10661 if test "$hardcode_direct" != no && 10662 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10663 # have to relink, otherwise we might link with an installed library 10664 # when we should be linking with a yet-to-be-installed one 10665 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10666 test "$hardcode_minus_L" != no; then 10667 # Linking always hardcodes the temporary library directory. 10668 hardcode_action=relink 10669 else 10670 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10671 hardcode_action=immediate 10672 fi 10673else 10674 # We cannot hardcode anything, or else we can only hardcode existing 10675 # directories. 10676 hardcode_action=unsupported 10677fi 10678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10679$as_echo "$hardcode_action" >&6; } 10680 10681if test "$hardcode_action" = relink || 10682 test "$inherit_rpath" = yes; then 10683 # Fast installation is not supported 10684 enable_fast_install=no 10685elif test "$shlibpath_overrides_runpath" = yes || 10686 test "$enable_shared" = no; then 10687 # Fast installation is not necessary 10688 enable_fast_install=needless 10689fi 10690 10691 10692 10693 10694 10695 10696 if test "x$enable_dlopen" != xyes; then 10697 enable_dlopen=unknown 10698 enable_dlopen_self=unknown 10699 enable_dlopen_self_static=unknown 10700else 10701 lt_cv_dlopen=no 10702 lt_cv_dlopen_libs= 10703 10704 case $host_os in 10705 beos*) 10706 lt_cv_dlopen="load_add_on" 10707 lt_cv_dlopen_libs= 10708 lt_cv_dlopen_self=yes 10709 ;; 10710 10711 mingw* | pw32* | cegcc*) 10712 lt_cv_dlopen="LoadLibrary" 10713 lt_cv_dlopen_libs= 10714 ;; 10715 10716 cygwin*) 10717 lt_cv_dlopen="dlopen" 10718 lt_cv_dlopen_libs= 10719 ;; 10720 10721 darwin*) 10722 # if libdl is installed we need to link against it 10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10724$as_echo_n "checking for dlopen in -ldl... " >&6; } 10725if ${ac_cv_lib_dl_dlopen+:} false; then : 10726 $as_echo_n "(cached) " >&6 10727else 10728 ac_check_lib_save_LIBS=$LIBS 10729LIBS="-ldl $LIBS" 10730cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10731/* end confdefs.h. */ 10732 10733/* Override any GCC internal prototype to avoid an error. 10734 Use char because int might match the return type of a GCC 10735 builtin and then its argument prototype would still apply. */ 10736#ifdef __cplusplus 10737extern "C" 10738#endif 10739char dlopen (); 10740int 10741main () 10742{ 10743return dlopen (); 10744 ; 10745 return 0; 10746} 10747_ACEOF 10748if ac_fn_c_try_link "$LINENO"; then : 10749 ac_cv_lib_dl_dlopen=yes 10750else 10751 ac_cv_lib_dl_dlopen=no 10752fi 10753rm -f core conftest.err conftest.$ac_objext \ 10754 conftest$ac_exeext conftest.$ac_ext 10755LIBS=$ac_check_lib_save_LIBS 10756fi 10757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10758$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10759if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10760 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10761else 10762 10763 lt_cv_dlopen="dyld" 10764 lt_cv_dlopen_libs= 10765 lt_cv_dlopen_self=yes 10766 10767fi 10768 10769 ;; 10770 10771 *) 10772 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10773if test "x$ac_cv_func_shl_load" = xyes; then : 10774 lt_cv_dlopen="shl_load" 10775else 10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10777$as_echo_n "checking for shl_load in -ldld... " >&6; } 10778if ${ac_cv_lib_dld_shl_load+:} false; then : 10779 $as_echo_n "(cached) " >&6 10780else 10781 ac_check_lib_save_LIBS=$LIBS 10782LIBS="-ldld $LIBS" 10783cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10784/* end confdefs.h. */ 10785 10786/* Override any GCC internal prototype to avoid an error. 10787 Use char because int might match the return type of a GCC 10788 builtin and then its argument prototype would still apply. */ 10789#ifdef __cplusplus 10790extern "C" 10791#endif 10792char shl_load (); 10793int 10794main () 10795{ 10796return shl_load (); 10797 ; 10798 return 0; 10799} 10800_ACEOF 10801if ac_fn_c_try_link "$LINENO"; then : 10802 ac_cv_lib_dld_shl_load=yes 10803else 10804 ac_cv_lib_dld_shl_load=no 10805fi 10806rm -f core conftest.err conftest.$ac_objext \ 10807 conftest$ac_exeext conftest.$ac_ext 10808LIBS=$ac_check_lib_save_LIBS 10809fi 10810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10811$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10812if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10813 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10814else 10815 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10816if test "x$ac_cv_func_dlopen" = xyes; then : 10817 lt_cv_dlopen="dlopen" 10818else 10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10820$as_echo_n "checking for dlopen in -ldl... " >&6; } 10821if ${ac_cv_lib_dl_dlopen+:} false; then : 10822 $as_echo_n "(cached) " >&6 10823else 10824 ac_check_lib_save_LIBS=$LIBS 10825LIBS="-ldl $LIBS" 10826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10827/* end confdefs.h. */ 10828 10829/* Override any GCC internal prototype to avoid an error. 10830 Use char because int might match the return type of a GCC 10831 builtin and then its argument prototype would still apply. */ 10832#ifdef __cplusplus 10833extern "C" 10834#endif 10835char dlopen (); 10836int 10837main () 10838{ 10839return dlopen (); 10840 ; 10841 return 0; 10842} 10843_ACEOF 10844if ac_fn_c_try_link "$LINENO"; then : 10845 ac_cv_lib_dl_dlopen=yes 10846else 10847 ac_cv_lib_dl_dlopen=no 10848fi 10849rm -f core conftest.err conftest.$ac_objext \ 10850 conftest$ac_exeext conftest.$ac_ext 10851LIBS=$ac_check_lib_save_LIBS 10852fi 10853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10854$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10855if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10857else 10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10859$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10860if ${ac_cv_lib_svld_dlopen+:} false; then : 10861 $as_echo_n "(cached) " >&6 10862else 10863 ac_check_lib_save_LIBS=$LIBS 10864LIBS="-lsvld $LIBS" 10865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10866/* end confdefs.h. */ 10867 10868/* Override any GCC internal prototype to avoid an error. 10869 Use char because int might match the return type of a GCC 10870 builtin and then its argument prototype would still apply. */ 10871#ifdef __cplusplus 10872extern "C" 10873#endif 10874char dlopen (); 10875int 10876main () 10877{ 10878return dlopen (); 10879 ; 10880 return 0; 10881} 10882_ACEOF 10883if ac_fn_c_try_link "$LINENO"; then : 10884 ac_cv_lib_svld_dlopen=yes 10885else 10886 ac_cv_lib_svld_dlopen=no 10887fi 10888rm -f core conftest.err conftest.$ac_objext \ 10889 conftest$ac_exeext conftest.$ac_ext 10890LIBS=$ac_check_lib_save_LIBS 10891fi 10892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10893$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10894if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10896else 10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10898$as_echo_n "checking for dld_link in -ldld... " >&6; } 10899if ${ac_cv_lib_dld_dld_link+:} false; then : 10900 $as_echo_n "(cached) " >&6 10901else 10902 ac_check_lib_save_LIBS=$LIBS 10903LIBS="-ldld $LIBS" 10904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10905/* end confdefs.h. */ 10906 10907/* Override any GCC internal prototype to avoid an error. 10908 Use char because int might match the return type of a GCC 10909 builtin and then its argument prototype would still apply. */ 10910#ifdef __cplusplus 10911extern "C" 10912#endif 10913char dld_link (); 10914int 10915main () 10916{ 10917return dld_link (); 10918 ; 10919 return 0; 10920} 10921_ACEOF 10922if ac_fn_c_try_link "$LINENO"; then : 10923 ac_cv_lib_dld_dld_link=yes 10924else 10925 ac_cv_lib_dld_dld_link=no 10926fi 10927rm -f core conftest.err conftest.$ac_objext \ 10928 conftest$ac_exeext conftest.$ac_ext 10929LIBS=$ac_check_lib_save_LIBS 10930fi 10931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10932$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10933if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10934 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10935fi 10936 10937 10938fi 10939 10940 10941fi 10942 10943 10944fi 10945 10946 10947fi 10948 10949 10950fi 10951 10952 ;; 10953 esac 10954 10955 if test "x$lt_cv_dlopen" != xno; then 10956 enable_dlopen=yes 10957 else 10958 enable_dlopen=no 10959 fi 10960 10961 case $lt_cv_dlopen in 10962 dlopen) 10963 save_CPPFLAGS="$CPPFLAGS" 10964 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10965 10966 save_LDFLAGS="$LDFLAGS" 10967 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10968 10969 save_LIBS="$LIBS" 10970 LIBS="$lt_cv_dlopen_libs $LIBS" 10971 10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10973$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10974if ${lt_cv_dlopen_self+:} false; then : 10975 $as_echo_n "(cached) " >&6 10976else 10977 if test "$cross_compiling" = yes; then : 10978 lt_cv_dlopen_self=cross 10979else 10980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10981 lt_status=$lt_dlunknown 10982 cat > conftest.$ac_ext <<_LT_EOF 10983#line $LINENO "configure" 10984#include "confdefs.h" 10985 10986#if HAVE_DLFCN_H 10987#include <dlfcn.h> 10988#endif 10989 10990#include <stdio.h> 10991 10992#ifdef RTLD_GLOBAL 10993# define LT_DLGLOBAL RTLD_GLOBAL 10994#else 10995# ifdef DL_GLOBAL 10996# define LT_DLGLOBAL DL_GLOBAL 10997# else 10998# define LT_DLGLOBAL 0 10999# endif 11000#endif 11001 11002/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11003 find out it does not work in some platform. */ 11004#ifndef LT_DLLAZY_OR_NOW 11005# ifdef RTLD_LAZY 11006# define LT_DLLAZY_OR_NOW RTLD_LAZY 11007# else 11008# ifdef DL_LAZY 11009# define LT_DLLAZY_OR_NOW DL_LAZY 11010# else 11011# ifdef RTLD_NOW 11012# define LT_DLLAZY_OR_NOW RTLD_NOW 11013# else 11014# ifdef DL_NOW 11015# define LT_DLLAZY_OR_NOW DL_NOW 11016# else 11017# define LT_DLLAZY_OR_NOW 0 11018# endif 11019# endif 11020# endif 11021# endif 11022#endif 11023 11024/* When -fvisbility=hidden is used, assume the code has been annotated 11025 correspondingly for the symbols needed. */ 11026#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11027int fnord () __attribute__((visibility("default"))); 11028#endif 11029 11030int fnord () { return 42; } 11031int main () 11032{ 11033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11034 int status = $lt_dlunknown; 11035 11036 if (self) 11037 { 11038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11039 else 11040 { 11041 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11042 else puts (dlerror ()); 11043 } 11044 /* dlclose (self); */ 11045 } 11046 else 11047 puts (dlerror ()); 11048 11049 return status; 11050} 11051_LT_EOF 11052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11053 (eval $ac_link) 2>&5 11054 ac_status=$? 11055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11056 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11057 (./conftest; exit; ) >&5 2>/dev/null 11058 lt_status=$? 11059 case x$lt_status in 11060 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11061 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11062 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11063 esac 11064 else : 11065 # compilation failed 11066 lt_cv_dlopen_self=no 11067 fi 11068fi 11069rm -fr conftest* 11070 11071 11072fi 11073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11074$as_echo "$lt_cv_dlopen_self" >&6; } 11075 11076 if test "x$lt_cv_dlopen_self" = xyes; then 11077 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11079$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11080if ${lt_cv_dlopen_self_static+:} false; then : 11081 $as_echo_n "(cached) " >&6 11082else 11083 if test "$cross_compiling" = yes; then : 11084 lt_cv_dlopen_self_static=cross 11085else 11086 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11087 lt_status=$lt_dlunknown 11088 cat > conftest.$ac_ext <<_LT_EOF 11089#line $LINENO "configure" 11090#include "confdefs.h" 11091 11092#if HAVE_DLFCN_H 11093#include <dlfcn.h> 11094#endif 11095 11096#include <stdio.h> 11097 11098#ifdef RTLD_GLOBAL 11099# define LT_DLGLOBAL RTLD_GLOBAL 11100#else 11101# ifdef DL_GLOBAL 11102# define LT_DLGLOBAL DL_GLOBAL 11103# else 11104# define LT_DLGLOBAL 0 11105# endif 11106#endif 11107 11108/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11109 find out it does not work in some platform. */ 11110#ifndef LT_DLLAZY_OR_NOW 11111# ifdef RTLD_LAZY 11112# define LT_DLLAZY_OR_NOW RTLD_LAZY 11113# else 11114# ifdef DL_LAZY 11115# define LT_DLLAZY_OR_NOW DL_LAZY 11116# else 11117# ifdef RTLD_NOW 11118# define LT_DLLAZY_OR_NOW RTLD_NOW 11119# else 11120# ifdef DL_NOW 11121# define LT_DLLAZY_OR_NOW DL_NOW 11122# else 11123# define LT_DLLAZY_OR_NOW 0 11124# endif 11125# endif 11126# endif 11127# endif 11128#endif 11129 11130/* When -fvisbility=hidden is used, assume the code has been annotated 11131 correspondingly for the symbols needed. */ 11132#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11133int fnord () __attribute__((visibility("default"))); 11134#endif 11135 11136int fnord () { return 42; } 11137int main () 11138{ 11139 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11140 int status = $lt_dlunknown; 11141 11142 if (self) 11143 { 11144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11145 else 11146 { 11147 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11148 else puts (dlerror ()); 11149 } 11150 /* dlclose (self); */ 11151 } 11152 else 11153 puts (dlerror ()); 11154 11155 return status; 11156} 11157_LT_EOF 11158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11159 (eval $ac_link) 2>&5 11160 ac_status=$? 11161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11162 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11163 (./conftest; exit; ) >&5 2>/dev/null 11164 lt_status=$? 11165 case x$lt_status in 11166 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11167 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11168 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11169 esac 11170 else : 11171 # compilation failed 11172 lt_cv_dlopen_self_static=no 11173 fi 11174fi 11175rm -fr conftest* 11176 11177 11178fi 11179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11180$as_echo "$lt_cv_dlopen_self_static" >&6; } 11181 fi 11182 11183 CPPFLAGS="$save_CPPFLAGS" 11184 LDFLAGS="$save_LDFLAGS" 11185 LIBS="$save_LIBS" 11186 ;; 11187 esac 11188 11189 case $lt_cv_dlopen_self in 11190 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11191 *) enable_dlopen_self=unknown ;; 11192 esac 11193 11194 case $lt_cv_dlopen_self_static in 11195 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11196 *) enable_dlopen_self_static=unknown ;; 11197 esac 11198fi 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216striplib= 11217old_striplib= 11218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11219$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11220if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11221 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11222 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11224$as_echo "yes" >&6; } 11225else 11226# FIXME - insert some real tests, host_os isn't really good enough 11227 case $host_os in 11228 darwin*) 11229 if test -n "$STRIP" ; then 11230 striplib="$STRIP -x" 11231 old_striplib="$STRIP -S" 11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11233$as_echo "yes" >&6; } 11234 else 11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11236$as_echo "no" >&6; } 11237 fi 11238 ;; 11239 *) 11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11241$as_echo "no" >&6; } 11242 ;; 11243 esac 11244fi 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 # Report which library types will actually be built 11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11259$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11261$as_echo "$can_build_shared" >&6; } 11262 11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11264$as_echo_n "checking whether to build shared libraries... " >&6; } 11265 test "$can_build_shared" = "no" && enable_shared=no 11266 11267 # On AIX, shared libraries and static libraries use the same namespace, and 11268 # are all built from PIC. 11269 case $host_os in 11270 aix3*) 11271 test "$enable_shared" = yes && enable_static=no 11272 if test -n "$RANLIB"; then 11273 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11274 postinstall_cmds='$RANLIB $lib' 11275 fi 11276 ;; 11277 11278 aix[4-9]*) 11279 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11280 test "$enable_shared" = yes && enable_static=no 11281 fi 11282 ;; 11283 esac 11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11285$as_echo "$enable_shared" >&6; } 11286 11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11288$as_echo_n "checking whether to build static libraries... " >&6; } 11289 # Make sure either enable_shared or enable_static is yes. 11290 test "$enable_shared" = yes || enable_static=yes 11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11292$as_echo "$enable_static" >&6; } 11293 11294 11295 11296 11297fi 11298ac_ext=c 11299ac_cpp='$CPP $CPPFLAGS' 11300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11302ac_compiler_gnu=$ac_cv_c_compiler_gnu 11303 11304CC="$lt_save_CC" 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 ac_config_commands="$ac_config_commands libtool" 11321 11322 11323 11324 11325# Only expand once: 11326 11327 11328 11329# Require X.Org macros 1.8 or later for AC_PROG_INSTALL 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11342$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11343if ${ac_cv_prog_cc_c99+:} false; then : 11344 $as_echo_n "(cached) " >&6 11345else 11346 ac_cv_prog_cc_c99=no 11347ac_save_CC=$CC 11348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11349/* end confdefs.h. */ 11350#include <stdarg.h> 11351#include <stdbool.h> 11352#include <stdlib.h> 11353#include <wchar.h> 11354#include <stdio.h> 11355 11356// Check varargs macros. These examples are taken from C99 6.10.3.5. 11357#define debug(...) fprintf (stderr, __VA_ARGS__) 11358#define showlist(...) puts (#__VA_ARGS__) 11359#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11360static void 11361test_varargs_macros (void) 11362{ 11363 int x = 1234; 11364 int y = 5678; 11365 debug ("Flag"); 11366 debug ("X = %d\n", x); 11367 showlist (The first, second, and third items.); 11368 report (x>y, "x is %d but y is %d", x, y); 11369} 11370 11371// Check long long types. 11372#define BIG64 18446744073709551615ull 11373#define BIG32 4294967295ul 11374#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11375#if !BIG_OK 11376 your preprocessor is broken; 11377#endif 11378#if BIG_OK 11379#else 11380 your preprocessor is broken; 11381#endif 11382static long long int bignum = -9223372036854775807LL; 11383static unsigned long long int ubignum = BIG64; 11384 11385struct incomplete_array 11386{ 11387 int datasize; 11388 double data[]; 11389}; 11390 11391struct named_init { 11392 int number; 11393 const wchar_t *name; 11394 double average; 11395}; 11396 11397typedef const char *ccp; 11398 11399static inline int 11400test_restrict (ccp restrict text) 11401{ 11402 // See if C++-style comments work. 11403 // Iterate through items via the restricted pointer. 11404 // Also check for declarations in for loops. 11405 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11406 continue; 11407 return 0; 11408} 11409 11410// Check varargs and va_copy. 11411static void 11412test_varargs (const char *format, ...) 11413{ 11414 va_list args; 11415 va_start (args, format); 11416 va_list args_copy; 11417 va_copy (args_copy, args); 11418 11419 const char *str; 11420 int number; 11421 float fnumber; 11422 11423 while (*format) 11424 { 11425 switch (*format++) 11426 { 11427 case 's': // string 11428 str = va_arg (args_copy, const char *); 11429 break; 11430 case 'd': // int 11431 number = va_arg (args_copy, int); 11432 break; 11433 case 'f': // float 11434 fnumber = va_arg (args_copy, double); 11435 break; 11436 default: 11437 break; 11438 } 11439 } 11440 va_end (args_copy); 11441 va_end (args); 11442} 11443 11444int 11445main () 11446{ 11447 11448 // Check bool. 11449 _Bool success = false; 11450 11451 // Check restrict. 11452 if (test_restrict ("String literal") == 0) 11453 success = true; 11454 char *restrict newvar = "Another string"; 11455 11456 // Check varargs. 11457 test_varargs ("s, d' f .", "string", 65, 34.234); 11458 test_varargs_macros (); 11459 11460 // Check flexible array members. 11461 struct incomplete_array *ia = 11462 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11463 ia->datasize = 10; 11464 for (int i = 0; i < ia->datasize; ++i) 11465 ia->data[i] = i * 1.234; 11466 11467 // Check named initializers. 11468 struct named_init ni = { 11469 .number = 34, 11470 .name = L"Test wide string", 11471 .average = 543.34343, 11472 }; 11473 11474 ni.number = 58; 11475 11476 int dynamic_array[ni.number]; 11477 dynamic_array[ni.number - 1] = 543; 11478 11479 // work around unused variable warnings 11480 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11481 || dynamic_array[ni.number - 1] != 543); 11482 11483 ; 11484 return 0; 11485} 11486_ACEOF 11487for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11488do 11489 CC="$ac_save_CC $ac_arg" 11490 if ac_fn_c_try_compile "$LINENO"; then : 11491 ac_cv_prog_cc_c99=$ac_arg 11492fi 11493rm -f core conftest.err conftest.$ac_objext 11494 test "x$ac_cv_prog_cc_c99" != "xno" && break 11495done 11496rm -f conftest.$ac_ext 11497CC=$ac_save_CC 11498 11499fi 11500# AC_CACHE_VAL 11501case "x$ac_cv_prog_cc_c99" in 11502 x) 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11504$as_echo "none needed" >&6; } ;; 11505 xno) 11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11507$as_echo "unsupported" >&6; } ;; 11508 *) 11509 CC="$CC $ac_cv_prog_cc_c99" 11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11511$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11512esac 11513if test "x$ac_cv_prog_cc_c99" != xno; then : 11514 11515fi 11516 11517 11518 11519 11520 11521 11522ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11523if test "x$ac_cv_have_decl___clang__" = xyes; then : 11524 CLANGCC="yes" 11525else 11526 CLANGCC="no" 11527fi 11528 11529ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11530if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11531 INTELCC="yes" 11532else 11533 INTELCC="no" 11534fi 11535 11536ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11537if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11538 SUNCC="yes" 11539else 11540 SUNCC="no" 11541fi 11542 11543 11544 11545 11546if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11547 if test -n "$ac_tool_prefix"; then 11548 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11549set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11551$as_echo_n "checking for $ac_word... " >&6; } 11552if ${ac_cv_path_PKG_CONFIG+:} false; then : 11553 $as_echo_n "(cached) " >&6 11554else 11555 case $PKG_CONFIG in 11556 [\\/]* | ?:[\\/]*) 11557 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11558 ;; 11559 *) 11560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11561for as_dir in $PATH 11562do 11563 IFS=$as_save_IFS 11564 test -z "$as_dir" && as_dir=. 11565 for ac_exec_ext in '' $ac_executable_extensions; do 11566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11567 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11569 break 2 11570 fi 11571done 11572 done 11573IFS=$as_save_IFS 11574 11575 ;; 11576esac 11577fi 11578PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11579if test -n "$PKG_CONFIG"; then 11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11581$as_echo "$PKG_CONFIG" >&6; } 11582else 11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11584$as_echo "no" >&6; } 11585fi 11586 11587 11588fi 11589if test -z "$ac_cv_path_PKG_CONFIG"; then 11590 ac_pt_PKG_CONFIG=$PKG_CONFIG 11591 # Extract the first word of "pkg-config", so it can be a program name with args. 11592set dummy pkg-config; ac_word=$2 11593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11594$as_echo_n "checking for $ac_word... " >&6; } 11595if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11596 $as_echo_n "(cached) " >&6 11597else 11598 case $ac_pt_PKG_CONFIG in 11599 [\\/]* | ?:[\\/]*) 11600 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11601 ;; 11602 *) 11603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11604for as_dir in $PATH 11605do 11606 IFS=$as_save_IFS 11607 test -z "$as_dir" && as_dir=. 11608 for ac_exec_ext in '' $ac_executable_extensions; do 11609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11610 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11612 break 2 11613 fi 11614done 11615 done 11616IFS=$as_save_IFS 11617 11618 ;; 11619esac 11620fi 11621ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11622if test -n "$ac_pt_PKG_CONFIG"; then 11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11624$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11625else 11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11627$as_echo "no" >&6; } 11628fi 11629 11630 if test "x$ac_pt_PKG_CONFIG" = x; then 11631 PKG_CONFIG="" 11632 else 11633 case $cross_compiling:$ac_tool_warned in 11634yes:) 11635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11637ac_tool_warned=yes ;; 11638esac 11639 PKG_CONFIG=$ac_pt_PKG_CONFIG 11640 fi 11641else 11642 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11643fi 11644 11645fi 11646if test -n "$PKG_CONFIG"; then 11647 _pkg_min_version=0.9.0 11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11649$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11650 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11652$as_echo "yes" >&6; } 11653 else 11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11655$as_echo "no" >&6; } 11656 PKG_CONFIG="" 11657 fi 11658 11659fi 11660 11661 11662 11663 11664 11665# Check whether --enable-selective-werror was given. 11666if test "${enable_selective_werror+set}" = set; then : 11667 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11668else 11669 SELECTIVE_WERROR=yes 11670fi 11671 11672 11673 11674 11675 11676# -v is too short to test reliably with XORG_TESTSET_CFLAG 11677if test "x$SUNCC" = "xyes"; then 11678 BASE_CFLAGS="-v" 11679else 11680 BASE_CFLAGS="" 11681fi 11682 11683# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697xorg_testset_save_CFLAGS="$CFLAGS" 11698 11699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11704 $as_echo_n "(cached) " >&6 11705else 11706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11707/* end confdefs.h. */ 11708int i; 11709_ACEOF 11710if ac_fn_c_try_compile "$LINENO"; then : 11711 xorg_cv_cc_flag_unknown_warning_option=yes 11712else 11713 xorg_cv_cc_flag_unknown_warning_option=no 11714fi 11715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11716fi 11717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11720 CFLAGS="$xorg_testset_save_CFLAGS" 11721fi 11722 11723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11726 fi 11727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11731 $as_echo_n "(cached) " >&6 11732else 11733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11734/* end confdefs.h. */ 11735int i; 11736_ACEOF 11737if ac_fn_c_try_compile "$LINENO"; then : 11738 xorg_cv_cc_flag_unused_command_line_argument=yes 11739else 11740 xorg_cv_cc_flag_unused_command_line_argument=no 11741fi 11742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11743fi 11744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11747 CFLAGS="$xorg_testset_save_CFLAGS" 11748fi 11749 11750found="no" 11751 11752 if test $found = "no" ; then 11753 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11755 fi 11756 11757 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11759 fi 11760 11761 CFLAGS="$CFLAGS -Wall" 11762 11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11764$as_echo_n "checking if $CC supports -Wall... " >&6; } 11765 cacheid=xorg_cv_cc_flag__Wall 11766 if eval \${$cacheid+:} false; then : 11767 $as_echo_n "(cached) " >&6 11768else 11769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11770/* end confdefs.h. */ 11771int i; 11772int 11773main () 11774{ 11775 11776 ; 11777 return 0; 11778} 11779_ACEOF 11780if ac_fn_c_try_link "$LINENO"; then : 11781 eval $cacheid=yes 11782else 11783 eval $cacheid=no 11784fi 11785rm -f core conftest.err conftest.$ac_objext \ 11786 conftest$ac_exeext conftest.$ac_ext 11787fi 11788 11789 11790 CFLAGS="$xorg_testset_save_CFLAGS" 11791 11792 eval supported=\$$cacheid 11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11794$as_echo "$supported" >&6; } 11795 if test "$supported" = "yes" ; then 11796 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11797 found="yes" 11798 fi 11799 fi 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815xorg_testset_save_CFLAGS="$CFLAGS" 11816 11817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11822 $as_echo_n "(cached) " >&6 11823else 11824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11825/* end confdefs.h. */ 11826int i; 11827_ACEOF 11828if ac_fn_c_try_compile "$LINENO"; then : 11829 xorg_cv_cc_flag_unknown_warning_option=yes 11830else 11831 xorg_cv_cc_flag_unknown_warning_option=no 11832fi 11833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11834fi 11835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11838 CFLAGS="$xorg_testset_save_CFLAGS" 11839fi 11840 11841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11844 fi 11845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11849 $as_echo_n "(cached) " >&6 11850else 11851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11852/* end confdefs.h. */ 11853int i; 11854_ACEOF 11855if ac_fn_c_try_compile "$LINENO"; then : 11856 xorg_cv_cc_flag_unused_command_line_argument=yes 11857else 11858 xorg_cv_cc_flag_unused_command_line_argument=no 11859fi 11860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11861fi 11862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11865 CFLAGS="$xorg_testset_save_CFLAGS" 11866fi 11867 11868found="no" 11869 11870 if test $found = "no" ; then 11871 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11873 fi 11874 11875 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11877 fi 11878 11879 CFLAGS="$CFLAGS -Wpointer-arith" 11880 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 11882$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 11883 cacheid=xorg_cv_cc_flag__Wpointer_arith 11884 if eval \${$cacheid+:} false; then : 11885 $as_echo_n "(cached) " >&6 11886else 11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11888/* end confdefs.h. */ 11889int i; 11890int 11891main () 11892{ 11893 11894 ; 11895 return 0; 11896} 11897_ACEOF 11898if ac_fn_c_try_link "$LINENO"; then : 11899 eval $cacheid=yes 11900else 11901 eval $cacheid=no 11902fi 11903rm -f core conftest.err conftest.$ac_objext \ 11904 conftest$ac_exeext conftest.$ac_ext 11905fi 11906 11907 11908 CFLAGS="$xorg_testset_save_CFLAGS" 11909 11910 eval supported=\$$cacheid 11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11912$as_echo "$supported" >&6; } 11913 if test "$supported" = "yes" ; then 11914 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 11915 found="yes" 11916 fi 11917 fi 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933xorg_testset_save_CFLAGS="$CFLAGS" 11934 11935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11938$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11939if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11940 $as_echo_n "(cached) " >&6 11941else 11942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11943/* end confdefs.h. */ 11944int i; 11945_ACEOF 11946if ac_fn_c_try_compile "$LINENO"; then : 11947 xorg_cv_cc_flag_unknown_warning_option=yes 11948else 11949 xorg_cv_cc_flag_unknown_warning_option=no 11950fi 11951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11952fi 11953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11954$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11956 CFLAGS="$xorg_testset_save_CFLAGS" 11957fi 11958 11959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11962 fi 11963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11965$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11966if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11967 $as_echo_n "(cached) " >&6 11968else 11969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11970/* end confdefs.h. */ 11971int i; 11972_ACEOF 11973if ac_fn_c_try_compile "$LINENO"; then : 11974 xorg_cv_cc_flag_unused_command_line_argument=yes 11975else 11976 xorg_cv_cc_flag_unused_command_line_argument=no 11977fi 11978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11979fi 11980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11981$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11983 CFLAGS="$xorg_testset_save_CFLAGS" 11984fi 11985 11986found="no" 11987 11988 if test $found = "no" ; then 11989 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11991 fi 11992 11993 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11995 fi 11996 11997 CFLAGS="$CFLAGS -Wmissing-declarations" 11998 11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12000$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12001 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12002 if eval \${$cacheid+:} false; then : 12003 $as_echo_n "(cached) " >&6 12004else 12005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12006/* end confdefs.h. */ 12007int i; 12008int 12009main () 12010{ 12011 12012 ; 12013 return 0; 12014} 12015_ACEOF 12016if ac_fn_c_try_link "$LINENO"; then : 12017 eval $cacheid=yes 12018else 12019 eval $cacheid=no 12020fi 12021rm -f core conftest.err conftest.$ac_objext \ 12022 conftest$ac_exeext conftest.$ac_ext 12023fi 12024 12025 12026 CFLAGS="$xorg_testset_save_CFLAGS" 12027 12028 eval supported=\$$cacheid 12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12030$as_echo "$supported" >&6; } 12031 if test "$supported" = "yes" ; then 12032 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12033 found="yes" 12034 fi 12035 fi 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051xorg_testset_save_CFLAGS="$CFLAGS" 12052 12053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12058 $as_echo_n "(cached) " >&6 12059else 12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12061/* end confdefs.h. */ 12062int i; 12063_ACEOF 12064if ac_fn_c_try_compile "$LINENO"; then : 12065 xorg_cv_cc_flag_unknown_warning_option=yes 12066else 12067 xorg_cv_cc_flag_unknown_warning_option=no 12068fi 12069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12070fi 12071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12074 CFLAGS="$xorg_testset_save_CFLAGS" 12075fi 12076 12077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12080 fi 12081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12085 $as_echo_n "(cached) " >&6 12086else 12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12088/* end confdefs.h. */ 12089int i; 12090_ACEOF 12091if ac_fn_c_try_compile "$LINENO"; then : 12092 xorg_cv_cc_flag_unused_command_line_argument=yes 12093else 12094 xorg_cv_cc_flag_unused_command_line_argument=no 12095fi 12096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12097fi 12098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12101 CFLAGS="$xorg_testset_save_CFLAGS" 12102fi 12103 12104found="no" 12105 12106 if test $found = "no" ; then 12107 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12109 fi 12110 12111 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12113 fi 12114 12115 CFLAGS="$CFLAGS -Wformat=2" 12116 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12118$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12119 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12120 if eval \${$cacheid+:} false; then : 12121 $as_echo_n "(cached) " >&6 12122else 12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12124/* end confdefs.h. */ 12125int i; 12126int 12127main () 12128{ 12129 12130 ; 12131 return 0; 12132} 12133_ACEOF 12134if ac_fn_c_try_link "$LINENO"; then : 12135 eval $cacheid=yes 12136else 12137 eval $cacheid=no 12138fi 12139rm -f core conftest.err conftest.$ac_objext \ 12140 conftest$ac_exeext conftest.$ac_ext 12141fi 12142 12143 12144 CFLAGS="$xorg_testset_save_CFLAGS" 12145 12146 eval supported=\$$cacheid 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12148$as_echo "$supported" >&6; } 12149 if test "$supported" = "yes" ; then 12150 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12151 found="yes" 12152 fi 12153 fi 12154 12155 if test $found = "no" ; then 12156 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12158 fi 12159 12160 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12162 fi 12163 12164 CFLAGS="$CFLAGS -Wformat" 12165 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12167$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12168 cacheid=xorg_cv_cc_flag__Wformat 12169 if eval \${$cacheid+:} false; then : 12170 $as_echo_n "(cached) " >&6 12171else 12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12173/* end confdefs.h. */ 12174int i; 12175int 12176main () 12177{ 12178 12179 ; 12180 return 0; 12181} 12182_ACEOF 12183if ac_fn_c_try_link "$LINENO"; then : 12184 eval $cacheid=yes 12185else 12186 eval $cacheid=no 12187fi 12188rm -f core conftest.err conftest.$ac_objext \ 12189 conftest$ac_exeext conftest.$ac_ext 12190fi 12191 12192 12193 CFLAGS="$xorg_testset_save_CFLAGS" 12194 12195 eval supported=\$$cacheid 12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12197$as_echo "$supported" >&6; } 12198 if test "$supported" = "yes" ; then 12199 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12200 found="yes" 12201 fi 12202 fi 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220xorg_testset_save_CFLAGS="$CFLAGS" 12221 12222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12225$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12226if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12227 $as_echo_n "(cached) " >&6 12228else 12229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12230/* end confdefs.h. */ 12231int i; 12232_ACEOF 12233if ac_fn_c_try_compile "$LINENO"; then : 12234 xorg_cv_cc_flag_unknown_warning_option=yes 12235else 12236 xorg_cv_cc_flag_unknown_warning_option=no 12237fi 12238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12239fi 12240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12241$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12243 CFLAGS="$xorg_testset_save_CFLAGS" 12244fi 12245 12246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12249 fi 12250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12252$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12253if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12254 $as_echo_n "(cached) " >&6 12255else 12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12257/* end confdefs.h. */ 12258int i; 12259_ACEOF 12260if ac_fn_c_try_compile "$LINENO"; then : 12261 xorg_cv_cc_flag_unused_command_line_argument=yes 12262else 12263 xorg_cv_cc_flag_unused_command_line_argument=no 12264fi 12265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12266fi 12267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12268$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12270 CFLAGS="$xorg_testset_save_CFLAGS" 12271fi 12272 12273found="no" 12274 12275 if test $found = "no" ; then 12276 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12278 fi 12279 12280 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12282 fi 12283 12284 CFLAGS="$CFLAGS -Wstrict-prototypes" 12285 12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12287$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12288 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12289 if eval \${$cacheid+:} false; then : 12290 $as_echo_n "(cached) " >&6 12291else 12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12293/* end confdefs.h. */ 12294int i; 12295int 12296main () 12297{ 12298 12299 ; 12300 return 0; 12301} 12302_ACEOF 12303if ac_fn_c_try_link "$LINENO"; then : 12304 eval $cacheid=yes 12305else 12306 eval $cacheid=no 12307fi 12308rm -f core conftest.err conftest.$ac_objext \ 12309 conftest$ac_exeext conftest.$ac_ext 12310fi 12311 12312 12313 CFLAGS="$xorg_testset_save_CFLAGS" 12314 12315 eval supported=\$$cacheid 12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12317$as_echo "$supported" >&6; } 12318 if test "$supported" = "yes" ; then 12319 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12320 found="yes" 12321 fi 12322 fi 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338xorg_testset_save_CFLAGS="$CFLAGS" 12339 12340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12343$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12344if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12345 $as_echo_n "(cached) " >&6 12346else 12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12348/* end confdefs.h. */ 12349int i; 12350_ACEOF 12351if ac_fn_c_try_compile "$LINENO"; then : 12352 xorg_cv_cc_flag_unknown_warning_option=yes 12353else 12354 xorg_cv_cc_flag_unknown_warning_option=no 12355fi 12356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12357fi 12358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12359$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12361 CFLAGS="$xorg_testset_save_CFLAGS" 12362fi 12363 12364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12367 fi 12368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12370$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12371if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12372 $as_echo_n "(cached) " >&6 12373else 12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12375/* end confdefs.h. */ 12376int i; 12377_ACEOF 12378if ac_fn_c_try_compile "$LINENO"; then : 12379 xorg_cv_cc_flag_unused_command_line_argument=yes 12380else 12381 xorg_cv_cc_flag_unused_command_line_argument=no 12382fi 12383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12384fi 12385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12386$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12388 CFLAGS="$xorg_testset_save_CFLAGS" 12389fi 12390 12391found="no" 12392 12393 if test $found = "no" ; then 12394 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12396 fi 12397 12398 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12400 fi 12401 12402 CFLAGS="$CFLAGS -Wmissing-prototypes" 12403 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12405$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12406 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12407 if eval \${$cacheid+:} false; then : 12408 $as_echo_n "(cached) " >&6 12409else 12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12411/* end confdefs.h. */ 12412int i; 12413int 12414main () 12415{ 12416 12417 ; 12418 return 0; 12419} 12420_ACEOF 12421if ac_fn_c_try_link "$LINENO"; then : 12422 eval $cacheid=yes 12423else 12424 eval $cacheid=no 12425fi 12426rm -f core conftest.err conftest.$ac_objext \ 12427 conftest$ac_exeext conftest.$ac_ext 12428fi 12429 12430 12431 CFLAGS="$xorg_testset_save_CFLAGS" 12432 12433 eval supported=\$$cacheid 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12435$as_echo "$supported" >&6; } 12436 if test "$supported" = "yes" ; then 12437 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12438 found="yes" 12439 fi 12440 fi 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456xorg_testset_save_CFLAGS="$CFLAGS" 12457 12458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12463 $as_echo_n "(cached) " >&6 12464else 12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12466/* end confdefs.h. */ 12467int i; 12468_ACEOF 12469if ac_fn_c_try_compile "$LINENO"; then : 12470 xorg_cv_cc_flag_unknown_warning_option=yes 12471else 12472 xorg_cv_cc_flag_unknown_warning_option=no 12473fi 12474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12475fi 12476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12479 CFLAGS="$xorg_testset_save_CFLAGS" 12480fi 12481 12482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12485 fi 12486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12490 $as_echo_n "(cached) " >&6 12491else 12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12493/* end confdefs.h. */ 12494int i; 12495_ACEOF 12496if ac_fn_c_try_compile "$LINENO"; then : 12497 xorg_cv_cc_flag_unused_command_line_argument=yes 12498else 12499 xorg_cv_cc_flag_unused_command_line_argument=no 12500fi 12501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12502fi 12503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12506 CFLAGS="$xorg_testset_save_CFLAGS" 12507fi 12508 12509found="no" 12510 12511 if test $found = "no" ; then 12512 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12514 fi 12515 12516 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12518 fi 12519 12520 CFLAGS="$CFLAGS -Wnested-externs" 12521 12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12523$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12524 cacheid=xorg_cv_cc_flag__Wnested_externs 12525 if eval \${$cacheid+:} false; then : 12526 $as_echo_n "(cached) " >&6 12527else 12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12529/* end confdefs.h. */ 12530int i; 12531int 12532main () 12533{ 12534 12535 ; 12536 return 0; 12537} 12538_ACEOF 12539if ac_fn_c_try_link "$LINENO"; then : 12540 eval $cacheid=yes 12541else 12542 eval $cacheid=no 12543fi 12544rm -f core conftest.err conftest.$ac_objext \ 12545 conftest$ac_exeext conftest.$ac_ext 12546fi 12547 12548 12549 CFLAGS="$xorg_testset_save_CFLAGS" 12550 12551 eval supported=\$$cacheid 12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12553$as_echo "$supported" >&6; } 12554 if test "$supported" = "yes" ; then 12555 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12556 found="yes" 12557 fi 12558 fi 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574xorg_testset_save_CFLAGS="$CFLAGS" 12575 12576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12581 $as_echo_n "(cached) " >&6 12582else 12583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12584/* end confdefs.h. */ 12585int i; 12586_ACEOF 12587if ac_fn_c_try_compile "$LINENO"; then : 12588 xorg_cv_cc_flag_unknown_warning_option=yes 12589else 12590 xorg_cv_cc_flag_unknown_warning_option=no 12591fi 12592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12593fi 12594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12597 CFLAGS="$xorg_testset_save_CFLAGS" 12598fi 12599 12600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12603 fi 12604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12608 $as_echo_n "(cached) " >&6 12609else 12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12611/* end confdefs.h. */ 12612int i; 12613_ACEOF 12614if ac_fn_c_try_compile "$LINENO"; then : 12615 xorg_cv_cc_flag_unused_command_line_argument=yes 12616else 12617 xorg_cv_cc_flag_unused_command_line_argument=no 12618fi 12619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12620fi 12621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12624 CFLAGS="$xorg_testset_save_CFLAGS" 12625fi 12626 12627found="no" 12628 12629 if test $found = "no" ; then 12630 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12632 fi 12633 12634 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12636 fi 12637 12638 CFLAGS="$CFLAGS -Wbad-function-cast" 12639 12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12641$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12642 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12643 if eval \${$cacheid+:} false; then : 12644 $as_echo_n "(cached) " >&6 12645else 12646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12647/* end confdefs.h. */ 12648int i; 12649int 12650main () 12651{ 12652 12653 ; 12654 return 0; 12655} 12656_ACEOF 12657if ac_fn_c_try_link "$LINENO"; then : 12658 eval $cacheid=yes 12659else 12660 eval $cacheid=no 12661fi 12662rm -f core conftest.err conftest.$ac_objext \ 12663 conftest$ac_exeext conftest.$ac_ext 12664fi 12665 12666 12667 CFLAGS="$xorg_testset_save_CFLAGS" 12668 12669 eval supported=\$$cacheid 12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12671$as_echo "$supported" >&6; } 12672 if test "$supported" = "yes" ; then 12673 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12674 found="yes" 12675 fi 12676 fi 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692xorg_testset_save_CFLAGS="$CFLAGS" 12693 12694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12697$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12698if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12699 $as_echo_n "(cached) " >&6 12700else 12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12702/* end confdefs.h. */ 12703int i; 12704_ACEOF 12705if ac_fn_c_try_compile "$LINENO"; then : 12706 xorg_cv_cc_flag_unknown_warning_option=yes 12707else 12708 xorg_cv_cc_flag_unknown_warning_option=no 12709fi 12710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12711fi 12712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12713$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12715 CFLAGS="$xorg_testset_save_CFLAGS" 12716fi 12717 12718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12721 fi 12722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12724$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12725if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12726 $as_echo_n "(cached) " >&6 12727else 12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12729/* end confdefs.h. */ 12730int i; 12731_ACEOF 12732if ac_fn_c_try_compile "$LINENO"; then : 12733 xorg_cv_cc_flag_unused_command_line_argument=yes 12734else 12735 xorg_cv_cc_flag_unused_command_line_argument=no 12736fi 12737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12738fi 12739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12740$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12742 CFLAGS="$xorg_testset_save_CFLAGS" 12743fi 12744 12745found="no" 12746 12747 if test $found = "no" ; then 12748 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12750 fi 12751 12752 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12754 fi 12755 12756 CFLAGS="$CFLAGS -Wold-style-definition" 12757 12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12759$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12760 cacheid=xorg_cv_cc_flag__Wold_style_definition 12761 if eval \${$cacheid+:} false; then : 12762 $as_echo_n "(cached) " >&6 12763else 12764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12765/* end confdefs.h. */ 12766int i; 12767int 12768main () 12769{ 12770 12771 ; 12772 return 0; 12773} 12774_ACEOF 12775if ac_fn_c_try_link "$LINENO"; then : 12776 eval $cacheid=yes 12777else 12778 eval $cacheid=no 12779fi 12780rm -f core conftest.err conftest.$ac_objext \ 12781 conftest$ac_exeext conftest.$ac_ext 12782fi 12783 12784 12785 CFLAGS="$xorg_testset_save_CFLAGS" 12786 12787 eval supported=\$$cacheid 12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12789$as_echo "$supported" >&6; } 12790 if test "$supported" = "yes" ; then 12791 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12792 found="yes" 12793 fi 12794 fi 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810xorg_testset_save_CFLAGS="$CFLAGS" 12811 12812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12815$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12816if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12817 $as_echo_n "(cached) " >&6 12818else 12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12820/* end confdefs.h. */ 12821int i; 12822_ACEOF 12823if ac_fn_c_try_compile "$LINENO"; then : 12824 xorg_cv_cc_flag_unknown_warning_option=yes 12825else 12826 xorg_cv_cc_flag_unknown_warning_option=no 12827fi 12828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12829fi 12830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12831$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12833 CFLAGS="$xorg_testset_save_CFLAGS" 12834fi 12835 12836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12839 fi 12840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12842$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12843if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12844 $as_echo_n "(cached) " >&6 12845else 12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12847/* end confdefs.h. */ 12848int i; 12849_ACEOF 12850if ac_fn_c_try_compile "$LINENO"; then : 12851 xorg_cv_cc_flag_unused_command_line_argument=yes 12852else 12853 xorg_cv_cc_flag_unused_command_line_argument=no 12854fi 12855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12856fi 12857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12858$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12860 CFLAGS="$xorg_testset_save_CFLAGS" 12861fi 12862 12863found="no" 12864 12865 if test $found = "no" ; then 12866 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12868 fi 12869 12870 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12872 fi 12873 12874 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 12875 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 12877$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 12878 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 12879 if eval \${$cacheid+:} false; then : 12880 $as_echo_n "(cached) " >&6 12881else 12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12883/* end confdefs.h. */ 12884int i; 12885int 12886main () 12887{ 12888 12889 ; 12890 return 0; 12891} 12892_ACEOF 12893if ac_fn_c_try_link "$LINENO"; then : 12894 eval $cacheid=yes 12895else 12896 eval $cacheid=no 12897fi 12898rm -f core conftest.err conftest.$ac_objext \ 12899 conftest$ac_exeext conftest.$ac_ext 12900fi 12901 12902 12903 CFLAGS="$xorg_testset_save_CFLAGS" 12904 12905 eval supported=\$$cacheid 12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12907$as_echo "$supported" >&6; } 12908 if test "$supported" = "yes" ; then 12909 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 12910 found="yes" 12911 fi 12912 fi 12913 12914 12915 12916 12917 12918# This chunk adds additional warnings that could catch undesired effects. 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932xorg_testset_save_CFLAGS="$CFLAGS" 12933 12934if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12937$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12938if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12939 $as_echo_n "(cached) " >&6 12940else 12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12942/* end confdefs.h. */ 12943int i; 12944_ACEOF 12945if ac_fn_c_try_compile "$LINENO"; then : 12946 xorg_cv_cc_flag_unknown_warning_option=yes 12947else 12948 xorg_cv_cc_flag_unknown_warning_option=no 12949fi 12950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12951fi 12952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12953$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12955 CFLAGS="$xorg_testset_save_CFLAGS" 12956fi 12957 12958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12961 fi 12962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12964$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12965if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12966 $as_echo_n "(cached) " >&6 12967else 12968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12969/* end confdefs.h. */ 12970int i; 12971_ACEOF 12972if ac_fn_c_try_compile "$LINENO"; then : 12973 xorg_cv_cc_flag_unused_command_line_argument=yes 12974else 12975 xorg_cv_cc_flag_unused_command_line_argument=no 12976fi 12977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12978fi 12979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12980$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12982 CFLAGS="$xorg_testset_save_CFLAGS" 12983fi 12984 12985found="no" 12986 12987 if test $found = "no" ; then 12988 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12990 fi 12991 12992 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12994 fi 12995 12996 CFLAGS="$CFLAGS -Wunused" 12997 12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 12999$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13000 cacheid=xorg_cv_cc_flag__Wunused 13001 if eval \${$cacheid+:} false; then : 13002 $as_echo_n "(cached) " >&6 13003else 13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13005/* end confdefs.h. */ 13006int i; 13007int 13008main () 13009{ 13010 13011 ; 13012 return 0; 13013} 13014_ACEOF 13015if ac_fn_c_try_link "$LINENO"; then : 13016 eval $cacheid=yes 13017else 13018 eval $cacheid=no 13019fi 13020rm -f core conftest.err conftest.$ac_objext \ 13021 conftest$ac_exeext conftest.$ac_ext 13022fi 13023 13024 13025 CFLAGS="$xorg_testset_save_CFLAGS" 13026 13027 eval supported=\$$cacheid 13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13029$as_echo "$supported" >&6; } 13030 if test "$supported" = "yes" ; then 13031 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13032 found="yes" 13033 fi 13034 fi 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050xorg_testset_save_CFLAGS="$CFLAGS" 13051 13052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13055$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13056if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13057 $as_echo_n "(cached) " >&6 13058else 13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13060/* end confdefs.h. */ 13061int i; 13062_ACEOF 13063if ac_fn_c_try_compile "$LINENO"; then : 13064 xorg_cv_cc_flag_unknown_warning_option=yes 13065else 13066 xorg_cv_cc_flag_unknown_warning_option=no 13067fi 13068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13069fi 13070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13071$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13073 CFLAGS="$xorg_testset_save_CFLAGS" 13074fi 13075 13076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13079 fi 13080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13082$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13083if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13084 $as_echo_n "(cached) " >&6 13085else 13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13087/* end confdefs.h. */ 13088int i; 13089_ACEOF 13090if ac_fn_c_try_compile "$LINENO"; then : 13091 xorg_cv_cc_flag_unused_command_line_argument=yes 13092else 13093 xorg_cv_cc_flag_unused_command_line_argument=no 13094fi 13095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13096fi 13097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13098$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13100 CFLAGS="$xorg_testset_save_CFLAGS" 13101fi 13102 13103found="no" 13104 13105 if test $found = "no" ; then 13106 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13108 fi 13109 13110 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13112 fi 13113 13114 CFLAGS="$CFLAGS -Wuninitialized" 13115 13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13117$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13118 cacheid=xorg_cv_cc_flag__Wuninitialized 13119 if eval \${$cacheid+:} false; then : 13120 $as_echo_n "(cached) " >&6 13121else 13122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13123/* end confdefs.h. */ 13124int i; 13125int 13126main () 13127{ 13128 13129 ; 13130 return 0; 13131} 13132_ACEOF 13133if ac_fn_c_try_link "$LINENO"; then : 13134 eval $cacheid=yes 13135else 13136 eval $cacheid=no 13137fi 13138rm -f core conftest.err conftest.$ac_objext \ 13139 conftest$ac_exeext conftest.$ac_ext 13140fi 13141 13142 13143 CFLAGS="$xorg_testset_save_CFLAGS" 13144 13145 eval supported=\$$cacheid 13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13147$as_echo "$supported" >&6; } 13148 if test "$supported" = "yes" ; then 13149 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13150 found="yes" 13151 fi 13152 fi 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168xorg_testset_save_CFLAGS="$CFLAGS" 13169 13170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13173$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13174if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13175 $as_echo_n "(cached) " >&6 13176else 13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13178/* end confdefs.h. */ 13179int i; 13180_ACEOF 13181if ac_fn_c_try_compile "$LINENO"; then : 13182 xorg_cv_cc_flag_unknown_warning_option=yes 13183else 13184 xorg_cv_cc_flag_unknown_warning_option=no 13185fi 13186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13187fi 13188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13189$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13191 CFLAGS="$xorg_testset_save_CFLAGS" 13192fi 13193 13194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13197 fi 13198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13200$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13201if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13202 $as_echo_n "(cached) " >&6 13203else 13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13205/* end confdefs.h. */ 13206int i; 13207_ACEOF 13208if ac_fn_c_try_compile "$LINENO"; then : 13209 xorg_cv_cc_flag_unused_command_line_argument=yes 13210else 13211 xorg_cv_cc_flag_unused_command_line_argument=no 13212fi 13213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13214fi 13215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13216$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13218 CFLAGS="$xorg_testset_save_CFLAGS" 13219fi 13220 13221found="no" 13222 13223 if test $found = "no" ; then 13224 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13226 fi 13227 13228 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13230 fi 13231 13232 CFLAGS="$CFLAGS -Wshadow" 13233 13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13235$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13236 cacheid=xorg_cv_cc_flag__Wshadow 13237 if eval \${$cacheid+:} false; then : 13238 $as_echo_n "(cached) " >&6 13239else 13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13241/* end confdefs.h. */ 13242int i; 13243int 13244main () 13245{ 13246 13247 ; 13248 return 0; 13249} 13250_ACEOF 13251if ac_fn_c_try_link "$LINENO"; then : 13252 eval $cacheid=yes 13253else 13254 eval $cacheid=no 13255fi 13256rm -f core conftest.err conftest.$ac_objext \ 13257 conftest$ac_exeext conftest.$ac_ext 13258fi 13259 13260 13261 CFLAGS="$xorg_testset_save_CFLAGS" 13262 13263 eval supported=\$$cacheid 13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13265$as_echo "$supported" >&6; } 13266 if test "$supported" = "yes" ; then 13267 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13268 found="yes" 13269 fi 13270 fi 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286xorg_testset_save_CFLAGS="$CFLAGS" 13287 13288if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13291$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13292if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13293 $as_echo_n "(cached) " >&6 13294else 13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13296/* end confdefs.h. */ 13297int i; 13298_ACEOF 13299if ac_fn_c_try_compile "$LINENO"; then : 13300 xorg_cv_cc_flag_unknown_warning_option=yes 13301else 13302 xorg_cv_cc_flag_unknown_warning_option=no 13303fi 13304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13305fi 13306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13307$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13309 CFLAGS="$xorg_testset_save_CFLAGS" 13310fi 13311 13312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13315 fi 13316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13318$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13319if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13320 $as_echo_n "(cached) " >&6 13321else 13322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13323/* end confdefs.h. */ 13324int i; 13325_ACEOF 13326if ac_fn_c_try_compile "$LINENO"; then : 13327 xorg_cv_cc_flag_unused_command_line_argument=yes 13328else 13329 xorg_cv_cc_flag_unused_command_line_argument=no 13330fi 13331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13332fi 13333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13334$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13336 CFLAGS="$xorg_testset_save_CFLAGS" 13337fi 13338 13339found="no" 13340 13341 if test $found = "no" ; then 13342 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13344 fi 13345 13346 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13348 fi 13349 13350 CFLAGS="$CFLAGS -Wcast-qual" 13351 13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13353$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13354 cacheid=xorg_cv_cc_flag__Wcast_qual 13355 if eval \${$cacheid+:} false; then : 13356 $as_echo_n "(cached) " >&6 13357else 13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13359/* end confdefs.h. */ 13360int i; 13361int 13362main () 13363{ 13364 13365 ; 13366 return 0; 13367} 13368_ACEOF 13369if ac_fn_c_try_link "$LINENO"; then : 13370 eval $cacheid=yes 13371else 13372 eval $cacheid=no 13373fi 13374rm -f core conftest.err conftest.$ac_objext \ 13375 conftest$ac_exeext conftest.$ac_ext 13376fi 13377 13378 13379 CFLAGS="$xorg_testset_save_CFLAGS" 13380 13381 eval supported=\$$cacheid 13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13383$as_echo "$supported" >&6; } 13384 if test "$supported" = "yes" ; then 13385 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13386 found="yes" 13387 fi 13388 fi 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404xorg_testset_save_CFLAGS="$CFLAGS" 13405 13406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13411 $as_echo_n "(cached) " >&6 13412else 13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13414/* end confdefs.h. */ 13415int i; 13416_ACEOF 13417if ac_fn_c_try_compile "$LINENO"; then : 13418 xorg_cv_cc_flag_unknown_warning_option=yes 13419else 13420 xorg_cv_cc_flag_unknown_warning_option=no 13421fi 13422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13423fi 13424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13427 CFLAGS="$xorg_testset_save_CFLAGS" 13428fi 13429 13430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13433 fi 13434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13438 $as_echo_n "(cached) " >&6 13439else 13440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13441/* end confdefs.h. */ 13442int i; 13443_ACEOF 13444if ac_fn_c_try_compile "$LINENO"; then : 13445 xorg_cv_cc_flag_unused_command_line_argument=yes 13446else 13447 xorg_cv_cc_flag_unused_command_line_argument=no 13448fi 13449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13450fi 13451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13454 CFLAGS="$xorg_testset_save_CFLAGS" 13455fi 13456 13457found="no" 13458 13459 if test $found = "no" ; then 13460 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13462 fi 13463 13464 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13466 fi 13467 13468 CFLAGS="$CFLAGS -Wmissing-noreturn" 13469 13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13471$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13472 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13473 if eval \${$cacheid+:} false; then : 13474 $as_echo_n "(cached) " >&6 13475else 13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13477/* end confdefs.h. */ 13478int i; 13479int 13480main () 13481{ 13482 13483 ; 13484 return 0; 13485} 13486_ACEOF 13487if ac_fn_c_try_link "$LINENO"; then : 13488 eval $cacheid=yes 13489else 13490 eval $cacheid=no 13491fi 13492rm -f core conftest.err conftest.$ac_objext \ 13493 conftest$ac_exeext conftest.$ac_ext 13494fi 13495 13496 13497 CFLAGS="$xorg_testset_save_CFLAGS" 13498 13499 eval supported=\$$cacheid 13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13501$as_echo "$supported" >&6; } 13502 if test "$supported" = "yes" ; then 13503 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13504 found="yes" 13505 fi 13506 fi 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522xorg_testset_save_CFLAGS="$CFLAGS" 13523 13524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13527$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13528if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13529 $as_echo_n "(cached) " >&6 13530else 13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13532/* end confdefs.h. */ 13533int i; 13534_ACEOF 13535if ac_fn_c_try_compile "$LINENO"; then : 13536 xorg_cv_cc_flag_unknown_warning_option=yes 13537else 13538 xorg_cv_cc_flag_unknown_warning_option=no 13539fi 13540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13541fi 13542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13543$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13545 CFLAGS="$xorg_testset_save_CFLAGS" 13546fi 13547 13548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13551 fi 13552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13554$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13555if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13556 $as_echo_n "(cached) " >&6 13557else 13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13559/* end confdefs.h. */ 13560int i; 13561_ACEOF 13562if ac_fn_c_try_compile "$LINENO"; then : 13563 xorg_cv_cc_flag_unused_command_line_argument=yes 13564else 13565 xorg_cv_cc_flag_unused_command_line_argument=no 13566fi 13567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13568fi 13569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13570$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13572 CFLAGS="$xorg_testset_save_CFLAGS" 13573fi 13574 13575found="no" 13576 13577 if test $found = "no" ; then 13578 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13580 fi 13581 13582 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13584 fi 13585 13586 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13587 13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13589$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13590 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13591 if eval \${$cacheid+:} false; then : 13592 $as_echo_n "(cached) " >&6 13593else 13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13595/* end confdefs.h. */ 13596int i; 13597int 13598main () 13599{ 13600 13601 ; 13602 return 0; 13603} 13604_ACEOF 13605if ac_fn_c_try_link "$LINENO"; then : 13606 eval $cacheid=yes 13607else 13608 eval $cacheid=no 13609fi 13610rm -f core conftest.err conftest.$ac_objext \ 13611 conftest$ac_exeext conftest.$ac_ext 13612fi 13613 13614 13615 CFLAGS="$xorg_testset_save_CFLAGS" 13616 13617 eval supported=\$$cacheid 13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13619$as_echo "$supported" >&6; } 13620 if test "$supported" = "yes" ; then 13621 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13622 found="yes" 13623 fi 13624 fi 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640xorg_testset_save_CFLAGS="$CFLAGS" 13641 13642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13645$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13646if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13647 $as_echo_n "(cached) " >&6 13648else 13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13650/* end confdefs.h. */ 13651int i; 13652_ACEOF 13653if ac_fn_c_try_compile "$LINENO"; then : 13654 xorg_cv_cc_flag_unknown_warning_option=yes 13655else 13656 xorg_cv_cc_flag_unknown_warning_option=no 13657fi 13658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13659fi 13660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13661$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13663 CFLAGS="$xorg_testset_save_CFLAGS" 13664fi 13665 13666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13669 fi 13670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13672$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13673if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13674 $as_echo_n "(cached) " >&6 13675else 13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13677/* end confdefs.h. */ 13678int i; 13679_ACEOF 13680if ac_fn_c_try_compile "$LINENO"; then : 13681 xorg_cv_cc_flag_unused_command_line_argument=yes 13682else 13683 xorg_cv_cc_flag_unused_command_line_argument=no 13684fi 13685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13686fi 13687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13688$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13690 CFLAGS="$xorg_testset_save_CFLAGS" 13691fi 13692 13693found="no" 13694 13695 if test $found = "no" ; then 13696 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13698 fi 13699 13700 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13702 fi 13703 13704 CFLAGS="$CFLAGS -Wredundant-decls" 13705 13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13707$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13708 cacheid=xorg_cv_cc_flag__Wredundant_decls 13709 if eval \${$cacheid+:} false; then : 13710 $as_echo_n "(cached) " >&6 13711else 13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13713/* end confdefs.h. */ 13714int i; 13715int 13716main () 13717{ 13718 13719 ; 13720 return 0; 13721} 13722_ACEOF 13723if ac_fn_c_try_link "$LINENO"; then : 13724 eval $cacheid=yes 13725else 13726 eval $cacheid=no 13727fi 13728rm -f core conftest.err conftest.$ac_objext \ 13729 conftest$ac_exeext conftest.$ac_ext 13730fi 13731 13732 13733 CFLAGS="$xorg_testset_save_CFLAGS" 13734 13735 eval supported=\$$cacheid 13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13737$as_echo "$supported" >&6; } 13738 if test "$supported" = "yes" ; then 13739 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13740 found="yes" 13741 fi 13742 fi 13743 13744 13745 13746# These are currently disabled because they are noisy. They will be enabled 13747# in the future once the codebase is sufficiently modernized to silence 13748# them. For now, I don't want them to drown out the other warnings. 13749# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 13750# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13751# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13752 13753# Turn some warnings into errors, so we don't accidently get successful builds 13754# when there are problems that should be fixed. 13755 13756if test "x$SELECTIVE_WERROR" = "xyes" ; then 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770xorg_testset_save_CFLAGS="$CFLAGS" 13771 13772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13777 $as_echo_n "(cached) " >&6 13778else 13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13780/* end confdefs.h. */ 13781int i; 13782_ACEOF 13783if ac_fn_c_try_compile "$LINENO"; then : 13784 xorg_cv_cc_flag_unknown_warning_option=yes 13785else 13786 xorg_cv_cc_flag_unknown_warning_option=no 13787fi 13788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13789fi 13790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13793 CFLAGS="$xorg_testset_save_CFLAGS" 13794fi 13795 13796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13799 fi 13800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13804 $as_echo_n "(cached) " >&6 13805else 13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13807/* end confdefs.h. */ 13808int i; 13809_ACEOF 13810if ac_fn_c_try_compile "$LINENO"; then : 13811 xorg_cv_cc_flag_unused_command_line_argument=yes 13812else 13813 xorg_cv_cc_flag_unused_command_line_argument=no 13814fi 13815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13816fi 13817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13820 CFLAGS="$xorg_testset_save_CFLAGS" 13821fi 13822 13823found="no" 13824 13825 if test $found = "no" ; then 13826 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13828 fi 13829 13830 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13832 fi 13833 13834 CFLAGS="$CFLAGS -Werror=implicit" 13835 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 13837$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 13838 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 13839 if eval \${$cacheid+:} false; then : 13840 $as_echo_n "(cached) " >&6 13841else 13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13843/* end confdefs.h. */ 13844int i; 13845int 13846main () 13847{ 13848 13849 ; 13850 return 0; 13851} 13852_ACEOF 13853if ac_fn_c_try_link "$LINENO"; then : 13854 eval $cacheid=yes 13855else 13856 eval $cacheid=no 13857fi 13858rm -f core conftest.err conftest.$ac_objext \ 13859 conftest$ac_exeext conftest.$ac_ext 13860fi 13861 13862 13863 CFLAGS="$xorg_testset_save_CFLAGS" 13864 13865 eval supported=\$$cacheid 13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13867$as_echo "$supported" >&6; } 13868 if test "$supported" = "yes" ; then 13869 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 13870 found="yes" 13871 fi 13872 fi 13873 13874 if test $found = "no" ; then 13875 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13877 fi 13878 13879 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13881 fi 13882 13883 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13884 13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 13886$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 13887 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 13888 if eval \${$cacheid+:} false; then : 13889 $as_echo_n "(cached) " >&6 13890else 13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13892/* end confdefs.h. */ 13893int i; 13894int 13895main () 13896{ 13897 13898 ; 13899 return 0; 13900} 13901_ACEOF 13902if ac_fn_c_try_link "$LINENO"; then : 13903 eval $cacheid=yes 13904else 13905 eval $cacheid=no 13906fi 13907rm -f core conftest.err conftest.$ac_objext \ 13908 conftest$ac_exeext conftest.$ac_ext 13909fi 13910 13911 13912 CFLAGS="$xorg_testset_save_CFLAGS" 13913 13914 eval supported=\$$cacheid 13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13916$as_echo "$supported" >&6; } 13917 if test "$supported" = "yes" ; then 13918 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13919 found="yes" 13920 fi 13921 fi 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937xorg_testset_save_CFLAGS="$CFLAGS" 13938 13939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13942$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13943if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13944 $as_echo_n "(cached) " >&6 13945else 13946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13947/* end confdefs.h. */ 13948int i; 13949_ACEOF 13950if ac_fn_c_try_compile "$LINENO"; then : 13951 xorg_cv_cc_flag_unknown_warning_option=yes 13952else 13953 xorg_cv_cc_flag_unknown_warning_option=no 13954fi 13955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13956fi 13957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13958$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13960 CFLAGS="$xorg_testset_save_CFLAGS" 13961fi 13962 13963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13966 fi 13967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13969$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13970if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13971 $as_echo_n "(cached) " >&6 13972else 13973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13974/* end confdefs.h. */ 13975int i; 13976_ACEOF 13977if ac_fn_c_try_compile "$LINENO"; then : 13978 xorg_cv_cc_flag_unused_command_line_argument=yes 13979else 13980 xorg_cv_cc_flag_unused_command_line_argument=no 13981fi 13982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13983fi 13984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13985$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13987 CFLAGS="$xorg_testset_save_CFLAGS" 13988fi 13989 13990found="no" 13991 13992 if test $found = "no" ; then 13993 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13995 fi 13996 13997 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13999 fi 14000 14001 CFLAGS="$CFLAGS -Werror=nonnull" 14002 14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14004$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14005 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 14006 if eval \${$cacheid+:} false; then : 14007 $as_echo_n "(cached) " >&6 14008else 14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14010/* end confdefs.h. */ 14011int i; 14012int 14013main () 14014{ 14015 14016 ; 14017 return 0; 14018} 14019_ACEOF 14020if ac_fn_c_try_link "$LINENO"; then : 14021 eval $cacheid=yes 14022else 14023 eval $cacheid=no 14024fi 14025rm -f core conftest.err conftest.$ac_objext \ 14026 conftest$ac_exeext conftest.$ac_ext 14027fi 14028 14029 14030 CFLAGS="$xorg_testset_save_CFLAGS" 14031 14032 eval supported=\$$cacheid 14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14034$as_echo "$supported" >&6; } 14035 if test "$supported" = "yes" ; then 14036 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14037 found="yes" 14038 fi 14039 fi 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055xorg_testset_save_CFLAGS="$CFLAGS" 14056 14057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14060$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14061if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14062 $as_echo_n "(cached) " >&6 14063else 14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14065/* end confdefs.h. */ 14066int i; 14067_ACEOF 14068if ac_fn_c_try_compile "$LINENO"; then : 14069 xorg_cv_cc_flag_unknown_warning_option=yes 14070else 14071 xorg_cv_cc_flag_unknown_warning_option=no 14072fi 14073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14074fi 14075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14076$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14078 CFLAGS="$xorg_testset_save_CFLAGS" 14079fi 14080 14081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14084 fi 14085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14087$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14088if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14089 $as_echo_n "(cached) " >&6 14090else 14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14092/* end confdefs.h. */ 14093int i; 14094_ACEOF 14095if ac_fn_c_try_compile "$LINENO"; then : 14096 xorg_cv_cc_flag_unused_command_line_argument=yes 14097else 14098 xorg_cv_cc_flag_unused_command_line_argument=no 14099fi 14100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14101fi 14102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14103$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14105 CFLAGS="$xorg_testset_save_CFLAGS" 14106fi 14107 14108found="no" 14109 14110 if test $found = "no" ; then 14111 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14113 fi 14114 14115 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14117 fi 14118 14119 CFLAGS="$CFLAGS -Werror=init-self" 14120 14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14122$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14123 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14124 if eval \${$cacheid+:} false; then : 14125 $as_echo_n "(cached) " >&6 14126else 14127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14128/* end confdefs.h. */ 14129int i; 14130int 14131main () 14132{ 14133 14134 ; 14135 return 0; 14136} 14137_ACEOF 14138if ac_fn_c_try_link "$LINENO"; then : 14139 eval $cacheid=yes 14140else 14141 eval $cacheid=no 14142fi 14143rm -f core conftest.err conftest.$ac_objext \ 14144 conftest$ac_exeext conftest.$ac_ext 14145fi 14146 14147 14148 CFLAGS="$xorg_testset_save_CFLAGS" 14149 14150 eval supported=\$$cacheid 14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14152$as_echo "$supported" >&6; } 14153 if test "$supported" = "yes" ; then 14154 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14155 found="yes" 14156 fi 14157 fi 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173xorg_testset_save_CFLAGS="$CFLAGS" 14174 14175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14180 $as_echo_n "(cached) " >&6 14181else 14182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14183/* end confdefs.h. */ 14184int i; 14185_ACEOF 14186if ac_fn_c_try_compile "$LINENO"; then : 14187 xorg_cv_cc_flag_unknown_warning_option=yes 14188else 14189 xorg_cv_cc_flag_unknown_warning_option=no 14190fi 14191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14192fi 14193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14196 CFLAGS="$xorg_testset_save_CFLAGS" 14197fi 14198 14199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14202 fi 14203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14207 $as_echo_n "(cached) " >&6 14208else 14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14210/* end confdefs.h. */ 14211int i; 14212_ACEOF 14213if ac_fn_c_try_compile "$LINENO"; then : 14214 xorg_cv_cc_flag_unused_command_line_argument=yes 14215else 14216 xorg_cv_cc_flag_unused_command_line_argument=no 14217fi 14218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14219fi 14220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14223 CFLAGS="$xorg_testset_save_CFLAGS" 14224fi 14225 14226found="no" 14227 14228 if test $found = "no" ; then 14229 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14231 fi 14232 14233 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14235 fi 14236 14237 CFLAGS="$CFLAGS -Werror=main" 14238 14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14240$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14241 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14242 if eval \${$cacheid+:} false; then : 14243 $as_echo_n "(cached) " >&6 14244else 14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14246/* end confdefs.h. */ 14247int i; 14248int 14249main () 14250{ 14251 14252 ; 14253 return 0; 14254} 14255_ACEOF 14256if ac_fn_c_try_link "$LINENO"; then : 14257 eval $cacheid=yes 14258else 14259 eval $cacheid=no 14260fi 14261rm -f core conftest.err conftest.$ac_objext \ 14262 conftest$ac_exeext conftest.$ac_ext 14263fi 14264 14265 14266 CFLAGS="$xorg_testset_save_CFLAGS" 14267 14268 eval supported=\$$cacheid 14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14270$as_echo "$supported" >&6; } 14271 if test "$supported" = "yes" ; then 14272 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14273 found="yes" 14274 fi 14275 fi 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291xorg_testset_save_CFLAGS="$CFLAGS" 14292 14293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14298 $as_echo_n "(cached) " >&6 14299else 14300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14301/* end confdefs.h. */ 14302int i; 14303_ACEOF 14304if ac_fn_c_try_compile "$LINENO"; then : 14305 xorg_cv_cc_flag_unknown_warning_option=yes 14306else 14307 xorg_cv_cc_flag_unknown_warning_option=no 14308fi 14309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14310fi 14311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14314 CFLAGS="$xorg_testset_save_CFLAGS" 14315fi 14316 14317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14320 fi 14321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14325 $as_echo_n "(cached) " >&6 14326else 14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14328/* end confdefs.h. */ 14329int i; 14330_ACEOF 14331if ac_fn_c_try_compile "$LINENO"; then : 14332 xorg_cv_cc_flag_unused_command_line_argument=yes 14333else 14334 xorg_cv_cc_flag_unused_command_line_argument=no 14335fi 14336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14337fi 14338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14341 CFLAGS="$xorg_testset_save_CFLAGS" 14342fi 14343 14344found="no" 14345 14346 if test $found = "no" ; then 14347 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14349 fi 14350 14351 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14353 fi 14354 14355 CFLAGS="$CFLAGS -Werror=missing-braces" 14356 14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14358$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14359 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14360 if eval \${$cacheid+:} false; then : 14361 $as_echo_n "(cached) " >&6 14362else 14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14364/* end confdefs.h. */ 14365int i; 14366int 14367main () 14368{ 14369 14370 ; 14371 return 0; 14372} 14373_ACEOF 14374if ac_fn_c_try_link "$LINENO"; then : 14375 eval $cacheid=yes 14376else 14377 eval $cacheid=no 14378fi 14379rm -f core conftest.err conftest.$ac_objext \ 14380 conftest$ac_exeext conftest.$ac_ext 14381fi 14382 14383 14384 CFLAGS="$xorg_testset_save_CFLAGS" 14385 14386 eval supported=\$$cacheid 14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14388$as_echo "$supported" >&6; } 14389 if test "$supported" = "yes" ; then 14390 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14391 found="yes" 14392 fi 14393 fi 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409xorg_testset_save_CFLAGS="$CFLAGS" 14410 14411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14416 $as_echo_n "(cached) " >&6 14417else 14418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14419/* end confdefs.h. */ 14420int i; 14421_ACEOF 14422if ac_fn_c_try_compile "$LINENO"; then : 14423 xorg_cv_cc_flag_unknown_warning_option=yes 14424else 14425 xorg_cv_cc_flag_unknown_warning_option=no 14426fi 14427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14428fi 14429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14432 CFLAGS="$xorg_testset_save_CFLAGS" 14433fi 14434 14435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14438 fi 14439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14443 $as_echo_n "(cached) " >&6 14444else 14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14446/* end confdefs.h. */ 14447int i; 14448_ACEOF 14449if ac_fn_c_try_compile "$LINENO"; then : 14450 xorg_cv_cc_flag_unused_command_line_argument=yes 14451else 14452 xorg_cv_cc_flag_unused_command_line_argument=no 14453fi 14454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14455fi 14456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14459 CFLAGS="$xorg_testset_save_CFLAGS" 14460fi 14461 14462found="no" 14463 14464 if test $found = "no" ; then 14465 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14467 fi 14468 14469 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14471 fi 14472 14473 CFLAGS="$CFLAGS -Werror=sequence-point" 14474 14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14476$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14477 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 14478 if eval \${$cacheid+:} false; then : 14479 $as_echo_n "(cached) " >&6 14480else 14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14482/* end confdefs.h. */ 14483int i; 14484int 14485main () 14486{ 14487 14488 ; 14489 return 0; 14490} 14491_ACEOF 14492if ac_fn_c_try_link "$LINENO"; then : 14493 eval $cacheid=yes 14494else 14495 eval $cacheid=no 14496fi 14497rm -f core conftest.err conftest.$ac_objext \ 14498 conftest$ac_exeext conftest.$ac_ext 14499fi 14500 14501 14502 CFLAGS="$xorg_testset_save_CFLAGS" 14503 14504 eval supported=\$$cacheid 14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14506$as_echo "$supported" >&6; } 14507 if test "$supported" = "yes" ; then 14508 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14509 found="yes" 14510 fi 14511 fi 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527xorg_testset_save_CFLAGS="$CFLAGS" 14528 14529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14532$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14533if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14534 $as_echo_n "(cached) " >&6 14535else 14536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14537/* end confdefs.h. */ 14538int i; 14539_ACEOF 14540if ac_fn_c_try_compile "$LINENO"; then : 14541 xorg_cv_cc_flag_unknown_warning_option=yes 14542else 14543 xorg_cv_cc_flag_unknown_warning_option=no 14544fi 14545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14546fi 14547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14548$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14550 CFLAGS="$xorg_testset_save_CFLAGS" 14551fi 14552 14553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14556 fi 14557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14559$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14560if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14561 $as_echo_n "(cached) " >&6 14562else 14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14564/* end confdefs.h. */ 14565int i; 14566_ACEOF 14567if ac_fn_c_try_compile "$LINENO"; then : 14568 xorg_cv_cc_flag_unused_command_line_argument=yes 14569else 14570 xorg_cv_cc_flag_unused_command_line_argument=no 14571fi 14572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14573fi 14574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14575$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14577 CFLAGS="$xorg_testset_save_CFLAGS" 14578fi 14579 14580found="no" 14581 14582 if test $found = "no" ; then 14583 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14585 fi 14586 14587 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14589 fi 14590 14591 CFLAGS="$CFLAGS -Werror=return-type" 14592 14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14594$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14595 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 14596 if eval \${$cacheid+:} false; then : 14597 $as_echo_n "(cached) " >&6 14598else 14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14600/* end confdefs.h. */ 14601int i; 14602int 14603main () 14604{ 14605 14606 ; 14607 return 0; 14608} 14609_ACEOF 14610if ac_fn_c_try_link "$LINENO"; then : 14611 eval $cacheid=yes 14612else 14613 eval $cacheid=no 14614fi 14615rm -f core conftest.err conftest.$ac_objext \ 14616 conftest$ac_exeext conftest.$ac_ext 14617fi 14618 14619 14620 CFLAGS="$xorg_testset_save_CFLAGS" 14621 14622 eval supported=\$$cacheid 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14624$as_echo "$supported" >&6; } 14625 if test "$supported" = "yes" ; then 14626 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14627 found="yes" 14628 fi 14629 fi 14630 14631 if test $found = "no" ; then 14632 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14634 fi 14635 14636 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14638 fi 14639 14640 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14641 14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14643$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14644 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 14645 if eval \${$cacheid+:} false; then : 14646 $as_echo_n "(cached) " >&6 14647else 14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14649/* end confdefs.h. */ 14650int i; 14651int 14652main () 14653{ 14654 14655 ; 14656 return 0; 14657} 14658_ACEOF 14659if ac_fn_c_try_link "$LINENO"; then : 14660 eval $cacheid=yes 14661else 14662 eval $cacheid=no 14663fi 14664rm -f core conftest.err conftest.$ac_objext \ 14665 conftest$ac_exeext conftest.$ac_ext 14666fi 14667 14668 14669 CFLAGS="$xorg_testset_save_CFLAGS" 14670 14671 eval supported=\$$cacheid 14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14673$as_echo "$supported" >&6; } 14674 if test "$supported" = "yes" ; then 14675 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14676 found="yes" 14677 fi 14678 fi 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694xorg_testset_save_CFLAGS="$CFLAGS" 14695 14696if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14699$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14700if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14701 $as_echo_n "(cached) " >&6 14702else 14703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14704/* end confdefs.h. */ 14705int i; 14706_ACEOF 14707if ac_fn_c_try_compile "$LINENO"; then : 14708 xorg_cv_cc_flag_unknown_warning_option=yes 14709else 14710 xorg_cv_cc_flag_unknown_warning_option=no 14711fi 14712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14713fi 14714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14715$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14717 CFLAGS="$xorg_testset_save_CFLAGS" 14718fi 14719 14720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14723 fi 14724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14726$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14727if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14728 $as_echo_n "(cached) " >&6 14729else 14730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14731/* end confdefs.h. */ 14732int i; 14733_ACEOF 14734if ac_fn_c_try_compile "$LINENO"; then : 14735 xorg_cv_cc_flag_unused_command_line_argument=yes 14736else 14737 xorg_cv_cc_flag_unused_command_line_argument=no 14738fi 14739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14740fi 14741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14742$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14744 CFLAGS="$xorg_testset_save_CFLAGS" 14745fi 14746 14747found="no" 14748 14749 if test $found = "no" ; then 14750 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14752 fi 14753 14754 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14756 fi 14757 14758 CFLAGS="$CFLAGS -Werror=trigraphs" 14759 14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14761$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14762 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 14763 if eval \${$cacheid+:} false; then : 14764 $as_echo_n "(cached) " >&6 14765else 14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14767/* end confdefs.h. */ 14768int i; 14769int 14770main () 14771{ 14772 14773 ; 14774 return 0; 14775} 14776_ACEOF 14777if ac_fn_c_try_link "$LINENO"; then : 14778 eval $cacheid=yes 14779else 14780 eval $cacheid=no 14781fi 14782rm -f core conftest.err conftest.$ac_objext \ 14783 conftest$ac_exeext conftest.$ac_ext 14784fi 14785 14786 14787 CFLAGS="$xorg_testset_save_CFLAGS" 14788 14789 eval supported=\$$cacheid 14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14791$as_echo "$supported" >&6; } 14792 if test "$supported" = "yes" ; then 14793 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14794 found="yes" 14795 fi 14796 fi 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812xorg_testset_save_CFLAGS="$CFLAGS" 14813 14814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14817$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14818if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14819 $as_echo_n "(cached) " >&6 14820else 14821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14822/* end confdefs.h. */ 14823int i; 14824_ACEOF 14825if ac_fn_c_try_compile "$LINENO"; then : 14826 xorg_cv_cc_flag_unknown_warning_option=yes 14827else 14828 xorg_cv_cc_flag_unknown_warning_option=no 14829fi 14830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14831fi 14832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14833$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14834 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14835 CFLAGS="$xorg_testset_save_CFLAGS" 14836fi 14837 14838if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14841 fi 14842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14844$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14845if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14846 $as_echo_n "(cached) " >&6 14847else 14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14849/* end confdefs.h. */ 14850int i; 14851_ACEOF 14852if ac_fn_c_try_compile "$LINENO"; then : 14853 xorg_cv_cc_flag_unused_command_line_argument=yes 14854else 14855 xorg_cv_cc_flag_unused_command_line_argument=no 14856fi 14857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14858fi 14859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14860$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14862 CFLAGS="$xorg_testset_save_CFLAGS" 14863fi 14864 14865found="no" 14866 14867 if test $found = "no" ; then 14868 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14870 fi 14871 14872 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14874 fi 14875 14876 CFLAGS="$CFLAGS -Werror=array-bounds" 14877 14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 14879$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 14880 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 14881 if eval \${$cacheid+:} false; then : 14882 $as_echo_n "(cached) " >&6 14883else 14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14885/* end confdefs.h. */ 14886int i; 14887int 14888main () 14889{ 14890 14891 ; 14892 return 0; 14893} 14894_ACEOF 14895if ac_fn_c_try_link "$LINENO"; then : 14896 eval $cacheid=yes 14897else 14898 eval $cacheid=no 14899fi 14900rm -f core conftest.err conftest.$ac_objext \ 14901 conftest$ac_exeext conftest.$ac_ext 14902fi 14903 14904 14905 CFLAGS="$xorg_testset_save_CFLAGS" 14906 14907 eval supported=\$$cacheid 14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14909$as_echo "$supported" >&6; } 14910 if test "$supported" = "yes" ; then 14911 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 14912 found="yes" 14913 fi 14914 fi 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930xorg_testset_save_CFLAGS="$CFLAGS" 14931 14932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14935$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14936if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14937 $as_echo_n "(cached) " >&6 14938else 14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14940/* end confdefs.h. */ 14941int i; 14942_ACEOF 14943if ac_fn_c_try_compile "$LINENO"; then : 14944 xorg_cv_cc_flag_unknown_warning_option=yes 14945else 14946 xorg_cv_cc_flag_unknown_warning_option=no 14947fi 14948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14949fi 14950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14951$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14953 CFLAGS="$xorg_testset_save_CFLAGS" 14954fi 14955 14956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14959 fi 14960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14962$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14963if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14964 $as_echo_n "(cached) " >&6 14965else 14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14967/* end confdefs.h. */ 14968int i; 14969_ACEOF 14970if ac_fn_c_try_compile "$LINENO"; then : 14971 xorg_cv_cc_flag_unused_command_line_argument=yes 14972else 14973 xorg_cv_cc_flag_unused_command_line_argument=no 14974fi 14975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14976fi 14977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14978$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14980 CFLAGS="$xorg_testset_save_CFLAGS" 14981fi 14982 14983found="no" 14984 14985 if test $found = "no" ; then 14986 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14988 fi 14989 14990 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14992 fi 14993 14994 CFLAGS="$CFLAGS -Werror=write-strings" 14995 14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 14997$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 14998 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 14999 if eval \${$cacheid+:} false; then : 15000 $as_echo_n "(cached) " >&6 15001else 15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15003/* end confdefs.h. */ 15004int i; 15005int 15006main () 15007{ 15008 15009 ; 15010 return 0; 15011} 15012_ACEOF 15013if ac_fn_c_try_link "$LINENO"; then : 15014 eval $cacheid=yes 15015else 15016 eval $cacheid=no 15017fi 15018rm -f core conftest.err conftest.$ac_objext \ 15019 conftest$ac_exeext conftest.$ac_ext 15020fi 15021 15022 15023 CFLAGS="$xorg_testset_save_CFLAGS" 15024 15025 eval supported=\$$cacheid 15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15027$as_echo "$supported" >&6; } 15028 if test "$supported" = "yes" ; then 15029 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15030 found="yes" 15031 fi 15032 fi 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048xorg_testset_save_CFLAGS="$CFLAGS" 15049 15050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15053$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15054if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15055 $as_echo_n "(cached) " >&6 15056else 15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15058/* end confdefs.h. */ 15059int i; 15060_ACEOF 15061if ac_fn_c_try_compile "$LINENO"; then : 15062 xorg_cv_cc_flag_unknown_warning_option=yes 15063else 15064 xorg_cv_cc_flag_unknown_warning_option=no 15065fi 15066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15067fi 15068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15069$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15071 CFLAGS="$xorg_testset_save_CFLAGS" 15072fi 15073 15074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15077 fi 15078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15080$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15081if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15082 $as_echo_n "(cached) " >&6 15083else 15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15085/* end confdefs.h. */ 15086int i; 15087_ACEOF 15088if ac_fn_c_try_compile "$LINENO"; then : 15089 xorg_cv_cc_flag_unused_command_line_argument=yes 15090else 15091 xorg_cv_cc_flag_unused_command_line_argument=no 15092fi 15093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15094fi 15095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15096$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15098 CFLAGS="$xorg_testset_save_CFLAGS" 15099fi 15100 15101found="no" 15102 15103 if test $found = "no" ; then 15104 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15106 fi 15107 15108 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15110 fi 15111 15112 CFLAGS="$CFLAGS -Werror=address" 15113 15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15115$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15116 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15117 if eval \${$cacheid+:} false; then : 15118 $as_echo_n "(cached) " >&6 15119else 15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15121/* end confdefs.h. */ 15122int i; 15123int 15124main () 15125{ 15126 15127 ; 15128 return 0; 15129} 15130_ACEOF 15131if ac_fn_c_try_link "$LINENO"; then : 15132 eval $cacheid=yes 15133else 15134 eval $cacheid=no 15135fi 15136rm -f core conftest.err conftest.$ac_objext \ 15137 conftest$ac_exeext conftest.$ac_ext 15138fi 15139 15140 15141 CFLAGS="$xorg_testset_save_CFLAGS" 15142 15143 eval supported=\$$cacheid 15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15145$as_echo "$supported" >&6; } 15146 if test "$supported" = "yes" ; then 15147 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15148 found="yes" 15149 fi 15150 fi 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166xorg_testset_save_CFLAGS="$CFLAGS" 15167 15168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15171$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15172if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15173 $as_echo_n "(cached) " >&6 15174else 15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15176/* end confdefs.h. */ 15177int i; 15178_ACEOF 15179if ac_fn_c_try_compile "$LINENO"; then : 15180 xorg_cv_cc_flag_unknown_warning_option=yes 15181else 15182 xorg_cv_cc_flag_unknown_warning_option=no 15183fi 15184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15185fi 15186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15187$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15189 CFLAGS="$xorg_testset_save_CFLAGS" 15190fi 15191 15192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15195 fi 15196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15198$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15199if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15200 $as_echo_n "(cached) " >&6 15201else 15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15203/* end confdefs.h. */ 15204int i; 15205_ACEOF 15206if ac_fn_c_try_compile "$LINENO"; then : 15207 xorg_cv_cc_flag_unused_command_line_argument=yes 15208else 15209 xorg_cv_cc_flag_unused_command_line_argument=no 15210fi 15211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15212fi 15213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15214$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15216 CFLAGS="$xorg_testset_save_CFLAGS" 15217fi 15218 15219found="no" 15220 15221 if test $found = "no" ; then 15222 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15224 fi 15225 15226 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15228 fi 15229 15230 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15231 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15233$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15234 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15235 if eval \${$cacheid+:} false; then : 15236 $as_echo_n "(cached) " >&6 15237else 15238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15239/* end confdefs.h. */ 15240int i; 15241int 15242main () 15243{ 15244 15245 ; 15246 return 0; 15247} 15248_ACEOF 15249if ac_fn_c_try_link "$LINENO"; then : 15250 eval $cacheid=yes 15251else 15252 eval $cacheid=no 15253fi 15254rm -f core conftest.err conftest.$ac_objext \ 15255 conftest$ac_exeext conftest.$ac_ext 15256fi 15257 15258 15259 CFLAGS="$xorg_testset_save_CFLAGS" 15260 15261 eval supported=\$$cacheid 15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15263$as_echo "$supported" >&6; } 15264 if test "$supported" = "yes" ; then 15265 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15266 found="yes" 15267 fi 15268 fi 15269 15270 if test $found = "no" ; then 15271 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15273 fi 15274 15275 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15277 fi 15278 15279 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15280 15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15282$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15283 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15284 if eval \${$cacheid+:} false; then : 15285 $as_echo_n "(cached) " >&6 15286else 15287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15288/* end confdefs.h. */ 15289int i; 15290int 15291main () 15292{ 15293 15294 ; 15295 return 0; 15296} 15297_ACEOF 15298if ac_fn_c_try_link "$LINENO"; then : 15299 eval $cacheid=yes 15300else 15301 eval $cacheid=no 15302fi 15303rm -f core conftest.err conftest.$ac_objext \ 15304 conftest$ac_exeext conftest.$ac_ext 15305fi 15306 15307 15308 CFLAGS="$xorg_testset_save_CFLAGS" 15309 15310 eval supported=\$$cacheid 15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15312$as_echo "$supported" >&6; } 15313 if test "$supported" = "yes" ; then 15314 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15315 found="yes" 15316 fi 15317 fi 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333xorg_testset_save_CFLAGS="$CFLAGS" 15334 15335if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15338$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15339if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15340 $as_echo_n "(cached) " >&6 15341else 15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15343/* end confdefs.h. */ 15344int i; 15345_ACEOF 15346if ac_fn_c_try_compile "$LINENO"; then : 15347 xorg_cv_cc_flag_unknown_warning_option=yes 15348else 15349 xorg_cv_cc_flag_unknown_warning_option=no 15350fi 15351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15352fi 15353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15354$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15356 CFLAGS="$xorg_testset_save_CFLAGS" 15357fi 15358 15359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15362 fi 15363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15365$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15366if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15367 $as_echo_n "(cached) " >&6 15368else 15369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15370/* end confdefs.h. */ 15371int i; 15372_ACEOF 15373if ac_fn_c_try_compile "$LINENO"; then : 15374 xorg_cv_cc_flag_unused_command_line_argument=yes 15375else 15376 xorg_cv_cc_flag_unused_command_line_argument=no 15377fi 15378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15379fi 15380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15381$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15383 CFLAGS="$xorg_testset_save_CFLAGS" 15384fi 15385 15386found="no" 15387 15388 if test $found = "no" ; then 15389 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15391 fi 15392 15393 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15395 fi 15396 15397 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15398 15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15400$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15401 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15402 if eval \${$cacheid+:} false; then : 15403 $as_echo_n "(cached) " >&6 15404else 15405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15406/* end confdefs.h. */ 15407int i; 15408int 15409main () 15410{ 15411 15412 ; 15413 return 0; 15414} 15415_ACEOF 15416if ac_fn_c_try_link "$LINENO"; then : 15417 eval $cacheid=yes 15418else 15419 eval $cacheid=no 15420fi 15421rm -f core conftest.err conftest.$ac_objext \ 15422 conftest$ac_exeext conftest.$ac_ext 15423fi 15424 15425 15426 CFLAGS="$xorg_testset_save_CFLAGS" 15427 15428 eval supported=\$$cacheid 15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15430$as_echo "$supported" >&6; } 15431 if test "$supported" = "yes" ; then 15432 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15433 found="yes" 15434 fi 15435 fi 15436 15437 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15438else 15439{ $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 15440$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;} 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454xorg_testset_save_CFLAGS="$CFLAGS" 15455 15456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15459$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15460if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15461 $as_echo_n "(cached) " >&6 15462else 15463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15464/* end confdefs.h. */ 15465int i; 15466_ACEOF 15467if ac_fn_c_try_compile "$LINENO"; then : 15468 xorg_cv_cc_flag_unknown_warning_option=yes 15469else 15470 xorg_cv_cc_flag_unknown_warning_option=no 15471fi 15472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15473fi 15474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15475$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15477 CFLAGS="$xorg_testset_save_CFLAGS" 15478fi 15479 15480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15483 fi 15484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15486$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15487if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15488 $as_echo_n "(cached) " >&6 15489else 15490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15491/* end confdefs.h. */ 15492int i; 15493_ACEOF 15494if ac_fn_c_try_compile "$LINENO"; then : 15495 xorg_cv_cc_flag_unused_command_line_argument=yes 15496else 15497 xorg_cv_cc_flag_unused_command_line_argument=no 15498fi 15499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15500fi 15501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15502$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15504 CFLAGS="$xorg_testset_save_CFLAGS" 15505fi 15506 15507found="no" 15508 15509 if test $found = "no" ; then 15510 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15512 fi 15513 15514 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15516 fi 15517 15518 CFLAGS="$CFLAGS -Wimplicit" 15519 15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15521$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15522 cacheid=xorg_cv_cc_flag__Wimplicit 15523 if eval \${$cacheid+:} false; then : 15524 $as_echo_n "(cached) " >&6 15525else 15526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15527/* end confdefs.h. */ 15528int i; 15529int 15530main () 15531{ 15532 15533 ; 15534 return 0; 15535} 15536_ACEOF 15537if ac_fn_c_try_link "$LINENO"; then : 15538 eval $cacheid=yes 15539else 15540 eval $cacheid=no 15541fi 15542rm -f core conftest.err conftest.$ac_objext \ 15543 conftest$ac_exeext conftest.$ac_ext 15544fi 15545 15546 15547 CFLAGS="$xorg_testset_save_CFLAGS" 15548 15549 eval supported=\$$cacheid 15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15551$as_echo "$supported" >&6; } 15552 if test "$supported" = "yes" ; then 15553 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15554 found="yes" 15555 fi 15556 fi 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572xorg_testset_save_CFLAGS="$CFLAGS" 15573 15574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15577$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15578if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15579 $as_echo_n "(cached) " >&6 15580else 15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15582/* end confdefs.h. */ 15583int i; 15584_ACEOF 15585if ac_fn_c_try_compile "$LINENO"; then : 15586 xorg_cv_cc_flag_unknown_warning_option=yes 15587else 15588 xorg_cv_cc_flag_unknown_warning_option=no 15589fi 15590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15591fi 15592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15593$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15595 CFLAGS="$xorg_testset_save_CFLAGS" 15596fi 15597 15598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15601 fi 15602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15604$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15605if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15606 $as_echo_n "(cached) " >&6 15607else 15608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15609/* end confdefs.h. */ 15610int i; 15611_ACEOF 15612if ac_fn_c_try_compile "$LINENO"; then : 15613 xorg_cv_cc_flag_unused_command_line_argument=yes 15614else 15615 xorg_cv_cc_flag_unused_command_line_argument=no 15616fi 15617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15618fi 15619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15620$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15622 CFLAGS="$xorg_testset_save_CFLAGS" 15623fi 15624 15625found="no" 15626 15627 if test $found = "no" ; then 15628 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15630 fi 15631 15632 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15634 fi 15635 15636 CFLAGS="$CFLAGS -Wnonnull" 15637 15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15639$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15640 cacheid=xorg_cv_cc_flag__Wnonnull 15641 if eval \${$cacheid+:} false; then : 15642 $as_echo_n "(cached) " >&6 15643else 15644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15645/* end confdefs.h. */ 15646int i; 15647int 15648main () 15649{ 15650 15651 ; 15652 return 0; 15653} 15654_ACEOF 15655if ac_fn_c_try_link "$LINENO"; then : 15656 eval $cacheid=yes 15657else 15658 eval $cacheid=no 15659fi 15660rm -f core conftest.err conftest.$ac_objext \ 15661 conftest$ac_exeext conftest.$ac_ext 15662fi 15663 15664 15665 CFLAGS="$xorg_testset_save_CFLAGS" 15666 15667 eval supported=\$$cacheid 15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15669$as_echo "$supported" >&6; } 15670 if test "$supported" = "yes" ; then 15671 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15672 found="yes" 15673 fi 15674 fi 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690xorg_testset_save_CFLAGS="$CFLAGS" 15691 15692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15695$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15696if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15697 $as_echo_n "(cached) " >&6 15698else 15699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15700/* end confdefs.h. */ 15701int i; 15702_ACEOF 15703if ac_fn_c_try_compile "$LINENO"; then : 15704 xorg_cv_cc_flag_unknown_warning_option=yes 15705else 15706 xorg_cv_cc_flag_unknown_warning_option=no 15707fi 15708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15709fi 15710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15711$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15713 CFLAGS="$xorg_testset_save_CFLAGS" 15714fi 15715 15716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15719 fi 15720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15722$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15723if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15724 $as_echo_n "(cached) " >&6 15725else 15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15727/* end confdefs.h. */ 15728int i; 15729_ACEOF 15730if ac_fn_c_try_compile "$LINENO"; then : 15731 xorg_cv_cc_flag_unused_command_line_argument=yes 15732else 15733 xorg_cv_cc_flag_unused_command_line_argument=no 15734fi 15735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15736fi 15737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15738$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15740 CFLAGS="$xorg_testset_save_CFLAGS" 15741fi 15742 15743found="no" 15744 15745 if test $found = "no" ; then 15746 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15748 fi 15749 15750 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15752 fi 15753 15754 CFLAGS="$CFLAGS -Winit-self" 15755 15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15757$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15758 cacheid=xorg_cv_cc_flag__Winit_self 15759 if eval \${$cacheid+:} false; then : 15760 $as_echo_n "(cached) " >&6 15761else 15762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15763/* end confdefs.h. */ 15764int i; 15765int 15766main () 15767{ 15768 15769 ; 15770 return 0; 15771} 15772_ACEOF 15773if ac_fn_c_try_link "$LINENO"; then : 15774 eval $cacheid=yes 15775else 15776 eval $cacheid=no 15777fi 15778rm -f core conftest.err conftest.$ac_objext \ 15779 conftest$ac_exeext conftest.$ac_ext 15780fi 15781 15782 15783 CFLAGS="$xorg_testset_save_CFLAGS" 15784 15785 eval supported=\$$cacheid 15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15787$as_echo "$supported" >&6; } 15788 if test "$supported" = "yes" ; then 15789 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15790 found="yes" 15791 fi 15792 fi 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808xorg_testset_save_CFLAGS="$CFLAGS" 15809 15810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15813$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15814if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15815 $as_echo_n "(cached) " >&6 15816else 15817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15818/* end confdefs.h. */ 15819int i; 15820_ACEOF 15821if ac_fn_c_try_compile "$LINENO"; then : 15822 xorg_cv_cc_flag_unknown_warning_option=yes 15823else 15824 xorg_cv_cc_flag_unknown_warning_option=no 15825fi 15826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15827fi 15828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15829$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15831 CFLAGS="$xorg_testset_save_CFLAGS" 15832fi 15833 15834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15837 fi 15838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15840$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15841if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15842 $as_echo_n "(cached) " >&6 15843else 15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15845/* end confdefs.h. */ 15846int i; 15847_ACEOF 15848if ac_fn_c_try_compile "$LINENO"; then : 15849 xorg_cv_cc_flag_unused_command_line_argument=yes 15850else 15851 xorg_cv_cc_flag_unused_command_line_argument=no 15852fi 15853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15854fi 15855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15856$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15858 CFLAGS="$xorg_testset_save_CFLAGS" 15859fi 15860 15861found="no" 15862 15863 if test $found = "no" ; then 15864 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15866 fi 15867 15868 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15870 fi 15871 15872 CFLAGS="$CFLAGS -Wmain" 15873 15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 15875$as_echo_n "checking if $CC supports -Wmain... " >&6; } 15876 cacheid=xorg_cv_cc_flag__Wmain 15877 if eval \${$cacheid+:} false; then : 15878 $as_echo_n "(cached) " >&6 15879else 15880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15881/* end confdefs.h. */ 15882int i; 15883int 15884main () 15885{ 15886 15887 ; 15888 return 0; 15889} 15890_ACEOF 15891if ac_fn_c_try_link "$LINENO"; then : 15892 eval $cacheid=yes 15893else 15894 eval $cacheid=no 15895fi 15896rm -f core conftest.err conftest.$ac_objext \ 15897 conftest$ac_exeext conftest.$ac_ext 15898fi 15899 15900 15901 CFLAGS="$xorg_testset_save_CFLAGS" 15902 15903 eval supported=\$$cacheid 15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15905$as_echo "$supported" >&6; } 15906 if test "$supported" = "yes" ; then 15907 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 15908 found="yes" 15909 fi 15910 fi 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926xorg_testset_save_CFLAGS="$CFLAGS" 15927 15928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15931$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15932if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15933 $as_echo_n "(cached) " >&6 15934else 15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15936/* end confdefs.h. */ 15937int i; 15938_ACEOF 15939if ac_fn_c_try_compile "$LINENO"; then : 15940 xorg_cv_cc_flag_unknown_warning_option=yes 15941else 15942 xorg_cv_cc_flag_unknown_warning_option=no 15943fi 15944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15945fi 15946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15947$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15949 CFLAGS="$xorg_testset_save_CFLAGS" 15950fi 15951 15952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15955 fi 15956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15958$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15959if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15960 $as_echo_n "(cached) " >&6 15961else 15962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15963/* end confdefs.h. */ 15964int i; 15965_ACEOF 15966if ac_fn_c_try_compile "$LINENO"; then : 15967 xorg_cv_cc_flag_unused_command_line_argument=yes 15968else 15969 xorg_cv_cc_flag_unused_command_line_argument=no 15970fi 15971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15972fi 15973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15974$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15976 CFLAGS="$xorg_testset_save_CFLAGS" 15977fi 15978 15979found="no" 15980 15981 if test $found = "no" ; then 15982 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15984 fi 15985 15986 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15988 fi 15989 15990 CFLAGS="$CFLAGS -Wmissing-braces" 15991 15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 15993$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 15994 cacheid=xorg_cv_cc_flag__Wmissing_braces 15995 if eval \${$cacheid+:} false; then : 15996 $as_echo_n "(cached) " >&6 15997else 15998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15999/* end confdefs.h. */ 16000int i; 16001int 16002main () 16003{ 16004 16005 ; 16006 return 0; 16007} 16008_ACEOF 16009if ac_fn_c_try_link "$LINENO"; then : 16010 eval $cacheid=yes 16011else 16012 eval $cacheid=no 16013fi 16014rm -f core conftest.err conftest.$ac_objext \ 16015 conftest$ac_exeext conftest.$ac_ext 16016fi 16017 16018 16019 CFLAGS="$xorg_testset_save_CFLAGS" 16020 16021 eval supported=\$$cacheid 16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16023$as_echo "$supported" >&6; } 16024 if test "$supported" = "yes" ; then 16025 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16026 found="yes" 16027 fi 16028 fi 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044xorg_testset_save_CFLAGS="$CFLAGS" 16045 16046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16049$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16050if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16051 $as_echo_n "(cached) " >&6 16052else 16053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16054/* end confdefs.h. */ 16055int i; 16056_ACEOF 16057if ac_fn_c_try_compile "$LINENO"; then : 16058 xorg_cv_cc_flag_unknown_warning_option=yes 16059else 16060 xorg_cv_cc_flag_unknown_warning_option=no 16061fi 16062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16063fi 16064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16065$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16067 CFLAGS="$xorg_testset_save_CFLAGS" 16068fi 16069 16070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16073 fi 16074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16076$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16077if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16078 $as_echo_n "(cached) " >&6 16079else 16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16081/* end confdefs.h. */ 16082int i; 16083_ACEOF 16084if ac_fn_c_try_compile "$LINENO"; then : 16085 xorg_cv_cc_flag_unused_command_line_argument=yes 16086else 16087 xorg_cv_cc_flag_unused_command_line_argument=no 16088fi 16089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16090fi 16091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16092$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16094 CFLAGS="$xorg_testset_save_CFLAGS" 16095fi 16096 16097found="no" 16098 16099 if test $found = "no" ; then 16100 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16102 fi 16103 16104 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16106 fi 16107 16108 CFLAGS="$CFLAGS -Wsequence-point" 16109 16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16111$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16112 cacheid=xorg_cv_cc_flag__Wsequence_point 16113 if eval \${$cacheid+:} false; then : 16114 $as_echo_n "(cached) " >&6 16115else 16116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16117/* end confdefs.h. */ 16118int i; 16119int 16120main () 16121{ 16122 16123 ; 16124 return 0; 16125} 16126_ACEOF 16127if ac_fn_c_try_link "$LINENO"; then : 16128 eval $cacheid=yes 16129else 16130 eval $cacheid=no 16131fi 16132rm -f core conftest.err conftest.$ac_objext \ 16133 conftest$ac_exeext conftest.$ac_ext 16134fi 16135 16136 16137 CFLAGS="$xorg_testset_save_CFLAGS" 16138 16139 eval supported=\$$cacheid 16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16141$as_echo "$supported" >&6; } 16142 if test "$supported" = "yes" ; then 16143 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16144 found="yes" 16145 fi 16146 fi 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162xorg_testset_save_CFLAGS="$CFLAGS" 16163 16164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16167$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16168if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16169 $as_echo_n "(cached) " >&6 16170else 16171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16172/* end confdefs.h. */ 16173int i; 16174_ACEOF 16175if ac_fn_c_try_compile "$LINENO"; then : 16176 xorg_cv_cc_flag_unknown_warning_option=yes 16177else 16178 xorg_cv_cc_flag_unknown_warning_option=no 16179fi 16180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16181fi 16182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16183$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16185 CFLAGS="$xorg_testset_save_CFLAGS" 16186fi 16187 16188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16191 fi 16192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16194$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16195if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16196 $as_echo_n "(cached) " >&6 16197else 16198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16199/* end confdefs.h. */ 16200int i; 16201_ACEOF 16202if ac_fn_c_try_compile "$LINENO"; then : 16203 xorg_cv_cc_flag_unused_command_line_argument=yes 16204else 16205 xorg_cv_cc_flag_unused_command_line_argument=no 16206fi 16207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16208fi 16209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16210$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16212 CFLAGS="$xorg_testset_save_CFLAGS" 16213fi 16214 16215found="no" 16216 16217 if test $found = "no" ; then 16218 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16220 fi 16221 16222 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16224 fi 16225 16226 CFLAGS="$CFLAGS -Wreturn-type" 16227 16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16229$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16230 cacheid=xorg_cv_cc_flag__Wreturn_type 16231 if eval \${$cacheid+:} false; then : 16232 $as_echo_n "(cached) " >&6 16233else 16234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16235/* end confdefs.h. */ 16236int i; 16237int 16238main () 16239{ 16240 16241 ; 16242 return 0; 16243} 16244_ACEOF 16245if ac_fn_c_try_link "$LINENO"; then : 16246 eval $cacheid=yes 16247else 16248 eval $cacheid=no 16249fi 16250rm -f core conftest.err conftest.$ac_objext \ 16251 conftest$ac_exeext conftest.$ac_ext 16252fi 16253 16254 16255 CFLAGS="$xorg_testset_save_CFLAGS" 16256 16257 eval supported=\$$cacheid 16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16259$as_echo "$supported" >&6; } 16260 if test "$supported" = "yes" ; then 16261 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16262 found="yes" 16263 fi 16264 fi 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280xorg_testset_save_CFLAGS="$CFLAGS" 16281 16282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16285$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16286if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16287 $as_echo_n "(cached) " >&6 16288else 16289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16290/* end confdefs.h. */ 16291int i; 16292_ACEOF 16293if ac_fn_c_try_compile "$LINENO"; then : 16294 xorg_cv_cc_flag_unknown_warning_option=yes 16295else 16296 xorg_cv_cc_flag_unknown_warning_option=no 16297fi 16298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16299fi 16300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16301$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16303 CFLAGS="$xorg_testset_save_CFLAGS" 16304fi 16305 16306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16309 fi 16310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16312$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16313if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16314 $as_echo_n "(cached) " >&6 16315else 16316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16317/* end confdefs.h. */ 16318int i; 16319_ACEOF 16320if ac_fn_c_try_compile "$LINENO"; then : 16321 xorg_cv_cc_flag_unused_command_line_argument=yes 16322else 16323 xorg_cv_cc_flag_unused_command_line_argument=no 16324fi 16325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16326fi 16327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16328$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16330 CFLAGS="$xorg_testset_save_CFLAGS" 16331fi 16332 16333found="no" 16334 16335 if test $found = "no" ; then 16336 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16338 fi 16339 16340 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16342 fi 16343 16344 CFLAGS="$CFLAGS -Wtrigraphs" 16345 16346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16347$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16348 cacheid=xorg_cv_cc_flag__Wtrigraphs 16349 if eval \${$cacheid+:} false; then : 16350 $as_echo_n "(cached) " >&6 16351else 16352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16353/* end confdefs.h. */ 16354int i; 16355int 16356main () 16357{ 16358 16359 ; 16360 return 0; 16361} 16362_ACEOF 16363if ac_fn_c_try_link "$LINENO"; then : 16364 eval $cacheid=yes 16365else 16366 eval $cacheid=no 16367fi 16368rm -f core conftest.err conftest.$ac_objext \ 16369 conftest$ac_exeext conftest.$ac_ext 16370fi 16371 16372 16373 CFLAGS="$xorg_testset_save_CFLAGS" 16374 16375 eval supported=\$$cacheid 16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16377$as_echo "$supported" >&6; } 16378 if test "$supported" = "yes" ; then 16379 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16380 found="yes" 16381 fi 16382 fi 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398xorg_testset_save_CFLAGS="$CFLAGS" 16399 16400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16403$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16404if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16405 $as_echo_n "(cached) " >&6 16406else 16407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16408/* end confdefs.h. */ 16409int i; 16410_ACEOF 16411if ac_fn_c_try_compile "$LINENO"; then : 16412 xorg_cv_cc_flag_unknown_warning_option=yes 16413else 16414 xorg_cv_cc_flag_unknown_warning_option=no 16415fi 16416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16417fi 16418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16419$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16420 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16421 CFLAGS="$xorg_testset_save_CFLAGS" 16422fi 16423 16424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16427 fi 16428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16430$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16431if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16432 $as_echo_n "(cached) " >&6 16433else 16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16435/* end confdefs.h. */ 16436int i; 16437_ACEOF 16438if ac_fn_c_try_compile "$LINENO"; then : 16439 xorg_cv_cc_flag_unused_command_line_argument=yes 16440else 16441 xorg_cv_cc_flag_unused_command_line_argument=no 16442fi 16443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16444fi 16445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16446$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16448 CFLAGS="$xorg_testset_save_CFLAGS" 16449fi 16450 16451found="no" 16452 16453 if test $found = "no" ; then 16454 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16456 fi 16457 16458 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16460 fi 16461 16462 CFLAGS="$CFLAGS -Warray-bounds" 16463 16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16465$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16466 cacheid=xorg_cv_cc_flag__Warray_bounds 16467 if eval \${$cacheid+:} false; then : 16468 $as_echo_n "(cached) " >&6 16469else 16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16471/* end confdefs.h. */ 16472int i; 16473int 16474main () 16475{ 16476 16477 ; 16478 return 0; 16479} 16480_ACEOF 16481if ac_fn_c_try_link "$LINENO"; then : 16482 eval $cacheid=yes 16483else 16484 eval $cacheid=no 16485fi 16486rm -f core conftest.err conftest.$ac_objext \ 16487 conftest$ac_exeext conftest.$ac_ext 16488fi 16489 16490 16491 CFLAGS="$xorg_testset_save_CFLAGS" 16492 16493 eval supported=\$$cacheid 16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16495$as_echo "$supported" >&6; } 16496 if test "$supported" = "yes" ; then 16497 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16498 found="yes" 16499 fi 16500 fi 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516xorg_testset_save_CFLAGS="$CFLAGS" 16517 16518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16521$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16522if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16523 $as_echo_n "(cached) " >&6 16524else 16525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16526/* end confdefs.h. */ 16527int i; 16528_ACEOF 16529if ac_fn_c_try_compile "$LINENO"; then : 16530 xorg_cv_cc_flag_unknown_warning_option=yes 16531else 16532 xorg_cv_cc_flag_unknown_warning_option=no 16533fi 16534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16535fi 16536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16537$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16538 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16539 CFLAGS="$xorg_testset_save_CFLAGS" 16540fi 16541 16542if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16545 fi 16546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16548$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16549if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16550 $as_echo_n "(cached) " >&6 16551else 16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16553/* end confdefs.h. */ 16554int i; 16555_ACEOF 16556if ac_fn_c_try_compile "$LINENO"; then : 16557 xorg_cv_cc_flag_unused_command_line_argument=yes 16558else 16559 xorg_cv_cc_flag_unused_command_line_argument=no 16560fi 16561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16562fi 16563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16564$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16566 CFLAGS="$xorg_testset_save_CFLAGS" 16567fi 16568 16569found="no" 16570 16571 if test $found = "no" ; then 16572 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16574 fi 16575 16576 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16578 fi 16579 16580 CFLAGS="$CFLAGS -Wwrite-strings" 16581 16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16583$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16584 cacheid=xorg_cv_cc_flag__Wwrite_strings 16585 if eval \${$cacheid+:} false; then : 16586 $as_echo_n "(cached) " >&6 16587else 16588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16589/* end confdefs.h. */ 16590int i; 16591int 16592main () 16593{ 16594 16595 ; 16596 return 0; 16597} 16598_ACEOF 16599if ac_fn_c_try_link "$LINENO"; then : 16600 eval $cacheid=yes 16601else 16602 eval $cacheid=no 16603fi 16604rm -f core conftest.err conftest.$ac_objext \ 16605 conftest$ac_exeext conftest.$ac_ext 16606fi 16607 16608 16609 CFLAGS="$xorg_testset_save_CFLAGS" 16610 16611 eval supported=\$$cacheid 16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16613$as_echo "$supported" >&6; } 16614 if test "$supported" = "yes" ; then 16615 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16616 found="yes" 16617 fi 16618 fi 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634xorg_testset_save_CFLAGS="$CFLAGS" 16635 16636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16639$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16640if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16641 $as_echo_n "(cached) " >&6 16642else 16643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16644/* end confdefs.h. */ 16645int i; 16646_ACEOF 16647if ac_fn_c_try_compile "$LINENO"; then : 16648 xorg_cv_cc_flag_unknown_warning_option=yes 16649else 16650 xorg_cv_cc_flag_unknown_warning_option=no 16651fi 16652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16653fi 16654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16655$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16657 CFLAGS="$xorg_testset_save_CFLAGS" 16658fi 16659 16660if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16663 fi 16664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16666$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16667if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16668 $as_echo_n "(cached) " >&6 16669else 16670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16671/* end confdefs.h. */ 16672int i; 16673_ACEOF 16674if ac_fn_c_try_compile "$LINENO"; then : 16675 xorg_cv_cc_flag_unused_command_line_argument=yes 16676else 16677 xorg_cv_cc_flag_unused_command_line_argument=no 16678fi 16679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16680fi 16681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16682$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16684 CFLAGS="$xorg_testset_save_CFLAGS" 16685fi 16686 16687found="no" 16688 16689 if test $found = "no" ; then 16690 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16692 fi 16693 16694 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16696 fi 16697 16698 CFLAGS="$CFLAGS -Waddress" 16699 16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16701$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16702 cacheid=xorg_cv_cc_flag__Waddress 16703 if eval \${$cacheid+:} false; then : 16704 $as_echo_n "(cached) " >&6 16705else 16706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16707/* end confdefs.h. */ 16708int i; 16709int 16710main () 16711{ 16712 16713 ; 16714 return 0; 16715} 16716_ACEOF 16717if ac_fn_c_try_link "$LINENO"; then : 16718 eval $cacheid=yes 16719else 16720 eval $cacheid=no 16721fi 16722rm -f core conftest.err conftest.$ac_objext \ 16723 conftest$ac_exeext conftest.$ac_ext 16724fi 16725 16726 16727 CFLAGS="$xorg_testset_save_CFLAGS" 16728 16729 eval supported=\$$cacheid 16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16731$as_echo "$supported" >&6; } 16732 if test "$supported" = "yes" ; then 16733 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16734 found="yes" 16735 fi 16736 fi 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752xorg_testset_save_CFLAGS="$CFLAGS" 16753 16754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16757$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16758if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16759 $as_echo_n "(cached) " >&6 16760else 16761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16762/* end confdefs.h. */ 16763int i; 16764_ACEOF 16765if ac_fn_c_try_compile "$LINENO"; then : 16766 xorg_cv_cc_flag_unknown_warning_option=yes 16767else 16768 xorg_cv_cc_flag_unknown_warning_option=no 16769fi 16770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16771fi 16772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16773$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16775 CFLAGS="$xorg_testset_save_CFLAGS" 16776fi 16777 16778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16781 fi 16782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16784$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16785if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16786 $as_echo_n "(cached) " >&6 16787else 16788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16789/* end confdefs.h. */ 16790int i; 16791_ACEOF 16792if ac_fn_c_try_compile "$LINENO"; then : 16793 xorg_cv_cc_flag_unused_command_line_argument=yes 16794else 16795 xorg_cv_cc_flag_unused_command_line_argument=no 16796fi 16797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16798fi 16799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16800$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16802 CFLAGS="$xorg_testset_save_CFLAGS" 16803fi 16804 16805found="no" 16806 16807 if test $found = "no" ; then 16808 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16810 fi 16811 16812 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16814 fi 16815 16816 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16817 16818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 16819$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 16820 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 16821 if eval \${$cacheid+:} false; then : 16822 $as_echo_n "(cached) " >&6 16823else 16824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16825/* end confdefs.h. */ 16826int i; 16827int 16828main () 16829{ 16830 16831 ; 16832 return 0; 16833} 16834_ACEOF 16835if ac_fn_c_try_link "$LINENO"; then : 16836 eval $cacheid=yes 16837else 16838 eval $cacheid=no 16839fi 16840rm -f core conftest.err conftest.$ac_objext \ 16841 conftest$ac_exeext conftest.$ac_ext 16842fi 16843 16844 16845 CFLAGS="$xorg_testset_save_CFLAGS" 16846 16847 eval supported=\$$cacheid 16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16849$as_echo "$supported" >&6; } 16850 if test "$supported" = "yes" ; then 16851 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 16852 found="yes" 16853 fi 16854 fi 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870xorg_testset_save_CFLAGS="$CFLAGS" 16871 16872if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16875$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16876if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16877 $as_echo_n "(cached) " >&6 16878else 16879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16880/* end confdefs.h. */ 16881int i; 16882_ACEOF 16883if ac_fn_c_try_compile "$LINENO"; then : 16884 xorg_cv_cc_flag_unknown_warning_option=yes 16885else 16886 xorg_cv_cc_flag_unknown_warning_option=no 16887fi 16888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16889fi 16890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16891$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16893 CFLAGS="$xorg_testset_save_CFLAGS" 16894fi 16895 16896if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16899 fi 16900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16902$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16903if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16904 $as_echo_n "(cached) " >&6 16905else 16906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16907/* end confdefs.h. */ 16908int i; 16909_ACEOF 16910if ac_fn_c_try_compile "$LINENO"; then : 16911 xorg_cv_cc_flag_unused_command_line_argument=yes 16912else 16913 xorg_cv_cc_flag_unused_command_line_argument=no 16914fi 16915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16916fi 16917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16918$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16920 CFLAGS="$xorg_testset_save_CFLAGS" 16921fi 16922 16923found="no" 16924 16925 if test $found = "no" ; then 16926 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16928 fi 16929 16930 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16932 fi 16933 16934 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 16935 16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 16937$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 16938 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 16939 if eval \${$cacheid+:} false; then : 16940 $as_echo_n "(cached) " >&6 16941else 16942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16943/* end confdefs.h. */ 16944int i; 16945int 16946main () 16947{ 16948 16949 ; 16950 return 0; 16951} 16952_ACEOF 16953if ac_fn_c_try_link "$LINENO"; then : 16954 eval $cacheid=yes 16955else 16956 eval $cacheid=no 16957fi 16958rm -f core conftest.err conftest.$ac_objext \ 16959 conftest$ac_exeext conftest.$ac_ext 16960fi 16961 16962 16963 CFLAGS="$xorg_testset_save_CFLAGS" 16964 16965 eval supported=\$$cacheid 16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16967$as_echo "$supported" >&6; } 16968 if test "$supported" = "yes" ; then 16969 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 16970 found="yes" 16971 fi 16972 fi 16973 16974 16975fi 16976 16977 16978 16979 16980 16981 16982 16983 CWARNFLAGS="$BASE_CFLAGS" 16984 if test "x$GCC" = xyes ; then 16985 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 16986 fi 16987 16988 16989 16990 16991 16992 16993 16994 16995# Check whether --enable-strict-compilation was given. 16996if test "${enable_strict_compilation+set}" = set; then : 16997 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 16998else 16999 STRICT_COMPILE=no 17000fi 17001 17002 17003 17004 17005 17006 17007STRICT_CFLAGS="" 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021xorg_testset_save_CFLAGS="$CFLAGS" 17022 17023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17028 $as_echo_n "(cached) " >&6 17029else 17030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17031/* end confdefs.h. */ 17032int i; 17033_ACEOF 17034if ac_fn_c_try_compile "$LINENO"; then : 17035 xorg_cv_cc_flag_unknown_warning_option=yes 17036else 17037 xorg_cv_cc_flag_unknown_warning_option=no 17038fi 17039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17040fi 17041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17044 CFLAGS="$xorg_testset_save_CFLAGS" 17045fi 17046 17047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17050 fi 17051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17055 $as_echo_n "(cached) " >&6 17056else 17057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17058/* end confdefs.h. */ 17059int i; 17060_ACEOF 17061if ac_fn_c_try_compile "$LINENO"; then : 17062 xorg_cv_cc_flag_unused_command_line_argument=yes 17063else 17064 xorg_cv_cc_flag_unused_command_line_argument=no 17065fi 17066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17067fi 17068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17071 CFLAGS="$xorg_testset_save_CFLAGS" 17072fi 17073 17074found="no" 17075 17076 if test $found = "no" ; then 17077 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17079 fi 17080 17081 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17083 fi 17084 17085 CFLAGS="$CFLAGS -pedantic" 17086 17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17088$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17089 cacheid=xorg_cv_cc_flag__pedantic 17090 if eval \${$cacheid+:} false; then : 17091 $as_echo_n "(cached) " >&6 17092else 17093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17094/* end confdefs.h. */ 17095int i; 17096int 17097main () 17098{ 17099 17100 ; 17101 return 0; 17102} 17103_ACEOF 17104if ac_fn_c_try_link "$LINENO"; then : 17105 eval $cacheid=yes 17106else 17107 eval $cacheid=no 17108fi 17109rm -f core conftest.err conftest.$ac_objext \ 17110 conftest$ac_exeext conftest.$ac_ext 17111fi 17112 17113 17114 CFLAGS="$xorg_testset_save_CFLAGS" 17115 17116 eval supported=\$$cacheid 17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17118$as_echo "$supported" >&6; } 17119 if test "$supported" = "yes" ; then 17120 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17121 found="yes" 17122 fi 17123 fi 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139xorg_testset_save_CFLAGS="$CFLAGS" 17140 17141if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17144$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17145if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17146 $as_echo_n "(cached) " >&6 17147else 17148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17149/* end confdefs.h. */ 17150int i; 17151_ACEOF 17152if ac_fn_c_try_compile "$LINENO"; then : 17153 xorg_cv_cc_flag_unknown_warning_option=yes 17154else 17155 xorg_cv_cc_flag_unknown_warning_option=no 17156fi 17157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17158fi 17159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17160$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17162 CFLAGS="$xorg_testset_save_CFLAGS" 17163fi 17164 17165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17168 fi 17169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17171$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17172if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17173 $as_echo_n "(cached) " >&6 17174else 17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17176/* end confdefs.h. */ 17177int i; 17178_ACEOF 17179if ac_fn_c_try_compile "$LINENO"; then : 17180 xorg_cv_cc_flag_unused_command_line_argument=yes 17181else 17182 xorg_cv_cc_flag_unused_command_line_argument=no 17183fi 17184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17185fi 17186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17187$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17189 CFLAGS="$xorg_testset_save_CFLAGS" 17190fi 17191 17192found="no" 17193 17194 if test $found = "no" ; then 17195 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17197 fi 17198 17199 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17201 fi 17202 17203 CFLAGS="$CFLAGS -Werror" 17204 17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17206$as_echo_n "checking if $CC supports -Werror... " >&6; } 17207 cacheid=xorg_cv_cc_flag__Werror 17208 if eval \${$cacheid+:} false; then : 17209 $as_echo_n "(cached) " >&6 17210else 17211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17212/* end confdefs.h. */ 17213int i; 17214int 17215main () 17216{ 17217 17218 ; 17219 return 0; 17220} 17221_ACEOF 17222if ac_fn_c_try_link "$LINENO"; then : 17223 eval $cacheid=yes 17224else 17225 eval $cacheid=no 17226fi 17227rm -f core conftest.err conftest.$ac_objext \ 17228 conftest$ac_exeext conftest.$ac_ext 17229fi 17230 17231 17232 CFLAGS="$xorg_testset_save_CFLAGS" 17233 17234 eval supported=\$$cacheid 17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17236$as_echo "$supported" >&6; } 17237 if test "$supported" = "yes" ; then 17238 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17239 found="yes" 17240 fi 17241 fi 17242 17243 if test $found = "no" ; then 17244 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17246 fi 17247 17248 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17250 fi 17251 17252 CFLAGS="$CFLAGS -errwarn" 17253 17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17255$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17256 cacheid=xorg_cv_cc_flag__errwarn 17257 if eval \${$cacheid+:} false; then : 17258 $as_echo_n "(cached) " >&6 17259else 17260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17261/* end confdefs.h. */ 17262int i; 17263int 17264main () 17265{ 17266 17267 ; 17268 return 0; 17269} 17270_ACEOF 17271if ac_fn_c_try_link "$LINENO"; then : 17272 eval $cacheid=yes 17273else 17274 eval $cacheid=no 17275fi 17276rm -f core conftest.err conftest.$ac_objext \ 17277 conftest$ac_exeext conftest.$ac_ext 17278fi 17279 17280 17281 CFLAGS="$xorg_testset_save_CFLAGS" 17282 17283 eval supported=\$$cacheid 17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17285$as_echo "$supported" >&6; } 17286 if test "$supported" = "yes" ; then 17287 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17288 found="yes" 17289 fi 17290 fi 17291 17292 17293 17294# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17295# activate it with -Werror, so we add it here explicitly. 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309xorg_testset_save_CFLAGS="$CFLAGS" 17310 17311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17314$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17315if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17316 $as_echo_n "(cached) " >&6 17317else 17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17319/* end confdefs.h. */ 17320int i; 17321_ACEOF 17322if ac_fn_c_try_compile "$LINENO"; then : 17323 xorg_cv_cc_flag_unknown_warning_option=yes 17324else 17325 xorg_cv_cc_flag_unknown_warning_option=no 17326fi 17327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17328fi 17329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17330$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17332 CFLAGS="$xorg_testset_save_CFLAGS" 17333fi 17334 17335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17338 fi 17339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17341$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17342if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17343 $as_echo_n "(cached) " >&6 17344else 17345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17346/* end confdefs.h. */ 17347int i; 17348_ACEOF 17349if ac_fn_c_try_compile "$LINENO"; then : 17350 xorg_cv_cc_flag_unused_command_line_argument=yes 17351else 17352 xorg_cv_cc_flag_unused_command_line_argument=no 17353fi 17354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17355fi 17356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17357$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17359 CFLAGS="$xorg_testset_save_CFLAGS" 17360fi 17361 17362found="no" 17363 17364 if test $found = "no" ; then 17365 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17367 fi 17368 17369 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17371 fi 17372 17373 CFLAGS="$CFLAGS -Werror=attributes" 17374 17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17376$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17377 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17378 if eval \${$cacheid+:} false; then : 17379 $as_echo_n "(cached) " >&6 17380else 17381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17382/* end confdefs.h. */ 17383int i; 17384int 17385main () 17386{ 17387 17388 ; 17389 return 0; 17390} 17391_ACEOF 17392if ac_fn_c_try_link "$LINENO"; then : 17393 eval $cacheid=yes 17394else 17395 eval $cacheid=no 17396fi 17397rm -f core conftest.err conftest.$ac_objext \ 17398 conftest$ac_exeext conftest.$ac_ext 17399fi 17400 17401 17402 CFLAGS="$xorg_testset_save_CFLAGS" 17403 17404 eval supported=\$$cacheid 17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17406$as_echo "$supported" >&6; } 17407 if test "$supported" = "yes" ; then 17408 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17409 found="yes" 17410 fi 17411 fi 17412 17413 17414 17415if test "x$STRICT_COMPILE" = "xyes"; then 17416 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17417 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17418fi 17419 17420 17421 17422 17423 17424 17425cat >>confdefs.h <<_ACEOF 17426#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17427_ACEOF 17428 17429 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17430 if test "x$PVM" = "x"; then 17431 PVM="0" 17432 fi 17433 17434cat >>confdefs.h <<_ACEOF 17435#define PACKAGE_VERSION_MINOR $PVM 17436_ACEOF 17437 17438 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17439 if test "x$PVP" = "x"; then 17440 PVP="0" 17441 fi 17442 17443cat >>confdefs.h <<_ACEOF 17444#define PACKAGE_VERSION_PATCHLEVEL $PVP 17445_ACEOF 17446 17447 17448 17449CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17450mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17451|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17452echo 'git directory not found: installing possibly empty changelog.' >&2)" 17453 17454 17455 17456 17457macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17458INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17459mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17460|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17461echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17462 17463 17464 17465 17466 17467 17468if test x$APP_MAN_SUFFIX = x ; then 17469 APP_MAN_SUFFIX=1 17470fi 17471if test x$APP_MAN_DIR = x ; then 17472 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17473fi 17474 17475if test x$LIB_MAN_SUFFIX = x ; then 17476 LIB_MAN_SUFFIX=3 17477fi 17478if test x$LIB_MAN_DIR = x ; then 17479 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17480fi 17481 17482if test x$FILE_MAN_SUFFIX = x ; then 17483 case $host_os in 17484 solaris*) FILE_MAN_SUFFIX=4 ;; 17485 *) FILE_MAN_SUFFIX=5 ;; 17486 esac 17487fi 17488if test x$FILE_MAN_DIR = x ; then 17489 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17490fi 17491 17492if test x$MISC_MAN_SUFFIX = x ; then 17493 case $host_os in 17494 solaris*) MISC_MAN_SUFFIX=5 ;; 17495 *) MISC_MAN_SUFFIX=7 ;; 17496 esac 17497fi 17498if test x$MISC_MAN_DIR = x ; then 17499 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17500fi 17501 17502if test x$DRIVER_MAN_SUFFIX = x ; then 17503 case $host_os in 17504 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17505 *) DRIVER_MAN_SUFFIX=4 ;; 17506 esac 17507fi 17508if test x$DRIVER_MAN_DIR = x ; then 17509 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17510fi 17511 17512if test x$ADMIN_MAN_SUFFIX = x ; then 17513 case $host_os in 17514 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17515 *) ADMIN_MAN_SUFFIX=8 ;; 17516 esac 17517fi 17518if test x$ADMIN_MAN_DIR = x ; then 17519 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17520fi 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536XORG_MAN_PAGE="X Version 11" 17537 17538MAN_SUBSTS="\ 17539 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17540 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17541 -e 's|__xservername__|Xorg|g' \ 17542 -e 's|__xconfigfile__|xorg.conf|g' \ 17543 -e 's|__projectroot__|\$(prefix)|g' \ 17544 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17545 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17546 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17547 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17548 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17549 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17550 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17551 17552 17553 17554# Check whether --enable-silent-rules was given. 17555if test "${enable_silent_rules+set}" = set; then : 17556 enableval=$enable_silent_rules; 17557fi 17558 17559case $enable_silent_rules in # ((( 17560 yes) AM_DEFAULT_VERBOSITY=0;; 17561 no) AM_DEFAULT_VERBOSITY=1;; 17562 *) AM_DEFAULT_VERBOSITY=0;; 17563esac 17564am_make=${MAKE-make} 17565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17566$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17567if ${am_cv_make_support_nested_variables+:} false; then : 17568 $as_echo_n "(cached) " >&6 17569else 17570 if $as_echo 'TRUE=$(BAR$(V)) 17571BAR0=false 17572BAR1=true 17573V=1 17574am__doit: 17575 @$(TRUE) 17576.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17577 am_cv_make_support_nested_variables=yes 17578else 17579 am_cv_make_support_nested_variables=no 17580fi 17581fi 17582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17583$as_echo "$am_cv_make_support_nested_variables" >&6; } 17584if test $am_cv_make_support_nested_variables = yes; then 17585 AM_V='$(V)' 17586 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17587else 17588 AM_V=$AM_DEFAULT_VERBOSITY 17589 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17590fi 17591AM_BACKSLASH='\' 17592 17593 17594 17595# Check whether --enable-malloc0returnsnull was given. 17596if test "${enable_malloc0returnsnull+set}" = set; then : 17597 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 17598else 17599 MALLOC_ZERO_RETURNS_NULL=auto 17600fi 17601 17602 17603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 17604$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 17605if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 17606 if test "$cross_compiling" = yes; then : 17607 MALLOC_ZERO_RETURNS_NULL=yes 17608else 17609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17610/* end confdefs.h. */ 17611 17612#include <stdlib.h> 17613 17614int 17615main () 17616{ 17617 17618 char *m0, *r0, *c0, *p; 17619 m0 = malloc(0); 17620 p = malloc(10); 17621 r0 = realloc(p,0); 17622 c0 = calloc(0,10); 17623 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 17624 17625 ; 17626 return 0; 17627} 17628_ACEOF 17629if ac_fn_c_try_run "$LINENO"; then : 17630 MALLOC_ZERO_RETURNS_NULL=yes 17631else 17632 MALLOC_ZERO_RETURNS_NULL=no 17633fi 17634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17635 conftest.$ac_objext conftest.beam conftest.$ac_ext 17636fi 17637 17638fi 17639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 17640$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 17641 17642if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 17643 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 17644 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 17645 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 17646else 17647 MALLOC_ZERO_CFLAGS="" 17648 XMALLOC_ZERO_CFLAGS="" 17649 XTMALLOC_ZERO_CFLAGS="" 17650fi 17651 17652 17653 17654 17655 17656 17657# Obtain compiler/linker options for depedencies 17658 17659pkg_failed=no 17660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMC" >&5 17661$as_echo_n "checking for XVMC... " >&6; } 17662 17663if test -n "$XVMC_CFLAGS"; then 17664 pkg_cv_XVMC_CFLAGS="$XVMC_CFLAGS" 17665 elif test -n "$PKG_CONFIG"; then 17666 if test -n "$PKG_CONFIG" && \ 17667 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xv xextproto videoproto\""; } >&5 17668 ($PKG_CONFIG --exists --print-errors "x11 xext xv xextproto videoproto") 2>&5 17669 ac_status=$? 17670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17671 test $ac_status = 0; }; then 17672 pkg_cv_XVMC_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xv xextproto videoproto" 2>/dev/null` 17673else 17674 pkg_failed=yes 17675fi 17676 else 17677 pkg_failed=untried 17678fi 17679if test -n "$XVMC_LIBS"; then 17680 pkg_cv_XVMC_LIBS="$XVMC_LIBS" 17681 elif test -n "$PKG_CONFIG"; then 17682 if test -n "$PKG_CONFIG" && \ 17683 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xv xextproto videoproto\""; } >&5 17684 ($PKG_CONFIG --exists --print-errors "x11 xext xv xextproto videoproto") 2>&5 17685 ac_status=$? 17686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17687 test $ac_status = 0; }; then 17688 pkg_cv_XVMC_LIBS=`$PKG_CONFIG --libs "x11 xext xv xextproto videoproto" 2>/dev/null` 17689else 17690 pkg_failed=yes 17691fi 17692 else 17693 pkg_failed=untried 17694fi 17695 17696 17697 17698if test $pkg_failed = yes; then 17699 17700if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17701 _pkg_short_errors_supported=yes 17702else 17703 _pkg_short_errors_supported=no 17704fi 17705 if test $_pkg_short_errors_supported = yes; then 17706 XVMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xv xextproto videoproto" 2>&1` 17707 else 17708 XVMC_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xv xextproto videoproto" 2>&1` 17709 fi 17710 # Put the nasty error message in config.log where it belongs 17711 echo "$XVMC_PKG_ERRORS" >&5 17712 17713 as_fn_error $? "Package requirements (x11 xext xv xextproto videoproto) were not met: 17714 17715$XVMC_PKG_ERRORS 17716 17717Consider adjusting the PKG_CONFIG_PATH environment variable if you 17718installed software in a non-standard prefix. 17719 17720Alternatively, you may set the environment variables XVMC_CFLAGS 17721and XVMC_LIBS to avoid the need to call pkg-config. 17722See the pkg-config man page for more details. 17723" "$LINENO" 5 17724elif test $pkg_failed = untried; then 17725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17727as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17728is in your PATH or set the PKG_CONFIG environment variable to the full 17729path to pkg-config. 17730 17731Alternatively, you may set the environment variables XVMC_CFLAGS 17732and XVMC_LIBS to avoid the need to call pkg-config. 17733See the pkg-config man page for more details. 17734 17735To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17736See \`config.log' for more details" "$LINENO" 5; } 17737else 17738 XVMC_CFLAGS=$pkg_cv_XVMC_CFLAGS 17739 XVMC_LIBS=$pkg_cv_XVMC_LIBS 17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17741$as_echo "yes" >&6; } 17742 : 17743fi 17744 17745# Check for _XEatDataWords function that may be patched into older Xlib release 17746SAVE_LIBS="$LIBS" 17747LIBS="$XVMC_LIBS" 17748for ac_func in _XEatDataWords 17749do : 17750 ac_fn_c_check_func "$LINENO" "_XEatDataWords" "ac_cv_func__XEatDataWords" 17751if test "x$ac_cv_func__XEatDataWords" = xyes; then : 17752 cat >>confdefs.h <<_ACEOF 17753#define HAVE__XEATDATAWORDS 1 17754_ACEOF 17755 17756fi 17757done 17758 17759LIBS="$SAVE_LIBS" 17760 17761# Checks for library functions. 17762for ac_func in shmat 17763do : 17764 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 17765if test "x$ac_cv_func_shmat" = xyes; then : 17766 cat >>confdefs.h <<_ACEOF 17767#define HAVE_SHMAT 1 17768_ACEOF 17769 17770fi 17771done 17772 17773 17774# Allow checking code with lint, sparse, etc. 17775 17776 17777 17778 17779 17780# Check whether --with-lint was given. 17781if test "${with_lint+set}" = set; then : 17782 withval=$with_lint; use_lint=$withval 17783else 17784 use_lint=no 17785fi 17786 17787 17788# Obtain platform specific info like program name and options 17789# The lint program on FreeBSD and NetBSD is different from the one on Solaris 17790case $host_os in 17791 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 17792 lint_name=splint 17793 lint_options="-badflag" 17794 ;; 17795 *freebsd* | *netbsd*) 17796 lint_name=lint 17797 lint_options="-u -b" 17798 ;; 17799 *solaris*) 17800 lint_name=lint 17801 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 17802 ;; 17803esac 17804 17805# Test for the presence of the program (either guessed by the code or spelled out by the user) 17806if test "x$use_lint" = x"yes" ; then 17807 # Extract the first word of "$lint_name", so it can be a program name with args. 17808set dummy $lint_name; ac_word=$2 17809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17810$as_echo_n "checking for $ac_word... " >&6; } 17811if ${ac_cv_path_LINT+:} false; then : 17812 $as_echo_n "(cached) " >&6 17813else 17814 case $LINT in 17815 [\\/]* | ?:[\\/]*) 17816 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 17817 ;; 17818 *) 17819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17820for as_dir in $PATH 17821do 17822 IFS=$as_save_IFS 17823 test -z "$as_dir" && as_dir=. 17824 for ac_exec_ext in '' $ac_executable_extensions; do 17825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17826 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 17827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17828 break 2 17829 fi 17830done 17831 done 17832IFS=$as_save_IFS 17833 17834 ;; 17835esac 17836fi 17837LINT=$ac_cv_path_LINT 17838if test -n "$LINT"; then 17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 17840$as_echo "$LINT" >&6; } 17841else 17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17843$as_echo "no" >&6; } 17844fi 17845 17846 17847 if test "x$LINT" = "x"; then 17848 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 17849 fi 17850elif test "x$use_lint" = x"no" ; then 17851 if test "x$LINT" != "x"; then 17852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 17853$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 17854 fi 17855else 17856 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 17857fi 17858 17859# User supplied flags override default flags 17860if test "x$LINT_FLAGS" != "x"; then 17861 lint_options=$LINT_FLAGS 17862fi 17863 17864LINT_FLAGS=$lint_options 17865 17866 if test "x$LINT" != x; then 17867 LINT_TRUE= 17868 LINT_FALSE='#' 17869else 17870 LINT_TRUE='#' 17871 LINT_FALSE= 17872fi 17873 17874 17875 17876LINT_FLAGS="${LINT_FLAGS} ${XVMC_CFLAGS}" 17877 17878ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile wrapper/Makefile xvmc.pc" 17879 17880cat >confcache <<\_ACEOF 17881# This file is a shell script that caches the results of configure 17882# tests run on this system so they can be shared between configure 17883# scripts and configure runs, see configure's option --config-cache. 17884# It is not useful on other systems. If it contains results you don't 17885# want to keep, you may remove or edit it. 17886# 17887# config.status only pays attention to the cache file if you give it 17888# the --recheck option to rerun configure. 17889# 17890# `ac_cv_env_foo' variables (set or unset) will be overridden when 17891# loading this file, other *unset* `ac_cv_foo' will be assigned the 17892# following values. 17893 17894_ACEOF 17895 17896# The following way of writing the cache mishandles newlines in values, 17897# but we know of no workaround that is simple, portable, and efficient. 17898# So, we kill variables containing newlines. 17899# Ultrix sh set writes to stderr and can't be redirected directly, 17900# and sets the high bit in the cache file unless we assign to the vars. 17901( 17902 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17903 eval ac_val=\$$ac_var 17904 case $ac_val in #( 17905 *${as_nl}*) 17906 case $ac_var in #( 17907 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17908$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17909 esac 17910 case $ac_var in #( 17911 _ | IFS | as_nl) ;; #( 17912 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17913 *) { eval $ac_var=; unset $ac_var;} ;; 17914 esac ;; 17915 esac 17916 done 17917 17918 (set) 2>&1 | 17919 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17920 *${as_nl}ac_space=\ *) 17921 # `set' does not quote correctly, so add quotes: double-quote 17922 # substitution turns \\\\ into \\, and sed turns \\ into \. 17923 sed -n \ 17924 "s/'/'\\\\''/g; 17925 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17926 ;; #( 17927 *) 17928 # `set' quotes correctly as required by POSIX, so do not add quotes. 17929 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17930 ;; 17931 esac | 17932 sort 17933) | 17934 sed ' 17935 /^ac_cv_env_/b end 17936 t clear 17937 :clear 17938 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17939 t end 17940 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17941 :end' >>confcache 17942if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17943 if test -w "$cache_file"; then 17944 if test "x$cache_file" != "x/dev/null"; then 17945 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17946$as_echo "$as_me: updating cache $cache_file" >&6;} 17947 if test ! -f "$cache_file" || test -h "$cache_file"; then 17948 cat confcache >"$cache_file" 17949 else 17950 case $cache_file in #( 17951 */* | ?:*) 17952 mv -f confcache "$cache_file"$$ && 17953 mv -f "$cache_file"$$ "$cache_file" ;; #( 17954 *) 17955 mv -f confcache "$cache_file" ;; 17956 esac 17957 fi 17958 fi 17959 else 17960 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17961$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17962 fi 17963fi 17964rm -f confcache 17965 17966test "x$prefix" = xNONE && prefix=$ac_default_prefix 17967# Let make expand exec_prefix. 17968test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17969 17970DEFS=-DHAVE_CONFIG_H 17971 17972ac_libobjs= 17973ac_ltlibobjs= 17974U= 17975for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17976 # 1. Remove the extension, and $U if already installed. 17977 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17978 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17979 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17980 # will be set to the directory where LIBOBJS objects are built. 17981 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17982 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17983done 17984LIBOBJS=$ac_libobjs 17985 17986LTLIBOBJS=$ac_ltlibobjs 17987 17988 17989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17990$as_echo_n "checking that generated files are newer than configure... " >&6; } 17991 if test -n "$am_sleep_pid"; then 17992 # Hide warnings about reused PIDs. 17993 wait $am_sleep_pid 2>/dev/null 17994 fi 17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17996$as_echo "done" >&6; } 17997 if test -n "$EXEEXT"; then 17998 am__EXEEXT_TRUE= 17999 am__EXEEXT_FALSE='#' 18000else 18001 am__EXEEXT_TRUE='#' 18002 am__EXEEXT_FALSE= 18003fi 18004 18005if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18006 as_fn_error $? "conditional \"AMDEP\" was never defined. 18007Usually this means the macro was only invoked conditionally." "$LINENO" 5 18008fi 18009if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18010 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18011Usually this means the macro was only invoked conditionally." "$LINENO" 5 18012fi 18013if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 18014 as_fn_error $? "conditional \"LINT\" was never defined. 18015Usually this means the macro was only invoked conditionally." "$LINENO" 5 18016fi 18017 18018: "${CONFIG_STATUS=./config.status}" 18019ac_write_fail=0 18020ac_clean_files_save=$ac_clean_files 18021ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18022{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18023$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18024as_write_fail=0 18025cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18026#! $SHELL 18027# Generated by $as_me. 18028# Run this file to recreate the current configuration. 18029# Compiler output produced by configure, useful for debugging 18030# configure, is in config.log if it exists. 18031 18032debug=false 18033ac_cs_recheck=false 18034ac_cs_silent=false 18035 18036SHELL=\${CONFIG_SHELL-$SHELL} 18037export SHELL 18038_ASEOF 18039cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18040## -------------------- ## 18041## M4sh Initialization. ## 18042## -------------------- ## 18043 18044# Be more Bourne compatible 18045DUALCASE=1; export DUALCASE # for MKS sh 18046if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18047 emulate sh 18048 NULLCMD=: 18049 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18050 # is contrary to our usage. Disable this feature. 18051 alias -g '${1+"$@"}'='"$@"' 18052 setopt NO_GLOB_SUBST 18053else 18054 case `(set -o) 2>/dev/null` in #( 18055 *posix*) : 18056 set -o posix ;; #( 18057 *) : 18058 ;; 18059esac 18060fi 18061 18062 18063as_nl=' 18064' 18065export as_nl 18066# Printing a long string crashes Solaris 7 /usr/bin/printf. 18067as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18068as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18069as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18070# Prefer a ksh shell builtin over an external printf program on Solaris, 18071# but without wasting forks for bash or zsh. 18072if test -z "$BASH_VERSION$ZSH_VERSION" \ 18073 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18074 as_echo='print -r --' 18075 as_echo_n='print -rn --' 18076elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18077 as_echo='printf %s\n' 18078 as_echo_n='printf %s' 18079else 18080 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18081 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18082 as_echo_n='/usr/ucb/echo -n' 18083 else 18084 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18085 as_echo_n_body='eval 18086 arg=$1; 18087 case $arg in #( 18088 *"$as_nl"*) 18089 expr "X$arg" : "X\\(.*\\)$as_nl"; 18090 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18091 esac; 18092 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18093 ' 18094 export as_echo_n_body 18095 as_echo_n='sh -c $as_echo_n_body as_echo' 18096 fi 18097 export as_echo_body 18098 as_echo='sh -c $as_echo_body as_echo' 18099fi 18100 18101# The user is always right. 18102if test "${PATH_SEPARATOR+set}" != set; then 18103 PATH_SEPARATOR=: 18104 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18105 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18106 PATH_SEPARATOR=';' 18107 } 18108fi 18109 18110 18111# IFS 18112# We need space, tab and new line, in precisely that order. Quoting is 18113# there to prevent editors from complaining about space-tab. 18114# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18115# splitting by setting IFS to empty value.) 18116IFS=" "" $as_nl" 18117 18118# Find who we are. Look in the path if we contain no directory separator. 18119as_myself= 18120case $0 in #(( 18121 *[\\/]* ) as_myself=$0 ;; 18122 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18123for as_dir in $PATH 18124do 18125 IFS=$as_save_IFS 18126 test -z "$as_dir" && as_dir=. 18127 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18128 done 18129IFS=$as_save_IFS 18130 18131 ;; 18132esac 18133# We did not find ourselves, most probably we were run as `sh COMMAND' 18134# in which case we are not to be found in the path. 18135if test "x$as_myself" = x; then 18136 as_myself=$0 18137fi 18138if test ! -f "$as_myself"; then 18139 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18140 exit 1 18141fi 18142 18143# Unset variables that we do not need and which cause bugs (e.g. in 18144# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18145# suppresses any "Segmentation fault" message there. '((' could 18146# trigger a bug in pdksh 5.2.14. 18147for as_var in BASH_ENV ENV MAIL MAILPATH 18148do eval test x\${$as_var+set} = xset \ 18149 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18150done 18151PS1='$ ' 18152PS2='> ' 18153PS4='+ ' 18154 18155# NLS nuisances. 18156LC_ALL=C 18157export LC_ALL 18158LANGUAGE=C 18159export LANGUAGE 18160 18161# CDPATH. 18162(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18163 18164 18165# as_fn_error STATUS ERROR [LINENO LOG_FD] 18166# ---------------------------------------- 18167# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18168# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18169# script with STATUS, using 1 if that was 0. 18170as_fn_error () 18171{ 18172 as_status=$1; test $as_status -eq 0 && as_status=1 18173 if test "$4"; then 18174 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18175 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18176 fi 18177 $as_echo "$as_me: error: $2" >&2 18178 as_fn_exit $as_status 18179} # as_fn_error 18180 18181 18182# as_fn_set_status STATUS 18183# ----------------------- 18184# Set $? to STATUS, without forking. 18185as_fn_set_status () 18186{ 18187 return $1 18188} # as_fn_set_status 18189 18190# as_fn_exit STATUS 18191# ----------------- 18192# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18193as_fn_exit () 18194{ 18195 set +e 18196 as_fn_set_status $1 18197 exit $1 18198} # as_fn_exit 18199 18200# as_fn_unset VAR 18201# --------------- 18202# Portably unset VAR. 18203as_fn_unset () 18204{ 18205 { eval $1=; unset $1;} 18206} 18207as_unset=as_fn_unset 18208# as_fn_append VAR VALUE 18209# ---------------------- 18210# Append the text in VALUE to the end of the definition contained in VAR. Take 18211# advantage of any shell optimizations that allow amortized linear growth over 18212# repeated appends, instead of the typical quadratic growth present in naive 18213# implementations. 18214if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18215 eval 'as_fn_append () 18216 { 18217 eval $1+=\$2 18218 }' 18219else 18220 as_fn_append () 18221 { 18222 eval $1=\$$1\$2 18223 } 18224fi # as_fn_append 18225 18226# as_fn_arith ARG... 18227# ------------------ 18228# Perform arithmetic evaluation on the ARGs, and store the result in the 18229# global $as_val. Take advantage of shells that can avoid forks. The arguments 18230# must be portable across $(()) and expr. 18231if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18232 eval 'as_fn_arith () 18233 { 18234 as_val=$(( $* )) 18235 }' 18236else 18237 as_fn_arith () 18238 { 18239 as_val=`expr "$@" || test $? -eq 1` 18240 } 18241fi # as_fn_arith 18242 18243 18244if expr a : '\(a\)' >/dev/null 2>&1 && 18245 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18246 as_expr=expr 18247else 18248 as_expr=false 18249fi 18250 18251if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18252 as_basename=basename 18253else 18254 as_basename=false 18255fi 18256 18257if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18258 as_dirname=dirname 18259else 18260 as_dirname=false 18261fi 18262 18263as_me=`$as_basename -- "$0" || 18264$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18265 X"$0" : 'X\(//\)$' \| \ 18266 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18267$as_echo X/"$0" | 18268 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18269 s//\1/ 18270 q 18271 } 18272 /^X\/\(\/\/\)$/{ 18273 s//\1/ 18274 q 18275 } 18276 /^X\/\(\/\).*/{ 18277 s//\1/ 18278 q 18279 } 18280 s/.*/./; q'` 18281 18282# Avoid depending upon Character Ranges. 18283as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18284as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18285as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18286as_cr_digits='0123456789' 18287as_cr_alnum=$as_cr_Letters$as_cr_digits 18288 18289ECHO_C= ECHO_N= ECHO_T= 18290case `echo -n x` in #((((( 18291-n*) 18292 case `echo 'xy\c'` in 18293 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18294 xy) ECHO_C='\c';; 18295 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18296 ECHO_T=' ';; 18297 esac;; 18298*) 18299 ECHO_N='-n';; 18300esac 18301 18302rm -f conf$$ conf$$.exe conf$$.file 18303if test -d conf$$.dir; then 18304 rm -f conf$$.dir/conf$$.file 18305else 18306 rm -f conf$$.dir 18307 mkdir conf$$.dir 2>/dev/null 18308fi 18309if (echo >conf$$.file) 2>/dev/null; then 18310 if ln -s conf$$.file conf$$ 2>/dev/null; then 18311 as_ln_s='ln -s' 18312 # ... but there are two gotchas: 18313 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18314 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18315 # In both cases, we have to default to `cp -p'. 18316 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18317 as_ln_s='cp -p' 18318 elif ln conf$$.file conf$$ 2>/dev/null; then 18319 as_ln_s=ln 18320 else 18321 as_ln_s='cp -p' 18322 fi 18323else 18324 as_ln_s='cp -p' 18325fi 18326rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18327rmdir conf$$.dir 2>/dev/null 18328 18329 18330# as_fn_mkdir_p 18331# ------------- 18332# Create "$as_dir" as a directory, including parents if necessary. 18333as_fn_mkdir_p () 18334{ 18335 18336 case $as_dir in #( 18337 -*) as_dir=./$as_dir;; 18338 esac 18339 test -d "$as_dir" || eval $as_mkdir_p || { 18340 as_dirs= 18341 while :; do 18342 case $as_dir in #( 18343 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18344 *) as_qdir=$as_dir;; 18345 esac 18346 as_dirs="'$as_qdir' $as_dirs" 18347 as_dir=`$as_dirname -- "$as_dir" || 18348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18349 X"$as_dir" : 'X\(//\)[^/]' \| \ 18350 X"$as_dir" : 'X\(//\)$' \| \ 18351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18352$as_echo X"$as_dir" | 18353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18354 s//\1/ 18355 q 18356 } 18357 /^X\(\/\/\)[^/].*/{ 18358 s//\1/ 18359 q 18360 } 18361 /^X\(\/\/\)$/{ 18362 s//\1/ 18363 q 18364 } 18365 /^X\(\/\).*/{ 18366 s//\1/ 18367 q 18368 } 18369 s/.*/./; q'` 18370 test -d "$as_dir" && break 18371 done 18372 test -z "$as_dirs" || eval "mkdir $as_dirs" 18373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18374 18375 18376} # as_fn_mkdir_p 18377if mkdir -p . 2>/dev/null; then 18378 as_mkdir_p='mkdir -p "$as_dir"' 18379else 18380 test -d ./-p && rmdir ./-p 18381 as_mkdir_p=false 18382fi 18383 18384if test -x / >/dev/null 2>&1; then 18385 as_test_x='test -x' 18386else 18387 if ls -dL / >/dev/null 2>&1; then 18388 as_ls_L_option=L 18389 else 18390 as_ls_L_option= 18391 fi 18392 as_test_x=' 18393 eval sh -c '\'' 18394 if test -d "$1"; then 18395 test -d "$1/."; 18396 else 18397 case $1 in #( 18398 -*)set "./$1";; 18399 esac; 18400 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18401 ???[sx]*):;;*)false;;esac;fi 18402 '\'' sh 18403 ' 18404fi 18405as_executable_p=$as_test_x 18406 18407# Sed expression to map a string onto a valid CPP name. 18408as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18409 18410# Sed expression to map a string onto a valid variable name. 18411as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18412 18413 18414exec 6>&1 18415## ----------------------------------- ## 18416## Main body of $CONFIG_STATUS script. ## 18417## ----------------------------------- ## 18418_ASEOF 18419test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18420 18421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18422# Save the log message, to keep $0 and so on meaningful, and to 18423# report actual input values of CONFIG_FILES etc. instead of their 18424# values after options handling. 18425ac_log=" 18426This file was extended by libXvMC $as_me 1.0.8, which was 18427generated by GNU Autoconf 2.68. Invocation command line was 18428 18429 CONFIG_FILES = $CONFIG_FILES 18430 CONFIG_HEADERS = $CONFIG_HEADERS 18431 CONFIG_LINKS = $CONFIG_LINKS 18432 CONFIG_COMMANDS = $CONFIG_COMMANDS 18433 $ $0 $@ 18434 18435on `(hostname || uname -n) 2>/dev/null | sed 1q` 18436" 18437 18438_ACEOF 18439 18440case $ac_config_files in *" 18441"*) set x $ac_config_files; shift; ac_config_files=$*;; 18442esac 18443 18444case $ac_config_headers in *" 18445"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18446esac 18447 18448 18449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18450# Files that config.status was made for. 18451config_files="$ac_config_files" 18452config_headers="$ac_config_headers" 18453config_commands="$ac_config_commands" 18454 18455_ACEOF 18456 18457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18458ac_cs_usage="\ 18459\`$as_me' instantiates files and other configuration actions 18460from templates according to the current configuration. Unless the files 18461and actions are specified as TAGs, all are instantiated by default. 18462 18463Usage: $0 [OPTION]... [TAG]... 18464 18465 -h, --help print this help, then exit 18466 -V, --version print version number and configuration settings, then exit 18467 --config print configuration, then exit 18468 -q, --quiet, --silent 18469 do not print progress messages 18470 -d, --debug don't remove temporary files 18471 --recheck update $as_me by reconfiguring in the same conditions 18472 --file=FILE[:TEMPLATE] 18473 instantiate the configuration file FILE 18474 --header=FILE[:TEMPLATE] 18475 instantiate the configuration header FILE 18476 18477Configuration files: 18478$config_files 18479 18480Configuration headers: 18481$config_headers 18482 18483Configuration commands: 18484$config_commands 18485 18486Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18487 18488_ACEOF 18489cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18490ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18491ac_cs_version="\\ 18492libXvMC config.status 1.0.8 18493configured by $0, generated by GNU Autoconf 2.68, 18494 with options \\"\$ac_cs_config\\" 18495 18496Copyright (C) 2010 Free Software Foundation, Inc. 18497This config.status script is free software; the Free Software Foundation 18498gives unlimited permission to copy, distribute and modify it." 18499 18500ac_pwd='$ac_pwd' 18501srcdir='$srcdir' 18502INSTALL='$INSTALL' 18503MKDIR_P='$MKDIR_P' 18504AWK='$AWK' 18505test -n "\$AWK" || AWK=awk 18506_ACEOF 18507 18508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18509# The default lists apply if the user does not specify any file. 18510ac_need_defaults=: 18511while test $# != 0 18512do 18513 case $1 in 18514 --*=?*) 18515 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18516 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18517 ac_shift=: 18518 ;; 18519 --*=) 18520 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18521 ac_optarg= 18522 ac_shift=: 18523 ;; 18524 *) 18525 ac_option=$1 18526 ac_optarg=$2 18527 ac_shift=shift 18528 ;; 18529 esac 18530 18531 case $ac_option in 18532 # Handling of the options. 18533 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18534 ac_cs_recheck=: ;; 18535 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18536 $as_echo "$ac_cs_version"; exit ;; 18537 --config | --confi | --conf | --con | --co | --c ) 18538 $as_echo "$ac_cs_config"; exit ;; 18539 --debug | --debu | --deb | --de | --d | -d ) 18540 debug=: ;; 18541 --file | --fil | --fi | --f ) 18542 $ac_shift 18543 case $ac_optarg in 18544 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18545 '') as_fn_error $? "missing file argument" ;; 18546 esac 18547 as_fn_append CONFIG_FILES " '$ac_optarg'" 18548 ac_need_defaults=false;; 18549 --header | --heade | --head | --hea ) 18550 $ac_shift 18551 case $ac_optarg in 18552 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18553 esac 18554 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18555 ac_need_defaults=false;; 18556 --he | --h) 18557 # Conflict between --help and --header 18558 as_fn_error $? "ambiguous option: \`$1' 18559Try \`$0 --help' for more information.";; 18560 --help | --hel | -h ) 18561 $as_echo "$ac_cs_usage"; exit ;; 18562 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18563 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18564 ac_cs_silent=: ;; 18565 18566 # This is an error. 18567 -*) as_fn_error $? "unrecognized option: \`$1' 18568Try \`$0 --help' for more information." ;; 18569 18570 *) as_fn_append ac_config_targets " $1" 18571 ac_need_defaults=false ;; 18572 18573 esac 18574 shift 18575done 18576 18577ac_configure_extra_args= 18578 18579if $ac_cs_silent; then 18580 exec 6>/dev/null 18581 ac_configure_extra_args="$ac_configure_extra_args --silent" 18582fi 18583 18584_ACEOF 18585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18586if \$ac_cs_recheck; then 18587 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18588 shift 18589 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18590 CONFIG_SHELL='$SHELL' 18591 export CONFIG_SHELL 18592 exec "\$@" 18593fi 18594 18595_ACEOF 18596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18597exec 5>>config.log 18598{ 18599 echo 18600 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18601## Running $as_me. ## 18602_ASBOX 18603 $as_echo "$ac_log" 18604} >&5 18605 18606_ACEOF 18607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18608# 18609# INIT-COMMANDS 18610# 18611AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18612 18613 18614# The HP-UX ksh and POSIX shell print the target directory to stdout 18615# if CDPATH is set. 18616(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18617 18618sed_quote_subst='$sed_quote_subst' 18619double_quote_subst='$double_quote_subst' 18620delay_variable_subst='$delay_variable_subst' 18621macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18622macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18623enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18624enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18625pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18626enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18627SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18628ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18629PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18630host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18631host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18632host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18633build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18634build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18635build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18636SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18637Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18638GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18639EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18640FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18641LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18642NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18643LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18644max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18645ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18646exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18647lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18648lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18649lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18650lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18651lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18652reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18653reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18654OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18655deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18656file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18657file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18658want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18659DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18660sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18661AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18662AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18663archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18664STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18665RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18666old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18667old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18668old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18669lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18670CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18671CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18672compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18673GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18674lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18675lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18676lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18677lt_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"`' 18678nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18679lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18680objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18681MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18682lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18683lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18684lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18685lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18686lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18687need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18688MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18689DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18690NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18691LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18692OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18693OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18694libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18695shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18696extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18697archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18698enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18699export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18700whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18701compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18702old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18703old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18704archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18705archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18706module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18707module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18708with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18709allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18710no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18711hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18712hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18713hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18714hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18715hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18716hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18717hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18718inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18719link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18720always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18721export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18722exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18723include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18724prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18725postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18726file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18727variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18728need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18729need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18730version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18731runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18732shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18733shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18734libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18735library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18736soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18737install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18738postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18739postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18740finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18741finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18742hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18743sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18744sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18745hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18746enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18747enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18748enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18749old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18750striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18751 18752LTCC='$LTCC' 18753LTCFLAGS='$LTCFLAGS' 18754compiler='$compiler_DEFAULT' 18755 18756# A function that is used when there is no print builtin or printf. 18757func_fallback_echo () 18758{ 18759 eval 'cat <<_LTECHO_EOF 18760\$1 18761_LTECHO_EOF' 18762} 18763 18764# Quote evaled strings. 18765for var in SHELL \ 18766ECHO \ 18767PATH_SEPARATOR \ 18768SED \ 18769GREP \ 18770EGREP \ 18771FGREP \ 18772LD \ 18773NM \ 18774LN_S \ 18775lt_SP2NL \ 18776lt_NL2SP \ 18777reload_flag \ 18778OBJDUMP \ 18779deplibs_check_method \ 18780file_magic_cmd \ 18781file_magic_glob \ 18782want_nocaseglob \ 18783DLLTOOL \ 18784sharedlib_from_linklib_cmd \ 18785AR \ 18786AR_FLAGS \ 18787archiver_list_spec \ 18788STRIP \ 18789RANLIB \ 18790CC \ 18791CFLAGS \ 18792compiler \ 18793lt_cv_sys_global_symbol_pipe \ 18794lt_cv_sys_global_symbol_to_cdecl \ 18795lt_cv_sys_global_symbol_to_c_name_address \ 18796lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18797nm_file_list_spec \ 18798lt_prog_compiler_no_builtin_flag \ 18799lt_prog_compiler_pic \ 18800lt_prog_compiler_wl \ 18801lt_prog_compiler_static \ 18802lt_cv_prog_compiler_c_o \ 18803need_locks \ 18804MANIFEST_TOOL \ 18805DSYMUTIL \ 18806NMEDIT \ 18807LIPO \ 18808OTOOL \ 18809OTOOL64 \ 18810shrext_cmds \ 18811export_dynamic_flag_spec \ 18812whole_archive_flag_spec \ 18813compiler_needs_object \ 18814with_gnu_ld \ 18815allow_undefined_flag \ 18816no_undefined_flag \ 18817hardcode_libdir_flag_spec \ 18818hardcode_libdir_separator \ 18819exclude_expsyms \ 18820include_expsyms \ 18821file_list_spec \ 18822variables_saved_for_relink \ 18823libname_spec \ 18824library_names_spec \ 18825soname_spec \ 18826install_override_mode \ 18827finish_eval \ 18828old_striplib \ 18829striplib; do 18830 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18831 *[\\\\\\\`\\"\\\$]*) 18832 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18833 ;; 18834 *) 18835 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18836 ;; 18837 esac 18838done 18839 18840# Double-quote double-evaled strings. 18841for var in reload_cmds \ 18842old_postinstall_cmds \ 18843old_postuninstall_cmds \ 18844old_archive_cmds \ 18845extract_expsyms_cmds \ 18846old_archive_from_new_cmds \ 18847old_archive_from_expsyms_cmds \ 18848archive_cmds \ 18849archive_expsym_cmds \ 18850module_cmds \ 18851module_expsym_cmds \ 18852export_symbols_cmds \ 18853prelink_cmds \ 18854postlink_cmds \ 18855postinstall_cmds \ 18856postuninstall_cmds \ 18857finish_cmds \ 18858sys_lib_search_path_spec \ 18859sys_lib_dlsearch_path_spec; do 18860 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18861 *[\\\\\\\`\\"\\\$]*) 18862 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18863 ;; 18864 *) 18865 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18866 ;; 18867 esac 18868done 18869 18870ac_aux_dir='$ac_aux_dir' 18871xsi_shell='$xsi_shell' 18872lt_shell_append='$lt_shell_append' 18873 18874# See if we are running on zsh, and set the options which allow our 18875# commands through without removal of \ escapes INIT. 18876if test -n "\${ZSH_VERSION+set}" ; then 18877 setopt NO_GLOB_SUBST 18878fi 18879 18880 18881 PACKAGE='$PACKAGE' 18882 VERSION='$VERSION' 18883 TIMESTAMP='$TIMESTAMP' 18884 RM='$RM' 18885 ofile='$ofile' 18886 18887 18888 18889 18890_ACEOF 18891 18892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18893 18894# Handling of arguments. 18895for ac_config_target in $ac_config_targets 18896do 18897 case $ac_config_target in 18898 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18899 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18900 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18901 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18902 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 18903 "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;; 18904 "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;; 18905 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18906 "wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES wrapper/Makefile" ;; 18907 "xvmc.pc") CONFIG_FILES="$CONFIG_FILES xvmc.pc" ;; 18908 18909 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18910 esac 18911done 18912 18913 18914# If the user did not use the arguments to specify the items to instantiate, 18915# then the envvar interface is used. Set only those that are not. 18916# We use the long form for the default assignment because of an extremely 18917# bizarre bug on SunOS 4.1.3. 18918if $ac_need_defaults; then 18919 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18920 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18921 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18922fi 18923 18924# Have a temporary directory for convenience. Make it in the build tree 18925# simply because there is no reason against having it here, and in addition, 18926# creating and moving files from /tmp can sometimes cause problems. 18927# Hook for its removal unless debugging. 18928# Note that there is a small window in which the directory will not be cleaned: 18929# after its creation but before its name has been assigned to `$tmp'. 18930$debug || 18931{ 18932 tmp= ac_tmp= 18933 trap 'exit_status=$? 18934 : "${ac_tmp:=$tmp}" 18935 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18936' 0 18937 trap 'as_fn_exit 1' 1 2 13 15 18938} 18939# Create a (secure) tmp directory for tmp files. 18940 18941{ 18942 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18943 test -d "$tmp" 18944} || 18945{ 18946 tmp=./conf$$-$RANDOM 18947 (umask 077 && mkdir "$tmp") 18948} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18949ac_tmp=$tmp 18950 18951# Set up the scripts for CONFIG_FILES section. 18952# No need to generate them if there are no CONFIG_FILES. 18953# This happens for instance with `./config.status config.h'. 18954if test -n "$CONFIG_FILES"; then 18955 18956 18957ac_cr=`echo X | tr X '\015'` 18958# On cygwin, bash can eat \r inside `` if the user requested igncr. 18959# But we know of no other shell where ac_cr would be empty at this 18960# point, so we can use a bashism as a fallback. 18961if test "x$ac_cr" = x; then 18962 eval ac_cr=\$\'\\r\' 18963fi 18964ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18965if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18966 ac_cs_awk_cr='\\r' 18967else 18968 ac_cs_awk_cr=$ac_cr 18969fi 18970 18971echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18972_ACEOF 18973 18974 18975{ 18976 echo "cat >conf$$subs.awk <<_ACEOF" && 18977 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18978 echo "_ACEOF" 18979} >conf$$subs.sh || 18980 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18981ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18982ac_delim='%!_!# ' 18983for ac_last_try in false false false false false :; do 18984 . ./conf$$subs.sh || 18985 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18986 18987 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18988 if test $ac_delim_n = $ac_delim_num; then 18989 break 18990 elif $ac_last_try; then 18991 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18992 else 18993 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18994 fi 18995done 18996rm -f conf$$subs.sh 18997 18998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18999cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19000_ACEOF 19001sed -n ' 19002h 19003s/^/S["/; s/!.*/"]=/ 19004p 19005g 19006s/^[^!]*!// 19007:repl 19008t repl 19009s/'"$ac_delim"'$// 19010t delim 19011:nl 19012h 19013s/\(.\{148\}\)..*/\1/ 19014t more1 19015s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19016p 19017n 19018b repl 19019:more1 19020s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19021p 19022g 19023s/.\{148\}// 19024t nl 19025:delim 19026h 19027s/\(.\{148\}\)..*/\1/ 19028t more2 19029s/["\\]/\\&/g; s/^/"/; s/$/"/ 19030p 19031b 19032:more2 19033s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19034p 19035g 19036s/.\{148\}// 19037t delim 19038' <conf$$subs.awk | sed ' 19039/^[^""]/{ 19040 N 19041 s/\n// 19042} 19043' >>$CONFIG_STATUS || ac_write_fail=1 19044rm -f conf$$subs.awk 19045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19046_ACAWK 19047cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19048 for (key in S) S_is_set[key] = 1 19049 FS = "" 19050 19051} 19052{ 19053 line = $ 0 19054 nfields = split(line, field, "@") 19055 substed = 0 19056 len = length(field[1]) 19057 for (i = 2; i < nfields; i++) { 19058 key = field[i] 19059 keylen = length(key) 19060 if (S_is_set[key]) { 19061 value = S[key] 19062 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19063 len += length(value) + length(field[++i]) 19064 substed = 1 19065 } else 19066 len += 1 + keylen 19067 } 19068 19069 print line 19070} 19071 19072_ACAWK 19073_ACEOF 19074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19075if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19076 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19077else 19078 cat 19079fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19080 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19081_ACEOF 19082 19083# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19084# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19085# trailing colons and then remove the whole line if VPATH becomes empty 19086# (actually we leave an empty line to preserve line numbers). 19087if test "x$srcdir" = x.; then 19088 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19089h 19090s/// 19091s/^/:/ 19092s/[ ]*$/:/ 19093s/:\$(srcdir):/:/g 19094s/:\${srcdir}:/:/g 19095s/:@srcdir@:/:/g 19096s/^:*// 19097s/:*$// 19098x 19099s/\(=[ ]*\).*/\1/ 19100G 19101s/\n// 19102s/^[^=]*=[ ]*$// 19103}' 19104fi 19105 19106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19107fi # test -n "$CONFIG_FILES" 19108 19109# Set up the scripts for CONFIG_HEADERS section. 19110# No need to generate them if there are no CONFIG_HEADERS. 19111# This happens for instance with `./config.status Makefile'. 19112if test -n "$CONFIG_HEADERS"; then 19113cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19114BEGIN { 19115_ACEOF 19116 19117# Transform confdefs.h into an awk script `defines.awk', embedded as 19118# here-document in config.status, that substitutes the proper values into 19119# config.h.in to produce config.h. 19120 19121# Create a delimiter string that does not exist in confdefs.h, to ease 19122# handling of long lines. 19123ac_delim='%!_!# ' 19124for ac_last_try in false false :; do 19125 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19126 if test -z "$ac_tt"; then 19127 break 19128 elif $ac_last_try; then 19129 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19130 else 19131 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19132 fi 19133done 19134 19135# For the awk script, D is an array of macro values keyed by name, 19136# likewise P contains macro parameters if any. Preserve backslash 19137# newline sequences. 19138 19139ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19140sed -n ' 19141s/.\{148\}/&'"$ac_delim"'/g 19142t rset 19143:rset 19144s/^[ ]*#[ ]*define[ ][ ]*/ / 19145t def 19146d 19147:def 19148s/\\$// 19149t bsnl 19150s/["\\]/\\&/g 19151s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19152D["\1"]=" \3"/p 19153s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19154d 19155:bsnl 19156s/["\\]/\\&/g 19157s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19158D["\1"]=" \3\\\\\\n"\\/p 19159t cont 19160s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19161t cont 19162d 19163:cont 19164n 19165s/.\{148\}/&'"$ac_delim"'/g 19166t clear 19167:clear 19168s/\\$// 19169t bsnlc 19170s/["\\]/\\&/g; s/^/"/; s/$/"/p 19171d 19172:bsnlc 19173s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19174b cont 19175' <confdefs.h | sed ' 19176s/'"$ac_delim"'/"\\\ 19177"/g' >>$CONFIG_STATUS || ac_write_fail=1 19178 19179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19180 for (key in D) D_is_set[key] = 1 19181 FS = "" 19182} 19183/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19184 line = \$ 0 19185 split(line, arg, " ") 19186 if (arg[1] == "#") { 19187 defundef = arg[2] 19188 mac1 = arg[3] 19189 } else { 19190 defundef = substr(arg[1], 2) 19191 mac1 = arg[2] 19192 } 19193 split(mac1, mac2, "(") #) 19194 macro = mac2[1] 19195 prefix = substr(line, 1, index(line, defundef) - 1) 19196 if (D_is_set[macro]) { 19197 # Preserve the white space surrounding the "#". 19198 print prefix "define", macro P[macro] D[macro] 19199 next 19200 } else { 19201 # Replace #undef with comments. This is necessary, for example, 19202 # in the case of _POSIX_SOURCE, which is predefined and required 19203 # on some systems where configure will not decide to define it. 19204 if (defundef == "undef") { 19205 print "/*", prefix defundef, macro, "*/" 19206 next 19207 } 19208 } 19209} 19210{ print } 19211_ACAWK 19212_ACEOF 19213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19214 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19215fi # test -n "$CONFIG_HEADERS" 19216 19217 19218eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19219shift 19220for ac_tag 19221do 19222 case $ac_tag in 19223 :[FHLC]) ac_mode=$ac_tag; continue;; 19224 esac 19225 case $ac_mode$ac_tag in 19226 :[FHL]*:*);; 19227 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19228 :[FH]-) ac_tag=-:-;; 19229 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19230 esac 19231 ac_save_IFS=$IFS 19232 IFS=: 19233 set x $ac_tag 19234 IFS=$ac_save_IFS 19235 shift 19236 ac_file=$1 19237 shift 19238 19239 case $ac_mode in 19240 :L) ac_source=$1;; 19241 :[FH]) 19242 ac_file_inputs= 19243 for ac_f 19244 do 19245 case $ac_f in 19246 -) ac_f="$ac_tmp/stdin";; 19247 *) # Look for the file first in the build tree, then in the source tree 19248 # (if the path is not absolute). The absolute path cannot be DOS-style, 19249 # because $ac_f cannot contain `:'. 19250 test -f "$ac_f" || 19251 case $ac_f in 19252 [\\/$]*) false;; 19253 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19254 esac || 19255 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19256 esac 19257 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19258 as_fn_append ac_file_inputs " '$ac_f'" 19259 done 19260 19261 # Let's still pretend it is `configure' which instantiates (i.e., don't 19262 # use $as_me), people would be surprised to read: 19263 # /* config.h. Generated by config.status. */ 19264 configure_input='Generated from '` 19265 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19266 `' by configure.' 19267 if test x"$ac_file" != x-; then 19268 configure_input="$ac_file. $configure_input" 19269 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19270$as_echo "$as_me: creating $ac_file" >&6;} 19271 fi 19272 # Neutralize special characters interpreted by sed in replacement strings. 19273 case $configure_input in #( 19274 *\&* | *\|* | *\\* ) 19275 ac_sed_conf_input=`$as_echo "$configure_input" | 19276 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19277 *) ac_sed_conf_input=$configure_input;; 19278 esac 19279 19280 case $ac_tag in 19281 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19282 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19283 esac 19284 ;; 19285 esac 19286 19287 ac_dir=`$as_dirname -- "$ac_file" || 19288$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19289 X"$ac_file" : 'X\(//\)[^/]' \| \ 19290 X"$ac_file" : 'X\(//\)$' \| \ 19291 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19292$as_echo X"$ac_file" | 19293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19294 s//\1/ 19295 q 19296 } 19297 /^X\(\/\/\)[^/].*/{ 19298 s//\1/ 19299 q 19300 } 19301 /^X\(\/\/\)$/{ 19302 s//\1/ 19303 q 19304 } 19305 /^X\(\/\).*/{ 19306 s//\1/ 19307 q 19308 } 19309 s/.*/./; q'` 19310 as_dir="$ac_dir"; as_fn_mkdir_p 19311 ac_builddir=. 19312 19313case "$ac_dir" in 19314.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19315*) 19316 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19317 # A ".." for each directory in $ac_dir_suffix. 19318 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19319 case $ac_top_builddir_sub in 19320 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19321 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19322 esac ;; 19323esac 19324ac_abs_top_builddir=$ac_pwd 19325ac_abs_builddir=$ac_pwd$ac_dir_suffix 19326# for backward compatibility: 19327ac_top_builddir=$ac_top_build_prefix 19328 19329case $srcdir in 19330 .) # We are building in place. 19331 ac_srcdir=. 19332 ac_top_srcdir=$ac_top_builddir_sub 19333 ac_abs_top_srcdir=$ac_pwd ;; 19334 [\\/]* | ?:[\\/]* ) # Absolute name. 19335 ac_srcdir=$srcdir$ac_dir_suffix; 19336 ac_top_srcdir=$srcdir 19337 ac_abs_top_srcdir=$srcdir ;; 19338 *) # Relative name. 19339 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19340 ac_top_srcdir=$ac_top_build_prefix$srcdir 19341 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19342esac 19343ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19344 19345 19346 case $ac_mode in 19347 :F) 19348 # 19349 # CONFIG_FILE 19350 # 19351 19352 case $INSTALL in 19353 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19354 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19355 esac 19356 ac_MKDIR_P=$MKDIR_P 19357 case $MKDIR_P in 19358 [\\/$]* | ?:[\\/]* ) ;; 19359 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19360 esac 19361_ACEOF 19362 19363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19364# If the template does not know about datarootdir, expand it. 19365# FIXME: This hack should be removed a few years after 2.60. 19366ac_datarootdir_hack=; ac_datarootdir_seen= 19367ac_sed_dataroot=' 19368/datarootdir/ { 19369 p 19370 q 19371} 19372/@datadir@/p 19373/@docdir@/p 19374/@infodir@/p 19375/@localedir@/p 19376/@mandir@/p' 19377case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19378*datarootdir*) ac_datarootdir_seen=yes;; 19379*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19381$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19382_ACEOF 19383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19384 ac_datarootdir_hack=' 19385 s&@datadir@&$datadir&g 19386 s&@docdir@&$docdir&g 19387 s&@infodir@&$infodir&g 19388 s&@localedir@&$localedir&g 19389 s&@mandir@&$mandir&g 19390 s&\\\${datarootdir}&$datarootdir&g' ;; 19391esac 19392_ACEOF 19393 19394# Neutralize VPATH when `$srcdir' = `.'. 19395# Shell code in configure.ac might set extrasub. 19396# FIXME: do we really want to maintain this feature? 19397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19398ac_sed_extra="$ac_vpsub 19399$extrasub 19400_ACEOF 19401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19402:t 19403/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19404s|@configure_input@|$ac_sed_conf_input|;t t 19405s&@top_builddir@&$ac_top_builddir_sub&;t t 19406s&@top_build_prefix@&$ac_top_build_prefix&;t t 19407s&@srcdir@&$ac_srcdir&;t t 19408s&@abs_srcdir@&$ac_abs_srcdir&;t t 19409s&@top_srcdir@&$ac_top_srcdir&;t t 19410s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19411s&@builddir@&$ac_builddir&;t t 19412s&@abs_builddir@&$ac_abs_builddir&;t t 19413s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19414s&@INSTALL@&$ac_INSTALL&;t t 19415s&@MKDIR_P@&$ac_MKDIR_P&;t t 19416$ac_datarootdir_hack 19417" 19418eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19419 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19420 19421test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19422 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19423 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19424 "$ac_tmp/out"`; test -z "$ac_out"; } && 19425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19426which seems to be undefined. Please make sure it is defined" >&5 19427$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19428which seems to be undefined. Please make sure it is defined" >&2;} 19429 19430 rm -f "$ac_tmp/stdin" 19431 case $ac_file in 19432 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19433 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19434 esac \ 19435 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19436 ;; 19437 :H) 19438 # 19439 # CONFIG_HEADER 19440 # 19441 if test x"$ac_file" != x-; then 19442 { 19443 $as_echo "/* $configure_input */" \ 19444 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19445 } >"$ac_tmp/config.h" \ 19446 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19447 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19448 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19449$as_echo "$as_me: $ac_file is unchanged" >&6;} 19450 else 19451 rm -f "$ac_file" 19452 mv "$ac_tmp/config.h" "$ac_file" \ 19453 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19454 fi 19455 else 19456 $as_echo "/* $configure_input */" \ 19457 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19458 || as_fn_error $? "could not create -" "$LINENO" 5 19459 fi 19460# Compute "$ac_file"'s index in $config_headers. 19461_am_arg="$ac_file" 19462_am_stamp_count=1 19463for _am_header in $config_headers :; do 19464 case $_am_header in 19465 $_am_arg | $_am_arg:* ) 19466 break ;; 19467 * ) 19468 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19469 esac 19470done 19471echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19472$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19473 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19474 X"$_am_arg" : 'X\(//\)$' \| \ 19475 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19476$as_echo X"$_am_arg" | 19477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19478 s//\1/ 19479 q 19480 } 19481 /^X\(\/\/\)[^/].*/{ 19482 s//\1/ 19483 q 19484 } 19485 /^X\(\/\/\)$/{ 19486 s//\1/ 19487 q 19488 } 19489 /^X\(\/\).*/{ 19490 s//\1/ 19491 q 19492 } 19493 s/.*/./; q'`/stamp-h$_am_stamp_count 19494 ;; 19495 19496 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19497$as_echo "$as_me: executing $ac_file commands" >&6;} 19498 ;; 19499 esac 19500 19501 19502 case $ac_file$ac_mode in 19503 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19504 # Older Autoconf quotes --file arguments for eval, but not when files 19505 # are listed without --file. Let's play safe and only enable the eval 19506 # if we detect the quoting. 19507 case $CONFIG_FILES in 19508 *\'*) eval set x "$CONFIG_FILES" ;; 19509 *) set x $CONFIG_FILES ;; 19510 esac 19511 shift 19512 for mf 19513 do 19514 # Strip MF so we end up with the name of the file. 19515 mf=`echo "$mf" | sed -e 's/:.*$//'` 19516 # Check whether this is an Automake generated Makefile or not. 19517 # We used to match only the files named 'Makefile.in', but 19518 # some people rename them; so instead we look at the file content. 19519 # Grep'ing the first line is not enough: some people post-process 19520 # each Makefile.in and add a new line on top of each file to say so. 19521 # Grep'ing the whole file is not good either: AIX grep has a line 19522 # limit of 2048, but all sed's we know have understand at least 4000. 19523 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19524 dirpart=`$as_dirname -- "$mf" || 19525$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19526 X"$mf" : 'X\(//\)[^/]' \| \ 19527 X"$mf" : 'X\(//\)$' \| \ 19528 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19529$as_echo X"$mf" | 19530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19531 s//\1/ 19532 q 19533 } 19534 /^X\(\/\/\)[^/].*/{ 19535 s//\1/ 19536 q 19537 } 19538 /^X\(\/\/\)$/{ 19539 s//\1/ 19540 q 19541 } 19542 /^X\(\/\).*/{ 19543 s//\1/ 19544 q 19545 } 19546 s/.*/./; q'` 19547 else 19548 continue 19549 fi 19550 # Extract the definition of DEPDIR, am__include, and am__quote 19551 # from the Makefile without running 'make'. 19552 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19553 test -z "$DEPDIR" && continue 19554 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19555 test -z "$am__include" && continue 19556 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19557 # Find all dependency output files, they are included files with 19558 # $(DEPDIR) in their names. We invoke sed twice because it is the 19559 # simplest approach to changing $(DEPDIR) to its actual value in the 19560 # expansion. 19561 for file in `sed -n " 19562 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19563 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19564 # Make sure the directory exists. 19565 test -f "$dirpart/$file" && continue 19566 fdir=`$as_dirname -- "$file" || 19567$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19568 X"$file" : 'X\(//\)[^/]' \| \ 19569 X"$file" : 'X\(//\)$' \| \ 19570 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19571$as_echo X"$file" | 19572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19573 s//\1/ 19574 q 19575 } 19576 /^X\(\/\/\)[^/].*/{ 19577 s//\1/ 19578 q 19579 } 19580 /^X\(\/\/\)$/{ 19581 s//\1/ 19582 q 19583 } 19584 /^X\(\/\).*/{ 19585 s//\1/ 19586 q 19587 } 19588 s/.*/./; q'` 19589 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19590 # echo "creating $dirpart/$file" 19591 echo '# dummy' > "$dirpart/$file" 19592 done 19593 done 19594} 19595 ;; 19596 "libtool":C) 19597 19598 # See if we are running on zsh, and set the options which allow our 19599 # commands through without removal of \ escapes. 19600 if test -n "${ZSH_VERSION+set}" ; then 19601 setopt NO_GLOB_SUBST 19602 fi 19603 19604 cfgfile="${ofile}T" 19605 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19606 $RM "$cfgfile" 19607 19608 cat <<_LT_EOF >> "$cfgfile" 19609#! $SHELL 19610 19611# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19612# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19613# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19614# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19615# 19616# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19617# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19618# Foundation, Inc. 19619# Written by Gordon Matzigkeit, 1996 19620# 19621# This file is part of GNU Libtool. 19622# 19623# GNU Libtool is free software; you can redistribute it and/or 19624# modify it under the terms of the GNU General Public License as 19625# published by the Free Software Foundation; either version 2 of 19626# the License, or (at your option) any later version. 19627# 19628# As a special exception to the GNU General Public License, 19629# if you distribute this file as part of a program or library that 19630# is built using GNU Libtool, you may include this file under the 19631# same distribution terms that you use for the rest of that program. 19632# 19633# GNU Libtool is distributed in the hope that it will be useful, 19634# but WITHOUT ANY WARRANTY; without even the implied warranty of 19635# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19636# GNU General Public License for more details. 19637# 19638# You should have received a copy of the GNU General Public License 19639# along with GNU Libtool; see the file COPYING. If not, a copy 19640# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19641# obtained by writing to the Free Software Foundation, Inc., 19642# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19643 19644 19645# The names of the tagged configurations supported by this script. 19646available_tags="" 19647 19648# ### BEGIN LIBTOOL CONFIG 19649 19650# Which release of libtool.m4 was used? 19651macro_version=$macro_version 19652macro_revision=$macro_revision 19653 19654# Whether or not to build shared libraries. 19655build_libtool_libs=$enable_shared 19656 19657# Whether or not to build static libraries. 19658build_old_libs=$enable_static 19659 19660# What type of objects to build. 19661pic_mode=$pic_mode 19662 19663# Whether or not to optimize for fast installation. 19664fast_install=$enable_fast_install 19665 19666# Shell to use when invoking shell scripts. 19667SHELL=$lt_SHELL 19668 19669# An echo program that protects backslashes. 19670ECHO=$lt_ECHO 19671 19672# The PATH separator for the build system. 19673PATH_SEPARATOR=$lt_PATH_SEPARATOR 19674 19675# The host system. 19676host_alias=$host_alias 19677host=$host 19678host_os=$host_os 19679 19680# The build system. 19681build_alias=$build_alias 19682build=$build 19683build_os=$build_os 19684 19685# A sed program that does not truncate output. 19686SED=$lt_SED 19687 19688# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19689Xsed="\$SED -e 1s/^X//" 19690 19691# A grep program that handles long lines. 19692GREP=$lt_GREP 19693 19694# An ERE matcher. 19695EGREP=$lt_EGREP 19696 19697# A literal string matcher. 19698FGREP=$lt_FGREP 19699 19700# A BSD- or MS-compatible name lister. 19701NM=$lt_NM 19702 19703# Whether we need soft or hard links. 19704LN_S=$lt_LN_S 19705 19706# What is the maximum length of a command? 19707max_cmd_len=$max_cmd_len 19708 19709# Object file suffix (normally "o"). 19710objext=$ac_objext 19711 19712# Executable file suffix (normally ""). 19713exeext=$exeext 19714 19715# whether the shell understands "unset". 19716lt_unset=$lt_unset 19717 19718# turn spaces into newlines. 19719SP2NL=$lt_lt_SP2NL 19720 19721# turn newlines into spaces. 19722NL2SP=$lt_lt_NL2SP 19723 19724# convert \$build file names to \$host format. 19725to_host_file_cmd=$lt_cv_to_host_file_cmd 19726 19727# convert \$build files to toolchain format. 19728to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19729 19730# An object symbol dumper. 19731OBJDUMP=$lt_OBJDUMP 19732 19733# Method to check whether dependent libraries are shared objects. 19734deplibs_check_method=$lt_deplibs_check_method 19735 19736# Command to use when deplibs_check_method = "file_magic". 19737file_magic_cmd=$lt_file_magic_cmd 19738 19739# How to find potential files when deplibs_check_method = "file_magic". 19740file_magic_glob=$lt_file_magic_glob 19741 19742# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19743want_nocaseglob=$lt_want_nocaseglob 19744 19745# DLL creation program. 19746DLLTOOL=$lt_DLLTOOL 19747 19748# Command to associate shared and link libraries. 19749sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19750 19751# The archiver. 19752AR=$lt_AR 19753 19754# Flags to create an archive. 19755AR_FLAGS=$lt_AR_FLAGS 19756 19757# How to feed a file listing to the archiver. 19758archiver_list_spec=$lt_archiver_list_spec 19759 19760# A symbol stripping program. 19761STRIP=$lt_STRIP 19762 19763# Commands used to install an old-style archive. 19764RANLIB=$lt_RANLIB 19765old_postinstall_cmds=$lt_old_postinstall_cmds 19766old_postuninstall_cmds=$lt_old_postuninstall_cmds 19767 19768# Whether to use a lock for old archive extraction. 19769lock_old_archive_extraction=$lock_old_archive_extraction 19770 19771# A C compiler. 19772LTCC=$lt_CC 19773 19774# LTCC compiler flags. 19775LTCFLAGS=$lt_CFLAGS 19776 19777# Take the output of nm and produce a listing of raw symbols and C names. 19778global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19779 19780# Transform the output of nm in a proper C declaration. 19781global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19782 19783# Transform the output of nm in a C name address pair. 19784global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19785 19786# Transform the output of nm in a C name address pair when lib prefix is needed. 19787global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19788 19789# Specify filename containing input files for \$NM. 19790nm_file_list_spec=$lt_nm_file_list_spec 19791 19792# The root where to search for dependent libraries,and in which our libraries should be installed. 19793lt_sysroot=$lt_sysroot 19794 19795# The name of the directory that contains temporary libtool files. 19796objdir=$objdir 19797 19798# Used to examine libraries when file_magic_cmd begins with "file". 19799MAGIC_CMD=$MAGIC_CMD 19800 19801# Must we lock files when doing compilation? 19802need_locks=$lt_need_locks 19803 19804# Manifest tool. 19805MANIFEST_TOOL=$lt_MANIFEST_TOOL 19806 19807# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19808DSYMUTIL=$lt_DSYMUTIL 19809 19810# Tool to change global to local symbols on Mac OS X. 19811NMEDIT=$lt_NMEDIT 19812 19813# Tool to manipulate fat objects and archives on Mac OS X. 19814LIPO=$lt_LIPO 19815 19816# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19817OTOOL=$lt_OTOOL 19818 19819# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19820OTOOL64=$lt_OTOOL64 19821 19822# Old archive suffix (normally "a"). 19823libext=$libext 19824 19825# Shared library suffix (normally ".so"). 19826shrext_cmds=$lt_shrext_cmds 19827 19828# The commands to extract the exported symbol list from a shared archive. 19829extract_expsyms_cmds=$lt_extract_expsyms_cmds 19830 19831# Variables whose values should be saved in libtool wrapper scripts and 19832# restored at link time. 19833variables_saved_for_relink=$lt_variables_saved_for_relink 19834 19835# Do we need the "lib" prefix for modules? 19836need_lib_prefix=$need_lib_prefix 19837 19838# Do we need a version for libraries? 19839need_version=$need_version 19840 19841# Library versioning type. 19842version_type=$version_type 19843 19844# Shared library runtime path variable. 19845runpath_var=$runpath_var 19846 19847# Shared library path variable. 19848shlibpath_var=$shlibpath_var 19849 19850# Is shlibpath searched before the hard-coded library search path? 19851shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19852 19853# Format of library name prefix. 19854libname_spec=$lt_libname_spec 19855 19856# List of archive names. First name is the real one, the rest are links. 19857# The last name is the one that the linker finds with -lNAME 19858library_names_spec=$lt_library_names_spec 19859 19860# The coded name of the library, if different from the real name. 19861soname_spec=$lt_soname_spec 19862 19863# Permission mode override for installation of shared libraries. 19864install_override_mode=$lt_install_override_mode 19865 19866# Command to use after installation of a shared archive. 19867postinstall_cmds=$lt_postinstall_cmds 19868 19869# Command to use after uninstallation of a shared archive. 19870postuninstall_cmds=$lt_postuninstall_cmds 19871 19872# Commands used to finish a libtool library installation in a directory. 19873finish_cmds=$lt_finish_cmds 19874 19875# As "finish_cmds", except a single script fragment to be evaled but 19876# not shown. 19877finish_eval=$lt_finish_eval 19878 19879# Whether we should hardcode library paths into libraries. 19880hardcode_into_libs=$hardcode_into_libs 19881 19882# Compile-time system search path for libraries. 19883sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19884 19885# Run-time system search path for libraries. 19886sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19887 19888# Whether dlopen is supported. 19889dlopen_support=$enable_dlopen 19890 19891# Whether dlopen of programs is supported. 19892dlopen_self=$enable_dlopen_self 19893 19894# Whether dlopen of statically linked programs is supported. 19895dlopen_self_static=$enable_dlopen_self_static 19896 19897# Commands to strip libraries. 19898old_striplib=$lt_old_striplib 19899striplib=$lt_striplib 19900 19901 19902# The linker used to build libraries. 19903LD=$lt_LD 19904 19905# How to create reloadable object files. 19906reload_flag=$lt_reload_flag 19907reload_cmds=$lt_reload_cmds 19908 19909# Commands used to build an old-style archive. 19910old_archive_cmds=$lt_old_archive_cmds 19911 19912# A language specific compiler. 19913CC=$lt_compiler 19914 19915# Is the compiler the GNU compiler? 19916with_gcc=$GCC 19917 19918# Compiler flag to turn off builtin functions. 19919no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19920 19921# Additional compiler flags for building library objects. 19922pic_flag=$lt_lt_prog_compiler_pic 19923 19924# How to pass a linker flag through the compiler. 19925wl=$lt_lt_prog_compiler_wl 19926 19927# Compiler flag to prevent dynamic linking. 19928link_static_flag=$lt_lt_prog_compiler_static 19929 19930# Does compiler simultaneously support -c and -o options? 19931compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19932 19933# Whether or not to add -lc for building shared libraries. 19934build_libtool_need_lc=$archive_cmds_need_lc 19935 19936# Whether or not to disallow shared libs when runtime libs are static. 19937allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19938 19939# Compiler flag to allow reflexive dlopens. 19940export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19941 19942# Compiler flag to generate shared objects directly from archives. 19943whole_archive_flag_spec=$lt_whole_archive_flag_spec 19944 19945# Whether the compiler copes with passing no objects directly. 19946compiler_needs_object=$lt_compiler_needs_object 19947 19948# Create an old-style archive from a shared archive. 19949old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19950 19951# Create a temporary old-style archive to link instead of a shared archive. 19952old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19953 19954# Commands used to build a shared archive. 19955archive_cmds=$lt_archive_cmds 19956archive_expsym_cmds=$lt_archive_expsym_cmds 19957 19958# Commands used to build a loadable module if different from building 19959# a shared archive. 19960module_cmds=$lt_module_cmds 19961module_expsym_cmds=$lt_module_expsym_cmds 19962 19963# Whether we are building with GNU ld or not. 19964with_gnu_ld=$lt_with_gnu_ld 19965 19966# Flag that allows shared libraries with undefined symbols to be built. 19967allow_undefined_flag=$lt_allow_undefined_flag 19968 19969# Flag that enforces no undefined symbols. 19970no_undefined_flag=$lt_no_undefined_flag 19971 19972# Flag to hardcode \$libdir into a binary during linking. 19973# This must work even if \$libdir does not exist 19974hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19975 19976# Whether we need a single "-rpath" flag with a separated argument. 19977hardcode_libdir_separator=$lt_hardcode_libdir_separator 19978 19979# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19980# DIR into the resulting binary. 19981hardcode_direct=$hardcode_direct 19982 19983# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19984# DIR into the resulting binary and the resulting library dependency is 19985# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19986# library is relocated. 19987hardcode_direct_absolute=$hardcode_direct_absolute 19988 19989# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19990# into the resulting binary. 19991hardcode_minus_L=$hardcode_minus_L 19992 19993# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19994# into the resulting binary. 19995hardcode_shlibpath_var=$hardcode_shlibpath_var 19996 19997# Set to "yes" if building a shared library automatically hardcodes DIR 19998# into the library and all subsequent libraries and executables linked 19999# against it. 20000hardcode_automatic=$hardcode_automatic 20001 20002# Set to yes if linker adds runtime paths of dependent libraries 20003# to runtime path list. 20004inherit_rpath=$inherit_rpath 20005 20006# Whether libtool must link a program against all its dependency libraries. 20007link_all_deplibs=$link_all_deplibs 20008 20009# Set to "yes" if exported symbols are required. 20010always_export_symbols=$always_export_symbols 20011 20012# The commands to list exported symbols. 20013export_symbols_cmds=$lt_export_symbols_cmds 20014 20015# Symbols that should not be listed in the preloaded symbols. 20016exclude_expsyms=$lt_exclude_expsyms 20017 20018# Symbols that must always be exported. 20019include_expsyms=$lt_include_expsyms 20020 20021# Commands necessary for linking programs (against libraries) with templates. 20022prelink_cmds=$lt_prelink_cmds 20023 20024# Commands necessary for finishing linking programs. 20025postlink_cmds=$lt_postlink_cmds 20026 20027# Specify filename containing input files. 20028file_list_spec=$lt_file_list_spec 20029 20030# How to hardcode a shared library path into an executable. 20031hardcode_action=$hardcode_action 20032 20033# ### END LIBTOOL CONFIG 20034 20035_LT_EOF 20036 20037 case $host_os in 20038 aix3*) 20039 cat <<\_LT_EOF >> "$cfgfile" 20040# AIX sometimes has problems with the GCC collect2 program. For some 20041# reason, if we set the COLLECT_NAMES environment variable, the problems 20042# vanish in a puff of smoke. 20043if test "X${COLLECT_NAMES+set}" != Xset; then 20044 COLLECT_NAMES= 20045 export COLLECT_NAMES 20046fi 20047_LT_EOF 20048 ;; 20049 esac 20050 20051 20052ltmain="$ac_aux_dir/ltmain.sh" 20053 20054 20055 # We use sed instead of cat because bash on DJGPP gets confused if 20056 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20057 # text mode, it properly converts lines to CR/LF. This bash problem 20058 # is reportedly fixed, but why not run on old versions too? 20059 sed '$q' "$ltmain" >> "$cfgfile" \ 20060 || (rm -f "$cfgfile"; exit 1) 20061 20062 if test x"$xsi_shell" = xyes; then 20063 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20064func_dirname ()\ 20065{\ 20066\ case ${1} in\ 20067\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20068\ * ) func_dirname_result="${3}" ;;\ 20069\ esac\ 20070} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20071 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20072 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20073test 0 -eq $? || _lt_function_replace_fail=: 20074 20075 20076 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20077func_basename ()\ 20078{\ 20079\ func_basename_result="${1##*/}"\ 20080} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20081 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20083test 0 -eq $? || _lt_function_replace_fail=: 20084 20085 20086 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20087func_dirname_and_basename ()\ 20088{\ 20089\ case ${1} in\ 20090\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20091\ * ) func_dirname_result="${3}" ;;\ 20092\ esac\ 20093\ func_basename_result="${1##*/}"\ 20094} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20095 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20096 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20097test 0 -eq $? || _lt_function_replace_fail=: 20098 20099 20100 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20101func_stripname ()\ 20102{\ 20103\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20104\ # positional parameters, so assign one to ordinary parameter first.\ 20105\ func_stripname_result=${3}\ 20106\ func_stripname_result=${func_stripname_result#"${1}"}\ 20107\ func_stripname_result=${func_stripname_result%"${2}"}\ 20108} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20109 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20110 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20111test 0 -eq $? || _lt_function_replace_fail=: 20112 20113 20114 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20115func_split_long_opt ()\ 20116{\ 20117\ func_split_long_opt_name=${1%%=*}\ 20118\ func_split_long_opt_arg=${1#*=}\ 20119} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20120 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20121 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20122test 0 -eq $? || _lt_function_replace_fail=: 20123 20124 20125 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20126func_split_short_opt ()\ 20127{\ 20128\ func_split_short_opt_arg=${1#??}\ 20129\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20130} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20131 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20132 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20133test 0 -eq $? || _lt_function_replace_fail=: 20134 20135 20136 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20137func_lo2o ()\ 20138{\ 20139\ case ${1} in\ 20140\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20141\ *) func_lo2o_result=${1} ;;\ 20142\ esac\ 20143} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20144 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20145 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20146test 0 -eq $? || _lt_function_replace_fail=: 20147 20148 20149 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20150func_xform ()\ 20151{\ 20152 func_xform_result=${1%.*}.lo\ 20153} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20154 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20155 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20156test 0 -eq $? || _lt_function_replace_fail=: 20157 20158 20159 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20160func_arith ()\ 20161{\ 20162 func_arith_result=$(( $* ))\ 20163} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20164 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20165 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20166test 0 -eq $? || _lt_function_replace_fail=: 20167 20168 20169 sed -e '/^func_len ()$/,/^} # func_len /c\ 20170func_len ()\ 20171{\ 20172 func_len_result=${#1}\ 20173} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20174 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20175 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20176test 0 -eq $? || _lt_function_replace_fail=: 20177 20178fi 20179 20180if test x"$lt_shell_append" = xyes; then 20181 sed -e '/^func_append ()$/,/^} # func_append /c\ 20182func_append ()\ 20183{\ 20184 eval "${1}+=\\${2}"\ 20185} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20186 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20187 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20188test 0 -eq $? || _lt_function_replace_fail=: 20189 20190 20191 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20192func_append_quoted ()\ 20193{\ 20194\ func_quote_for_eval "${2}"\ 20195\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20196} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20197 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20198 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20199test 0 -eq $? || _lt_function_replace_fail=: 20200 20201 20202 # Save a `func_append' function call where possible by direct use of '+=' 20203 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20204 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20206 test 0 -eq $? || _lt_function_replace_fail=: 20207else 20208 # Save a `func_append' function call even when '+=' is not available 20209 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20210 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20211 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20212 test 0 -eq $? || _lt_function_replace_fail=: 20213fi 20214 20215if test x"$_lt_function_replace_fail" = x":"; then 20216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20217$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20218fi 20219 20220 20221 mv -f "$cfgfile" "$ofile" || 20222 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20223 chmod +x "$ofile" 20224 20225 ;; 20226 20227 esac 20228done # for ac_tag 20229 20230 20231as_fn_exit 0 20232_ACEOF 20233ac_clean_files=$ac_clean_files_save 20234 20235test $ac_write_fail = 0 || 20236 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20237 20238 20239# configure is writing to config.log, and then calls config.status. 20240# config.status does its own redirection, appending to config.log. 20241# Unfortunately, on DOS this fails, as config.log is still kept open 20242# by configure, so config.status won't be able to write to it; its 20243# output is simply discarded. So we exec the FD to /dev/null, 20244# effectively closing config.log, so it can be properly (re)opened and 20245# appended to by config.status. When coming back to configure, we 20246# need to make the FD available again. 20247if test "$no_create" != yes; then 20248 ac_cs_success=: 20249 ac_config_status_args= 20250 test "$silent" = yes && 20251 ac_config_status_args="$ac_config_status_args --quiet" 20252 exec 5>/dev/null 20253 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20254 exec 5>>config.log 20255 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20256 # would make configure fail if this is the last instruction. 20257 $ac_cs_success || as_fn_exit 1 20258fi 20259if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20261$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20262fi 20263 20264