configure revision 40613eb2
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libXvMC 1.0.13. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXvMC/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: https://gitlab.freedesktop.org/xorg/lib/libXvMC/issues 280$0: about your system, including any error possibly output 281$0: before this message. Then install a modern shell, or 282$0: manually run the script under such a shell if you do 283$0: have one." 284 fi 285 exit 1 286fi 287fi 288fi 289SHELL=${CONFIG_SHELL-/bin/sh} 290export SHELL 291# Unset more variables known to interfere with behavior of common tools. 292CLICOLOR_FORCE= GREP_OPTIONS= 293unset CLICOLOR_FORCE GREP_OPTIONS 294 295## --------------------- ## 296## M4sh Shell Functions. ## 297## --------------------- ## 298# as_fn_unset VAR 299# --------------- 300# Portably unset VAR. 301as_fn_unset () 302{ 303 { eval $1=; unset $1;} 304} 305as_unset=as_fn_unset 306 307 308# as_fn_set_status STATUS 309# ----------------------- 310# Set $? to STATUS, without forking. 311as_fn_set_status () 312{ 313 return $1 314} # as_fn_set_status 315 316# as_fn_exit STATUS 317# ----------------- 318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319as_fn_exit () 320{ 321 set +e 322 as_fn_set_status $1 323 exit $1 324} # as_fn_exit 325# as_fn_nop 326# --------- 327# Do nothing but, unlike ":", preserve the value of $?. 328as_fn_nop () 329{ 330 return $? 331} 332as_nop=as_fn_nop 333 334# as_fn_mkdir_p 335# ------------- 336# Create "$as_dir" as a directory, including parents if necessary. 337as_fn_mkdir_p () 338{ 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380} # as_fn_mkdir_p 381 382# as_fn_executable_p FILE 383# ----------------------- 384# Test if FILE is an executable regular file. 385as_fn_executable_p () 386{ 387 test -f "$1" && test -x "$1" 388} # as_fn_executable_p 389# as_fn_append VAR VALUE 390# ---------------------- 391# Append the text in VALUE to the end of the definition contained in VAR. Take 392# advantage of any shell optimizations that allow amortized linear growth over 393# repeated appends, instead of the typical quadratic growth present in naive 394# implementations. 395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406fi # as_fn_append 407 408# as_fn_arith ARG... 409# ------------------ 410# Perform arithmetic evaluation on the ARGs, and store the result in the 411# global $as_val. Take advantage of shells that can avoid forks. The arguments 412# must be portable across $(()) and expr. 413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424fi # as_fn_arith 425 426# as_fn_nop 427# --------- 428# Do nothing but, unlike ":", preserve the value of $?. 429as_fn_nop () 430{ 431 return $? 432} 433as_nop=as_fn_nop 434 435# as_fn_error STATUS ERROR [LINENO LOG_FD] 436# ---------------------------------------- 437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439# script with STATUS, using 1 if that was 0. 440as_fn_error () 441{ 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449} # as_fn_error 450 451if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454else 455 as_expr=false 456fi 457 458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460else 461 as_basename=false 462fi 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470as_me=`$as_basename -- "$0" || 471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489# Avoid depending upon Character Ranges. 490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493as_cr_digits='0123456789' 494as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530} 531 532 533# Determine whether it's possible to make 'echo' print without a newline. 534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535# for compatibility with existing Makefiles. 536ECHO_C= ECHO_N= ECHO_T= 537case `echo -n x` in #((((( 538-n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545*) 546 ECHO_N='-n';; 547esac 548 549# For backward compatibility with old third-party macros, we provide 550# the shell variables $as_echo and $as_echo_n. New code should use 551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552as_echo='printf %s\n' 553as_echo_n='printf %s' 554 555 556rm -f conf$$ conf$$.exe conf$$.file 557if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562fi 563if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577else 578 as_ln_s='cp -pR' 579fi 580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581rmdir conf$$.dir 2>/dev/null 582 583if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588fi 589 590as_test_x='test -x' 591as_executable_p=as_fn_executable_p 592 593# Sed expression to map a string onto a valid CPP name. 594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596# Sed expression to map a string onto a valid variable name. 597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602test -n "$DJDIR" || exec 7<&0 </dev/null 603exec 6>&1 604 605# Name of the host. 606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607# so uname gets run too. 608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610# 611# Initializations. 612# 613ac_default_prefix=/usr/local 614ac_clean_files= 615ac_config_libobj_dir=. 616LIBOBJS= 617cross_compiling=no 618subdirs= 619MFLAGS= 620MAKEFLAGS= 621 622# Identity of this package. 623PACKAGE_NAME='libXvMC' 624PACKAGE_TARNAME='libXvMC' 625PACKAGE_VERSION='1.0.13' 626PACKAGE_STRING='libXvMC 1.0.13' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXvMC/issues' 628PACKAGE_URL='' 629 630ac_unique_file="Makefile.am" 631# Factoring default headers for most tests. 632ac_includes_default="\ 633#include <stddef.h> 634#ifdef HAVE_STDIO_H 635# include <stdio.h> 636#endif 637#ifdef HAVE_STDLIB_H 638# include <stdlib.h> 639#endif 640#ifdef HAVE_STRING_H 641# include <string.h> 642#endif 643#ifdef HAVE_INTTYPES_H 644# include <inttypes.h> 645#endif 646#ifdef HAVE_STDINT_H 647# include <stdint.h> 648#endif 649#ifdef HAVE_STRINGS_H 650# include <strings.h> 651#endif 652#ifdef HAVE_SYS_TYPES_H 653# include <sys/types.h> 654#endif 655#ifdef HAVE_SYS_STAT_H 656# include <sys/stat.h> 657#endif 658#ifdef HAVE_UNISTD_H 659# include <unistd.h> 660#endif" 661 662ac_header_c_list= 663ac_subst_vars='am__EXEEXT_FALSE 664am__EXEEXT_TRUE 665LTLIBOBJS 666LIBOBJS 667LINT_FALSE 668LINT_TRUE 669LINT_FLAGS 670LINT 671DLOPEN_LIBS 672XVMC_LIBS 673XVMC_CFLAGS 674XTMALLOC_ZERO_CFLAGS 675XMALLOC_ZERO_CFLAGS 676MALLOC_ZERO_CFLAGS 677MAN_SUBSTS 678XORG_MAN_PAGE 679ADMIN_MAN_DIR 680DRIVER_MAN_DIR 681MISC_MAN_DIR 682FILE_MAN_DIR 683LIB_MAN_DIR 684APP_MAN_DIR 685ADMIN_MAN_SUFFIX 686DRIVER_MAN_SUFFIX 687MISC_MAN_SUFFIX 688FILE_MAN_SUFFIX 689LIB_MAN_SUFFIX 690APP_MAN_SUFFIX 691INSTALL_CMD 692PKG_CONFIG_LIBDIR 693PKG_CONFIG_PATH 694PKG_CONFIG 695CHANGELOG_CMD 696STRICT_CFLAGS 697CWARNFLAGS 698BASE_CFLAGS 699LT_SYS_LIBRARY_PATH 700OTOOL64 701OTOOL 702LIPO 703NMEDIT 704DSYMUTIL 705MANIFEST_TOOL 706RANLIB 707ac_ct_AR 708AR 709DLLTOOL 710OBJDUMP 711LN_S 712NM 713ac_ct_DUMPBIN 714DUMPBIN 715LD 716FGREP 717EGREP 718GREP 719SED 720am__fastdepCC_FALSE 721am__fastdepCC_TRUE 722CCDEPMODE 723am__nodep 724AMDEPBACKSLASH 725AMDEP_FALSE 726AMDEP_TRUE 727am__include 728DEPDIR 729OBJEXT 730EXEEXT 731ac_ct_CC 732CPPFLAGS 733LDFLAGS 734CFLAGS 735CC 736host_os 737host_vendor 738host_cpu 739host 740build_os 741build_vendor 742build_cpu 743build 744LIBTOOL 745AM_BACKSLASH 746AM_DEFAULT_VERBOSITY 747AM_DEFAULT_V 748AM_V 749CSCOPE 750ETAGS 751CTAGS 752am__untar 753am__tar 754AMTAR 755am__leading_dot 756SET_MAKE 757AWK 758mkdir_p 759MKDIR_P 760INSTALL_STRIP_PROGRAM 761STRIP 762install_sh 763MAKEINFO 764AUTOHEADER 765AUTOMAKE 766AUTOCONF 767ACLOCAL 768VERSION 769PACKAGE 770CYGPATH_W 771am__isrc 772INSTALL_DATA 773INSTALL_SCRIPT 774INSTALL_PROGRAM 775target_alias 776host_alias 777build_alias 778LIBS 779ECHO_T 780ECHO_N 781ECHO_C 782DEFS 783mandir 784localedir 785libdir 786psdir 787pdfdir 788dvidir 789htmldir 790infodir 791docdir 792oldincludedir 793includedir 794runstatedir 795localstatedir 796sharedstatedir 797sysconfdir 798datadir 799datarootdir 800libexecdir 801sbindir 802bindir 803program_transform_name 804prefix 805exec_prefix 806PACKAGE_URL 807PACKAGE_BUGREPORT 808PACKAGE_STRING 809PACKAGE_VERSION 810PACKAGE_TARNAME 811PACKAGE_NAME 812PATH_SEPARATOR 813SHELL 814am__quote' 815ac_subst_files='' 816ac_user_opts=' 817enable_option_checking 818enable_silent_rules 819enable_shared 820enable_static 821with_pic 822enable_fast_install 823with_aix_soname 824enable_dependency_tracking 825with_gnu_ld 826with_sysroot 827enable_libtool_lock 828enable_selective_werror 829enable_strict_compilation 830enable_malloc0returnsnull 831with_lint 832' 833 ac_precious_vars='build_alias 834host_alias 835target_alias 836CC 837CFLAGS 838LDFLAGS 839LIBS 840CPPFLAGS 841LT_SYS_LIBRARY_PATH 842PKG_CONFIG 843PKG_CONFIG_PATH 844PKG_CONFIG_LIBDIR 845XVMC_CFLAGS 846XVMC_LIBS 847LINT 848LINT_FLAGS' 849 850 851# Initialize some variables set by options. 852ac_init_help= 853ac_init_version=false 854ac_unrecognized_opts= 855ac_unrecognized_sep= 856# The variables have the same names as the options, with 857# dashes changed to underlines. 858cache_file=/dev/null 859exec_prefix=NONE 860no_create= 861no_recursion= 862prefix=NONE 863program_prefix=NONE 864program_suffix=NONE 865program_transform_name=s,x,x, 866silent= 867site= 868srcdir= 869verbose= 870x_includes=NONE 871x_libraries=NONE 872 873# Installation directory options. 874# These are left unexpanded so users can "make install exec_prefix=/foo" 875# and all the variables that are supposed to be based on exec_prefix 876# by default will actually change. 877# Use braces instead of parens because sh, perl, etc. also accept them. 878# (The list follows the same order as the GNU Coding Standards.) 879bindir='${exec_prefix}/bin' 880sbindir='${exec_prefix}/sbin' 881libexecdir='${exec_prefix}/libexec' 882datarootdir='${prefix}/share' 883datadir='${datarootdir}' 884sysconfdir='${prefix}/etc' 885sharedstatedir='${prefix}/com' 886localstatedir='${prefix}/var' 887runstatedir='${localstatedir}/run' 888includedir='${prefix}/include' 889oldincludedir='/usr/include' 890docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 891infodir='${datarootdir}/info' 892htmldir='${docdir}' 893dvidir='${docdir}' 894pdfdir='${docdir}' 895psdir='${docdir}' 896libdir='${exec_prefix}/lib' 897localedir='${datarootdir}/locale' 898mandir='${datarootdir}/man' 899 900ac_prev= 901ac_dashdash= 902for ac_option 903do 904 # If the previous option needs an argument, assign it. 905 if test -n "$ac_prev"; then 906 eval $ac_prev=\$ac_option 907 ac_prev= 908 continue 909 fi 910 911 case $ac_option in 912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 913 *=) ac_optarg= ;; 914 *) ac_optarg=yes ;; 915 esac 916 917 case $ac_dashdash$ac_option in 918 --) 919 ac_dashdash=yes ;; 920 921 -bindir | --bindir | --bindi | --bind | --bin | --bi) 922 ac_prev=bindir ;; 923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 924 bindir=$ac_optarg ;; 925 926 -build | --build | --buil | --bui | --bu) 927 ac_prev=build_alias ;; 928 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 929 build_alias=$ac_optarg ;; 930 931 -cache-file | --cache-file | --cache-fil | --cache-fi \ 932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 933 ac_prev=cache_file ;; 934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 936 cache_file=$ac_optarg ;; 937 938 --config-cache | -C) 939 cache_file=config.cache ;; 940 941 -datadir | --datadir | --datadi | --datad) 942 ac_prev=datadir ;; 943 -datadir=* | --datadir=* | --datadi=* | --datad=*) 944 datadir=$ac_optarg ;; 945 946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 947 | --dataroo | --dataro | --datar) 948 ac_prev=datarootdir ;; 949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 951 datarootdir=$ac_optarg ;; 952 953 -disable-* | --disable-*) 954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 955 # Reject names that are not valid shell variable names. 956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 957 as_fn_error $? "invalid feature name: \`$ac_useropt'" 958 ac_useropt_orig=$ac_useropt 959 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 960 case $ac_user_opts in 961 *" 962"enable_$ac_useropt" 963"*) ;; 964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 965 ac_unrecognized_sep=', ';; 966 esac 967 eval enable_$ac_useropt=no ;; 968 969 -docdir | --docdir | --docdi | --doc | --do) 970 ac_prev=docdir ;; 971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 972 docdir=$ac_optarg ;; 973 974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 975 ac_prev=dvidir ;; 976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 977 dvidir=$ac_optarg ;; 978 979 -enable-* | --enable-*) 980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 981 # Reject names that are not valid shell variable names. 982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 983 as_fn_error $? "invalid feature name: \`$ac_useropt'" 984 ac_useropt_orig=$ac_useropt 985 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 986 case $ac_user_opts in 987 *" 988"enable_$ac_useropt" 989"*) ;; 990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 991 ac_unrecognized_sep=', ';; 992 esac 993 eval enable_$ac_useropt=\$ac_optarg ;; 994 995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 997 | --exec | --exe | --ex) 998 ac_prev=exec_prefix ;; 999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1001 | --exec=* | --exe=* | --ex=*) 1002 exec_prefix=$ac_optarg ;; 1003 1004 -gas | --gas | --ga | --g) 1005 # Obsolete; use --with-gas. 1006 with_gas=yes ;; 1007 1008 -help | --help | --hel | --he | -h) 1009 ac_init_help=long ;; 1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1011 ac_init_help=recursive ;; 1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1013 ac_init_help=short ;; 1014 1015 -host | --host | --hos | --ho) 1016 ac_prev=host_alias ;; 1017 -host=* | --host=* | --hos=* | --ho=*) 1018 host_alias=$ac_optarg ;; 1019 1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1021 ac_prev=htmldir ;; 1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1023 | --ht=*) 1024 htmldir=$ac_optarg ;; 1025 1026 -includedir | --includedir | --includedi | --included | --include \ 1027 | --includ | --inclu | --incl | --inc) 1028 ac_prev=includedir ;; 1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1030 | --includ=* | --inclu=* | --incl=* | --inc=*) 1031 includedir=$ac_optarg ;; 1032 1033 -infodir | --infodir | --infodi | --infod | --info | --inf) 1034 ac_prev=infodir ;; 1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1036 infodir=$ac_optarg ;; 1037 1038 -libdir | --libdir | --libdi | --libd) 1039 ac_prev=libdir ;; 1040 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1041 libdir=$ac_optarg ;; 1042 1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1044 | --libexe | --libex | --libe) 1045 ac_prev=libexecdir ;; 1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1047 | --libexe=* | --libex=* | --libe=*) 1048 libexecdir=$ac_optarg ;; 1049 1050 -localedir | --localedir | --localedi | --localed | --locale) 1051 ac_prev=localedir ;; 1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1053 localedir=$ac_optarg ;; 1054 1055 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1056 | --localstate | --localstat | --localsta | --localst | --locals) 1057 ac_prev=localstatedir ;; 1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1060 localstatedir=$ac_optarg ;; 1061 1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1063 ac_prev=mandir ;; 1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1065 mandir=$ac_optarg ;; 1066 1067 -nfp | --nfp | --nf) 1068 # Obsolete; use --without-fp. 1069 with_fp=no ;; 1070 1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1072 | --no-cr | --no-c | -n) 1073 no_create=yes ;; 1074 1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1077 no_recursion=yes ;; 1078 1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1081 | --oldin | --oldi | --old | --ol | --o) 1082 ac_prev=oldincludedir ;; 1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1086 oldincludedir=$ac_optarg ;; 1087 1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1089 ac_prev=prefix ;; 1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1091 prefix=$ac_optarg ;; 1092 1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1094 | --program-pre | --program-pr | --program-p) 1095 ac_prev=program_prefix ;; 1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1098 program_prefix=$ac_optarg ;; 1099 1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1101 | --program-suf | --program-su | --program-s) 1102 ac_prev=program_suffix ;; 1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1105 program_suffix=$ac_optarg ;; 1106 1107 -program-transform-name | --program-transform-name \ 1108 | --program-transform-nam | --program-transform-na \ 1109 | --program-transform-n | --program-transform- \ 1110 | --program-transform | --program-transfor \ 1111 | --program-transfo | --program-transf \ 1112 | --program-trans | --program-tran \ 1113 | --progr-tra | --program-tr | --program-t) 1114 ac_prev=program_transform_name ;; 1115 -program-transform-name=* | --program-transform-name=* \ 1116 | --program-transform-nam=* | --program-transform-na=* \ 1117 | --program-transform-n=* | --program-transform-=* \ 1118 | --program-transform=* | --program-transfor=* \ 1119 | --program-transfo=* | --program-transf=* \ 1120 | --program-trans=* | --program-tran=* \ 1121 | --progr-tra=* | --program-tr=* | --program-t=*) 1122 program_transform_name=$ac_optarg ;; 1123 1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1125 ac_prev=pdfdir ;; 1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1127 pdfdir=$ac_optarg ;; 1128 1129 -psdir | --psdir | --psdi | --psd | --ps) 1130 ac_prev=psdir ;; 1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1132 psdir=$ac_optarg ;; 1133 1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1135 | -silent | --silent | --silen | --sile | --sil) 1136 silent=yes ;; 1137 1138 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1139 | --runstate | --runstat | --runsta | --runst | --runs \ 1140 | --run | --ru | --r) 1141 ac_prev=runstatedir ;; 1142 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1143 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1144 | --run=* | --ru=* | --r=*) 1145 runstatedir=$ac_optarg ;; 1146 1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1148 ac_prev=sbindir ;; 1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1150 | --sbi=* | --sb=*) 1151 sbindir=$ac_optarg ;; 1152 1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1155 | --sharedst | --shareds | --shared | --share | --shar \ 1156 | --sha | --sh) 1157 ac_prev=sharedstatedir ;; 1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1161 | --sha=* | --sh=*) 1162 sharedstatedir=$ac_optarg ;; 1163 1164 -site | --site | --sit) 1165 ac_prev=site ;; 1166 -site=* | --site=* | --sit=*) 1167 site=$ac_optarg ;; 1168 1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1170 ac_prev=srcdir ;; 1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1172 srcdir=$ac_optarg ;; 1173 1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1175 | --syscon | --sysco | --sysc | --sys | --sy) 1176 ac_prev=sysconfdir ;; 1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1179 sysconfdir=$ac_optarg ;; 1180 1181 -target | --target | --targe | --targ | --tar | --ta | --t) 1182 ac_prev=target_alias ;; 1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1184 target_alias=$ac_optarg ;; 1185 1186 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1187 verbose=yes ;; 1188 1189 -version | --version | --versio | --versi | --vers | -V) 1190 ac_init_version=: ;; 1191 1192 -with-* | --with-*) 1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1194 # Reject names that are not valid shell variable names. 1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1196 as_fn_error $? "invalid package name: \`$ac_useropt'" 1197 ac_useropt_orig=$ac_useropt 1198 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1199 case $ac_user_opts in 1200 *" 1201"with_$ac_useropt" 1202"*) ;; 1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1204 ac_unrecognized_sep=', ';; 1205 esac 1206 eval with_$ac_useropt=\$ac_optarg ;; 1207 1208 -without-* | --without-*) 1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1210 # Reject names that are not valid shell variable names. 1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1212 as_fn_error $? "invalid package name: \`$ac_useropt'" 1213 ac_useropt_orig=$ac_useropt 1214 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1215 case $ac_user_opts in 1216 *" 1217"with_$ac_useropt" 1218"*) ;; 1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1220 ac_unrecognized_sep=', ';; 1221 esac 1222 eval with_$ac_useropt=no ;; 1223 1224 --x) 1225 # Obsolete; use --with-x. 1226 with_x=yes ;; 1227 1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1229 | --x-incl | --x-inc | --x-in | --x-i) 1230 ac_prev=x_includes ;; 1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1233 x_includes=$ac_optarg ;; 1234 1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1237 ac_prev=x_libraries ;; 1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1240 x_libraries=$ac_optarg ;; 1241 1242 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1243Try \`$0 --help' for more information" 1244 ;; 1245 1246 *=*) 1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1248 # Reject names that are not valid shell variable names. 1249 case $ac_envvar in #( 1250 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1252 esac 1253 eval $ac_envvar=\$ac_optarg 1254 export $ac_envvar ;; 1255 1256 *) 1257 # FIXME: should be removed in autoconf 3.0. 1258 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1260 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1262 ;; 1263 1264 esac 1265done 1266 1267if test -n "$ac_prev"; then 1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1269 as_fn_error $? "missing argument to $ac_option" 1270fi 1271 1272if test -n "$ac_unrecognized_opts"; then 1273 case $enable_option_checking in 1274 no) ;; 1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1276 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1277 esac 1278fi 1279 1280# Check all directory arguments for consistency. 1281for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1282 datadir sysconfdir sharedstatedir localstatedir includedir \ 1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1284 libdir localedir mandir runstatedir 1285do 1286 eval ac_val=\$$ac_var 1287 # Remove trailing slashes. 1288 case $ac_val in 1289 */ ) 1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1291 eval $ac_var=\$ac_val;; 1292 esac 1293 # Be sure to have absolute directory names. 1294 case $ac_val in 1295 [\\/$]* | ?:[\\/]* ) continue;; 1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1297 esac 1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1299done 1300 1301# There might be people who depend on the old broken behavior: `$host' 1302# used to hold the argument of --host etc. 1303# FIXME: To remove some day. 1304build=$build_alias 1305host=$host_alias 1306target=$target_alias 1307 1308# FIXME: To remove some day. 1309if test "x$host_alias" != x; then 1310 if test "x$build_alias" = x; then 1311 cross_compiling=maybe 1312 elif test "x$build_alias" != "x$host_alias"; then 1313 cross_compiling=yes 1314 fi 1315fi 1316 1317ac_tool_prefix= 1318test -n "$host_alias" && ac_tool_prefix=$host_alias- 1319 1320test "$silent" = yes && exec 6>/dev/null 1321 1322 1323ac_pwd=`pwd` && test -n "$ac_pwd" && 1324ac_ls_di=`ls -di .` && 1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1326 as_fn_error $? "working directory cannot be determined" 1327test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1328 as_fn_error $? "pwd does not report name of working directory" 1329 1330 1331# Find the source files, if location was not specified. 1332if test -z "$srcdir"; then 1333 ac_srcdir_defaulted=yes 1334 # Try the directory containing this script, then the parent directory. 1335 ac_confdir=`$as_dirname -- "$as_myself" || 1336$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1337 X"$as_myself" : 'X\(//\)[^/]' \| \ 1338 X"$as_myself" : 'X\(//\)$' \| \ 1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1340printf "%s\n" X"$as_myself" | 1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\/\)[^/].*/{ 1346 s//\1/ 1347 q 1348 } 1349 /^X\(\/\/\)$/{ 1350 s//\1/ 1351 q 1352 } 1353 /^X\(\/\).*/{ 1354 s//\1/ 1355 q 1356 } 1357 s/.*/./; q'` 1358 srcdir=$ac_confdir 1359 if test ! -r "$srcdir/$ac_unique_file"; then 1360 srcdir=.. 1361 fi 1362else 1363 ac_srcdir_defaulted=no 1364fi 1365if test ! -r "$srcdir/$ac_unique_file"; then 1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1368fi 1369ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1370ac_abs_confdir=`( 1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1372 pwd)` 1373# When building in place, set srcdir=. 1374if test "$ac_abs_confdir" = "$ac_pwd"; then 1375 srcdir=. 1376fi 1377# Remove unnecessary trailing slashes from srcdir. 1378# Double slashes in file names in object file debugging info 1379# mess up M-x gdb in Emacs. 1380case $srcdir in 1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1382esac 1383for ac_var in $ac_precious_vars; do 1384 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1385 eval ac_env_${ac_var}_value=\$${ac_var} 1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1387 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1388done 1389 1390# 1391# Report the --help message. 1392# 1393if test "$ac_init_help" = "long"; then 1394 # Omit some internal or obsolete options to make the list less imposing. 1395 # This message is too long to be a string in the A/UX 3.1 sh. 1396 cat <<_ACEOF 1397\`configure' configures libXvMC 1.0.13 to adapt to many kinds of systems. 1398 1399Usage: $0 [OPTION]... [VAR=VALUE]... 1400 1401To assign environment variables (e.g., CC, CFLAGS...), specify them as 1402VAR=VALUE. See below for descriptions of some of the useful variables. 1403 1404Defaults for the options are specified in brackets. 1405 1406Configuration: 1407 -h, --help display this help and exit 1408 --help=short display options specific to this package 1409 --help=recursive display the short help of all the included packages 1410 -V, --version display version information and exit 1411 -q, --quiet, --silent do not print \`checking ...' messages 1412 --cache-file=FILE cache test results in FILE [disabled] 1413 -C, --config-cache alias for \`--cache-file=config.cache' 1414 -n, --no-create do not create output files 1415 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1416 1417Installation directories: 1418 --prefix=PREFIX install architecture-independent files in PREFIX 1419 [$ac_default_prefix] 1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1421 [PREFIX] 1422 1423By default, \`make install' will install all the files in 1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1425an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1426for instance \`--prefix=\$HOME'. 1427 1428For better control, use the options below. 1429 1430Fine tuning of the installation directories: 1431 --bindir=DIR user executables [EPREFIX/bin] 1432 --sbindir=DIR system admin executables [EPREFIX/sbin] 1433 --libexecdir=DIR program executables [EPREFIX/libexec] 1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1437 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1438 --libdir=DIR object code libraries [EPREFIX/lib] 1439 --includedir=DIR C header files [PREFIX/include] 1440 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1443 --infodir=DIR info documentation [DATAROOTDIR/info] 1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1445 --mandir=DIR man documentation [DATAROOTDIR/man] 1446 --docdir=DIR documentation root [DATAROOTDIR/doc/libXvMC] 1447 --htmldir=DIR html documentation [DOCDIR] 1448 --dvidir=DIR dvi documentation [DOCDIR] 1449 --pdfdir=DIR pdf documentation [DOCDIR] 1450 --psdir=DIR ps documentation [DOCDIR] 1451_ACEOF 1452 1453 cat <<\_ACEOF 1454 1455Program names: 1456 --program-prefix=PREFIX prepend PREFIX to installed program names 1457 --program-suffix=SUFFIX append SUFFIX to installed program names 1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1459 1460System types: 1461 --build=BUILD configure for building on BUILD [guessed] 1462 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1463_ACEOF 1464fi 1465 1466if test -n "$ac_init_help"; then 1467 case $ac_init_help in 1468 short | recursive ) echo "Configuration of libXvMC 1.0.13:";; 1469 esac 1470 cat <<\_ACEOF 1471 1472Optional Features: 1473 --disable-option-checking ignore unrecognized --enable/--with options 1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1476 --enable-silent-rules less verbose build output (undo: "make V=1") 1477 --disable-silent-rules verbose build output (undo: "make V=0") 1478 --enable-shared[=PKGS] build shared libraries [default=yes] 1479 --enable-static[=PKGS] build static libraries [default=yes] 1480 --enable-fast-install[=PKGS] 1481 optimize for fast installation [default=yes] 1482 --enable-dependency-tracking 1483 do not reject slow dependency extractors 1484 --disable-dependency-tracking 1485 speeds up one-time build 1486 --disable-libtool-lock avoid locking (might break parallel builds) 1487 --disable-selective-werror 1488 Turn off selective compiler errors. (default: 1489 enabled) 1490 --enable-strict-compilation 1491 Enable all warnings from compiler and make them 1492 errors (default: disabled) 1493 --enable-malloc0returnsnull 1494 malloc(0) returns NULL (default: auto) 1495 1496Optional Packages: 1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1499 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1500 both] 1501 --with-aix-soname=aix|svr4|both 1502 shared library versioning (aka "SONAME") variant to 1503 provide on AIX, [default=aix]. 1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1505 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1506 compiler's sysroot if not specified). 1507 --with-lint Use a lint-style source code checker (default: 1508 disabled) 1509 1510Some influential environment variables: 1511 CC C compiler command 1512 CFLAGS C compiler flags 1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1514 nonstandard directory <lib dir> 1515 LIBS libraries to pass to the linker, e.g. -l<library> 1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1517 you have headers in a nonstandard directory <include dir> 1518 LT_SYS_LIBRARY_PATH 1519 User-defined run-time library search path. 1520 PKG_CONFIG path to pkg-config utility 1521 PKG_CONFIG_PATH 1522 directories to add to pkg-config's search path 1523 PKG_CONFIG_LIBDIR 1524 path overriding pkg-config's built-in search path 1525 XVMC_CFLAGS C compiler flags for XVMC, overriding pkg-config 1526 XVMC_LIBS linker flags for XVMC, overriding pkg-config 1527 LINT Path to a lint-style command 1528 LINT_FLAGS Flags for the lint-style command 1529 1530Use these variables to override the choices made by `configure' or to help 1531it to find libraries and programs with nonstandard names/locations. 1532 1533Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXvMC/issues>. 1534_ACEOF 1535ac_status=$? 1536fi 1537 1538if test "$ac_init_help" = "recursive"; then 1539 # If there are subdirs, report their specific --help. 1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1541 test -d "$ac_dir" || 1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1543 continue 1544 ac_builddir=. 1545 1546case "$ac_dir" in 1547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1548*) 1549 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1550 # A ".." for each directory in $ac_dir_suffix. 1551 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1552 case $ac_top_builddir_sub in 1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1555 esac ;; 1556esac 1557ac_abs_top_builddir=$ac_pwd 1558ac_abs_builddir=$ac_pwd$ac_dir_suffix 1559# for backward compatibility: 1560ac_top_builddir=$ac_top_build_prefix 1561 1562case $srcdir in 1563 .) # We are building in place. 1564 ac_srcdir=. 1565 ac_top_srcdir=$ac_top_builddir_sub 1566 ac_abs_top_srcdir=$ac_pwd ;; 1567 [\\/]* | ?:[\\/]* ) # Absolute name. 1568 ac_srcdir=$srcdir$ac_dir_suffix; 1569 ac_top_srcdir=$srcdir 1570 ac_abs_top_srcdir=$srcdir ;; 1571 *) # Relative name. 1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1573 ac_top_srcdir=$ac_top_build_prefix$srcdir 1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1575esac 1576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1577 1578 cd "$ac_dir" || { ac_status=$?; continue; } 1579 # Check for configure.gnu first; this name is used for a wrapper for 1580 # Metaconfig's "Configure" on case-insensitive file systems. 1581 if test -f "$ac_srcdir/configure.gnu"; then 1582 echo && 1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1584 elif test -f "$ac_srcdir/configure"; then 1585 echo && 1586 $SHELL "$ac_srcdir/configure" --help=recursive 1587 else 1588 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1589 fi || ac_status=$? 1590 cd "$ac_pwd" || { ac_status=$?; break; } 1591 done 1592fi 1593 1594test -n "$ac_init_help" && exit $ac_status 1595if $ac_init_version; then 1596 cat <<\_ACEOF 1597libXvMC configure 1.0.13 1598generated by GNU Autoconf 2.71 1599 1600Copyright (C) 2021 Free Software Foundation, Inc. 1601This configure script is free software; the Free Software Foundation 1602gives unlimited permission to copy, distribute and modify it. 1603_ACEOF 1604 exit 1605fi 1606 1607## ------------------------ ## 1608## Autoconf initialization. ## 1609## ------------------------ ## 1610 1611# ac_fn_c_try_compile LINENO 1612# -------------------------- 1613# Try to compile conftest.$ac_ext, and return whether this succeeded. 1614ac_fn_c_try_compile () 1615{ 1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1617 rm -f conftest.$ac_objext conftest.beam 1618 if { { ac_try="$ac_compile" 1619case "(($ac_try" in 1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1621 *) ac_try_echo=$ac_try;; 1622esac 1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1624printf "%s\n" "$ac_try_echo"; } >&5 1625 (eval "$ac_compile") 2>conftest.err 1626 ac_status=$? 1627 if test -s conftest.err; then 1628 grep -v '^ *+' conftest.err >conftest.er1 1629 cat conftest.er1 >&5 1630 mv -f conftest.er1 conftest.err 1631 fi 1632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1633 test $ac_status = 0; } && { 1634 test -z "$ac_c_werror_flag" || 1635 test ! -s conftest.err 1636 } && test -s conftest.$ac_objext 1637then : 1638 ac_retval=0 1639else $as_nop 1640 printf "%s\n" "$as_me: failed program was:" >&5 1641sed 's/^/| /' conftest.$ac_ext >&5 1642 1643 ac_retval=1 1644fi 1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1646 as_fn_set_status $ac_retval 1647 1648} # ac_fn_c_try_compile 1649 1650# ac_fn_c_try_link LINENO 1651# ----------------------- 1652# Try to link conftest.$ac_ext, and return whether this succeeded. 1653ac_fn_c_try_link () 1654{ 1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1656 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1657 if { { ac_try="$ac_link" 1658case "(($ac_try" in 1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1660 *) ac_try_echo=$ac_try;; 1661esac 1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1663printf "%s\n" "$ac_try_echo"; } >&5 1664 (eval "$ac_link") 2>conftest.err 1665 ac_status=$? 1666 if test -s conftest.err; then 1667 grep -v '^ *+' conftest.err >conftest.er1 1668 cat conftest.er1 >&5 1669 mv -f conftest.er1 conftest.err 1670 fi 1671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1672 test $ac_status = 0; } && { 1673 test -z "$ac_c_werror_flag" || 1674 test ! -s conftest.err 1675 } && test -s conftest$ac_exeext && { 1676 test "$cross_compiling" = yes || 1677 test -x conftest$ac_exeext 1678 } 1679then : 1680 ac_retval=0 1681else $as_nop 1682 printf "%s\n" "$as_me: failed program was:" >&5 1683sed 's/^/| /' conftest.$ac_ext >&5 1684 1685 ac_retval=1 1686fi 1687 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1688 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1689 # interfere with the next link command; also delete a directory that is 1690 # left behind by Apple's compiler. We do this before executing the actions. 1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1693 as_fn_set_status $ac_retval 1694 1695} # ac_fn_c_try_link 1696 1697# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1698# ------------------------------------------------------- 1699# Tests whether HEADER exists and can be compiled using the include files in 1700# INCLUDES, setting the cache variable VAR accordingly. 1701ac_fn_c_check_header_compile () 1702{ 1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1705printf %s "checking for $2... " >&6; } 1706if eval test \${$3+y} 1707then : 1708 printf %s "(cached) " >&6 1709else $as_nop 1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1711/* end confdefs.h. */ 1712$4 1713#include <$2> 1714_ACEOF 1715if ac_fn_c_try_compile "$LINENO" 1716then : 1717 eval "$3=yes" 1718else $as_nop 1719 eval "$3=no" 1720fi 1721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1722fi 1723eval ac_res=\$$3 1724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1725printf "%s\n" "$ac_res" >&6; } 1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1727 1728} # ac_fn_c_check_header_compile 1729 1730# ac_fn_c_check_func LINENO FUNC VAR 1731# ---------------------------------- 1732# Tests whether FUNC exists, setting the cache variable VAR accordingly 1733ac_fn_c_check_func () 1734{ 1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1737printf %s "checking for $2... " >&6; } 1738if eval test \${$3+y} 1739then : 1740 printf %s "(cached) " >&6 1741else $as_nop 1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1743/* end confdefs.h. */ 1744/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1745 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1746#define $2 innocuous_$2 1747 1748/* System header to define __stub macros and hopefully few prototypes, 1749 which can conflict with char $2 (); below. */ 1750 1751#include <limits.h> 1752#undef $2 1753 1754/* Override any GCC internal prototype to avoid an error. 1755 Use char because int might match the return type of a GCC 1756 builtin and then its argument prototype would still apply. */ 1757#ifdef __cplusplus 1758extern "C" 1759#endif 1760char $2 (); 1761/* The GNU C library defines this for functions which it implements 1762 to always fail with ENOSYS. Some functions are actually named 1763 something starting with __ and the normal name is an alias. */ 1764#if defined __stub_$2 || defined __stub___$2 1765choke me 1766#endif 1767 1768int 1769main (void) 1770{ 1771return $2 (); 1772 ; 1773 return 0; 1774} 1775_ACEOF 1776if ac_fn_c_try_link "$LINENO" 1777then : 1778 eval "$3=yes" 1779else $as_nop 1780 eval "$3=no" 1781fi 1782rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1783 conftest$ac_exeext conftest.$ac_ext 1784fi 1785eval ac_res=\$$3 1786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1787printf "%s\n" "$ac_res" >&6; } 1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1789 1790} # ac_fn_c_check_func 1791 1792# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1793# ------------------------------------------------------------------ 1794# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1795# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1796ac_fn_check_decl () 1797{ 1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1799 as_decl_name=`echo $2|sed 's/ *(.*//'` 1800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1801printf %s "checking whether $as_decl_name is declared... " >&6; } 1802if eval test \${$3+y} 1803then : 1804 printf %s "(cached) " >&6 1805else $as_nop 1806 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1807 eval ac_save_FLAGS=\$$6 1808 as_fn_append $6 " $5" 1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1810/* end confdefs.h. */ 1811$4 1812int 1813main (void) 1814{ 1815#ifndef $as_decl_name 1816#ifdef __cplusplus 1817 (void) $as_decl_use; 1818#else 1819 (void) $as_decl_name; 1820#endif 1821#endif 1822 1823 ; 1824 return 0; 1825} 1826_ACEOF 1827if ac_fn_c_try_compile "$LINENO" 1828then : 1829 eval "$3=yes" 1830else $as_nop 1831 eval "$3=no" 1832fi 1833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1834 eval $6=\$ac_save_FLAGS 1835 1836fi 1837eval ac_res=\$$3 1838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1839printf "%s\n" "$ac_res" >&6; } 1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1841 1842} # ac_fn_check_decl 1843 1844# ac_fn_c_try_run LINENO 1845# ---------------------- 1846# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1847# executables *can* be run. 1848ac_fn_c_try_run () 1849{ 1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1851 if { { ac_try="$ac_link" 1852case "(($ac_try" in 1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1854 *) ac_try_echo=$ac_try;; 1855esac 1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1857printf "%s\n" "$ac_try_echo"; } >&5 1858 (eval "$ac_link") 2>&5 1859 ac_status=$? 1860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1861 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1862 { { case "(($ac_try" in 1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1864 *) ac_try_echo=$ac_try;; 1865esac 1866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1867printf "%s\n" "$ac_try_echo"; } >&5 1868 (eval "$ac_try") 2>&5 1869 ac_status=$? 1870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1871 test $ac_status = 0; }; } 1872then : 1873 ac_retval=0 1874else $as_nop 1875 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1876 printf "%s\n" "$as_me: failed program was:" >&5 1877sed 's/^/| /' conftest.$ac_ext >&5 1878 1879 ac_retval=$ac_status 1880fi 1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1883 as_fn_set_status $ac_retval 1884 1885} # ac_fn_c_try_run 1886ac_configure_args_raw= 1887for ac_arg 1888do 1889 case $ac_arg in 1890 *\'*) 1891 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1892 esac 1893 as_fn_append ac_configure_args_raw " '$ac_arg'" 1894done 1895 1896case $ac_configure_args_raw in 1897 *$as_nl*) 1898 ac_safe_unquote= ;; 1899 *) 1900 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1901 ac_unsafe_a="$ac_unsafe_z#~" 1902 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1903 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1904esac 1905 1906cat >config.log <<_ACEOF 1907This file contains any messages produced by compilers while 1908running configure, to aid debugging if configure makes a mistake. 1909 1910It was created by libXvMC $as_me 1.0.13, which was 1911generated by GNU Autoconf 2.71. Invocation command line was 1912 1913 $ $0$ac_configure_args_raw 1914 1915_ACEOF 1916exec 5>>config.log 1917{ 1918cat <<_ASUNAME 1919## --------- ## 1920## Platform. ## 1921## --------- ## 1922 1923hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1924uname -m = `(uname -m) 2>/dev/null || echo unknown` 1925uname -r = `(uname -r) 2>/dev/null || echo unknown` 1926uname -s = `(uname -s) 2>/dev/null || echo unknown` 1927uname -v = `(uname -v) 2>/dev/null || echo unknown` 1928 1929/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1930/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1931 1932/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1933/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1934/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1935/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1936/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1937/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1938/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1939 1940_ASUNAME 1941 1942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1943for as_dir in $PATH 1944do 1945 IFS=$as_save_IFS 1946 case $as_dir in #((( 1947 '') as_dir=./ ;; 1948 */) ;; 1949 *) as_dir=$as_dir/ ;; 1950 esac 1951 printf "%s\n" "PATH: $as_dir" 1952 done 1953IFS=$as_save_IFS 1954 1955} >&5 1956 1957cat >&5 <<_ACEOF 1958 1959 1960## ----------- ## 1961## Core tests. ## 1962## ----------- ## 1963 1964_ACEOF 1965 1966 1967# Keep a trace of the command line. 1968# Strip out --no-create and --no-recursion so they do not pile up. 1969# Strip out --silent because we don't want to record it for future runs. 1970# Also quote any args containing shell meta-characters. 1971# Make two passes to allow for proper duplicate-argument suppression. 1972ac_configure_args= 1973ac_configure_args0= 1974ac_configure_args1= 1975ac_must_keep_next=false 1976for ac_pass in 1 2 1977do 1978 for ac_arg 1979 do 1980 case $ac_arg in 1981 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1983 | -silent | --silent | --silen | --sile | --sil) 1984 continue ;; 1985 *\'*) 1986 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1987 esac 1988 case $ac_pass in 1989 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1990 2) 1991 as_fn_append ac_configure_args1 " '$ac_arg'" 1992 if test $ac_must_keep_next = true; then 1993 ac_must_keep_next=false # Got value, back to normal. 1994 else 1995 case $ac_arg in 1996 *=* | --config-cache | -C | -disable-* | --disable-* \ 1997 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1998 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1999 | -with-* | --with-* | -without-* | --without-* | --x) 2000 case "$ac_configure_args0 " in 2001 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2002 esac 2003 ;; 2004 -* ) ac_must_keep_next=true ;; 2005 esac 2006 fi 2007 as_fn_append ac_configure_args " '$ac_arg'" 2008 ;; 2009 esac 2010 done 2011done 2012{ ac_configure_args0=; unset ac_configure_args0;} 2013{ ac_configure_args1=; unset ac_configure_args1;} 2014 2015# When interrupted or exit'd, cleanup temporary files, and complete 2016# config.log. We remove comments because anyway the quotes in there 2017# would cause problems or look ugly. 2018# WARNING: Use '\'' to represent an apostrophe within the trap. 2019# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2020trap 'exit_status=$? 2021 # Sanitize IFS. 2022 IFS=" "" $as_nl" 2023 # Save into config.log some information that might help in debugging. 2024 { 2025 echo 2026 2027 printf "%s\n" "## ---------------- ## 2028## Cache variables. ## 2029## ---------------- ##" 2030 echo 2031 # The following way of writing the cache mishandles newlines in values, 2032( 2033 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2034 eval ac_val=\$$ac_var 2035 case $ac_val in #( 2036 *${as_nl}*) 2037 case $ac_var in #( 2038 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2039printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2040 esac 2041 case $ac_var in #( 2042 _ | IFS | as_nl) ;; #( 2043 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2044 *) { eval $ac_var=; unset $ac_var;} ;; 2045 esac ;; 2046 esac 2047 done 2048 (set) 2>&1 | 2049 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2050 *${as_nl}ac_space=\ *) 2051 sed -n \ 2052 "s/'\''/'\''\\\\'\'''\''/g; 2053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2054 ;; #( 2055 *) 2056 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2057 ;; 2058 esac | 2059 sort 2060) 2061 echo 2062 2063 printf "%s\n" "## ----------------- ## 2064## Output variables. ## 2065## ----------------- ##" 2066 echo 2067 for ac_var in $ac_subst_vars 2068 do 2069 eval ac_val=\$$ac_var 2070 case $ac_val in 2071 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2072 esac 2073 printf "%s\n" "$ac_var='\''$ac_val'\''" 2074 done | sort 2075 echo 2076 2077 if test -n "$ac_subst_files"; then 2078 printf "%s\n" "## ------------------- ## 2079## File substitutions. ## 2080## ------------------- ##" 2081 echo 2082 for ac_var in $ac_subst_files 2083 do 2084 eval ac_val=\$$ac_var 2085 case $ac_val in 2086 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2087 esac 2088 printf "%s\n" "$ac_var='\''$ac_val'\''" 2089 done | sort 2090 echo 2091 fi 2092 2093 if test -s confdefs.h; then 2094 printf "%s\n" "## ----------- ## 2095## confdefs.h. ## 2096## ----------- ##" 2097 echo 2098 cat confdefs.h 2099 echo 2100 fi 2101 test "$ac_signal" != 0 && 2102 printf "%s\n" "$as_me: caught signal $ac_signal" 2103 printf "%s\n" "$as_me: exit $exit_status" 2104 } >&5 2105 rm -f core *.core core.conftest.* && 2106 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2107 exit $exit_status 2108' 0 2109for ac_signal in 1 2 13 15; do 2110 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2111done 2112ac_signal=0 2113 2114# confdefs.h avoids OS command line length limits that DEFS can exceed. 2115rm -f -r conftest* confdefs.h 2116 2117printf "%s\n" "/* confdefs.h */" > confdefs.h 2118 2119# Predefined preprocessor variables. 2120 2121printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2122 2123printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2124 2125printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2126 2127printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2128 2129printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2130 2131printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2132 2133 2134# Let the site file select an alternate cache file if it wants to. 2135# Prefer an explicitly selected file to automatically selected ones. 2136if test -n "$CONFIG_SITE"; then 2137 ac_site_files="$CONFIG_SITE" 2138elif test "x$prefix" != xNONE; then 2139 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2140else 2141 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2142fi 2143 2144for ac_site_file in $ac_site_files 2145do 2146 case $ac_site_file in #( 2147 */*) : 2148 ;; #( 2149 *) : 2150 ac_site_file=./$ac_site_file ;; 2151esac 2152 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2154printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2155 sed 's/^/| /' "$ac_site_file" >&5 2156 . "$ac_site_file" \ 2157 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2158printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2159as_fn_error $? "failed to load site script $ac_site_file 2160See \`config.log' for more details" "$LINENO" 5; } 2161 fi 2162done 2163 2164if test -r "$cache_file"; then 2165 # Some versions of bash will fail to source /dev/null (special files 2166 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2167 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2169printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2170 case $cache_file in 2171 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2172 *) . "./$cache_file";; 2173 esac 2174 fi 2175else 2176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2177printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2178 >$cache_file 2179fi 2180 2181# Test code for whether the C compiler supports C89 (global declarations) 2182ac_c_conftest_c89_globals=' 2183/* Does the compiler advertise C89 conformance? 2184 Do not test the value of __STDC__, because some compilers set it to 0 2185 while being otherwise adequately conformant. */ 2186#if !defined __STDC__ 2187# error "Compiler does not advertise C89 conformance" 2188#endif 2189 2190#include <stddef.h> 2191#include <stdarg.h> 2192struct stat; 2193/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2194struct buf { int x; }; 2195struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2196static char *e (p, i) 2197 char **p; 2198 int i; 2199{ 2200 return p[i]; 2201} 2202static char *f (char * (*g) (char **, int), char **p, ...) 2203{ 2204 char *s; 2205 va_list v; 2206 va_start (v,p); 2207 s = g (p, va_arg (v,int)); 2208 va_end (v); 2209 return s; 2210} 2211 2212/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2213 function prototypes and stuff, but not \xHH hex character constants. 2214 These do not provoke an error unfortunately, instead are silently treated 2215 as an "x". The following induces an error, until -std is added to get 2216 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2217 array size at least. It is necessary to write \x00 == 0 to get something 2218 that is true only with -std. */ 2219int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2220 2221/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2222 inside strings and character constants. */ 2223#define FOO(x) '\''x'\'' 2224int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2225 2226int test (int i, double x); 2227struct s1 {int (*f) (int a);}; 2228struct s2 {int (*f) (double a);}; 2229int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2230 int, int);' 2231 2232# Test code for whether the C compiler supports C89 (body of main). 2233ac_c_conftest_c89_main=' 2234ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2235' 2236 2237# Test code for whether the C compiler supports C99 (global declarations) 2238ac_c_conftest_c99_globals=' 2239// Does the compiler advertise C99 conformance? 2240#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2241# error "Compiler does not advertise C99 conformance" 2242#endif 2243 2244#include <stdbool.h> 2245extern int puts (const char *); 2246extern int printf (const char *, ...); 2247extern int dprintf (int, const char *, ...); 2248extern void *malloc (size_t); 2249 2250// Check varargs macros. These examples are taken from C99 6.10.3.5. 2251// dprintf is used instead of fprintf to avoid needing to declare 2252// FILE and stderr. 2253#define debug(...) dprintf (2, __VA_ARGS__) 2254#define showlist(...) puts (#__VA_ARGS__) 2255#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2256static void 2257test_varargs_macros (void) 2258{ 2259 int x = 1234; 2260 int y = 5678; 2261 debug ("Flag"); 2262 debug ("X = %d\n", x); 2263 showlist (The first, second, and third items.); 2264 report (x>y, "x is %d but y is %d", x, y); 2265} 2266 2267// Check long long types. 2268#define BIG64 18446744073709551615ull 2269#define BIG32 4294967295ul 2270#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2271#if !BIG_OK 2272 #error "your preprocessor is broken" 2273#endif 2274#if BIG_OK 2275#else 2276 #error "your preprocessor is broken" 2277#endif 2278static long long int bignum = -9223372036854775807LL; 2279static unsigned long long int ubignum = BIG64; 2280 2281struct incomplete_array 2282{ 2283 int datasize; 2284 double data[]; 2285}; 2286 2287struct named_init { 2288 int number; 2289 const wchar_t *name; 2290 double average; 2291}; 2292 2293typedef const char *ccp; 2294 2295static inline int 2296test_restrict (ccp restrict text) 2297{ 2298 // See if C++-style comments work. 2299 // Iterate through items via the restricted pointer. 2300 // Also check for declarations in for loops. 2301 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2302 continue; 2303 return 0; 2304} 2305 2306// Check varargs and va_copy. 2307static bool 2308test_varargs (const char *format, ...) 2309{ 2310 va_list args; 2311 va_start (args, format); 2312 va_list args_copy; 2313 va_copy (args_copy, args); 2314 2315 const char *str = ""; 2316 int number = 0; 2317 float fnumber = 0; 2318 2319 while (*format) 2320 { 2321 switch (*format++) 2322 { 2323 case '\''s'\'': // string 2324 str = va_arg (args_copy, const char *); 2325 break; 2326 case '\''d'\'': // int 2327 number = va_arg (args_copy, int); 2328 break; 2329 case '\''f'\'': // float 2330 fnumber = va_arg (args_copy, double); 2331 break; 2332 default: 2333 break; 2334 } 2335 } 2336 va_end (args_copy); 2337 va_end (args); 2338 2339 return *str && number && fnumber; 2340} 2341' 2342 2343# Test code for whether the C compiler supports C99 (body of main). 2344ac_c_conftest_c99_main=' 2345 // Check bool. 2346 _Bool success = false; 2347 success |= (argc != 0); 2348 2349 // Check restrict. 2350 if (test_restrict ("String literal") == 0) 2351 success = true; 2352 char *restrict newvar = "Another string"; 2353 2354 // Check varargs. 2355 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2356 test_varargs_macros (); 2357 2358 // Check flexible array members. 2359 struct incomplete_array *ia = 2360 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2361 ia->datasize = 10; 2362 for (int i = 0; i < ia->datasize; ++i) 2363 ia->data[i] = i * 1.234; 2364 2365 // Check named initializers. 2366 struct named_init ni = { 2367 .number = 34, 2368 .name = L"Test wide string", 2369 .average = 543.34343, 2370 }; 2371 2372 ni.number = 58; 2373 2374 int dynamic_array[ni.number]; 2375 dynamic_array[0] = argv[0][0]; 2376 dynamic_array[ni.number - 1] = 543; 2377 2378 // work around unused variable warnings 2379 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2380 || dynamic_array[ni.number - 1] != 543); 2381' 2382 2383# Test code for whether the C compiler supports C11 (global declarations) 2384ac_c_conftest_c11_globals=' 2385// Does the compiler advertise C11 conformance? 2386#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2387# error "Compiler does not advertise C11 conformance" 2388#endif 2389 2390// Check _Alignas. 2391char _Alignas (double) aligned_as_double; 2392char _Alignas (0) no_special_alignment; 2393extern char aligned_as_int; 2394char _Alignas (0) _Alignas (int) aligned_as_int; 2395 2396// Check _Alignof. 2397enum 2398{ 2399 int_alignment = _Alignof (int), 2400 int_array_alignment = _Alignof (int[100]), 2401 char_alignment = _Alignof (char) 2402}; 2403_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2404 2405// Check _Noreturn. 2406int _Noreturn does_not_return (void) { for (;;) continue; } 2407 2408// Check _Static_assert. 2409struct test_static_assert 2410{ 2411 int x; 2412 _Static_assert (sizeof (int) <= sizeof (long int), 2413 "_Static_assert does not work in struct"); 2414 long int y; 2415}; 2416 2417// Check UTF-8 literals. 2418#define u8 syntax error! 2419char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2420 2421// Check duplicate typedefs. 2422typedef long *long_ptr; 2423typedef long int *long_ptr; 2424typedef long_ptr long_ptr; 2425 2426// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2427struct anonymous 2428{ 2429 union { 2430 struct { int i; int j; }; 2431 struct { int k; long int l; } w; 2432 }; 2433 int m; 2434} v1; 2435' 2436 2437# Test code for whether the C compiler supports C11 (body of main). 2438ac_c_conftest_c11_main=' 2439 _Static_assert ((offsetof (struct anonymous, i) 2440 == offsetof (struct anonymous, w.k)), 2441 "Anonymous union alignment botch"); 2442 v1.i = 2; 2443 v1.w.k = 5; 2444 ok |= v1.i != 5; 2445' 2446 2447# Test code for whether the C compiler supports C11 (complete). 2448ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2449${ac_c_conftest_c99_globals} 2450${ac_c_conftest_c11_globals} 2451 2452int 2453main (int argc, char **argv) 2454{ 2455 int ok = 0; 2456 ${ac_c_conftest_c89_main} 2457 ${ac_c_conftest_c99_main} 2458 ${ac_c_conftest_c11_main} 2459 return ok; 2460} 2461" 2462 2463# Test code for whether the C compiler supports C99 (complete). 2464ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2465${ac_c_conftest_c99_globals} 2466 2467int 2468main (int argc, char **argv) 2469{ 2470 int ok = 0; 2471 ${ac_c_conftest_c89_main} 2472 ${ac_c_conftest_c99_main} 2473 return ok; 2474} 2475" 2476 2477# Test code for whether the C compiler supports C89 (complete). 2478ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2479 2480int 2481main (int argc, char **argv) 2482{ 2483 int ok = 0; 2484 ${ac_c_conftest_c89_main} 2485 return ok; 2486} 2487" 2488 2489as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2490as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2491as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2492as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2493as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2494as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2495as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2496as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2497as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2498 2499# Auxiliary files required by this configure script. 2500ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2501 2502# Locations in which to look for auxiliary files. 2503ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2504 2505# Search for a directory containing all of the required auxiliary files, 2506# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2507# If we don't find one directory that contains all the files we need, 2508# we report the set of missing files from the *first* directory in 2509# $ac_aux_dir_candidates and give up. 2510ac_missing_aux_files="" 2511ac_first_candidate=: 2512printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2514as_found=false 2515for as_dir in $ac_aux_dir_candidates 2516do 2517 IFS=$as_save_IFS 2518 case $as_dir in #((( 2519 '') as_dir=./ ;; 2520 */) ;; 2521 *) as_dir=$as_dir/ ;; 2522 esac 2523 as_found=: 2524 2525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2526 ac_aux_dir_found=yes 2527 ac_install_sh= 2528 for ac_aux in $ac_aux_files 2529 do 2530 # As a special case, if "install-sh" is required, that requirement 2531 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2532 # and $ac_install_sh is set appropriately for whichever one is found. 2533 if test x"$ac_aux" = x"install-sh" 2534 then 2535 if test -f "${as_dir}install-sh"; then 2536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2537 ac_install_sh="${as_dir}install-sh -c" 2538 elif test -f "${as_dir}install.sh"; then 2539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2540 ac_install_sh="${as_dir}install.sh -c" 2541 elif test -f "${as_dir}shtool"; then 2542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2543 ac_install_sh="${as_dir}shtool install -c" 2544 else 2545 ac_aux_dir_found=no 2546 if $ac_first_candidate; then 2547 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2548 else 2549 break 2550 fi 2551 fi 2552 else 2553 if test -f "${as_dir}${ac_aux}"; then 2554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2555 else 2556 ac_aux_dir_found=no 2557 if $ac_first_candidate; then 2558 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2559 else 2560 break 2561 fi 2562 fi 2563 fi 2564 done 2565 if test "$ac_aux_dir_found" = yes; then 2566 ac_aux_dir="$as_dir" 2567 break 2568 fi 2569 ac_first_candidate=false 2570 2571 as_found=false 2572done 2573IFS=$as_save_IFS 2574if $as_found 2575then : 2576 2577else $as_nop 2578 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2579fi 2580 2581 2582# These three variables are undocumented and unsupported, 2583# and are intended to be withdrawn in a future Autoconf release. 2584# They can cause serious problems if a builder's source tree is in a directory 2585# whose full name contains unusual characters. 2586if test -f "${ac_aux_dir}config.guess"; then 2587 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2588fi 2589if test -f "${ac_aux_dir}config.sub"; then 2590 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2591fi 2592if test -f "$ac_aux_dir/configure"; then 2593 ac_configure="$SHELL ${ac_aux_dir}configure" 2594fi 2595 2596# Check that the precious variables saved in the cache have kept the same 2597# value. 2598ac_cache_corrupted=false 2599for ac_var in $ac_precious_vars; do 2600 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2601 eval ac_new_set=\$ac_env_${ac_var}_set 2602 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2603 eval ac_new_val=\$ac_env_${ac_var}_value 2604 case $ac_old_set,$ac_new_set in 2605 set,) 2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2607printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2608 ac_cache_corrupted=: ;; 2609 ,set) 2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2611printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2612 ac_cache_corrupted=: ;; 2613 ,);; 2614 *) 2615 if test "x$ac_old_val" != "x$ac_new_val"; then 2616 # differences in whitespace do not lead to failure. 2617 ac_old_val_w=`echo x $ac_old_val` 2618 ac_new_val_w=`echo x $ac_new_val` 2619 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2621printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2622 ac_cache_corrupted=: 2623 else 2624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2625printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2626 eval $ac_var=\$ac_old_val 2627 fi 2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2629printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2631printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2632 fi;; 2633 esac 2634 # Pass precious variables to config.status. 2635 if test "$ac_new_set" = set; then 2636 case $ac_new_val in 2637 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2638 *) ac_arg=$ac_var=$ac_new_val ;; 2639 esac 2640 case " $ac_configure_args " in 2641 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2642 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2643 esac 2644 fi 2645done 2646if $ac_cache_corrupted; then 2647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2648printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2650printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2651 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2652 and start over" "$LINENO" 5 2653fi 2654## -------------------- ## 2655## Main body of script. ## 2656## -------------------- ## 2657 2658ac_ext=c 2659ac_cpp='$CPP $CPPFLAGS' 2660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2662ac_compiler_gnu=$ac_cv_c_compiler_gnu 2663 2664 2665 2666ac_config_headers="$ac_config_headers config.h" 2667 2668 2669# Initialize Automake 2670am__api_version='1.16' 2671 2672 2673 2674 # Find a good install program. We prefer a C program (faster), 2675# so one script is as good as another. But avoid the broken or 2676# incompatible versions: 2677# SysV /etc/install, /usr/sbin/install 2678# SunOS /usr/etc/install 2679# IRIX /sbin/install 2680# AIX /bin/install 2681# AmigaOS /C/install, which installs bootblocks on floppy discs 2682# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2683# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2684# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2685# OS/2's system install, which has a completely different semantic 2686# ./install, which can be erroneously created by make from ./install.sh. 2687# Reject install programs that cannot install multiple files. 2688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2689printf %s "checking for a BSD-compatible install... " >&6; } 2690if test -z "$INSTALL"; then 2691if test ${ac_cv_path_install+y} 2692then : 2693 printf %s "(cached) " >&6 2694else $as_nop 2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2696for as_dir in $PATH 2697do 2698 IFS=$as_save_IFS 2699 case $as_dir in #((( 2700 '') as_dir=./ ;; 2701 */) ;; 2702 *) as_dir=$as_dir/ ;; 2703 esac 2704 # Account for fact that we put trailing slashes in our PATH walk. 2705case $as_dir in #(( 2706 ./ | /[cC]/* | \ 2707 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2708 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2709 /usr/ucb/* ) ;; 2710 *) 2711 # OSF1 and SCO ODT 3.0 have their own names for install. 2712 # Don't use installbsd from OSF since it installs stuff as root 2713 # by default. 2714 for ac_prog in ginstall scoinst install; do 2715 for ac_exec_ext in '' $ac_executable_extensions; do 2716 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2717 if test $ac_prog = install && 2718 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2719 # AIX install. It has an incompatible calling convention. 2720 : 2721 elif test $ac_prog = install && 2722 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2723 # program-specific install script used by HP pwplus--don't use. 2724 : 2725 else 2726 rm -rf conftest.one conftest.two conftest.dir 2727 echo one > conftest.one 2728 echo two > conftest.two 2729 mkdir conftest.dir 2730 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2731 test -s conftest.one && test -s conftest.two && 2732 test -s conftest.dir/conftest.one && 2733 test -s conftest.dir/conftest.two 2734 then 2735 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2736 break 3 2737 fi 2738 fi 2739 fi 2740 done 2741 done 2742 ;; 2743esac 2744 2745 done 2746IFS=$as_save_IFS 2747 2748rm -rf conftest.one conftest.two conftest.dir 2749 2750fi 2751 if test ${ac_cv_path_install+y}; then 2752 INSTALL=$ac_cv_path_install 2753 else 2754 # As a last resort, use the slow shell script. Don't cache a 2755 # value for INSTALL within a source directory, because that will 2756 # break other packages using the cache if that directory is 2757 # removed, or if the value is a relative name. 2758 INSTALL=$ac_install_sh 2759 fi 2760fi 2761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2762printf "%s\n" "$INSTALL" >&6; } 2763 2764# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2765# It thinks the first close brace ends the variable substitution. 2766test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2767 2768test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2769 2770test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2771 2772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2773printf %s "checking whether build environment is sane... " >&6; } 2774# Reject unsafe characters in $srcdir or the absolute working directory 2775# name. Accept space and tab only in the latter. 2776am_lf=' 2777' 2778case `pwd` in 2779 *[\\\"\#\$\&\'\`$am_lf]*) 2780 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2781esac 2782case $srcdir in 2783 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2784 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2785esac 2786 2787# Do 'set' in a subshell so we don't clobber the current shell's 2788# arguments. Must try -L first in case configure is actually a 2789# symlink; some systems play weird games with the mod time of symlinks 2790# (eg FreeBSD returns the mod time of the symlink's containing 2791# directory). 2792if ( 2793 am_has_slept=no 2794 for am_try in 1 2; do 2795 echo "timestamp, slept: $am_has_slept" > conftest.file 2796 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2797 if test "$*" = "X"; then 2798 # -L didn't work. 2799 set X `ls -t "$srcdir/configure" conftest.file` 2800 fi 2801 if test "$*" != "X $srcdir/configure conftest.file" \ 2802 && test "$*" != "X conftest.file $srcdir/configure"; then 2803 2804 # If neither matched, then we have a broken ls. This can happen 2805 # if, for instance, CONFIG_SHELL is bash and it inherits a 2806 # broken ls alias from the environment. This has actually 2807 # happened. Such a system could not be considered "sane". 2808 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2809 alias in your environment" "$LINENO" 5 2810 fi 2811 if test "$2" = conftest.file || test $am_try -eq 2; then 2812 break 2813 fi 2814 # Just in case. 2815 sleep 1 2816 am_has_slept=yes 2817 done 2818 test "$2" = conftest.file 2819 ) 2820then 2821 # Ok. 2822 : 2823else 2824 as_fn_error $? "newly created file is older than distributed files! 2825Check your system clock" "$LINENO" 5 2826fi 2827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2828printf "%s\n" "yes" >&6; } 2829# If we didn't sleep, we still need to ensure time stamps of config.status and 2830# generated files are strictly newer. 2831am_sleep_pid= 2832if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2833 ( sleep 1 ) & 2834 am_sleep_pid=$! 2835fi 2836 2837rm -f conftest.file 2838 2839test "$program_prefix" != NONE && 2840 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2841# Use a double $ so make ignores it. 2842test "$program_suffix" != NONE && 2843 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2844# Double any \ or $. 2845# By default was `s,x,x', remove it if useless. 2846ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2847program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2848 2849 2850# Expand $ac_aux_dir to an absolute path. 2851am_aux_dir=`cd "$ac_aux_dir" && pwd` 2852 2853 2854 if test x"${MISSING+set}" != xset; then 2855 MISSING="\${SHELL} '$am_aux_dir/missing'" 2856fi 2857# Use eval to expand $SHELL 2858if eval "$MISSING --is-lightweight"; then 2859 am_missing_run="$MISSING " 2860else 2861 am_missing_run= 2862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2863printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2864fi 2865 2866if test x"${install_sh+set}" != xset; then 2867 case $am_aux_dir in 2868 *\ * | *\ *) 2869 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2870 *) 2871 install_sh="\${SHELL} $am_aux_dir/install-sh" 2872 esac 2873fi 2874 2875# Installed binaries are usually stripped using 'strip' when the user 2876# run "make install-strip". However 'strip' might not be the right 2877# tool to use in cross-compilation environments, therefore Automake 2878# will honor the 'STRIP' environment variable to overrule this program. 2879if test "$cross_compiling" != no; then 2880 if test -n "$ac_tool_prefix"; then 2881 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2882set dummy ${ac_tool_prefix}strip; ac_word=$2 2883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2884printf %s "checking for $ac_word... " >&6; } 2885if test ${ac_cv_prog_STRIP+y} 2886then : 2887 printf %s "(cached) " >&6 2888else $as_nop 2889 if test -n "$STRIP"; then 2890 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2891else 2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2893for as_dir in $PATH 2894do 2895 IFS=$as_save_IFS 2896 case $as_dir in #((( 2897 '') as_dir=./ ;; 2898 */) ;; 2899 *) as_dir=$as_dir/ ;; 2900 esac 2901 for ac_exec_ext in '' $ac_executable_extensions; do 2902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2903 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2905 break 2 2906 fi 2907done 2908 done 2909IFS=$as_save_IFS 2910 2911fi 2912fi 2913STRIP=$ac_cv_prog_STRIP 2914if test -n "$STRIP"; then 2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2916printf "%s\n" "$STRIP" >&6; } 2917else 2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2919printf "%s\n" "no" >&6; } 2920fi 2921 2922 2923fi 2924if test -z "$ac_cv_prog_STRIP"; then 2925 ac_ct_STRIP=$STRIP 2926 # Extract the first word of "strip", so it can be a program name with args. 2927set dummy strip; ac_word=$2 2928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2929printf %s "checking for $ac_word... " >&6; } 2930if test ${ac_cv_prog_ac_ct_STRIP+y} 2931then : 2932 printf %s "(cached) " >&6 2933else $as_nop 2934 if test -n "$ac_ct_STRIP"; then 2935 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2936else 2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2938for as_dir in $PATH 2939do 2940 IFS=$as_save_IFS 2941 case $as_dir in #((( 2942 '') as_dir=./ ;; 2943 */) ;; 2944 *) as_dir=$as_dir/ ;; 2945 esac 2946 for ac_exec_ext in '' $ac_executable_extensions; do 2947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2948 ac_cv_prog_ac_ct_STRIP="strip" 2949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2950 break 2 2951 fi 2952done 2953 done 2954IFS=$as_save_IFS 2955 2956fi 2957fi 2958ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2959if test -n "$ac_ct_STRIP"; then 2960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2961printf "%s\n" "$ac_ct_STRIP" >&6; } 2962else 2963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2964printf "%s\n" "no" >&6; } 2965fi 2966 2967 if test "x$ac_ct_STRIP" = x; then 2968 STRIP=":" 2969 else 2970 case $cross_compiling:$ac_tool_warned in 2971yes:) 2972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2973printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2974ac_tool_warned=yes ;; 2975esac 2976 STRIP=$ac_ct_STRIP 2977 fi 2978else 2979 STRIP="$ac_cv_prog_STRIP" 2980fi 2981 2982fi 2983INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2984 2985 2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2987printf %s "checking for a race-free mkdir -p... " >&6; } 2988if test -z "$MKDIR_P"; then 2989 if test ${ac_cv_path_mkdir+y} 2990then : 2991 printf %s "(cached) " >&6 2992else $as_nop 2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2994for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2995do 2996 IFS=$as_save_IFS 2997 case $as_dir in #((( 2998 '') as_dir=./ ;; 2999 */) ;; 3000 *) as_dir=$as_dir/ ;; 3001 esac 3002 for ac_prog in mkdir gmkdir; do 3003 for ac_exec_ext in '' $ac_executable_extensions; do 3004 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3005 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3006 'mkdir ('*'coreutils) '* | \ 3007 'BusyBox '* | \ 3008 'mkdir (fileutils) '4.1*) 3009 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3010 break 3;; 3011 esac 3012 done 3013 done 3014 done 3015IFS=$as_save_IFS 3016 3017fi 3018 3019 test -d ./--version && rmdir ./--version 3020 if test ${ac_cv_path_mkdir+y}; then 3021 MKDIR_P="$ac_cv_path_mkdir -p" 3022 else 3023 # As a last resort, use the slow shell script. Don't cache a 3024 # value for MKDIR_P within a source directory, because that will 3025 # break other packages using the cache if that directory is 3026 # removed, or if the value is a relative name. 3027 MKDIR_P="$ac_install_sh -d" 3028 fi 3029fi 3030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3031printf "%s\n" "$MKDIR_P" >&6; } 3032 3033for ac_prog in gawk mawk nawk awk 3034do 3035 # Extract the first word of "$ac_prog", so it can be a program name with args. 3036set dummy $ac_prog; ac_word=$2 3037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3038printf %s "checking for $ac_word... " >&6; } 3039if test ${ac_cv_prog_AWK+y} 3040then : 3041 printf %s "(cached) " >&6 3042else $as_nop 3043 if test -n "$AWK"; then 3044 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3045else 3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3047for as_dir in $PATH 3048do 3049 IFS=$as_save_IFS 3050 case $as_dir in #((( 3051 '') as_dir=./ ;; 3052 */) ;; 3053 *) as_dir=$as_dir/ ;; 3054 esac 3055 for ac_exec_ext in '' $ac_executable_extensions; do 3056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3057 ac_cv_prog_AWK="$ac_prog" 3058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3059 break 2 3060 fi 3061done 3062 done 3063IFS=$as_save_IFS 3064 3065fi 3066fi 3067AWK=$ac_cv_prog_AWK 3068if test -n "$AWK"; then 3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3070printf "%s\n" "$AWK" >&6; } 3071else 3072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3073printf "%s\n" "no" >&6; } 3074fi 3075 3076 3077 test -n "$AWK" && break 3078done 3079 3080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3081printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3082set x ${MAKE-make} 3083ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3084if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3085then : 3086 printf %s "(cached) " >&6 3087else $as_nop 3088 cat >conftest.make <<\_ACEOF 3089SHELL = /bin/sh 3090all: 3091 @echo '@@@%%%=$(MAKE)=@@@%%%' 3092_ACEOF 3093# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3094case `${MAKE-make} -f conftest.make 2>/dev/null` in 3095 *@@@%%%=?*=@@@%%%*) 3096 eval ac_cv_prog_make_${ac_make}_set=yes;; 3097 *) 3098 eval ac_cv_prog_make_${ac_make}_set=no;; 3099esac 3100rm -f conftest.make 3101fi 3102if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3104printf "%s\n" "yes" >&6; } 3105 SET_MAKE= 3106else 3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3108printf "%s\n" "no" >&6; } 3109 SET_MAKE="MAKE=${MAKE-make}" 3110fi 3111 3112rm -rf .tst 2>/dev/null 3113mkdir .tst 2>/dev/null 3114if test -d .tst; then 3115 am__leading_dot=. 3116else 3117 am__leading_dot=_ 3118fi 3119rmdir .tst 2>/dev/null 3120 3121# Check whether --enable-silent-rules was given. 3122if test ${enable_silent_rules+y} 3123then : 3124 enableval=$enable_silent_rules; 3125fi 3126 3127case $enable_silent_rules in # ((( 3128 yes) AM_DEFAULT_VERBOSITY=0;; 3129 no) AM_DEFAULT_VERBOSITY=1;; 3130 *) AM_DEFAULT_VERBOSITY=1;; 3131esac 3132am_make=${MAKE-make} 3133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3134printf %s "checking whether $am_make supports nested variables... " >&6; } 3135if test ${am_cv_make_support_nested_variables+y} 3136then : 3137 printf %s "(cached) " >&6 3138else $as_nop 3139 if printf "%s\n" 'TRUE=$(BAR$(V)) 3140BAR0=false 3141BAR1=true 3142V=1 3143am__doit: 3144 @$(TRUE) 3145.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3146 am_cv_make_support_nested_variables=yes 3147else 3148 am_cv_make_support_nested_variables=no 3149fi 3150fi 3151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3152printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3153if test $am_cv_make_support_nested_variables = yes; then 3154 AM_V='$(V)' 3155 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3156else 3157 AM_V=$AM_DEFAULT_VERBOSITY 3158 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3159fi 3160AM_BACKSLASH='\' 3161 3162if test "`cd $srcdir && pwd`" != "`pwd`"; then 3163 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3164 # is not polluted with repeated "-I." 3165 am__isrc=' -I$(srcdir)' 3166 # test to see if srcdir already configured 3167 if test -f $srcdir/config.status; then 3168 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3169 fi 3170fi 3171 3172# test whether we have cygpath 3173if test -z "$CYGPATH_W"; then 3174 if (cygpath --version) >/dev/null 2>/dev/null; then 3175 CYGPATH_W='cygpath -w' 3176 else 3177 CYGPATH_W=echo 3178 fi 3179fi 3180 3181 3182# Define the identity of the package. 3183 PACKAGE='libXvMC' 3184 VERSION='1.0.13' 3185 3186 3187printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3188 3189 3190printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3191 3192# Some tools Automake needs. 3193 3194ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3195 3196 3197AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3198 3199 3200AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3201 3202 3203AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3204 3205 3206MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3207 3208# For better backward compatibility. To be removed once Automake 1.9.x 3209# dies out for good. For more background, see: 3210# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3211# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3212mkdir_p='$(MKDIR_P)' 3213 3214# We need awk for the "check" target (and possibly the TAP driver). The 3215# system "awk" is bad on some platforms. 3216# Always define AMTAR for backward compatibility. Yes, it's still used 3217# in the wild :-( We should find a proper way to deprecate it ... 3218AMTAR='$${TAR-tar}' 3219 3220 3221# We'll loop over all known methods to create a tar archive until one works. 3222_am_tools='gnutar pax cpio none' 3223 3224am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3225 3226 3227 3228 3229 3230# Variables for tags utilities; see am/tags.am 3231if test -z "$CTAGS"; then 3232 CTAGS=ctags 3233fi 3234 3235if test -z "$ETAGS"; then 3236 ETAGS=etags 3237fi 3238 3239if test -z "$CSCOPE"; then 3240 CSCOPE=cscope 3241fi 3242 3243 3244 3245# POSIX will say in a future version that running "rm -f" with no argument 3246# is OK; and we want to be able to make that assumption in our Makefile 3247# recipes. So use an aggressive probe to check that the usage we want is 3248# actually supported "in the wild" to an acceptable degree. 3249# See automake bug#10828. 3250# To make any issue more visible, cause the running configure to be aborted 3251# by default if the 'rm' program in use doesn't match our expectations; the 3252# user can still override this though. 3253if rm -f && rm -fr && rm -rf; then : OK; else 3254 cat >&2 <<'END' 3255Oops! 3256 3257Your 'rm' program seems unable to run without file operands specified 3258on the command line, even when the '-f' option is present. This is contrary 3259to the behaviour of most rm programs out there, and not conforming with 3260the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3261 3262Please tell bug-automake@gnu.org about your system, including the value 3263of your $PATH and any error possibly output before this message. This 3264can help us improve future automake versions. 3265 3266END 3267 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3268 echo 'Configuration will proceed anyway, since you have set the' >&2 3269 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3270 echo >&2 3271 else 3272 cat >&2 <<'END' 3273Aborting the configuration process, to ensure you take notice of the issue. 3274 3275You can download and install GNU coreutils to get an 'rm' implementation 3276that behaves properly: <https://www.gnu.org/software/coreutils/>. 3277 3278If you want to complete the configuration process using your problematic 3279'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3280to "yes", and re-run configure. 3281 3282END 3283 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3284 fi 3285fi 3286 3287 3288# Initialize libtool 3289case `pwd` in 3290 *\ * | *\ *) 3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3292printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3293esac 3294 3295 3296 3297macro_version='2.4.6' 3298macro_revision='2.4.6' 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313ltmain=$ac_aux_dir/ltmain.sh 3314 3315 3316 3317 # Make sure we can run config.sub. 3318$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3319 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3320 3321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3322printf %s "checking build system type... " >&6; } 3323if test ${ac_cv_build+y} 3324then : 3325 printf %s "(cached) " >&6 3326else $as_nop 3327 ac_build_alias=$build_alias 3328test "x$ac_build_alias" = x && 3329 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3330test "x$ac_build_alias" = x && 3331 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3332ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3333 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3334 3335fi 3336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3337printf "%s\n" "$ac_cv_build" >&6; } 3338case $ac_cv_build in 3339*-*-*) ;; 3340*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3341esac 3342build=$ac_cv_build 3343ac_save_IFS=$IFS; IFS='-' 3344set x $ac_cv_build 3345shift 3346build_cpu=$1 3347build_vendor=$2 3348shift; shift 3349# Remember, the first character of IFS is used to create $*, 3350# except with old shells: 3351build_os=$* 3352IFS=$ac_save_IFS 3353case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3354 3355 3356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3357printf %s "checking host system type... " >&6; } 3358if test ${ac_cv_host+y} 3359then : 3360 printf %s "(cached) " >&6 3361else $as_nop 3362 if test "x$host_alias" = x; then 3363 ac_cv_host=$ac_cv_build 3364else 3365 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3366 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3367fi 3368 3369fi 3370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3371printf "%s\n" "$ac_cv_host" >&6; } 3372case $ac_cv_host in 3373*-*-*) ;; 3374*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3375esac 3376host=$ac_cv_host 3377ac_save_IFS=$IFS; IFS='-' 3378set x $ac_cv_host 3379shift 3380host_cpu=$1 3381host_vendor=$2 3382shift; shift 3383# Remember, the first character of IFS is used to create $*, 3384# except with old shells: 3385host_os=$* 3386IFS=$ac_save_IFS 3387case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3388 3389 3390# Backslashify metacharacters that are still active within 3391# double-quoted strings. 3392sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3393 3394# Same as above, but do not quote variable references. 3395double_quote_subst='s/\(["`\\]\)/\\\1/g' 3396 3397# Sed substitution to delay expansion of an escaped shell variable in a 3398# double_quote_subst'ed string. 3399delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3400 3401# Sed substitution to delay expansion of an escaped single quote. 3402delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3403 3404# Sed substitution to avoid accidental globbing in evaled expressions 3405no_glob_subst='s/\*/\\\*/g' 3406 3407ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3408ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3409ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3410 3411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3412printf %s "checking how to print strings... " >&6; } 3413# Test print first, because it will be a builtin if present. 3414if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3415 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3416 ECHO='print -r --' 3417elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3418 ECHO='printf %s\n' 3419else 3420 # Use this function as a fallback that always works. 3421 func_fallback_echo () 3422 { 3423 eval 'cat <<_LTECHO_EOF 3424$1 3425_LTECHO_EOF' 3426 } 3427 ECHO='func_fallback_echo' 3428fi 3429 3430# func_echo_all arg... 3431# Invoke $ECHO with all args, space-separated. 3432func_echo_all () 3433{ 3434 $ECHO "" 3435} 3436 3437case $ECHO in 3438 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3439printf "%s\n" "printf" >&6; } ;; 3440 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3441printf "%s\n" "print -r" >&6; } ;; 3442 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3443printf "%s\n" "cat" >&6; } ;; 3444esac 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468DEPDIR="${am__leading_dot}deps" 3469 3470ac_config_commands="$ac_config_commands depfiles" 3471 3472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3473printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3474cat > confinc.mk << 'END' 3475am__doit: 3476 @echo this is the am__doit target >confinc.out 3477.PHONY: am__doit 3478END 3479am__include="#" 3480am__quote= 3481# BSD make does it like this. 3482echo '.include "confinc.mk" # ignored' > confmf.BSD 3483# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3484echo 'include confinc.mk # ignored' > confmf.GNU 3485_am_result=no 3486for s in GNU BSD; do 3487 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3488 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3489 ac_status=$? 3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3491 (exit $ac_status); } 3492 case $?:`cat confinc.out 2>/dev/null` in #( 3493 '0:this is the am__doit target') : 3494 case $s in #( 3495 BSD) : 3496 am__include='.include' am__quote='"' ;; #( 3497 *) : 3498 am__include='include' am__quote='' ;; 3499esac ;; #( 3500 *) : 3501 ;; 3502esac 3503 if test "$am__include" != "#"; then 3504 _am_result="yes ($s style)" 3505 break 3506 fi 3507done 3508rm -f confinc.* confmf.* 3509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3510printf "%s\n" "${_am_result}" >&6; } 3511 3512# Check whether --enable-dependency-tracking was given. 3513if test ${enable_dependency_tracking+y} 3514then : 3515 enableval=$enable_dependency_tracking; 3516fi 3517 3518if test "x$enable_dependency_tracking" != xno; then 3519 am_depcomp="$ac_aux_dir/depcomp" 3520 AMDEPBACKSLASH='\' 3521 am__nodep='_no' 3522fi 3523 if test "x$enable_dependency_tracking" != xno; then 3524 AMDEP_TRUE= 3525 AMDEP_FALSE='#' 3526else 3527 AMDEP_TRUE='#' 3528 AMDEP_FALSE= 3529fi 3530 3531 3532ac_ext=c 3533ac_cpp='$CPP $CPPFLAGS' 3534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3536ac_compiler_gnu=$ac_cv_c_compiler_gnu 3537if test -n "$ac_tool_prefix"; then 3538 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3539set dummy ${ac_tool_prefix}gcc; ac_word=$2 3540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3541printf %s "checking for $ac_word... " >&6; } 3542if test ${ac_cv_prog_CC+y} 3543then : 3544 printf %s "(cached) " >&6 3545else $as_nop 3546 if test -n "$CC"; then 3547 ac_cv_prog_CC="$CC" # Let the user override the test. 3548else 3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3550for as_dir in $PATH 3551do 3552 IFS=$as_save_IFS 3553 case $as_dir in #((( 3554 '') as_dir=./ ;; 3555 */) ;; 3556 *) as_dir=$as_dir/ ;; 3557 esac 3558 for ac_exec_ext in '' $ac_executable_extensions; do 3559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3560 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3562 break 2 3563 fi 3564done 3565 done 3566IFS=$as_save_IFS 3567 3568fi 3569fi 3570CC=$ac_cv_prog_CC 3571if test -n "$CC"; then 3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3573printf "%s\n" "$CC" >&6; } 3574else 3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3576printf "%s\n" "no" >&6; } 3577fi 3578 3579 3580fi 3581if test -z "$ac_cv_prog_CC"; then 3582 ac_ct_CC=$CC 3583 # Extract the first word of "gcc", so it can be a program name with args. 3584set dummy gcc; ac_word=$2 3585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3586printf %s "checking for $ac_word... " >&6; } 3587if test ${ac_cv_prog_ac_ct_CC+y} 3588then : 3589 printf %s "(cached) " >&6 3590else $as_nop 3591 if test -n "$ac_ct_CC"; then 3592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3593else 3594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3595for as_dir in $PATH 3596do 3597 IFS=$as_save_IFS 3598 case $as_dir in #((( 3599 '') as_dir=./ ;; 3600 */) ;; 3601 *) as_dir=$as_dir/ ;; 3602 esac 3603 for ac_exec_ext in '' $ac_executable_extensions; do 3604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3605 ac_cv_prog_ac_ct_CC="gcc" 3606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3607 break 2 3608 fi 3609done 3610 done 3611IFS=$as_save_IFS 3612 3613fi 3614fi 3615ac_ct_CC=$ac_cv_prog_ac_ct_CC 3616if test -n "$ac_ct_CC"; then 3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3618printf "%s\n" "$ac_ct_CC" >&6; } 3619else 3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3621printf "%s\n" "no" >&6; } 3622fi 3623 3624 if test "x$ac_ct_CC" = x; then 3625 CC="" 3626 else 3627 case $cross_compiling:$ac_tool_warned in 3628yes:) 3629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3630printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3631ac_tool_warned=yes ;; 3632esac 3633 CC=$ac_ct_CC 3634 fi 3635else 3636 CC="$ac_cv_prog_CC" 3637fi 3638 3639if test -z "$CC"; then 3640 if test -n "$ac_tool_prefix"; then 3641 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3642set dummy ${ac_tool_prefix}cc; ac_word=$2 3643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3644printf %s "checking for $ac_word... " >&6; } 3645if test ${ac_cv_prog_CC+y} 3646then : 3647 printf %s "(cached) " >&6 3648else $as_nop 3649 if test -n "$CC"; then 3650 ac_cv_prog_CC="$CC" # Let the user override the test. 3651else 3652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3653for as_dir in $PATH 3654do 3655 IFS=$as_save_IFS 3656 case $as_dir in #((( 3657 '') as_dir=./ ;; 3658 */) ;; 3659 *) as_dir=$as_dir/ ;; 3660 esac 3661 for ac_exec_ext in '' $ac_executable_extensions; do 3662 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3663 ac_cv_prog_CC="${ac_tool_prefix}cc" 3664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3665 break 2 3666 fi 3667done 3668 done 3669IFS=$as_save_IFS 3670 3671fi 3672fi 3673CC=$ac_cv_prog_CC 3674if test -n "$CC"; then 3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3676printf "%s\n" "$CC" >&6; } 3677else 3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3679printf "%s\n" "no" >&6; } 3680fi 3681 3682 3683 fi 3684fi 3685if test -z "$CC"; then 3686 # Extract the first word of "cc", so it can be a program name with args. 3687set dummy cc; ac_word=$2 3688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3689printf %s "checking for $ac_word... " >&6; } 3690if test ${ac_cv_prog_CC+y} 3691then : 3692 printf %s "(cached) " >&6 3693else $as_nop 3694 if test -n "$CC"; then 3695 ac_cv_prog_CC="$CC" # Let the user override the test. 3696else 3697 ac_prog_rejected=no 3698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3699for as_dir in $PATH 3700do 3701 IFS=$as_save_IFS 3702 case $as_dir in #((( 3703 '') as_dir=./ ;; 3704 */) ;; 3705 *) as_dir=$as_dir/ ;; 3706 esac 3707 for ac_exec_ext in '' $ac_executable_extensions; do 3708 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3709 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3710 ac_prog_rejected=yes 3711 continue 3712 fi 3713 ac_cv_prog_CC="cc" 3714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3715 break 2 3716 fi 3717done 3718 done 3719IFS=$as_save_IFS 3720 3721if test $ac_prog_rejected = yes; then 3722 # We found a bogon in the path, so make sure we never use it. 3723 set dummy $ac_cv_prog_CC 3724 shift 3725 if test $# != 0; then 3726 # We chose a different compiler from the bogus one. 3727 # However, it has the same basename, so the bogon will be chosen 3728 # first if we set CC to just the basename; use the full file name. 3729 shift 3730 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3731 fi 3732fi 3733fi 3734fi 3735CC=$ac_cv_prog_CC 3736if test -n "$CC"; then 3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3738printf "%s\n" "$CC" >&6; } 3739else 3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3741printf "%s\n" "no" >&6; } 3742fi 3743 3744 3745fi 3746if test -z "$CC"; then 3747 if test -n "$ac_tool_prefix"; then 3748 for ac_prog in cl.exe 3749 do 3750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3751set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3753printf %s "checking for $ac_word... " >&6; } 3754if test ${ac_cv_prog_CC+y} 3755then : 3756 printf %s "(cached) " >&6 3757else $as_nop 3758 if test -n "$CC"; then 3759 ac_cv_prog_CC="$CC" # Let the user override the test. 3760else 3761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3762for as_dir in $PATH 3763do 3764 IFS=$as_save_IFS 3765 case $as_dir in #((( 3766 '') as_dir=./ ;; 3767 */) ;; 3768 *) as_dir=$as_dir/ ;; 3769 esac 3770 for ac_exec_ext in '' $ac_executable_extensions; do 3771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3772 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3774 break 2 3775 fi 3776done 3777 done 3778IFS=$as_save_IFS 3779 3780fi 3781fi 3782CC=$ac_cv_prog_CC 3783if test -n "$CC"; then 3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3785printf "%s\n" "$CC" >&6; } 3786else 3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3788printf "%s\n" "no" >&6; } 3789fi 3790 3791 3792 test -n "$CC" && break 3793 done 3794fi 3795if test -z "$CC"; then 3796 ac_ct_CC=$CC 3797 for ac_prog in cl.exe 3798do 3799 # Extract the first word of "$ac_prog", so it can be a program name with args. 3800set dummy $ac_prog; ac_word=$2 3801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3802printf %s "checking for $ac_word... " >&6; } 3803if test ${ac_cv_prog_ac_ct_CC+y} 3804then : 3805 printf %s "(cached) " >&6 3806else $as_nop 3807 if test -n "$ac_ct_CC"; then 3808 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3809else 3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3811for as_dir in $PATH 3812do 3813 IFS=$as_save_IFS 3814 case $as_dir in #((( 3815 '') as_dir=./ ;; 3816 */) ;; 3817 *) as_dir=$as_dir/ ;; 3818 esac 3819 for ac_exec_ext in '' $ac_executable_extensions; do 3820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3821 ac_cv_prog_ac_ct_CC="$ac_prog" 3822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3823 break 2 3824 fi 3825done 3826 done 3827IFS=$as_save_IFS 3828 3829fi 3830fi 3831ac_ct_CC=$ac_cv_prog_ac_ct_CC 3832if test -n "$ac_ct_CC"; then 3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3834printf "%s\n" "$ac_ct_CC" >&6; } 3835else 3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3837printf "%s\n" "no" >&6; } 3838fi 3839 3840 3841 test -n "$ac_ct_CC" && break 3842done 3843 3844 if test "x$ac_ct_CC" = x; then 3845 CC="" 3846 else 3847 case $cross_compiling:$ac_tool_warned in 3848yes:) 3849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3850printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3851ac_tool_warned=yes ;; 3852esac 3853 CC=$ac_ct_CC 3854 fi 3855fi 3856 3857fi 3858if test -z "$CC"; then 3859 if test -n "$ac_tool_prefix"; then 3860 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3861set dummy ${ac_tool_prefix}clang; ac_word=$2 3862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3863printf %s "checking for $ac_word... " >&6; } 3864if test ${ac_cv_prog_CC+y} 3865then : 3866 printf %s "(cached) " >&6 3867else $as_nop 3868 if test -n "$CC"; then 3869 ac_cv_prog_CC="$CC" # Let the user override the test. 3870else 3871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3872for as_dir in $PATH 3873do 3874 IFS=$as_save_IFS 3875 case $as_dir in #((( 3876 '') as_dir=./ ;; 3877 */) ;; 3878 *) as_dir=$as_dir/ ;; 3879 esac 3880 for ac_exec_ext in '' $ac_executable_extensions; do 3881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3882 ac_cv_prog_CC="${ac_tool_prefix}clang" 3883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3884 break 2 3885 fi 3886done 3887 done 3888IFS=$as_save_IFS 3889 3890fi 3891fi 3892CC=$ac_cv_prog_CC 3893if test -n "$CC"; then 3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3895printf "%s\n" "$CC" >&6; } 3896else 3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3898printf "%s\n" "no" >&6; } 3899fi 3900 3901 3902fi 3903if test -z "$ac_cv_prog_CC"; then 3904 ac_ct_CC=$CC 3905 # Extract the first word of "clang", so it can be a program name with args. 3906set dummy clang; ac_word=$2 3907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3908printf %s "checking for $ac_word... " >&6; } 3909if test ${ac_cv_prog_ac_ct_CC+y} 3910then : 3911 printf %s "(cached) " >&6 3912else $as_nop 3913 if test -n "$ac_ct_CC"; then 3914 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3915else 3916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3917for as_dir in $PATH 3918do 3919 IFS=$as_save_IFS 3920 case $as_dir in #((( 3921 '') as_dir=./ ;; 3922 */) ;; 3923 *) as_dir=$as_dir/ ;; 3924 esac 3925 for ac_exec_ext in '' $ac_executable_extensions; do 3926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3927 ac_cv_prog_ac_ct_CC="clang" 3928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3929 break 2 3930 fi 3931done 3932 done 3933IFS=$as_save_IFS 3934 3935fi 3936fi 3937ac_ct_CC=$ac_cv_prog_ac_ct_CC 3938if test -n "$ac_ct_CC"; then 3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3940printf "%s\n" "$ac_ct_CC" >&6; } 3941else 3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3943printf "%s\n" "no" >&6; } 3944fi 3945 3946 if test "x$ac_ct_CC" = x; then 3947 CC="" 3948 else 3949 case $cross_compiling:$ac_tool_warned in 3950yes:) 3951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3952printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3953ac_tool_warned=yes ;; 3954esac 3955 CC=$ac_ct_CC 3956 fi 3957else 3958 CC="$ac_cv_prog_CC" 3959fi 3960 3961fi 3962 3963 3964test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3965printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3966as_fn_error $? "no acceptable C compiler found in \$PATH 3967See \`config.log' for more details" "$LINENO" 5; } 3968 3969# Provide some information about the compiler. 3970printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3971set X $ac_compile 3972ac_compiler=$2 3973for ac_option in --version -v -V -qversion -version; do 3974 { { ac_try="$ac_compiler $ac_option >&5" 3975case "(($ac_try" in 3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3977 *) ac_try_echo=$ac_try;; 3978esac 3979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3980printf "%s\n" "$ac_try_echo"; } >&5 3981 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3982 ac_status=$? 3983 if test -s conftest.err; then 3984 sed '10a\ 3985... rest of stderr output deleted ... 3986 10q' conftest.err >conftest.er1 3987 cat conftest.er1 >&5 3988 fi 3989 rm -f conftest.er1 conftest.err 3990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3991 test $ac_status = 0; } 3992done 3993 3994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3995/* end confdefs.h. */ 3996 3997int 3998main (void) 3999{ 4000 4001 ; 4002 return 0; 4003} 4004_ACEOF 4005ac_clean_files_save=$ac_clean_files 4006ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4007# Try to create an executable without -o first, disregard a.out. 4008# It will help us diagnose broken compilers, and finding out an intuition 4009# of exeext. 4010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4011printf %s "checking whether the C compiler works... " >&6; } 4012ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4013 4014# The possible output files: 4015ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4016 4017ac_rmfiles= 4018for ac_file in $ac_files 4019do 4020 case $ac_file in 4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4022 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4023 esac 4024done 4025rm -f $ac_rmfiles 4026 4027if { { ac_try="$ac_link_default" 4028case "(($ac_try" in 4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4030 *) ac_try_echo=$ac_try;; 4031esac 4032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4033printf "%s\n" "$ac_try_echo"; } >&5 4034 (eval "$ac_link_default") 2>&5 4035 ac_status=$? 4036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4037 test $ac_status = 0; } 4038then : 4039 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4040# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4041# in a Makefile. We should not override ac_cv_exeext if it was cached, 4042# so that the user can short-circuit this test for compilers unknown to 4043# Autoconf. 4044for ac_file in $ac_files '' 4045do 4046 test -f "$ac_file" || continue 4047 case $ac_file in 4048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4049 ;; 4050 [ab].out ) 4051 # We found the default executable, but exeext='' is most 4052 # certainly right. 4053 break;; 4054 *.* ) 4055 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4056 then :; else 4057 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4058 fi 4059 # We set ac_cv_exeext here because the later test for it is not 4060 # safe: cross compilers may not add the suffix if given an `-o' 4061 # argument, so we may need to know it at that point already. 4062 # Even if this section looks crufty: it has the advantage of 4063 # actually working. 4064 break;; 4065 * ) 4066 break;; 4067 esac 4068done 4069test "$ac_cv_exeext" = no && ac_cv_exeext= 4070 4071else $as_nop 4072 ac_file='' 4073fi 4074if test -z "$ac_file" 4075then : 4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4077printf "%s\n" "no" >&6; } 4078printf "%s\n" "$as_me: failed program was:" >&5 4079sed 's/^/| /' conftest.$ac_ext >&5 4080 4081{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4082printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4083as_fn_error 77 "C compiler cannot create executables 4084See \`config.log' for more details" "$LINENO" 5; } 4085else $as_nop 4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4087printf "%s\n" "yes" >&6; } 4088fi 4089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4090printf %s "checking for C compiler default output file name... " >&6; } 4091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4092printf "%s\n" "$ac_file" >&6; } 4093ac_exeext=$ac_cv_exeext 4094 4095rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4096ac_clean_files=$ac_clean_files_save 4097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4098printf %s "checking for suffix of executables... " >&6; } 4099if { { ac_try="$ac_link" 4100case "(($ac_try" in 4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4102 *) ac_try_echo=$ac_try;; 4103esac 4104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4105printf "%s\n" "$ac_try_echo"; } >&5 4106 (eval "$ac_link") 2>&5 4107 ac_status=$? 4108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4109 test $ac_status = 0; } 4110then : 4111 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4112# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4113# work properly (i.e., refer to `conftest.exe'), while it won't with 4114# `rm'. 4115for ac_file in conftest.exe conftest conftest.*; do 4116 test -f "$ac_file" || continue 4117 case $ac_file in 4118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4119 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4120 break;; 4121 * ) break;; 4122 esac 4123done 4124else $as_nop 4125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4126printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4127as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4128See \`config.log' for more details" "$LINENO" 5; } 4129fi 4130rm -f conftest conftest$ac_cv_exeext 4131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4132printf "%s\n" "$ac_cv_exeext" >&6; } 4133 4134rm -f conftest.$ac_ext 4135EXEEXT=$ac_cv_exeext 4136ac_exeext=$EXEEXT 4137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4138/* end confdefs.h. */ 4139#include <stdio.h> 4140int 4141main (void) 4142{ 4143FILE *f = fopen ("conftest.out", "w"); 4144 return ferror (f) || fclose (f) != 0; 4145 4146 ; 4147 return 0; 4148} 4149_ACEOF 4150ac_clean_files="$ac_clean_files conftest.out" 4151# Check that the compiler produces executables we can run. If not, either 4152# the compiler is broken, or we cross compile. 4153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4154printf %s "checking whether we are cross compiling... " >&6; } 4155if test "$cross_compiling" != yes; then 4156 { { ac_try="$ac_link" 4157case "(($ac_try" in 4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4159 *) ac_try_echo=$ac_try;; 4160esac 4161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4162printf "%s\n" "$ac_try_echo"; } >&5 4163 (eval "$ac_link") 2>&5 4164 ac_status=$? 4165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4166 test $ac_status = 0; } 4167 if { ac_try='./conftest$ac_cv_exeext' 4168 { { case "(($ac_try" in 4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4170 *) ac_try_echo=$ac_try;; 4171esac 4172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4173printf "%s\n" "$ac_try_echo"; } >&5 4174 (eval "$ac_try") 2>&5 4175 ac_status=$? 4176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4177 test $ac_status = 0; }; }; then 4178 cross_compiling=no 4179 else 4180 if test "$cross_compiling" = maybe; then 4181 cross_compiling=yes 4182 else 4183 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4184printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4185as_fn_error 77 "cannot run C compiled programs. 4186If you meant to cross compile, use \`--host'. 4187See \`config.log' for more details" "$LINENO" 5; } 4188 fi 4189 fi 4190fi 4191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4192printf "%s\n" "$cross_compiling" >&6; } 4193 4194rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4195ac_clean_files=$ac_clean_files_save 4196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4197printf %s "checking for suffix of object files... " >&6; } 4198if test ${ac_cv_objext+y} 4199then : 4200 printf %s "(cached) " >&6 4201else $as_nop 4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4203/* end confdefs.h. */ 4204 4205int 4206main (void) 4207{ 4208 4209 ; 4210 return 0; 4211} 4212_ACEOF 4213rm -f conftest.o conftest.obj 4214if { { ac_try="$ac_compile" 4215case "(($ac_try" in 4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4217 *) ac_try_echo=$ac_try;; 4218esac 4219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4220printf "%s\n" "$ac_try_echo"; } >&5 4221 (eval "$ac_compile") 2>&5 4222 ac_status=$? 4223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4224 test $ac_status = 0; } 4225then : 4226 for ac_file in conftest.o conftest.obj conftest.*; do 4227 test -f "$ac_file" || continue; 4228 case $ac_file in 4229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4230 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4231 break;; 4232 esac 4233done 4234else $as_nop 4235 printf "%s\n" "$as_me: failed program was:" >&5 4236sed 's/^/| /' conftest.$ac_ext >&5 4237 4238{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4239printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4240as_fn_error $? "cannot compute suffix of object files: cannot compile 4241See \`config.log' for more details" "$LINENO" 5; } 4242fi 4243rm -f conftest.$ac_cv_objext conftest.$ac_ext 4244fi 4245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4246printf "%s\n" "$ac_cv_objext" >&6; } 4247OBJEXT=$ac_cv_objext 4248ac_objext=$OBJEXT 4249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4250printf %s "checking whether the compiler supports GNU C... " >&6; } 4251if test ${ac_cv_c_compiler_gnu+y} 4252then : 4253 printf %s "(cached) " >&6 4254else $as_nop 4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4256/* end confdefs.h. */ 4257 4258int 4259main (void) 4260{ 4261#ifndef __GNUC__ 4262 choke me 4263#endif 4264 4265 ; 4266 return 0; 4267} 4268_ACEOF 4269if ac_fn_c_try_compile "$LINENO" 4270then : 4271 ac_compiler_gnu=yes 4272else $as_nop 4273 ac_compiler_gnu=no 4274fi 4275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4276ac_cv_c_compiler_gnu=$ac_compiler_gnu 4277 4278fi 4279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4280printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4281ac_compiler_gnu=$ac_cv_c_compiler_gnu 4282 4283if test $ac_compiler_gnu = yes; then 4284 GCC=yes 4285else 4286 GCC= 4287fi 4288ac_test_CFLAGS=${CFLAGS+y} 4289ac_save_CFLAGS=$CFLAGS 4290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4291printf %s "checking whether $CC accepts -g... " >&6; } 4292if test ${ac_cv_prog_cc_g+y} 4293then : 4294 printf %s "(cached) " >&6 4295else $as_nop 4296 ac_save_c_werror_flag=$ac_c_werror_flag 4297 ac_c_werror_flag=yes 4298 ac_cv_prog_cc_g=no 4299 CFLAGS="-g" 4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4301/* end confdefs.h. */ 4302 4303int 4304main (void) 4305{ 4306 4307 ; 4308 return 0; 4309} 4310_ACEOF 4311if ac_fn_c_try_compile "$LINENO" 4312then : 4313 ac_cv_prog_cc_g=yes 4314else $as_nop 4315 CFLAGS="" 4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4317/* end confdefs.h. */ 4318 4319int 4320main (void) 4321{ 4322 4323 ; 4324 return 0; 4325} 4326_ACEOF 4327if ac_fn_c_try_compile "$LINENO" 4328then : 4329 4330else $as_nop 4331 ac_c_werror_flag=$ac_save_c_werror_flag 4332 CFLAGS="-g" 4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4334/* end confdefs.h. */ 4335 4336int 4337main (void) 4338{ 4339 4340 ; 4341 return 0; 4342} 4343_ACEOF 4344if ac_fn_c_try_compile "$LINENO" 4345then : 4346 ac_cv_prog_cc_g=yes 4347fi 4348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4349fi 4350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4351fi 4352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4353 ac_c_werror_flag=$ac_save_c_werror_flag 4354fi 4355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4356printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4357if test $ac_test_CFLAGS; then 4358 CFLAGS=$ac_save_CFLAGS 4359elif test $ac_cv_prog_cc_g = yes; then 4360 if test "$GCC" = yes; then 4361 CFLAGS="-g -O2" 4362 else 4363 CFLAGS="-g" 4364 fi 4365else 4366 if test "$GCC" = yes; then 4367 CFLAGS="-O2" 4368 else 4369 CFLAGS= 4370 fi 4371fi 4372ac_prog_cc_stdc=no 4373if test x$ac_prog_cc_stdc = xno 4374then : 4375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4376printf %s "checking for $CC option to enable C11 features... " >&6; } 4377if test ${ac_cv_prog_cc_c11+y} 4378then : 4379 printf %s "(cached) " >&6 4380else $as_nop 4381 ac_cv_prog_cc_c11=no 4382ac_save_CC=$CC 4383cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4384/* end confdefs.h. */ 4385$ac_c_conftest_c11_program 4386_ACEOF 4387for ac_arg in '' -std=gnu11 4388do 4389 CC="$ac_save_CC $ac_arg" 4390 if ac_fn_c_try_compile "$LINENO" 4391then : 4392 ac_cv_prog_cc_c11=$ac_arg 4393fi 4394rm -f core conftest.err conftest.$ac_objext conftest.beam 4395 test "x$ac_cv_prog_cc_c11" != "xno" && break 4396done 4397rm -f conftest.$ac_ext 4398CC=$ac_save_CC 4399fi 4400 4401if test "x$ac_cv_prog_cc_c11" = xno 4402then : 4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4404printf "%s\n" "unsupported" >&6; } 4405else $as_nop 4406 if test "x$ac_cv_prog_cc_c11" = x 4407then : 4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4409printf "%s\n" "none needed" >&6; } 4410else $as_nop 4411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4412printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4413 CC="$CC $ac_cv_prog_cc_c11" 4414fi 4415 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4416 ac_prog_cc_stdc=c11 4417fi 4418fi 4419if test x$ac_prog_cc_stdc = xno 4420then : 4421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4422printf %s "checking for $CC option to enable C99 features... " >&6; } 4423if test ${ac_cv_prog_cc_c99+y} 4424then : 4425 printf %s "(cached) " >&6 4426else $as_nop 4427 ac_cv_prog_cc_c99=no 4428ac_save_CC=$CC 4429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4430/* end confdefs.h. */ 4431$ac_c_conftest_c99_program 4432_ACEOF 4433for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4434do 4435 CC="$ac_save_CC $ac_arg" 4436 if ac_fn_c_try_compile "$LINENO" 4437then : 4438 ac_cv_prog_cc_c99=$ac_arg 4439fi 4440rm -f core conftest.err conftest.$ac_objext conftest.beam 4441 test "x$ac_cv_prog_cc_c99" != "xno" && break 4442done 4443rm -f conftest.$ac_ext 4444CC=$ac_save_CC 4445fi 4446 4447if test "x$ac_cv_prog_cc_c99" = xno 4448then : 4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4450printf "%s\n" "unsupported" >&6; } 4451else $as_nop 4452 if test "x$ac_cv_prog_cc_c99" = x 4453then : 4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4455printf "%s\n" "none needed" >&6; } 4456else $as_nop 4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4458printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4459 CC="$CC $ac_cv_prog_cc_c99" 4460fi 4461 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4462 ac_prog_cc_stdc=c99 4463fi 4464fi 4465if test x$ac_prog_cc_stdc = xno 4466then : 4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4468printf %s "checking for $CC option to enable C89 features... " >&6; } 4469if test ${ac_cv_prog_cc_c89+y} 4470then : 4471 printf %s "(cached) " >&6 4472else $as_nop 4473 ac_cv_prog_cc_c89=no 4474ac_save_CC=$CC 4475cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4476/* end confdefs.h. */ 4477$ac_c_conftest_c89_program 4478_ACEOF 4479for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4480do 4481 CC="$ac_save_CC $ac_arg" 4482 if ac_fn_c_try_compile "$LINENO" 4483then : 4484 ac_cv_prog_cc_c89=$ac_arg 4485fi 4486rm -f core conftest.err conftest.$ac_objext conftest.beam 4487 test "x$ac_cv_prog_cc_c89" != "xno" && break 4488done 4489rm -f conftest.$ac_ext 4490CC=$ac_save_CC 4491fi 4492 4493if test "x$ac_cv_prog_cc_c89" = xno 4494then : 4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4496printf "%s\n" "unsupported" >&6; } 4497else $as_nop 4498 if test "x$ac_cv_prog_cc_c89" = x 4499then : 4500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4501printf "%s\n" "none needed" >&6; } 4502else $as_nop 4503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4504printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4505 CC="$CC $ac_cv_prog_cc_c89" 4506fi 4507 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4508 ac_prog_cc_stdc=c89 4509fi 4510fi 4511 4512ac_ext=c 4513ac_cpp='$CPP $CPPFLAGS' 4514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4516ac_compiler_gnu=$ac_cv_c_compiler_gnu 4517 4518 4519 ac_ext=c 4520ac_cpp='$CPP $CPPFLAGS' 4521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4523ac_compiler_gnu=$ac_cv_c_compiler_gnu 4524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4525printf %s "checking whether $CC understands -c and -o together... " >&6; } 4526if test ${am_cv_prog_cc_c_o+y} 4527then : 4528 printf %s "(cached) " >&6 4529else $as_nop 4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4531/* end confdefs.h. */ 4532 4533int 4534main (void) 4535{ 4536 4537 ; 4538 return 0; 4539} 4540_ACEOF 4541 # Make sure it works both with $CC and with simple cc. 4542 # Following AC_PROG_CC_C_O, we do the test twice because some 4543 # compilers refuse to overwrite an existing .o file with -o, 4544 # though they will create one. 4545 am_cv_prog_cc_c_o=yes 4546 for am_i in 1 2; do 4547 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4548 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4549 ac_status=$? 4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4551 (exit $ac_status); } \ 4552 && test -f conftest2.$ac_objext; then 4553 : OK 4554 else 4555 am_cv_prog_cc_c_o=no 4556 break 4557 fi 4558 done 4559 rm -f core conftest* 4560 unset am_i 4561fi 4562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4563printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4564if test "$am_cv_prog_cc_c_o" != yes; then 4565 # Losing compiler, so override with the script. 4566 # FIXME: It is wrong to rewrite CC. 4567 # But if we don't then we get into trouble of one sort or another. 4568 # A longer-term fix would be to have automake use am__CC in this case, 4569 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4570 CC="$am_aux_dir/compile $CC" 4571fi 4572ac_ext=c 4573ac_cpp='$CPP $CPPFLAGS' 4574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4576ac_compiler_gnu=$ac_cv_c_compiler_gnu 4577 4578 4579depcc="$CC" am_compiler_list= 4580 4581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4582printf %s "checking dependency style of $depcc... " >&6; } 4583if test ${am_cv_CC_dependencies_compiler_type+y} 4584then : 4585 printf %s "(cached) " >&6 4586else $as_nop 4587 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4588 # We make a subdir and do the tests there. Otherwise we can end up 4589 # making bogus files that we don't know about and never remove. For 4590 # instance it was reported that on HP-UX the gcc test will end up 4591 # making a dummy file named 'D' -- because '-MD' means "put the output 4592 # in D". 4593 rm -rf conftest.dir 4594 mkdir conftest.dir 4595 # Copy depcomp to subdir because otherwise we won't find it if we're 4596 # using a relative directory. 4597 cp "$am_depcomp" conftest.dir 4598 cd conftest.dir 4599 # We will build objects and dependencies in a subdirectory because 4600 # it helps to detect inapplicable dependency modes. For instance 4601 # both Tru64's cc and ICC support -MD to output dependencies as a 4602 # side effect of compilation, but ICC will put the dependencies in 4603 # the current directory while Tru64 will put them in the object 4604 # directory. 4605 mkdir sub 4606 4607 am_cv_CC_dependencies_compiler_type=none 4608 if test "$am_compiler_list" = ""; then 4609 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4610 fi 4611 am__universal=false 4612 case " $depcc " in #( 4613 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4614 esac 4615 4616 for depmode in $am_compiler_list; do 4617 # Setup a source with many dependencies, because some compilers 4618 # like to wrap large dependency lists on column 80 (with \), and 4619 # we should not choose a depcomp mode which is confused by this. 4620 # 4621 # We need to recreate these files for each test, as the compiler may 4622 # overwrite some of them when testing with obscure command lines. 4623 # This happens at least with the AIX C compiler. 4624 : > sub/conftest.c 4625 for i in 1 2 3 4 5 6; do 4626 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4627 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4628 # Solaris 10 /bin/sh. 4629 echo '/* dummy */' > sub/conftst$i.h 4630 done 4631 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4632 4633 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4634 # mode. It turns out that the SunPro C++ compiler does not properly 4635 # handle '-M -o', and we need to detect this. Also, some Intel 4636 # versions had trouble with output in subdirs. 4637 am__obj=sub/conftest.${OBJEXT-o} 4638 am__minus_obj="-o $am__obj" 4639 case $depmode in 4640 gcc) 4641 # This depmode causes a compiler race in universal mode. 4642 test "$am__universal" = false || continue 4643 ;; 4644 nosideeffect) 4645 # After this tag, mechanisms are not by side-effect, so they'll 4646 # only be used when explicitly requested. 4647 if test "x$enable_dependency_tracking" = xyes; then 4648 continue 4649 else 4650 break 4651 fi 4652 ;; 4653 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4654 # This compiler won't grok '-c -o', but also, the minuso test has 4655 # not run yet. These depmodes are late enough in the game, and 4656 # so weak that their functioning should not be impacted. 4657 am__obj=conftest.${OBJEXT-o} 4658 am__minus_obj= 4659 ;; 4660 none) break ;; 4661 esac 4662 if depmode=$depmode \ 4663 source=sub/conftest.c object=$am__obj \ 4664 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4665 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4666 >/dev/null 2>conftest.err && 4667 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4668 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4669 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4670 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4671 # icc doesn't choke on unknown options, it will just issue warnings 4672 # or remarks (even with -Werror). So we grep stderr for any message 4673 # that says an option was ignored or not supported. 4674 # When given -MP, icc 7.0 and 7.1 complain thusly: 4675 # icc: Command line warning: ignoring option '-M'; no argument required 4676 # The diagnosis changed in icc 8.0: 4677 # icc: Command line remark: option '-MP' not supported 4678 if (grep 'ignoring option' conftest.err || 4679 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4680 am_cv_CC_dependencies_compiler_type=$depmode 4681 break 4682 fi 4683 fi 4684 done 4685 4686 cd .. 4687 rm -rf conftest.dir 4688else 4689 am_cv_CC_dependencies_compiler_type=none 4690fi 4691 4692fi 4693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4694printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4695CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4696 4697 if 4698 test "x$enable_dependency_tracking" != xno \ 4699 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4700 am__fastdepCC_TRUE= 4701 am__fastdepCC_FALSE='#' 4702else 4703 am__fastdepCC_TRUE='#' 4704 am__fastdepCC_FALSE= 4705fi 4706 4707 4708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4709printf %s "checking for a sed that does not truncate output... " >&6; } 4710if test ${ac_cv_path_SED+y} 4711then : 4712 printf %s "(cached) " >&6 4713else $as_nop 4714 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4715 for ac_i in 1 2 3 4 5 6 7; do 4716 ac_script="$ac_script$as_nl$ac_script" 4717 done 4718 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4719 { ac_script=; unset ac_script;} 4720 if test -z "$SED"; then 4721 ac_path_SED_found=false 4722 # Loop through the user's path and test for each of PROGNAME-LIST 4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4724for as_dir in $PATH 4725do 4726 IFS=$as_save_IFS 4727 case $as_dir in #((( 4728 '') as_dir=./ ;; 4729 */) ;; 4730 *) as_dir=$as_dir/ ;; 4731 esac 4732 for ac_prog in sed gsed 4733 do 4734 for ac_exec_ext in '' $ac_executable_extensions; do 4735 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4736 as_fn_executable_p "$ac_path_SED" || continue 4737# Check for GNU ac_path_SED and select it if it is found. 4738 # Check for GNU $ac_path_SED 4739case `"$ac_path_SED" --version 2>&1` in 4740*GNU*) 4741 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4742*) 4743 ac_count=0 4744 printf %s 0123456789 >"conftest.in" 4745 while : 4746 do 4747 cat "conftest.in" "conftest.in" >"conftest.tmp" 4748 mv "conftest.tmp" "conftest.in" 4749 cp "conftest.in" "conftest.nl" 4750 printf "%s\n" '' >> "conftest.nl" 4751 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4752 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4753 as_fn_arith $ac_count + 1 && ac_count=$as_val 4754 if test $ac_count -gt ${ac_path_SED_max-0}; then 4755 # Best one so far, save it but keep looking for a better one 4756 ac_cv_path_SED="$ac_path_SED" 4757 ac_path_SED_max=$ac_count 4758 fi 4759 # 10*(2^10) chars as input seems more than enough 4760 test $ac_count -gt 10 && break 4761 done 4762 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4763esac 4764 4765 $ac_path_SED_found && break 3 4766 done 4767 done 4768 done 4769IFS=$as_save_IFS 4770 if test -z "$ac_cv_path_SED"; then 4771 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4772 fi 4773else 4774 ac_cv_path_SED=$SED 4775fi 4776 4777fi 4778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4779printf "%s\n" "$ac_cv_path_SED" >&6; } 4780 SED="$ac_cv_path_SED" 4781 rm -f conftest.sed 4782 4783test -z "$SED" && SED=sed 4784Xsed="$SED -e 1s/^X//" 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4797printf %s "checking for grep that handles long lines and -e... " >&6; } 4798if test ${ac_cv_path_GREP+y} 4799then : 4800 printf %s "(cached) " >&6 4801else $as_nop 4802 if test -z "$GREP"; then 4803 ac_path_GREP_found=false 4804 # Loop through the user's path and test for each of PROGNAME-LIST 4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4806for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4807do 4808 IFS=$as_save_IFS 4809 case $as_dir in #((( 4810 '') as_dir=./ ;; 4811 */) ;; 4812 *) as_dir=$as_dir/ ;; 4813 esac 4814 for ac_prog in grep ggrep 4815 do 4816 for ac_exec_ext in '' $ac_executable_extensions; do 4817 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4818 as_fn_executable_p "$ac_path_GREP" || continue 4819# Check for GNU ac_path_GREP and select it if it is found. 4820 # Check for GNU $ac_path_GREP 4821case `"$ac_path_GREP" --version 2>&1` in 4822*GNU*) 4823 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4824*) 4825 ac_count=0 4826 printf %s 0123456789 >"conftest.in" 4827 while : 4828 do 4829 cat "conftest.in" "conftest.in" >"conftest.tmp" 4830 mv "conftest.tmp" "conftest.in" 4831 cp "conftest.in" "conftest.nl" 4832 printf "%s\n" 'GREP' >> "conftest.nl" 4833 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4835 as_fn_arith $ac_count + 1 && ac_count=$as_val 4836 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4837 # Best one so far, save it but keep looking for a better one 4838 ac_cv_path_GREP="$ac_path_GREP" 4839 ac_path_GREP_max=$ac_count 4840 fi 4841 # 10*(2^10) chars as input seems more than enough 4842 test $ac_count -gt 10 && break 4843 done 4844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4845esac 4846 4847 $ac_path_GREP_found && break 3 4848 done 4849 done 4850 done 4851IFS=$as_save_IFS 4852 if test -z "$ac_cv_path_GREP"; then 4853 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4854 fi 4855else 4856 ac_cv_path_GREP=$GREP 4857fi 4858 4859fi 4860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4861printf "%s\n" "$ac_cv_path_GREP" >&6; } 4862 GREP="$ac_cv_path_GREP" 4863 4864 4865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4866printf %s "checking for egrep... " >&6; } 4867if test ${ac_cv_path_EGREP+y} 4868then : 4869 printf %s "(cached) " >&6 4870else $as_nop 4871 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4872 then ac_cv_path_EGREP="$GREP -E" 4873 else 4874 if test -z "$EGREP"; then 4875 ac_path_EGREP_found=false 4876 # Loop through the user's path and test for each of PROGNAME-LIST 4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4878for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4879do 4880 IFS=$as_save_IFS 4881 case $as_dir in #((( 4882 '') as_dir=./ ;; 4883 */) ;; 4884 *) as_dir=$as_dir/ ;; 4885 esac 4886 for ac_prog in egrep 4887 do 4888 for ac_exec_ext in '' $ac_executable_extensions; do 4889 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4890 as_fn_executable_p "$ac_path_EGREP" || continue 4891# Check for GNU ac_path_EGREP and select it if it is found. 4892 # Check for GNU $ac_path_EGREP 4893case `"$ac_path_EGREP" --version 2>&1` in 4894*GNU*) 4895 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4896*) 4897 ac_count=0 4898 printf %s 0123456789 >"conftest.in" 4899 while : 4900 do 4901 cat "conftest.in" "conftest.in" >"conftest.tmp" 4902 mv "conftest.tmp" "conftest.in" 4903 cp "conftest.in" "conftest.nl" 4904 printf "%s\n" 'EGREP' >> "conftest.nl" 4905 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4907 as_fn_arith $ac_count + 1 && ac_count=$as_val 4908 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4909 # Best one so far, save it but keep looking for a better one 4910 ac_cv_path_EGREP="$ac_path_EGREP" 4911 ac_path_EGREP_max=$ac_count 4912 fi 4913 # 10*(2^10) chars as input seems more than enough 4914 test $ac_count -gt 10 && break 4915 done 4916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4917esac 4918 4919 $ac_path_EGREP_found && break 3 4920 done 4921 done 4922 done 4923IFS=$as_save_IFS 4924 if test -z "$ac_cv_path_EGREP"; then 4925 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4926 fi 4927else 4928 ac_cv_path_EGREP=$EGREP 4929fi 4930 4931 fi 4932fi 4933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4934printf "%s\n" "$ac_cv_path_EGREP" >&6; } 4935 EGREP="$ac_cv_path_EGREP" 4936 4937 4938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4939printf %s "checking for fgrep... " >&6; } 4940if test ${ac_cv_path_FGREP+y} 4941then : 4942 printf %s "(cached) " >&6 4943else $as_nop 4944 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4945 then ac_cv_path_FGREP="$GREP -F" 4946 else 4947 if test -z "$FGREP"; then 4948 ac_path_FGREP_found=false 4949 # Loop through the user's path and test for each of PROGNAME-LIST 4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4951for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4952do 4953 IFS=$as_save_IFS 4954 case $as_dir in #((( 4955 '') as_dir=./ ;; 4956 */) ;; 4957 *) as_dir=$as_dir/ ;; 4958 esac 4959 for ac_prog in fgrep 4960 do 4961 for ac_exec_ext in '' $ac_executable_extensions; do 4962 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 4963 as_fn_executable_p "$ac_path_FGREP" || continue 4964# Check for GNU ac_path_FGREP and select it if it is found. 4965 # Check for GNU $ac_path_FGREP 4966case `"$ac_path_FGREP" --version 2>&1` in 4967*GNU*) 4968 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4969*) 4970 ac_count=0 4971 printf %s 0123456789 >"conftest.in" 4972 while : 4973 do 4974 cat "conftest.in" "conftest.in" >"conftest.tmp" 4975 mv "conftest.tmp" "conftest.in" 4976 cp "conftest.in" "conftest.nl" 4977 printf "%s\n" 'FGREP' >> "conftest.nl" 4978 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4980 as_fn_arith $ac_count + 1 && ac_count=$as_val 4981 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4982 # Best one so far, save it but keep looking for a better one 4983 ac_cv_path_FGREP="$ac_path_FGREP" 4984 ac_path_FGREP_max=$ac_count 4985 fi 4986 # 10*(2^10) chars as input seems more than enough 4987 test $ac_count -gt 10 && break 4988 done 4989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4990esac 4991 4992 $ac_path_FGREP_found && break 3 4993 done 4994 done 4995 done 4996IFS=$as_save_IFS 4997 if test -z "$ac_cv_path_FGREP"; then 4998 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4999 fi 5000else 5001 ac_cv_path_FGREP=$FGREP 5002fi 5003 5004 fi 5005fi 5006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5007printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5008 FGREP="$ac_cv_path_FGREP" 5009 5010 5011test -z "$GREP" && GREP=grep 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031# Check whether --with-gnu-ld was given. 5032if test ${with_gnu_ld+y} 5033then : 5034 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5035else $as_nop 5036 with_gnu_ld=no 5037fi 5038 5039ac_prog=ld 5040if test yes = "$GCC"; then 5041 # Check if gcc -print-prog-name=ld gives a path. 5042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5043printf %s "checking for ld used by $CC... " >&6; } 5044 case $host in 5045 *-*-mingw*) 5046 # gcc leaves a trailing carriage return, which upsets mingw 5047 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5048 *) 5049 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5050 esac 5051 case $ac_prog in 5052 # Accept absolute paths. 5053 [\\/]* | ?:[\\/]*) 5054 re_direlt='/[^/][^/]*/\.\./' 5055 # Canonicalize the pathname of ld 5056 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5057 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5058 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5059 done 5060 test -z "$LD" && LD=$ac_prog 5061 ;; 5062 "") 5063 # If it fails, then pretend we aren't using GCC. 5064 ac_prog=ld 5065 ;; 5066 *) 5067 # If it is relative, then search for the first ld in PATH. 5068 with_gnu_ld=unknown 5069 ;; 5070 esac 5071elif test yes = "$with_gnu_ld"; then 5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5073printf %s "checking for GNU ld... " >&6; } 5074else 5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5076printf %s "checking for non-GNU ld... " >&6; } 5077fi 5078if test ${lt_cv_path_LD+y} 5079then : 5080 printf %s "(cached) " >&6 5081else $as_nop 5082 if test -z "$LD"; then 5083 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5084 for ac_dir in $PATH; do 5085 IFS=$lt_save_ifs 5086 test -z "$ac_dir" && ac_dir=. 5087 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5088 lt_cv_path_LD=$ac_dir/$ac_prog 5089 # Check to see if the program is GNU ld. I'd rather use --version, 5090 # but apparently some variants of GNU ld only accept -v. 5091 # Break only if it was the GNU/non-GNU ld that we prefer. 5092 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5093 *GNU* | *'with BFD'*) 5094 test no != "$with_gnu_ld" && break 5095 ;; 5096 *) 5097 test yes != "$with_gnu_ld" && break 5098 ;; 5099 esac 5100 fi 5101 done 5102 IFS=$lt_save_ifs 5103else 5104 lt_cv_path_LD=$LD # Let the user override the test with a path. 5105fi 5106fi 5107 5108LD=$lt_cv_path_LD 5109if test -n "$LD"; then 5110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5111printf "%s\n" "$LD" >&6; } 5112else 5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5114printf "%s\n" "no" >&6; } 5115fi 5116test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5118printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5119if test ${lt_cv_prog_gnu_ld+y} 5120then : 5121 printf %s "(cached) " >&6 5122else $as_nop 5123 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5124case `$LD -v 2>&1 </dev/null` in 5125*GNU* | *'with BFD'*) 5126 lt_cv_prog_gnu_ld=yes 5127 ;; 5128*) 5129 lt_cv_prog_gnu_ld=no 5130 ;; 5131esac 5132fi 5133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5134printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5135with_gnu_ld=$lt_cv_prog_gnu_ld 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5146printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5147if test ${lt_cv_path_NM+y} 5148then : 5149 printf %s "(cached) " >&6 5150else $as_nop 5151 if test -n "$NM"; then 5152 # Let the user override the test. 5153 lt_cv_path_NM=$NM 5154else 5155 lt_nm_to_check=${ac_tool_prefix}nm 5156 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5157 lt_nm_to_check="$lt_nm_to_check nm" 5158 fi 5159 for lt_tmp_nm in $lt_nm_to_check; do 5160 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5161 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5162 IFS=$lt_save_ifs 5163 test -z "$ac_dir" && ac_dir=. 5164 tmp_nm=$ac_dir/$lt_tmp_nm 5165 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5166 # Check to see if the nm accepts a BSD-compat flag. 5167 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5168 # nm: unknown option "B" ignored 5169 # Tru64's nm complains that /dev/null is an invalid object file 5170 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5171 case $build_os in 5172 mingw*) lt_bad_file=conftest.nm/nofile ;; 5173 *) lt_bad_file=/dev/null ;; 5174 esac 5175 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5176 *$lt_bad_file* | *'Invalid file or object type'*) 5177 lt_cv_path_NM="$tmp_nm -B" 5178 break 2 5179 ;; 5180 *) 5181 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5182 */dev/null*) 5183 lt_cv_path_NM="$tmp_nm -p" 5184 break 2 5185 ;; 5186 *) 5187 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5188 continue # so that we can try to find one that supports BSD flags 5189 ;; 5190 esac 5191 ;; 5192 esac 5193 fi 5194 done 5195 IFS=$lt_save_ifs 5196 done 5197 : ${lt_cv_path_NM=no} 5198fi 5199fi 5200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5201printf "%s\n" "$lt_cv_path_NM" >&6; } 5202if test no != "$lt_cv_path_NM"; then 5203 NM=$lt_cv_path_NM 5204else 5205 # Didn't find any BSD compatible name lister, look for dumpbin. 5206 if test -n "$DUMPBIN"; then : 5207 # Let the user override the test. 5208 else 5209 if test -n "$ac_tool_prefix"; then 5210 for ac_prog in dumpbin "link -dump" 5211 do 5212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5213set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5215printf %s "checking for $ac_word... " >&6; } 5216if test ${ac_cv_prog_DUMPBIN+y} 5217then : 5218 printf %s "(cached) " >&6 5219else $as_nop 5220 if test -n "$DUMPBIN"; then 5221 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5222else 5223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5224for as_dir in $PATH 5225do 5226 IFS=$as_save_IFS 5227 case $as_dir in #((( 5228 '') as_dir=./ ;; 5229 */) ;; 5230 *) as_dir=$as_dir/ ;; 5231 esac 5232 for ac_exec_ext in '' $ac_executable_extensions; do 5233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5234 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5236 break 2 5237 fi 5238done 5239 done 5240IFS=$as_save_IFS 5241 5242fi 5243fi 5244DUMPBIN=$ac_cv_prog_DUMPBIN 5245if test -n "$DUMPBIN"; then 5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5247printf "%s\n" "$DUMPBIN" >&6; } 5248else 5249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5250printf "%s\n" "no" >&6; } 5251fi 5252 5253 5254 test -n "$DUMPBIN" && break 5255 done 5256fi 5257if test -z "$DUMPBIN"; then 5258 ac_ct_DUMPBIN=$DUMPBIN 5259 for ac_prog in dumpbin "link -dump" 5260do 5261 # Extract the first word of "$ac_prog", so it can be a program name with args. 5262set dummy $ac_prog; ac_word=$2 5263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5264printf %s "checking for $ac_word... " >&6; } 5265if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5266then : 5267 printf %s "(cached) " >&6 5268else $as_nop 5269 if test -n "$ac_ct_DUMPBIN"; then 5270 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5271else 5272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5273for as_dir in $PATH 5274do 5275 IFS=$as_save_IFS 5276 case $as_dir in #((( 5277 '') as_dir=./ ;; 5278 */) ;; 5279 *) as_dir=$as_dir/ ;; 5280 esac 5281 for ac_exec_ext in '' $ac_executable_extensions; do 5282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5283 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5285 break 2 5286 fi 5287done 5288 done 5289IFS=$as_save_IFS 5290 5291fi 5292fi 5293ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5294if test -n "$ac_ct_DUMPBIN"; then 5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5296printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5297else 5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5299printf "%s\n" "no" >&6; } 5300fi 5301 5302 5303 test -n "$ac_ct_DUMPBIN" && break 5304done 5305 5306 if test "x$ac_ct_DUMPBIN" = x; then 5307 DUMPBIN=":" 5308 else 5309 case $cross_compiling:$ac_tool_warned in 5310yes:) 5311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5312printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5313ac_tool_warned=yes ;; 5314esac 5315 DUMPBIN=$ac_ct_DUMPBIN 5316 fi 5317fi 5318 5319 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5320 *COFF*) 5321 DUMPBIN="$DUMPBIN -symbols -headers" 5322 ;; 5323 *) 5324 DUMPBIN=: 5325 ;; 5326 esac 5327 fi 5328 5329 if test : != "$DUMPBIN"; then 5330 NM=$DUMPBIN 5331 fi 5332fi 5333test -z "$NM" && NM=nm 5334 5335 5336 5337 5338 5339 5340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5341printf %s "checking the name lister ($NM) interface... " >&6; } 5342if test ${lt_cv_nm_interface+y} 5343then : 5344 printf %s "(cached) " >&6 5345else $as_nop 5346 lt_cv_nm_interface="BSD nm" 5347 echo "int some_variable = 0;" > conftest.$ac_ext 5348 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5349 (eval "$ac_compile" 2>conftest.err) 5350 cat conftest.err >&5 5351 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5352 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5353 cat conftest.err >&5 5354 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5355 cat conftest.out >&5 5356 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5357 lt_cv_nm_interface="MS dumpbin" 5358 fi 5359 rm -f conftest* 5360fi 5361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5362printf "%s\n" "$lt_cv_nm_interface" >&6; } 5363 5364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5365printf %s "checking whether ln -s works... " >&6; } 5366LN_S=$as_ln_s 5367if test "$LN_S" = "ln -s"; then 5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5369printf "%s\n" "yes" >&6; } 5370else 5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5372printf "%s\n" "no, using $LN_S" >&6; } 5373fi 5374 5375# find the maximum length of command line arguments 5376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5377printf %s "checking the maximum length of command line arguments... " >&6; } 5378if test ${lt_cv_sys_max_cmd_len+y} 5379then : 5380 printf %s "(cached) " >&6 5381else $as_nop 5382 i=0 5383 teststring=ABCD 5384 5385 case $build_os in 5386 msdosdjgpp*) 5387 # On DJGPP, this test can blow up pretty badly due to problems in libc 5388 # (any single argument exceeding 2000 bytes causes a buffer overrun 5389 # during glob expansion). Even if it were fixed, the result of this 5390 # check would be larger than it should be. 5391 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5392 ;; 5393 5394 gnu*) 5395 # Under GNU Hurd, this test is not required because there is 5396 # no limit to the length of command line arguments. 5397 # Libtool will interpret -1 as no limit whatsoever 5398 lt_cv_sys_max_cmd_len=-1; 5399 ;; 5400 5401 cygwin* | mingw* | cegcc*) 5402 # On Win9x/ME, this test blows up -- it succeeds, but takes 5403 # about 5 minutes as the teststring grows exponentially. 5404 # Worse, since 9x/ME are not pre-emptively multitasking, 5405 # you end up with a "frozen" computer, even though with patience 5406 # the test eventually succeeds (with a max line length of 256k). 5407 # Instead, let's just punt: use the minimum linelength reported by 5408 # all of the supported platforms: 8192 (on NT/2K/XP). 5409 lt_cv_sys_max_cmd_len=8192; 5410 ;; 5411 5412 mint*) 5413 # On MiNT this can take a long time and run out of memory. 5414 lt_cv_sys_max_cmd_len=8192; 5415 ;; 5416 5417 mint*) 5418 # On MiNT this can take a long time and run out of memory. 5419 lt_cv_sys_max_cmd_len=8192; 5420 ;; 5421 5422 amigaos*) 5423 # On AmigaOS with pdksh, this test takes hours, literally. 5424 # So we just punt and use a minimum line length of 8192. 5425 lt_cv_sys_max_cmd_len=8192; 5426 ;; 5427 5428 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5429 # This has been around since 386BSD, at least. Likely further. 5430 if test -x /sbin/sysctl; then 5431 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5432 elif test -x /usr/sbin/sysctl; then 5433 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5434 else 5435 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5436 fi 5437 # And add a safety zone 5438 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5439 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5440 ;; 5441 5442 interix*) 5443 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5444 lt_cv_sys_max_cmd_len=196608 5445 ;; 5446 5447 os2*) 5448 # The test takes a long time on OS/2. 5449 lt_cv_sys_max_cmd_len=8192 5450 ;; 5451 5452 osf*) 5453 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5454 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5455 # nice to cause kernel panics so lets avoid the loop below. 5456 # First set a reasonable default. 5457 lt_cv_sys_max_cmd_len=16384 5458 # 5459 if test -x /sbin/sysconfig; then 5460 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5461 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5462 esac 5463 fi 5464 ;; 5465 sco3.2v5*) 5466 lt_cv_sys_max_cmd_len=102400 5467 ;; 5468 sysv5* | sco5v6* | sysv4.2uw2*) 5469 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5470 if test -n "$kargmax"; then 5471 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5472 else 5473 lt_cv_sys_max_cmd_len=32768 5474 fi 5475 ;; 5476 *) 5477 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5478 if test -n "$lt_cv_sys_max_cmd_len" && \ 5479 test undefined != "$lt_cv_sys_max_cmd_len"; then 5480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5482 else 5483 # Make teststring a little bigger before we do anything with it. 5484 # a 1K string should be a reasonable start. 5485 for i in 1 2 3 4 5 6 7 8; do 5486 teststring=$teststring$teststring 5487 done 5488 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5489 # If test is not a shell built-in, we'll probably end up computing a 5490 # maximum length that is only half of the actual maximum length, but 5491 # we can't tell. 5492 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5493 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5494 test 17 != "$i" # 1/2 MB should be enough 5495 do 5496 i=`expr $i + 1` 5497 teststring=$teststring$teststring 5498 done 5499 # Only check the string length outside the loop. 5500 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5501 teststring= 5502 # Add a significant safety factor because C++ compilers can tack on 5503 # massive amounts of additional arguments before passing them to the 5504 # linker. It appears as though 1/2 is a usable value. 5505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5506 fi 5507 ;; 5508 esac 5509 5510fi 5511 5512if test -n "$lt_cv_sys_max_cmd_len"; then 5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5514printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5515else 5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5517printf "%s\n" "none" >&6; } 5518fi 5519max_cmd_len=$lt_cv_sys_max_cmd_len 5520 5521 5522 5523 5524 5525 5526: ${CP="cp -f"} 5527: ${MV="mv -f"} 5528: ${RM="rm -f"} 5529 5530if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5531 lt_unset=unset 5532else 5533 lt_unset=false 5534fi 5535 5536 5537 5538 5539 5540# test EBCDIC or ASCII 5541case `echo X|tr X '\101'` in 5542 A) # ASCII based system 5543 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5544 lt_SP2NL='tr \040 \012' 5545 lt_NL2SP='tr \015\012 \040\040' 5546 ;; 5547 *) # EBCDIC based system 5548 lt_SP2NL='tr \100 \n' 5549 lt_NL2SP='tr \r\n \100\100' 5550 ;; 5551esac 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5562printf %s "checking how to convert $build file names to $host format... " >&6; } 5563if test ${lt_cv_to_host_file_cmd+y} 5564then : 5565 printf %s "(cached) " >&6 5566else $as_nop 5567 case $host in 5568 *-*-mingw* ) 5569 case $build in 5570 *-*-mingw* ) # actually msys 5571 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5572 ;; 5573 *-*-cygwin* ) 5574 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5575 ;; 5576 * ) # otherwise, assume *nix 5577 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5578 ;; 5579 esac 5580 ;; 5581 *-*-cygwin* ) 5582 case $build in 5583 *-*-mingw* ) # actually msys 5584 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5585 ;; 5586 *-*-cygwin* ) 5587 lt_cv_to_host_file_cmd=func_convert_file_noop 5588 ;; 5589 * ) # otherwise, assume *nix 5590 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5591 ;; 5592 esac 5593 ;; 5594 * ) # unhandled hosts (and "normal" native builds) 5595 lt_cv_to_host_file_cmd=func_convert_file_noop 5596 ;; 5597esac 5598 5599fi 5600 5601to_host_file_cmd=$lt_cv_to_host_file_cmd 5602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5603printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5604 5605 5606 5607 5608 5609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5610printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5611if test ${lt_cv_to_tool_file_cmd+y} 5612then : 5613 printf %s "(cached) " >&6 5614else $as_nop 5615 #assume ordinary cross tools, or native build. 5616lt_cv_to_tool_file_cmd=func_convert_file_noop 5617case $host in 5618 *-*-mingw* ) 5619 case $build in 5620 *-*-mingw* ) # actually msys 5621 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5622 ;; 5623 esac 5624 ;; 5625esac 5626 5627fi 5628 5629to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5631printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5632 5633 5634 5635 5636 5637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5638printf %s "checking for $LD option to reload object files... " >&6; } 5639if test ${lt_cv_ld_reload_flag+y} 5640then : 5641 printf %s "(cached) " >&6 5642else $as_nop 5643 lt_cv_ld_reload_flag='-r' 5644fi 5645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5646printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5647reload_flag=$lt_cv_ld_reload_flag 5648case $reload_flag in 5649"" | " "*) ;; 5650*) reload_flag=" $reload_flag" ;; 5651esac 5652reload_cmds='$LD$reload_flag -o $output$reload_objs' 5653case $host_os in 5654 cygwin* | mingw* | pw32* | cegcc*) 5655 if test yes != "$GCC"; then 5656 reload_cmds=false 5657 fi 5658 ;; 5659 darwin*) 5660 if test yes = "$GCC"; then 5661 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5662 else 5663 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5664 fi 5665 ;; 5666esac 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676if test -n "$ac_tool_prefix"; then 5677 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5678set dummy ${ac_tool_prefix}objdump; ac_word=$2 5679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5680printf %s "checking for $ac_word... " >&6; } 5681if test ${ac_cv_prog_OBJDUMP+y} 5682then : 5683 printf %s "(cached) " >&6 5684else $as_nop 5685 if test -n "$OBJDUMP"; then 5686 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5687else 5688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5689for as_dir in $PATH 5690do 5691 IFS=$as_save_IFS 5692 case $as_dir in #((( 5693 '') as_dir=./ ;; 5694 */) ;; 5695 *) as_dir=$as_dir/ ;; 5696 esac 5697 for ac_exec_ext in '' $ac_executable_extensions; do 5698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5699 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5701 break 2 5702 fi 5703done 5704 done 5705IFS=$as_save_IFS 5706 5707fi 5708fi 5709OBJDUMP=$ac_cv_prog_OBJDUMP 5710if test -n "$OBJDUMP"; then 5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5712printf "%s\n" "$OBJDUMP" >&6; } 5713else 5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5715printf "%s\n" "no" >&6; } 5716fi 5717 5718 5719fi 5720if test -z "$ac_cv_prog_OBJDUMP"; then 5721 ac_ct_OBJDUMP=$OBJDUMP 5722 # Extract the first word of "objdump", so it can be a program name with args. 5723set dummy objdump; ac_word=$2 5724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5725printf %s "checking for $ac_word... " >&6; } 5726if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5727then : 5728 printf %s "(cached) " >&6 5729else $as_nop 5730 if test -n "$ac_ct_OBJDUMP"; then 5731 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5732else 5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5734for as_dir in $PATH 5735do 5736 IFS=$as_save_IFS 5737 case $as_dir in #((( 5738 '') as_dir=./ ;; 5739 */) ;; 5740 *) as_dir=$as_dir/ ;; 5741 esac 5742 for ac_exec_ext in '' $ac_executable_extensions; do 5743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5744 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5746 break 2 5747 fi 5748done 5749 done 5750IFS=$as_save_IFS 5751 5752fi 5753fi 5754ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5755if test -n "$ac_ct_OBJDUMP"; then 5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5757printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5758else 5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5760printf "%s\n" "no" >&6; } 5761fi 5762 5763 if test "x$ac_ct_OBJDUMP" = x; then 5764 OBJDUMP="false" 5765 else 5766 case $cross_compiling:$ac_tool_warned in 5767yes:) 5768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5769printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5770ac_tool_warned=yes ;; 5771esac 5772 OBJDUMP=$ac_ct_OBJDUMP 5773 fi 5774else 5775 OBJDUMP="$ac_cv_prog_OBJDUMP" 5776fi 5777 5778test -z "$OBJDUMP" && OBJDUMP=objdump 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5789printf %s "checking how to recognize dependent libraries... " >&6; } 5790if test ${lt_cv_deplibs_check_method+y} 5791then : 5792 printf %s "(cached) " >&6 5793else $as_nop 5794 lt_cv_file_magic_cmd='$MAGIC_CMD' 5795lt_cv_file_magic_test_file= 5796lt_cv_deplibs_check_method='unknown' 5797# Need to set the preceding variable on all platforms that support 5798# interlibrary dependencies. 5799# 'none' -- dependencies not supported. 5800# 'unknown' -- same as none, but documents that we really don't know. 5801# 'pass_all' -- all dependencies passed with no checks. 5802# 'test_compile' -- check by making test program. 5803# 'file_magic [[regex]]' -- check by looking for files in library path 5804# that responds to the $file_magic_cmd with a given extended regex. 5805# If you have 'file' or equivalent on your system and you're not sure 5806# whether 'pass_all' will *always* work, you probably want this one. 5807 5808case $host_os in 5809aix[4-9]*) 5810 lt_cv_deplibs_check_method=pass_all 5811 ;; 5812 5813beos*) 5814 lt_cv_deplibs_check_method=pass_all 5815 ;; 5816 5817bsdi[45]*) 5818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5819 lt_cv_file_magic_cmd='/usr/bin/file -L' 5820 lt_cv_file_magic_test_file=/shlib/libc.so 5821 ;; 5822 5823cygwin*) 5824 # func_win32_libid is a shell function defined in ltmain.sh 5825 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5826 lt_cv_file_magic_cmd='func_win32_libid' 5827 ;; 5828 5829mingw* | pw32*) 5830 # Base MSYS/MinGW do not provide the 'file' command needed by 5831 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5832 # unless we find 'file', for example because we are cross-compiling. 5833 if ( file / ) >/dev/null 2>&1; then 5834 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5835 lt_cv_file_magic_cmd='func_win32_libid' 5836 else 5837 # Keep this pattern in sync with the one in func_win32_libid. 5838 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5839 lt_cv_file_magic_cmd='$OBJDUMP -f' 5840 fi 5841 ;; 5842 5843cegcc*) 5844 # use the weaker test based on 'objdump'. See mingw*. 5845 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5846 lt_cv_file_magic_cmd='$OBJDUMP -f' 5847 ;; 5848 5849darwin* | rhapsody*) 5850 lt_cv_deplibs_check_method=pass_all 5851 ;; 5852 5853freebsd* | dragonfly*) 5854 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5855 case $host_cpu in 5856 i*86 ) 5857 # Not sure whether the presence of OpenBSD here was a mistake. 5858 # Let's accept both of them until this is cleared up. 5859 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5860 lt_cv_file_magic_cmd=/usr/bin/file 5861 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5862 ;; 5863 esac 5864 else 5865 lt_cv_deplibs_check_method=pass_all 5866 fi 5867 ;; 5868 5869haiku*) 5870 lt_cv_deplibs_check_method=pass_all 5871 ;; 5872 5873hpux10.20* | hpux11*) 5874 lt_cv_file_magic_cmd=/usr/bin/file 5875 case $host_cpu in 5876 ia64*) 5877 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5878 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5879 ;; 5880 hppa*64*) 5881 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]' 5882 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5883 ;; 5884 *) 5885 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5886 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5887 ;; 5888 esac 5889 ;; 5890 5891interix[3-9]*) 5892 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5893 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5894 ;; 5895 5896irix5* | irix6* | nonstopux*) 5897 case $LD in 5898 *-32|*"-32 ") libmagic=32-bit;; 5899 *-n32|*"-n32 ") libmagic=N32;; 5900 *-64|*"-64 ") libmagic=64-bit;; 5901 *) libmagic=never-match;; 5902 esac 5903 lt_cv_deplibs_check_method=pass_all 5904 ;; 5905 5906# This must be glibc/ELF. 5907linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5908 lt_cv_deplibs_check_method=pass_all 5909 ;; 5910 5911netbsd*) 5912 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5913 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5914 else 5915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5916 fi 5917 ;; 5918 5919newos6*) 5920 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5921 lt_cv_file_magic_cmd=/usr/bin/file 5922 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5923 ;; 5924 5925*nto* | *qnx*) 5926 lt_cv_deplibs_check_method=pass_all 5927 ;; 5928 5929openbsd* | bitrig*) 5930 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5932 else 5933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5934 fi 5935 ;; 5936 5937osf3* | osf4* | osf5*) 5938 lt_cv_deplibs_check_method=pass_all 5939 ;; 5940 5941rdos*) 5942 lt_cv_deplibs_check_method=pass_all 5943 ;; 5944 5945solaris*) 5946 lt_cv_deplibs_check_method=pass_all 5947 ;; 5948 5949sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5950 lt_cv_deplibs_check_method=pass_all 5951 ;; 5952 5953sysv4 | sysv4.3*) 5954 case $host_vendor in 5955 motorola) 5956 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]' 5957 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5958 ;; 5959 ncr) 5960 lt_cv_deplibs_check_method=pass_all 5961 ;; 5962 sequent) 5963 lt_cv_file_magic_cmd='/bin/file' 5964 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5965 ;; 5966 sni) 5967 lt_cv_file_magic_cmd='/bin/file' 5968 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5969 lt_cv_file_magic_test_file=/lib/libc.so 5970 ;; 5971 siemens) 5972 lt_cv_deplibs_check_method=pass_all 5973 ;; 5974 pc) 5975 lt_cv_deplibs_check_method=pass_all 5976 ;; 5977 esac 5978 ;; 5979 5980tpf*) 5981 lt_cv_deplibs_check_method=pass_all 5982 ;; 5983os2*) 5984 lt_cv_deplibs_check_method=pass_all 5985 ;; 5986esac 5987 5988fi 5989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5990printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 5991 5992file_magic_glob= 5993want_nocaseglob=no 5994if test "$build" = "$host"; then 5995 case $host_os in 5996 mingw* | pw32*) 5997 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5998 want_nocaseglob=yes 5999 else 6000 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6001 fi 6002 ;; 6003 esac 6004fi 6005 6006file_magic_cmd=$lt_cv_file_magic_cmd 6007deplibs_check_method=$lt_cv_deplibs_check_method 6008test -z "$deplibs_check_method" && deplibs_check_method=unknown 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031if test -n "$ac_tool_prefix"; then 6032 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6033set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6035printf %s "checking for $ac_word... " >&6; } 6036if test ${ac_cv_prog_DLLTOOL+y} 6037then : 6038 printf %s "(cached) " >&6 6039else $as_nop 6040 if test -n "$DLLTOOL"; then 6041 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6042else 6043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6044for as_dir in $PATH 6045do 6046 IFS=$as_save_IFS 6047 case $as_dir in #((( 6048 '') as_dir=./ ;; 6049 */) ;; 6050 *) as_dir=$as_dir/ ;; 6051 esac 6052 for ac_exec_ext in '' $ac_executable_extensions; do 6053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6054 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6056 break 2 6057 fi 6058done 6059 done 6060IFS=$as_save_IFS 6061 6062fi 6063fi 6064DLLTOOL=$ac_cv_prog_DLLTOOL 6065if test -n "$DLLTOOL"; then 6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6067printf "%s\n" "$DLLTOOL" >&6; } 6068else 6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6070printf "%s\n" "no" >&6; } 6071fi 6072 6073 6074fi 6075if test -z "$ac_cv_prog_DLLTOOL"; then 6076 ac_ct_DLLTOOL=$DLLTOOL 6077 # Extract the first word of "dlltool", so it can be a program name with args. 6078set dummy dlltool; ac_word=$2 6079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6080printf %s "checking for $ac_word... " >&6; } 6081if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6082then : 6083 printf %s "(cached) " >&6 6084else $as_nop 6085 if test -n "$ac_ct_DLLTOOL"; then 6086 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6087else 6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6089for as_dir in $PATH 6090do 6091 IFS=$as_save_IFS 6092 case $as_dir in #((( 6093 '') as_dir=./ ;; 6094 */) ;; 6095 *) as_dir=$as_dir/ ;; 6096 esac 6097 for ac_exec_ext in '' $ac_executable_extensions; do 6098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6099 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6101 break 2 6102 fi 6103done 6104 done 6105IFS=$as_save_IFS 6106 6107fi 6108fi 6109ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6110if test -n "$ac_ct_DLLTOOL"; then 6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6112printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6113else 6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6115printf "%s\n" "no" >&6; } 6116fi 6117 6118 if test "x$ac_ct_DLLTOOL" = x; then 6119 DLLTOOL="false" 6120 else 6121 case $cross_compiling:$ac_tool_warned in 6122yes:) 6123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6124printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6125ac_tool_warned=yes ;; 6126esac 6127 DLLTOOL=$ac_ct_DLLTOOL 6128 fi 6129else 6130 DLLTOOL="$ac_cv_prog_DLLTOOL" 6131fi 6132 6133test -z "$DLLTOOL" && DLLTOOL=dlltool 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6145printf %s "checking how to associate runtime and link libraries... " >&6; } 6146if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6147then : 6148 printf %s "(cached) " >&6 6149else $as_nop 6150 lt_cv_sharedlib_from_linklib_cmd='unknown' 6151 6152case $host_os in 6153cygwin* | mingw* | pw32* | cegcc*) 6154 # two different shell functions defined in ltmain.sh; 6155 # decide which one to use based on capabilities of $DLLTOOL 6156 case `$DLLTOOL --help 2>&1` in 6157 *--identify-strict*) 6158 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6159 ;; 6160 *) 6161 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6162 ;; 6163 esac 6164 ;; 6165*) 6166 # fallback: assume linklib IS sharedlib 6167 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6168 ;; 6169esac 6170 6171fi 6172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6173printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6174sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6175test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6176 6177 6178 6179 6180 6181 6182 6183 6184if test -n "$ac_tool_prefix"; then 6185 for ac_prog in ar 6186 do 6187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6188set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6190printf %s "checking for $ac_word... " >&6; } 6191if test ${ac_cv_prog_AR+y} 6192then : 6193 printf %s "(cached) " >&6 6194else $as_nop 6195 if test -n "$AR"; then 6196 ac_cv_prog_AR="$AR" # Let the user override the test. 6197else 6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6199for as_dir in $PATH 6200do 6201 IFS=$as_save_IFS 6202 case $as_dir in #((( 6203 '') as_dir=./ ;; 6204 */) ;; 6205 *) as_dir=$as_dir/ ;; 6206 esac 6207 for ac_exec_ext in '' $ac_executable_extensions; do 6208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6209 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6211 break 2 6212 fi 6213done 6214 done 6215IFS=$as_save_IFS 6216 6217fi 6218fi 6219AR=$ac_cv_prog_AR 6220if test -n "$AR"; then 6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6222printf "%s\n" "$AR" >&6; } 6223else 6224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6225printf "%s\n" "no" >&6; } 6226fi 6227 6228 6229 test -n "$AR" && break 6230 done 6231fi 6232if test -z "$AR"; then 6233 ac_ct_AR=$AR 6234 for ac_prog in ar 6235do 6236 # Extract the first word of "$ac_prog", so it can be a program name with args. 6237set dummy $ac_prog; ac_word=$2 6238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6239printf %s "checking for $ac_word... " >&6; } 6240if test ${ac_cv_prog_ac_ct_AR+y} 6241then : 6242 printf %s "(cached) " >&6 6243else $as_nop 6244 if test -n "$ac_ct_AR"; then 6245 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6246else 6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6248for as_dir in $PATH 6249do 6250 IFS=$as_save_IFS 6251 case $as_dir in #((( 6252 '') as_dir=./ ;; 6253 */) ;; 6254 *) as_dir=$as_dir/ ;; 6255 esac 6256 for ac_exec_ext in '' $ac_executable_extensions; do 6257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6258 ac_cv_prog_ac_ct_AR="$ac_prog" 6259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6260 break 2 6261 fi 6262done 6263 done 6264IFS=$as_save_IFS 6265 6266fi 6267fi 6268ac_ct_AR=$ac_cv_prog_ac_ct_AR 6269if test -n "$ac_ct_AR"; then 6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6271printf "%s\n" "$ac_ct_AR" >&6; } 6272else 6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6274printf "%s\n" "no" >&6; } 6275fi 6276 6277 6278 test -n "$ac_ct_AR" && break 6279done 6280 6281 if test "x$ac_ct_AR" = x; then 6282 AR="false" 6283 else 6284 case $cross_compiling:$ac_tool_warned in 6285yes:) 6286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6287printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6288ac_tool_warned=yes ;; 6289esac 6290 AR=$ac_ct_AR 6291 fi 6292fi 6293 6294: ${AR=ar} 6295: ${AR_FLAGS=cru} 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6308printf %s "checking for archiver @FILE support... " >&6; } 6309if test ${lt_cv_ar_at_file+y} 6310then : 6311 printf %s "(cached) " >&6 6312else $as_nop 6313 lt_cv_ar_at_file=no 6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6315/* end confdefs.h. */ 6316 6317int 6318main (void) 6319{ 6320 6321 ; 6322 return 0; 6323} 6324_ACEOF 6325if ac_fn_c_try_compile "$LINENO" 6326then : 6327 echo conftest.$ac_objext > conftest.lst 6328 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6330 (eval $lt_ar_try) 2>&5 6331 ac_status=$? 6332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6333 test $ac_status = 0; } 6334 if test 0 -eq "$ac_status"; then 6335 # Ensure the archiver fails upon bogus file names. 6336 rm -f conftest.$ac_objext libconftest.a 6337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6338 (eval $lt_ar_try) 2>&5 6339 ac_status=$? 6340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6341 test $ac_status = 0; } 6342 if test 0 -ne "$ac_status"; then 6343 lt_cv_ar_at_file=@ 6344 fi 6345 fi 6346 rm -f conftest.* libconftest.a 6347 6348fi 6349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6350 6351fi 6352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6353printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6354 6355if test no = "$lt_cv_ar_at_file"; then 6356 archiver_list_spec= 6357else 6358 archiver_list_spec=$lt_cv_ar_at_file 6359fi 6360 6361 6362 6363 6364 6365 6366 6367if test -n "$ac_tool_prefix"; then 6368 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6369set dummy ${ac_tool_prefix}strip; ac_word=$2 6370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6371printf %s "checking for $ac_word... " >&6; } 6372if test ${ac_cv_prog_STRIP+y} 6373then : 6374 printf %s "(cached) " >&6 6375else $as_nop 6376 if test -n "$STRIP"; then 6377 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6378else 6379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6380for as_dir in $PATH 6381do 6382 IFS=$as_save_IFS 6383 case $as_dir in #((( 6384 '') as_dir=./ ;; 6385 */) ;; 6386 *) as_dir=$as_dir/ ;; 6387 esac 6388 for ac_exec_ext in '' $ac_executable_extensions; do 6389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6390 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6392 break 2 6393 fi 6394done 6395 done 6396IFS=$as_save_IFS 6397 6398fi 6399fi 6400STRIP=$ac_cv_prog_STRIP 6401if test -n "$STRIP"; then 6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6403printf "%s\n" "$STRIP" >&6; } 6404else 6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6406printf "%s\n" "no" >&6; } 6407fi 6408 6409 6410fi 6411if test -z "$ac_cv_prog_STRIP"; then 6412 ac_ct_STRIP=$STRIP 6413 # Extract the first word of "strip", so it can be a program name with args. 6414set dummy strip; ac_word=$2 6415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6416printf %s "checking for $ac_word... " >&6; } 6417if test ${ac_cv_prog_ac_ct_STRIP+y} 6418then : 6419 printf %s "(cached) " >&6 6420else $as_nop 6421 if test -n "$ac_ct_STRIP"; then 6422 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6423else 6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6425for as_dir in $PATH 6426do 6427 IFS=$as_save_IFS 6428 case $as_dir in #((( 6429 '') as_dir=./ ;; 6430 */) ;; 6431 *) as_dir=$as_dir/ ;; 6432 esac 6433 for ac_exec_ext in '' $ac_executable_extensions; do 6434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6435 ac_cv_prog_ac_ct_STRIP="strip" 6436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6437 break 2 6438 fi 6439done 6440 done 6441IFS=$as_save_IFS 6442 6443fi 6444fi 6445ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6446if test -n "$ac_ct_STRIP"; then 6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6448printf "%s\n" "$ac_ct_STRIP" >&6; } 6449else 6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6451printf "%s\n" "no" >&6; } 6452fi 6453 6454 if test "x$ac_ct_STRIP" = x; then 6455 STRIP=":" 6456 else 6457 case $cross_compiling:$ac_tool_warned in 6458yes:) 6459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6460printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6461ac_tool_warned=yes ;; 6462esac 6463 STRIP=$ac_ct_STRIP 6464 fi 6465else 6466 STRIP="$ac_cv_prog_STRIP" 6467fi 6468 6469test -z "$STRIP" && STRIP=: 6470 6471 6472 6473 6474 6475 6476if test -n "$ac_tool_prefix"; then 6477 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6478set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6480printf %s "checking for $ac_word... " >&6; } 6481if test ${ac_cv_prog_RANLIB+y} 6482then : 6483 printf %s "(cached) " >&6 6484else $as_nop 6485 if test -n "$RANLIB"; then 6486 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6487else 6488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6489for as_dir in $PATH 6490do 6491 IFS=$as_save_IFS 6492 case $as_dir in #((( 6493 '') as_dir=./ ;; 6494 */) ;; 6495 *) as_dir=$as_dir/ ;; 6496 esac 6497 for ac_exec_ext in '' $ac_executable_extensions; do 6498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6499 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6501 break 2 6502 fi 6503done 6504 done 6505IFS=$as_save_IFS 6506 6507fi 6508fi 6509RANLIB=$ac_cv_prog_RANLIB 6510if test -n "$RANLIB"; then 6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6512printf "%s\n" "$RANLIB" >&6; } 6513else 6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6515printf "%s\n" "no" >&6; } 6516fi 6517 6518 6519fi 6520if test -z "$ac_cv_prog_RANLIB"; then 6521 ac_ct_RANLIB=$RANLIB 6522 # Extract the first word of "ranlib", so it can be a program name with args. 6523set dummy ranlib; ac_word=$2 6524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6525printf %s "checking for $ac_word... " >&6; } 6526if test ${ac_cv_prog_ac_ct_RANLIB+y} 6527then : 6528 printf %s "(cached) " >&6 6529else $as_nop 6530 if test -n "$ac_ct_RANLIB"; then 6531 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6532else 6533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6534for as_dir in $PATH 6535do 6536 IFS=$as_save_IFS 6537 case $as_dir in #((( 6538 '') as_dir=./ ;; 6539 */) ;; 6540 *) as_dir=$as_dir/ ;; 6541 esac 6542 for ac_exec_ext in '' $ac_executable_extensions; do 6543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6544 ac_cv_prog_ac_ct_RANLIB="ranlib" 6545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6546 break 2 6547 fi 6548done 6549 done 6550IFS=$as_save_IFS 6551 6552fi 6553fi 6554ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6555if test -n "$ac_ct_RANLIB"; then 6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6557printf "%s\n" "$ac_ct_RANLIB" >&6; } 6558else 6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6560printf "%s\n" "no" >&6; } 6561fi 6562 6563 if test "x$ac_ct_RANLIB" = x; then 6564 RANLIB=":" 6565 else 6566 case $cross_compiling:$ac_tool_warned in 6567yes:) 6568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6569printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6570ac_tool_warned=yes ;; 6571esac 6572 RANLIB=$ac_ct_RANLIB 6573 fi 6574else 6575 RANLIB="$ac_cv_prog_RANLIB" 6576fi 6577 6578test -z "$RANLIB" && RANLIB=: 6579 6580 6581 6582 6583 6584 6585# Determine commands to create old-style static archives. 6586old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6587old_postinstall_cmds='chmod 644 $oldlib' 6588old_postuninstall_cmds= 6589 6590if test -n "$RANLIB"; then 6591 case $host_os in 6592 bitrig* | openbsd*) 6593 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6594 ;; 6595 *) 6596 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6597 ;; 6598 esac 6599 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6600fi 6601 6602case $host_os in 6603 darwin*) 6604 lock_old_archive_extraction=yes ;; 6605 *) 6606 lock_old_archive_extraction=no ;; 6607esac 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647# If no C compiler was specified, use CC. 6648LTCC=${LTCC-"$CC"} 6649 6650# If no C compiler flags were specified, use CFLAGS. 6651LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6652 6653# Allow CC to be a program name with arguments. 6654compiler=$CC 6655 6656 6657# Check for command to grab the raw symbol name followed by C symbol from nm. 6658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6659printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6660if test ${lt_cv_sys_global_symbol_pipe+y} 6661then : 6662 printf %s "(cached) " >&6 6663else $as_nop 6664 6665# These are sane defaults that work on at least a few old systems. 6666# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6667 6668# Character class describing NM global symbol codes. 6669symcode='[BCDEGRST]' 6670 6671# Regexp to match symbols that can be accessed directly from C. 6672sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6673 6674# Define system-specific variables. 6675case $host_os in 6676aix*) 6677 symcode='[BCDT]' 6678 ;; 6679cygwin* | mingw* | pw32* | cegcc*) 6680 symcode='[ABCDGISTW]' 6681 ;; 6682hpux*) 6683 if test ia64 = "$host_cpu"; then 6684 symcode='[ABCDEGRST]' 6685 fi 6686 ;; 6687irix* | nonstopux*) 6688 symcode='[BCDEGRST]' 6689 ;; 6690osf*) 6691 symcode='[BCDEGQRST]' 6692 ;; 6693solaris*) 6694 symcode='[BDRT]' 6695 ;; 6696sco3.2v5*) 6697 symcode='[DT]' 6698 ;; 6699sysv4.2uw2*) 6700 symcode='[DT]' 6701 ;; 6702sysv5* | sco5v6* | unixware* | OpenUNIX*) 6703 symcode='[ABDT]' 6704 ;; 6705sysv4) 6706 symcode='[DFNSTU]' 6707 ;; 6708esac 6709 6710# If we're using GNU nm, then use its standard symbol codes. 6711case `$NM -V 2>&1` in 6712*GNU* | *'with BFD'*) 6713 symcode='[ABCDGIRSTW]' ;; 6714esac 6715 6716if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6717 # Gets list of data symbols to import. 6718 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6719 # Adjust the below global symbol transforms to fixup imported variables. 6720 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6721 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6722 lt_c_name_lib_hook="\ 6723 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6724 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6725else 6726 # Disable hooks by default. 6727 lt_cv_sys_global_symbol_to_import= 6728 lt_cdecl_hook= 6729 lt_c_name_hook= 6730 lt_c_name_lib_hook= 6731fi 6732 6733# Transform an extracted symbol line into a proper C declaration. 6734# Some systems (esp. on ia64) link data and code symbols differently, 6735# so use this general approach. 6736lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6737$lt_cdecl_hook\ 6738" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6739" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6740 6741# Transform an extracted symbol line into symbol name and symbol address 6742lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6743$lt_c_name_hook\ 6744" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6745" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6746 6747# Transform an extracted symbol line into symbol name with lib prefix and 6748# symbol address. 6749lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6750$lt_c_name_lib_hook\ 6751" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6752" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6753" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6754 6755# Handle CRLF in mingw tool chain 6756opt_cr= 6757case $build_os in 6758mingw*) 6759 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6760 ;; 6761esac 6762 6763# Try without a prefix underscore, then with it. 6764for ac_symprfx in "" "_"; do 6765 6766 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6767 symxfrm="\\1 $ac_symprfx\\2 \\2" 6768 6769 # Write the raw and C identifiers. 6770 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6771 # Fake it for dumpbin and say T for any non-static function, 6772 # D for any global variable and I for any imported variable. 6773 # Also find C++ and __fastcall symbols from MSVC++, 6774 # which start with @ or ?. 6775 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6776" {last_section=section; section=\$ 3};"\ 6777" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6778" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6779" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6780" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6781" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6782" \$ 0!~/External *\|/{next};"\ 6783" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6784" {if(hide[section]) next};"\ 6785" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6786" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6787" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6788" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6789" ' prfx=^$ac_symprfx" 6790 else 6791 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6792 fi 6793 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6794 6795 # Check to see that the pipe works correctly. 6796 pipe_works=no 6797 6798 rm -f conftest* 6799 cat > conftest.$ac_ext <<_LT_EOF 6800#ifdef __cplusplus 6801extern "C" { 6802#endif 6803char nm_test_var; 6804void nm_test_func(void); 6805void nm_test_func(void){} 6806#ifdef __cplusplus 6807} 6808#endif 6809int main(){nm_test_var='a';nm_test_func();return(0);} 6810_LT_EOF 6811 6812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6813 (eval $ac_compile) 2>&5 6814 ac_status=$? 6815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6816 test $ac_status = 0; }; then 6817 # Now try to grab the symbols. 6818 nlist=conftest.nm 6819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6820 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6821 ac_status=$? 6822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6823 test $ac_status = 0; } && test -s "$nlist"; then 6824 # Try sorting and uniquifying the output. 6825 if sort "$nlist" | uniq > "$nlist"T; then 6826 mv -f "$nlist"T "$nlist" 6827 else 6828 rm -f "$nlist"T 6829 fi 6830 6831 # Make sure that we snagged all the symbols we need. 6832 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6833 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6834 cat <<_LT_EOF > conftest.$ac_ext 6835/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6836#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6837/* DATA imports from DLLs on WIN32 can't be const, because runtime 6838 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6839# define LT_DLSYM_CONST 6840#elif defined __osf__ 6841/* This system does not cope well with relocations in const data. */ 6842# define LT_DLSYM_CONST 6843#else 6844# define LT_DLSYM_CONST const 6845#endif 6846 6847#ifdef __cplusplus 6848extern "C" { 6849#endif 6850 6851_LT_EOF 6852 # Now generate the symbol file. 6853 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6854 6855 cat <<_LT_EOF >> conftest.$ac_ext 6856 6857/* The mapping between symbol names and symbols. */ 6858LT_DLSYM_CONST struct { 6859 const char *name; 6860 void *address; 6861} 6862lt__PROGRAM__LTX_preloaded_symbols[] = 6863{ 6864 { "@PROGRAM@", (void *) 0 }, 6865_LT_EOF 6866 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6867 cat <<\_LT_EOF >> conftest.$ac_ext 6868 {0, (void *) 0} 6869}; 6870 6871/* This works around a problem in FreeBSD linker */ 6872#ifdef FREEBSD_WORKAROUND 6873static const void *lt_preloaded_setup() { 6874 return lt__PROGRAM__LTX_preloaded_symbols; 6875} 6876#endif 6877 6878#ifdef __cplusplus 6879} 6880#endif 6881_LT_EOF 6882 # Now try linking the two files. 6883 mv conftest.$ac_objext conftstm.$ac_objext 6884 lt_globsym_save_LIBS=$LIBS 6885 lt_globsym_save_CFLAGS=$CFLAGS 6886 LIBS=conftstm.$ac_objext 6887 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6889 (eval $ac_link) 2>&5 6890 ac_status=$? 6891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6892 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6893 pipe_works=yes 6894 fi 6895 LIBS=$lt_globsym_save_LIBS 6896 CFLAGS=$lt_globsym_save_CFLAGS 6897 else 6898 echo "cannot find nm_test_func in $nlist" >&5 6899 fi 6900 else 6901 echo "cannot find nm_test_var in $nlist" >&5 6902 fi 6903 else 6904 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6905 fi 6906 else 6907 echo "$progname: failed program was:" >&5 6908 cat conftest.$ac_ext >&5 6909 fi 6910 rm -rf conftest* conftst* 6911 6912 # Do not use the global_symbol_pipe unless it works. 6913 if test yes = "$pipe_works"; then 6914 break 6915 else 6916 lt_cv_sys_global_symbol_pipe= 6917 fi 6918done 6919 6920fi 6921 6922if test -z "$lt_cv_sys_global_symbol_pipe"; then 6923 lt_cv_sys_global_symbol_to_cdecl= 6924fi 6925if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6927printf "%s\n" "failed" >&6; } 6928else 6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6930printf "%s\n" "ok" >&6; } 6931fi 6932 6933# Response file support. 6934if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6935 nm_file_list_spec='@' 6936elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6937 nm_file_list_spec='@' 6938fi 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6977printf %s "checking for sysroot... " >&6; } 6978 6979# Check whether --with-sysroot was given. 6980if test ${with_sysroot+y} 6981then : 6982 withval=$with_sysroot; 6983else $as_nop 6984 with_sysroot=no 6985fi 6986 6987 6988lt_sysroot= 6989case $with_sysroot in #( 6990 yes) 6991 if test yes = "$GCC"; then 6992 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6993 fi 6994 ;; #( 6995 /*) 6996 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6997 ;; #( 6998 no|'') 6999 ;; #( 7000 *) 7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7002printf "%s\n" "$with_sysroot" >&6; } 7003 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7004 ;; 7005esac 7006 7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7008printf "%s\n" "${lt_sysroot:-no}" >&6; } 7009 7010 7011 7012 7013 7014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7015printf %s "checking for a working dd... " >&6; } 7016if test ${ac_cv_path_lt_DD+y} 7017then : 7018 printf %s "(cached) " >&6 7019else $as_nop 7020 printf 0123456789abcdef0123456789abcdef >conftest.i 7021cat conftest.i conftest.i >conftest2.i 7022: ${lt_DD:=$DD} 7023if test -z "$lt_DD"; then 7024 ac_path_lt_DD_found=false 7025 # Loop through the user's path and test for each of PROGNAME-LIST 7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7027for as_dir in $PATH 7028do 7029 IFS=$as_save_IFS 7030 case $as_dir in #((( 7031 '') as_dir=./ ;; 7032 */) ;; 7033 *) as_dir=$as_dir/ ;; 7034 esac 7035 for ac_prog in dd 7036 do 7037 for ac_exec_ext in '' $ac_executable_extensions; do 7038 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7039 as_fn_executable_p "$ac_path_lt_DD" || continue 7040if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7041 cmp -s conftest.i conftest.out \ 7042 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7043fi 7044 $ac_path_lt_DD_found && break 3 7045 done 7046 done 7047 done 7048IFS=$as_save_IFS 7049 if test -z "$ac_cv_path_lt_DD"; then 7050 : 7051 fi 7052else 7053 ac_cv_path_lt_DD=$lt_DD 7054fi 7055 7056rm -f conftest.i conftest2.i conftest.out 7057fi 7058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7059printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7060 7061 7062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7063printf %s "checking how to truncate binary pipes... " >&6; } 7064if test ${lt_cv_truncate_bin+y} 7065then : 7066 printf %s "(cached) " >&6 7067else $as_nop 7068 printf 0123456789abcdef0123456789abcdef >conftest.i 7069cat conftest.i conftest.i >conftest2.i 7070lt_cv_truncate_bin= 7071if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7072 cmp -s conftest.i conftest.out \ 7073 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7074fi 7075rm -f conftest.i conftest2.i conftest.out 7076test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7077fi 7078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7079printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7080 7081 7082 7083 7084 7085 7086 7087# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7088func_cc_basename () 7089{ 7090 for cc_temp in $*""; do 7091 case $cc_temp in 7092 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7093 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7094 \-*) ;; 7095 *) break;; 7096 esac 7097 done 7098 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7099} 7100 7101# Check whether --enable-libtool-lock was given. 7102if test ${enable_libtool_lock+y} 7103then : 7104 enableval=$enable_libtool_lock; 7105fi 7106 7107test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7108 7109# Some flags need to be propagated to the compiler or linker for good 7110# libtool support. 7111case $host in 7112ia64-*-hpux*) 7113 # Find out what ABI is being produced by ac_compile, and set mode 7114 # options accordingly. 7115 echo 'int i;' > conftest.$ac_ext 7116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7117 (eval $ac_compile) 2>&5 7118 ac_status=$? 7119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7120 test $ac_status = 0; }; then 7121 case `/usr/bin/file conftest.$ac_objext` in 7122 *ELF-32*) 7123 HPUX_IA64_MODE=32 7124 ;; 7125 *ELF-64*) 7126 HPUX_IA64_MODE=64 7127 ;; 7128 esac 7129 fi 7130 rm -rf conftest* 7131 ;; 7132*-*-irix6*) 7133 # Find out what ABI is being produced by ac_compile, and set linker 7134 # options accordingly. 7135 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7137 (eval $ac_compile) 2>&5 7138 ac_status=$? 7139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7140 test $ac_status = 0; }; then 7141 if test yes = "$lt_cv_prog_gnu_ld"; then 7142 case `/usr/bin/file conftest.$ac_objext` in 7143 *32-bit*) 7144 LD="${LD-ld} -melf32bsmip" 7145 ;; 7146 *N32*) 7147 LD="${LD-ld} -melf32bmipn32" 7148 ;; 7149 *64-bit*) 7150 LD="${LD-ld} -melf64bmip" 7151 ;; 7152 esac 7153 else 7154 case `/usr/bin/file conftest.$ac_objext` in 7155 *32-bit*) 7156 LD="${LD-ld} -32" 7157 ;; 7158 *N32*) 7159 LD="${LD-ld} -n32" 7160 ;; 7161 *64-bit*) 7162 LD="${LD-ld} -64" 7163 ;; 7164 esac 7165 fi 7166 fi 7167 rm -rf conftest* 7168 ;; 7169 7170mips64*-*linux*) 7171 # Find out what ABI is being produced by ac_compile, and set linker 7172 # options accordingly. 7173 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7175 (eval $ac_compile) 2>&5 7176 ac_status=$? 7177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7178 test $ac_status = 0; }; then 7179 emul=elf 7180 case `/usr/bin/file conftest.$ac_objext` in 7181 *32-bit*) 7182 emul="${emul}32" 7183 ;; 7184 *64-bit*) 7185 emul="${emul}64" 7186 ;; 7187 esac 7188 case `/usr/bin/file conftest.$ac_objext` in 7189 *MSB*) 7190 emul="${emul}btsmip" 7191 ;; 7192 *LSB*) 7193 emul="${emul}ltsmip" 7194 ;; 7195 esac 7196 case `/usr/bin/file conftest.$ac_objext` in 7197 *N32*) 7198 emul="${emul}n32" 7199 ;; 7200 esac 7201 LD="${LD-ld} -m $emul" 7202 fi 7203 rm -rf conftest* 7204 ;; 7205 7206x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7207s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7208 # Find out what ABI is being produced by ac_compile, and set linker 7209 # options accordingly. Note that the listed cases only cover the 7210 # situations where additional linker options are needed (such as when 7211 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7212 # vice versa); the common cases where no linker options are needed do 7213 # not appear in the list. 7214 echo 'int i;' > conftest.$ac_ext 7215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7216 (eval $ac_compile) 2>&5 7217 ac_status=$? 7218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7219 test $ac_status = 0; }; then 7220 case `/usr/bin/file conftest.o` in 7221 *32-bit*) 7222 case $host in 7223 x86_64-*kfreebsd*-gnu) 7224 LD="${LD-ld} -m elf_i386_fbsd" 7225 ;; 7226 x86_64-*linux*) 7227 case `/usr/bin/file conftest.o` in 7228 *x86-64*) 7229 LD="${LD-ld} -m elf32_x86_64" 7230 ;; 7231 *) 7232 LD="${LD-ld} -m elf_i386" 7233 ;; 7234 esac 7235 ;; 7236 powerpc64le-*linux*) 7237 LD="${LD-ld} -m elf32lppclinux" 7238 ;; 7239 powerpc64-*linux*) 7240 LD="${LD-ld} -m elf32ppclinux" 7241 ;; 7242 s390x-*linux*) 7243 LD="${LD-ld} -m elf_s390" 7244 ;; 7245 sparc64-*linux*) 7246 LD="${LD-ld} -m elf32_sparc" 7247 ;; 7248 esac 7249 ;; 7250 *64-bit*) 7251 case $host in 7252 x86_64-*kfreebsd*-gnu) 7253 LD="${LD-ld} -m elf_x86_64_fbsd" 7254 ;; 7255 x86_64-*linux*) 7256 LD="${LD-ld} -m elf_x86_64" 7257 ;; 7258 powerpcle-*linux*|powerpc64le-*linux*) 7259 LD="${LD-ld} -m elf64lppc" 7260 ;; 7261 powerpc-*linux*|powerpc64-*linux*) 7262 LD="${LD-ld} -m elf64ppc" 7263 ;; 7264 s390*-*linux*|s390*-*tpf*) 7265 LD="${LD-ld} -m elf64_s390" 7266 ;; 7267 sparc*-*linux*) 7268 LD="${LD-ld} -m elf64_sparc" 7269 ;; 7270 esac 7271 ;; 7272 esac 7273 fi 7274 rm -rf conftest* 7275 ;; 7276 7277*-*-sco3.2v5*) 7278 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7279 SAVE_CFLAGS=$CFLAGS 7280 CFLAGS="$CFLAGS -belf" 7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7282printf %s "checking whether the C compiler needs -belf... " >&6; } 7283if test ${lt_cv_cc_needs_belf+y} 7284then : 7285 printf %s "(cached) " >&6 7286else $as_nop 7287 ac_ext=c 7288ac_cpp='$CPP $CPPFLAGS' 7289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7291ac_compiler_gnu=$ac_cv_c_compiler_gnu 7292 7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7294/* end confdefs.h. */ 7295 7296int 7297main (void) 7298{ 7299 7300 ; 7301 return 0; 7302} 7303_ACEOF 7304if ac_fn_c_try_link "$LINENO" 7305then : 7306 lt_cv_cc_needs_belf=yes 7307else $as_nop 7308 lt_cv_cc_needs_belf=no 7309fi 7310rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7311 conftest$ac_exeext conftest.$ac_ext 7312 ac_ext=c 7313ac_cpp='$CPP $CPPFLAGS' 7314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7316ac_compiler_gnu=$ac_cv_c_compiler_gnu 7317 7318fi 7319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7320printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7321 if test yes != "$lt_cv_cc_needs_belf"; then 7322 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7323 CFLAGS=$SAVE_CFLAGS 7324 fi 7325 ;; 7326*-*solaris*) 7327 # Find out what ABI is being produced by ac_compile, and set linker 7328 # options accordingly. 7329 echo 'int i;' > conftest.$ac_ext 7330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7331 (eval $ac_compile) 2>&5 7332 ac_status=$? 7333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7334 test $ac_status = 0; }; then 7335 case `/usr/bin/file conftest.o` in 7336 *64-bit*) 7337 case $lt_cv_prog_gnu_ld in 7338 yes*) 7339 case $host in 7340 i?86-*-solaris*|x86_64-*-solaris*) 7341 LD="${LD-ld} -m elf_x86_64" 7342 ;; 7343 sparc*-*-solaris*) 7344 LD="${LD-ld} -m elf64_sparc" 7345 ;; 7346 esac 7347 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7348 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7349 LD=${LD-ld}_sol2 7350 fi 7351 ;; 7352 *) 7353 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7354 LD="${LD-ld} -64" 7355 fi 7356 ;; 7357 esac 7358 ;; 7359 esac 7360 fi 7361 rm -rf conftest* 7362 ;; 7363esac 7364 7365need_locks=$enable_libtool_lock 7366 7367if test -n "$ac_tool_prefix"; then 7368 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7369set dummy ${ac_tool_prefix}mt; ac_word=$2 7370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7371printf %s "checking for $ac_word... " >&6; } 7372if test ${ac_cv_prog_MANIFEST_TOOL+y} 7373then : 7374 printf %s "(cached) " >&6 7375else $as_nop 7376 if test -n "$MANIFEST_TOOL"; then 7377 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7378else 7379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7380for as_dir in $PATH 7381do 7382 IFS=$as_save_IFS 7383 case $as_dir in #((( 7384 '') as_dir=./ ;; 7385 */) ;; 7386 *) as_dir=$as_dir/ ;; 7387 esac 7388 for ac_exec_ext in '' $ac_executable_extensions; do 7389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7390 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7392 break 2 7393 fi 7394done 7395 done 7396IFS=$as_save_IFS 7397 7398fi 7399fi 7400MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7401if test -n "$MANIFEST_TOOL"; then 7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7403printf "%s\n" "$MANIFEST_TOOL" >&6; } 7404else 7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7406printf "%s\n" "no" >&6; } 7407fi 7408 7409 7410fi 7411if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7412 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7413 # Extract the first word of "mt", so it can be a program name with args. 7414set dummy mt; ac_word=$2 7415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7416printf %s "checking for $ac_word... " >&6; } 7417if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7418then : 7419 printf %s "(cached) " >&6 7420else $as_nop 7421 if test -n "$ac_ct_MANIFEST_TOOL"; then 7422 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7423else 7424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7425for as_dir in $PATH 7426do 7427 IFS=$as_save_IFS 7428 case $as_dir in #((( 7429 '') as_dir=./ ;; 7430 */) ;; 7431 *) as_dir=$as_dir/ ;; 7432 esac 7433 for ac_exec_ext in '' $ac_executable_extensions; do 7434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7435 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7437 break 2 7438 fi 7439done 7440 done 7441IFS=$as_save_IFS 7442 7443fi 7444fi 7445ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7446if test -n "$ac_ct_MANIFEST_TOOL"; then 7447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7448printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7449else 7450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7451printf "%s\n" "no" >&6; } 7452fi 7453 7454 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7455 MANIFEST_TOOL=":" 7456 else 7457 case $cross_compiling:$ac_tool_warned in 7458yes:) 7459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7460printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7461ac_tool_warned=yes ;; 7462esac 7463 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7464 fi 7465else 7466 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7467fi 7468 7469test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7471printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7472if test ${lt_cv_path_mainfest_tool+y} 7473then : 7474 printf %s "(cached) " >&6 7475else $as_nop 7476 lt_cv_path_mainfest_tool=no 7477 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7478 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7479 cat conftest.err >&5 7480 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7481 lt_cv_path_mainfest_tool=yes 7482 fi 7483 rm -f conftest* 7484fi 7485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7486printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7487if test yes != "$lt_cv_path_mainfest_tool"; then 7488 MANIFEST_TOOL=: 7489fi 7490 7491 7492 7493 7494 7495 7496 case $host_os in 7497 rhapsody* | darwin*) 7498 if test -n "$ac_tool_prefix"; then 7499 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7500set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7502printf %s "checking for $ac_word... " >&6; } 7503if test ${ac_cv_prog_DSYMUTIL+y} 7504then : 7505 printf %s "(cached) " >&6 7506else $as_nop 7507 if test -n "$DSYMUTIL"; then 7508 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7509else 7510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7511for as_dir in $PATH 7512do 7513 IFS=$as_save_IFS 7514 case $as_dir in #((( 7515 '') as_dir=./ ;; 7516 */) ;; 7517 *) as_dir=$as_dir/ ;; 7518 esac 7519 for ac_exec_ext in '' $ac_executable_extensions; do 7520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7521 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7523 break 2 7524 fi 7525done 7526 done 7527IFS=$as_save_IFS 7528 7529fi 7530fi 7531DSYMUTIL=$ac_cv_prog_DSYMUTIL 7532if test -n "$DSYMUTIL"; then 7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7534printf "%s\n" "$DSYMUTIL" >&6; } 7535else 7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7537printf "%s\n" "no" >&6; } 7538fi 7539 7540 7541fi 7542if test -z "$ac_cv_prog_DSYMUTIL"; then 7543 ac_ct_DSYMUTIL=$DSYMUTIL 7544 # Extract the first word of "dsymutil", so it can be a program name with args. 7545set dummy dsymutil; ac_word=$2 7546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7547printf %s "checking for $ac_word... " >&6; } 7548if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7549then : 7550 printf %s "(cached) " >&6 7551else $as_nop 7552 if test -n "$ac_ct_DSYMUTIL"; then 7553 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7554else 7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7556for as_dir in $PATH 7557do 7558 IFS=$as_save_IFS 7559 case $as_dir in #((( 7560 '') as_dir=./ ;; 7561 */) ;; 7562 *) as_dir=$as_dir/ ;; 7563 esac 7564 for ac_exec_ext in '' $ac_executable_extensions; do 7565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7566 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7568 break 2 7569 fi 7570done 7571 done 7572IFS=$as_save_IFS 7573 7574fi 7575fi 7576ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7577if test -n "$ac_ct_DSYMUTIL"; then 7578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7579printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7580else 7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7582printf "%s\n" "no" >&6; } 7583fi 7584 7585 if test "x$ac_ct_DSYMUTIL" = x; then 7586 DSYMUTIL=":" 7587 else 7588 case $cross_compiling:$ac_tool_warned in 7589yes:) 7590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7591printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7592ac_tool_warned=yes ;; 7593esac 7594 DSYMUTIL=$ac_ct_DSYMUTIL 7595 fi 7596else 7597 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7598fi 7599 7600 if test -n "$ac_tool_prefix"; then 7601 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7602set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7604printf %s "checking for $ac_word... " >&6; } 7605if test ${ac_cv_prog_NMEDIT+y} 7606then : 7607 printf %s "(cached) " >&6 7608else $as_nop 7609 if test -n "$NMEDIT"; then 7610 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7611else 7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7613for as_dir in $PATH 7614do 7615 IFS=$as_save_IFS 7616 case $as_dir in #((( 7617 '') as_dir=./ ;; 7618 */) ;; 7619 *) as_dir=$as_dir/ ;; 7620 esac 7621 for ac_exec_ext in '' $ac_executable_extensions; do 7622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7623 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7625 break 2 7626 fi 7627done 7628 done 7629IFS=$as_save_IFS 7630 7631fi 7632fi 7633NMEDIT=$ac_cv_prog_NMEDIT 7634if test -n "$NMEDIT"; then 7635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7636printf "%s\n" "$NMEDIT" >&6; } 7637else 7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7639printf "%s\n" "no" >&6; } 7640fi 7641 7642 7643fi 7644if test -z "$ac_cv_prog_NMEDIT"; then 7645 ac_ct_NMEDIT=$NMEDIT 7646 # Extract the first word of "nmedit", so it can be a program name with args. 7647set dummy nmedit; ac_word=$2 7648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7649printf %s "checking for $ac_word... " >&6; } 7650if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7651then : 7652 printf %s "(cached) " >&6 7653else $as_nop 7654 if test -n "$ac_ct_NMEDIT"; then 7655 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7656else 7657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7658for as_dir in $PATH 7659do 7660 IFS=$as_save_IFS 7661 case $as_dir in #((( 7662 '') as_dir=./ ;; 7663 */) ;; 7664 *) as_dir=$as_dir/ ;; 7665 esac 7666 for ac_exec_ext in '' $ac_executable_extensions; do 7667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7668 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7670 break 2 7671 fi 7672done 7673 done 7674IFS=$as_save_IFS 7675 7676fi 7677fi 7678ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7679if test -n "$ac_ct_NMEDIT"; then 7680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7681printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7682else 7683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7684printf "%s\n" "no" >&6; } 7685fi 7686 7687 if test "x$ac_ct_NMEDIT" = x; then 7688 NMEDIT=":" 7689 else 7690 case $cross_compiling:$ac_tool_warned in 7691yes:) 7692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7693printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7694ac_tool_warned=yes ;; 7695esac 7696 NMEDIT=$ac_ct_NMEDIT 7697 fi 7698else 7699 NMEDIT="$ac_cv_prog_NMEDIT" 7700fi 7701 7702 if test -n "$ac_tool_prefix"; then 7703 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7704set dummy ${ac_tool_prefix}lipo; ac_word=$2 7705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7706printf %s "checking for $ac_word... " >&6; } 7707if test ${ac_cv_prog_LIPO+y} 7708then : 7709 printf %s "(cached) " >&6 7710else $as_nop 7711 if test -n "$LIPO"; then 7712 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7713else 7714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7715for as_dir in $PATH 7716do 7717 IFS=$as_save_IFS 7718 case $as_dir in #((( 7719 '') as_dir=./ ;; 7720 */) ;; 7721 *) as_dir=$as_dir/ ;; 7722 esac 7723 for ac_exec_ext in '' $ac_executable_extensions; do 7724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7725 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7727 break 2 7728 fi 7729done 7730 done 7731IFS=$as_save_IFS 7732 7733fi 7734fi 7735LIPO=$ac_cv_prog_LIPO 7736if test -n "$LIPO"; then 7737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7738printf "%s\n" "$LIPO" >&6; } 7739else 7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7741printf "%s\n" "no" >&6; } 7742fi 7743 7744 7745fi 7746if test -z "$ac_cv_prog_LIPO"; then 7747 ac_ct_LIPO=$LIPO 7748 # Extract the first word of "lipo", so it can be a program name with args. 7749set dummy lipo; ac_word=$2 7750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7751printf %s "checking for $ac_word... " >&6; } 7752if test ${ac_cv_prog_ac_ct_LIPO+y} 7753then : 7754 printf %s "(cached) " >&6 7755else $as_nop 7756 if test -n "$ac_ct_LIPO"; then 7757 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7758else 7759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7760for as_dir in $PATH 7761do 7762 IFS=$as_save_IFS 7763 case $as_dir in #((( 7764 '') as_dir=./ ;; 7765 */) ;; 7766 *) as_dir=$as_dir/ ;; 7767 esac 7768 for ac_exec_ext in '' $ac_executable_extensions; do 7769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7770 ac_cv_prog_ac_ct_LIPO="lipo" 7771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7772 break 2 7773 fi 7774done 7775 done 7776IFS=$as_save_IFS 7777 7778fi 7779fi 7780ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7781if test -n "$ac_ct_LIPO"; then 7782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7783printf "%s\n" "$ac_ct_LIPO" >&6; } 7784else 7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7786printf "%s\n" "no" >&6; } 7787fi 7788 7789 if test "x$ac_ct_LIPO" = x; then 7790 LIPO=":" 7791 else 7792 case $cross_compiling:$ac_tool_warned in 7793yes:) 7794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7795printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7796ac_tool_warned=yes ;; 7797esac 7798 LIPO=$ac_ct_LIPO 7799 fi 7800else 7801 LIPO="$ac_cv_prog_LIPO" 7802fi 7803 7804 if test -n "$ac_tool_prefix"; then 7805 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7806set dummy ${ac_tool_prefix}otool; ac_word=$2 7807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7808printf %s "checking for $ac_word... " >&6; } 7809if test ${ac_cv_prog_OTOOL+y} 7810then : 7811 printf %s "(cached) " >&6 7812else $as_nop 7813 if test -n "$OTOOL"; then 7814 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7815else 7816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7817for as_dir in $PATH 7818do 7819 IFS=$as_save_IFS 7820 case $as_dir in #((( 7821 '') as_dir=./ ;; 7822 */) ;; 7823 *) as_dir=$as_dir/ ;; 7824 esac 7825 for ac_exec_ext in '' $ac_executable_extensions; do 7826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7827 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7829 break 2 7830 fi 7831done 7832 done 7833IFS=$as_save_IFS 7834 7835fi 7836fi 7837OTOOL=$ac_cv_prog_OTOOL 7838if test -n "$OTOOL"; then 7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7840printf "%s\n" "$OTOOL" >&6; } 7841else 7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7843printf "%s\n" "no" >&6; } 7844fi 7845 7846 7847fi 7848if test -z "$ac_cv_prog_OTOOL"; then 7849 ac_ct_OTOOL=$OTOOL 7850 # Extract the first word of "otool", so it can be a program name with args. 7851set dummy otool; ac_word=$2 7852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7853printf %s "checking for $ac_word... " >&6; } 7854if test ${ac_cv_prog_ac_ct_OTOOL+y} 7855then : 7856 printf %s "(cached) " >&6 7857else $as_nop 7858 if test -n "$ac_ct_OTOOL"; then 7859 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7860else 7861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7862for as_dir in $PATH 7863do 7864 IFS=$as_save_IFS 7865 case $as_dir in #((( 7866 '') as_dir=./ ;; 7867 */) ;; 7868 *) as_dir=$as_dir/ ;; 7869 esac 7870 for ac_exec_ext in '' $ac_executable_extensions; do 7871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7872 ac_cv_prog_ac_ct_OTOOL="otool" 7873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7874 break 2 7875 fi 7876done 7877 done 7878IFS=$as_save_IFS 7879 7880fi 7881fi 7882ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7883if test -n "$ac_ct_OTOOL"; then 7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7885printf "%s\n" "$ac_ct_OTOOL" >&6; } 7886else 7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7888printf "%s\n" "no" >&6; } 7889fi 7890 7891 if test "x$ac_ct_OTOOL" = x; then 7892 OTOOL=":" 7893 else 7894 case $cross_compiling:$ac_tool_warned in 7895yes:) 7896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7897printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7898ac_tool_warned=yes ;; 7899esac 7900 OTOOL=$ac_ct_OTOOL 7901 fi 7902else 7903 OTOOL="$ac_cv_prog_OTOOL" 7904fi 7905 7906 if test -n "$ac_tool_prefix"; then 7907 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7908set dummy ${ac_tool_prefix}otool64; ac_word=$2 7909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7910printf %s "checking for $ac_word... " >&6; } 7911if test ${ac_cv_prog_OTOOL64+y} 7912then : 7913 printf %s "(cached) " >&6 7914else $as_nop 7915 if test -n "$OTOOL64"; then 7916 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7917else 7918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7919for as_dir in $PATH 7920do 7921 IFS=$as_save_IFS 7922 case $as_dir in #((( 7923 '') as_dir=./ ;; 7924 */) ;; 7925 *) as_dir=$as_dir/ ;; 7926 esac 7927 for ac_exec_ext in '' $ac_executable_extensions; do 7928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7929 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7931 break 2 7932 fi 7933done 7934 done 7935IFS=$as_save_IFS 7936 7937fi 7938fi 7939OTOOL64=$ac_cv_prog_OTOOL64 7940if test -n "$OTOOL64"; then 7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7942printf "%s\n" "$OTOOL64" >&6; } 7943else 7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7945printf "%s\n" "no" >&6; } 7946fi 7947 7948 7949fi 7950if test -z "$ac_cv_prog_OTOOL64"; then 7951 ac_ct_OTOOL64=$OTOOL64 7952 # Extract the first word of "otool64", so it can be a program name with args. 7953set dummy otool64; ac_word=$2 7954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7955printf %s "checking for $ac_word... " >&6; } 7956if test ${ac_cv_prog_ac_ct_OTOOL64+y} 7957then : 7958 printf %s "(cached) " >&6 7959else $as_nop 7960 if test -n "$ac_ct_OTOOL64"; then 7961 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7962else 7963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7964for as_dir in $PATH 7965do 7966 IFS=$as_save_IFS 7967 case $as_dir in #((( 7968 '') as_dir=./ ;; 7969 */) ;; 7970 *) as_dir=$as_dir/ ;; 7971 esac 7972 for ac_exec_ext in '' $ac_executable_extensions; do 7973 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7974 ac_cv_prog_ac_ct_OTOOL64="otool64" 7975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7976 break 2 7977 fi 7978done 7979 done 7980IFS=$as_save_IFS 7981 7982fi 7983fi 7984ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7985if test -n "$ac_ct_OTOOL64"; then 7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7987printf "%s\n" "$ac_ct_OTOOL64" >&6; } 7988else 7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7990printf "%s\n" "no" >&6; } 7991fi 7992 7993 if test "x$ac_ct_OTOOL64" = x; then 7994 OTOOL64=":" 7995 else 7996 case $cross_compiling:$ac_tool_warned in 7997yes:) 7998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7999printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8000ac_tool_warned=yes ;; 8001esac 8002 OTOOL64=$ac_ct_OTOOL64 8003 fi 8004else 8005 OTOOL64="$ac_cv_prog_OTOOL64" 8006fi 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8035printf %s "checking for -single_module linker flag... " >&6; } 8036if test ${lt_cv_apple_cc_single_mod+y} 8037then : 8038 printf %s "(cached) " >&6 8039else $as_nop 8040 lt_cv_apple_cc_single_mod=no 8041 if test -z "$LT_MULTI_MODULE"; then 8042 # By default we will add the -single_module flag. You can override 8043 # by either setting the environment variable LT_MULTI_MODULE 8044 # non-empty at configure time, or by adding -multi_module to the 8045 # link flags. 8046 rm -rf libconftest.dylib* 8047 echo "int foo(void){return 1;}" > conftest.c 8048 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8049-dynamiclib -Wl,-single_module conftest.c" >&5 8050 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8051 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8052 _lt_result=$? 8053 # If there is a non-empty error log, and "single_module" 8054 # appears in it, assume the flag caused a linker warning 8055 if test -s conftest.err && $GREP single_module conftest.err; then 8056 cat conftest.err >&5 8057 # Otherwise, if the output was created with a 0 exit code from 8058 # the compiler, it worked. 8059 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8060 lt_cv_apple_cc_single_mod=yes 8061 else 8062 cat conftest.err >&5 8063 fi 8064 rm -rf libconftest.dylib* 8065 rm -f conftest.* 8066 fi 8067fi 8068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8069printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8070 8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8072printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8073if test ${lt_cv_ld_exported_symbols_list+y} 8074then : 8075 printf %s "(cached) " >&6 8076else $as_nop 8077 lt_cv_ld_exported_symbols_list=no 8078 save_LDFLAGS=$LDFLAGS 8079 echo "_main" > conftest.sym 8080 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8082/* end confdefs.h. */ 8083 8084int 8085main (void) 8086{ 8087 8088 ; 8089 return 0; 8090} 8091_ACEOF 8092if ac_fn_c_try_link "$LINENO" 8093then : 8094 lt_cv_ld_exported_symbols_list=yes 8095else $as_nop 8096 lt_cv_ld_exported_symbols_list=no 8097fi 8098rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8099 conftest$ac_exeext conftest.$ac_ext 8100 LDFLAGS=$save_LDFLAGS 8101 8102fi 8103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8104printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8105 8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8107printf %s "checking for -force_load linker flag... " >&6; } 8108if test ${lt_cv_ld_force_load+y} 8109then : 8110 printf %s "(cached) " >&6 8111else $as_nop 8112 lt_cv_ld_force_load=no 8113 cat > conftest.c << _LT_EOF 8114int forced_loaded() { return 2;} 8115_LT_EOF 8116 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8117 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8118 echo "$AR cru libconftest.a conftest.o" >&5 8119 $AR cru libconftest.a conftest.o 2>&5 8120 echo "$RANLIB libconftest.a" >&5 8121 $RANLIB libconftest.a 2>&5 8122 cat > conftest.c << _LT_EOF 8123int main() { return 0;} 8124_LT_EOF 8125 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8126 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8127 _lt_result=$? 8128 if test -s conftest.err && $GREP force_load conftest.err; then 8129 cat conftest.err >&5 8130 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8131 lt_cv_ld_force_load=yes 8132 else 8133 cat conftest.err >&5 8134 fi 8135 rm -f conftest.err libconftest.a conftest conftest.c 8136 rm -rf conftest.dSYM 8137 8138fi 8139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8140printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8141 case $host_os in 8142 rhapsody* | darwin1.[012]) 8143 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8144 darwin1.*) 8145 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8146 darwin*) # darwin 5.x on 8147 # if running on 10.5 or later, the deployment target defaults 8148 # to the OS version, if on x86, and 10.4, the deployment 8149 # target defaults to 10.4. Don't you love it? 8150 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8151 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8152 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8153 10.[012][,.]*) 8154 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8155 10.*|11.*) 8156 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8157 esac 8158 ;; 8159 esac 8160 if test yes = "$lt_cv_apple_cc_single_mod"; then 8161 _lt_dar_single_mod='$single_module' 8162 fi 8163 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8164 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8165 else 8166 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8167 fi 8168 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8169 _lt_dsymutil='~$DSYMUTIL $lib || :' 8170 else 8171 _lt_dsymutil= 8172 fi 8173 ;; 8174 esac 8175 8176# func_munge_path_list VARIABLE PATH 8177# ----------------------------------- 8178# VARIABLE is name of variable containing _space_ separated list of 8179# directories to be munged by the contents of PATH, which is string 8180# having a format: 8181# "DIR[:DIR]:" 8182# string "DIR[ DIR]" will be prepended to VARIABLE 8183# ":DIR[:DIR]" 8184# string "DIR[ DIR]" will be appended to VARIABLE 8185# "DIRP[:DIRP]::[DIRA:]DIRA" 8186# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8187# "DIRA[ DIRA]" will be appended to VARIABLE 8188# "DIR[:DIR]" 8189# VARIABLE will be replaced by "DIR[ DIR]" 8190func_munge_path_list () 8191{ 8192 case x$2 in 8193 x) 8194 ;; 8195 *:) 8196 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8197 ;; 8198 x:*) 8199 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8200 ;; 8201 *::*) 8202 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8203 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8204 ;; 8205 *) 8206 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8207 ;; 8208 esac 8209} 8210 8211ac_header= ac_cache= 8212for ac_item in $ac_header_c_list 8213do 8214 if test $ac_cache; then 8215 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8216 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8217 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8218 fi 8219 ac_header= ac_cache= 8220 elif test $ac_header; then 8221 ac_cache=$ac_item 8222 else 8223 ac_header=$ac_item 8224 fi 8225done 8226 8227 8228 8229 8230 8231 8232 8233 8234if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8235then : 8236 8237printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8238 8239fi 8240ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8241" 8242if test "x$ac_cv_header_dlfcn_h" = xyes 8243then : 8244 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8245 8246fi 8247 8248 8249 8250 8251 8252# Set options 8253 8254 8255 8256 enable_dlopen=no 8257 8258 8259 enable_win32_dll=no 8260 8261 8262 # Check whether --enable-shared was given. 8263if test ${enable_shared+y} 8264then : 8265 enableval=$enable_shared; p=${PACKAGE-default} 8266 case $enableval in 8267 yes) enable_shared=yes ;; 8268 no) enable_shared=no ;; 8269 *) 8270 enable_shared=no 8271 # Look at the argument we got. We use all the common list separators. 8272 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8273 for pkg in $enableval; do 8274 IFS=$lt_save_ifs 8275 if test "X$pkg" = "X$p"; then 8276 enable_shared=yes 8277 fi 8278 done 8279 IFS=$lt_save_ifs 8280 ;; 8281 esac 8282else $as_nop 8283 enable_shared=yes 8284fi 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 # Check whether --enable-static was given. 8295if test ${enable_static+y} 8296then : 8297 enableval=$enable_static; p=${PACKAGE-default} 8298 case $enableval in 8299 yes) enable_static=yes ;; 8300 no) enable_static=no ;; 8301 *) 8302 enable_static=no 8303 # Look at the argument we got. We use all the common list separators. 8304 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8305 for pkg in $enableval; do 8306 IFS=$lt_save_ifs 8307 if test "X$pkg" = "X$p"; then 8308 enable_static=yes 8309 fi 8310 done 8311 IFS=$lt_save_ifs 8312 ;; 8313 esac 8314else $as_nop 8315 enable_static=yes 8316fi 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327# Check whether --with-pic was given. 8328if test ${with_pic+y} 8329then : 8330 withval=$with_pic; lt_p=${PACKAGE-default} 8331 case $withval in 8332 yes|no) pic_mode=$withval ;; 8333 *) 8334 pic_mode=default 8335 # Look at the argument we got. We use all the common list separators. 8336 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8337 for lt_pkg in $withval; do 8338 IFS=$lt_save_ifs 8339 if test "X$lt_pkg" = "X$lt_p"; then 8340 pic_mode=yes 8341 fi 8342 done 8343 IFS=$lt_save_ifs 8344 ;; 8345 esac 8346else $as_nop 8347 pic_mode=default 8348fi 8349 8350 8351 8352 8353 8354 8355 8356 8357 # Check whether --enable-fast-install was given. 8358if test ${enable_fast_install+y} 8359then : 8360 enableval=$enable_fast_install; p=${PACKAGE-default} 8361 case $enableval in 8362 yes) enable_fast_install=yes ;; 8363 no) enable_fast_install=no ;; 8364 *) 8365 enable_fast_install=no 8366 # Look at the argument we got. We use all the common list separators. 8367 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8368 for pkg in $enableval; do 8369 IFS=$lt_save_ifs 8370 if test "X$pkg" = "X$p"; then 8371 enable_fast_install=yes 8372 fi 8373 done 8374 IFS=$lt_save_ifs 8375 ;; 8376 esac 8377else $as_nop 8378 enable_fast_install=yes 8379fi 8380 8381 8382 8383 8384 8385 8386 8387 8388 shared_archive_member_spec= 8389case $host,$enable_shared in 8390power*-*-aix[5-9]*,yes) 8391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8392printf %s "checking which variant of shared library versioning to provide... " >&6; } 8393 8394# Check whether --with-aix-soname was given. 8395if test ${with_aix_soname+y} 8396then : 8397 withval=$with_aix_soname; case $withval in 8398 aix|svr4|both) 8399 ;; 8400 *) 8401 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8402 ;; 8403 esac 8404 lt_cv_with_aix_soname=$with_aix_soname 8405else $as_nop 8406 if test ${lt_cv_with_aix_soname+y} 8407then : 8408 printf %s "(cached) " >&6 8409else $as_nop 8410 lt_cv_with_aix_soname=aix 8411fi 8412 8413 with_aix_soname=$lt_cv_with_aix_soname 8414fi 8415 8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8417printf "%s\n" "$with_aix_soname" >&6; } 8418 if test aix != "$with_aix_soname"; then 8419 # For the AIX way of multilib, we name the shared archive member 8420 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8421 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8422 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8423 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8424 if test 64 = "${OBJECT_MODE-32}"; then 8425 shared_archive_member_spec=shr_64 8426 else 8427 shared_archive_member_spec=shr 8428 fi 8429 fi 8430 ;; 8431*) 8432 with_aix_soname=aix 8433 ;; 8434esac 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445# This can be used to rebuild libtool when needed 8446LIBTOOL_DEPS=$ltmain 8447 8448# Always use our own libtool. 8449LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480test -z "$LN_S" && LN_S="ln -s" 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495if test -n "${ZSH_VERSION+set}"; then 8496 setopt NO_GLOB_SUBST 8497fi 8498 8499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8500printf %s "checking for objdir... " >&6; } 8501if test ${lt_cv_objdir+y} 8502then : 8503 printf %s "(cached) " >&6 8504else $as_nop 8505 rm -f .libs 2>/dev/null 8506mkdir .libs 2>/dev/null 8507if test -d .libs; then 8508 lt_cv_objdir=.libs 8509else 8510 # MS-DOS does not allow filenames that begin with a dot. 8511 lt_cv_objdir=_libs 8512fi 8513rmdir .libs 2>/dev/null 8514fi 8515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8516printf "%s\n" "$lt_cv_objdir" >&6; } 8517objdir=$lt_cv_objdir 8518 8519 8520 8521 8522 8523printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8524 8525 8526 8527 8528case $host_os in 8529aix3*) 8530 # AIX sometimes has problems with the GCC collect2 program. For some 8531 # reason, if we set the COLLECT_NAMES environment variable, the problems 8532 # vanish in a puff of smoke. 8533 if test set != "${COLLECT_NAMES+set}"; then 8534 COLLECT_NAMES= 8535 export COLLECT_NAMES 8536 fi 8537 ;; 8538esac 8539 8540# Global variables: 8541ofile=libtool 8542can_build_shared=yes 8543 8544# All known linkers require a '.a' archive for static linking (except MSVC, 8545# which needs '.lib'). 8546libext=a 8547 8548with_gnu_ld=$lt_cv_prog_gnu_ld 8549 8550old_CC=$CC 8551old_CFLAGS=$CFLAGS 8552 8553# Set sane defaults for various variables 8554test -z "$CC" && CC=cc 8555test -z "$LTCC" && LTCC=$CC 8556test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8557test -z "$LD" && LD=ld 8558test -z "$ac_objext" && ac_objext=o 8559 8560func_cc_basename $compiler 8561cc_basename=$func_cc_basename_result 8562 8563 8564# Only perform the check for file, if the check method requires it 8565test -z "$MAGIC_CMD" && MAGIC_CMD=file 8566case $deplibs_check_method in 8567file_magic*) 8568 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8570printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8571if test ${lt_cv_path_MAGIC_CMD+y} 8572then : 8573 printf %s "(cached) " >&6 8574else $as_nop 8575 case $MAGIC_CMD in 8576[\\/*] | ?:[\\/]*) 8577 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8578 ;; 8579*) 8580 lt_save_MAGIC_CMD=$MAGIC_CMD 8581 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8582 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8583 for ac_dir in $ac_dummy; do 8584 IFS=$lt_save_ifs 8585 test -z "$ac_dir" && ac_dir=. 8586 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8587 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8588 if test -n "$file_magic_test_file"; then 8589 case $deplibs_check_method in 8590 "file_magic "*) 8591 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8592 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8593 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8594 $EGREP "$file_magic_regex" > /dev/null; then 8595 : 8596 else 8597 cat <<_LT_EOF 1>&2 8598 8599*** Warning: the command libtool uses to detect shared libraries, 8600*** $file_magic_cmd, produces output that libtool cannot recognize. 8601*** The result is that libtool may fail to recognize shared libraries 8602*** as such. This will affect the creation of libtool libraries that 8603*** depend on shared libraries, but programs linked with such libtool 8604*** libraries will work regardless of this problem. Nevertheless, you 8605*** may want to report the problem to your system manager and/or to 8606*** bug-libtool@gnu.org 8607 8608_LT_EOF 8609 fi ;; 8610 esac 8611 fi 8612 break 8613 fi 8614 done 8615 IFS=$lt_save_ifs 8616 MAGIC_CMD=$lt_save_MAGIC_CMD 8617 ;; 8618esac 8619fi 8620 8621MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8622if test -n "$MAGIC_CMD"; then 8623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8624printf "%s\n" "$MAGIC_CMD" >&6; } 8625else 8626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8627printf "%s\n" "no" >&6; } 8628fi 8629 8630 8631 8632 8633 8634if test -z "$lt_cv_path_MAGIC_CMD"; then 8635 if test -n "$ac_tool_prefix"; then 8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8637printf %s "checking for file... " >&6; } 8638if test ${lt_cv_path_MAGIC_CMD+y} 8639then : 8640 printf %s "(cached) " >&6 8641else $as_nop 8642 case $MAGIC_CMD in 8643[\\/*] | ?:[\\/]*) 8644 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8645 ;; 8646*) 8647 lt_save_MAGIC_CMD=$MAGIC_CMD 8648 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8649 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8650 for ac_dir in $ac_dummy; do 8651 IFS=$lt_save_ifs 8652 test -z "$ac_dir" && ac_dir=. 8653 if test -f "$ac_dir/file"; then 8654 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8655 if test -n "$file_magic_test_file"; then 8656 case $deplibs_check_method in 8657 "file_magic "*) 8658 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8659 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8660 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8661 $EGREP "$file_magic_regex" > /dev/null; then 8662 : 8663 else 8664 cat <<_LT_EOF 1>&2 8665 8666*** Warning: the command libtool uses to detect shared libraries, 8667*** $file_magic_cmd, produces output that libtool cannot recognize. 8668*** The result is that libtool may fail to recognize shared libraries 8669*** as such. This will affect the creation of libtool libraries that 8670*** depend on shared libraries, but programs linked with such libtool 8671*** libraries will work regardless of this problem. Nevertheless, you 8672*** may want to report the problem to your system manager and/or to 8673*** bug-libtool@gnu.org 8674 8675_LT_EOF 8676 fi ;; 8677 esac 8678 fi 8679 break 8680 fi 8681 done 8682 IFS=$lt_save_ifs 8683 MAGIC_CMD=$lt_save_MAGIC_CMD 8684 ;; 8685esac 8686fi 8687 8688MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8689if test -n "$MAGIC_CMD"; then 8690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8691printf "%s\n" "$MAGIC_CMD" >&6; } 8692else 8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8694printf "%s\n" "no" >&6; } 8695fi 8696 8697 8698 else 8699 MAGIC_CMD=: 8700 fi 8701fi 8702 8703 fi 8704 ;; 8705esac 8706 8707# Use C for the default configuration in the libtool script 8708 8709lt_save_CC=$CC 8710ac_ext=c 8711ac_cpp='$CPP $CPPFLAGS' 8712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8714ac_compiler_gnu=$ac_cv_c_compiler_gnu 8715 8716 8717# Source file extension for C test sources. 8718ac_ext=c 8719 8720# Object file extension for compiled C test sources. 8721objext=o 8722objext=$objext 8723 8724# Code to be used in simple compile tests 8725lt_simple_compile_test_code="int some_variable = 0;" 8726 8727# Code to be used in simple link tests 8728lt_simple_link_test_code='int main(){return(0);}' 8729 8730 8731 8732 8733 8734 8735 8736# If no C compiler was specified, use CC. 8737LTCC=${LTCC-"$CC"} 8738 8739# If no C compiler flags were specified, use CFLAGS. 8740LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8741 8742# Allow CC to be a program name with arguments. 8743compiler=$CC 8744 8745# Save the default compiler, since it gets overwritten when the other 8746# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8747compiler_DEFAULT=$CC 8748 8749# save warnings/boilerplate of simple test code 8750ac_outfile=conftest.$ac_objext 8751echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8752eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8753_lt_compiler_boilerplate=`cat conftest.err` 8754$RM conftest* 8755 8756ac_outfile=conftest.$ac_objext 8757echo "$lt_simple_link_test_code" >conftest.$ac_ext 8758eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8759_lt_linker_boilerplate=`cat conftest.err` 8760$RM -r conftest* 8761 8762 8763if test -n "$compiler"; then 8764 8765lt_prog_compiler_no_builtin_flag= 8766 8767if test yes = "$GCC"; then 8768 case $cc_basename in 8769 nvcc*) 8770 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8771 *) 8772 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8773 esac 8774 8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8776printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8777if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8778then : 8779 printf %s "(cached) " >&6 8780else $as_nop 8781 lt_cv_prog_compiler_rtti_exceptions=no 8782 ac_outfile=conftest.$ac_objext 8783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8784 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8785 # Insert the option either (1) after the last *FLAGS variable, or 8786 # (2) before a word containing "conftest.", or (3) at the end. 8787 # Note that $ac_compile itself does not contain backslashes and begins 8788 # with a dollar sign (not a hyphen), so the echo should work correctly. 8789 # The option is referenced via a variable to avoid confusing sed. 8790 lt_compile=`echo "$ac_compile" | $SED \ 8791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8793 -e 's:$: $lt_compiler_flag:'` 8794 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8795 (eval "$lt_compile" 2>conftest.err) 8796 ac_status=$? 8797 cat conftest.err >&5 8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8799 if (exit $ac_status) && test -s "$ac_outfile"; then 8800 # The compiler can only warn and ignore the option if not recognized 8801 # So say no if there are warnings other than the usual output. 8802 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8804 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8805 lt_cv_prog_compiler_rtti_exceptions=yes 8806 fi 8807 fi 8808 $RM conftest* 8809 8810fi 8811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8812printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8813 8814if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8815 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8816else 8817 : 8818fi 8819 8820fi 8821 8822 8823 8824 8825 8826 8827 lt_prog_compiler_wl= 8828lt_prog_compiler_pic= 8829lt_prog_compiler_static= 8830 8831 8832 if test yes = "$GCC"; then 8833 lt_prog_compiler_wl='-Wl,' 8834 lt_prog_compiler_static='-static' 8835 8836 case $host_os in 8837 aix*) 8838 # All AIX code is PIC. 8839 if test ia64 = "$host_cpu"; then 8840 # AIX 5 now supports IA64 processor 8841 lt_prog_compiler_static='-Bstatic' 8842 fi 8843 lt_prog_compiler_pic='-fPIC' 8844 ;; 8845 8846 amigaos*) 8847 case $host_cpu in 8848 powerpc) 8849 # see comment about AmigaOS4 .so support 8850 lt_prog_compiler_pic='-fPIC' 8851 ;; 8852 m68k) 8853 # FIXME: we need at least 68020 code to build shared libraries, but 8854 # adding the '-m68020' flag to GCC prevents building anything better, 8855 # like '-m68040'. 8856 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8857 ;; 8858 esac 8859 ;; 8860 8861 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8862 # PIC is the default for these OSes. 8863 ;; 8864 8865 mingw* | cygwin* | pw32* | os2* | cegcc*) 8866 # This hack is so that the source file can tell whether it is being 8867 # built for inclusion in a dll (and should export symbols for example). 8868 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8869 # (--disable-auto-import) libraries 8870 lt_prog_compiler_pic='-DDLL_EXPORT' 8871 case $host_os in 8872 os2*) 8873 lt_prog_compiler_static='$wl-static' 8874 ;; 8875 esac 8876 ;; 8877 8878 darwin* | rhapsody*) 8879 # PIC is the default on this platform 8880 # Common symbols not allowed in MH_DYLIB files 8881 lt_prog_compiler_pic='-fno-common' 8882 ;; 8883 8884 haiku*) 8885 # PIC is the default for Haiku. 8886 # The "-static" flag exists, but is broken. 8887 lt_prog_compiler_static= 8888 ;; 8889 8890 hpux*) 8891 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8892 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8893 # sets the default TLS model and affects inlining. 8894 case $host_cpu in 8895 hppa*64*) 8896 # +Z the default 8897 ;; 8898 *) 8899 lt_prog_compiler_pic='-fPIC' 8900 ;; 8901 esac 8902 ;; 8903 8904 interix[3-9]*) 8905 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8906 # Instead, we relocate shared libraries at runtime. 8907 ;; 8908 8909 msdosdjgpp*) 8910 # Just because we use GCC doesn't mean we suddenly get shared libraries 8911 # on systems that don't support them. 8912 lt_prog_compiler_can_build_shared=no 8913 enable_shared=no 8914 ;; 8915 8916 *nto* | *qnx*) 8917 # QNX uses GNU C++, but need to define -shared option too, otherwise 8918 # it will coredump. 8919 lt_prog_compiler_pic='-fPIC -shared' 8920 ;; 8921 8922 sysv4*MP*) 8923 if test -d /usr/nec; then 8924 lt_prog_compiler_pic=-Kconform_pic 8925 fi 8926 ;; 8927 8928 *) 8929 lt_prog_compiler_pic='-fPIC' 8930 ;; 8931 esac 8932 8933 case $cc_basename in 8934 nvcc*) # Cuda Compiler Driver 2.2 8935 lt_prog_compiler_wl='-Xlinker ' 8936 if test -n "$lt_prog_compiler_pic"; then 8937 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8938 fi 8939 ;; 8940 esac 8941 else 8942 # PORTME Check for flag to pass linker flags through the system compiler. 8943 case $host_os in 8944 aix*) 8945 lt_prog_compiler_wl='-Wl,' 8946 if test ia64 = "$host_cpu"; then 8947 # AIX 5 now supports IA64 processor 8948 lt_prog_compiler_static='-Bstatic' 8949 else 8950 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8951 fi 8952 ;; 8953 8954 darwin* | rhapsody*) 8955 # PIC is the default on this platform 8956 # Common symbols not allowed in MH_DYLIB files 8957 lt_prog_compiler_pic='-fno-common' 8958 case $cc_basename in 8959 nagfor*) 8960 # NAG Fortran compiler 8961 lt_prog_compiler_wl='-Wl,-Wl,,' 8962 lt_prog_compiler_pic='-PIC' 8963 lt_prog_compiler_static='-Bstatic' 8964 ;; 8965 esac 8966 ;; 8967 8968 mingw* | cygwin* | pw32* | os2* | cegcc*) 8969 # This hack is so that the source file can tell whether it is being 8970 # built for inclusion in a dll (and should export symbols for example). 8971 lt_prog_compiler_pic='-DDLL_EXPORT' 8972 case $host_os in 8973 os2*) 8974 lt_prog_compiler_static='$wl-static' 8975 ;; 8976 esac 8977 ;; 8978 8979 hpux9* | hpux10* | hpux11*) 8980 lt_prog_compiler_wl='-Wl,' 8981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8982 # not for PA HP-UX. 8983 case $host_cpu in 8984 hppa*64*|ia64*) 8985 # +Z the default 8986 ;; 8987 *) 8988 lt_prog_compiler_pic='+Z' 8989 ;; 8990 esac 8991 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8992 lt_prog_compiler_static='$wl-a ${wl}archive' 8993 ;; 8994 8995 irix5* | irix6* | nonstopux*) 8996 lt_prog_compiler_wl='-Wl,' 8997 # PIC (with -KPIC) is the default. 8998 lt_prog_compiler_static='-non_shared' 8999 ;; 9000 9001 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9002 case $cc_basename in 9003 # old Intel for x86_64, which still supported -KPIC. 9004 ecc*) 9005 lt_prog_compiler_wl='-Wl,' 9006 lt_prog_compiler_pic='-KPIC' 9007 lt_prog_compiler_static='-static' 9008 ;; 9009 # icc used to be incompatible with GCC. 9010 # ICC 10 doesn't accept -KPIC any more. 9011 icc* | ifort*) 9012 lt_prog_compiler_wl='-Wl,' 9013 lt_prog_compiler_pic='-fPIC' 9014 lt_prog_compiler_static='-static' 9015 ;; 9016 # Lahey Fortran 8.1. 9017 lf95*) 9018 lt_prog_compiler_wl='-Wl,' 9019 lt_prog_compiler_pic='--shared' 9020 lt_prog_compiler_static='--static' 9021 ;; 9022 nagfor*) 9023 # NAG Fortran compiler 9024 lt_prog_compiler_wl='-Wl,-Wl,,' 9025 lt_prog_compiler_pic='-PIC' 9026 lt_prog_compiler_static='-Bstatic' 9027 ;; 9028 tcc*) 9029 # Fabrice Bellard et al's Tiny C Compiler 9030 lt_prog_compiler_wl='-Wl,' 9031 lt_prog_compiler_pic='-fPIC' 9032 lt_prog_compiler_static='-static' 9033 ;; 9034 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9035 # Portland Group compilers (*not* the Pentium gcc compiler, 9036 # which looks to be a dead project) 9037 lt_prog_compiler_wl='-Wl,' 9038 lt_prog_compiler_pic='-fpic' 9039 lt_prog_compiler_static='-Bstatic' 9040 ;; 9041 ccc*) 9042 lt_prog_compiler_wl='-Wl,' 9043 # All Alpha code is PIC. 9044 lt_prog_compiler_static='-non_shared' 9045 ;; 9046 xl* | bgxl* | bgf* | mpixl*) 9047 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9048 lt_prog_compiler_wl='-Wl,' 9049 lt_prog_compiler_pic='-qpic' 9050 lt_prog_compiler_static='-qstaticlink' 9051 ;; 9052 *) 9053 case `$CC -V 2>&1 | sed 5q` in 9054 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9055 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9056 lt_prog_compiler_pic='-KPIC' 9057 lt_prog_compiler_static='-Bstatic' 9058 lt_prog_compiler_wl='' 9059 ;; 9060 *Sun\ F* | *Sun*Fortran*) 9061 lt_prog_compiler_pic='-KPIC' 9062 lt_prog_compiler_static='-Bstatic' 9063 lt_prog_compiler_wl='-Qoption ld ' 9064 ;; 9065 *Sun\ C*) 9066 # Sun C 5.9 9067 lt_prog_compiler_pic='-KPIC' 9068 lt_prog_compiler_static='-Bstatic' 9069 lt_prog_compiler_wl='-Wl,' 9070 ;; 9071 *Intel*\ [CF]*Compiler*) 9072 lt_prog_compiler_wl='-Wl,' 9073 lt_prog_compiler_pic='-fPIC' 9074 lt_prog_compiler_static='-static' 9075 ;; 9076 *Portland\ Group*) 9077 lt_prog_compiler_wl='-Wl,' 9078 lt_prog_compiler_pic='-fpic' 9079 lt_prog_compiler_static='-Bstatic' 9080 ;; 9081 esac 9082 ;; 9083 esac 9084 ;; 9085 9086 newsos6) 9087 lt_prog_compiler_pic='-KPIC' 9088 lt_prog_compiler_static='-Bstatic' 9089 ;; 9090 9091 *nto* | *qnx*) 9092 # QNX uses GNU C++, but need to define -shared option too, otherwise 9093 # it will coredump. 9094 lt_prog_compiler_pic='-fPIC -shared' 9095 ;; 9096 9097 osf3* | osf4* | osf5*) 9098 lt_prog_compiler_wl='-Wl,' 9099 # All OSF/1 code is PIC. 9100 lt_prog_compiler_static='-non_shared' 9101 ;; 9102 9103 rdos*) 9104 lt_prog_compiler_static='-non_shared' 9105 ;; 9106 9107 solaris*) 9108 lt_prog_compiler_pic='-KPIC' 9109 lt_prog_compiler_static='-Bstatic' 9110 case $cc_basename in 9111 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9112 lt_prog_compiler_wl='-Qoption ld ';; 9113 *) 9114 lt_prog_compiler_wl='-Wl,';; 9115 esac 9116 ;; 9117 9118 sunos4*) 9119 lt_prog_compiler_wl='-Qoption ld ' 9120 lt_prog_compiler_pic='-PIC' 9121 lt_prog_compiler_static='-Bstatic' 9122 ;; 9123 9124 sysv4 | sysv4.2uw2* | sysv4.3*) 9125 lt_prog_compiler_wl='-Wl,' 9126 lt_prog_compiler_pic='-KPIC' 9127 lt_prog_compiler_static='-Bstatic' 9128 ;; 9129 9130 sysv4*MP*) 9131 if test -d /usr/nec; then 9132 lt_prog_compiler_pic='-Kconform_pic' 9133 lt_prog_compiler_static='-Bstatic' 9134 fi 9135 ;; 9136 9137 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9138 lt_prog_compiler_wl='-Wl,' 9139 lt_prog_compiler_pic='-KPIC' 9140 lt_prog_compiler_static='-Bstatic' 9141 ;; 9142 9143 unicos*) 9144 lt_prog_compiler_wl='-Wl,' 9145 lt_prog_compiler_can_build_shared=no 9146 ;; 9147 9148 uts4*) 9149 lt_prog_compiler_pic='-pic' 9150 lt_prog_compiler_static='-Bstatic' 9151 ;; 9152 9153 *) 9154 lt_prog_compiler_can_build_shared=no 9155 ;; 9156 esac 9157 fi 9158 9159case $host_os in 9160 # For platforms that do not support PIC, -DPIC is meaningless: 9161 *djgpp*) 9162 lt_prog_compiler_pic= 9163 ;; 9164 *) 9165 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9166 ;; 9167esac 9168 9169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9170printf %s "checking for $compiler option to produce PIC... " >&6; } 9171if test ${lt_cv_prog_compiler_pic+y} 9172then : 9173 printf %s "(cached) " >&6 9174else $as_nop 9175 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9176fi 9177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9178printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9179lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9180 9181# 9182# Check to make sure the PIC flag actually works. 9183# 9184if test -n "$lt_prog_compiler_pic"; then 9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9186printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9187if test ${lt_cv_prog_compiler_pic_works+y} 9188then : 9189 printf %s "(cached) " >&6 9190else $as_nop 9191 lt_cv_prog_compiler_pic_works=no 9192 ac_outfile=conftest.$ac_objext 9193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9194 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9195 # Insert the option either (1) after the last *FLAGS variable, or 9196 # (2) before a word containing "conftest.", or (3) at the end. 9197 # Note that $ac_compile itself does not contain backslashes and begins 9198 # with a dollar sign (not a hyphen), so the echo should work correctly. 9199 # The option is referenced via a variable to avoid confusing sed. 9200 lt_compile=`echo "$ac_compile" | $SED \ 9201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9203 -e 's:$: $lt_compiler_flag:'` 9204 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9205 (eval "$lt_compile" 2>conftest.err) 9206 ac_status=$? 9207 cat conftest.err >&5 9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9209 if (exit $ac_status) && test -s "$ac_outfile"; then 9210 # The compiler can only warn and ignore the option if not recognized 9211 # So say no if there are warnings other than the usual output. 9212 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9213 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9214 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9215 lt_cv_prog_compiler_pic_works=yes 9216 fi 9217 fi 9218 $RM conftest* 9219 9220fi 9221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9222printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9223 9224if test yes = "$lt_cv_prog_compiler_pic_works"; then 9225 case $lt_prog_compiler_pic in 9226 "" | " "*) ;; 9227 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9228 esac 9229else 9230 lt_prog_compiler_pic= 9231 lt_prog_compiler_can_build_shared=no 9232fi 9233 9234fi 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246# 9247# Check to make sure the static flag actually works. 9248# 9249wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9251printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9252if test ${lt_cv_prog_compiler_static_works+y} 9253then : 9254 printf %s "(cached) " >&6 9255else $as_nop 9256 lt_cv_prog_compiler_static_works=no 9257 save_LDFLAGS=$LDFLAGS 9258 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9259 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9260 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9261 # The linker can only warn and ignore the option if not recognized 9262 # So say no if there are warnings 9263 if test -s conftest.err; then 9264 # Append any errors to the config.log. 9265 cat conftest.err 1>&5 9266 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9268 if diff conftest.exp conftest.er2 >/dev/null; then 9269 lt_cv_prog_compiler_static_works=yes 9270 fi 9271 else 9272 lt_cv_prog_compiler_static_works=yes 9273 fi 9274 fi 9275 $RM -r conftest* 9276 LDFLAGS=$save_LDFLAGS 9277 9278fi 9279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9280printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9281 9282if test yes = "$lt_cv_prog_compiler_static_works"; then 9283 : 9284else 9285 lt_prog_compiler_static= 9286fi 9287 9288 9289 9290 9291 9292 9293 9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9295printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9296if test ${lt_cv_prog_compiler_c_o+y} 9297then : 9298 printf %s "(cached) " >&6 9299else $as_nop 9300 lt_cv_prog_compiler_c_o=no 9301 $RM -r conftest 2>/dev/null 9302 mkdir conftest 9303 cd conftest 9304 mkdir out 9305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9306 9307 lt_compiler_flag="-o out/conftest2.$ac_objext" 9308 # Insert the option either (1) after the last *FLAGS variable, or 9309 # (2) before a word containing "conftest.", or (3) at the end. 9310 # Note that $ac_compile itself does not contain backslashes and begins 9311 # with a dollar sign (not a hyphen), so the echo should work correctly. 9312 lt_compile=`echo "$ac_compile" | $SED \ 9313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9315 -e 's:$: $lt_compiler_flag:'` 9316 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9317 (eval "$lt_compile" 2>out/conftest.err) 9318 ac_status=$? 9319 cat out/conftest.err >&5 9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9321 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9322 then 9323 # The compiler can only warn and ignore the option if not recognized 9324 # So say no if there are warnings 9325 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9326 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9327 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9328 lt_cv_prog_compiler_c_o=yes 9329 fi 9330 fi 9331 chmod u+w . 2>&5 9332 $RM conftest* 9333 # SGI C++ compiler will create directory out/ii_files/ for 9334 # template instantiation 9335 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9336 $RM out/* && rmdir out 9337 cd .. 9338 $RM -r conftest 9339 $RM conftest* 9340 9341fi 9342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9343printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9344 9345 9346 9347 9348 9349 9350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9351printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9352if test ${lt_cv_prog_compiler_c_o+y} 9353then : 9354 printf %s "(cached) " >&6 9355else $as_nop 9356 lt_cv_prog_compiler_c_o=no 9357 $RM -r conftest 2>/dev/null 9358 mkdir conftest 9359 cd conftest 9360 mkdir out 9361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9362 9363 lt_compiler_flag="-o out/conftest2.$ac_objext" 9364 # Insert the option either (1) after the last *FLAGS variable, or 9365 # (2) before a word containing "conftest.", or (3) at the end. 9366 # Note that $ac_compile itself does not contain backslashes and begins 9367 # with a dollar sign (not a hyphen), so the echo should work correctly. 9368 lt_compile=`echo "$ac_compile" | $SED \ 9369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9371 -e 's:$: $lt_compiler_flag:'` 9372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9373 (eval "$lt_compile" 2>out/conftest.err) 9374 ac_status=$? 9375 cat out/conftest.err >&5 9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9377 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9378 then 9379 # The compiler can only warn and ignore the option if not recognized 9380 # So say no if there are warnings 9381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9382 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9383 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9384 lt_cv_prog_compiler_c_o=yes 9385 fi 9386 fi 9387 chmod u+w . 2>&5 9388 $RM conftest* 9389 # SGI C++ compiler will create directory out/ii_files/ for 9390 # template instantiation 9391 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9392 $RM out/* && rmdir out 9393 cd .. 9394 $RM -r conftest 9395 $RM conftest* 9396 9397fi 9398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9399printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9400 9401 9402 9403 9404hard_links=nottested 9405if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9406 # do not overwrite the value of need_locks provided by the user 9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9408printf %s "checking if we can lock with hard links... " >&6; } 9409 hard_links=yes 9410 $RM conftest* 9411 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9412 touch conftest.a 9413 ln conftest.a conftest.b 2>&5 || hard_links=no 9414 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9416printf "%s\n" "$hard_links" >&6; } 9417 if test no = "$hard_links"; then 9418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9419printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9420 need_locks=warn 9421 fi 9422else 9423 need_locks=no 9424fi 9425 9426 9427 9428 9429 9430 9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9432printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9433 9434 runpath_var= 9435 allow_undefined_flag= 9436 always_export_symbols=no 9437 archive_cmds= 9438 archive_expsym_cmds= 9439 compiler_needs_object=no 9440 enable_shared_with_static_runtimes=no 9441 export_dynamic_flag_spec= 9442 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9443 hardcode_automatic=no 9444 hardcode_direct=no 9445 hardcode_direct_absolute=no 9446 hardcode_libdir_flag_spec= 9447 hardcode_libdir_separator= 9448 hardcode_minus_L=no 9449 hardcode_shlibpath_var=unsupported 9450 inherit_rpath=no 9451 link_all_deplibs=unknown 9452 module_cmds= 9453 module_expsym_cmds= 9454 old_archive_from_new_cmds= 9455 old_archive_from_expsyms_cmds= 9456 thread_safe_flag_spec= 9457 whole_archive_flag_spec= 9458 # include_expsyms should be a list of space-separated symbols to be *always* 9459 # included in the symbol list 9460 include_expsyms= 9461 # exclude_expsyms can be an extended regexp of symbols to exclude 9462 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9463 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9464 # as well as any symbol that contains 'd'. 9465 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9466 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9467 # platforms (ab)use it in PIC code, but their linkers get confused if 9468 # the symbol is explicitly referenced. Since portable code cannot 9469 # rely on this symbol name, it's probably fine to never include it in 9470 # preloaded symbol tables. 9471 # Exclude shared library initialization/finalization symbols. 9472 extract_expsyms_cmds= 9473 9474 case $host_os in 9475 cygwin* | mingw* | pw32* | cegcc*) 9476 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9477 # When not using gcc, we currently assume that we are using 9478 # Microsoft Visual C++. 9479 if test yes != "$GCC"; then 9480 with_gnu_ld=no 9481 fi 9482 ;; 9483 interix*) 9484 # we just hope/assume this is gcc and not c89 (= MSVC++) 9485 with_gnu_ld=yes 9486 ;; 9487 openbsd* | bitrig*) 9488 with_gnu_ld=no 9489 ;; 9490 esac 9491 9492 ld_shlibs=yes 9493 9494 # On some targets, GNU ld is compatible enough with the native linker 9495 # that we're better off using the native interface for both. 9496 lt_use_gnu_ld_interface=no 9497 if test yes = "$with_gnu_ld"; then 9498 case $host_os in 9499 aix*) 9500 # The AIX port of GNU ld has always aspired to compatibility 9501 # with the native linker. However, as the warning in the GNU ld 9502 # block says, versions before 2.19.5* couldn't really create working 9503 # shared libraries, regardless of the interface used. 9504 case `$LD -v 2>&1` in 9505 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9506 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9507 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9508 *) 9509 lt_use_gnu_ld_interface=yes 9510 ;; 9511 esac 9512 ;; 9513 *) 9514 lt_use_gnu_ld_interface=yes 9515 ;; 9516 esac 9517 fi 9518 9519 if test yes = "$lt_use_gnu_ld_interface"; then 9520 # If archive_cmds runs LD, not CC, wlarc should be empty 9521 wlarc='$wl' 9522 9523 # Set some defaults for GNU ld with shared library support. These 9524 # are reset later if shared libraries are not supported. Putting them 9525 # here allows them to be overridden if necessary. 9526 runpath_var=LD_RUN_PATH 9527 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9528 export_dynamic_flag_spec='$wl--export-dynamic' 9529 # ancient GNU ld didn't support --whole-archive et. al. 9530 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9531 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9532 else 9533 whole_archive_flag_spec= 9534 fi 9535 supports_anon_versioning=no 9536 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9537 *GNU\ gold*) supports_anon_versioning=yes ;; 9538 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9539 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9540 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9541 *\ 2.11.*) ;; # other 2.11 versions 9542 *) supports_anon_versioning=yes ;; 9543 esac 9544 9545 # See if GNU ld supports shared libraries. 9546 case $host_os in 9547 aix[3-9]*) 9548 # On AIX/PPC, the GNU linker is very broken 9549 if test ia64 != "$host_cpu"; then 9550 ld_shlibs=no 9551 cat <<_LT_EOF 1>&2 9552 9553*** Warning: the GNU linker, at least up to release 2.19, is reported 9554*** to be unable to reliably create shared libraries on AIX. 9555*** Therefore, libtool is disabling shared libraries support. If you 9556*** really care for shared libraries, you may want to install binutils 9557*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9558*** You will then need to restart the configuration process. 9559 9560_LT_EOF 9561 fi 9562 ;; 9563 9564 amigaos*) 9565 case $host_cpu in 9566 powerpc) 9567 # see comment about AmigaOS4 .so support 9568 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9569 archive_expsym_cmds='' 9570 ;; 9571 m68k) 9572 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)' 9573 hardcode_libdir_flag_spec='-L$libdir' 9574 hardcode_minus_L=yes 9575 ;; 9576 esac 9577 ;; 9578 9579 beos*) 9580 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9581 allow_undefined_flag=unsupported 9582 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9583 # support --undefined. This deserves some investigation. FIXME 9584 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9585 else 9586 ld_shlibs=no 9587 fi 9588 ;; 9589 9590 cygwin* | mingw* | pw32* | cegcc*) 9591 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9592 # as there is no search path for DLLs. 9593 hardcode_libdir_flag_spec='-L$libdir' 9594 export_dynamic_flag_spec='$wl--export-all-symbols' 9595 allow_undefined_flag=unsupported 9596 always_export_symbols=no 9597 enable_shared_with_static_runtimes=yes 9598 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' 9599 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9600 9601 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9603 # If the export-symbols file already is a .def file, use it as 9604 # is; otherwise, prepend EXPORTS... 9605 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9606 cp $export_symbols $output_objdir/$soname.def; 9607 else 9608 echo EXPORTS > $output_objdir/$soname.def; 9609 cat $export_symbols >> $output_objdir/$soname.def; 9610 fi~ 9611 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9612 else 9613 ld_shlibs=no 9614 fi 9615 ;; 9616 9617 haiku*) 9618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9619 link_all_deplibs=yes 9620 ;; 9621 9622 os2*) 9623 hardcode_libdir_flag_spec='-L$libdir' 9624 hardcode_minus_L=yes 9625 allow_undefined_flag=unsupported 9626 shrext_cmds=.dll 9627 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9628 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9629 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9630 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9631 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9632 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9633 emximp -o $lib $output_objdir/$libname.def' 9634 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9635 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9636 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9637 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9638 prefix_cmds="$SED"~ 9639 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9640 prefix_cmds="$prefix_cmds -e 1d"; 9641 fi~ 9642 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9643 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9644 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9645 emximp -o $lib $output_objdir/$libname.def' 9646 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9647 enable_shared_with_static_runtimes=yes 9648 ;; 9649 9650 interix[3-9]*) 9651 hardcode_direct=no 9652 hardcode_shlibpath_var=no 9653 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9654 export_dynamic_flag_spec='$wl-E' 9655 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9656 # Instead, shared libraries are loaded at an image base (0x10000000 by 9657 # default) and relocated if they conflict, which is a slow very memory 9658 # consuming and fragmenting process. To avoid this, we pick a random, 9659 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9660 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9661 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9662 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' 9663 ;; 9664 9665 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9666 tmp_diet=no 9667 if test linux-dietlibc = "$host_os"; then 9668 case $cc_basename in 9669 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9670 esac 9671 fi 9672 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9673 && test no = "$tmp_diet" 9674 then 9675 tmp_addflag=' $pic_flag' 9676 tmp_sharedflag='-shared' 9677 case $cc_basename,$host_cpu in 9678 pgcc*) # Portland Group C compiler 9679 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' 9680 tmp_addflag=' $pic_flag' 9681 ;; 9682 pgf77* | pgf90* | pgf95* | pgfortran*) 9683 # Portland Group f77 and f90 compilers 9684 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' 9685 tmp_addflag=' $pic_flag -Mnomain' ;; 9686 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9687 tmp_addflag=' -i_dynamic' ;; 9688 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9689 tmp_addflag=' -i_dynamic -nofor_main' ;; 9690 ifc* | ifort*) # Intel Fortran compiler 9691 tmp_addflag=' -nofor_main' ;; 9692 lf95*) # Lahey Fortran 8.1 9693 whole_archive_flag_spec= 9694 tmp_sharedflag='--shared' ;; 9695 nagfor*) # NAGFOR 5.3 9696 tmp_sharedflag='-Wl,-shared' ;; 9697 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9698 tmp_sharedflag='-qmkshrobj' 9699 tmp_addflag= ;; 9700 nvcc*) # Cuda Compiler Driver 2.2 9701 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' 9702 compiler_needs_object=yes 9703 ;; 9704 esac 9705 case `$CC -V 2>&1 | sed 5q` in 9706 *Sun\ C*) # Sun C 5.9 9707 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' 9708 compiler_needs_object=yes 9709 tmp_sharedflag='-G' ;; 9710 *Sun\ F*) # Sun Fortran 8.3 9711 tmp_sharedflag='-G' ;; 9712 esac 9713 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9714 9715 if test yes = "$supports_anon_versioning"; then 9716 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9717 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9718 echo "local: *; };" >> $output_objdir/$libname.ver~ 9719 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9720 fi 9721 9722 case $cc_basename in 9723 tcc*) 9724 export_dynamic_flag_spec='-rdynamic' 9725 ;; 9726 xlf* | bgf* | bgxlf* | mpixlf*) 9727 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9728 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9729 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9730 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9731 if test yes = "$supports_anon_versioning"; then 9732 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9733 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9734 echo "local: *; };" >> $output_objdir/$libname.ver~ 9735 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9736 fi 9737 ;; 9738 esac 9739 else 9740 ld_shlibs=no 9741 fi 9742 ;; 9743 9744 netbsd*) 9745 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9746 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9747 wlarc= 9748 else 9749 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9750 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9751 fi 9752 ;; 9753 9754 solaris*) 9755 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9756 ld_shlibs=no 9757 cat <<_LT_EOF 1>&2 9758 9759*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9760*** create shared libraries on Solaris systems. Therefore, libtool 9761*** is disabling shared libraries support. We urge you to upgrade GNU 9762*** binutils to release 2.9.1 or newer. Another option is to modify 9763*** your PATH or compiler configuration so that the native linker is 9764*** used, and then restart. 9765 9766_LT_EOF 9767 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9768 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9769 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9770 else 9771 ld_shlibs=no 9772 fi 9773 ;; 9774 9775 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9776 case `$LD -v 2>&1` in 9777 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9778 ld_shlibs=no 9779 cat <<_LT_EOF 1>&2 9780 9781*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9782*** reliably create shared libraries on SCO systems. Therefore, libtool 9783*** is disabling shared libraries support. We urge you to upgrade GNU 9784*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9785*** your PATH or compiler configuration so that the native linker is 9786*** used, and then restart. 9787 9788_LT_EOF 9789 ;; 9790 *) 9791 # For security reasons, it is highly recommended that you always 9792 # use absolute paths for naming shared libraries, and exclude the 9793 # DT_RUNPATH tag from executables and libraries. But doing so 9794 # requires that you compile everything twice, which is a pain. 9795 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9796 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9798 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9799 else 9800 ld_shlibs=no 9801 fi 9802 ;; 9803 esac 9804 ;; 9805 9806 sunos4*) 9807 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9808 wlarc= 9809 hardcode_direct=yes 9810 hardcode_shlibpath_var=no 9811 ;; 9812 9813 *) 9814 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9815 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9816 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9817 else 9818 ld_shlibs=no 9819 fi 9820 ;; 9821 esac 9822 9823 if test no = "$ld_shlibs"; then 9824 runpath_var= 9825 hardcode_libdir_flag_spec= 9826 export_dynamic_flag_spec= 9827 whole_archive_flag_spec= 9828 fi 9829 else 9830 # PORTME fill in a description of your system's linker (not GNU ld) 9831 case $host_os in 9832 aix3*) 9833 allow_undefined_flag=unsupported 9834 always_export_symbols=yes 9835 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' 9836 # Note: this linker hardcodes the directories in LIBPATH if there 9837 # are no directories specified by -L. 9838 hardcode_minus_L=yes 9839 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9840 # Neither direct hardcoding nor static linking is supported with a 9841 # broken collect2. 9842 hardcode_direct=unsupported 9843 fi 9844 ;; 9845 9846 aix[4-9]*) 9847 if test ia64 = "$host_cpu"; then 9848 # On IA64, the linker does run time linking by default, so we don't 9849 # have to do anything special. 9850 aix_use_runtimelinking=no 9851 exp_sym_flag='-Bexport' 9852 no_entry_flag= 9853 else 9854 # If we're using GNU nm, then we don't want the "-C" option. 9855 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9856 # Without the "-l" option, or with the "-B" option, AIX nm treats 9857 # weak defined symbols like other global defined symbols, whereas 9858 # GNU nm marks them as "W". 9859 # While the 'weak' keyword is ignored in the Export File, we need 9860 # it in the Import File for the 'aix-soname' feature, so we have 9861 # to replace the "-B" option with "-P" for AIX nm. 9862 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9863 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9864 else 9865 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9866 fi 9867 aix_use_runtimelinking=no 9868 9869 # Test if we are trying to use run time linking or normal 9870 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9871 # have runtime linking enabled, and use it for executables. 9872 # For shared libraries, we enable/disable runtime linking 9873 # depending on the kind of the shared library created - 9874 # when "with_aix_soname,aix_use_runtimelinking" is: 9875 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9876 # "aix,yes" lib.so shared, rtl:yes, for executables 9877 # lib.a static archive 9878 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9879 # lib.a(lib.so.V) shared, rtl:no, for executables 9880 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9881 # lib.a(lib.so.V) shared, rtl:no 9882 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9883 # lib.a static archive 9884 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9885 for ld_flag in $LDFLAGS; do 9886 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9887 aix_use_runtimelinking=yes 9888 break 9889 fi 9890 done 9891 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9892 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9893 # so we don't have lib.a shared libs to link our executables. 9894 # We have to force runtime linking in this case. 9895 aix_use_runtimelinking=yes 9896 LDFLAGS="$LDFLAGS -Wl,-brtl" 9897 fi 9898 ;; 9899 esac 9900 9901 exp_sym_flag='-bexport' 9902 no_entry_flag='-bnoentry' 9903 fi 9904 9905 # When large executables or shared objects are built, AIX ld can 9906 # have problems creating the table of contents. If linking a library 9907 # or program results in "error TOC overflow" add -mminimal-toc to 9908 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9909 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9910 9911 archive_cmds='' 9912 hardcode_direct=yes 9913 hardcode_direct_absolute=yes 9914 hardcode_libdir_separator=':' 9915 link_all_deplibs=yes 9916 file_list_spec='$wl-f,' 9917 case $with_aix_soname,$aix_use_runtimelinking in 9918 aix,*) ;; # traditional, no import file 9919 svr4,* | *,yes) # use import file 9920 # The Import File defines what to hardcode. 9921 hardcode_direct=no 9922 hardcode_direct_absolute=no 9923 ;; 9924 esac 9925 9926 if test yes = "$GCC"; then 9927 case $host_os in aix4.[012]|aix4.[012].*) 9928 # We only want to do this on AIX 4.2 and lower, the check 9929 # below for broken collect2 doesn't work under 4.3+ 9930 collect2name=`$CC -print-prog-name=collect2` 9931 if test -f "$collect2name" && 9932 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9933 then 9934 # We have reworked collect2 9935 : 9936 else 9937 # We have old collect2 9938 hardcode_direct=unsupported 9939 # It fails to find uninstalled libraries when the uninstalled 9940 # path is not listed in the libpath. Setting hardcode_minus_L 9941 # to unsupported forces relinking 9942 hardcode_minus_L=yes 9943 hardcode_libdir_flag_spec='-L$libdir' 9944 hardcode_libdir_separator= 9945 fi 9946 ;; 9947 esac 9948 shared_flag='-shared' 9949 if test yes = "$aix_use_runtimelinking"; then 9950 shared_flag="$shared_flag "'$wl-G' 9951 fi 9952 # Need to ensure runtime linking is disabled for the traditional 9953 # shared library, or the linker may eventually find shared libraries 9954 # /with/ Import File - we do not want to mix them. 9955 shared_flag_aix='-shared' 9956 shared_flag_svr4='-shared $wl-G' 9957 else 9958 # not using gcc 9959 if test ia64 = "$host_cpu"; then 9960 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9961 # chokes on -Wl,-G. The following line is correct: 9962 shared_flag='-G' 9963 else 9964 if test yes = "$aix_use_runtimelinking"; then 9965 shared_flag='$wl-G' 9966 else 9967 shared_flag='$wl-bM:SRE' 9968 fi 9969 shared_flag_aix='$wl-bM:SRE' 9970 shared_flag_svr4='$wl-G' 9971 fi 9972 fi 9973 9974 export_dynamic_flag_spec='$wl-bexpall' 9975 # It seems that -bexpall does not export symbols beginning with 9976 # underscore (_), so it is better to generate a list of symbols to export. 9977 always_export_symbols=yes 9978 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9979 # Warning - without using the other runtime loading flags (-brtl), 9980 # -berok will link without error, but may produce a broken library. 9981 allow_undefined_flag='-berok' 9982 # Determine the default libpath from the value encoded in an 9983 # empty executable. 9984 if test set = "${lt_cv_aix_libpath+set}"; then 9985 aix_libpath=$lt_cv_aix_libpath 9986else 9987 if test ${lt_cv_aix_libpath_+y} 9988then : 9989 printf %s "(cached) " >&6 9990else $as_nop 9991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9992/* end confdefs.h. */ 9993 9994int 9995main (void) 9996{ 9997 9998 ; 9999 return 0; 10000} 10001_ACEOF 10002if ac_fn_c_try_link "$LINENO" 10003then : 10004 10005 lt_aix_libpath_sed=' 10006 /Import File Strings/,/^$/ { 10007 /^0/ { 10008 s/^0 *\([^ ]*\) *$/\1/ 10009 p 10010 } 10011 }' 10012 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10013 # Check for a 64-bit object if we didn't find anything. 10014 if test -z "$lt_cv_aix_libpath_"; then 10015 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10016 fi 10017fi 10018rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10019 conftest$ac_exeext conftest.$ac_ext 10020 if test -z "$lt_cv_aix_libpath_"; then 10021 lt_cv_aix_libpath_=/usr/lib:/lib 10022 fi 10023 10024fi 10025 10026 aix_libpath=$lt_cv_aix_libpath_ 10027fi 10028 10029 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10030 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10031 else 10032 if test ia64 = "$host_cpu"; then 10033 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10034 allow_undefined_flag="-z nodefs" 10035 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" 10036 else 10037 # Determine the default libpath from the value encoded in an 10038 # empty executable. 10039 if test set = "${lt_cv_aix_libpath+set}"; then 10040 aix_libpath=$lt_cv_aix_libpath 10041else 10042 if test ${lt_cv_aix_libpath_+y} 10043then : 10044 printf %s "(cached) " >&6 10045else $as_nop 10046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10047/* end confdefs.h. */ 10048 10049int 10050main (void) 10051{ 10052 10053 ; 10054 return 0; 10055} 10056_ACEOF 10057if ac_fn_c_try_link "$LINENO" 10058then : 10059 10060 lt_aix_libpath_sed=' 10061 /Import File Strings/,/^$/ { 10062 /^0/ { 10063 s/^0 *\([^ ]*\) *$/\1/ 10064 p 10065 } 10066 }' 10067 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10068 # Check for a 64-bit object if we didn't find anything. 10069 if test -z "$lt_cv_aix_libpath_"; then 10070 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10071 fi 10072fi 10073rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10074 conftest$ac_exeext conftest.$ac_ext 10075 if test -z "$lt_cv_aix_libpath_"; then 10076 lt_cv_aix_libpath_=/usr/lib:/lib 10077 fi 10078 10079fi 10080 10081 aix_libpath=$lt_cv_aix_libpath_ 10082fi 10083 10084 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10085 # Warning - without using the other run time loading flags, 10086 # -berok will link without error, but may produce a broken library. 10087 no_undefined_flag=' $wl-bernotok' 10088 allow_undefined_flag=' $wl-berok' 10089 if test yes = "$with_gnu_ld"; then 10090 # We only use this code for GNU lds that support --whole-archive. 10091 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10092 else 10093 # Exported symbols can be pulled into shared objects from archives 10094 whole_archive_flag_spec='$convenience' 10095 fi 10096 archive_cmds_need_lc=yes 10097 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10098 # -brtl affects multiple linker settings, -berok does not and is overridden later 10099 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10100 if test svr4 != "$with_aix_soname"; then 10101 # This is similar to how AIX traditionally builds its shared libraries. 10102 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10103 fi 10104 if test aix != "$with_aix_soname"; then 10105 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10106 else 10107 # used by -dlpreopen to get the symbols 10108 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10109 fi 10110 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10111 fi 10112 fi 10113 ;; 10114 10115 amigaos*) 10116 case $host_cpu in 10117 powerpc) 10118 # see comment about AmigaOS4 .so support 10119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10120 archive_expsym_cmds='' 10121 ;; 10122 m68k) 10123 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)' 10124 hardcode_libdir_flag_spec='-L$libdir' 10125 hardcode_minus_L=yes 10126 ;; 10127 esac 10128 ;; 10129 10130 bsdi[45]*) 10131 export_dynamic_flag_spec=-rdynamic 10132 ;; 10133 10134 cygwin* | mingw* | pw32* | cegcc*) 10135 # When not using gcc, we currently assume that we are using 10136 # Microsoft Visual C++. 10137 # hardcode_libdir_flag_spec is actually meaningless, as there is 10138 # no search path for DLLs. 10139 case $cc_basename in 10140 cl*) 10141 # Native MSVC 10142 hardcode_libdir_flag_spec=' ' 10143 allow_undefined_flag=unsupported 10144 always_export_symbols=yes 10145 file_list_spec='@' 10146 # Tell ltmain to make .lib files, not .a files. 10147 libext=lib 10148 # Tell ltmain to make .dll files, not .so files. 10149 shrext_cmds=.dll 10150 # FIXME: Setting linknames here is a bad hack. 10151 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10152 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10153 cp "$export_symbols" "$output_objdir/$soname.def"; 10154 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10155 else 10156 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10157 fi~ 10158 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10159 linknames=' 10160 # The linker will not automatically build a static lib if we build a DLL. 10161 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10162 enable_shared_with_static_runtimes=yes 10163 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10164 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10165 # Don't use ranlib 10166 old_postinstall_cmds='chmod 644 $oldlib' 10167 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10168 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10169 case $lt_outputfile in 10170 *.exe|*.EXE) ;; 10171 *) 10172 lt_outputfile=$lt_outputfile.exe 10173 lt_tool_outputfile=$lt_tool_outputfile.exe 10174 ;; 10175 esac~ 10176 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10177 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10178 $RM "$lt_outputfile.manifest"; 10179 fi' 10180 ;; 10181 *) 10182 # Assume MSVC wrapper 10183 hardcode_libdir_flag_spec=' ' 10184 allow_undefined_flag=unsupported 10185 # Tell ltmain to make .lib files, not .a files. 10186 libext=lib 10187 # Tell ltmain to make .dll files, not .so files. 10188 shrext_cmds=.dll 10189 # FIXME: Setting linknames here is a bad hack. 10190 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10191 # The linker will automatically build a .lib file if we build a DLL. 10192 old_archive_from_new_cmds='true' 10193 # FIXME: Should let the user specify the lib program. 10194 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10195 enable_shared_with_static_runtimes=yes 10196 ;; 10197 esac 10198 ;; 10199 10200 darwin* | rhapsody*) 10201 10202 10203 archive_cmds_need_lc=no 10204 hardcode_direct=no 10205 hardcode_automatic=yes 10206 hardcode_shlibpath_var=unsupported 10207 if test yes = "$lt_cv_ld_force_load"; then 10208 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\"`' 10209 10210 else 10211 whole_archive_flag_spec='' 10212 fi 10213 link_all_deplibs=yes 10214 allow_undefined_flag=$_lt_dar_allow_undefined 10215 case $cc_basename in 10216 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10217 *) _lt_dar_can_shared=$GCC ;; 10218 esac 10219 if test yes = "$_lt_dar_can_shared"; then 10220 output_verbose_link_cmd=func_echo_all 10221 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10222 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10223 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" 10224 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" 10225 10226 else 10227 ld_shlibs=no 10228 fi 10229 10230 ;; 10231 10232 dgux*) 10233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10234 hardcode_libdir_flag_spec='-L$libdir' 10235 hardcode_shlibpath_var=no 10236 ;; 10237 10238 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10239 # support. Future versions do this automatically, but an explicit c++rt0.o 10240 # does not break anything, and helps significantly (at the cost of a little 10241 # extra space). 10242 freebsd2.2*) 10243 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10244 hardcode_libdir_flag_spec='-R$libdir' 10245 hardcode_direct=yes 10246 hardcode_shlibpath_var=no 10247 ;; 10248 10249 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10250 freebsd2.*) 10251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10252 hardcode_direct=yes 10253 hardcode_minus_L=yes 10254 hardcode_shlibpath_var=no 10255 ;; 10256 10257 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10258 freebsd* | dragonfly*) 10259 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10260 hardcode_libdir_flag_spec='-R$libdir' 10261 hardcode_direct=yes 10262 hardcode_shlibpath_var=no 10263 ;; 10264 10265 hpux9*) 10266 if test yes = "$GCC"; then 10267 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10268 else 10269 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10270 fi 10271 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10272 hardcode_libdir_separator=: 10273 hardcode_direct=yes 10274 10275 # hardcode_minus_L: Not really in the search PATH, 10276 # but as the default location of the library. 10277 hardcode_minus_L=yes 10278 export_dynamic_flag_spec='$wl-E' 10279 ;; 10280 10281 hpux10*) 10282 if test yes,no = "$GCC,$with_gnu_ld"; then 10283 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10284 else 10285 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10286 fi 10287 if test no = "$with_gnu_ld"; then 10288 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10289 hardcode_libdir_separator=: 10290 hardcode_direct=yes 10291 hardcode_direct_absolute=yes 10292 export_dynamic_flag_spec='$wl-E' 10293 # hardcode_minus_L: Not really in the search PATH, 10294 # but as the default location of the library. 10295 hardcode_minus_L=yes 10296 fi 10297 ;; 10298 10299 hpux11*) 10300 if test yes,no = "$GCC,$with_gnu_ld"; then 10301 case $host_cpu in 10302 hppa*64*) 10303 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10304 ;; 10305 ia64*) 10306 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10307 ;; 10308 *) 10309 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10310 ;; 10311 esac 10312 else 10313 case $host_cpu in 10314 hppa*64*) 10315 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10316 ;; 10317 ia64*) 10318 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10319 ;; 10320 *) 10321 10322 # Older versions of the 11.00 compiler do not understand -b yet 10323 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10325printf %s "checking if $CC understands -b... " >&6; } 10326if test ${lt_cv_prog_compiler__b+y} 10327then : 10328 printf %s "(cached) " >&6 10329else $as_nop 10330 lt_cv_prog_compiler__b=no 10331 save_LDFLAGS=$LDFLAGS 10332 LDFLAGS="$LDFLAGS -b" 10333 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10334 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10335 # The linker can only warn and ignore the option if not recognized 10336 # So say no if there are warnings 10337 if test -s conftest.err; then 10338 # Append any errors to the config.log. 10339 cat conftest.err 1>&5 10340 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10342 if diff conftest.exp conftest.er2 >/dev/null; then 10343 lt_cv_prog_compiler__b=yes 10344 fi 10345 else 10346 lt_cv_prog_compiler__b=yes 10347 fi 10348 fi 10349 $RM -r conftest* 10350 LDFLAGS=$save_LDFLAGS 10351 10352fi 10353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10354printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10355 10356if test yes = "$lt_cv_prog_compiler__b"; then 10357 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10358else 10359 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10360fi 10361 10362 ;; 10363 esac 10364 fi 10365 if test no = "$with_gnu_ld"; then 10366 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10367 hardcode_libdir_separator=: 10368 10369 case $host_cpu in 10370 hppa*64*|ia64*) 10371 hardcode_direct=no 10372 hardcode_shlibpath_var=no 10373 ;; 10374 *) 10375 hardcode_direct=yes 10376 hardcode_direct_absolute=yes 10377 export_dynamic_flag_spec='$wl-E' 10378 10379 # hardcode_minus_L: Not really in the search PATH, 10380 # but as the default location of the library. 10381 hardcode_minus_L=yes 10382 ;; 10383 esac 10384 fi 10385 ;; 10386 10387 irix5* | irix6* | nonstopux*) 10388 if test yes = "$GCC"; then 10389 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' 10390 # Try to use the -exported_symbol ld option, if it does not 10391 # work, assume that -exports_file does not work either and 10392 # implicitly export all symbols. 10393 # This should be the same for all languages, so no per-tag cache variable. 10394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10395printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10396if test ${lt_cv_irix_exported_symbol+y} 10397then : 10398 printf %s "(cached) " >&6 10399else $as_nop 10400 save_LDFLAGS=$LDFLAGS 10401 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10403/* end confdefs.h. */ 10404int foo (void) { return 0; } 10405_ACEOF 10406if ac_fn_c_try_link "$LINENO" 10407then : 10408 lt_cv_irix_exported_symbol=yes 10409else $as_nop 10410 lt_cv_irix_exported_symbol=no 10411fi 10412rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10413 conftest$ac_exeext conftest.$ac_ext 10414 LDFLAGS=$save_LDFLAGS 10415fi 10416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10417printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10418 if test yes = "$lt_cv_irix_exported_symbol"; then 10419 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' 10420 fi 10421 else 10422 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' 10423 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' 10424 fi 10425 archive_cmds_need_lc='no' 10426 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10427 hardcode_libdir_separator=: 10428 inherit_rpath=yes 10429 link_all_deplibs=yes 10430 ;; 10431 10432 linux*) 10433 case $cc_basename in 10434 tcc*) 10435 # Fabrice Bellard et al's Tiny C Compiler 10436 ld_shlibs=yes 10437 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10438 ;; 10439 esac 10440 ;; 10441 10442 netbsd*) 10443 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10444 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10445 else 10446 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10447 fi 10448 hardcode_libdir_flag_spec='-R$libdir' 10449 hardcode_direct=yes 10450 hardcode_shlibpath_var=no 10451 ;; 10452 10453 newsos6) 10454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10455 hardcode_direct=yes 10456 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10457 hardcode_libdir_separator=: 10458 hardcode_shlibpath_var=no 10459 ;; 10460 10461 *nto* | *qnx*) 10462 ;; 10463 10464 openbsd* | bitrig*) 10465 if test -f /usr/libexec/ld.so; then 10466 hardcode_direct=yes 10467 hardcode_shlibpath_var=no 10468 hardcode_direct_absolute=yes 10469 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10470 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10471 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10472 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10473 export_dynamic_flag_spec='$wl-E' 10474 else 10475 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10476 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10477 fi 10478 else 10479 ld_shlibs=no 10480 fi 10481 ;; 10482 10483 os2*) 10484 hardcode_libdir_flag_spec='-L$libdir' 10485 hardcode_minus_L=yes 10486 allow_undefined_flag=unsupported 10487 shrext_cmds=.dll 10488 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10489 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10490 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10491 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10492 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10493 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10494 emximp -o $lib $output_objdir/$libname.def' 10495 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10496 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10497 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10498 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10499 prefix_cmds="$SED"~ 10500 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10501 prefix_cmds="$prefix_cmds -e 1d"; 10502 fi~ 10503 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10504 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10505 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10506 emximp -o $lib $output_objdir/$libname.def' 10507 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10508 enable_shared_with_static_runtimes=yes 10509 ;; 10510 10511 osf3*) 10512 if test yes = "$GCC"; then 10513 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10514 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' 10515 else 10516 allow_undefined_flag=' -expect_unresolved \*' 10517 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' 10518 fi 10519 archive_cmds_need_lc='no' 10520 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10521 hardcode_libdir_separator=: 10522 ;; 10523 10524 osf4* | osf5*) # as osf3* with the addition of -msym flag 10525 if test yes = "$GCC"; then 10526 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10527 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' 10528 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10529 else 10530 allow_undefined_flag=' -expect_unresolved \*' 10531 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' 10532 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~ 10533 $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' 10534 10535 # Both c and cxx compiler support -rpath directly 10536 hardcode_libdir_flag_spec='-rpath $libdir' 10537 fi 10538 archive_cmds_need_lc='no' 10539 hardcode_libdir_separator=: 10540 ;; 10541 10542 solaris*) 10543 no_undefined_flag=' -z defs' 10544 if test yes = "$GCC"; then 10545 wlarc='$wl' 10546 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10547 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10548 $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' 10549 else 10550 case `$CC -V 2>&1` in 10551 *"Compilers 5.0"*) 10552 wlarc='' 10553 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10554 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10555 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10556 ;; 10557 *) 10558 wlarc='$wl' 10559 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10560 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10561 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10562 ;; 10563 esac 10564 fi 10565 hardcode_libdir_flag_spec='-R$libdir' 10566 hardcode_shlibpath_var=no 10567 case $host_os in 10568 solaris2.[0-5] | solaris2.[0-5].*) ;; 10569 *) 10570 # The compiler driver will combine and reorder linker options, 10571 # but understands '-z linker_flag'. GCC discards it without '$wl', 10572 # but is careful enough not to reorder. 10573 # Supported since Solaris 2.6 (maybe 2.5.1?) 10574 if test yes = "$GCC"; then 10575 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10576 else 10577 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10578 fi 10579 ;; 10580 esac 10581 link_all_deplibs=yes 10582 ;; 10583 10584 sunos4*) 10585 if test sequent = "$host_vendor"; then 10586 # Use $CC to link under sequent, because it throws in some extra .o 10587 # files that make .init and .fini sections work. 10588 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10589 else 10590 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10591 fi 10592 hardcode_libdir_flag_spec='-L$libdir' 10593 hardcode_direct=yes 10594 hardcode_minus_L=yes 10595 hardcode_shlibpath_var=no 10596 ;; 10597 10598 sysv4) 10599 case $host_vendor in 10600 sni) 10601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10602 hardcode_direct=yes # is this really true??? 10603 ;; 10604 siemens) 10605 ## LD is ld it makes a PLAMLIB 10606 ## CC just makes a GrossModule. 10607 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10608 reload_cmds='$CC -r -o $output$reload_objs' 10609 hardcode_direct=no 10610 ;; 10611 motorola) 10612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10613 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10614 ;; 10615 esac 10616 runpath_var='LD_RUN_PATH' 10617 hardcode_shlibpath_var=no 10618 ;; 10619 10620 sysv4.3*) 10621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10622 hardcode_shlibpath_var=no 10623 export_dynamic_flag_spec='-Bexport' 10624 ;; 10625 10626 sysv4*MP*) 10627 if test -d /usr/nec; then 10628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10629 hardcode_shlibpath_var=no 10630 runpath_var=LD_RUN_PATH 10631 hardcode_runpath_var=yes 10632 ld_shlibs=yes 10633 fi 10634 ;; 10635 10636 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10637 no_undefined_flag='$wl-z,text' 10638 archive_cmds_need_lc=no 10639 hardcode_shlibpath_var=no 10640 runpath_var='LD_RUN_PATH' 10641 10642 if test yes = "$GCC"; then 10643 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10644 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10645 else 10646 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10647 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10648 fi 10649 ;; 10650 10651 sysv5* | sco3.2v5* | sco5v6*) 10652 # Note: We CANNOT use -z defs as we might desire, because we do not 10653 # link with -lc, and that would cause any symbols used from libc to 10654 # always be unresolved, which means just about no library would 10655 # ever link correctly. If we're not using GNU ld we use -z text 10656 # though, which does catch some bad symbols but isn't as heavy-handed 10657 # as -z defs. 10658 no_undefined_flag='$wl-z,text' 10659 allow_undefined_flag='$wl-z,nodefs' 10660 archive_cmds_need_lc=no 10661 hardcode_shlibpath_var=no 10662 hardcode_libdir_flag_spec='$wl-R,$libdir' 10663 hardcode_libdir_separator=':' 10664 link_all_deplibs=yes 10665 export_dynamic_flag_spec='$wl-Bexport' 10666 runpath_var='LD_RUN_PATH' 10667 10668 if test yes = "$GCC"; then 10669 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10670 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10671 else 10672 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10673 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10674 fi 10675 ;; 10676 10677 uts4*) 10678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10679 hardcode_libdir_flag_spec='-L$libdir' 10680 hardcode_shlibpath_var=no 10681 ;; 10682 10683 *) 10684 ld_shlibs=no 10685 ;; 10686 esac 10687 10688 if test sni = "$host_vendor"; then 10689 case $host in 10690 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10691 export_dynamic_flag_spec='$wl-Blargedynsym' 10692 ;; 10693 esac 10694 fi 10695 fi 10696 10697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10698printf "%s\n" "$ld_shlibs" >&6; } 10699test no = "$ld_shlibs" && can_build_shared=no 10700 10701with_gnu_ld=$with_gnu_ld 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717# 10718# Do we need to explicitly link libc? 10719# 10720case "x$archive_cmds_need_lc" in 10721x|xyes) 10722 # Assume -lc should be added 10723 archive_cmds_need_lc=yes 10724 10725 if test yes,yes = "$GCC,$enable_shared"; then 10726 case $archive_cmds in 10727 *'~'*) 10728 # FIXME: we may have to deal with multi-command sequences. 10729 ;; 10730 '$CC '*) 10731 # Test whether the compiler implicitly links with -lc since on some 10732 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10733 # to ld, don't add -lc before -lgcc. 10734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10735printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10736if test ${lt_cv_archive_cmds_need_lc+y} 10737then : 10738 printf %s "(cached) " >&6 10739else $as_nop 10740 $RM conftest* 10741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10742 10743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10744 (eval $ac_compile) 2>&5 10745 ac_status=$? 10746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10747 test $ac_status = 0; } 2>conftest.err; then 10748 soname=conftest 10749 lib=conftest 10750 libobjs=conftest.$ac_objext 10751 deplibs= 10752 wl=$lt_prog_compiler_wl 10753 pic_flag=$lt_prog_compiler_pic 10754 compiler_flags=-v 10755 linker_flags=-v 10756 verstring= 10757 output_objdir=. 10758 libname=conftest 10759 lt_save_allow_undefined_flag=$allow_undefined_flag 10760 allow_undefined_flag= 10761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10762 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10763 ac_status=$? 10764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10765 test $ac_status = 0; } 10766 then 10767 lt_cv_archive_cmds_need_lc=no 10768 else 10769 lt_cv_archive_cmds_need_lc=yes 10770 fi 10771 allow_undefined_flag=$lt_save_allow_undefined_flag 10772 else 10773 cat conftest.err 1>&5 10774 fi 10775 $RM conftest* 10776 10777fi 10778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10779printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10780 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10781 ;; 10782 esac 10783 fi 10784 ;; 10785esac 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10939printf %s "checking dynamic linker characteristics... " >&6; } 10940 10941if test yes = "$GCC"; then 10942 case $host_os in 10943 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10944 *) lt_awk_arg='/^libraries:/' ;; 10945 esac 10946 case $host_os in 10947 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10948 *) lt_sed_strip_eq='s|=/|/|g' ;; 10949 esac 10950 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10951 case $lt_search_path_spec in 10952 *\;*) 10953 # if the path contains ";" then we assume it to be the separator 10954 # otherwise default to the standard path separator (i.e. ":") - it is 10955 # assumed that no part of a normal pathname contains ";" but that should 10956 # okay in the real world where ";" in dirpaths is itself problematic. 10957 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10958 ;; 10959 *) 10960 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10961 ;; 10962 esac 10963 # Ok, now we have the path, separated by spaces, we can step through it 10964 # and add multilib dir if necessary... 10965 lt_tmp_lt_search_path_spec= 10966 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10967 # ...but if some path component already ends with the multilib dir we assume 10968 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10969 case "$lt_multi_os_dir; $lt_search_path_spec " in 10970 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10971 lt_multi_os_dir= 10972 ;; 10973 esac 10974 for lt_sys_path in $lt_search_path_spec; do 10975 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10976 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10977 elif test -n "$lt_multi_os_dir"; then 10978 test -d "$lt_sys_path" && \ 10979 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10980 fi 10981 done 10982 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10983BEGIN {RS = " "; FS = "/|\n";} { 10984 lt_foo = ""; 10985 lt_count = 0; 10986 for (lt_i = NF; lt_i > 0; lt_i--) { 10987 if ($lt_i != "" && $lt_i != ".") { 10988 if ($lt_i == "..") { 10989 lt_count++; 10990 } else { 10991 if (lt_count == 0) { 10992 lt_foo = "/" $lt_i lt_foo; 10993 } else { 10994 lt_count--; 10995 } 10996 } 10997 } 10998 } 10999 if (lt_foo != "") { lt_freq[lt_foo]++; } 11000 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11001}'` 11002 # AWK program above erroneously prepends '/' to C:/dos/paths 11003 # for these hosts. 11004 case $host_os in 11005 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11006 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11007 esac 11008 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11009else 11010 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11011fi 11012library_names_spec= 11013libname_spec='lib$name' 11014soname_spec= 11015shrext_cmds=.so 11016postinstall_cmds= 11017postuninstall_cmds= 11018finish_cmds= 11019finish_eval= 11020shlibpath_var= 11021shlibpath_overrides_runpath=unknown 11022version_type=none 11023dynamic_linker="$host_os ld.so" 11024sys_lib_dlsearch_path_spec="/lib /usr/lib" 11025need_lib_prefix=unknown 11026hardcode_into_libs=no 11027 11028# when you set need_version to no, make sure it does not cause -set_version 11029# flags to be left without arguments 11030need_version=unknown 11031 11032 11033 11034case $host_os in 11035aix3*) 11036 version_type=linux # correct to gnu/linux during the next big refactor 11037 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11038 shlibpath_var=LIBPATH 11039 11040 # AIX 3 has no versioning support, so we append a major version to the name. 11041 soname_spec='$libname$release$shared_ext$major' 11042 ;; 11043 11044aix[4-9]*) 11045 version_type=linux # correct to gnu/linux during the next big refactor 11046 need_lib_prefix=no 11047 need_version=no 11048 hardcode_into_libs=yes 11049 if test ia64 = "$host_cpu"; then 11050 # AIX 5 supports IA64 11051 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11052 shlibpath_var=LD_LIBRARY_PATH 11053 else 11054 # With GCC up to 2.95.x, collect2 would create an import file 11055 # for dependence libraries. The import file would start with 11056 # the line '#! .'. This would cause the generated library to 11057 # depend on '.', always an invalid library. This was fixed in 11058 # development snapshots of GCC prior to 3.0. 11059 case $host_os in 11060 aix4 | aix4.[01] | aix4.[01].*) 11061 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11062 echo ' yes ' 11063 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11064 : 11065 else 11066 can_build_shared=no 11067 fi 11068 ;; 11069 esac 11070 # Using Import Files as archive members, it is possible to support 11071 # filename-based versioning of shared library archives on AIX. While 11072 # this would work for both with and without runtime linking, it will 11073 # prevent static linking of such archives. So we do filename-based 11074 # shared library versioning with .so extension only, which is used 11075 # when both runtime linking and shared linking is enabled. 11076 # Unfortunately, runtime linking may impact performance, so we do 11077 # not want this to be the default eventually. Also, we use the 11078 # versioned .so libs for executables only if there is the -brtl 11079 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11080 # To allow for filename-based versioning support, we need to create 11081 # libNAME.so.V as an archive file, containing: 11082 # *) an Import File, referring to the versioned filename of the 11083 # archive as well as the shared archive member, telling the 11084 # bitwidth (32 or 64) of that shared object, and providing the 11085 # list of exported symbols of that shared object, eventually 11086 # decorated with the 'weak' keyword 11087 # *) the shared object with the F_LOADONLY flag set, to really avoid 11088 # it being seen by the linker. 11089 # At run time we better use the real file rather than another symlink, 11090 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11091 11092 case $with_aix_soname,$aix_use_runtimelinking in 11093 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11094 # soname into executable. Probably we can add versioning support to 11095 # collect2, so additional links can be useful in future. 11096 aix,yes) # traditional libtool 11097 dynamic_linker='AIX unversionable lib.so' 11098 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11099 # instead of lib<name>.a to let people know that these are not 11100 # typical AIX shared libraries. 11101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11102 ;; 11103 aix,no) # traditional AIX only 11104 dynamic_linker='AIX lib.a(lib.so.V)' 11105 # We preserve .a as extension for shared libraries through AIX4.2 11106 # and later when we are not doing run time linking. 11107 library_names_spec='$libname$release.a $libname.a' 11108 soname_spec='$libname$release$shared_ext$major' 11109 ;; 11110 svr4,*) # full svr4 only 11111 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11112 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11113 # We do not specify a path in Import Files, so LIBPATH fires. 11114 shlibpath_overrides_runpath=yes 11115 ;; 11116 *,yes) # both, prefer svr4 11117 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11118 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11119 # unpreferred sharedlib libNAME.a needs extra handling 11120 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11121 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11122 # We do not specify a path in Import Files, so LIBPATH fires. 11123 shlibpath_overrides_runpath=yes 11124 ;; 11125 *,no) # both, prefer aix 11126 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11127 library_names_spec='$libname$release.a $libname.a' 11128 soname_spec='$libname$release$shared_ext$major' 11129 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11130 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11131 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11132 ;; 11133 esac 11134 shlibpath_var=LIBPATH 11135 fi 11136 ;; 11137 11138amigaos*) 11139 case $host_cpu in 11140 powerpc) 11141 # Since July 2007 AmigaOS4 officially supports .so libraries. 11142 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11144 ;; 11145 m68k) 11146 library_names_spec='$libname.ixlibrary $libname.a' 11147 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11148 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11149 ;; 11150 esac 11151 ;; 11152 11153beos*) 11154 library_names_spec='$libname$shared_ext' 11155 dynamic_linker="$host_os ld.so" 11156 shlibpath_var=LIBRARY_PATH 11157 ;; 11158 11159bsdi[45]*) 11160 version_type=linux # correct to gnu/linux during the next big refactor 11161 need_version=no 11162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11163 soname_spec='$libname$release$shared_ext$major' 11164 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11165 shlibpath_var=LD_LIBRARY_PATH 11166 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11167 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11168 # the default ld.so.conf also contains /usr/contrib/lib and 11169 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11170 # libtool to hard-code these into programs 11171 ;; 11172 11173cygwin* | mingw* | pw32* | cegcc*) 11174 version_type=windows 11175 shrext_cmds=.dll 11176 need_version=no 11177 need_lib_prefix=no 11178 11179 case $GCC,$cc_basename in 11180 yes,*) 11181 # gcc 11182 library_names_spec='$libname.dll.a' 11183 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11184 postinstall_cmds='base_file=`basename \$file`~ 11185 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11186 dldir=$destdir/`dirname \$dlpath`~ 11187 test -d \$dldir || mkdir -p \$dldir~ 11188 $install_prog $dir/$dlname \$dldir/$dlname~ 11189 chmod a+x \$dldir/$dlname~ 11190 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11191 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11192 fi' 11193 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11194 dlpath=$dir/\$dldll~ 11195 $RM \$dlpath' 11196 shlibpath_overrides_runpath=yes 11197 11198 case $host_os in 11199 cygwin*) 11200 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11201 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11202 11203 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11204 ;; 11205 mingw* | cegcc*) 11206 # MinGW DLLs use traditional 'lib' prefix 11207 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11208 ;; 11209 pw32*) 11210 # pw32 DLLs use 'pw' prefix rather than 'lib' 11211 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11212 ;; 11213 esac 11214 dynamic_linker='Win32 ld.exe' 11215 ;; 11216 11217 *,cl*) 11218 # Native MSVC 11219 libname_spec='$name' 11220 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11221 library_names_spec='$libname.dll.lib' 11222 11223 case $build_os in 11224 mingw*) 11225 sys_lib_search_path_spec= 11226 lt_save_ifs=$IFS 11227 IFS=';' 11228 for lt_path in $LIB 11229 do 11230 IFS=$lt_save_ifs 11231 # Let DOS variable expansion print the short 8.3 style file name. 11232 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11233 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11234 done 11235 IFS=$lt_save_ifs 11236 # Convert to MSYS style. 11237 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11238 ;; 11239 cygwin*) 11240 # Convert to unix form, then to dos form, then back to unix form 11241 # but this time dos style (no spaces!) so that the unix form looks 11242 # like /cygdrive/c/PROGRA~1:/cygdr... 11243 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11244 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11245 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11246 ;; 11247 *) 11248 sys_lib_search_path_spec=$LIB 11249 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11250 # It is most probably a Windows format PATH. 11251 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11252 else 11253 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11254 fi 11255 # FIXME: find the short name or the path components, as spaces are 11256 # common. (e.g. "Program Files" -> "PROGRA~1") 11257 ;; 11258 esac 11259 11260 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11261 postinstall_cmds='base_file=`basename \$file`~ 11262 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11263 dldir=$destdir/`dirname \$dlpath`~ 11264 test -d \$dldir || mkdir -p \$dldir~ 11265 $install_prog $dir/$dlname \$dldir/$dlname' 11266 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11267 dlpath=$dir/\$dldll~ 11268 $RM \$dlpath' 11269 shlibpath_overrides_runpath=yes 11270 dynamic_linker='Win32 link.exe' 11271 ;; 11272 11273 *) 11274 # Assume MSVC wrapper 11275 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11276 dynamic_linker='Win32 ld.exe' 11277 ;; 11278 esac 11279 # FIXME: first we should search . and the directory the executable is in 11280 shlibpath_var=PATH 11281 ;; 11282 11283darwin* | rhapsody*) 11284 dynamic_linker="$host_os dyld" 11285 version_type=darwin 11286 need_lib_prefix=no 11287 need_version=no 11288 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 11289 soname_spec='$libname$release$major$shared_ext' 11290 shlibpath_overrides_runpath=yes 11291 shlibpath_var=DYLD_LIBRARY_PATH 11292 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 11293 11294 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11295 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11296 ;; 11297 11298dgux*) 11299 version_type=linux # correct to gnu/linux during the next big refactor 11300 need_lib_prefix=no 11301 need_version=no 11302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11303 soname_spec='$libname$release$shared_ext$major' 11304 shlibpath_var=LD_LIBRARY_PATH 11305 ;; 11306 11307freebsd* | dragonfly*) 11308 # DragonFly does not have aout. When/if they implement a new 11309 # versioning mechanism, adjust this. 11310 if test -x /usr/bin/objformat; then 11311 objformat=`/usr/bin/objformat` 11312 else 11313 case $host_os in 11314 freebsd[23].*) objformat=aout ;; 11315 *) objformat=elf ;; 11316 esac 11317 fi 11318 # Handle Gentoo/FreeBSD as it was Linux 11319 case $host_vendor in 11320 gentoo) 11321 version_type=linux ;; 11322 *) 11323 version_type=freebsd-$objformat ;; 11324 esac 11325 11326 case $version_type in 11327 freebsd-elf*) 11328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11329 soname_spec='$libname$release$shared_ext$major' 11330 need_version=no 11331 need_lib_prefix=no 11332 ;; 11333 freebsd-*) 11334 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11335 need_version=yes 11336 ;; 11337 linux) 11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11339 soname_spec='${libname}${release}${shared_ext}$major' 11340 need_lib_prefix=no 11341 need_version=no 11342 ;; 11343 esac 11344 shlibpath_var=LD_LIBRARY_PATH 11345 case $host_os in 11346 freebsd2.*) 11347 shlibpath_overrides_runpath=yes 11348 ;; 11349 freebsd3.[01]* | freebsdelf3.[01]*) 11350 shlibpath_overrides_runpath=yes 11351 hardcode_into_libs=yes 11352 ;; 11353 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11354 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11355 shlibpath_overrides_runpath=no 11356 hardcode_into_libs=yes 11357 ;; 11358 *) # from 4.6 on, and DragonFly 11359 shlibpath_overrides_runpath=yes 11360 hardcode_into_libs=yes 11361 ;; 11362 esac 11363 ;; 11364 11365haiku*) 11366 version_type=linux # correct to gnu/linux during the next big refactor 11367 need_lib_prefix=no 11368 need_version=no 11369 dynamic_linker="$host_os runtime_loader" 11370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11371 soname_spec='$libname$release$shared_ext$major' 11372 shlibpath_var=LIBRARY_PATH 11373 shlibpath_overrides_runpath=no 11374 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11375 hardcode_into_libs=yes 11376 ;; 11377 11378hpux9* | hpux10* | hpux11*) 11379 # Give a soname corresponding to the major version so that dld.sl refuses to 11380 # link against other versions. 11381 version_type=sunos 11382 need_lib_prefix=no 11383 need_version=no 11384 case $host_cpu in 11385 ia64*) 11386 shrext_cmds='.so' 11387 hardcode_into_libs=yes 11388 dynamic_linker="$host_os dld.so" 11389 shlibpath_var=LD_LIBRARY_PATH 11390 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11392 soname_spec='$libname$release$shared_ext$major' 11393 if test 32 = "$HPUX_IA64_MODE"; then 11394 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11395 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11396 else 11397 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11398 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11399 fi 11400 ;; 11401 hppa*64*) 11402 shrext_cmds='.sl' 11403 hardcode_into_libs=yes 11404 dynamic_linker="$host_os dld.sl" 11405 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11408 soname_spec='$libname$release$shared_ext$major' 11409 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11411 ;; 11412 *) 11413 shrext_cmds='.sl' 11414 dynamic_linker="$host_os dld.sl" 11415 shlibpath_var=SHLIB_PATH 11416 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11418 soname_spec='$libname$release$shared_ext$major' 11419 ;; 11420 esac 11421 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11422 postinstall_cmds='chmod 555 $lib' 11423 # or fails outright, so override atomically: 11424 install_override_mode=555 11425 ;; 11426 11427interix[3-9]*) 11428 version_type=linux # correct to gnu/linux during the next big refactor 11429 need_lib_prefix=no 11430 need_version=no 11431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11432 soname_spec='$libname$release$shared_ext$major' 11433 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11434 shlibpath_var=LD_LIBRARY_PATH 11435 shlibpath_overrides_runpath=no 11436 hardcode_into_libs=yes 11437 ;; 11438 11439irix5* | irix6* | nonstopux*) 11440 case $host_os in 11441 nonstopux*) version_type=nonstopux ;; 11442 *) 11443 if test yes = "$lt_cv_prog_gnu_ld"; then 11444 version_type=linux # correct to gnu/linux during the next big refactor 11445 else 11446 version_type=irix 11447 fi ;; 11448 esac 11449 need_lib_prefix=no 11450 need_version=no 11451 soname_spec='$libname$release$shared_ext$major' 11452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11453 case $host_os in 11454 irix5* | nonstopux*) 11455 libsuff= shlibsuff= 11456 ;; 11457 *) 11458 case $LD in # libtool.m4 will add one of these switches to LD 11459 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11460 libsuff= shlibsuff= libmagic=32-bit;; 11461 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11462 libsuff=32 shlibsuff=N32 libmagic=N32;; 11463 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11464 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11465 *) libsuff= shlibsuff= libmagic=never-match;; 11466 esac 11467 ;; 11468 esac 11469 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11470 shlibpath_overrides_runpath=no 11471 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11472 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11473 hardcode_into_libs=yes 11474 ;; 11475 11476# No shared lib support for Linux oldld, aout, or coff. 11477linux*oldld* | linux*aout* | linux*coff*) 11478 dynamic_linker=no 11479 ;; 11480 11481linux*android*) 11482 version_type=none # Android doesn't support versioned libraries. 11483 need_lib_prefix=no 11484 need_version=no 11485 library_names_spec='$libname$release$shared_ext' 11486 soname_spec='$libname$release$shared_ext' 11487 finish_cmds= 11488 shlibpath_var=LD_LIBRARY_PATH 11489 shlibpath_overrides_runpath=yes 11490 11491 # This implies no fast_install, which is unacceptable. 11492 # Some rework will be needed to allow for fast_install 11493 # before this can be enabled. 11494 hardcode_into_libs=yes 11495 11496 dynamic_linker='Android linker' 11497 # Don't embed -rpath directories since the linker doesn't support them. 11498 hardcode_libdir_flag_spec='-L$libdir' 11499 ;; 11500 11501# This must be glibc/ELF. 11502linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11503 version_type=linux # correct to gnu/linux during the next big refactor 11504 need_lib_prefix=no 11505 need_version=no 11506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11507 soname_spec='$libname$release$shared_ext$major' 11508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11509 shlibpath_var=LD_LIBRARY_PATH 11510 shlibpath_overrides_runpath=no 11511 11512 # Some binutils ld are patched to set DT_RUNPATH 11513 if test ${lt_cv_shlibpath_overrides_runpath+y} 11514then : 11515 printf %s "(cached) " >&6 11516else $as_nop 11517 lt_cv_shlibpath_overrides_runpath=no 11518 save_LDFLAGS=$LDFLAGS 11519 save_libdir=$libdir 11520 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11521 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11523/* end confdefs.h. */ 11524 11525int 11526main (void) 11527{ 11528 11529 ; 11530 return 0; 11531} 11532_ACEOF 11533if ac_fn_c_try_link "$LINENO" 11534then : 11535 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11536then : 11537 lt_cv_shlibpath_overrides_runpath=yes 11538fi 11539fi 11540rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11541 conftest$ac_exeext conftest.$ac_ext 11542 LDFLAGS=$save_LDFLAGS 11543 libdir=$save_libdir 11544 11545fi 11546 11547 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11548 11549 # This implies no fast_install, which is unacceptable. 11550 # Some rework will be needed to allow for fast_install 11551 # before this can be enabled. 11552 hardcode_into_libs=yes 11553 11554 # Ideally, we could use ldconfig to report *all* directores which are 11555 # searched for libraries, however this is still not possible. Aside from not 11556 # being certain /sbin/ldconfig is available, command 11557 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11558 # even though it is searched at run-time. Try to do the best guess by 11559 # appending ld.so.conf contents (and includes) to the search path. 11560 if test -f /etc/ld.so.conf; then 11561 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' ' '` 11562 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11563 fi 11564 11565 # We used to test for /lib/ld.so.1 and disable shared libraries on 11566 # powerpc, because MkLinux only supported shared libraries with the 11567 # GNU dynamic linker. Since this was broken with cross compilers, 11568 # most powerpc-linux boxes support dynamic linking these days and 11569 # people can always --disable-shared, the test was removed, and we 11570 # assume the GNU/Linux dynamic linker is in use. 11571 dynamic_linker='GNU/Linux ld.so' 11572 ;; 11573 11574netbsd*) 11575 version_type=sunos 11576 need_lib_prefix=no 11577 need_version=no 11578 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11579 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11581 dynamic_linker='NetBSD (a.out) ld.so' 11582 else 11583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11584 soname_spec='$libname$release$shared_ext$major' 11585 dynamic_linker='NetBSD ld.elf_so' 11586 fi 11587 shlibpath_var=LD_LIBRARY_PATH 11588 shlibpath_overrides_runpath=yes 11589 hardcode_into_libs=yes 11590 ;; 11591 11592newsos6) 11593 version_type=linux # correct to gnu/linux during the next big refactor 11594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11595 shlibpath_var=LD_LIBRARY_PATH 11596 shlibpath_overrides_runpath=yes 11597 ;; 11598 11599*nto* | *qnx*) 11600 version_type=qnx 11601 need_lib_prefix=no 11602 need_version=no 11603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11604 soname_spec='$libname$release$shared_ext$major' 11605 shlibpath_var=LD_LIBRARY_PATH 11606 shlibpath_overrides_runpath=no 11607 hardcode_into_libs=yes 11608 dynamic_linker='ldqnx.so' 11609 ;; 11610 11611openbsd* | bitrig*) 11612 version_type=sunos 11613 sys_lib_dlsearch_path_spec=/usr/lib 11614 need_lib_prefix=no 11615 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11616 need_version=no 11617 else 11618 need_version=yes 11619 fi 11620 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11622 shlibpath_var=LD_LIBRARY_PATH 11623 shlibpath_overrides_runpath=yes 11624 ;; 11625 11626os2*) 11627 libname_spec='$name' 11628 version_type=windows 11629 shrext_cmds=.dll 11630 need_version=no 11631 need_lib_prefix=no 11632 # OS/2 can only load a DLL with a base name of 8 characters or less. 11633 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11634 v=$($ECHO $release$versuffix | tr -d .-); 11635 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11636 $ECHO $n$v`$shared_ext' 11637 library_names_spec='${libname}_dll.$libext' 11638 dynamic_linker='OS/2 ld.exe' 11639 shlibpath_var=BEGINLIBPATH 11640 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11641 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11642 postinstall_cmds='base_file=`basename \$file`~ 11643 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11644 dldir=$destdir/`dirname \$dlpath`~ 11645 test -d \$dldir || mkdir -p \$dldir~ 11646 $install_prog $dir/$dlname \$dldir/$dlname~ 11647 chmod a+x \$dldir/$dlname~ 11648 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11649 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11650 fi' 11651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11652 dlpath=$dir/\$dldll~ 11653 $RM \$dlpath' 11654 ;; 11655 11656osf3* | osf4* | osf5*) 11657 version_type=osf 11658 need_lib_prefix=no 11659 need_version=no 11660 soname_spec='$libname$release$shared_ext$major' 11661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11662 shlibpath_var=LD_LIBRARY_PATH 11663 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11665 ;; 11666 11667rdos*) 11668 dynamic_linker=no 11669 ;; 11670 11671solaris*) 11672 version_type=linux # correct to gnu/linux during the next big refactor 11673 need_lib_prefix=no 11674 need_version=no 11675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11676 soname_spec='$libname$release$shared_ext$major' 11677 shlibpath_var=LD_LIBRARY_PATH 11678 shlibpath_overrides_runpath=yes 11679 hardcode_into_libs=yes 11680 # ldd complains unless libraries are executable 11681 postinstall_cmds='chmod +x $lib' 11682 ;; 11683 11684sunos4*) 11685 version_type=sunos 11686 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11687 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11688 shlibpath_var=LD_LIBRARY_PATH 11689 shlibpath_overrides_runpath=yes 11690 if test yes = "$with_gnu_ld"; then 11691 need_lib_prefix=no 11692 fi 11693 need_version=yes 11694 ;; 11695 11696sysv4 | sysv4.3*) 11697 version_type=linux # correct to gnu/linux during the next big refactor 11698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11699 soname_spec='$libname$release$shared_ext$major' 11700 shlibpath_var=LD_LIBRARY_PATH 11701 case $host_vendor in 11702 sni) 11703 shlibpath_overrides_runpath=no 11704 need_lib_prefix=no 11705 runpath_var=LD_RUN_PATH 11706 ;; 11707 siemens) 11708 need_lib_prefix=no 11709 ;; 11710 motorola) 11711 need_lib_prefix=no 11712 need_version=no 11713 shlibpath_overrides_runpath=no 11714 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11715 ;; 11716 esac 11717 ;; 11718 11719sysv4*MP*) 11720 if test -d /usr/nec; then 11721 version_type=linux # correct to gnu/linux during the next big refactor 11722 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11723 soname_spec='$libname$shared_ext.$major' 11724 shlibpath_var=LD_LIBRARY_PATH 11725 fi 11726 ;; 11727 11728sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11729 version_type=sco 11730 need_lib_prefix=no 11731 need_version=no 11732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11733 soname_spec='$libname$release$shared_ext$major' 11734 shlibpath_var=LD_LIBRARY_PATH 11735 shlibpath_overrides_runpath=yes 11736 hardcode_into_libs=yes 11737 if test yes = "$with_gnu_ld"; then 11738 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11739 else 11740 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11741 case $host_os in 11742 sco3.2v5*) 11743 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11744 ;; 11745 esac 11746 fi 11747 sys_lib_dlsearch_path_spec='/usr/lib' 11748 ;; 11749 11750tpf*) 11751 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11752 version_type=linux # correct to gnu/linux during the next big refactor 11753 need_lib_prefix=no 11754 need_version=no 11755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11756 shlibpath_var=LD_LIBRARY_PATH 11757 shlibpath_overrides_runpath=no 11758 hardcode_into_libs=yes 11759 ;; 11760 11761uts4*) 11762 version_type=linux # correct to gnu/linux during the next big refactor 11763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11764 soname_spec='$libname$release$shared_ext$major' 11765 shlibpath_var=LD_LIBRARY_PATH 11766 ;; 11767 11768*) 11769 dynamic_linker=no 11770 ;; 11771esac 11772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11773printf "%s\n" "$dynamic_linker" >&6; } 11774test no = "$dynamic_linker" && can_build_shared=no 11775 11776variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11777if test yes = "$GCC"; then 11778 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11779fi 11780 11781if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11782 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11783fi 11784 11785if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11786 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11787fi 11788 11789# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11790configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11791 11792# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11793func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11794 11795# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11796configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11895printf %s "checking how to hardcode library paths into programs... " >&6; } 11896hardcode_action= 11897if test -n "$hardcode_libdir_flag_spec" || 11898 test -n "$runpath_var" || 11899 test yes = "$hardcode_automatic"; then 11900 11901 # We can hardcode non-existent directories. 11902 if test no != "$hardcode_direct" && 11903 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11904 # have to relink, otherwise we might link with an installed library 11905 # when we should be linking with a yet-to-be-installed one 11906 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11907 test no != "$hardcode_minus_L"; then 11908 # Linking always hardcodes the temporary library directory. 11909 hardcode_action=relink 11910 else 11911 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11912 hardcode_action=immediate 11913 fi 11914else 11915 # We cannot hardcode anything, or else we can only hardcode existing 11916 # directories. 11917 hardcode_action=unsupported 11918fi 11919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11920printf "%s\n" "$hardcode_action" >&6; } 11921 11922if test relink = "$hardcode_action" || 11923 test yes = "$inherit_rpath"; then 11924 # Fast installation is not supported 11925 enable_fast_install=no 11926elif test yes = "$shlibpath_overrides_runpath" || 11927 test no = "$enable_shared"; then 11928 # Fast installation is not necessary 11929 enable_fast_install=needless 11930fi 11931 11932 11933 11934 11935 11936 11937 if test yes != "$enable_dlopen"; then 11938 enable_dlopen=unknown 11939 enable_dlopen_self=unknown 11940 enable_dlopen_self_static=unknown 11941else 11942 lt_cv_dlopen=no 11943 lt_cv_dlopen_libs= 11944 11945 case $host_os in 11946 beos*) 11947 lt_cv_dlopen=load_add_on 11948 lt_cv_dlopen_libs= 11949 lt_cv_dlopen_self=yes 11950 ;; 11951 11952 mingw* | pw32* | cegcc*) 11953 lt_cv_dlopen=LoadLibrary 11954 lt_cv_dlopen_libs= 11955 ;; 11956 11957 cygwin*) 11958 lt_cv_dlopen=dlopen 11959 lt_cv_dlopen_libs= 11960 ;; 11961 11962 darwin*) 11963 # if libdl is installed we need to link against it 11964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11965printf %s "checking for dlopen in -ldl... " >&6; } 11966if test ${ac_cv_lib_dl_dlopen+y} 11967then : 11968 printf %s "(cached) " >&6 11969else $as_nop 11970 ac_check_lib_save_LIBS=$LIBS 11971LIBS="-ldl $LIBS" 11972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11973/* end confdefs.h. */ 11974 11975/* Override any GCC internal prototype to avoid an error. 11976 Use char because int might match the return type of a GCC 11977 builtin and then its argument prototype would still apply. */ 11978char dlopen (); 11979int 11980main (void) 11981{ 11982return dlopen (); 11983 ; 11984 return 0; 11985} 11986_ACEOF 11987if ac_fn_c_try_link "$LINENO" 11988then : 11989 ac_cv_lib_dl_dlopen=yes 11990else $as_nop 11991 ac_cv_lib_dl_dlopen=no 11992fi 11993rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11994 conftest$ac_exeext conftest.$ac_ext 11995LIBS=$ac_check_lib_save_LIBS 11996fi 11997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11998printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 11999if test "x$ac_cv_lib_dl_dlopen" = xyes 12000then : 12001 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12002else $as_nop 12003 12004 lt_cv_dlopen=dyld 12005 lt_cv_dlopen_libs= 12006 lt_cv_dlopen_self=yes 12007 12008fi 12009 12010 ;; 12011 12012 tpf*) 12013 # Don't try to run any link tests for TPF. We know it's impossible 12014 # because TPF is a cross-compiler, and we know how we open DSOs. 12015 lt_cv_dlopen=dlopen 12016 lt_cv_dlopen_libs= 12017 lt_cv_dlopen_self=no 12018 ;; 12019 12020 *) 12021 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12022if test "x$ac_cv_func_shl_load" = xyes 12023then : 12024 lt_cv_dlopen=shl_load 12025else $as_nop 12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12027printf %s "checking for shl_load in -ldld... " >&6; } 12028if test ${ac_cv_lib_dld_shl_load+y} 12029then : 12030 printf %s "(cached) " >&6 12031else $as_nop 12032 ac_check_lib_save_LIBS=$LIBS 12033LIBS="-ldld $LIBS" 12034cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12035/* end confdefs.h. */ 12036 12037/* Override any GCC internal prototype to avoid an error. 12038 Use char because int might match the return type of a GCC 12039 builtin and then its argument prototype would still apply. */ 12040char shl_load (); 12041int 12042main (void) 12043{ 12044return shl_load (); 12045 ; 12046 return 0; 12047} 12048_ACEOF 12049if ac_fn_c_try_link "$LINENO" 12050then : 12051 ac_cv_lib_dld_shl_load=yes 12052else $as_nop 12053 ac_cv_lib_dld_shl_load=no 12054fi 12055rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12056 conftest$ac_exeext conftest.$ac_ext 12057LIBS=$ac_check_lib_save_LIBS 12058fi 12059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12060printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12061if test "x$ac_cv_lib_dld_shl_load" = xyes 12062then : 12063 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12064else $as_nop 12065 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12066if test "x$ac_cv_func_dlopen" = xyes 12067then : 12068 lt_cv_dlopen=dlopen 12069else $as_nop 12070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12071printf %s "checking for dlopen in -ldl... " >&6; } 12072if test ${ac_cv_lib_dl_dlopen+y} 12073then : 12074 printf %s "(cached) " >&6 12075else $as_nop 12076 ac_check_lib_save_LIBS=$LIBS 12077LIBS="-ldl $LIBS" 12078cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12079/* end confdefs.h. */ 12080 12081/* Override any GCC internal prototype to avoid an error. 12082 Use char because int might match the return type of a GCC 12083 builtin and then its argument prototype would still apply. */ 12084char dlopen (); 12085int 12086main (void) 12087{ 12088return dlopen (); 12089 ; 12090 return 0; 12091} 12092_ACEOF 12093if ac_fn_c_try_link "$LINENO" 12094then : 12095 ac_cv_lib_dl_dlopen=yes 12096else $as_nop 12097 ac_cv_lib_dl_dlopen=no 12098fi 12099rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12100 conftest$ac_exeext conftest.$ac_ext 12101LIBS=$ac_check_lib_save_LIBS 12102fi 12103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12104printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12105if test "x$ac_cv_lib_dl_dlopen" = xyes 12106then : 12107 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12108else $as_nop 12109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12110printf %s "checking for dlopen in -lsvld... " >&6; } 12111if test ${ac_cv_lib_svld_dlopen+y} 12112then : 12113 printf %s "(cached) " >&6 12114else $as_nop 12115 ac_check_lib_save_LIBS=$LIBS 12116LIBS="-lsvld $LIBS" 12117cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12118/* end confdefs.h. */ 12119 12120/* Override any GCC internal prototype to avoid an error. 12121 Use char because int might match the return type of a GCC 12122 builtin and then its argument prototype would still apply. */ 12123char dlopen (); 12124int 12125main (void) 12126{ 12127return dlopen (); 12128 ; 12129 return 0; 12130} 12131_ACEOF 12132if ac_fn_c_try_link "$LINENO" 12133then : 12134 ac_cv_lib_svld_dlopen=yes 12135else $as_nop 12136 ac_cv_lib_svld_dlopen=no 12137fi 12138rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12139 conftest$ac_exeext conftest.$ac_ext 12140LIBS=$ac_check_lib_save_LIBS 12141fi 12142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12143printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12144if test "x$ac_cv_lib_svld_dlopen" = xyes 12145then : 12146 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12147else $as_nop 12148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12149printf %s "checking for dld_link in -ldld... " >&6; } 12150if test ${ac_cv_lib_dld_dld_link+y} 12151then : 12152 printf %s "(cached) " >&6 12153else $as_nop 12154 ac_check_lib_save_LIBS=$LIBS 12155LIBS="-ldld $LIBS" 12156cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12157/* end confdefs.h. */ 12158 12159/* Override any GCC internal prototype to avoid an error. 12160 Use char because int might match the return type of a GCC 12161 builtin and then its argument prototype would still apply. */ 12162char dld_link (); 12163int 12164main (void) 12165{ 12166return dld_link (); 12167 ; 12168 return 0; 12169} 12170_ACEOF 12171if ac_fn_c_try_link "$LINENO" 12172then : 12173 ac_cv_lib_dld_dld_link=yes 12174else $as_nop 12175 ac_cv_lib_dld_dld_link=no 12176fi 12177rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12178 conftest$ac_exeext conftest.$ac_ext 12179LIBS=$ac_check_lib_save_LIBS 12180fi 12181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12182printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12183if test "x$ac_cv_lib_dld_dld_link" = xyes 12184then : 12185 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12186fi 12187 12188 12189fi 12190 12191 12192fi 12193 12194 12195fi 12196 12197 12198fi 12199 12200 12201fi 12202 12203 ;; 12204 esac 12205 12206 if test no = "$lt_cv_dlopen"; then 12207 enable_dlopen=no 12208 else 12209 enable_dlopen=yes 12210 fi 12211 12212 case $lt_cv_dlopen in 12213 dlopen) 12214 save_CPPFLAGS=$CPPFLAGS 12215 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12216 12217 save_LDFLAGS=$LDFLAGS 12218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12219 12220 save_LIBS=$LIBS 12221 LIBS="$lt_cv_dlopen_libs $LIBS" 12222 12223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12224printf %s "checking whether a program can dlopen itself... " >&6; } 12225if test ${lt_cv_dlopen_self+y} 12226then : 12227 printf %s "(cached) " >&6 12228else $as_nop 12229 if test yes = "$cross_compiling"; then : 12230 lt_cv_dlopen_self=cross 12231else 12232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12233 lt_status=$lt_dlunknown 12234 cat > conftest.$ac_ext <<_LT_EOF 12235#line $LINENO "configure" 12236#include "confdefs.h" 12237 12238#if HAVE_DLFCN_H 12239#include <dlfcn.h> 12240#endif 12241 12242#include <stdio.h> 12243 12244#ifdef RTLD_GLOBAL 12245# define LT_DLGLOBAL RTLD_GLOBAL 12246#else 12247# ifdef DL_GLOBAL 12248# define LT_DLGLOBAL DL_GLOBAL 12249# else 12250# define LT_DLGLOBAL 0 12251# endif 12252#endif 12253 12254/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12255 find out it does not work in some platform. */ 12256#ifndef LT_DLLAZY_OR_NOW 12257# ifdef RTLD_LAZY 12258# define LT_DLLAZY_OR_NOW RTLD_LAZY 12259# else 12260# ifdef DL_LAZY 12261# define LT_DLLAZY_OR_NOW DL_LAZY 12262# else 12263# ifdef RTLD_NOW 12264# define LT_DLLAZY_OR_NOW RTLD_NOW 12265# else 12266# ifdef DL_NOW 12267# define LT_DLLAZY_OR_NOW DL_NOW 12268# else 12269# define LT_DLLAZY_OR_NOW 0 12270# endif 12271# endif 12272# endif 12273# endif 12274#endif 12275 12276/* When -fvisibility=hidden is used, assume the code has been annotated 12277 correspondingly for the symbols needed. */ 12278#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12279int fnord () __attribute__((visibility("default"))); 12280#endif 12281 12282int fnord () { return 42; } 12283int main () 12284{ 12285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12286 int status = $lt_dlunknown; 12287 12288 if (self) 12289 { 12290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12291 else 12292 { 12293 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12294 else puts (dlerror ()); 12295 } 12296 /* dlclose (self); */ 12297 } 12298 else 12299 puts (dlerror ()); 12300 12301 return status; 12302} 12303_LT_EOF 12304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12305 (eval $ac_link) 2>&5 12306 ac_status=$? 12307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12308 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12309 (./conftest; exit; ) >&5 2>/dev/null 12310 lt_status=$? 12311 case x$lt_status in 12312 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12313 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12314 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12315 esac 12316 else : 12317 # compilation failed 12318 lt_cv_dlopen_self=no 12319 fi 12320fi 12321rm -fr conftest* 12322 12323 12324fi 12325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12326printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12327 12328 if test yes = "$lt_cv_dlopen_self"; then 12329 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12331printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12332if test ${lt_cv_dlopen_self_static+y} 12333then : 12334 printf %s "(cached) " >&6 12335else $as_nop 12336 if test yes = "$cross_compiling"; then : 12337 lt_cv_dlopen_self_static=cross 12338else 12339 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12340 lt_status=$lt_dlunknown 12341 cat > conftest.$ac_ext <<_LT_EOF 12342#line $LINENO "configure" 12343#include "confdefs.h" 12344 12345#if HAVE_DLFCN_H 12346#include <dlfcn.h> 12347#endif 12348 12349#include <stdio.h> 12350 12351#ifdef RTLD_GLOBAL 12352# define LT_DLGLOBAL RTLD_GLOBAL 12353#else 12354# ifdef DL_GLOBAL 12355# define LT_DLGLOBAL DL_GLOBAL 12356# else 12357# define LT_DLGLOBAL 0 12358# endif 12359#endif 12360 12361/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12362 find out it does not work in some platform. */ 12363#ifndef LT_DLLAZY_OR_NOW 12364# ifdef RTLD_LAZY 12365# define LT_DLLAZY_OR_NOW RTLD_LAZY 12366# else 12367# ifdef DL_LAZY 12368# define LT_DLLAZY_OR_NOW DL_LAZY 12369# else 12370# ifdef RTLD_NOW 12371# define LT_DLLAZY_OR_NOW RTLD_NOW 12372# else 12373# ifdef DL_NOW 12374# define LT_DLLAZY_OR_NOW DL_NOW 12375# else 12376# define LT_DLLAZY_OR_NOW 0 12377# endif 12378# endif 12379# endif 12380# endif 12381#endif 12382 12383/* When -fvisibility=hidden is used, assume the code has been annotated 12384 correspondingly for the symbols needed. */ 12385#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12386int fnord () __attribute__((visibility("default"))); 12387#endif 12388 12389int fnord () { return 42; } 12390int main () 12391{ 12392 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12393 int status = $lt_dlunknown; 12394 12395 if (self) 12396 { 12397 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12398 else 12399 { 12400 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12401 else puts (dlerror ()); 12402 } 12403 /* dlclose (self); */ 12404 } 12405 else 12406 puts (dlerror ()); 12407 12408 return status; 12409} 12410_LT_EOF 12411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12412 (eval $ac_link) 2>&5 12413 ac_status=$? 12414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12415 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12416 (./conftest; exit; ) >&5 2>/dev/null 12417 lt_status=$? 12418 case x$lt_status in 12419 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12420 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12421 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12422 esac 12423 else : 12424 # compilation failed 12425 lt_cv_dlopen_self_static=no 12426 fi 12427fi 12428rm -fr conftest* 12429 12430 12431fi 12432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12433printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12434 fi 12435 12436 CPPFLAGS=$save_CPPFLAGS 12437 LDFLAGS=$save_LDFLAGS 12438 LIBS=$save_LIBS 12439 ;; 12440 esac 12441 12442 case $lt_cv_dlopen_self in 12443 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12444 *) enable_dlopen_self=unknown ;; 12445 esac 12446 12447 case $lt_cv_dlopen_self_static in 12448 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12449 *) enable_dlopen_self_static=unknown ;; 12450 esac 12451fi 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469striplib= 12470old_striplib= 12471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12472printf %s "checking whether stripping libraries is possible... " >&6; } 12473if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12474 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12475 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12477printf "%s\n" "yes" >&6; } 12478else 12479# FIXME - insert some real tests, host_os isn't really good enough 12480 case $host_os in 12481 darwin*) 12482 if test -n "$STRIP"; then 12483 striplib="$STRIP -x" 12484 old_striplib="$STRIP -S" 12485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12486printf "%s\n" "yes" >&6; } 12487 else 12488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12489printf "%s\n" "no" >&6; } 12490 fi 12491 ;; 12492 *) 12493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12494printf "%s\n" "no" >&6; } 12495 ;; 12496 esac 12497fi 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 # Report what library types will actually be built 12511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12512printf %s "checking if libtool supports shared libraries... " >&6; } 12513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12514printf "%s\n" "$can_build_shared" >&6; } 12515 12516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12517printf %s "checking whether to build shared libraries... " >&6; } 12518 test no = "$can_build_shared" && enable_shared=no 12519 12520 # On AIX, shared libraries and static libraries use the same namespace, and 12521 # are all built from PIC. 12522 case $host_os in 12523 aix3*) 12524 test yes = "$enable_shared" && enable_static=no 12525 if test -n "$RANLIB"; then 12526 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12527 postinstall_cmds='$RANLIB $lib' 12528 fi 12529 ;; 12530 12531 aix[4-9]*) 12532 if test ia64 != "$host_cpu"; then 12533 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12534 yes,aix,yes) ;; # shared object as lib.so file only 12535 yes,svr4,*) ;; # shared object as lib.so archive member only 12536 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12537 esac 12538 fi 12539 ;; 12540 esac 12541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12542printf "%s\n" "$enable_shared" >&6; } 12543 12544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12545printf %s "checking whether to build static libraries... " >&6; } 12546 # Make sure either enable_shared or enable_static is yes. 12547 test yes = "$enable_shared" || enable_static=yes 12548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12549printf "%s\n" "$enable_static" >&6; } 12550 12551 12552 12553 12554fi 12555ac_ext=c 12556ac_cpp='$CPP $CPPFLAGS' 12557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12559ac_compiler_gnu=$ac_cv_c_compiler_gnu 12560 12561CC=$lt_save_CC 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 ac_config_commands="$ac_config_commands libtool" 12578 12579 12580 12581 12582# Only expand once: 12583 12584 12585 12586# Require X.Org macros 1.8 or later for AC_PROG_INSTALL 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12600printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12601if test ${ac_cv_c_undeclared_builtin_options+y} 12602then : 12603 printf %s "(cached) " >&6 12604else $as_nop 12605 ac_save_CFLAGS=$CFLAGS 12606 ac_cv_c_undeclared_builtin_options='cannot detect' 12607 for ac_arg in '' -fno-builtin; do 12608 CFLAGS="$ac_save_CFLAGS $ac_arg" 12609 # This test program should *not* compile successfully. 12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12611/* end confdefs.h. */ 12612 12613int 12614main (void) 12615{ 12616(void) strchr; 12617 ; 12618 return 0; 12619} 12620_ACEOF 12621if ac_fn_c_try_compile "$LINENO" 12622then : 12623 12624else $as_nop 12625 # This test program should compile successfully. 12626 # No library function is consistently available on 12627 # freestanding implementations, so test against a dummy 12628 # declaration. Include always-available headers on the 12629 # off chance that they somehow elicit warnings. 12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12631/* end confdefs.h. */ 12632#include <float.h> 12633#include <limits.h> 12634#include <stdarg.h> 12635#include <stddef.h> 12636extern void ac_decl (int, char *); 12637 12638int 12639main (void) 12640{ 12641(void) ac_decl (0, (char *) 0); 12642 (void) ac_decl; 12643 12644 ; 12645 return 0; 12646} 12647_ACEOF 12648if ac_fn_c_try_compile "$LINENO" 12649then : 12650 if test x"$ac_arg" = x 12651then : 12652 ac_cv_c_undeclared_builtin_options='none needed' 12653else $as_nop 12654 ac_cv_c_undeclared_builtin_options=$ac_arg 12655fi 12656 break 12657fi 12658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12659fi 12660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12661 done 12662 CFLAGS=$ac_save_CFLAGS 12663 12664fi 12665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12666printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12667 case $ac_cv_c_undeclared_builtin_options in #( 12668 'cannot detect') : 12669 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12670printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12671as_fn_error $? "cannot make $CC report undeclared builtins 12672See \`config.log' for more details" "$LINENO" 5; } ;; #( 12673 'none needed') : 12674 ac_c_undeclared_builtin_options='' ;; #( 12675 *) : 12676 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12677esac 12678 12679 12680 12681 12682 12683ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12684if test "x$ac_cv_have_decl___clang__" = xyes 12685then : 12686 CLANGCC="yes" 12687else $as_nop 12688 CLANGCC="no" 12689fi 12690ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12691if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12692then : 12693 INTELCC="yes" 12694else $as_nop 12695 INTELCC="no" 12696fi 12697ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12698if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12699then : 12700 SUNCC="yes" 12701else $as_nop 12702 SUNCC="no" 12703fi 12704 12705 12706 12707 12708 12709 12710 12711 12712if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12713 if test -n "$ac_tool_prefix"; then 12714 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12715set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12717printf %s "checking for $ac_word... " >&6; } 12718if test ${ac_cv_path_PKG_CONFIG+y} 12719then : 12720 printf %s "(cached) " >&6 12721else $as_nop 12722 case $PKG_CONFIG in 12723 [\\/]* | ?:[\\/]*) 12724 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12725 ;; 12726 *) 12727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12728for as_dir in $PATH 12729do 12730 IFS=$as_save_IFS 12731 case $as_dir in #((( 12732 '') as_dir=./ ;; 12733 */) ;; 12734 *) as_dir=$as_dir/ ;; 12735 esac 12736 for ac_exec_ext in '' $ac_executable_extensions; do 12737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12738 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12740 break 2 12741 fi 12742done 12743 done 12744IFS=$as_save_IFS 12745 12746 ;; 12747esac 12748fi 12749PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12750if test -n "$PKG_CONFIG"; then 12751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12752printf "%s\n" "$PKG_CONFIG" >&6; } 12753else 12754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12755printf "%s\n" "no" >&6; } 12756fi 12757 12758 12759fi 12760if test -z "$ac_cv_path_PKG_CONFIG"; then 12761 ac_pt_PKG_CONFIG=$PKG_CONFIG 12762 # Extract the first word of "pkg-config", so it can be a program name with args. 12763set dummy pkg-config; ac_word=$2 12764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12765printf %s "checking for $ac_word... " >&6; } 12766if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12767then : 12768 printf %s "(cached) " >&6 12769else $as_nop 12770 case $ac_pt_PKG_CONFIG in 12771 [\\/]* | ?:[\\/]*) 12772 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12773 ;; 12774 *) 12775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12776for as_dir in $PATH 12777do 12778 IFS=$as_save_IFS 12779 case $as_dir in #((( 12780 '') as_dir=./ ;; 12781 */) ;; 12782 *) as_dir=$as_dir/ ;; 12783 esac 12784 for ac_exec_ext in '' $ac_executable_extensions; do 12785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12786 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12788 break 2 12789 fi 12790done 12791 done 12792IFS=$as_save_IFS 12793 12794 ;; 12795esac 12796fi 12797ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12798if test -n "$ac_pt_PKG_CONFIG"; then 12799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12800printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 12801else 12802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12803printf "%s\n" "no" >&6; } 12804fi 12805 12806 if test "x$ac_pt_PKG_CONFIG" = x; then 12807 PKG_CONFIG="" 12808 else 12809 case $cross_compiling:$ac_tool_warned in 12810yes:) 12811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12812printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12813ac_tool_warned=yes ;; 12814esac 12815 PKG_CONFIG=$ac_pt_PKG_CONFIG 12816 fi 12817else 12818 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12819fi 12820 12821fi 12822if test -n "$PKG_CONFIG"; then 12823 _pkg_min_version=0.9.0 12824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12825printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12826 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12828printf "%s\n" "yes" >&6; } 12829 else 12830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12831printf "%s\n" "no" >&6; } 12832 PKG_CONFIG="" 12833 fi 12834fi 12835 12836 12837 12838 12839 12840# Check whether --enable-selective-werror was given. 12841if test ${enable_selective_werror+y} 12842then : 12843 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12844else $as_nop 12845 SELECTIVE_WERROR=yes 12846fi 12847 12848 12849 12850 12851 12852# -v is too short to test reliably with XORG_TESTSET_CFLAG 12853if test "x$SUNCC" = "xyes"; then 12854 BASE_CFLAGS="-v" 12855else 12856 BASE_CFLAGS="" 12857fi 12858 12859# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873xorg_testset_save_CFLAGS="$CFLAGS" 12874 12875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12878printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12879if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12880then : 12881 printf %s "(cached) " >&6 12882else $as_nop 12883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12884/* end confdefs.h. */ 12885int i; 12886_ACEOF 12887if ac_fn_c_try_compile "$LINENO" 12888then : 12889 xorg_cv_cc_flag_unknown_warning_option=yes 12890else $as_nop 12891 xorg_cv_cc_flag_unknown_warning_option=no 12892fi 12893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12894fi 12895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12896printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12898 CFLAGS="$xorg_testset_save_CFLAGS" 12899fi 12900 12901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12904 fi 12905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12907printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12908if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12909then : 12910 printf %s "(cached) " >&6 12911else $as_nop 12912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12913/* end confdefs.h. */ 12914int i; 12915_ACEOF 12916if ac_fn_c_try_compile "$LINENO" 12917then : 12918 xorg_cv_cc_flag_unused_command_line_argument=yes 12919else $as_nop 12920 xorg_cv_cc_flag_unused_command_line_argument=no 12921fi 12922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12923fi 12924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12925printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12927 CFLAGS="$xorg_testset_save_CFLAGS" 12928fi 12929 12930found="no" 12931 12932 if test $found = "no" ; then 12933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12935 fi 12936 12937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12939 fi 12940 12941 CFLAGS="$CFLAGS -Wall" 12942 12943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12944printf %s "checking if $CC supports -Wall... " >&6; } 12945 cacheid=xorg_cv_cc_flag__Wall 12946 if eval test \${$cacheid+y} 12947then : 12948 printf %s "(cached) " >&6 12949else $as_nop 12950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12951/* end confdefs.h. */ 12952int i; 12953int 12954main (void) 12955{ 12956 12957 ; 12958 return 0; 12959} 12960_ACEOF 12961if ac_fn_c_try_link "$LINENO" 12962then : 12963 eval $cacheid=yes 12964else $as_nop 12965 eval $cacheid=no 12966fi 12967rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12968 conftest$ac_exeext conftest.$ac_ext 12969fi 12970 12971 12972 CFLAGS="$xorg_testset_save_CFLAGS" 12973 12974 eval supported=\$$cacheid 12975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12976printf "%s\n" "$supported" >&6; } 12977 if test "$supported" = "yes" ; then 12978 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12979 found="yes" 12980 fi 12981 fi 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997xorg_testset_save_CFLAGS="$CFLAGS" 12998 12999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13002printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13003if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13004then : 13005 printf %s "(cached) " >&6 13006else $as_nop 13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13008/* end confdefs.h. */ 13009int i; 13010_ACEOF 13011if ac_fn_c_try_compile "$LINENO" 13012then : 13013 xorg_cv_cc_flag_unknown_warning_option=yes 13014else $as_nop 13015 xorg_cv_cc_flag_unknown_warning_option=no 13016fi 13017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13018fi 13019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13020printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13022 CFLAGS="$xorg_testset_save_CFLAGS" 13023fi 13024 13025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13028 fi 13029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13031printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13032if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13033then : 13034 printf %s "(cached) " >&6 13035else $as_nop 13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13037/* end confdefs.h. */ 13038int i; 13039_ACEOF 13040if ac_fn_c_try_compile "$LINENO" 13041then : 13042 xorg_cv_cc_flag_unused_command_line_argument=yes 13043else $as_nop 13044 xorg_cv_cc_flag_unused_command_line_argument=no 13045fi 13046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13047fi 13048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13049printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13051 CFLAGS="$xorg_testset_save_CFLAGS" 13052fi 13053 13054found="no" 13055 13056 if test $found = "no" ; then 13057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13059 fi 13060 13061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13063 fi 13064 13065 CFLAGS="$CFLAGS -Wpointer-arith" 13066 13067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13068printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13069 cacheid=xorg_cv_cc_flag__Wpointer_arith 13070 if eval test \${$cacheid+y} 13071then : 13072 printf %s "(cached) " >&6 13073else $as_nop 13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13075/* end confdefs.h. */ 13076int i; 13077int 13078main (void) 13079{ 13080 13081 ; 13082 return 0; 13083} 13084_ACEOF 13085if ac_fn_c_try_link "$LINENO" 13086then : 13087 eval $cacheid=yes 13088else $as_nop 13089 eval $cacheid=no 13090fi 13091rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13092 conftest$ac_exeext conftest.$ac_ext 13093fi 13094 13095 13096 CFLAGS="$xorg_testset_save_CFLAGS" 13097 13098 eval supported=\$$cacheid 13099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13100printf "%s\n" "$supported" >&6; } 13101 if test "$supported" = "yes" ; then 13102 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13103 found="yes" 13104 fi 13105 fi 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121xorg_testset_save_CFLAGS="$CFLAGS" 13122 13123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13126printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13127if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13128then : 13129 printf %s "(cached) " >&6 13130else $as_nop 13131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13132/* end confdefs.h. */ 13133int i; 13134_ACEOF 13135if ac_fn_c_try_compile "$LINENO" 13136then : 13137 xorg_cv_cc_flag_unknown_warning_option=yes 13138else $as_nop 13139 xorg_cv_cc_flag_unknown_warning_option=no 13140fi 13141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13142fi 13143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13144printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13146 CFLAGS="$xorg_testset_save_CFLAGS" 13147fi 13148 13149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13152 fi 13153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13155printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13156if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13157then : 13158 printf %s "(cached) " >&6 13159else $as_nop 13160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13161/* end confdefs.h. */ 13162int i; 13163_ACEOF 13164if ac_fn_c_try_compile "$LINENO" 13165then : 13166 xorg_cv_cc_flag_unused_command_line_argument=yes 13167else $as_nop 13168 xorg_cv_cc_flag_unused_command_line_argument=no 13169fi 13170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13171fi 13172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13173printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13175 CFLAGS="$xorg_testset_save_CFLAGS" 13176fi 13177 13178found="no" 13179 13180 if test $found = "no" ; then 13181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13183 fi 13184 13185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13187 fi 13188 13189 CFLAGS="$CFLAGS -Wmissing-declarations" 13190 13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13192printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13193 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13194 if eval test \${$cacheid+y} 13195then : 13196 printf %s "(cached) " >&6 13197else $as_nop 13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13199/* end confdefs.h. */ 13200int i; 13201int 13202main (void) 13203{ 13204 13205 ; 13206 return 0; 13207} 13208_ACEOF 13209if ac_fn_c_try_link "$LINENO" 13210then : 13211 eval $cacheid=yes 13212else $as_nop 13213 eval $cacheid=no 13214fi 13215rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13216 conftest$ac_exeext conftest.$ac_ext 13217fi 13218 13219 13220 CFLAGS="$xorg_testset_save_CFLAGS" 13221 13222 eval supported=\$$cacheid 13223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13224printf "%s\n" "$supported" >&6; } 13225 if test "$supported" = "yes" ; then 13226 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13227 found="yes" 13228 fi 13229 fi 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245xorg_testset_save_CFLAGS="$CFLAGS" 13246 13247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13250printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13251if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13252then : 13253 printf %s "(cached) " >&6 13254else $as_nop 13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13256/* end confdefs.h. */ 13257int i; 13258_ACEOF 13259if ac_fn_c_try_compile "$LINENO" 13260then : 13261 xorg_cv_cc_flag_unknown_warning_option=yes 13262else $as_nop 13263 xorg_cv_cc_flag_unknown_warning_option=no 13264fi 13265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13266fi 13267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13268printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13270 CFLAGS="$xorg_testset_save_CFLAGS" 13271fi 13272 13273if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13276 fi 13277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13279printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13280if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13281then : 13282 printf %s "(cached) " >&6 13283else $as_nop 13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13285/* end confdefs.h. */ 13286int i; 13287_ACEOF 13288if ac_fn_c_try_compile "$LINENO" 13289then : 13290 xorg_cv_cc_flag_unused_command_line_argument=yes 13291else $as_nop 13292 xorg_cv_cc_flag_unused_command_line_argument=no 13293fi 13294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13295fi 13296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13297printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13299 CFLAGS="$xorg_testset_save_CFLAGS" 13300fi 13301 13302found="no" 13303 13304 if test $found = "no" ; then 13305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13307 fi 13308 13309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13311 fi 13312 13313 CFLAGS="$CFLAGS -Wformat=2" 13314 13315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13316printf %s "checking if $CC supports -Wformat=2... " >&6; } 13317 cacheid=xorg_cv_cc_flag__Wformat_2 13318 if eval test \${$cacheid+y} 13319then : 13320 printf %s "(cached) " >&6 13321else $as_nop 13322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13323/* end confdefs.h. */ 13324int i; 13325int 13326main (void) 13327{ 13328 13329 ; 13330 return 0; 13331} 13332_ACEOF 13333if ac_fn_c_try_link "$LINENO" 13334then : 13335 eval $cacheid=yes 13336else $as_nop 13337 eval $cacheid=no 13338fi 13339rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13340 conftest$ac_exeext conftest.$ac_ext 13341fi 13342 13343 13344 CFLAGS="$xorg_testset_save_CFLAGS" 13345 13346 eval supported=\$$cacheid 13347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13348printf "%s\n" "$supported" >&6; } 13349 if test "$supported" = "yes" ; then 13350 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13351 found="yes" 13352 fi 13353 fi 13354 13355 if test $found = "no" ; then 13356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13358 fi 13359 13360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13362 fi 13363 13364 CFLAGS="$CFLAGS -Wformat" 13365 13366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13367printf %s "checking if $CC supports -Wformat... " >&6; } 13368 cacheid=xorg_cv_cc_flag__Wformat 13369 if eval test \${$cacheid+y} 13370then : 13371 printf %s "(cached) " >&6 13372else $as_nop 13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13374/* end confdefs.h. */ 13375int i; 13376int 13377main (void) 13378{ 13379 13380 ; 13381 return 0; 13382} 13383_ACEOF 13384if ac_fn_c_try_link "$LINENO" 13385then : 13386 eval $cacheid=yes 13387else $as_nop 13388 eval $cacheid=no 13389fi 13390rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13391 conftest$ac_exeext conftest.$ac_ext 13392fi 13393 13394 13395 CFLAGS="$xorg_testset_save_CFLAGS" 13396 13397 eval supported=\$$cacheid 13398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13399printf "%s\n" "$supported" >&6; } 13400 if test "$supported" = "yes" ; then 13401 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13402 found="yes" 13403 fi 13404 fi 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422xorg_testset_save_CFLAGS="$CFLAGS" 13423 13424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13427printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13428if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13429then : 13430 printf %s "(cached) " >&6 13431else $as_nop 13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13433/* end confdefs.h. */ 13434int i; 13435_ACEOF 13436if ac_fn_c_try_compile "$LINENO" 13437then : 13438 xorg_cv_cc_flag_unknown_warning_option=yes 13439else $as_nop 13440 xorg_cv_cc_flag_unknown_warning_option=no 13441fi 13442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13443fi 13444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13445printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13447 CFLAGS="$xorg_testset_save_CFLAGS" 13448fi 13449 13450if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13453 fi 13454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13456printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13457if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13458then : 13459 printf %s "(cached) " >&6 13460else $as_nop 13461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13462/* end confdefs.h. */ 13463int i; 13464_ACEOF 13465if ac_fn_c_try_compile "$LINENO" 13466then : 13467 xorg_cv_cc_flag_unused_command_line_argument=yes 13468else $as_nop 13469 xorg_cv_cc_flag_unused_command_line_argument=no 13470fi 13471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13472fi 13473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13474printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13476 CFLAGS="$xorg_testset_save_CFLAGS" 13477fi 13478 13479found="no" 13480 13481 if test $found = "no" ; then 13482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13484 fi 13485 13486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13488 fi 13489 13490 CFLAGS="$CFLAGS -Wstrict-prototypes" 13491 13492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13493printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13494 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13495 if eval test \${$cacheid+y} 13496then : 13497 printf %s "(cached) " >&6 13498else $as_nop 13499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13500/* end confdefs.h. */ 13501int i; 13502int 13503main (void) 13504{ 13505 13506 ; 13507 return 0; 13508} 13509_ACEOF 13510if ac_fn_c_try_link "$LINENO" 13511then : 13512 eval $cacheid=yes 13513else $as_nop 13514 eval $cacheid=no 13515fi 13516rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13517 conftest$ac_exeext conftest.$ac_ext 13518fi 13519 13520 13521 CFLAGS="$xorg_testset_save_CFLAGS" 13522 13523 eval supported=\$$cacheid 13524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13525printf "%s\n" "$supported" >&6; } 13526 if test "$supported" = "yes" ; then 13527 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13528 found="yes" 13529 fi 13530 fi 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546xorg_testset_save_CFLAGS="$CFLAGS" 13547 13548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13551printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13552if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13553then : 13554 printf %s "(cached) " >&6 13555else $as_nop 13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13557/* end confdefs.h. */ 13558int i; 13559_ACEOF 13560if ac_fn_c_try_compile "$LINENO" 13561then : 13562 xorg_cv_cc_flag_unknown_warning_option=yes 13563else $as_nop 13564 xorg_cv_cc_flag_unknown_warning_option=no 13565fi 13566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13567fi 13568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13569printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13571 CFLAGS="$xorg_testset_save_CFLAGS" 13572fi 13573 13574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13577 fi 13578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13580printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13581if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13582then : 13583 printf %s "(cached) " >&6 13584else $as_nop 13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13586/* end confdefs.h. */ 13587int i; 13588_ACEOF 13589if ac_fn_c_try_compile "$LINENO" 13590then : 13591 xorg_cv_cc_flag_unused_command_line_argument=yes 13592else $as_nop 13593 xorg_cv_cc_flag_unused_command_line_argument=no 13594fi 13595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13596fi 13597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13598printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13600 CFLAGS="$xorg_testset_save_CFLAGS" 13601fi 13602 13603found="no" 13604 13605 if test $found = "no" ; then 13606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13608 fi 13609 13610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13612 fi 13613 13614 CFLAGS="$CFLAGS -Wmissing-prototypes" 13615 13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13617printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13618 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13619 if eval test \${$cacheid+y} 13620then : 13621 printf %s "(cached) " >&6 13622else $as_nop 13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13624/* end confdefs.h. */ 13625int i; 13626int 13627main (void) 13628{ 13629 13630 ; 13631 return 0; 13632} 13633_ACEOF 13634if ac_fn_c_try_link "$LINENO" 13635then : 13636 eval $cacheid=yes 13637else $as_nop 13638 eval $cacheid=no 13639fi 13640rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13641 conftest$ac_exeext conftest.$ac_ext 13642fi 13643 13644 13645 CFLAGS="$xorg_testset_save_CFLAGS" 13646 13647 eval supported=\$$cacheid 13648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13649printf "%s\n" "$supported" >&6; } 13650 if test "$supported" = "yes" ; then 13651 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13652 found="yes" 13653 fi 13654 fi 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670xorg_testset_save_CFLAGS="$CFLAGS" 13671 13672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13675printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13676if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13677then : 13678 printf %s "(cached) " >&6 13679else $as_nop 13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13681/* end confdefs.h. */ 13682int i; 13683_ACEOF 13684if ac_fn_c_try_compile "$LINENO" 13685then : 13686 xorg_cv_cc_flag_unknown_warning_option=yes 13687else $as_nop 13688 xorg_cv_cc_flag_unknown_warning_option=no 13689fi 13690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13691fi 13692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13693printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13695 CFLAGS="$xorg_testset_save_CFLAGS" 13696fi 13697 13698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13701 fi 13702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13704printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13705if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13706then : 13707 printf %s "(cached) " >&6 13708else $as_nop 13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13710/* end confdefs.h. */ 13711int i; 13712_ACEOF 13713if ac_fn_c_try_compile "$LINENO" 13714then : 13715 xorg_cv_cc_flag_unused_command_line_argument=yes 13716else $as_nop 13717 xorg_cv_cc_flag_unused_command_line_argument=no 13718fi 13719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13720fi 13721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13722printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13724 CFLAGS="$xorg_testset_save_CFLAGS" 13725fi 13726 13727found="no" 13728 13729 if test $found = "no" ; then 13730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13732 fi 13733 13734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13736 fi 13737 13738 CFLAGS="$CFLAGS -Wnested-externs" 13739 13740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13741printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13742 cacheid=xorg_cv_cc_flag__Wnested_externs 13743 if eval test \${$cacheid+y} 13744then : 13745 printf %s "(cached) " >&6 13746else $as_nop 13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13748/* end confdefs.h. */ 13749int i; 13750int 13751main (void) 13752{ 13753 13754 ; 13755 return 0; 13756} 13757_ACEOF 13758if ac_fn_c_try_link "$LINENO" 13759then : 13760 eval $cacheid=yes 13761else $as_nop 13762 eval $cacheid=no 13763fi 13764rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13765 conftest$ac_exeext conftest.$ac_ext 13766fi 13767 13768 13769 CFLAGS="$xorg_testset_save_CFLAGS" 13770 13771 eval supported=\$$cacheid 13772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13773printf "%s\n" "$supported" >&6; } 13774 if test "$supported" = "yes" ; then 13775 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13776 found="yes" 13777 fi 13778 fi 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794xorg_testset_save_CFLAGS="$CFLAGS" 13795 13796if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13799printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13800if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13801then : 13802 printf %s "(cached) " >&6 13803else $as_nop 13804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13805/* end confdefs.h. */ 13806int i; 13807_ACEOF 13808if ac_fn_c_try_compile "$LINENO" 13809then : 13810 xorg_cv_cc_flag_unknown_warning_option=yes 13811else $as_nop 13812 xorg_cv_cc_flag_unknown_warning_option=no 13813fi 13814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13815fi 13816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13817printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13819 CFLAGS="$xorg_testset_save_CFLAGS" 13820fi 13821 13822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13825 fi 13826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13828printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13829if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13830then : 13831 printf %s "(cached) " >&6 13832else $as_nop 13833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13834/* end confdefs.h. */ 13835int i; 13836_ACEOF 13837if ac_fn_c_try_compile "$LINENO" 13838then : 13839 xorg_cv_cc_flag_unused_command_line_argument=yes 13840else $as_nop 13841 xorg_cv_cc_flag_unused_command_line_argument=no 13842fi 13843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13844fi 13845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13846printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13848 CFLAGS="$xorg_testset_save_CFLAGS" 13849fi 13850 13851found="no" 13852 13853 if test $found = "no" ; then 13854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13856 fi 13857 13858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13860 fi 13861 13862 CFLAGS="$CFLAGS -Wbad-function-cast" 13863 13864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13865printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 13866 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13867 if eval test \${$cacheid+y} 13868then : 13869 printf %s "(cached) " >&6 13870else $as_nop 13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13872/* end confdefs.h. */ 13873int i; 13874int 13875main (void) 13876{ 13877 13878 ; 13879 return 0; 13880} 13881_ACEOF 13882if ac_fn_c_try_link "$LINENO" 13883then : 13884 eval $cacheid=yes 13885else $as_nop 13886 eval $cacheid=no 13887fi 13888rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13889 conftest$ac_exeext conftest.$ac_ext 13890fi 13891 13892 13893 CFLAGS="$xorg_testset_save_CFLAGS" 13894 13895 eval supported=\$$cacheid 13896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13897printf "%s\n" "$supported" >&6; } 13898 if test "$supported" = "yes" ; then 13899 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13900 found="yes" 13901 fi 13902 fi 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918xorg_testset_save_CFLAGS="$CFLAGS" 13919 13920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13923printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13924if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13925then : 13926 printf %s "(cached) " >&6 13927else $as_nop 13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13929/* end confdefs.h. */ 13930int i; 13931_ACEOF 13932if ac_fn_c_try_compile "$LINENO" 13933then : 13934 xorg_cv_cc_flag_unknown_warning_option=yes 13935else $as_nop 13936 xorg_cv_cc_flag_unknown_warning_option=no 13937fi 13938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13939fi 13940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13941printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13943 CFLAGS="$xorg_testset_save_CFLAGS" 13944fi 13945 13946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13949 fi 13950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13952printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13953if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13954then : 13955 printf %s "(cached) " >&6 13956else $as_nop 13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13958/* end confdefs.h. */ 13959int i; 13960_ACEOF 13961if ac_fn_c_try_compile "$LINENO" 13962then : 13963 xorg_cv_cc_flag_unused_command_line_argument=yes 13964else $as_nop 13965 xorg_cv_cc_flag_unused_command_line_argument=no 13966fi 13967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13968fi 13969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13970printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13972 CFLAGS="$xorg_testset_save_CFLAGS" 13973fi 13974 13975found="no" 13976 13977 if test $found = "no" ; then 13978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13980 fi 13981 13982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13984 fi 13985 13986 CFLAGS="$CFLAGS -Wold-style-definition" 13987 13988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13989printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 13990 cacheid=xorg_cv_cc_flag__Wold_style_definition 13991 if eval test \${$cacheid+y} 13992then : 13993 printf %s "(cached) " >&6 13994else $as_nop 13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13996/* end confdefs.h. */ 13997int i; 13998int 13999main (void) 14000{ 14001 14002 ; 14003 return 0; 14004} 14005_ACEOF 14006if ac_fn_c_try_link "$LINENO" 14007then : 14008 eval $cacheid=yes 14009else $as_nop 14010 eval $cacheid=no 14011fi 14012rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14013 conftest$ac_exeext conftest.$ac_ext 14014fi 14015 14016 14017 CFLAGS="$xorg_testset_save_CFLAGS" 14018 14019 eval supported=\$$cacheid 14020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14021printf "%s\n" "$supported" >&6; } 14022 if test "$supported" = "yes" ; then 14023 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14024 found="yes" 14025 fi 14026 fi 14027 14028 if test $found = "no" ; then 14029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14031 fi 14032 14033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14035 fi 14036 14037 CFLAGS="$CFLAGS -fd" 14038 14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14040printf %s "checking if $CC supports -fd... " >&6; } 14041 cacheid=xorg_cv_cc_flag__fd 14042 if eval test \${$cacheid+y} 14043then : 14044 printf %s "(cached) " >&6 14045else $as_nop 14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14047/* end confdefs.h. */ 14048int i; 14049int 14050main (void) 14051{ 14052 14053 ; 14054 return 0; 14055} 14056_ACEOF 14057if ac_fn_c_try_link "$LINENO" 14058then : 14059 eval $cacheid=yes 14060else $as_nop 14061 eval $cacheid=no 14062fi 14063rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14064 conftest$ac_exeext conftest.$ac_ext 14065fi 14066 14067 14068 CFLAGS="$xorg_testset_save_CFLAGS" 14069 14070 eval supported=\$$cacheid 14071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14072printf "%s\n" "$supported" >&6; } 14073 if test "$supported" = "yes" ; then 14074 BASE_CFLAGS="$BASE_CFLAGS -fd" 14075 found="yes" 14076 fi 14077 fi 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093xorg_testset_save_CFLAGS="$CFLAGS" 14094 14095if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14098printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14099if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14100then : 14101 printf %s "(cached) " >&6 14102else $as_nop 14103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14104/* end confdefs.h. */ 14105int i; 14106_ACEOF 14107if ac_fn_c_try_compile "$LINENO" 14108then : 14109 xorg_cv_cc_flag_unknown_warning_option=yes 14110else $as_nop 14111 xorg_cv_cc_flag_unknown_warning_option=no 14112fi 14113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14114fi 14115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14116printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14118 CFLAGS="$xorg_testset_save_CFLAGS" 14119fi 14120 14121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14124 fi 14125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14127printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14128if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14129then : 14130 printf %s "(cached) " >&6 14131else $as_nop 14132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14133/* end confdefs.h. */ 14134int i; 14135_ACEOF 14136if ac_fn_c_try_compile "$LINENO" 14137then : 14138 xorg_cv_cc_flag_unused_command_line_argument=yes 14139else $as_nop 14140 xorg_cv_cc_flag_unused_command_line_argument=no 14141fi 14142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14143fi 14144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14145printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14147 CFLAGS="$xorg_testset_save_CFLAGS" 14148fi 14149 14150found="no" 14151 14152 if test $found = "no" ; then 14153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14155 fi 14156 14157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14159 fi 14160 14161 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14162 14163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14164printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14165 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14166 if eval test \${$cacheid+y} 14167then : 14168 printf %s "(cached) " >&6 14169else $as_nop 14170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14171/* end confdefs.h. */ 14172int i; 14173int 14174main (void) 14175{ 14176 14177 ; 14178 return 0; 14179} 14180_ACEOF 14181if ac_fn_c_try_link "$LINENO" 14182then : 14183 eval $cacheid=yes 14184else $as_nop 14185 eval $cacheid=no 14186fi 14187rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14188 conftest$ac_exeext conftest.$ac_ext 14189fi 14190 14191 14192 CFLAGS="$xorg_testset_save_CFLAGS" 14193 14194 eval supported=\$$cacheid 14195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14196printf "%s\n" "$supported" >&6; } 14197 if test "$supported" = "yes" ; then 14198 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14199 found="yes" 14200 fi 14201 fi 14202 14203 14204 14205 14206 14207# This chunk adds additional warnings that could catch undesired effects. 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221xorg_testset_save_CFLAGS="$CFLAGS" 14222 14223if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14226printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14227if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14228then : 14229 printf %s "(cached) " >&6 14230else $as_nop 14231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14232/* end confdefs.h. */ 14233int i; 14234_ACEOF 14235if ac_fn_c_try_compile "$LINENO" 14236then : 14237 xorg_cv_cc_flag_unknown_warning_option=yes 14238else $as_nop 14239 xorg_cv_cc_flag_unknown_warning_option=no 14240fi 14241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14242fi 14243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14244printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14245 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14246 CFLAGS="$xorg_testset_save_CFLAGS" 14247fi 14248 14249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14252 fi 14253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14255printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14256if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14257then : 14258 printf %s "(cached) " >&6 14259else $as_nop 14260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14261/* end confdefs.h. */ 14262int i; 14263_ACEOF 14264if ac_fn_c_try_compile "$LINENO" 14265then : 14266 xorg_cv_cc_flag_unused_command_line_argument=yes 14267else $as_nop 14268 xorg_cv_cc_flag_unused_command_line_argument=no 14269fi 14270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14271fi 14272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14273printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14275 CFLAGS="$xorg_testset_save_CFLAGS" 14276fi 14277 14278found="no" 14279 14280 if test $found = "no" ; then 14281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14283 fi 14284 14285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14287 fi 14288 14289 CFLAGS="$CFLAGS -Wunused" 14290 14291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14292printf %s "checking if $CC supports -Wunused... " >&6; } 14293 cacheid=xorg_cv_cc_flag__Wunused 14294 if eval test \${$cacheid+y} 14295then : 14296 printf %s "(cached) " >&6 14297else $as_nop 14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14299/* end confdefs.h. */ 14300int i; 14301int 14302main (void) 14303{ 14304 14305 ; 14306 return 0; 14307} 14308_ACEOF 14309if ac_fn_c_try_link "$LINENO" 14310then : 14311 eval $cacheid=yes 14312else $as_nop 14313 eval $cacheid=no 14314fi 14315rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14316 conftest$ac_exeext conftest.$ac_ext 14317fi 14318 14319 14320 CFLAGS="$xorg_testset_save_CFLAGS" 14321 14322 eval supported=\$$cacheid 14323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14324printf "%s\n" "$supported" >&6; } 14325 if test "$supported" = "yes" ; then 14326 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14327 found="yes" 14328 fi 14329 fi 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345xorg_testset_save_CFLAGS="$CFLAGS" 14346 14347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14350printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14351if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14352then : 14353 printf %s "(cached) " >&6 14354else $as_nop 14355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14356/* end confdefs.h. */ 14357int i; 14358_ACEOF 14359if ac_fn_c_try_compile "$LINENO" 14360then : 14361 xorg_cv_cc_flag_unknown_warning_option=yes 14362else $as_nop 14363 xorg_cv_cc_flag_unknown_warning_option=no 14364fi 14365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14366fi 14367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14368printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14370 CFLAGS="$xorg_testset_save_CFLAGS" 14371fi 14372 14373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14376 fi 14377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14379printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14380if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14381then : 14382 printf %s "(cached) " >&6 14383else $as_nop 14384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14385/* end confdefs.h. */ 14386int i; 14387_ACEOF 14388if ac_fn_c_try_compile "$LINENO" 14389then : 14390 xorg_cv_cc_flag_unused_command_line_argument=yes 14391else $as_nop 14392 xorg_cv_cc_flag_unused_command_line_argument=no 14393fi 14394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14395fi 14396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14397printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14399 CFLAGS="$xorg_testset_save_CFLAGS" 14400fi 14401 14402found="no" 14403 14404 if test $found = "no" ; then 14405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14407 fi 14408 14409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14411 fi 14412 14413 CFLAGS="$CFLAGS -Wuninitialized" 14414 14415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14416printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14417 cacheid=xorg_cv_cc_flag__Wuninitialized 14418 if eval test \${$cacheid+y} 14419then : 14420 printf %s "(cached) " >&6 14421else $as_nop 14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14423/* end confdefs.h. */ 14424int i; 14425int 14426main (void) 14427{ 14428 14429 ; 14430 return 0; 14431} 14432_ACEOF 14433if ac_fn_c_try_link "$LINENO" 14434then : 14435 eval $cacheid=yes 14436else $as_nop 14437 eval $cacheid=no 14438fi 14439rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14440 conftest$ac_exeext conftest.$ac_ext 14441fi 14442 14443 14444 CFLAGS="$xorg_testset_save_CFLAGS" 14445 14446 eval supported=\$$cacheid 14447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14448printf "%s\n" "$supported" >&6; } 14449 if test "$supported" = "yes" ; then 14450 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14451 found="yes" 14452 fi 14453 fi 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469xorg_testset_save_CFLAGS="$CFLAGS" 14470 14471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14474printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14475if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14476then : 14477 printf %s "(cached) " >&6 14478else $as_nop 14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14480/* end confdefs.h. */ 14481int i; 14482_ACEOF 14483if ac_fn_c_try_compile "$LINENO" 14484then : 14485 xorg_cv_cc_flag_unknown_warning_option=yes 14486else $as_nop 14487 xorg_cv_cc_flag_unknown_warning_option=no 14488fi 14489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14490fi 14491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14492printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14494 CFLAGS="$xorg_testset_save_CFLAGS" 14495fi 14496 14497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14500 fi 14501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14503printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14504if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14505then : 14506 printf %s "(cached) " >&6 14507else $as_nop 14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14509/* end confdefs.h. */ 14510int i; 14511_ACEOF 14512if ac_fn_c_try_compile "$LINENO" 14513then : 14514 xorg_cv_cc_flag_unused_command_line_argument=yes 14515else $as_nop 14516 xorg_cv_cc_flag_unused_command_line_argument=no 14517fi 14518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14519fi 14520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14521printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14523 CFLAGS="$xorg_testset_save_CFLAGS" 14524fi 14525 14526found="no" 14527 14528 if test $found = "no" ; then 14529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14531 fi 14532 14533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14535 fi 14536 14537 CFLAGS="$CFLAGS -Wshadow" 14538 14539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14540printf %s "checking if $CC supports -Wshadow... " >&6; } 14541 cacheid=xorg_cv_cc_flag__Wshadow 14542 if eval test \${$cacheid+y} 14543then : 14544 printf %s "(cached) " >&6 14545else $as_nop 14546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14547/* end confdefs.h. */ 14548int i; 14549int 14550main (void) 14551{ 14552 14553 ; 14554 return 0; 14555} 14556_ACEOF 14557if ac_fn_c_try_link "$LINENO" 14558then : 14559 eval $cacheid=yes 14560else $as_nop 14561 eval $cacheid=no 14562fi 14563rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14564 conftest$ac_exeext conftest.$ac_ext 14565fi 14566 14567 14568 CFLAGS="$xorg_testset_save_CFLAGS" 14569 14570 eval supported=\$$cacheid 14571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14572printf "%s\n" "$supported" >&6; } 14573 if test "$supported" = "yes" ; then 14574 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14575 found="yes" 14576 fi 14577 fi 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593xorg_testset_save_CFLAGS="$CFLAGS" 14594 14595if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14598printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14599if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14600then : 14601 printf %s "(cached) " >&6 14602else $as_nop 14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14604/* end confdefs.h. */ 14605int i; 14606_ACEOF 14607if ac_fn_c_try_compile "$LINENO" 14608then : 14609 xorg_cv_cc_flag_unknown_warning_option=yes 14610else $as_nop 14611 xorg_cv_cc_flag_unknown_warning_option=no 14612fi 14613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14614fi 14615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14616printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14618 CFLAGS="$xorg_testset_save_CFLAGS" 14619fi 14620 14621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14624 fi 14625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14627printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14628if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14629then : 14630 printf %s "(cached) " >&6 14631else $as_nop 14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14633/* end confdefs.h. */ 14634int i; 14635_ACEOF 14636if ac_fn_c_try_compile "$LINENO" 14637then : 14638 xorg_cv_cc_flag_unused_command_line_argument=yes 14639else $as_nop 14640 xorg_cv_cc_flag_unused_command_line_argument=no 14641fi 14642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14643fi 14644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14645printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14647 CFLAGS="$xorg_testset_save_CFLAGS" 14648fi 14649 14650found="no" 14651 14652 if test $found = "no" ; then 14653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14655 fi 14656 14657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14659 fi 14660 14661 CFLAGS="$CFLAGS -Wmissing-noreturn" 14662 14663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14664printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14665 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14666 if eval test \${$cacheid+y} 14667then : 14668 printf %s "(cached) " >&6 14669else $as_nop 14670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14671/* end confdefs.h. */ 14672int i; 14673int 14674main (void) 14675{ 14676 14677 ; 14678 return 0; 14679} 14680_ACEOF 14681if ac_fn_c_try_link "$LINENO" 14682then : 14683 eval $cacheid=yes 14684else $as_nop 14685 eval $cacheid=no 14686fi 14687rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14688 conftest$ac_exeext conftest.$ac_ext 14689fi 14690 14691 14692 CFLAGS="$xorg_testset_save_CFLAGS" 14693 14694 eval supported=\$$cacheid 14695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14696printf "%s\n" "$supported" >&6; } 14697 if test "$supported" = "yes" ; then 14698 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14699 found="yes" 14700 fi 14701 fi 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717xorg_testset_save_CFLAGS="$CFLAGS" 14718 14719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14722printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14723if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14724then : 14725 printf %s "(cached) " >&6 14726else $as_nop 14727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14728/* end confdefs.h. */ 14729int i; 14730_ACEOF 14731if ac_fn_c_try_compile "$LINENO" 14732then : 14733 xorg_cv_cc_flag_unknown_warning_option=yes 14734else $as_nop 14735 xorg_cv_cc_flag_unknown_warning_option=no 14736fi 14737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14738fi 14739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14740printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14742 CFLAGS="$xorg_testset_save_CFLAGS" 14743fi 14744 14745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14748 fi 14749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14751printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14752if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14753then : 14754 printf %s "(cached) " >&6 14755else $as_nop 14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14757/* end confdefs.h. */ 14758int i; 14759_ACEOF 14760if ac_fn_c_try_compile "$LINENO" 14761then : 14762 xorg_cv_cc_flag_unused_command_line_argument=yes 14763else $as_nop 14764 xorg_cv_cc_flag_unused_command_line_argument=no 14765fi 14766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14767fi 14768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14769printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14771 CFLAGS="$xorg_testset_save_CFLAGS" 14772fi 14773 14774found="no" 14775 14776 if test $found = "no" ; then 14777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14779 fi 14780 14781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14783 fi 14784 14785 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14786 14787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14788printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14789 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14790 if eval test \${$cacheid+y} 14791then : 14792 printf %s "(cached) " >&6 14793else $as_nop 14794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14795/* end confdefs.h. */ 14796int i; 14797int 14798main (void) 14799{ 14800 14801 ; 14802 return 0; 14803} 14804_ACEOF 14805if ac_fn_c_try_link "$LINENO" 14806then : 14807 eval $cacheid=yes 14808else $as_nop 14809 eval $cacheid=no 14810fi 14811rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14812 conftest$ac_exeext conftest.$ac_ext 14813fi 14814 14815 14816 CFLAGS="$xorg_testset_save_CFLAGS" 14817 14818 eval supported=\$$cacheid 14819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14820printf "%s\n" "$supported" >&6; } 14821 if test "$supported" = "yes" ; then 14822 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14823 found="yes" 14824 fi 14825 fi 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841xorg_testset_save_CFLAGS="$CFLAGS" 14842 14843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14846printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14847if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14848then : 14849 printf %s "(cached) " >&6 14850else $as_nop 14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14852/* end confdefs.h. */ 14853int i; 14854_ACEOF 14855if ac_fn_c_try_compile "$LINENO" 14856then : 14857 xorg_cv_cc_flag_unknown_warning_option=yes 14858else $as_nop 14859 xorg_cv_cc_flag_unknown_warning_option=no 14860fi 14861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14862fi 14863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14864printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14866 CFLAGS="$xorg_testset_save_CFLAGS" 14867fi 14868 14869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14872 fi 14873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14875printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14876if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14877then : 14878 printf %s "(cached) " >&6 14879else $as_nop 14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14881/* end confdefs.h. */ 14882int i; 14883_ACEOF 14884if ac_fn_c_try_compile "$LINENO" 14885then : 14886 xorg_cv_cc_flag_unused_command_line_argument=yes 14887else $as_nop 14888 xorg_cv_cc_flag_unused_command_line_argument=no 14889fi 14890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14891fi 14892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14893printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14895 CFLAGS="$xorg_testset_save_CFLAGS" 14896fi 14897 14898found="no" 14899 14900 if test $found = "no" ; then 14901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14903 fi 14904 14905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14907 fi 14908 14909 CFLAGS="$CFLAGS -Wredundant-decls" 14910 14911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14912printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 14913 cacheid=xorg_cv_cc_flag__Wredundant_decls 14914 if eval test \${$cacheid+y} 14915then : 14916 printf %s "(cached) " >&6 14917else $as_nop 14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14919/* end confdefs.h. */ 14920int i; 14921int 14922main (void) 14923{ 14924 14925 ; 14926 return 0; 14927} 14928_ACEOF 14929if ac_fn_c_try_link "$LINENO" 14930then : 14931 eval $cacheid=yes 14932else $as_nop 14933 eval $cacheid=no 14934fi 14935rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14936 conftest$ac_exeext conftest.$ac_ext 14937fi 14938 14939 14940 CFLAGS="$xorg_testset_save_CFLAGS" 14941 14942 eval supported=\$$cacheid 14943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14944printf "%s\n" "$supported" >&6; } 14945 if test "$supported" = "yes" ; then 14946 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14947 found="yes" 14948 fi 14949 fi 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965xorg_testset_save_CFLAGS="$CFLAGS" 14966 14967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14970printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14971if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14972then : 14973 printf %s "(cached) " >&6 14974else $as_nop 14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14976/* end confdefs.h. */ 14977int i; 14978_ACEOF 14979if ac_fn_c_try_compile "$LINENO" 14980then : 14981 xorg_cv_cc_flag_unknown_warning_option=yes 14982else $as_nop 14983 xorg_cv_cc_flag_unknown_warning_option=no 14984fi 14985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14986fi 14987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14988printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14990 CFLAGS="$xorg_testset_save_CFLAGS" 14991fi 14992 14993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14996 fi 14997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14999printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15000if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15001then : 15002 printf %s "(cached) " >&6 15003else $as_nop 15004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15005/* end confdefs.h. */ 15006int i; 15007_ACEOF 15008if ac_fn_c_try_compile "$LINENO" 15009then : 15010 xorg_cv_cc_flag_unused_command_line_argument=yes 15011else $as_nop 15012 xorg_cv_cc_flag_unused_command_line_argument=no 15013fi 15014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15015fi 15016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15017printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15019 CFLAGS="$xorg_testset_save_CFLAGS" 15020fi 15021 15022found="no" 15023 15024 if test $found = "no" ; then 15025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15027 fi 15028 15029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15031 fi 15032 15033 CFLAGS="$CFLAGS -Wlogical-op" 15034 15035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15036printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15037 cacheid=xorg_cv_cc_flag__Wlogical_op 15038 if eval test \${$cacheid+y} 15039then : 15040 printf %s "(cached) " >&6 15041else $as_nop 15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15043/* end confdefs.h. */ 15044int i; 15045int 15046main (void) 15047{ 15048 15049 ; 15050 return 0; 15051} 15052_ACEOF 15053if ac_fn_c_try_link "$LINENO" 15054then : 15055 eval $cacheid=yes 15056else $as_nop 15057 eval $cacheid=no 15058fi 15059rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15060 conftest$ac_exeext conftest.$ac_ext 15061fi 15062 15063 15064 CFLAGS="$xorg_testset_save_CFLAGS" 15065 15066 eval supported=\$$cacheid 15067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15068printf "%s\n" "$supported" >&6; } 15069 if test "$supported" = "yes" ; then 15070 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15071 found="yes" 15072 fi 15073 fi 15074 15075 15076 15077# These are currently disabled because they are noisy. They will be enabled 15078# in the future once the codebase is sufficiently modernized to silence 15079# them. For now, I don't want them to drown out the other warnings. 15080# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15081# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15082# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15083 15084# Turn some warnings into errors, so we don't accidently get successful builds 15085# when there are problems that should be fixed. 15086 15087if test "x$SELECTIVE_WERROR" = "xyes" ; then 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101xorg_testset_save_CFLAGS="$CFLAGS" 15102 15103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15106printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15107if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15108then : 15109 printf %s "(cached) " >&6 15110else $as_nop 15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15112/* end confdefs.h. */ 15113int i; 15114_ACEOF 15115if ac_fn_c_try_compile "$LINENO" 15116then : 15117 xorg_cv_cc_flag_unknown_warning_option=yes 15118else $as_nop 15119 xorg_cv_cc_flag_unknown_warning_option=no 15120fi 15121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15122fi 15123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15124printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15126 CFLAGS="$xorg_testset_save_CFLAGS" 15127fi 15128 15129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15132 fi 15133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15135printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15136if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15137then : 15138 printf %s "(cached) " >&6 15139else $as_nop 15140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15141/* end confdefs.h. */ 15142int i; 15143_ACEOF 15144if ac_fn_c_try_compile "$LINENO" 15145then : 15146 xorg_cv_cc_flag_unused_command_line_argument=yes 15147else $as_nop 15148 xorg_cv_cc_flag_unused_command_line_argument=no 15149fi 15150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15151fi 15152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15153printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15154 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15155 CFLAGS="$xorg_testset_save_CFLAGS" 15156fi 15157 15158found="no" 15159 15160 if test $found = "no" ; then 15161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15163 fi 15164 15165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15167 fi 15168 15169 CFLAGS="$CFLAGS -Werror=implicit" 15170 15171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15172printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15173 cacheid=xorg_cv_cc_flag__Werror_implicit 15174 if eval test \${$cacheid+y} 15175then : 15176 printf %s "(cached) " >&6 15177else $as_nop 15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15179/* end confdefs.h. */ 15180int i; 15181int 15182main (void) 15183{ 15184 15185 ; 15186 return 0; 15187} 15188_ACEOF 15189if ac_fn_c_try_link "$LINENO" 15190then : 15191 eval $cacheid=yes 15192else $as_nop 15193 eval $cacheid=no 15194fi 15195rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15196 conftest$ac_exeext conftest.$ac_ext 15197fi 15198 15199 15200 CFLAGS="$xorg_testset_save_CFLAGS" 15201 15202 eval supported=\$$cacheid 15203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15204printf "%s\n" "$supported" >&6; } 15205 if test "$supported" = "yes" ; then 15206 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15207 found="yes" 15208 fi 15209 fi 15210 15211 if test $found = "no" ; then 15212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15214 fi 15215 15216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15218 fi 15219 15220 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15221 15222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 15223printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15224 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15225 if eval test \${$cacheid+y} 15226then : 15227 printf %s "(cached) " >&6 15228else $as_nop 15229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15230/* end confdefs.h. */ 15231int i; 15232int 15233main (void) 15234{ 15235 15236 ; 15237 return 0; 15238} 15239_ACEOF 15240if ac_fn_c_try_link "$LINENO" 15241then : 15242 eval $cacheid=yes 15243else $as_nop 15244 eval $cacheid=no 15245fi 15246rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15247 conftest$ac_exeext conftest.$ac_ext 15248fi 15249 15250 15251 CFLAGS="$xorg_testset_save_CFLAGS" 15252 15253 eval supported=\$$cacheid 15254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15255printf "%s\n" "$supported" >&6; } 15256 if test "$supported" = "yes" ; then 15257 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15258 found="yes" 15259 fi 15260 fi 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276xorg_testset_save_CFLAGS="$CFLAGS" 15277 15278if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15281printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15282if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15283then : 15284 printf %s "(cached) " >&6 15285else $as_nop 15286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15287/* end confdefs.h. */ 15288int i; 15289_ACEOF 15290if ac_fn_c_try_compile "$LINENO" 15291then : 15292 xorg_cv_cc_flag_unknown_warning_option=yes 15293else $as_nop 15294 xorg_cv_cc_flag_unknown_warning_option=no 15295fi 15296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15297fi 15298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15299printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15301 CFLAGS="$xorg_testset_save_CFLAGS" 15302fi 15303 15304if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15307 fi 15308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15310printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15311if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15312then : 15313 printf %s "(cached) " >&6 15314else $as_nop 15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15316/* end confdefs.h. */ 15317int i; 15318_ACEOF 15319if ac_fn_c_try_compile "$LINENO" 15320then : 15321 xorg_cv_cc_flag_unused_command_line_argument=yes 15322else $as_nop 15323 xorg_cv_cc_flag_unused_command_line_argument=no 15324fi 15325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15326fi 15327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15328printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15330 CFLAGS="$xorg_testset_save_CFLAGS" 15331fi 15332 15333found="no" 15334 15335 if test $found = "no" ; then 15336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15338 fi 15339 15340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15342 fi 15343 15344 CFLAGS="$CFLAGS -Werror=nonnull" 15345 15346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15347printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15348 cacheid=xorg_cv_cc_flag__Werror_nonnull 15349 if eval test \${$cacheid+y} 15350then : 15351 printf %s "(cached) " >&6 15352else $as_nop 15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15354/* end confdefs.h. */ 15355int i; 15356int 15357main (void) 15358{ 15359 15360 ; 15361 return 0; 15362} 15363_ACEOF 15364if ac_fn_c_try_link "$LINENO" 15365then : 15366 eval $cacheid=yes 15367else $as_nop 15368 eval $cacheid=no 15369fi 15370rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15371 conftest$ac_exeext conftest.$ac_ext 15372fi 15373 15374 15375 CFLAGS="$xorg_testset_save_CFLAGS" 15376 15377 eval supported=\$$cacheid 15378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15379printf "%s\n" "$supported" >&6; } 15380 if test "$supported" = "yes" ; then 15381 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15382 found="yes" 15383 fi 15384 fi 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400xorg_testset_save_CFLAGS="$CFLAGS" 15401 15402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15405printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15406if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15407then : 15408 printf %s "(cached) " >&6 15409else $as_nop 15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15411/* end confdefs.h. */ 15412int i; 15413_ACEOF 15414if ac_fn_c_try_compile "$LINENO" 15415then : 15416 xorg_cv_cc_flag_unknown_warning_option=yes 15417else $as_nop 15418 xorg_cv_cc_flag_unknown_warning_option=no 15419fi 15420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15421fi 15422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15423printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15425 CFLAGS="$xorg_testset_save_CFLAGS" 15426fi 15427 15428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15431 fi 15432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15434printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15435if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15436then : 15437 printf %s "(cached) " >&6 15438else $as_nop 15439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15440/* end confdefs.h. */ 15441int i; 15442_ACEOF 15443if ac_fn_c_try_compile "$LINENO" 15444then : 15445 xorg_cv_cc_flag_unused_command_line_argument=yes 15446else $as_nop 15447 xorg_cv_cc_flag_unused_command_line_argument=no 15448fi 15449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15450fi 15451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15452printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15454 CFLAGS="$xorg_testset_save_CFLAGS" 15455fi 15456 15457found="no" 15458 15459 if test $found = "no" ; then 15460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15462 fi 15463 15464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15466 fi 15467 15468 CFLAGS="$CFLAGS -Werror=init-self" 15469 15470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15471printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15472 cacheid=xorg_cv_cc_flag__Werror_init_self 15473 if eval test \${$cacheid+y} 15474then : 15475 printf %s "(cached) " >&6 15476else $as_nop 15477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15478/* end confdefs.h. */ 15479int i; 15480int 15481main (void) 15482{ 15483 15484 ; 15485 return 0; 15486} 15487_ACEOF 15488if ac_fn_c_try_link "$LINENO" 15489then : 15490 eval $cacheid=yes 15491else $as_nop 15492 eval $cacheid=no 15493fi 15494rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15495 conftest$ac_exeext conftest.$ac_ext 15496fi 15497 15498 15499 CFLAGS="$xorg_testset_save_CFLAGS" 15500 15501 eval supported=\$$cacheid 15502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15503printf "%s\n" "$supported" >&6; } 15504 if test "$supported" = "yes" ; then 15505 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15506 found="yes" 15507 fi 15508 fi 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524xorg_testset_save_CFLAGS="$CFLAGS" 15525 15526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15529printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15530if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15531then : 15532 printf %s "(cached) " >&6 15533else $as_nop 15534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15535/* end confdefs.h. */ 15536int i; 15537_ACEOF 15538if ac_fn_c_try_compile "$LINENO" 15539then : 15540 xorg_cv_cc_flag_unknown_warning_option=yes 15541else $as_nop 15542 xorg_cv_cc_flag_unknown_warning_option=no 15543fi 15544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15545fi 15546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15547printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15549 CFLAGS="$xorg_testset_save_CFLAGS" 15550fi 15551 15552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15555 fi 15556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15558printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15559if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15560then : 15561 printf %s "(cached) " >&6 15562else $as_nop 15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15564/* end confdefs.h. */ 15565int i; 15566_ACEOF 15567if ac_fn_c_try_compile "$LINENO" 15568then : 15569 xorg_cv_cc_flag_unused_command_line_argument=yes 15570else $as_nop 15571 xorg_cv_cc_flag_unused_command_line_argument=no 15572fi 15573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15574fi 15575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15576printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15578 CFLAGS="$xorg_testset_save_CFLAGS" 15579fi 15580 15581found="no" 15582 15583 if test $found = "no" ; then 15584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15586 fi 15587 15588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15590 fi 15591 15592 CFLAGS="$CFLAGS -Werror=main" 15593 15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15595printf %s "checking if $CC supports -Werror=main... " >&6; } 15596 cacheid=xorg_cv_cc_flag__Werror_main 15597 if eval test \${$cacheid+y} 15598then : 15599 printf %s "(cached) " >&6 15600else $as_nop 15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15602/* end confdefs.h. */ 15603int i; 15604int 15605main (void) 15606{ 15607 15608 ; 15609 return 0; 15610} 15611_ACEOF 15612if ac_fn_c_try_link "$LINENO" 15613then : 15614 eval $cacheid=yes 15615else $as_nop 15616 eval $cacheid=no 15617fi 15618rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15619 conftest$ac_exeext conftest.$ac_ext 15620fi 15621 15622 15623 CFLAGS="$xorg_testset_save_CFLAGS" 15624 15625 eval supported=\$$cacheid 15626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15627printf "%s\n" "$supported" >&6; } 15628 if test "$supported" = "yes" ; then 15629 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15630 found="yes" 15631 fi 15632 fi 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648xorg_testset_save_CFLAGS="$CFLAGS" 15649 15650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15653printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15654if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15655then : 15656 printf %s "(cached) " >&6 15657else $as_nop 15658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15659/* end confdefs.h. */ 15660int i; 15661_ACEOF 15662if ac_fn_c_try_compile "$LINENO" 15663then : 15664 xorg_cv_cc_flag_unknown_warning_option=yes 15665else $as_nop 15666 xorg_cv_cc_flag_unknown_warning_option=no 15667fi 15668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15669fi 15670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15671printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15673 CFLAGS="$xorg_testset_save_CFLAGS" 15674fi 15675 15676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15679 fi 15680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15682printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15683if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15684then : 15685 printf %s "(cached) " >&6 15686else $as_nop 15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15688/* end confdefs.h. */ 15689int i; 15690_ACEOF 15691if ac_fn_c_try_compile "$LINENO" 15692then : 15693 xorg_cv_cc_flag_unused_command_line_argument=yes 15694else $as_nop 15695 xorg_cv_cc_flag_unused_command_line_argument=no 15696fi 15697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15698fi 15699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15700printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15702 CFLAGS="$xorg_testset_save_CFLAGS" 15703fi 15704 15705found="no" 15706 15707 if test $found = "no" ; then 15708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15710 fi 15711 15712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15714 fi 15715 15716 CFLAGS="$CFLAGS -Werror=missing-braces" 15717 15718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15719printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15720 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15721 if eval test \${$cacheid+y} 15722then : 15723 printf %s "(cached) " >&6 15724else $as_nop 15725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15726/* end confdefs.h. */ 15727int i; 15728int 15729main (void) 15730{ 15731 15732 ; 15733 return 0; 15734} 15735_ACEOF 15736if ac_fn_c_try_link "$LINENO" 15737then : 15738 eval $cacheid=yes 15739else $as_nop 15740 eval $cacheid=no 15741fi 15742rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15743 conftest$ac_exeext conftest.$ac_ext 15744fi 15745 15746 15747 CFLAGS="$xorg_testset_save_CFLAGS" 15748 15749 eval supported=\$$cacheid 15750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15751printf "%s\n" "$supported" >&6; } 15752 if test "$supported" = "yes" ; then 15753 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15754 found="yes" 15755 fi 15756 fi 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772xorg_testset_save_CFLAGS="$CFLAGS" 15773 15774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15777printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15778if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15779then : 15780 printf %s "(cached) " >&6 15781else $as_nop 15782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15783/* end confdefs.h. */ 15784int i; 15785_ACEOF 15786if ac_fn_c_try_compile "$LINENO" 15787then : 15788 xorg_cv_cc_flag_unknown_warning_option=yes 15789else $as_nop 15790 xorg_cv_cc_flag_unknown_warning_option=no 15791fi 15792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15793fi 15794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15795printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15797 CFLAGS="$xorg_testset_save_CFLAGS" 15798fi 15799 15800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15803 fi 15804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15806printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15807if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15808then : 15809 printf %s "(cached) " >&6 15810else $as_nop 15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15812/* end confdefs.h. */ 15813int i; 15814_ACEOF 15815if ac_fn_c_try_compile "$LINENO" 15816then : 15817 xorg_cv_cc_flag_unused_command_line_argument=yes 15818else $as_nop 15819 xorg_cv_cc_flag_unused_command_line_argument=no 15820fi 15821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15822fi 15823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15824printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15826 CFLAGS="$xorg_testset_save_CFLAGS" 15827fi 15828 15829found="no" 15830 15831 if test $found = "no" ; then 15832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15834 fi 15835 15836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15838 fi 15839 15840 CFLAGS="$CFLAGS -Werror=sequence-point" 15841 15842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15843printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 15844 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15845 if eval test \${$cacheid+y} 15846then : 15847 printf %s "(cached) " >&6 15848else $as_nop 15849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15850/* end confdefs.h. */ 15851int i; 15852int 15853main (void) 15854{ 15855 15856 ; 15857 return 0; 15858} 15859_ACEOF 15860if ac_fn_c_try_link "$LINENO" 15861then : 15862 eval $cacheid=yes 15863else $as_nop 15864 eval $cacheid=no 15865fi 15866rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15867 conftest$ac_exeext conftest.$ac_ext 15868fi 15869 15870 15871 CFLAGS="$xorg_testset_save_CFLAGS" 15872 15873 eval supported=\$$cacheid 15874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15875printf "%s\n" "$supported" >&6; } 15876 if test "$supported" = "yes" ; then 15877 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15878 found="yes" 15879 fi 15880 fi 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896xorg_testset_save_CFLAGS="$CFLAGS" 15897 15898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15901printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15902if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15903then : 15904 printf %s "(cached) " >&6 15905else $as_nop 15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15907/* end confdefs.h. */ 15908int i; 15909_ACEOF 15910if ac_fn_c_try_compile "$LINENO" 15911then : 15912 xorg_cv_cc_flag_unknown_warning_option=yes 15913else $as_nop 15914 xorg_cv_cc_flag_unknown_warning_option=no 15915fi 15916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15917fi 15918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15919printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15921 CFLAGS="$xorg_testset_save_CFLAGS" 15922fi 15923 15924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15927 fi 15928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15930printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15931if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15932then : 15933 printf %s "(cached) " >&6 15934else $as_nop 15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15936/* end confdefs.h. */ 15937int i; 15938_ACEOF 15939if ac_fn_c_try_compile "$LINENO" 15940then : 15941 xorg_cv_cc_flag_unused_command_line_argument=yes 15942else $as_nop 15943 xorg_cv_cc_flag_unused_command_line_argument=no 15944fi 15945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15946fi 15947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15948printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15950 CFLAGS="$xorg_testset_save_CFLAGS" 15951fi 15952 15953found="no" 15954 15955 if test $found = "no" ; then 15956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15958 fi 15959 15960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15962 fi 15963 15964 CFLAGS="$CFLAGS -Werror=return-type" 15965 15966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15967printf %s "checking if $CC supports -Werror=return-type... " >&6; } 15968 cacheid=xorg_cv_cc_flag__Werror_return_type 15969 if eval test \${$cacheid+y} 15970then : 15971 printf %s "(cached) " >&6 15972else $as_nop 15973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15974/* end confdefs.h. */ 15975int i; 15976int 15977main (void) 15978{ 15979 15980 ; 15981 return 0; 15982} 15983_ACEOF 15984if ac_fn_c_try_link "$LINENO" 15985then : 15986 eval $cacheid=yes 15987else $as_nop 15988 eval $cacheid=no 15989fi 15990rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15991 conftest$ac_exeext conftest.$ac_ext 15992fi 15993 15994 15995 CFLAGS="$xorg_testset_save_CFLAGS" 15996 15997 eval supported=\$$cacheid 15998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15999printf "%s\n" "$supported" >&6; } 16000 if test "$supported" = "yes" ; then 16001 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16002 found="yes" 16003 fi 16004 fi 16005 16006 if test $found = "no" ; then 16007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16009 fi 16010 16011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16013 fi 16014 16015 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16016 16017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16018printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16019 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16020 if eval test \${$cacheid+y} 16021then : 16022 printf %s "(cached) " >&6 16023else $as_nop 16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16025/* end confdefs.h. */ 16026int i; 16027int 16028main (void) 16029{ 16030 16031 ; 16032 return 0; 16033} 16034_ACEOF 16035if ac_fn_c_try_link "$LINENO" 16036then : 16037 eval $cacheid=yes 16038else $as_nop 16039 eval $cacheid=no 16040fi 16041rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16042 conftest$ac_exeext conftest.$ac_ext 16043fi 16044 16045 16046 CFLAGS="$xorg_testset_save_CFLAGS" 16047 16048 eval supported=\$$cacheid 16049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16050printf "%s\n" "$supported" >&6; } 16051 if test "$supported" = "yes" ; then 16052 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16053 found="yes" 16054 fi 16055 fi 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071xorg_testset_save_CFLAGS="$CFLAGS" 16072 16073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16076printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16077if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16078then : 16079 printf %s "(cached) " >&6 16080else $as_nop 16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16082/* end confdefs.h. */ 16083int i; 16084_ACEOF 16085if ac_fn_c_try_compile "$LINENO" 16086then : 16087 xorg_cv_cc_flag_unknown_warning_option=yes 16088else $as_nop 16089 xorg_cv_cc_flag_unknown_warning_option=no 16090fi 16091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16092fi 16093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16094printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16096 CFLAGS="$xorg_testset_save_CFLAGS" 16097fi 16098 16099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16102 fi 16103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16105printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16106if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16107then : 16108 printf %s "(cached) " >&6 16109else $as_nop 16110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16111/* end confdefs.h. */ 16112int i; 16113_ACEOF 16114if ac_fn_c_try_compile "$LINENO" 16115then : 16116 xorg_cv_cc_flag_unused_command_line_argument=yes 16117else $as_nop 16118 xorg_cv_cc_flag_unused_command_line_argument=no 16119fi 16120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16121fi 16122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16123printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16125 CFLAGS="$xorg_testset_save_CFLAGS" 16126fi 16127 16128found="no" 16129 16130 if test $found = "no" ; then 16131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16133 fi 16134 16135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16137 fi 16138 16139 CFLAGS="$CFLAGS -Werror=trigraphs" 16140 16141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16142printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16143 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16144 if eval test \${$cacheid+y} 16145then : 16146 printf %s "(cached) " >&6 16147else $as_nop 16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16149/* end confdefs.h. */ 16150int i; 16151int 16152main (void) 16153{ 16154 16155 ; 16156 return 0; 16157} 16158_ACEOF 16159if ac_fn_c_try_link "$LINENO" 16160then : 16161 eval $cacheid=yes 16162else $as_nop 16163 eval $cacheid=no 16164fi 16165rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16166 conftest$ac_exeext conftest.$ac_ext 16167fi 16168 16169 16170 CFLAGS="$xorg_testset_save_CFLAGS" 16171 16172 eval supported=\$$cacheid 16173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16174printf "%s\n" "$supported" >&6; } 16175 if test "$supported" = "yes" ; then 16176 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16177 found="yes" 16178 fi 16179 fi 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195xorg_testset_save_CFLAGS="$CFLAGS" 16196 16197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16200printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16201if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16202then : 16203 printf %s "(cached) " >&6 16204else $as_nop 16205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16206/* end confdefs.h. */ 16207int i; 16208_ACEOF 16209if ac_fn_c_try_compile "$LINENO" 16210then : 16211 xorg_cv_cc_flag_unknown_warning_option=yes 16212else $as_nop 16213 xorg_cv_cc_flag_unknown_warning_option=no 16214fi 16215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16216fi 16217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16218printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16220 CFLAGS="$xorg_testset_save_CFLAGS" 16221fi 16222 16223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16226 fi 16227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16229printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16230if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16231then : 16232 printf %s "(cached) " >&6 16233else $as_nop 16234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16235/* end confdefs.h. */ 16236int i; 16237_ACEOF 16238if ac_fn_c_try_compile "$LINENO" 16239then : 16240 xorg_cv_cc_flag_unused_command_line_argument=yes 16241else $as_nop 16242 xorg_cv_cc_flag_unused_command_line_argument=no 16243fi 16244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16245fi 16246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16247printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16249 CFLAGS="$xorg_testset_save_CFLAGS" 16250fi 16251 16252found="no" 16253 16254 if test $found = "no" ; then 16255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16257 fi 16258 16259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16261 fi 16262 16263 CFLAGS="$CFLAGS -Werror=array-bounds" 16264 16265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16266printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16267 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16268 if eval test \${$cacheid+y} 16269then : 16270 printf %s "(cached) " >&6 16271else $as_nop 16272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16273/* end confdefs.h. */ 16274int i; 16275int 16276main (void) 16277{ 16278 16279 ; 16280 return 0; 16281} 16282_ACEOF 16283if ac_fn_c_try_link "$LINENO" 16284then : 16285 eval $cacheid=yes 16286else $as_nop 16287 eval $cacheid=no 16288fi 16289rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16290 conftest$ac_exeext conftest.$ac_ext 16291fi 16292 16293 16294 CFLAGS="$xorg_testset_save_CFLAGS" 16295 16296 eval supported=\$$cacheid 16297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16298printf "%s\n" "$supported" >&6; } 16299 if test "$supported" = "yes" ; then 16300 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16301 found="yes" 16302 fi 16303 fi 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319xorg_testset_save_CFLAGS="$CFLAGS" 16320 16321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16324printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16325if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16326then : 16327 printf %s "(cached) " >&6 16328else $as_nop 16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16330/* end confdefs.h. */ 16331int i; 16332_ACEOF 16333if ac_fn_c_try_compile "$LINENO" 16334then : 16335 xorg_cv_cc_flag_unknown_warning_option=yes 16336else $as_nop 16337 xorg_cv_cc_flag_unknown_warning_option=no 16338fi 16339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16340fi 16341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16342printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16344 CFLAGS="$xorg_testset_save_CFLAGS" 16345fi 16346 16347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16350 fi 16351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16353printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16354if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16355then : 16356 printf %s "(cached) " >&6 16357else $as_nop 16358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16359/* end confdefs.h. */ 16360int i; 16361_ACEOF 16362if ac_fn_c_try_compile "$LINENO" 16363then : 16364 xorg_cv_cc_flag_unused_command_line_argument=yes 16365else $as_nop 16366 xorg_cv_cc_flag_unused_command_line_argument=no 16367fi 16368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16369fi 16370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16371printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16373 CFLAGS="$xorg_testset_save_CFLAGS" 16374fi 16375 16376found="no" 16377 16378 if test $found = "no" ; then 16379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16381 fi 16382 16383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16385 fi 16386 16387 CFLAGS="$CFLAGS -Werror=write-strings" 16388 16389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16390printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16391 cacheid=xorg_cv_cc_flag__Werror_write_strings 16392 if eval test \${$cacheid+y} 16393then : 16394 printf %s "(cached) " >&6 16395else $as_nop 16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16397/* end confdefs.h. */ 16398int i; 16399int 16400main (void) 16401{ 16402 16403 ; 16404 return 0; 16405} 16406_ACEOF 16407if ac_fn_c_try_link "$LINENO" 16408then : 16409 eval $cacheid=yes 16410else $as_nop 16411 eval $cacheid=no 16412fi 16413rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16414 conftest$ac_exeext conftest.$ac_ext 16415fi 16416 16417 16418 CFLAGS="$xorg_testset_save_CFLAGS" 16419 16420 eval supported=\$$cacheid 16421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16422printf "%s\n" "$supported" >&6; } 16423 if test "$supported" = "yes" ; then 16424 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16425 found="yes" 16426 fi 16427 fi 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443xorg_testset_save_CFLAGS="$CFLAGS" 16444 16445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16448printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16449if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16450then : 16451 printf %s "(cached) " >&6 16452else $as_nop 16453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16454/* end confdefs.h. */ 16455int i; 16456_ACEOF 16457if ac_fn_c_try_compile "$LINENO" 16458then : 16459 xorg_cv_cc_flag_unknown_warning_option=yes 16460else $as_nop 16461 xorg_cv_cc_flag_unknown_warning_option=no 16462fi 16463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16464fi 16465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16466printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16468 CFLAGS="$xorg_testset_save_CFLAGS" 16469fi 16470 16471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16474 fi 16475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16477printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16478if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16479then : 16480 printf %s "(cached) " >&6 16481else $as_nop 16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16483/* end confdefs.h. */ 16484int i; 16485_ACEOF 16486if ac_fn_c_try_compile "$LINENO" 16487then : 16488 xorg_cv_cc_flag_unused_command_line_argument=yes 16489else $as_nop 16490 xorg_cv_cc_flag_unused_command_line_argument=no 16491fi 16492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16493fi 16494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16495printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16497 CFLAGS="$xorg_testset_save_CFLAGS" 16498fi 16499 16500found="no" 16501 16502 if test $found = "no" ; then 16503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16505 fi 16506 16507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16509 fi 16510 16511 CFLAGS="$CFLAGS -Werror=address" 16512 16513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16514printf %s "checking if $CC supports -Werror=address... " >&6; } 16515 cacheid=xorg_cv_cc_flag__Werror_address 16516 if eval test \${$cacheid+y} 16517then : 16518 printf %s "(cached) " >&6 16519else $as_nop 16520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16521/* end confdefs.h. */ 16522int i; 16523int 16524main (void) 16525{ 16526 16527 ; 16528 return 0; 16529} 16530_ACEOF 16531if ac_fn_c_try_link "$LINENO" 16532then : 16533 eval $cacheid=yes 16534else $as_nop 16535 eval $cacheid=no 16536fi 16537rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16538 conftest$ac_exeext conftest.$ac_ext 16539fi 16540 16541 16542 CFLAGS="$xorg_testset_save_CFLAGS" 16543 16544 eval supported=\$$cacheid 16545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16546printf "%s\n" "$supported" >&6; } 16547 if test "$supported" = "yes" ; then 16548 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16549 found="yes" 16550 fi 16551 fi 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567xorg_testset_save_CFLAGS="$CFLAGS" 16568 16569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16572printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16573if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16574then : 16575 printf %s "(cached) " >&6 16576else $as_nop 16577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16578/* end confdefs.h. */ 16579int i; 16580_ACEOF 16581if ac_fn_c_try_compile "$LINENO" 16582then : 16583 xorg_cv_cc_flag_unknown_warning_option=yes 16584else $as_nop 16585 xorg_cv_cc_flag_unknown_warning_option=no 16586fi 16587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16588fi 16589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16590printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16592 CFLAGS="$xorg_testset_save_CFLAGS" 16593fi 16594 16595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16598 fi 16599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16601printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16602if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16603then : 16604 printf %s "(cached) " >&6 16605else $as_nop 16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16607/* end confdefs.h. */ 16608int i; 16609_ACEOF 16610if ac_fn_c_try_compile "$LINENO" 16611then : 16612 xorg_cv_cc_flag_unused_command_line_argument=yes 16613else $as_nop 16614 xorg_cv_cc_flag_unused_command_line_argument=no 16615fi 16616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16617fi 16618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16619printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16621 CFLAGS="$xorg_testset_save_CFLAGS" 16622fi 16623 16624found="no" 16625 16626 if test $found = "no" ; then 16627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16629 fi 16630 16631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16633 fi 16634 16635 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16636 16637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16638printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16639 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16640 if eval test \${$cacheid+y} 16641then : 16642 printf %s "(cached) " >&6 16643else $as_nop 16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16645/* end confdefs.h. */ 16646int i; 16647int 16648main (void) 16649{ 16650 16651 ; 16652 return 0; 16653} 16654_ACEOF 16655if ac_fn_c_try_link "$LINENO" 16656then : 16657 eval $cacheid=yes 16658else $as_nop 16659 eval $cacheid=no 16660fi 16661rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16662 conftest$ac_exeext conftest.$ac_ext 16663fi 16664 16665 16666 CFLAGS="$xorg_testset_save_CFLAGS" 16667 16668 eval supported=\$$cacheid 16669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16670printf "%s\n" "$supported" >&6; } 16671 if test "$supported" = "yes" ; then 16672 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16673 found="yes" 16674 fi 16675 fi 16676 16677 if test $found = "no" ; then 16678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16680 fi 16681 16682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16684 fi 16685 16686 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16687 16688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16689printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16690 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16691 if eval test \${$cacheid+y} 16692then : 16693 printf %s "(cached) " >&6 16694else $as_nop 16695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16696/* end confdefs.h. */ 16697int i; 16698int 16699main (void) 16700{ 16701 16702 ; 16703 return 0; 16704} 16705_ACEOF 16706if ac_fn_c_try_link "$LINENO" 16707then : 16708 eval $cacheid=yes 16709else $as_nop 16710 eval $cacheid=no 16711fi 16712rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16713 conftest$ac_exeext conftest.$ac_ext 16714fi 16715 16716 16717 CFLAGS="$xorg_testset_save_CFLAGS" 16718 16719 eval supported=\$$cacheid 16720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16721printf "%s\n" "$supported" >&6; } 16722 if test "$supported" = "yes" ; then 16723 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16724 found="yes" 16725 fi 16726 fi 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742xorg_testset_save_CFLAGS="$CFLAGS" 16743 16744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16747printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16748if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16749then : 16750 printf %s "(cached) " >&6 16751else $as_nop 16752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16753/* end confdefs.h. */ 16754int i; 16755_ACEOF 16756if ac_fn_c_try_compile "$LINENO" 16757then : 16758 xorg_cv_cc_flag_unknown_warning_option=yes 16759else $as_nop 16760 xorg_cv_cc_flag_unknown_warning_option=no 16761fi 16762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16763fi 16764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16765printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16767 CFLAGS="$xorg_testset_save_CFLAGS" 16768fi 16769 16770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16773 fi 16774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16776printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16777if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16778then : 16779 printf %s "(cached) " >&6 16780else $as_nop 16781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16782/* end confdefs.h. */ 16783int i; 16784_ACEOF 16785if ac_fn_c_try_compile "$LINENO" 16786then : 16787 xorg_cv_cc_flag_unused_command_line_argument=yes 16788else $as_nop 16789 xorg_cv_cc_flag_unused_command_line_argument=no 16790fi 16791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16792fi 16793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16794printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16796 CFLAGS="$xorg_testset_save_CFLAGS" 16797fi 16798 16799found="no" 16800 16801 if test $found = "no" ; then 16802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16804 fi 16805 16806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16808 fi 16809 16810 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16811 16812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16813printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16814 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16815 if eval test \${$cacheid+y} 16816then : 16817 printf %s "(cached) " >&6 16818else $as_nop 16819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16820/* end confdefs.h. */ 16821int i; 16822int 16823main (void) 16824{ 16825 16826 ; 16827 return 0; 16828} 16829_ACEOF 16830if ac_fn_c_try_link "$LINENO" 16831then : 16832 eval $cacheid=yes 16833else $as_nop 16834 eval $cacheid=no 16835fi 16836rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16837 conftest$ac_exeext conftest.$ac_ext 16838fi 16839 16840 16841 CFLAGS="$xorg_testset_save_CFLAGS" 16842 16843 eval supported=\$$cacheid 16844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16845printf "%s\n" "$supported" >&6; } 16846 if test "$supported" = "yes" ; then 16847 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16848 found="yes" 16849 fi 16850 fi 16851 16852 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16853else 16854{ printf "%s\n" "$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 16855printf "%s\n" "$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;} 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869xorg_testset_save_CFLAGS="$CFLAGS" 16870 16871if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16874printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16875if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16876then : 16877 printf %s "(cached) " >&6 16878else $as_nop 16879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16880/* end confdefs.h. */ 16881int i; 16882_ACEOF 16883if ac_fn_c_try_compile "$LINENO" 16884then : 16885 xorg_cv_cc_flag_unknown_warning_option=yes 16886else $as_nop 16887 xorg_cv_cc_flag_unknown_warning_option=no 16888fi 16889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16890fi 16891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16892printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16894 CFLAGS="$xorg_testset_save_CFLAGS" 16895fi 16896 16897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16900 fi 16901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16903printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16904if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16905then : 16906 printf %s "(cached) " >&6 16907else $as_nop 16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16909/* end confdefs.h. */ 16910int i; 16911_ACEOF 16912if ac_fn_c_try_compile "$LINENO" 16913then : 16914 xorg_cv_cc_flag_unused_command_line_argument=yes 16915else $as_nop 16916 xorg_cv_cc_flag_unused_command_line_argument=no 16917fi 16918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16919fi 16920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16921printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16923 CFLAGS="$xorg_testset_save_CFLAGS" 16924fi 16925 16926found="no" 16927 16928 if test $found = "no" ; then 16929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16931 fi 16932 16933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16935 fi 16936 16937 CFLAGS="$CFLAGS -Wimplicit" 16938 16939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16940printf %s "checking if $CC supports -Wimplicit... " >&6; } 16941 cacheid=xorg_cv_cc_flag__Wimplicit 16942 if eval test \${$cacheid+y} 16943then : 16944 printf %s "(cached) " >&6 16945else $as_nop 16946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16947/* end confdefs.h. */ 16948int i; 16949int 16950main (void) 16951{ 16952 16953 ; 16954 return 0; 16955} 16956_ACEOF 16957if ac_fn_c_try_link "$LINENO" 16958then : 16959 eval $cacheid=yes 16960else $as_nop 16961 eval $cacheid=no 16962fi 16963rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16964 conftest$ac_exeext conftest.$ac_ext 16965fi 16966 16967 16968 CFLAGS="$xorg_testset_save_CFLAGS" 16969 16970 eval supported=\$$cacheid 16971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16972printf "%s\n" "$supported" >&6; } 16973 if test "$supported" = "yes" ; then 16974 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16975 found="yes" 16976 fi 16977 fi 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993xorg_testset_save_CFLAGS="$CFLAGS" 16994 16995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16998printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16999if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17000then : 17001 printf %s "(cached) " >&6 17002else $as_nop 17003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17004/* end confdefs.h. */ 17005int i; 17006_ACEOF 17007if ac_fn_c_try_compile "$LINENO" 17008then : 17009 xorg_cv_cc_flag_unknown_warning_option=yes 17010else $as_nop 17011 xorg_cv_cc_flag_unknown_warning_option=no 17012fi 17013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17014fi 17015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17016printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17018 CFLAGS="$xorg_testset_save_CFLAGS" 17019fi 17020 17021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17024 fi 17025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17027printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17028if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17029then : 17030 printf %s "(cached) " >&6 17031else $as_nop 17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17033/* end confdefs.h. */ 17034int i; 17035_ACEOF 17036if ac_fn_c_try_compile "$LINENO" 17037then : 17038 xorg_cv_cc_flag_unused_command_line_argument=yes 17039else $as_nop 17040 xorg_cv_cc_flag_unused_command_line_argument=no 17041fi 17042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17043fi 17044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17045printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17047 CFLAGS="$xorg_testset_save_CFLAGS" 17048fi 17049 17050found="no" 17051 17052 if test $found = "no" ; then 17053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17055 fi 17056 17057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17059 fi 17060 17061 CFLAGS="$CFLAGS -Wnonnull" 17062 17063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17064printf %s "checking if $CC supports -Wnonnull... " >&6; } 17065 cacheid=xorg_cv_cc_flag__Wnonnull 17066 if eval test \${$cacheid+y} 17067then : 17068 printf %s "(cached) " >&6 17069else $as_nop 17070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17071/* end confdefs.h. */ 17072int i; 17073int 17074main (void) 17075{ 17076 17077 ; 17078 return 0; 17079} 17080_ACEOF 17081if ac_fn_c_try_link "$LINENO" 17082then : 17083 eval $cacheid=yes 17084else $as_nop 17085 eval $cacheid=no 17086fi 17087rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17088 conftest$ac_exeext conftest.$ac_ext 17089fi 17090 17091 17092 CFLAGS="$xorg_testset_save_CFLAGS" 17093 17094 eval supported=\$$cacheid 17095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17096printf "%s\n" "$supported" >&6; } 17097 if test "$supported" = "yes" ; then 17098 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17099 found="yes" 17100 fi 17101 fi 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117xorg_testset_save_CFLAGS="$CFLAGS" 17118 17119if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17122printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17123if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17124then : 17125 printf %s "(cached) " >&6 17126else $as_nop 17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17128/* end confdefs.h. */ 17129int i; 17130_ACEOF 17131if ac_fn_c_try_compile "$LINENO" 17132then : 17133 xorg_cv_cc_flag_unknown_warning_option=yes 17134else $as_nop 17135 xorg_cv_cc_flag_unknown_warning_option=no 17136fi 17137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17138fi 17139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17140printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17142 CFLAGS="$xorg_testset_save_CFLAGS" 17143fi 17144 17145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17148 fi 17149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17151printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17152if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17153then : 17154 printf %s "(cached) " >&6 17155else $as_nop 17156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17157/* end confdefs.h. */ 17158int i; 17159_ACEOF 17160if ac_fn_c_try_compile "$LINENO" 17161then : 17162 xorg_cv_cc_flag_unused_command_line_argument=yes 17163else $as_nop 17164 xorg_cv_cc_flag_unused_command_line_argument=no 17165fi 17166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17167fi 17168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17169printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17171 CFLAGS="$xorg_testset_save_CFLAGS" 17172fi 17173 17174found="no" 17175 17176 if test $found = "no" ; then 17177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17179 fi 17180 17181 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17183 fi 17184 17185 CFLAGS="$CFLAGS -Winit-self" 17186 17187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17188printf %s "checking if $CC supports -Winit-self... " >&6; } 17189 cacheid=xorg_cv_cc_flag__Winit_self 17190 if eval test \${$cacheid+y} 17191then : 17192 printf %s "(cached) " >&6 17193else $as_nop 17194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17195/* end confdefs.h. */ 17196int i; 17197int 17198main (void) 17199{ 17200 17201 ; 17202 return 0; 17203} 17204_ACEOF 17205if ac_fn_c_try_link "$LINENO" 17206then : 17207 eval $cacheid=yes 17208else $as_nop 17209 eval $cacheid=no 17210fi 17211rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17212 conftest$ac_exeext conftest.$ac_ext 17213fi 17214 17215 17216 CFLAGS="$xorg_testset_save_CFLAGS" 17217 17218 eval supported=\$$cacheid 17219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17220printf "%s\n" "$supported" >&6; } 17221 if test "$supported" = "yes" ; then 17222 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17223 found="yes" 17224 fi 17225 fi 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241xorg_testset_save_CFLAGS="$CFLAGS" 17242 17243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17246printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17247if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17248then : 17249 printf %s "(cached) " >&6 17250else $as_nop 17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17252/* end confdefs.h. */ 17253int i; 17254_ACEOF 17255if ac_fn_c_try_compile "$LINENO" 17256then : 17257 xorg_cv_cc_flag_unknown_warning_option=yes 17258else $as_nop 17259 xorg_cv_cc_flag_unknown_warning_option=no 17260fi 17261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17262fi 17263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17264printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17266 CFLAGS="$xorg_testset_save_CFLAGS" 17267fi 17268 17269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17272 fi 17273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17275printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17276if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17277then : 17278 printf %s "(cached) " >&6 17279else $as_nop 17280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17281/* end confdefs.h. */ 17282int i; 17283_ACEOF 17284if ac_fn_c_try_compile "$LINENO" 17285then : 17286 xorg_cv_cc_flag_unused_command_line_argument=yes 17287else $as_nop 17288 xorg_cv_cc_flag_unused_command_line_argument=no 17289fi 17290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17291fi 17292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17293printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17295 CFLAGS="$xorg_testset_save_CFLAGS" 17296fi 17297 17298found="no" 17299 17300 if test $found = "no" ; then 17301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17303 fi 17304 17305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17307 fi 17308 17309 CFLAGS="$CFLAGS -Wmain" 17310 17311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17312printf %s "checking if $CC supports -Wmain... " >&6; } 17313 cacheid=xorg_cv_cc_flag__Wmain 17314 if eval test \${$cacheid+y} 17315then : 17316 printf %s "(cached) " >&6 17317else $as_nop 17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17319/* end confdefs.h. */ 17320int i; 17321int 17322main (void) 17323{ 17324 17325 ; 17326 return 0; 17327} 17328_ACEOF 17329if ac_fn_c_try_link "$LINENO" 17330then : 17331 eval $cacheid=yes 17332else $as_nop 17333 eval $cacheid=no 17334fi 17335rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17336 conftest$ac_exeext conftest.$ac_ext 17337fi 17338 17339 17340 CFLAGS="$xorg_testset_save_CFLAGS" 17341 17342 eval supported=\$$cacheid 17343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17344printf "%s\n" "$supported" >&6; } 17345 if test "$supported" = "yes" ; then 17346 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17347 found="yes" 17348 fi 17349 fi 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365xorg_testset_save_CFLAGS="$CFLAGS" 17366 17367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17370printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17371if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17372then : 17373 printf %s "(cached) " >&6 17374else $as_nop 17375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17376/* end confdefs.h. */ 17377int i; 17378_ACEOF 17379if ac_fn_c_try_compile "$LINENO" 17380then : 17381 xorg_cv_cc_flag_unknown_warning_option=yes 17382else $as_nop 17383 xorg_cv_cc_flag_unknown_warning_option=no 17384fi 17385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17386fi 17387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17388printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17390 CFLAGS="$xorg_testset_save_CFLAGS" 17391fi 17392 17393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17396 fi 17397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17399printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17400if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17401then : 17402 printf %s "(cached) " >&6 17403else $as_nop 17404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17405/* end confdefs.h. */ 17406int i; 17407_ACEOF 17408if ac_fn_c_try_compile "$LINENO" 17409then : 17410 xorg_cv_cc_flag_unused_command_line_argument=yes 17411else $as_nop 17412 xorg_cv_cc_flag_unused_command_line_argument=no 17413fi 17414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17415fi 17416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17417printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17419 CFLAGS="$xorg_testset_save_CFLAGS" 17420fi 17421 17422found="no" 17423 17424 if test $found = "no" ; then 17425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17427 fi 17428 17429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17431 fi 17432 17433 CFLAGS="$CFLAGS -Wmissing-braces" 17434 17435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17436printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17437 cacheid=xorg_cv_cc_flag__Wmissing_braces 17438 if eval test \${$cacheid+y} 17439then : 17440 printf %s "(cached) " >&6 17441else $as_nop 17442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17443/* end confdefs.h. */ 17444int i; 17445int 17446main (void) 17447{ 17448 17449 ; 17450 return 0; 17451} 17452_ACEOF 17453if ac_fn_c_try_link "$LINENO" 17454then : 17455 eval $cacheid=yes 17456else $as_nop 17457 eval $cacheid=no 17458fi 17459rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17460 conftest$ac_exeext conftest.$ac_ext 17461fi 17462 17463 17464 CFLAGS="$xorg_testset_save_CFLAGS" 17465 17466 eval supported=\$$cacheid 17467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17468printf "%s\n" "$supported" >&6; } 17469 if test "$supported" = "yes" ; then 17470 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17471 found="yes" 17472 fi 17473 fi 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489xorg_testset_save_CFLAGS="$CFLAGS" 17490 17491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17494printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17495if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17496then : 17497 printf %s "(cached) " >&6 17498else $as_nop 17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17500/* end confdefs.h. */ 17501int i; 17502_ACEOF 17503if ac_fn_c_try_compile "$LINENO" 17504then : 17505 xorg_cv_cc_flag_unknown_warning_option=yes 17506else $as_nop 17507 xorg_cv_cc_flag_unknown_warning_option=no 17508fi 17509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17510fi 17511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17512printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17514 CFLAGS="$xorg_testset_save_CFLAGS" 17515fi 17516 17517if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17520 fi 17521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17523printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17524if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17525then : 17526 printf %s "(cached) " >&6 17527else $as_nop 17528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17529/* end confdefs.h. */ 17530int i; 17531_ACEOF 17532if ac_fn_c_try_compile "$LINENO" 17533then : 17534 xorg_cv_cc_flag_unused_command_line_argument=yes 17535else $as_nop 17536 xorg_cv_cc_flag_unused_command_line_argument=no 17537fi 17538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17539fi 17540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17541printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17543 CFLAGS="$xorg_testset_save_CFLAGS" 17544fi 17545 17546found="no" 17547 17548 if test $found = "no" ; then 17549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17551 fi 17552 17553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17555 fi 17556 17557 CFLAGS="$CFLAGS -Wsequence-point" 17558 17559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17560printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17561 cacheid=xorg_cv_cc_flag__Wsequence_point 17562 if eval test \${$cacheid+y} 17563then : 17564 printf %s "(cached) " >&6 17565else $as_nop 17566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17567/* end confdefs.h. */ 17568int i; 17569int 17570main (void) 17571{ 17572 17573 ; 17574 return 0; 17575} 17576_ACEOF 17577if ac_fn_c_try_link "$LINENO" 17578then : 17579 eval $cacheid=yes 17580else $as_nop 17581 eval $cacheid=no 17582fi 17583rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17584 conftest$ac_exeext conftest.$ac_ext 17585fi 17586 17587 17588 CFLAGS="$xorg_testset_save_CFLAGS" 17589 17590 eval supported=\$$cacheid 17591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17592printf "%s\n" "$supported" >&6; } 17593 if test "$supported" = "yes" ; then 17594 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17595 found="yes" 17596 fi 17597 fi 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613xorg_testset_save_CFLAGS="$CFLAGS" 17614 17615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17618printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17619if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17620then : 17621 printf %s "(cached) " >&6 17622else $as_nop 17623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17624/* end confdefs.h. */ 17625int i; 17626_ACEOF 17627if ac_fn_c_try_compile "$LINENO" 17628then : 17629 xorg_cv_cc_flag_unknown_warning_option=yes 17630else $as_nop 17631 xorg_cv_cc_flag_unknown_warning_option=no 17632fi 17633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17634fi 17635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17636printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17638 CFLAGS="$xorg_testset_save_CFLAGS" 17639fi 17640 17641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17644 fi 17645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17647printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17648if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17649then : 17650 printf %s "(cached) " >&6 17651else $as_nop 17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17653/* end confdefs.h. */ 17654int i; 17655_ACEOF 17656if ac_fn_c_try_compile "$LINENO" 17657then : 17658 xorg_cv_cc_flag_unused_command_line_argument=yes 17659else $as_nop 17660 xorg_cv_cc_flag_unused_command_line_argument=no 17661fi 17662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17663fi 17664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17665printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17667 CFLAGS="$xorg_testset_save_CFLAGS" 17668fi 17669 17670found="no" 17671 17672 if test $found = "no" ; then 17673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17675 fi 17676 17677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17679 fi 17680 17681 CFLAGS="$CFLAGS -Wreturn-type" 17682 17683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17684printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17685 cacheid=xorg_cv_cc_flag__Wreturn_type 17686 if eval test \${$cacheid+y} 17687then : 17688 printf %s "(cached) " >&6 17689else $as_nop 17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17691/* end confdefs.h. */ 17692int i; 17693int 17694main (void) 17695{ 17696 17697 ; 17698 return 0; 17699} 17700_ACEOF 17701if ac_fn_c_try_link "$LINENO" 17702then : 17703 eval $cacheid=yes 17704else $as_nop 17705 eval $cacheid=no 17706fi 17707rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17708 conftest$ac_exeext conftest.$ac_ext 17709fi 17710 17711 17712 CFLAGS="$xorg_testset_save_CFLAGS" 17713 17714 eval supported=\$$cacheid 17715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17716printf "%s\n" "$supported" >&6; } 17717 if test "$supported" = "yes" ; then 17718 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17719 found="yes" 17720 fi 17721 fi 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737xorg_testset_save_CFLAGS="$CFLAGS" 17738 17739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17742printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17743if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17744then : 17745 printf %s "(cached) " >&6 17746else $as_nop 17747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17748/* end confdefs.h. */ 17749int i; 17750_ACEOF 17751if ac_fn_c_try_compile "$LINENO" 17752then : 17753 xorg_cv_cc_flag_unknown_warning_option=yes 17754else $as_nop 17755 xorg_cv_cc_flag_unknown_warning_option=no 17756fi 17757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17758fi 17759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17760printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17762 CFLAGS="$xorg_testset_save_CFLAGS" 17763fi 17764 17765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17768 fi 17769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17771printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17772if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17773then : 17774 printf %s "(cached) " >&6 17775else $as_nop 17776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17777/* end confdefs.h. */ 17778int i; 17779_ACEOF 17780if ac_fn_c_try_compile "$LINENO" 17781then : 17782 xorg_cv_cc_flag_unused_command_line_argument=yes 17783else $as_nop 17784 xorg_cv_cc_flag_unused_command_line_argument=no 17785fi 17786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17787fi 17788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17789printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17791 CFLAGS="$xorg_testset_save_CFLAGS" 17792fi 17793 17794found="no" 17795 17796 if test $found = "no" ; then 17797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17799 fi 17800 17801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17803 fi 17804 17805 CFLAGS="$CFLAGS -Wtrigraphs" 17806 17807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17808printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 17809 cacheid=xorg_cv_cc_flag__Wtrigraphs 17810 if eval test \${$cacheid+y} 17811then : 17812 printf %s "(cached) " >&6 17813else $as_nop 17814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17815/* end confdefs.h. */ 17816int i; 17817int 17818main (void) 17819{ 17820 17821 ; 17822 return 0; 17823} 17824_ACEOF 17825if ac_fn_c_try_link "$LINENO" 17826then : 17827 eval $cacheid=yes 17828else $as_nop 17829 eval $cacheid=no 17830fi 17831rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17832 conftest$ac_exeext conftest.$ac_ext 17833fi 17834 17835 17836 CFLAGS="$xorg_testset_save_CFLAGS" 17837 17838 eval supported=\$$cacheid 17839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17840printf "%s\n" "$supported" >&6; } 17841 if test "$supported" = "yes" ; then 17842 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17843 found="yes" 17844 fi 17845 fi 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861xorg_testset_save_CFLAGS="$CFLAGS" 17862 17863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17866printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17867if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17868then : 17869 printf %s "(cached) " >&6 17870else $as_nop 17871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17872/* end confdefs.h. */ 17873int i; 17874_ACEOF 17875if ac_fn_c_try_compile "$LINENO" 17876then : 17877 xorg_cv_cc_flag_unknown_warning_option=yes 17878else $as_nop 17879 xorg_cv_cc_flag_unknown_warning_option=no 17880fi 17881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17882fi 17883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17884printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17886 CFLAGS="$xorg_testset_save_CFLAGS" 17887fi 17888 17889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17892 fi 17893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17895printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17896if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17897then : 17898 printf %s "(cached) " >&6 17899else $as_nop 17900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17901/* end confdefs.h. */ 17902int i; 17903_ACEOF 17904if ac_fn_c_try_compile "$LINENO" 17905then : 17906 xorg_cv_cc_flag_unused_command_line_argument=yes 17907else $as_nop 17908 xorg_cv_cc_flag_unused_command_line_argument=no 17909fi 17910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17911fi 17912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17913printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17915 CFLAGS="$xorg_testset_save_CFLAGS" 17916fi 17917 17918found="no" 17919 17920 if test $found = "no" ; then 17921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17923 fi 17924 17925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17927 fi 17928 17929 CFLAGS="$CFLAGS -Warray-bounds" 17930 17931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17932printf %s "checking if $CC supports -Warray-bounds... " >&6; } 17933 cacheid=xorg_cv_cc_flag__Warray_bounds 17934 if eval test \${$cacheid+y} 17935then : 17936 printf %s "(cached) " >&6 17937else $as_nop 17938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17939/* end confdefs.h. */ 17940int i; 17941int 17942main (void) 17943{ 17944 17945 ; 17946 return 0; 17947} 17948_ACEOF 17949if ac_fn_c_try_link "$LINENO" 17950then : 17951 eval $cacheid=yes 17952else $as_nop 17953 eval $cacheid=no 17954fi 17955rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17956 conftest$ac_exeext conftest.$ac_ext 17957fi 17958 17959 17960 CFLAGS="$xorg_testset_save_CFLAGS" 17961 17962 eval supported=\$$cacheid 17963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17964printf "%s\n" "$supported" >&6; } 17965 if test "$supported" = "yes" ; then 17966 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17967 found="yes" 17968 fi 17969 fi 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985xorg_testset_save_CFLAGS="$CFLAGS" 17986 17987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17990printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17991if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17992then : 17993 printf %s "(cached) " >&6 17994else $as_nop 17995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17996/* end confdefs.h. */ 17997int i; 17998_ACEOF 17999if ac_fn_c_try_compile "$LINENO" 18000then : 18001 xorg_cv_cc_flag_unknown_warning_option=yes 18002else $as_nop 18003 xorg_cv_cc_flag_unknown_warning_option=no 18004fi 18005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18006fi 18007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18008printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18010 CFLAGS="$xorg_testset_save_CFLAGS" 18011fi 18012 18013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18016 fi 18017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18019printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18020if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18021then : 18022 printf %s "(cached) " >&6 18023else $as_nop 18024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18025/* end confdefs.h. */ 18026int i; 18027_ACEOF 18028if ac_fn_c_try_compile "$LINENO" 18029then : 18030 xorg_cv_cc_flag_unused_command_line_argument=yes 18031else $as_nop 18032 xorg_cv_cc_flag_unused_command_line_argument=no 18033fi 18034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18035fi 18036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18037printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18039 CFLAGS="$xorg_testset_save_CFLAGS" 18040fi 18041 18042found="no" 18043 18044 if test $found = "no" ; then 18045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18047 fi 18048 18049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18051 fi 18052 18053 CFLAGS="$CFLAGS -Wwrite-strings" 18054 18055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18056printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18057 cacheid=xorg_cv_cc_flag__Wwrite_strings 18058 if eval test \${$cacheid+y} 18059then : 18060 printf %s "(cached) " >&6 18061else $as_nop 18062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18063/* end confdefs.h. */ 18064int i; 18065int 18066main (void) 18067{ 18068 18069 ; 18070 return 0; 18071} 18072_ACEOF 18073if ac_fn_c_try_link "$LINENO" 18074then : 18075 eval $cacheid=yes 18076else $as_nop 18077 eval $cacheid=no 18078fi 18079rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18080 conftest$ac_exeext conftest.$ac_ext 18081fi 18082 18083 18084 CFLAGS="$xorg_testset_save_CFLAGS" 18085 18086 eval supported=\$$cacheid 18087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18088printf "%s\n" "$supported" >&6; } 18089 if test "$supported" = "yes" ; then 18090 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18091 found="yes" 18092 fi 18093 fi 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109xorg_testset_save_CFLAGS="$CFLAGS" 18110 18111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18114printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18115if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18116then : 18117 printf %s "(cached) " >&6 18118else $as_nop 18119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18120/* end confdefs.h. */ 18121int i; 18122_ACEOF 18123if ac_fn_c_try_compile "$LINENO" 18124then : 18125 xorg_cv_cc_flag_unknown_warning_option=yes 18126else $as_nop 18127 xorg_cv_cc_flag_unknown_warning_option=no 18128fi 18129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18130fi 18131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18132printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18134 CFLAGS="$xorg_testset_save_CFLAGS" 18135fi 18136 18137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18140 fi 18141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18143printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18144if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18145then : 18146 printf %s "(cached) " >&6 18147else $as_nop 18148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18149/* end confdefs.h. */ 18150int i; 18151_ACEOF 18152if ac_fn_c_try_compile "$LINENO" 18153then : 18154 xorg_cv_cc_flag_unused_command_line_argument=yes 18155else $as_nop 18156 xorg_cv_cc_flag_unused_command_line_argument=no 18157fi 18158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18159fi 18160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18161printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18163 CFLAGS="$xorg_testset_save_CFLAGS" 18164fi 18165 18166found="no" 18167 18168 if test $found = "no" ; then 18169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18171 fi 18172 18173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18175 fi 18176 18177 CFLAGS="$CFLAGS -Waddress" 18178 18179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18180printf %s "checking if $CC supports -Waddress... " >&6; } 18181 cacheid=xorg_cv_cc_flag__Waddress 18182 if eval test \${$cacheid+y} 18183then : 18184 printf %s "(cached) " >&6 18185else $as_nop 18186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18187/* end confdefs.h. */ 18188int i; 18189int 18190main (void) 18191{ 18192 18193 ; 18194 return 0; 18195} 18196_ACEOF 18197if ac_fn_c_try_link "$LINENO" 18198then : 18199 eval $cacheid=yes 18200else $as_nop 18201 eval $cacheid=no 18202fi 18203rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18204 conftest$ac_exeext conftest.$ac_ext 18205fi 18206 18207 18208 CFLAGS="$xorg_testset_save_CFLAGS" 18209 18210 eval supported=\$$cacheid 18211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18212printf "%s\n" "$supported" >&6; } 18213 if test "$supported" = "yes" ; then 18214 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18215 found="yes" 18216 fi 18217 fi 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233xorg_testset_save_CFLAGS="$CFLAGS" 18234 18235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18239if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18240then : 18241 printf %s "(cached) " >&6 18242else $as_nop 18243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18244/* end confdefs.h. */ 18245int i; 18246_ACEOF 18247if ac_fn_c_try_compile "$LINENO" 18248then : 18249 xorg_cv_cc_flag_unknown_warning_option=yes 18250else $as_nop 18251 xorg_cv_cc_flag_unknown_warning_option=no 18252fi 18253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18254fi 18255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18256printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18258 CFLAGS="$xorg_testset_save_CFLAGS" 18259fi 18260 18261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18264 fi 18265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18267printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18268if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18269then : 18270 printf %s "(cached) " >&6 18271else $as_nop 18272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18273/* end confdefs.h. */ 18274int i; 18275_ACEOF 18276if ac_fn_c_try_compile "$LINENO" 18277then : 18278 xorg_cv_cc_flag_unused_command_line_argument=yes 18279else $as_nop 18280 xorg_cv_cc_flag_unused_command_line_argument=no 18281fi 18282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18283fi 18284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18287 CFLAGS="$xorg_testset_save_CFLAGS" 18288fi 18289 18290found="no" 18291 18292 if test $found = "no" ; then 18293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18295 fi 18296 18297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18299 fi 18300 18301 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18302 18303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18304printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18305 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18306 if eval test \${$cacheid+y} 18307then : 18308 printf %s "(cached) " >&6 18309else $as_nop 18310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18311/* end confdefs.h. */ 18312int i; 18313int 18314main (void) 18315{ 18316 18317 ; 18318 return 0; 18319} 18320_ACEOF 18321if ac_fn_c_try_link "$LINENO" 18322then : 18323 eval $cacheid=yes 18324else $as_nop 18325 eval $cacheid=no 18326fi 18327rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18328 conftest$ac_exeext conftest.$ac_ext 18329fi 18330 18331 18332 CFLAGS="$xorg_testset_save_CFLAGS" 18333 18334 eval supported=\$$cacheid 18335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18336printf "%s\n" "$supported" >&6; } 18337 if test "$supported" = "yes" ; then 18338 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18339 found="yes" 18340 fi 18341 fi 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357xorg_testset_save_CFLAGS="$CFLAGS" 18358 18359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18362printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18363if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18364then : 18365 printf %s "(cached) " >&6 18366else $as_nop 18367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18368/* end confdefs.h. */ 18369int i; 18370_ACEOF 18371if ac_fn_c_try_compile "$LINENO" 18372then : 18373 xorg_cv_cc_flag_unknown_warning_option=yes 18374else $as_nop 18375 xorg_cv_cc_flag_unknown_warning_option=no 18376fi 18377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18378fi 18379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18380printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18382 CFLAGS="$xorg_testset_save_CFLAGS" 18383fi 18384 18385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18388 fi 18389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18391printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18392if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18393then : 18394 printf %s "(cached) " >&6 18395else $as_nop 18396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18397/* end confdefs.h. */ 18398int i; 18399_ACEOF 18400if ac_fn_c_try_compile "$LINENO" 18401then : 18402 xorg_cv_cc_flag_unused_command_line_argument=yes 18403else $as_nop 18404 xorg_cv_cc_flag_unused_command_line_argument=no 18405fi 18406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18407fi 18408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18409printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18411 CFLAGS="$xorg_testset_save_CFLAGS" 18412fi 18413 18414found="no" 18415 18416 if test $found = "no" ; then 18417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18419 fi 18420 18421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18423 fi 18424 18425 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18426 18427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18428printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18429 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18430 if eval test \${$cacheid+y} 18431then : 18432 printf %s "(cached) " >&6 18433else $as_nop 18434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18435/* end confdefs.h. */ 18436int i; 18437int 18438main (void) 18439{ 18440 18441 ; 18442 return 0; 18443} 18444_ACEOF 18445if ac_fn_c_try_link "$LINENO" 18446then : 18447 eval $cacheid=yes 18448else $as_nop 18449 eval $cacheid=no 18450fi 18451rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18452 conftest$ac_exeext conftest.$ac_ext 18453fi 18454 18455 18456 CFLAGS="$xorg_testset_save_CFLAGS" 18457 18458 eval supported=\$$cacheid 18459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18460printf "%s\n" "$supported" >&6; } 18461 if test "$supported" = "yes" ; then 18462 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18463 found="yes" 18464 fi 18465 fi 18466 18467 18468fi 18469 18470 18471 18472 18473 18474 18475 18476 CWARNFLAGS="$BASE_CFLAGS" 18477 if test "x$GCC" = xyes ; then 18478 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18479 fi 18480 18481 18482 18483 18484 18485 18486 18487 18488# Check whether --enable-strict-compilation was given. 18489if test ${enable_strict_compilation+y} 18490then : 18491 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18492else $as_nop 18493 STRICT_COMPILE=no 18494fi 18495 18496 18497 18498 18499 18500 18501STRICT_CFLAGS="" 18502 18503 18504 18505 18506 18507 18508 18509 18510 18511 18512 18513 18514 18515xorg_testset_save_CFLAGS="$CFLAGS" 18516 18517if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18520printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18521if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18522then : 18523 printf %s "(cached) " >&6 18524else $as_nop 18525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18526/* end confdefs.h. */ 18527int i; 18528_ACEOF 18529if ac_fn_c_try_compile "$LINENO" 18530then : 18531 xorg_cv_cc_flag_unknown_warning_option=yes 18532else $as_nop 18533 xorg_cv_cc_flag_unknown_warning_option=no 18534fi 18535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18536fi 18537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18538printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18540 CFLAGS="$xorg_testset_save_CFLAGS" 18541fi 18542 18543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18546 fi 18547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18549printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18550if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18551then : 18552 printf %s "(cached) " >&6 18553else $as_nop 18554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18555/* end confdefs.h. */ 18556int i; 18557_ACEOF 18558if ac_fn_c_try_compile "$LINENO" 18559then : 18560 xorg_cv_cc_flag_unused_command_line_argument=yes 18561else $as_nop 18562 xorg_cv_cc_flag_unused_command_line_argument=no 18563fi 18564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18565fi 18566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18567printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18569 CFLAGS="$xorg_testset_save_CFLAGS" 18570fi 18571 18572found="no" 18573 18574 if test $found = "no" ; then 18575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18577 fi 18578 18579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18581 fi 18582 18583 CFLAGS="$CFLAGS -pedantic" 18584 18585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18586printf %s "checking if $CC supports -pedantic... " >&6; } 18587 cacheid=xorg_cv_cc_flag__pedantic 18588 if eval test \${$cacheid+y} 18589then : 18590 printf %s "(cached) " >&6 18591else $as_nop 18592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18593/* end confdefs.h. */ 18594int i; 18595int 18596main (void) 18597{ 18598 18599 ; 18600 return 0; 18601} 18602_ACEOF 18603if ac_fn_c_try_link "$LINENO" 18604then : 18605 eval $cacheid=yes 18606else $as_nop 18607 eval $cacheid=no 18608fi 18609rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18610 conftest$ac_exeext conftest.$ac_ext 18611fi 18612 18613 18614 CFLAGS="$xorg_testset_save_CFLAGS" 18615 18616 eval supported=\$$cacheid 18617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18618printf "%s\n" "$supported" >&6; } 18619 if test "$supported" = "yes" ; then 18620 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18621 found="yes" 18622 fi 18623 fi 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639xorg_testset_save_CFLAGS="$CFLAGS" 18640 18641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18644printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18645if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18646then : 18647 printf %s "(cached) " >&6 18648else $as_nop 18649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18650/* end confdefs.h. */ 18651int i; 18652_ACEOF 18653if ac_fn_c_try_compile "$LINENO" 18654then : 18655 xorg_cv_cc_flag_unknown_warning_option=yes 18656else $as_nop 18657 xorg_cv_cc_flag_unknown_warning_option=no 18658fi 18659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18660fi 18661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18662printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18664 CFLAGS="$xorg_testset_save_CFLAGS" 18665fi 18666 18667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18670 fi 18671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18673printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18674if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18675then : 18676 printf %s "(cached) " >&6 18677else $as_nop 18678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18679/* end confdefs.h. */ 18680int i; 18681_ACEOF 18682if ac_fn_c_try_compile "$LINENO" 18683then : 18684 xorg_cv_cc_flag_unused_command_line_argument=yes 18685else $as_nop 18686 xorg_cv_cc_flag_unused_command_line_argument=no 18687fi 18688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18689fi 18690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18691printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18692 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18693 CFLAGS="$xorg_testset_save_CFLAGS" 18694fi 18695 18696found="no" 18697 18698 if test $found = "no" ; then 18699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18701 fi 18702 18703 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18705 fi 18706 18707 CFLAGS="$CFLAGS -Werror" 18708 18709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18710printf %s "checking if $CC supports -Werror... " >&6; } 18711 cacheid=xorg_cv_cc_flag__Werror 18712 if eval test \${$cacheid+y} 18713then : 18714 printf %s "(cached) " >&6 18715else $as_nop 18716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18717/* end confdefs.h. */ 18718int i; 18719int 18720main (void) 18721{ 18722 18723 ; 18724 return 0; 18725} 18726_ACEOF 18727if ac_fn_c_try_link "$LINENO" 18728then : 18729 eval $cacheid=yes 18730else $as_nop 18731 eval $cacheid=no 18732fi 18733rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18734 conftest$ac_exeext conftest.$ac_ext 18735fi 18736 18737 18738 CFLAGS="$xorg_testset_save_CFLAGS" 18739 18740 eval supported=\$$cacheid 18741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18742printf "%s\n" "$supported" >&6; } 18743 if test "$supported" = "yes" ; then 18744 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18745 found="yes" 18746 fi 18747 fi 18748 18749 if test $found = "no" ; then 18750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18752 fi 18753 18754 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18756 fi 18757 18758 CFLAGS="$CFLAGS -errwarn" 18759 18760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18761printf %s "checking if $CC supports -errwarn... " >&6; } 18762 cacheid=xorg_cv_cc_flag__errwarn 18763 if eval test \${$cacheid+y} 18764then : 18765 printf %s "(cached) " >&6 18766else $as_nop 18767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18768/* end confdefs.h. */ 18769int i; 18770int 18771main (void) 18772{ 18773 18774 ; 18775 return 0; 18776} 18777_ACEOF 18778if ac_fn_c_try_link "$LINENO" 18779then : 18780 eval $cacheid=yes 18781else $as_nop 18782 eval $cacheid=no 18783fi 18784rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18785 conftest$ac_exeext conftest.$ac_ext 18786fi 18787 18788 18789 CFLAGS="$xorg_testset_save_CFLAGS" 18790 18791 eval supported=\$$cacheid 18792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18793printf "%s\n" "$supported" >&6; } 18794 if test "$supported" = "yes" ; then 18795 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18796 found="yes" 18797 fi 18798 fi 18799 18800 18801 18802# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18803# activate it with -Werror, so we add it here explicitly. 18804 18805 18806 18807 18808 18809 18810 18811 18812 18813 18814 18815 18816 18817xorg_testset_save_CFLAGS="$CFLAGS" 18818 18819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18822printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18823if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18824then : 18825 printf %s "(cached) " >&6 18826else $as_nop 18827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18828/* end confdefs.h. */ 18829int i; 18830_ACEOF 18831if ac_fn_c_try_compile "$LINENO" 18832then : 18833 xorg_cv_cc_flag_unknown_warning_option=yes 18834else $as_nop 18835 xorg_cv_cc_flag_unknown_warning_option=no 18836fi 18837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18838fi 18839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18840printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18842 CFLAGS="$xorg_testset_save_CFLAGS" 18843fi 18844 18845if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18848 fi 18849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18851printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18852if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18853then : 18854 printf %s "(cached) " >&6 18855else $as_nop 18856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18857/* end confdefs.h. */ 18858int i; 18859_ACEOF 18860if ac_fn_c_try_compile "$LINENO" 18861then : 18862 xorg_cv_cc_flag_unused_command_line_argument=yes 18863else $as_nop 18864 xorg_cv_cc_flag_unused_command_line_argument=no 18865fi 18866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18867fi 18868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18869printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18871 CFLAGS="$xorg_testset_save_CFLAGS" 18872fi 18873 18874found="no" 18875 18876 if test $found = "no" ; then 18877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18879 fi 18880 18881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18883 fi 18884 18885 CFLAGS="$CFLAGS -Werror=attributes" 18886 18887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18888printf %s "checking if $CC supports -Werror=attributes... " >&6; } 18889 cacheid=xorg_cv_cc_flag__Werror_attributes 18890 if eval test \${$cacheid+y} 18891then : 18892 printf %s "(cached) " >&6 18893else $as_nop 18894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18895/* end confdefs.h. */ 18896int i; 18897int 18898main (void) 18899{ 18900 18901 ; 18902 return 0; 18903} 18904_ACEOF 18905if ac_fn_c_try_link "$LINENO" 18906then : 18907 eval $cacheid=yes 18908else $as_nop 18909 eval $cacheid=no 18910fi 18911rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18912 conftest$ac_exeext conftest.$ac_ext 18913fi 18914 18915 18916 CFLAGS="$xorg_testset_save_CFLAGS" 18917 18918 eval supported=\$$cacheid 18919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18920printf "%s\n" "$supported" >&6; } 18921 if test "$supported" = "yes" ; then 18922 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18923 found="yes" 18924 fi 18925 fi 18926 18927 18928 18929if test "x$STRICT_COMPILE" = "xyes"; then 18930 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18931 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18932fi 18933 18934 18935 18936 18937 18938 18939cat >>confdefs.h <<_ACEOF 18940#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18941_ACEOF 18942 18943 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18944 if test "x$PVM" = "x"; then 18945 PVM="0" 18946 fi 18947 18948printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 18949 18950 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18951 if test "x$PVP" = "x"; then 18952 PVP="0" 18953 fi 18954 18955printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 18956 18957 18958 18959CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 18960mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18961|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 18962touch \$(top_srcdir)/ChangeLog; \ 18963echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 18964 18965 18966 18967 18968macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18969INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18970mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18971|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 18972touch \$(top_srcdir)/INSTALL; \ 18973echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 18974 18975 18976 18977 18978 18979 18980case $host_os in 18981 solaris*) 18982 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 18983 # check for a man page file found in later versions that use 18984 # traditional section numbers instead 18985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 18986printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 18987if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 18988then : 18989 printf %s "(cached) " >&6 18990else $as_nop 18991 test "$cross_compiling" = yes && 18992 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18993if test -r "/usr/share/man/man7/attributes.7"; then 18994 ac_cv_file__usr_share_man_man7_attributes_7=yes 18995else 18996 ac_cv_file__usr_share_man_man7_attributes_7=no 18997fi 18998fi 18999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19000printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19001if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19002then : 19003 SYSV_MAN_SECTIONS=false 19004else $as_nop 19005 SYSV_MAN_SECTIONS=true 19006fi 19007 19008 ;; 19009 *) SYSV_MAN_SECTIONS=false ;; 19010esac 19011 19012if test x$APP_MAN_SUFFIX = x ; then 19013 APP_MAN_SUFFIX=1 19014fi 19015if test x$APP_MAN_DIR = x ; then 19016 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19017fi 19018 19019if test x$LIB_MAN_SUFFIX = x ; then 19020 LIB_MAN_SUFFIX=3 19021fi 19022if test x$LIB_MAN_DIR = x ; then 19023 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19024fi 19025 19026if test x$FILE_MAN_SUFFIX = x ; then 19027 case $SYSV_MAN_SECTIONS in 19028 true) FILE_MAN_SUFFIX=4 ;; 19029 *) FILE_MAN_SUFFIX=5 ;; 19030 esac 19031fi 19032if test x$FILE_MAN_DIR = x ; then 19033 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19034fi 19035 19036if test x$MISC_MAN_SUFFIX = x ; then 19037 case $SYSV_MAN_SECTIONS in 19038 true) MISC_MAN_SUFFIX=5 ;; 19039 *) MISC_MAN_SUFFIX=7 ;; 19040 esac 19041fi 19042if test x$MISC_MAN_DIR = x ; then 19043 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19044fi 19045 19046if test x$DRIVER_MAN_SUFFIX = x ; then 19047 case $SYSV_MAN_SECTIONS in 19048 true) DRIVER_MAN_SUFFIX=7 ;; 19049 *) DRIVER_MAN_SUFFIX=4 ;; 19050 esac 19051fi 19052if test x$DRIVER_MAN_DIR = x ; then 19053 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19054fi 19055 19056if test x$ADMIN_MAN_SUFFIX = x ; then 19057 case $SYSV_MAN_SECTIONS in 19058 true) ADMIN_MAN_SUFFIX=1m ;; 19059 *) ADMIN_MAN_SUFFIX=8 ;; 19060 esac 19061fi 19062if test x$ADMIN_MAN_DIR = x ; then 19063 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19064fi 19065 19066 19067 19068 19069 19070 19071 19072 19073 19074 19075 19076 19077 19078 19079 19080XORG_MAN_PAGE="X Version 11" 19081 19082MAN_SUBSTS="\ 19083 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19084 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19085 -e 's|__xservername__|Xorg|g' \ 19086 -e 's|__xconfigfile__|xorg.conf|g' \ 19087 -e 's|__projectroot__|\$(prefix)|g' \ 19088 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19089 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19090 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19091 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19092 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19093 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19094 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19095 19096 19097 19098# Check whether --enable-silent-rules was given. 19099if test ${enable_silent_rules+y} 19100then : 19101 enableval=$enable_silent_rules; 19102fi 19103 19104case $enable_silent_rules in # ((( 19105 yes) AM_DEFAULT_VERBOSITY=0;; 19106 no) AM_DEFAULT_VERBOSITY=1;; 19107 *) AM_DEFAULT_VERBOSITY=0;; 19108esac 19109am_make=${MAKE-make} 19110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19111printf %s "checking whether $am_make supports nested variables... " >&6; } 19112if test ${am_cv_make_support_nested_variables+y} 19113then : 19114 printf %s "(cached) " >&6 19115else $as_nop 19116 if printf "%s\n" 'TRUE=$(BAR$(V)) 19117BAR0=false 19118BAR1=true 19119V=1 19120am__doit: 19121 @$(TRUE) 19122.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19123 am_cv_make_support_nested_variables=yes 19124else 19125 am_cv_make_support_nested_variables=no 19126fi 19127fi 19128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19129printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19130if test $am_cv_make_support_nested_variables = yes; then 19131 AM_V='$(V)' 19132 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19133else 19134 AM_V=$AM_DEFAULT_VERBOSITY 19135 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19136fi 19137AM_BACKSLASH='\' 19138 19139 19140 19141# Check whether --enable-malloc0returnsnull was given. 19142if test ${enable_malloc0returnsnull+y} 19143then : 19144 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 19145else $as_nop 19146 MALLOC_ZERO_RETURNS_NULL=auto 19147fi 19148 19149 19150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 19151printf %s "checking whether malloc(0) returns NULL... " >&6; } 19152if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 19153if test ${xorg_cv_malloc0_returns_null+y} 19154then : 19155 printf %s "(cached) " >&6 19156else $as_nop 19157 if test "$cross_compiling" = yes 19158then : 19159 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19160printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19161as_fn_error $? "cannot run test program while cross compiling 19162See \`config.log' for more details" "$LINENO" 5; } 19163else $as_nop 19164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19165/* end confdefs.h. */ 19166 19167#include <stdlib.h> 19168 19169int 19170main (void) 19171{ 19172 19173 char *m0, *r0, *c0, *p; 19174 m0 = malloc(0); 19175 p = malloc(10); 19176 r0 = realloc(p,0); 19177 c0 = calloc(0,10); 19178 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 19179 19180 ; 19181 return 0; 19182} 19183_ACEOF 19184if ac_fn_c_try_run "$LINENO" 19185then : 19186 xorg_cv_malloc0_returns_null=yes 19187else $as_nop 19188 xorg_cv_malloc0_returns_null=no 19189fi 19190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19191 conftest.$ac_objext conftest.beam conftest.$ac_ext 19192fi 19193 19194fi 19195 19196MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 19197fi 19198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 19199printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 19200 19201if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 19202 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 19203 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 19204 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 19205else 19206 MALLOC_ZERO_CFLAGS="" 19207 XMALLOC_ZERO_CFLAGS="" 19208 XTMALLOC_ZERO_CFLAGS="" 19209fi 19210 19211 19212 19213 19214 19215 19216# Obtain compiler/linker options for dependencies 19217 19218pkg_failed=no 19219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XVMC" >&5 19220printf %s "checking for XVMC... " >&6; } 19221 19222if test -n "$XVMC_CFLAGS"; then 19223 pkg_cv_XVMC_CFLAGS="$XVMC_CFLAGS" 19224 elif test -n "$PKG_CONFIG"; then 19225 if test -n "$PKG_CONFIG" && \ 19226 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xv xextproto videoproto\""; } >&5 19227 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xv xextproto videoproto") 2>&5 19228 ac_status=$? 19229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19230 test $ac_status = 0; }; then 19231 pkg_cv_XVMC_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xv xextproto videoproto" 2>/dev/null` 19232 test "x$?" != "x0" && pkg_failed=yes 19233else 19234 pkg_failed=yes 19235fi 19236 else 19237 pkg_failed=untried 19238fi 19239if test -n "$XVMC_LIBS"; then 19240 pkg_cv_XVMC_LIBS="$XVMC_LIBS" 19241 elif test -n "$PKG_CONFIG"; then 19242 if test -n "$PKG_CONFIG" && \ 19243 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xv xextproto videoproto\""; } >&5 19244 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xv xextproto videoproto") 2>&5 19245 ac_status=$? 19246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19247 test $ac_status = 0; }; then 19248 pkg_cv_XVMC_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>/dev/null` 19249 test "x$?" != "x0" && pkg_failed=yes 19250else 19251 pkg_failed=yes 19252fi 19253 else 19254 pkg_failed=untried 19255fi 19256 19257 19258 19259if test $pkg_failed = yes; then 19260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19261printf "%s\n" "no" >&6; } 19262 19263if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19264 _pkg_short_errors_supported=yes 19265else 19266 _pkg_short_errors_supported=no 19267fi 19268 if test $_pkg_short_errors_supported = yes; then 19269 XVMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>&1` 19270 else 19271 XVMC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>&1` 19272 fi 19273 # Put the nasty error message in config.log where it belongs 19274 echo "$XVMC_PKG_ERRORS" >&5 19275 19276 as_fn_error $? "Package requirements (x11 >= 1.6 xext xv xextproto videoproto) were not met: 19277 19278$XVMC_PKG_ERRORS 19279 19280Consider adjusting the PKG_CONFIG_PATH environment variable if you 19281installed software in a non-standard prefix. 19282 19283Alternatively, you may set the environment variables XVMC_CFLAGS 19284and XVMC_LIBS to avoid the need to call pkg-config. 19285See the pkg-config man page for more details." "$LINENO" 5 19286elif test $pkg_failed = untried; then 19287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19288printf "%s\n" "no" >&6; } 19289 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19290printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19291as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19292is in your PATH or set the PKG_CONFIG environment variable to the full 19293path to pkg-config. 19294 19295Alternatively, you may set the environment variables XVMC_CFLAGS 19296and XVMC_LIBS to avoid the need to call pkg-config. 19297See the pkg-config man page for more details. 19298 19299To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19300See \`config.log' for more details" "$LINENO" 5; } 19301else 19302 XVMC_CFLAGS=$pkg_cv_XVMC_CFLAGS 19303 XVMC_LIBS=$pkg_cv_XVMC_LIBS 19304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19305printf "%s\n" "yes" >&6; } 19306 19307fi 19308 19309# Checks for library functions. 19310ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 19311if test "x$ac_cv_func_shmat" = xyes 19312then : 19313 printf "%s\n" "#define HAVE_SHMAT 1" >>confdefs.h 19314 19315fi 19316 19317 19318# Check to see if dlopen is in default libraries (like Solaris, which 19319# has it in libc), or if libdl is needed to get it. 19320ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 19321if test "x$ac_cv_func_dlopen" = xyes 19322then : 19323 19324else $as_nop 19325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19326printf %s "checking for dlopen in -ldl... " >&6; } 19327if test ${ac_cv_lib_dl_dlopen+y} 19328then : 19329 printf %s "(cached) " >&6 19330else $as_nop 19331 ac_check_lib_save_LIBS=$LIBS 19332LIBS="-ldl $LIBS" 19333cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19334/* end confdefs.h. */ 19335 19336/* Override any GCC internal prototype to avoid an error. 19337 Use char because int might match the return type of a GCC 19338 builtin and then its argument prototype would still apply. */ 19339char dlopen (); 19340int 19341main (void) 19342{ 19343return dlopen (); 19344 ; 19345 return 0; 19346} 19347_ACEOF 19348if ac_fn_c_try_link "$LINENO" 19349then : 19350 ac_cv_lib_dl_dlopen=yes 19351else $as_nop 19352 ac_cv_lib_dl_dlopen=no 19353fi 19354rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19355 conftest$ac_exeext conftest.$ac_ext 19356LIBS=$ac_check_lib_save_LIBS 19357fi 19358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19359printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 19360if test "x$ac_cv_lib_dl_dlopen" = xyes 19361then : 19362 DLOPEN_LIBS="-ldl" 19363fi 19364 19365fi 19366 19367 19368 19369# Allow checking code with lint, sparse, etc. 19370 19371 19372 19373 19374 19375# Check whether --with-lint was given. 19376if test ${with_lint+y} 19377then : 19378 withval=$with_lint; use_lint=$withval 19379else $as_nop 19380 use_lint=no 19381fi 19382 19383 19384# Obtain platform specific info like program name and options 19385# The lint program on FreeBSD and NetBSD is different from the one on Solaris 19386case $host_os in 19387 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 19388 lint_name=splint 19389 lint_options="-badflag" 19390 ;; 19391 *freebsd* | *netbsd*) 19392 lint_name=lint 19393 lint_options="-u -b" 19394 ;; 19395 *solaris*) 19396 lint_name=lint 19397 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 19398 ;; 19399esac 19400 19401# Test for the presence of the program (either guessed by the code or spelled out by the user) 19402if test "x$use_lint" = x"yes" ; then 19403 # Extract the first word of "$lint_name", so it can be a program name with args. 19404set dummy $lint_name; ac_word=$2 19405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19406printf %s "checking for $ac_word... " >&6; } 19407if test ${ac_cv_path_LINT+y} 19408then : 19409 printf %s "(cached) " >&6 19410else $as_nop 19411 case $LINT in 19412 [\\/]* | ?:[\\/]*) 19413 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 19414 ;; 19415 *) 19416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19417for as_dir in $PATH 19418do 19419 IFS=$as_save_IFS 19420 case $as_dir in #((( 19421 '') as_dir=./ ;; 19422 */) ;; 19423 *) as_dir=$as_dir/ ;; 19424 esac 19425 for ac_exec_ext in '' $ac_executable_extensions; do 19426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19427 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 19428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19429 break 2 19430 fi 19431done 19432 done 19433IFS=$as_save_IFS 19434 19435 ;; 19436esac 19437fi 19438LINT=$ac_cv_path_LINT 19439if test -n "$LINT"; then 19440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 19441printf "%s\n" "$LINT" >&6; } 19442else 19443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19444printf "%s\n" "no" >&6; } 19445fi 19446 19447 19448 if test "x$LINT" = "x"; then 19449 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 19450 fi 19451elif test "x$use_lint" = x"no" ; then 19452 if test "x$LINT" != "x"; then 19453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 19454printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 19455 fi 19456else 19457 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 19458fi 19459 19460# User supplied flags override default flags 19461if test "x$LINT_FLAGS" != "x"; then 19462 lint_options=$LINT_FLAGS 19463fi 19464 19465LINT_FLAGS=$lint_options 19466 19467 if test "x$LINT" != x; then 19468 LINT_TRUE= 19469 LINT_FALSE='#' 19470else 19471 LINT_TRUE='#' 19472 LINT_FALSE= 19473fi 19474 19475 19476 19477LINT_FLAGS="${LINT_FLAGS} ${XVMC_CFLAGS}" 19478 19479ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile wrapper/Makefile xvmc.pc xvmc-wrapper.pc" 19480 19481cat >confcache <<\_ACEOF 19482# This file is a shell script that caches the results of configure 19483# tests run on this system so they can be shared between configure 19484# scripts and configure runs, see configure's option --config-cache. 19485# It is not useful on other systems. If it contains results you don't 19486# want to keep, you may remove or edit it. 19487# 19488# config.status only pays attention to the cache file if you give it 19489# the --recheck option to rerun configure. 19490# 19491# `ac_cv_env_foo' variables (set or unset) will be overridden when 19492# loading this file, other *unset* `ac_cv_foo' will be assigned the 19493# following values. 19494 19495_ACEOF 19496 19497# The following way of writing the cache mishandles newlines in values, 19498# but we know of no workaround that is simple, portable, and efficient. 19499# So, we kill variables containing newlines. 19500# Ultrix sh set writes to stderr and can't be redirected directly, 19501# and sets the high bit in the cache file unless we assign to the vars. 19502( 19503 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19504 eval ac_val=\$$ac_var 19505 case $ac_val in #( 19506 *${as_nl}*) 19507 case $ac_var in #( 19508 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19509printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19510 esac 19511 case $ac_var in #( 19512 _ | IFS | as_nl) ;; #( 19513 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19514 *) { eval $ac_var=; unset $ac_var;} ;; 19515 esac ;; 19516 esac 19517 done 19518 19519 (set) 2>&1 | 19520 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19521 *${as_nl}ac_space=\ *) 19522 # `set' does not quote correctly, so add quotes: double-quote 19523 # substitution turns \\\\ into \\, and sed turns \\ into \. 19524 sed -n \ 19525 "s/'/'\\\\''/g; 19526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19527 ;; #( 19528 *) 19529 # `set' quotes correctly as required by POSIX, so do not add quotes. 19530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19531 ;; 19532 esac | 19533 sort 19534) | 19535 sed ' 19536 /^ac_cv_env_/b end 19537 t clear 19538 :clear 19539 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19540 t end 19541 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19542 :end' >>confcache 19543if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19544 if test -w "$cache_file"; then 19545 if test "x$cache_file" != "x/dev/null"; then 19546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19547printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19548 if test ! -f "$cache_file" || test -h "$cache_file"; then 19549 cat confcache >"$cache_file" 19550 else 19551 case $cache_file in #( 19552 */* | ?:*) 19553 mv -f confcache "$cache_file"$$ && 19554 mv -f "$cache_file"$$ "$cache_file" ;; #( 19555 *) 19556 mv -f confcache "$cache_file" ;; 19557 esac 19558 fi 19559 fi 19560 else 19561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19562printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19563 fi 19564fi 19565rm -f confcache 19566 19567test "x$prefix" = xNONE && prefix=$ac_default_prefix 19568# Let make expand exec_prefix. 19569test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19570 19571DEFS=-DHAVE_CONFIG_H 19572 19573ac_libobjs= 19574ac_ltlibobjs= 19575U= 19576for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19577 # 1. Remove the extension, and $U if already installed. 19578 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19579 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19580 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19581 # will be set to the directory where LIBOBJS objects are built. 19582 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19583 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19584done 19585LIBOBJS=$ac_libobjs 19586 19587LTLIBOBJS=$ac_ltlibobjs 19588 19589 19590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19591printf %s "checking that generated files are newer than configure... " >&6; } 19592 if test -n "$am_sleep_pid"; then 19593 # Hide warnings about reused PIDs. 19594 wait $am_sleep_pid 2>/dev/null 19595 fi 19596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19597printf "%s\n" "done" >&6; } 19598 if test -n "$EXEEXT"; then 19599 am__EXEEXT_TRUE= 19600 am__EXEEXT_FALSE='#' 19601else 19602 am__EXEEXT_TRUE='#' 19603 am__EXEEXT_FALSE= 19604fi 19605 19606if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19607 as_fn_error $? "conditional \"AMDEP\" was never defined. 19608Usually this means the macro was only invoked conditionally." "$LINENO" 5 19609fi 19610if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19611 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19612Usually this means the macro was only invoked conditionally." "$LINENO" 5 19613fi 19614if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 19615 as_fn_error $? "conditional \"LINT\" was never defined. 19616Usually this means the macro was only invoked conditionally." "$LINENO" 5 19617fi 19618 19619: "${CONFIG_STATUS=./config.status}" 19620ac_write_fail=0 19621ac_clean_files_save=$ac_clean_files 19622ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19624printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19625as_write_fail=0 19626cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19627#! $SHELL 19628# Generated by $as_me. 19629# Run this file to recreate the current configuration. 19630# Compiler output produced by configure, useful for debugging 19631# configure, is in config.log if it exists. 19632 19633debug=false 19634ac_cs_recheck=false 19635ac_cs_silent=false 19636 19637SHELL=\${CONFIG_SHELL-$SHELL} 19638export SHELL 19639_ASEOF 19640cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19641## -------------------- ## 19642## M4sh Initialization. ## 19643## -------------------- ## 19644 19645# Be more Bourne compatible 19646DUALCASE=1; export DUALCASE # for MKS sh 19647as_nop=: 19648if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19649then : 19650 emulate sh 19651 NULLCMD=: 19652 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19653 # is contrary to our usage. Disable this feature. 19654 alias -g '${1+"$@"}'='"$@"' 19655 setopt NO_GLOB_SUBST 19656else $as_nop 19657 case `(set -o) 2>/dev/null` in #( 19658 *posix*) : 19659 set -o posix ;; #( 19660 *) : 19661 ;; 19662esac 19663fi 19664 19665 19666 19667# Reset variables that may have inherited troublesome values from 19668# the environment. 19669 19670# IFS needs to be set, to space, tab, and newline, in precisely that order. 19671# (If _AS_PATH_WALK were called with IFS unset, it would have the 19672# side effect of setting IFS to empty, thus disabling word splitting.) 19673# Quoting is to prevent editors from complaining about space-tab. 19674as_nl=' 19675' 19676export as_nl 19677IFS=" "" $as_nl" 19678 19679PS1='$ ' 19680PS2='> ' 19681PS4='+ ' 19682 19683# Ensure predictable behavior from utilities with locale-dependent output. 19684LC_ALL=C 19685export LC_ALL 19686LANGUAGE=C 19687export LANGUAGE 19688 19689# We cannot yet rely on "unset" to work, but we need these variables 19690# to be unset--not just set to an empty or harmless value--now, to 19691# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19692# also avoids known problems related to "unset" and subshell syntax 19693# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19694for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19695do eval test \${$as_var+y} \ 19696 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19697done 19698 19699# Ensure that fds 0, 1, and 2 are open. 19700if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19701if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19702if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19703 19704# The user is always right. 19705if ${PATH_SEPARATOR+false} :; then 19706 PATH_SEPARATOR=: 19707 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19708 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19709 PATH_SEPARATOR=';' 19710 } 19711fi 19712 19713 19714# Find who we are. Look in the path if we contain no directory separator. 19715as_myself= 19716case $0 in #(( 19717 *[\\/]* ) as_myself=$0 ;; 19718 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19719for as_dir in $PATH 19720do 19721 IFS=$as_save_IFS 19722 case $as_dir in #((( 19723 '') as_dir=./ ;; 19724 */) ;; 19725 *) as_dir=$as_dir/ ;; 19726 esac 19727 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19728 done 19729IFS=$as_save_IFS 19730 19731 ;; 19732esac 19733# We did not find ourselves, most probably we were run as `sh COMMAND' 19734# in which case we are not to be found in the path. 19735if test "x$as_myself" = x; then 19736 as_myself=$0 19737fi 19738if test ! -f "$as_myself"; then 19739 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19740 exit 1 19741fi 19742 19743 19744 19745# as_fn_error STATUS ERROR [LINENO LOG_FD] 19746# ---------------------------------------- 19747# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19748# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19749# script with STATUS, using 1 if that was 0. 19750as_fn_error () 19751{ 19752 as_status=$1; test $as_status -eq 0 && as_status=1 19753 if test "$4"; then 19754 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19756 fi 19757 printf "%s\n" "$as_me: error: $2" >&2 19758 as_fn_exit $as_status 19759} # as_fn_error 19760 19761 19762 19763# as_fn_set_status STATUS 19764# ----------------------- 19765# Set $? to STATUS, without forking. 19766as_fn_set_status () 19767{ 19768 return $1 19769} # as_fn_set_status 19770 19771# as_fn_exit STATUS 19772# ----------------- 19773# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19774as_fn_exit () 19775{ 19776 set +e 19777 as_fn_set_status $1 19778 exit $1 19779} # as_fn_exit 19780 19781# as_fn_unset VAR 19782# --------------- 19783# Portably unset VAR. 19784as_fn_unset () 19785{ 19786 { eval $1=; unset $1;} 19787} 19788as_unset=as_fn_unset 19789 19790# as_fn_append VAR VALUE 19791# ---------------------- 19792# Append the text in VALUE to the end of the definition contained in VAR. Take 19793# advantage of any shell optimizations that allow amortized linear growth over 19794# repeated appends, instead of the typical quadratic growth present in naive 19795# implementations. 19796if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 19797then : 19798 eval 'as_fn_append () 19799 { 19800 eval $1+=\$2 19801 }' 19802else $as_nop 19803 as_fn_append () 19804 { 19805 eval $1=\$$1\$2 19806 } 19807fi # as_fn_append 19808 19809# as_fn_arith ARG... 19810# ------------------ 19811# Perform arithmetic evaluation on the ARGs, and store the result in the 19812# global $as_val. Take advantage of shells that can avoid forks. The arguments 19813# must be portable across $(()) and expr. 19814if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 19815then : 19816 eval 'as_fn_arith () 19817 { 19818 as_val=$(( $* )) 19819 }' 19820else $as_nop 19821 as_fn_arith () 19822 { 19823 as_val=`expr "$@" || test $? -eq 1` 19824 } 19825fi # as_fn_arith 19826 19827 19828if expr a : '\(a\)' >/dev/null 2>&1 && 19829 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19830 as_expr=expr 19831else 19832 as_expr=false 19833fi 19834 19835if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19836 as_basename=basename 19837else 19838 as_basename=false 19839fi 19840 19841if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19842 as_dirname=dirname 19843else 19844 as_dirname=false 19845fi 19846 19847as_me=`$as_basename -- "$0" || 19848$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19849 X"$0" : 'X\(//\)$' \| \ 19850 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19851printf "%s\n" X/"$0" | 19852 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19853 s//\1/ 19854 q 19855 } 19856 /^X\/\(\/\/\)$/{ 19857 s//\1/ 19858 q 19859 } 19860 /^X\/\(\/\).*/{ 19861 s//\1/ 19862 q 19863 } 19864 s/.*/./; q'` 19865 19866# Avoid depending upon Character Ranges. 19867as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19868as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19869as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19870as_cr_digits='0123456789' 19871as_cr_alnum=$as_cr_Letters$as_cr_digits 19872 19873 19874# Determine whether it's possible to make 'echo' print without a newline. 19875# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 19876# for compatibility with existing Makefiles. 19877ECHO_C= ECHO_N= ECHO_T= 19878case `echo -n x` in #((((( 19879-n*) 19880 case `echo 'xy\c'` in 19881 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19882 xy) ECHO_C='\c';; 19883 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19884 ECHO_T=' ';; 19885 esac;; 19886*) 19887 ECHO_N='-n';; 19888esac 19889 19890# For backward compatibility with old third-party macros, we provide 19891# the shell variables $as_echo and $as_echo_n. New code should use 19892# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 19893as_echo='printf %s\n' 19894as_echo_n='printf %s' 19895 19896rm -f conf$$ conf$$.exe conf$$.file 19897if test -d conf$$.dir; then 19898 rm -f conf$$.dir/conf$$.file 19899else 19900 rm -f conf$$.dir 19901 mkdir conf$$.dir 2>/dev/null 19902fi 19903if (echo >conf$$.file) 2>/dev/null; then 19904 if ln -s conf$$.file conf$$ 2>/dev/null; then 19905 as_ln_s='ln -s' 19906 # ... but there are two gotchas: 19907 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19908 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19909 # In both cases, we have to default to `cp -pR'. 19910 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19911 as_ln_s='cp -pR' 19912 elif ln conf$$.file conf$$ 2>/dev/null; then 19913 as_ln_s=ln 19914 else 19915 as_ln_s='cp -pR' 19916 fi 19917else 19918 as_ln_s='cp -pR' 19919fi 19920rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19921rmdir conf$$.dir 2>/dev/null 19922 19923 19924# as_fn_mkdir_p 19925# ------------- 19926# Create "$as_dir" as a directory, including parents if necessary. 19927as_fn_mkdir_p () 19928{ 19929 19930 case $as_dir in #( 19931 -*) as_dir=./$as_dir;; 19932 esac 19933 test -d "$as_dir" || eval $as_mkdir_p || { 19934 as_dirs= 19935 while :; do 19936 case $as_dir in #( 19937 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19938 *) as_qdir=$as_dir;; 19939 esac 19940 as_dirs="'$as_qdir' $as_dirs" 19941 as_dir=`$as_dirname -- "$as_dir" || 19942$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19943 X"$as_dir" : 'X\(//\)[^/]' \| \ 19944 X"$as_dir" : 'X\(//\)$' \| \ 19945 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19946printf "%s\n" X"$as_dir" | 19947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19948 s//\1/ 19949 q 19950 } 19951 /^X\(\/\/\)[^/].*/{ 19952 s//\1/ 19953 q 19954 } 19955 /^X\(\/\/\)$/{ 19956 s//\1/ 19957 q 19958 } 19959 /^X\(\/\).*/{ 19960 s//\1/ 19961 q 19962 } 19963 s/.*/./; q'` 19964 test -d "$as_dir" && break 19965 done 19966 test -z "$as_dirs" || eval "mkdir $as_dirs" 19967 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19968 19969 19970} # as_fn_mkdir_p 19971if mkdir -p . 2>/dev/null; then 19972 as_mkdir_p='mkdir -p "$as_dir"' 19973else 19974 test -d ./-p && rmdir ./-p 19975 as_mkdir_p=false 19976fi 19977 19978 19979# as_fn_executable_p FILE 19980# ----------------------- 19981# Test if FILE is an executable regular file. 19982as_fn_executable_p () 19983{ 19984 test -f "$1" && test -x "$1" 19985} # as_fn_executable_p 19986as_test_x='test -x' 19987as_executable_p=as_fn_executable_p 19988 19989# Sed expression to map a string onto a valid CPP name. 19990as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19991 19992# Sed expression to map a string onto a valid variable name. 19993as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19994 19995 19996exec 6>&1 19997## ----------------------------------- ## 19998## Main body of $CONFIG_STATUS script. ## 19999## ----------------------------------- ## 20000_ASEOF 20001test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20002 20003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20004# Save the log message, to keep $0 and so on meaningful, and to 20005# report actual input values of CONFIG_FILES etc. instead of their 20006# values after options handling. 20007ac_log=" 20008This file was extended by libXvMC $as_me 1.0.13, which was 20009generated by GNU Autoconf 2.71. Invocation command line was 20010 20011 CONFIG_FILES = $CONFIG_FILES 20012 CONFIG_HEADERS = $CONFIG_HEADERS 20013 CONFIG_LINKS = $CONFIG_LINKS 20014 CONFIG_COMMANDS = $CONFIG_COMMANDS 20015 $ $0 $@ 20016 20017on `(hostname || uname -n) 2>/dev/null | sed 1q` 20018" 20019 20020_ACEOF 20021 20022case $ac_config_files in *" 20023"*) set x $ac_config_files; shift; ac_config_files=$*;; 20024esac 20025 20026case $ac_config_headers in *" 20027"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20028esac 20029 20030 20031cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20032# Files that config.status was made for. 20033config_files="$ac_config_files" 20034config_headers="$ac_config_headers" 20035config_commands="$ac_config_commands" 20036 20037_ACEOF 20038 20039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20040ac_cs_usage="\ 20041\`$as_me' instantiates files and other configuration actions 20042from templates according to the current configuration. Unless the files 20043and actions are specified as TAGs, all are instantiated by default. 20044 20045Usage: $0 [OPTION]... [TAG]... 20046 20047 -h, --help print this help, then exit 20048 -V, --version print version number and configuration settings, then exit 20049 --config print configuration, then exit 20050 -q, --quiet, --silent 20051 do not print progress messages 20052 -d, --debug don't remove temporary files 20053 --recheck update $as_me by reconfiguring in the same conditions 20054 --file=FILE[:TEMPLATE] 20055 instantiate the configuration file FILE 20056 --header=FILE[:TEMPLATE] 20057 instantiate the configuration header FILE 20058 20059Configuration files: 20060$config_files 20061 20062Configuration headers: 20063$config_headers 20064 20065Configuration commands: 20066$config_commands 20067 20068Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXvMC/issues>." 20069 20070_ACEOF 20071ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20072ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20074ac_cs_config='$ac_cs_config_escaped' 20075ac_cs_version="\\ 20076libXvMC config.status 1.0.13 20077configured by $0, generated by GNU Autoconf 2.71, 20078 with options \\"\$ac_cs_config\\" 20079 20080Copyright (C) 2021 Free Software Foundation, Inc. 20081This config.status script is free software; the Free Software Foundation 20082gives unlimited permission to copy, distribute and modify it." 20083 20084ac_pwd='$ac_pwd' 20085srcdir='$srcdir' 20086INSTALL='$INSTALL' 20087MKDIR_P='$MKDIR_P' 20088AWK='$AWK' 20089test -n "\$AWK" || AWK=awk 20090_ACEOF 20091 20092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20093# The default lists apply if the user does not specify any file. 20094ac_need_defaults=: 20095while test $# != 0 20096do 20097 case $1 in 20098 --*=?*) 20099 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20100 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20101 ac_shift=: 20102 ;; 20103 --*=) 20104 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20105 ac_optarg= 20106 ac_shift=: 20107 ;; 20108 *) 20109 ac_option=$1 20110 ac_optarg=$2 20111 ac_shift=shift 20112 ;; 20113 esac 20114 20115 case $ac_option in 20116 # Handling of the options. 20117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20118 ac_cs_recheck=: ;; 20119 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20120 printf "%s\n" "$ac_cs_version"; exit ;; 20121 --config | --confi | --conf | --con | --co | --c ) 20122 printf "%s\n" "$ac_cs_config"; exit ;; 20123 --debug | --debu | --deb | --de | --d | -d ) 20124 debug=: ;; 20125 --file | --fil | --fi | --f ) 20126 $ac_shift 20127 case $ac_optarg in 20128 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20129 '') as_fn_error $? "missing file argument" ;; 20130 esac 20131 as_fn_append CONFIG_FILES " '$ac_optarg'" 20132 ac_need_defaults=false;; 20133 --header | --heade | --head | --hea ) 20134 $ac_shift 20135 case $ac_optarg in 20136 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20137 esac 20138 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20139 ac_need_defaults=false;; 20140 --he | --h) 20141 # Conflict between --help and --header 20142 as_fn_error $? "ambiguous option: \`$1' 20143Try \`$0 --help' for more information.";; 20144 --help | --hel | -h ) 20145 printf "%s\n" "$ac_cs_usage"; exit ;; 20146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20147 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20148 ac_cs_silent=: ;; 20149 20150 # This is an error. 20151 -*) as_fn_error $? "unrecognized option: \`$1' 20152Try \`$0 --help' for more information." ;; 20153 20154 *) as_fn_append ac_config_targets " $1" 20155 ac_need_defaults=false ;; 20156 20157 esac 20158 shift 20159done 20160 20161ac_configure_extra_args= 20162 20163if $ac_cs_silent; then 20164 exec 6>/dev/null 20165 ac_configure_extra_args="$ac_configure_extra_args --silent" 20166fi 20167 20168_ACEOF 20169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20170if \$ac_cs_recheck; then 20171 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20172 shift 20173 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20174 CONFIG_SHELL='$SHELL' 20175 export CONFIG_SHELL 20176 exec "\$@" 20177fi 20178 20179_ACEOF 20180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20181exec 5>>config.log 20182{ 20183 echo 20184 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20185## Running $as_me. ## 20186_ASBOX 20187 printf "%s\n" "$ac_log" 20188} >&5 20189 20190_ACEOF 20191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20192# 20193# INIT-COMMANDS 20194# 20195AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20196 20197 20198# The HP-UX ksh and POSIX shell print the target directory to stdout 20199# if CDPATH is set. 20200(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20201 20202sed_quote_subst='$sed_quote_subst' 20203double_quote_subst='$double_quote_subst' 20204delay_variable_subst='$delay_variable_subst' 20205macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20206macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20207enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20208enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20209pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20210enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20211shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20212SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20213ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20214PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20215host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20216host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20217host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20218build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20219build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20220build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20221SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20222Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20223GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20224EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20225FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20226LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20227NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20228LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20229max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20230ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20231exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20232lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20233lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20234lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20235lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20236lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20237reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20238reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20239OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20240deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20241file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20242file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20243want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20244DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20245sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20246AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20247AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20248archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20249STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20250RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20251old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20252old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20253old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20254lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20255CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20256CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20257compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20258GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20259lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20260lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20261lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20262lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20263lt_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"`' 20264lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20265nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20266lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20267lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20268objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20269MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20270lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20271lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20272lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20273lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20274lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20275need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20276MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20277DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20278NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20279LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20280OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20281OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20282libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20283shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20284extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20285archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20286enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20287export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20288whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20289compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20290old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20291old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20292archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20293archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20294module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20295module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20296with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20297allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20298no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20299hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20300hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20301hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20302hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20303hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20304hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20305hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20306inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20307link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20308always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20309export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20310exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20311include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20312prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20313postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20314file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20315variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20316need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20317need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20318version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20319runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20320shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20321shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20322libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20323library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20324soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20325install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20326postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20327postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20328finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20329finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20330hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20331sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20332configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20333configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20334hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20335enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20336enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20337enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20338old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20339striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20340 20341LTCC='$LTCC' 20342LTCFLAGS='$LTCFLAGS' 20343compiler='$compiler_DEFAULT' 20344 20345# A function that is used when there is no print builtin or printf. 20346func_fallback_echo () 20347{ 20348 eval 'cat <<_LTECHO_EOF 20349\$1 20350_LTECHO_EOF' 20351} 20352 20353# Quote evaled strings. 20354for var in SHELL \ 20355ECHO \ 20356PATH_SEPARATOR \ 20357SED \ 20358GREP \ 20359EGREP \ 20360FGREP \ 20361LD \ 20362NM \ 20363LN_S \ 20364lt_SP2NL \ 20365lt_NL2SP \ 20366reload_flag \ 20367OBJDUMP \ 20368deplibs_check_method \ 20369file_magic_cmd \ 20370file_magic_glob \ 20371want_nocaseglob \ 20372DLLTOOL \ 20373sharedlib_from_linklib_cmd \ 20374AR \ 20375AR_FLAGS \ 20376archiver_list_spec \ 20377STRIP \ 20378RANLIB \ 20379CC \ 20380CFLAGS \ 20381compiler \ 20382lt_cv_sys_global_symbol_pipe \ 20383lt_cv_sys_global_symbol_to_cdecl \ 20384lt_cv_sys_global_symbol_to_import \ 20385lt_cv_sys_global_symbol_to_c_name_address \ 20386lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20387lt_cv_nm_interface \ 20388nm_file_list_spec \ 20389lt_cv_truncate_bin \ 20390lt_prog_compiler_no_builtin_flag \ 20391lt_prog_compiler_pic \ 20392lt_prog_compiler_wl \ 20393lt_prog_compiler_static \ 20394lt_cv_prog_compiler_c_o \ 20395need_locks \ 20396MANIFEST_TOOL \ 20397DSYMUTIL \ 20398NMEDIT \ 20399LIPO \ 20400OTOOL \ 20401OTOOL64 \ 20402shrext_cmds \ 20403export_dynamic_flag_spec \ 20404whole_archive_flag_spec \ 20405compiler_needs_object \ 20406with_gnu_ld \ 20407allow_undefined_flag \ 20408no_undefined_flag \ 20409hardcode_libdir_flag_spec \ 20410hardcode_libdir_separator \ 20411exclude_expsyms \ 20412include_expsyms \ 20413file_list_spec \ 20414variables_saved_for_relink \ 20415libname_spec \ 20416library_names_spec \ 20417soname_spec \ 20418install_override_mode \ 20419finish_eval \ 20420old_striplib \ 20421striplib; do 20422 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20423 *[\\\\\\\`\\"\\\$]*) 20424 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20425 ;; 20426 *) 20427 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20428 ;; 20429 esac 20430done 20431 20432# Double-quote double-evaled strings. 20433for var in reload_cmds \ 20434old_postinstall_cmds \ 20435old_postuninstall_cmds \ 20436old_archive_cmds \ 20437extract_expsyms_cmds \ 20438old_archive_from_new_cmds \ 20439old_archive_from_expsyms_cmds \ 20440archive_cmds \ 20441archive_expsym_cmds \ 20442module_cmds \ 20443module_expsym_cmds \ 20444export_symbols_cmds \ 20445prelink_cmds \ 20446postlink_cmds \ 20447postinstall_cmds \ 20448postuninstall_cmds \ 20449finish_cmds \ 20450sys_lib_search_path_spec \ 20451configure_time_dlsearch_path \ 20452configure_time_lt_sys_library_path; do 20453 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20454 *[\\\\\\\`\\"\\\$]*) 20455 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20456 ;; 20457 *) 20458 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20459 ;; 20460 esac 20461done 20462 20463ac_aux_dir='$ac_aux_dir' 20464 20465# See if we are running on zsh, and set the options that allow our 20466# commands through without removal of \ escapes INIT. 20467if test -n "\${ZSH_VERSION+set}"; then 20468 setopt NO_GLOB_SUBST 20469fi 20470 20471 20472 PACKAGE='$PACKAGE' 20473 VERSION='$VERSION' 20474 RM='$RM' 20475 ofile='$ofile' 20476 20477 20478 20479 20480_ACEOF 20481 20482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20483 20484# Handling of arguments. 20485for ac_config_target in $ac_config_targets 20486do 20487 case $ac_config_target in 20488 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20489 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20490 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20491 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20492 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 20493 "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;; 20494 "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;; 20495 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20496 "wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES wrapper/Makefile" ;; 20497 "xvmc.pc") CONFIG_FILES="$CONFIG_FILES xvmc.pc" ;; 20498 "xvmc-wrapper.pc") CONFIG_FILES="$CONFIG_FILES xvmc-wrapper.pc" ;; 20499 20500 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20501 esac 20502done 20503 20504 20505# If the user did not use the arguments to specify the items to instantiate, 20506# then the envvar interface is used. Set only those that are not. 20507# We use the long form for the default assignment because of an extremely 20508# bizarre bug on SunOS 4.1.3. 20509if $ac_need_defaults; then 20510 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20511 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20512 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20513fi 20514 20515# Have a temporary directory for convenience. Make it in the build tree 20516# simply because there is no reason against having it here, and in addition, 20517# creating and moving files from /tmp can sometimes cause problems. 20518# Hook for its removal unless debugging. 20519# Note that there is a small window in which the directory will not be cleaned: 20520# after its creation but before its name has been assigned to `$tmp'. 20521$debug || 20522{ 20523 tmp= ac_tmp= 20524 trap 'exit_status=$? 20525 : "${ac_tmp:=$tmp}" 20526 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20527' 0 20528 trap 'as_fn_exit 1' 1 2 13 15 20529} 20530# Create a (secure) tmp directory for tmp files. 20531 20532{ 20533 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20534 test -d "$tmp" 20535} || 20536{ 20537 tmp=./conf$$-$RANDOM 20538 (umask 077 && mkdir "$tmp") 20539} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20540ac_tmp=$tmp 20541 20542# Set up the scripts for CONFIG_FILES section. 20543# No need to generate them if there are no CONFIG_FILES. 20544# This happens for instance with `./config.status config.h'. 20545if test -n "$CONFIG_FILES"; then 20546 20547 20548ac_cr=`echo X | tr X '\015'` 20549# On cygwin, bash can eat \r inside `` if the user requested igncr. 20550# But we know of no other shell where ac_cr would be empty at this 20551# point, so we can use a bashism as a fallback. 20552if test "x$ac_cr" = x; then 20553 eval ac_cr=\$\'\\r\' 20554fi 20555ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20556if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20557 ac_cs_awk_cr='\\r' 20558else 20559 ac_cs_awk_cr=$ac_cr 20560fi 20561 20562echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20563_ACEOF 20564 20565 20566{ 20567 echo "cat >conf$$subs.awk <<_ACEOF" && 20568 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20569 echo "_ACEOF" 20570} >conf$$subs.sh || 20571 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20572ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20573ac_delim='%!_!# ' 20574for ac_last_try in false false false false false :; do 20575 . ./conf$$subs.sh || 20576 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20577 20578 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20579 if test $ac_delim_n = $ac_delim_num; then 20580 break 20581 elif $ac_last_try; then 20582 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20583 else 20584 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20585 fi 20586done 20587rm -f conf$$subs.sh 20588 20589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20590cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20591_ACEOF 20592sed -n ' 20593h 20594s/^/S["/; s/!.*/"]=/ 20595p 20596g 20597s/^[^!]*!// 20598:repl 20599t repl 20600s/'"$ac_delim"'$// 20601t delim 20602:nl 20603h 20604s/\(.\{148\}\)..*/\1/ 20605t more1 20606s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20607p 20608n 20609b repl 20610:more1 20611s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20612p 20613g 20614s/.\{148\}// 20615t nl 20616:delim 20617h 20618s/\(.\{148\}\)..*/\1/ 20619t more2 20620s/["\\]/\\&/g; s/^/"/; s/$/"/ 20621p 20622b 20623:more2 20624s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20625p 20626g 20627s/.\{148\}// 20628t delim 20629' <conf$$subs.awk | sed ' 20630/^[^""]/{ 20631 N 20632 s/\n// 20633} 20634' >>$CONFIG_STATUS || ac_write_fail=1 20635rm -f conf$$subs.awk 20636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20637_ACAWK 20638cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20639 for (key in S) S_is_set[key] = 1 20640 FS = "" 20641 20642} 20643{ 20644 line = $ 0 20645 nfields = split(line, field, "@") 20646 substed = 0 20647 len = length(field[1]) 20648 for (i = 2; i < nfields; i++) { 20649 key = field[i] 20650 keylen = length(key) 20651 if (S_is_set[key]) { 20652 value = S[key] 20653 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20654 len += length(value) + length(field[++i]) 20655 substed = 1 20656 } else 20657 len += 1 + keylen 20658 } 20659 20660 print line 20661} 20662 20663_ACAWK 20664_ACEOF 20665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20666if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20667 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20668else 20669 cat 20670fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20671 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20672_ACEOF 20673 20674# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20675# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20676# trailing colons and then remove the whole line if VPATH becomes empty 20677# (actually we leave an empty line to preserve line numbers). 20678if test "x$srcdir" = x.; then 20679 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20680h 20681s/// 20682s/^/:/ 20683s/[ ]*$/:/ 20684s/:\$(srcdir):/:/g 20685s/:\${srcdir}:/:/g 20686s/:@srcdir@:/:/g 20687s/^:*// 20688s/:*$// 20689x 20690s/\(=[ ]*\).*/\1/ 20691G 20692s/\n// 20693s/^[^=]*=[ ]*$// 20694}' 20695fi 20696 20697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20698fi # test -n "$CONFIG_FILES" 20699 20700# Set up the scripts for CONFIG_HEADERS section. 20701# No need to generate them if there are no CONFIG_HEADERS. 20702# This happens for instance with `./config.status Makefile'. 20703if test -n "$CONFIG_HEADERS"; then 20704cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20705BEGIN { 20706_ACEOF 20707 20708# Transform confdefs.h into an awk script `defines.awk', embedded as 20709# here-document in config.status, that substitutes the proper values into 20710# config.h.in to produce config.h. 20711 20712# Create a delimiter string that does not exist in confdefs.h, to ease 20713# handling of long lines. 20714ac_delim='%!_!# ' 20715for ac_last_try in false false :; do 20716 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20717 if test -z "$ac_tt"; then 20718 break 20719 elif $ac_last_try; then 20720 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20721 else 20722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20723 fi 20724done 20725 20726# For the awk script, D is an array of macro values keyed by name, 20727# likewise P contains macro parameters if any. Preserve backslash 20728# newline sequences. 20729 20730ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20731sed -n ' 20732s/.\{148\}/&'"$ac_delim"'/g 20733t rset 20734:rset 20735s/^[ ]*#[ ]*define[ ][ ]*/ / 20736t def 20737d 20738:def 20739s/\\$// 20740t bsnl 20741s/["\\]/\\&/g 20742s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20743D["\1"]=" \3"/p 20744s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20745d 20746:bsnl 20747s/["\\]/\\&/g 20748s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20749D["\1"]=" \3\\\\\\n"\\/p 20750t cont 20751s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20752t cont 20753d 20754:cont 20755n 20756s/.\{148\}/&'"$ac_delim"'/g 20757t clear 20758:clear 20759s/\\$// 20760t bsnlc 20761s/["\\]/\\&/g; s/^/"/; s/$/"/p 20762d 20763:bsnlc 20764s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20765b cont 20766' <confdefs.h | sed ' 20767s/'"$ac_delim"'/"\\\ 20768"/g' >>$CONFIG_STATUS || ac_write_fail=1 20769 20770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20771 for (key in D) D_is_set[key] = 1 20772 FS = "" 20773} 20774/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20775 line = \$ 0 20776 split(line, arg, " ") 20777 if (arg[1] == "#") { 20778 defundef = arg[2] 20779 mac1 = arg[3] 20780 } else { 20781 defundef = substr(arg[1], 2) 20782 mac1 = arg[2] 20783 } 20784 split(mac1, mac2, "(") #) 20785 macro = mac2[1] 20786 prefix = substr(line, 1, index(line, defundef) - 1) 20787 if (D_is_set[macro]) { 20788 # Preserve the white space surrounding the "#". 20789 print prefix "define", macro P[macro] D[macro] 20790 next 20791 } else { 20792 # Replace #undef with comments. This is necessary, for example, 20793 # in the case of _POSIX_SOURCE, which is predefined and required 20794 # on some systems where configure will not decide to define it. 20795 if (defundef == "undef") { 20796 print "/*", prefix defundef, macro, "*/" 20797 next 20798 } 20799 } 20800} 20801{ print } 20802_ACAWK 20803_ACEOF 20804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20805 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20806fi # test -n "$CONFIG_HEADERS" 20807 20808 20809eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20810shift 20811for ac_tag 20812do 20813 case $ac_tag in 20814 :[FHLC]) ac_mode=$ac_tag; continue;; 20815 esac 20816 case $ac_mode$ac_tag in 20817 :[FHL]*:*);; 20818 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20819 :[FH]-) ac_tag=-:-;; 20820 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20821 esac 20822 ac_save_IFS=$IFS 20823 IFS=: 20824 set x $ac_tag 20825 IFS=$ac_save_IFS 20826 shift 20827 ac_file=$1 20828 shift 20829 20830 case $ac_mode in 20831 :L) ac_source=$1;; 20832 :[FH]) 20833 ac_file_inputs= 20834 for ac_f 20835 do 20836 case $ac_f in 20837 -) ac_f="$ac_tmp/stdin";; 20838 *) # Look for the file first in the build tree, then in the source tree 20839 # (if the path is not absolute). The absolute path cannot be DOS-style, 20840 # because $ac_f cannot contain `:'. 20841 test -f "$ac_f" || 20842 case $ac_f in 20843 [\\/$]*) false;; 20844 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20845 esac || 20846 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20847 esac 20848 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20849 as_fn_append ac_file_inputs " '$ac_f'" 20850 done 20851 20852 # Let's still pretend it is `configure' which instantiates (i.e., don't 20853 # use $as_me), people would be surprised to read: 20854 # /* config.h. Generated by config.status. */ 20855 configure_input='Generated from '` 20856 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20857 `' by configure.' 20858 if test x"$ac_file" != x-; then 20859 configure_input="$ac_file. $configure_input" 20860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20861printf "%s\n" "$as_me: creating $ac_file" >&6;} 20862 fi 20863 # Neutralize special characters interpreted by sed in replacement strings. 20864 case $configure_input in #( 20865 *\&* | *\|* | *\\* ) 20866 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 20867 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20868 *) ac_sed_conf_input=$configure_input;; 20869 esac 20870 20871 case $ac_tag in 20872 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20873 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20874 esac 20875 ;; 20876 esac 20877 20878 ac_dir=`$as_dirname -- "$ac_file" || 20879$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20880 X"$ac_file" : 'X\(//\)[^/]' \| \ 20881 X"$ac_file" : 'X\(//\)$' \| \ 20882 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20883printf "%s\n" X"$ac_file" | 20884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20885 s//\1/ 20886 q 20887 } 20888 /^X\(\/\/\)[^/].*/{ 20889 s//\1/ 20890 q 20891 } 20892 /^X\(\/\/\)$/{ 20893 s//\1/ 20894 q 20895 } 20896 /^X\(\/\).*/{ 20897 s//\1/ 20898 q 20899 } 20900 s/.*/./; q'` 20901 as_dir="$ac_dir"; as_fn_mkdir_p 20902 ac_builddir=. 20903 20904case "$ac_dir" in 20905.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20906*) 20907 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 20908 # A ".." for each directory in $ac_dir_suffix. 20909 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20910 case $ac_top_builddir_sub in 20911 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20912 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20913 esac ;; 20914esac 20915ac_abs_top_builddir=$ac_pwd 20916ac_abs_builddir=$ac_pwd$ac_dir_suffix 20917# for backward compatibility: 20918ac_top_builddir=$ac_top_build_prefix 20919 20920case $srcdir in 20921 .) # We are building in place. 20922 ac_srcdir=. 20923 ac_top_srcdir=$ac_top_builddir_sub 20924 ac_abs_top_srcdir=$ac_pwd ;; 20925 [\\/]* | ?:[\\/]* ) # Absolute name. 20926 ac_srcdir=$srcdir$ac_dir_suffix; 20927 ac_top_srcdir=$srcdir 20928 ac_abs_top_srcdir=$srcdir ;; 20929 *) # Relative name. 20930 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20931 ac_top_srcdir=$ac_top_build_prefix$srcdir 20932 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20933esac 20934ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20935 20936 20937 case $ac_mode in 20938 :F) 20939 # 20940 # CONFIG_FILE 20941 # 20942 20943 case $INSTALL in 20944 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20945 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20946 esac 20947 ac_MKDIR_P=$MKDIR_P 20948 case $MKDIR_P in 20949 [\\/$]* | ?:[\\/]* ) ;; 20950 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20951 esac 20952_ACEOF 20953 20954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20955# If the template does not know about datarootdir, expand it. 20956# FIXME: This hack should be removed a few years after 2.60. 20957ac_datarootdir_hack=; ac_datarootdir_seen= 20958ac_sed_dataroot=' 20959/datarootdir/ { 20960 p 20961 q 20962} 20963/@datadir@/p 20964/@docdir@/p 20965/@infodir@/p 20966/@localedir@/p 20967/@mandir@/p' 20968case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20969*datarootdir*) ac_datarootdir_seen=yes;; 20970*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20972printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20973_ACEOF 20974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20975 ac_datarootdir_hack=' 20976 s&@datadir@&$datadir&g 20977 s&@docdir@&$docdir&g 20978 s&@infodir@&$infodir&g 20979 s&@localedir@&$localedir&g 20980 s&@mandir@&$mandir&g 20981 s&\\\${datarootdir}&$datarootdir&g' ;; 20982esac 20983_ACEOF 20984 20985# Neutralize VPATH when `$srcdir' = `.'. 20986# Shell code in configure.ac might set extrasub. 20987# FIXME: do we really want to maintain this feature? 20988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20989ac_sed_extra="$ac_vpsub 20990$extrasub 20991_ACEOF 20992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20993:t 20994/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20995s|@configure_input@|$ac_sed_conf_input|;t t 20996s&@top_builddir@&$ac_top_builddir_sub&;t t 20997s&@top_build_prefix@&$ac_top_build_prefix&;t t 20998s&@srcdir@&$ac_srcdir&;t t 20999s&@abs_srcdir@&$ac_abs_srcdir&;t t 21000s&@top_srcdir@&$ac_top_srcdir&;t t 21001s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21002s&@builddir@&$ac_builddir&;t t 21003s&@abs_builddir@&$ac_abs_builddir&;t t 21004s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21005s&@INSTALL@&$ac_INSTALL&;t t 21006s&@MKDIR_P@&$ac_MKDIR_P&;t t 21007$ac_datarootdir_hack 21008" 21009eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21010 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21011 21012test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21013 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21014 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21015 "$ac_tmp/out"`; test -z "$ac_out"; } && 21016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21017which seems to be undefined. Please make sure it is defined" >&5 21018printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21019which seems to be undefined. Please make sure it is defined" >&2;} 21020 21021 rm -f "$ac_tmp/stdin" 21022 case $ac_file in 21023 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21024 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21025 esac \ 21026 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21027 ;; 21028 :H) 21029 # 21030 # CONFIG_HEADER 21031 # 21032 if test x"$ac_file" != x-; then 21033 { 21034 printf "%s\n" "/* $configure_input */" >&1 \ 21035 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21036 } >"$ac_tmp/config.h" \ 21037 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21038 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21040printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21041 else 21042 rm -f "$ac_file" 21043 mv "$ac_tmp/config.h" "$ac_file" \ 21044 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21045 fi 21046 else 21047 printf "%s\n" "/* $configure_input */" >&1 \ 21048 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21049 || as_fn_error $? "could not create -" "$LINENO" 5 21050 fi 21051# Compute "$ac_file"'s index in $config_headers. 21052_am_arg="$ac_file" 21053_am_stamp_count=1 21054for _am_header in $config_headers :; do 21055 case $_am_header in 21056 $_am_arg | $_am_arg:* ) 21057 break ;; 21058 * ) 21059 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21060 esac 21061done 21062echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21063$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21064 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21065 X"$_am_arg" : 'X\(//\)$' \| \ 21066 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21067printf "%s\n" X"$_am_arg" | 21068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21069 s//\1/ 21070 q 21071 } 21072 /^X\(\/\/\)[^/].*/{ 21073 s//\1/ 21074 q 21075 } 21076 /^X\(\/\/\)$/{ 21077 s//\1/ 21078 q 21079 } 21080 /^X\(\/\).*/{ 21081 s//\1/ 21082 q 21083 } 21084 s/.*/./; q'`/stamp-h$_am_stamp_count 21085 ;; 21086 21087 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21088printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21089 ;; 21090 esac 21091 21092 21093 case $ac_file$ac_mode in 21094 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21095 # Older Autoconf quotes --file arguments for eval, but not when files 21096 # are listed without --file. Let's play safe and only enable the eval 21097 # if we detect the quoting. 21098 # TODO: see whether this extra hack can be removed once we start 21099 # requiring Autoconf 2.70 or later. 21100 case $CONFIG_FILES in #( 21101 *\'*) : 21102 eval set x "$CONFIG_FILES" ;; #( 21103 *) : 21104 set x $CONFIG_FILES ;; #( 21105 *) : 21106 ;; 21107esac 21108 shift 21109 # Used to flag and report bootstrapping failures. 21110 am_rc=0 21111 for am_mf 21112 do 21113 # Strip MF so we end up with the name of the file. 21114 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21115 # Check whether this is an Automake generated Makefile which includes 21116 # dependency-tracking related rules and includes. 21117 # Grep'ing the whole file directly is not great: AIX grep has a line 21118 # limit of 2048, but all sed's we know have understand at least 4000. 21119 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21120 || continue 21121 am_dirpart=`$as_dirname -- "$am_mf" || 21122$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21123 X"$am_mf" : 'X\(//\)[^/]' \| \ 21124 X"$am_mf" : 'X\(//\)$' \| \ 21125 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21126printf "%s\n" X"$am_mf" | 21127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21128 s//\1/ 21129 q 21130 } 21131 /^X\(\/\/\)[^/].*/{ 21132 s//\1/ 21133 q 21134 } 21135 /^X\(\/\/\)$/{ 21136 s//\1/ 21137 q 21138 } 21139 /^X\(\/\).*/{ 21140 s//\1/ 21141 q 21142 } 21143 s/.*/./; q'` 21144 am_filepart=`$as_basename -- "$am_mf" || 21145$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21146 X"$am_mf" : 'X\(//\)$' \| \ 21147 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21148printf "%s\n" X/"$am_mf" | 21149 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21150 s//\1/ 21151 q 21152 } 21153 /^X\/\(\/\/\)$/{ 21154 s//\1/ 21155 q 21156 } 21157 /^X\/\(\/\).*/{ 21158 s//\1/ 21159 q 21160 } 21161 s/.*/./; q'` 21162 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21163 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21164 | $MAKE -f - am--depfiles" >&5 21165 (cd "$am_dirpart" \ 21166 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21167 | $MAKE -f - am--depfiles) >&5 2>&5 21168 ac_status=$? 21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21170 (exit $ac_status); } || am_rc=$? 21171 done 21172 if test $am_rc -ne 0; then 21173 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21174printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21175as_fn_error $? "Something went wrong bootstrapping makefile fragments 21176 for automatic dependency tracking. If GNU make was not used, consider 21177 re-running the configure script with MAKE=\"gmake\" (or whatever is 21178 necessary). You can also try re-running configure with the 21179 '--disable-dependency-tracking' option to at least be able to build 21180 the package (albeit without support for automatic dependency tracking). 21181See \`config.log' for more details" "$LINENO" 5; } 21182 fi 21183 { am_dirpart=; unset am_dirpart;} 21184 { am_filepart=; unset am_filepart;} 21185 { am_mf=; unset am_mf;} 21186 { am_rc=; unset am_rc;} 21187 rm -f conftest-deps.mk 21188} 21189 ;; 21190 "libtool":C) 21191 21192 # See if we are running on zsh, and set the options that allow our 21193 # commands through without removal of \ escapes. 21194 if test -n "${ZSH_VERSION+set}"; then 21195 setopt NO_GLOB_SUBST 21196 fi 21197 21198 cfgfile=${ofile}T 21199 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21200 $RM "$cfgfile" 21201 21202 cat <<_LT_EOF >> "$cfgfile" 21203#! $SHELL 21204# Generated automatically by $as_me ($PACKAGE) $VERSION 21205# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21206# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21207 21208# Provide generalized library-building support services. 21209# Written by Gordon Matzigkeit, 1996 21210 21211# Copyright (C) 2014 Free Software Foundation, Inc. 21212# This is free software; see the source for copying conditions. There is NO 21213# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21214 21215# GNU Libtool is free software; you can redistribute it and/or modify 21216# it under the terms of the GNU General Public License as published by 21217# the Free Software Foundation; either version 2 of of the License, or 21218# (at your option) any later version. 21219# 21220# As a special exception to the GNU General Public License, if you 21221# distribute this file as part of a program or library that is built 21222# using GNU Libtool, you may include this file under the same 21223# distribution terms that you use for the rest of that program. 21224# 21225# GNU Libtool is distributed in the hope that it will be useful, but 21226# WITHOUT ANY WARRANTY; without even the implied warranty of 21227# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21228# GNU General Public License for more details. 21229# 21230# You should have received a copy of the GNU General Public License 21231# along with this program. If not, see <http://www.gnu.org/licenses/>. 21232 21233 21234# The names of the tagged configurations supported by this script. 21235available_tags='' 21236 21237# Configured defaults for sys_lib_dlsearch_path munging. 21238: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21239 21240# ### BEGIN LIBTOOL CONFIG 21241 21242# Which release of libtool.m4 was used? 21243macro_version=$macro_version 21244macro_revision=$macro_revision 21245 21246# Whether or not to build shared libraries. 21247build_libtool_libs=$enable_shared 21248 21249# Whether or not to build static libraries. 21250build_old_libs=$enable_static 21251 21252# What type of objects to build. 21253pic_mode=$pic_mode 21254 21255# Whether or not to optimize for fast installation. 21256fast_install=$enable_fast_install 21257 21258# Shared archive member basename,for filename based shared library versioning on AIX. 21259shared_archive_member_spec=$shared_archive_member_spec 21260 21261# Shell to use when invoking shell scripts. 21262SHELL=$lt_SHELL 21263 21264# An echo program that protects backslashes. 21265ECHO=$lt_ECHO 21266 21267# The PATH separator for the build system. 21268PATH_SEPARATOR=$lt_PATH_SEPARATOR 21269 21270# The host system. 21271host_alias=$host_alias 21272host=$host 21273host_os=$host_os 21274 21275# The build system. 21276build_alias=$build_alias 21277build=$build 21278build_os=$build_os 21279 21280# A sed program that does not truncate output. 21281SED=$lt_SED 21282 21283# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21284Xsed="\$SED -e 1s/^X//" 21285 21286# A grep program that handles long lines. 21287GREP=$lt_GREP 21288 21289# An ERE matcher. 21290EGREP=$lt_EGREP 21291 21292# A literal string matcher. 21293FGREP=$lt_FGREP 21294 21295# A BSD- or MS-compatible name lister. 21296NM=$lt_NM 21297 21298# Whether we need soft or hard links. 21299LN_S=$lt_LN_S 21300 21301# What is the maximum length of a command? 21302max_cmd_len=$max_cmd_len 21303 21304# Object file suffix (normally "o"). 21305objext=$ac_objext 21306 21307# Executable file suffix (normally ""). 21308exeext=$exeext 21309 21310# whether the shell understands "unset". 21311lt_unset=$lt_unset 21312 21313# turn spaces into newlines. 21314SP2NL=$lt_lt_SP2NL 21315 21316# turn newlines into spaces. 21317NL2SP=$lt_lt_NL2SP 21318 21319# convert \$build file names to \$host format. 21320to_host_file_cmd=$lt_cv_to_host_file_cmd 21321 21322# convert \$build files to toolchain format. 21323to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21324 21325# An object symbol dumper. 21326OBJDUMP=$lt_OBJDUMP 21327 21328# Method to check whether dependent libraries are shared objects. 21329deplibs_check_method=$lt_deplibs_check_method 21330 21331# Command to use when deplibs_check_method = "file_magic". 21332file_magic_cmd=$lt_file_magic_cmd 21333 21334# How to find potential files when deplibs_check_method = "file_magic". 21335file_magic_glob=$lt_file_magic_glob 21336 21337# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21338want_nocaseglob=$lt_want_nocaseglob 21339 21340# DLL creation program. 21341DLLTOOL=$lt_DLLTOOL 21342 21343# Command to associate shared and link libraries. 21344sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21345 21346# The archiver. 21347AR=$lt_AR 21348 21349# Flags to create an archive. 21350AR_FLAGS=$lt_AR_FLAGS 21351 21352# How to feed a file listing to the archiver. 21353archiver_list_spec=$lt_archiver_list_spec 21354 21355# A symbol stripping program. 21356STRIP=$lt_STRIP 21357 21358# Commands used to install an old-style archive. 21359RANLIB=$lt_RANLIB 21360old_postinstall_cmds=$lt_old_postinstall_cmds 21361old_postuninstall_cmds=$lt_old_postuninstall_cmds 21362 21363# Whether to use a lock for old archive extraction. 21364lock_old_archive_extraction=$lock_old_archive_extraction 21365 21366# A C compiler. 21367LTCC=$lt_CC 21368 21369# LTCC compiler flags. 21370LTCFLAGS=$lt_CFLAGS 21371 21372# Take the output of nm and produce a listing of raw symbols and C names. 21373global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21374 21375# Transform the output of nm in a proper C declaration. 21376global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21377 21378# Transform the output of nm into a list of symbols to manually relocate. 21379global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21380 21381# Transform the output of nm in a C name address pair. 21382global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21383 21384# Transform the output of nm in a C name address pair when lib prefix is needed. 21385global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21386 21387# The name lister interface. 21388nm_interface=$lt_lt_cv_nm_interface 21389 21390# Specify filename containing input files for \$NM. 21391nm_file_list_spec=$lt_nm_file_list_spec 21392 21393# The root where to search for dependent libraries,and where our libraries should be installed. 21394lt_sysroot=$lt_sysroot 21395 21396# Command to truncate a binary pipe. 21397lt_truncate_bin=$lt_lt_cv_truncate_bin 21398 21399# The name of the directory that contains temporary libtool files. 21400objdir=$objdir 21401 21402# Used to examine libraries when file_magic_cmd begins with "file". 21403MAGIC_CMD=$MAGIC_CMD 21404 21405# Must we lock files when doing compilation? 21406need_locks=$lt_need_locks 21407 21408# Manifest tool. 21409MANIFEST_TOOL=$lt_MANIFEST_TOOL 21410 21411# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21412DSYMUTIL=$lt_DSYMUTIL 21413 21414# Tool to change global to local symbols on Mac OS X. 21415NMEDIT=$lt_NMEDIT 21416 21417# Tool to manipulate fat objects and archives on Mac OS X. 21418LIPO=$lt_LIPO 21419 21420# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21421OTOOL=$lt_OTOOL 21422 21423# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21424OTOOL64=$lt_OTOOL64 21425 21426# Old archive suffix (normally "a"). 21427libext=$libext 21428 21429# Shared library suffix (normally ".so"). 21430shrext_cmds=$lt_shrext_cmds 21431 21432# The commands to extract the exported symbol list from a shared archive. 21433extract_expsyms_cmds=$lt_extract_expsyms_cmds 21434 21435# Variables whose values should be saved in libtool wrapper scripts and 21436# restored at link time. 21437variables_saved_for_relink=$lt_variables_saved_for_relink 21438 21439# Do we need the "lib" prefix for modules? 21440need_lib_prefix=$need_lib_prefix 21441 21442# Do we need a version for libraries? 21443need_version=$need_version 21444 21445# Library versioning type. 21446version_type=$version_type 21447 21448# Shared library runtime path variable. 21449runpath_var=$runpath_var 21450 21451# Shared library path variable. 21452shlibpath_var=$shlibpath_var 21453 21454# Is shlibpath searched before the hard-coded library search path? 21455shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21456 21457# Format of library name prefix. 21458libname_spec=$lt_libname_spec 21459 21460# List of archive names. First name is the real one, the rest are links. 21461# The last name is the one that the linker finds with -lNAME 21462library_names_spec=$lt_library_names_spec 21463 21464# The coded name of the library, if different from the real name. 21465soname_spec=$lt_soname_spec 21466 21467# Permission mode override for installation of shared libraries. 21468install_override_mode=$lt_install_override_mode 21469 21470# Command to use after installation of a shared archive. 21471postinstall_cmds=$lt_postinstall_cmds 21472 21473# Command to use after uninstallation of a shared archive. 21474postuninstall_cmds=$lt_postuninstall_cmds 21475 21476# Commands used to finish a libtool library installation in a directory. 21477finish_cmds=$lt_finish_cmds 21478 21479# As "finish_cmds", except a single script fragment to be evaled but 21480# not shown. 21481finish_eval=$lt_finish_eval 21482 21483# Whether we should hardcode library paths into libraries. 21484hardcode_into_libs=$hardcode_into_libs 21485 21486# Compile-time system search path for libraries. 21487sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21488 21489# Detected run-time system search path for libraries. 21490sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21491 21492# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21493configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21494 21495# Whether dlopen is supported. 21496dlopen_support=$enable_dlopen 21497 21498# Whether dlopen of programs is supported. 21499dlopen_self=$enable_dlopen_self 21500 21501# Whether dlopen of statically linked programs is supported. 21502dlopen_self_static=$enable_dlopen_self_static 21503 21504# Commands to strip libraries. 21505old_striplib=$lt_old_striplib 21506striplib=$lt_striplib 21507 21508 21509# The linker used to build libraries. 21510LD=$lt_LD 21511 21512# How to create reloadable object files. 21513reload_flag=$lt_reload_flag 21514reload_cmds=$lt_reload_cmds 21515 21516# Commands used to build an old-style archive. 21517old_archive_cmds=$lt_old_archive_cmds 21518 21519# A language specific compiler. 21520CC=$lt_compiler 21521 21522# Is the compiler the GNU compiler? 21523with_gcc=$GCC 21524 21525# Compiler flag to turn off builtin functions. 21526no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21527 21528# Additional compiler flags for building library objects. 21529pic_flag=$lt_lt_prog_compiler_pic 21530 21531# How to pass a linker flag through the compiler. 21532wl=$lt_lt_prog_compiler_wl 21533 21534# Compiler flag to prevent dynamic linking. 21535link_static_flag=$lt_lt_prog_compiler_static 21536 21537# Does compiler simultaneously support -c and -o options? 21538compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21539 21540# Whether or not to add -lc for building shared libraries. 21541build_libtool_need_lc=$archive_cmds_need_lc 21542 21543# Whether or not to disallow shared libs when runtime libs are static. 21544allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21545 21546# Compiler flag to allow reflexive dlopens. 21547export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21548 21549# Compiler flag to generate shared objects directly from archives. 21550whole_archive_flag_spec=$lt_whole_archive_flag_spec 21551 21552# Whether the compiler copes with passing no objects directly. 21553compiler_needs_object=$lt_compiler_needs_object 21554 21555# Create an old-style archive from a shared archive. 21556old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21557 21558# Create a temporary old-style archive to link instead of a shared archive. 21559old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21560 21561# Commands used to build a shared archive. 21562archive_cmds=$lt_archive_cmds 21563archive_expsym_cmds=$lt_archive_expsym_cmds 21564 21565# Commands used to build a loadable module if different from building 21566# a shared archive. 21567module_cmds=$lt_module_cmds 21568module_expsym_cmds=$lt_module_expsym_cmds 21569 21570# Whether we are building with GNU ld or not. 21571with_gnu_ld=$lt_with_gnu_ld 21572 21573# Flag that allows shared libraries with undefined symbols to be built. 21574allow_undefined_flag=$lt_allow_undefined_flag 21575 21576# Flag that enforces no undefined symbols. 21577no_undefined_flag=$lt_no_undefined_flag 21578 21579# Flag to hardcode \$libdir into a binary during linking. 21580# This must work even if \$libdir does not exist 21581hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21582 21583# Whether we need a single "-rpath" flag with a separated argument. 21584hardcode_libdir_separator=$lt_hardcode_libdir_separator 21585 21586# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21587# DIR into the resulting binary. 21588hardcode_direct=$hardcode_direct 21589 21590# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21591# DIR into the resulting binary and the resulting library dependency is 21592# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21593# library is relocated. 21594hardcode_direct_absolute=$hardcode_direct_absolute 21595 21596# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21597# into the resulting binary. 21598hardcode_minus_L=$hardcode_minus_L 21599 21600# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21601# into the resulting binary. 21602hardcode_shlibpath_var=$hardcode_shlibpath_var 21603 21604# Set to "yes" if building a shared library automatically hardcodes DIR 21605# into the library and all subsequent libraries and executables linked 21606# against it. 21607hardcode_automatic=$hardcode_automatic 21608 21609# Set to yes if linker adds runtime paths of dependent libraries 21610# to runtime path list. 21611inherit_rpath=$inherit_rpath 21612 21613# Whether libtool must link a program against all its dependency libraries. 21614link_all_deplibs=$link_all_deplibs 21615 21616# Set to "yes" if exported symbols are required. 21617always_export_symbols=$always_export_symbols 21618 21619# The commands to list exported symbols. 21620export_symbols_cmds=$lt_export_symbols_cmds 21621 21622# Symbols that should not be listed in the preloaded symbols. 21623exclude_expsyms=$lt_exclude_expsyms 21624 21625# Symbols that must always be exported. 21626include_expsyms=$lt_include_expsyms 21627 21628# Commands necessary for linking programs (against libraries) with templates. 21629prelink_cmds=$lt_prelink_cmds 21630 21631# Commands necessary for finishing linking programs. 21632postlink_cmds=$lt_postlink_cmds 21633 21634# Specify filename containing input files. 21635file_list_spec=$lt_file_list_spec 21636 21637# How to hardcode a shared library path into an executable. 21638hardcode_action=$hardcode_action 21639 21640# ### END LIBTOOL CONFIG 21641 21642_LT_EOF 21643 21644 cat <<'_LT_EOF' >> "$cfgfile" 21645 21646# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21647 21648# func_munge_path_list VARIABLE PATH 21649# ----------------------------------- 21650# VARIABLE is name of variable containing _space_ separated list of 21651# directories to be munged by the contents of PATH, which is string 21652# having a format: 21653# "DIR[:DIR]:" 21654# string "DIR[ DIR]" will be prepended to VARIABLE 21655# ":DIR[:DIR]" 21656# string "DIR[ DIR]" will be appended to VARIABLE 21657# "DIRP[:DIRP]::[DIRA:]DIRA" 21658# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21659# "DIRA[ DIRA]" will be appended to VARIABLE 21660# "DIR[:DIR]" 21661# VARIABLE will be replaced by "DIR[ DIR]" 21662func_munge_path_list () 21663{ 21664 case x$2 in 21665 x) 21666 ;; 21667 *:) 21668 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21669 ;; 21670 x:*) 21671 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21672 ;; 21673 *::*) 21674 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21675 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21676 ;; 21677 *) 21678 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21679 ;; 21680 esac 21681} 21682 21683 21684# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21685func_cc_basename () 21686{ 21687 for cc_temp in $*""; do 21688 case $cc_temp in 21689 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21690 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21691 \-*) ;; 21692 *) break;; 21693 esac 21694 done 21695 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21696} 21697 21698 21699# ### END FUNCTIONS SHARED WITH CONFIGURE 21700 21701_LT_EOF 21702 21703 case $host_os in 21704 aix3*) 21705 cat <<\_LT_EOF >> "$cfgfile" 21706# AIX sometimes has problems with the GCC collect2 program. For some 21707# reason, if we set the COLLECT_NAMES environment variable, the problems 21708# vanish in a puff of smoke. 21709if test set != "${COLLECT_NAMES+set}"; then 21710 COLLECT_NAMES= 21711 export COLLECT_NAMES 21712fi 21713_LT_EOF 21714 ;; 21715 esac 21716 21717 21718 21719ltmain=$ac_aux_dir/ltmain.sh 21720 21721 21722 # We use sed instead of cat because bash on DJGPP gets confused if 21723 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21724 # text mode, it properly converts lines to CR/LF. This bash problem 21725 # is reportedly fixed, but why not run on old versions too? 21726 sed '$q' "$ltmain" >> "$cfgfile" \ 21727 || (rm -f "$cfgfile"; exit 1) 21728 21729 mv -f "$cfgfile" "$ofile" || 21730 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21731 chmod +x "$ofile" 21732 21733 ;; 21734 21735 esac 21736done # for ac_tag 21737 21738 21739as_fn_exit 0 21740_ACEOF 21741ac_clean_files=$ac_clean_files_save 21742 21743test $ac_write_fail = 0 || 21744 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21745 21746 21747# configure is writing to config.log, and then calls config.status. 21748# config.status does its own redirection, appending to config.log. 21749# Unfortunately, on DOS this fails, as config.log is still kept open 21750# by configure, so config.status won't be able to write to it; its 21751# output is simply discarded. So we exec the FD to /dev/null, 21752# effectively closing config.log, so it can be properly (re)opened and 21753# appended to by config.status. When coming back to configure, we 21754# need to make the FD available again. 21755if test "$no_create" != yes; then 21756 ac_cs_success=: 21757 ac_config_status_args= 21758 test "$silent" = yes && 21759 ac_config_status_args="$ac_config_status_args --quiet" 21760 exec 5>/dev/null 21761 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21762 exec 5>>config.log 21763 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21764 # would make configure fail if this is the last instruction. 21765 $ac_cs_success || as_fn_exit 1 21766fi 21767if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21769printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21770fi 21771 21772 21773