configure revision d422ce2e
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xf86-video-nv 2.1.22. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/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 186test \$(( 1 + 1 )) = 2 || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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/driver/xf86-video-nv/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='xf86-video-nv' 624PACKAGE_TARNAME='xf86-video-nv' 625PACKAGE_VERSION='2.1.22' 626PACKAGE_STRING='xf86-video-nv 2.1.22' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/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 667DRIVER_NAME 668moduledir 669XAA_FALSE 670XAA_TRUE 671PCIACCESS_LIBS 672PCIACCESS_CFLAGS 673HAVE_XEXTPROTO_71_FALSE 674HAVE_XEXTPROTO_71_TRUE 675XEXT_LIBS 676XEXT_CFLAGS 677XORG_LIBS 678XORG_CFLAGS 679LT_SYS_LIBRARY_PATH 680OTOOL64 681OTOOL 682LIPO 683NMEDIT 684DSYMUTIL 685MANIFEST_TOOL 686RANLIB 687ac_ct_AR 688AR 689DLLTOOL 690OBJDUMP 691FILECMD 692LN_S 693NM 694ac_ct_DUMPBIN 695DUMPBIN 696LD 697FGREP 698EGREP 699GREP 700LIBTOOL 701CSCOPE 702ETAGS 703CTAGS 704am__fastdepCC_FALSE 705am__fastdepCC_TRUE 706CCDEPMODE 707am__nodep 708AMDEPBACKSLASH 709AMDEP_FALSE 710AMDEP_TRUE 711am__include 712DEPDIR 713am__untar 714am__tar 715AMTAR 716am__leading_dot 717SET_MAKE 718AWK 719mkdir_p 720MKDIR_P 721INSTALL_STRIP_PROGRAM 722STRIP 723install_sh 724MAKEINFO 725AUTOHEADER 726AUTOMAKE 727AUTOCONF 728ACLOCAL 729VERSION 730PACKAGE 731CYGPATH_W 732am__isrc 733AM_BACKSLASH 734AM_DEFAULT_VERBOSITY 735AM_DEFAULT_V 736AM_V 737MAN_SUBSTS 738XORG_MAN_PAGE 739ADMIN_MAN_DIR 740DRIVER_MAN_DIR 741MISC_MAN_DIR 742FILE_MAN_DIR 743LIB_MAN_DIR 744APP_MAN_DIR 745ADMIN_MAN_SUFFIX 746DRIVER_MAN_SUFFIX 747MISC_MAN_SUFFIX 748FILE_MAN_SUFFIX 749LIB_MAN_SUFFIX 750APP_MAN_SUFFIX 751SED 752host_os 753host_vendor 754host_cpu 755host 756build_os 757build_vendor 758build_cpu 759build 760INSTALL_CMD 761PKG_CONFIG_LIBDIR 762PKG_CONFIG_PATH 763PKG_CONFIG 764CHANGELOG_CMD 765STRICT_CFLAGS 766CWARNFLAGS 767BASE_CFLAGS 768OBJEXT 769EXEEXT 770ac_ct_CC 771CPPFLAGS 772LDFLAGS 773CFLAGS 774CC 775INSTALL_DATA 776INSTALL_SCRIPT 777INSTALL_PROGRAM 778target_alias 779host_alias 780build_alias 781LIBS 782ECHO_T 783ECHO_N 784ECHO_C 785DEFS 786mandir 787localedir 788libdir 789psdir 790pdfdir 791dvidir 792htmldir 793infodir 794docdir 795oldincludedir 796includedir 797runstatedir 798localstatedir 799sharedstatedir 800sysconfdir 801datadir 802datarootdir 803libexecdir 804sbindir 805bindir 806program_transform_name 807prefix 808exec_prefix 809PACKAGE_URL 810PACKAGE_BUGREPORT 811PACKAGE_STRING 812PACKAGE_VERSION 813PACKAGE_TARNAME 814PACKAGE_NAME 815PATH_SEPARATOR 816SHELL 817am__quote' 818ac_subst_files='' 819ac_user_opts=' 820enable_option_checking 821enable_selective_werror 822enable_strict_compilation 823enable_silent_rules 824enable_dependency_tracking 825enable_static 826enable_shared 827with_pic 828enable_fast_install 829with_aix_soname 830with_gnu_ld 831with_sysroot 832enable_libtool_lock 833with_xorg_module_dir 834enable_xaa 835' 836 ac_precious_vars='build_alias 837host_alias 838target_alias 839CC 840CFLAGS 841LDFLAGS 842LIBS 843CPPFLAGS 844PKG_CONFIG 845PKG_CONFIG_PATH 846PKG_CONFIG_LIBDIR 847LT_SYS_LIBRARY_PATH 848XORG_CFLAGS 849XORG_LIBS 850XEXT_CFLAGS 851XEXT_LIBS 852PCIACCESS_CFLAGS 853PCIACCESS_LIBS' 854 855 856# Initialize some variables set by options. 857ac_init_help= 858ac_init_version=false 859ac_unrecognized_opts= 860ac_unrecognized_sep= 861# The variables have the same names as the options, with 862# dashes changed to underlines. 863cache_file=/dev/null 864exec_prefix=NONE 865no_create= 866no_recursion= 867prefix=NONE 868program_prefix=NONE 869program_suffix=NONE 870program_transform_name=s,x,x, 871silent= 872site= 873srcdir= 874verbose= 875x_includes=NONE 876x_libraries=NONE 877 878# Installation directory options. 879# These are left unexpanded so users can "make install exec_prefix=/foo" 880# and all the variables that are supposed to be based on exec_prefix 881# by default will actually change. 882# Use braces instead of parens because sh, perl, etc. also accept them. 883# (The list follows the same order as the GNU Coding Standards.) 884bindir='${exec_prefix}/bin' 885sbindir='${exec_prefix}/sbin' 886libexecdir='${exec_prefix}/libexec' 887datarootdir='${prefix}/share' 888datadir='${datarootdir}' 889sysconfdir='${prefix}/etc' 890sharedstatedir='${prefix}/com' 891localstatedir='${prefix}/var' 892runstatedir='${localstatedir}/run' 893includedir='${prefix}/include' 894oldincludedir='/usr/include' 895docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 896infodir='${datarootdir}/info' 897htmldir='${docdir}' 898dvidir='${docdir}' 899pdfdir='${docdir}' 900psdir='${docdir}' 901libdir='${exec_prefix}/lib' 902localedir='${datarootdir}/locale' 903mandir='${datarootdir}/man' 904 905ac_prev= 906ac_dashdash= 907for ac_option 908do 909 # If the previous option needs an argument, assign it. 910 if test -n "$ac_prev"; then 911 eval $ac_prev=\$ac_option 912 ac_prev= 913 continue 914 fi 915 916 case $ac_option in 917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 918 *=) ac_optarg= ;; 919 *) ac_optarg=yes ;; 920 esac 921 922 case $ac_dashdash$ac_option in 923 --) 924 ac_dashdash=yes ;; 925 926 -bindir | --bindir | --bindi | --bind | --bin | --bi) 927 ac_prev=bindir ;; 928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 929 bindir=$ac_optarg ;; 930 931 -build | --build | --buil | --bui | --bu) 932 ac_prev=build_alias ;; 933 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 934 build_alias=$ac_optarg ;; 935 936 -cache-file | --cache-file | --cache-fil | --cache-fi \ 937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 938 ac_prev=cache_file ;; 939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 941 cache_file=$ac_optarg ;; 942 943 --config-cache | -C) 944 cache_file=config.cache ;; 945 946 -datadir | --datadir | --datadi | --datad) 947 ac_prev=datadir ;; 948 -datadir=* | --datadir=* | --datadi=* | --datad=*) 949 datadir=$ac_optarg ;; 950 951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 952 | --dataroo | --dataro | --datar) 953 ac_prev=datarootdir ;; 954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 956 datarootdir=$ac_optarg ;; 957 958 -disable-* | --disable-*) 959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 960 # Reject names that are not valid shell variable names. 961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 962 as_fn_error $? "invalid feature name: \`$ac_useropt'" 963 ac_useropt_orig=$ac_useropt 964 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 965 case $ac_user_opts in 966 *" 967"enable_$ac_useropt" 968"*) ;; 969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 970 ac_unrecognized_sep=', ';; 971 esac 972 eval enable_$ac_useropt=no ;; 973 974 -docdir | --docdir | --docdi | --doc | --do) 975 ac_prev=docdir ;; 976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 977 docdir=$ac_optarg ;; 978 979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 980 ac_prev=dvidir ;; 981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 982 dvidir=$ac_optarg ;; 983 984 -enable-* | --enable-*) 985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 986 # Reject names that are not valid shell variable names. 987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 988 as_fn_error $? "invalid feature name: \`$ac_useropt'" 989 ac_useropt_orig=$ac_useropt 990 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 991 case $ac_user_opts in 992 *" 993"enable_$ac_useropt" 994"*) ;; 995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 996 ac_unrecognized_sep=', ';; 997 esac 998 eval enable_$ac_useropt=\$ac_optarg ;; 999 1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1002 | --exec | --exe | --ex) 1003 ac_prev=exec_prefix ;; 1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1006 | --exec=* | --exe=* | --ex=*) 1007 exec_prefix=$ac_optarg ;; 1008 1009 -gas | --gas | --ga | --g) 1010 # Obsolete; use --with-gas. 1011 with_gas=yes ;; 1012 1013 -help | --help | --hel | --he | -h) 1014 ac_init_help=long ;; 1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1016 ac_init_help=recursive ;; 1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1018 ac_init_help=short ;; 1019 1020 -host | --host | --hos | --ho) 1021 ac_prev=host_alias ;; 1022 -host=* | --host=* | --hos=* | --ho=*) 1023 host_alias=$ac_optarg ;; 1024 1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1026 ac_prev=htmldir ;; 1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1028 | --ht=*) 1029 htmldir=$ac_optarg ;; 1030 1031 -includedir | --includedir | --includedi | --included | --include \ 1032 | --includ | --inclu | --incl | --inc) 1033 ac_prev=includedir ;; 1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1035 | --includ=* | --inclu=* | --incl=* | --inc=*) 1036 includedir=$ac_optarg ;; 1037 1038 -infodir | --infodir | --infodi | --infod | --info | --inf) 1039 ac_prev=infodir ;; 1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1041 infodir=$ac_optarg ;; 1042 1043 -libdir | --libdir | --libdi | --libd) 1044 ac_prev=libdir ;; 1045 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1046 libdir=$ac_optarg ;; 1047 1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1049 | --libexe | --libex | --libe) 1050 ac_prev=libexecdir ;; 1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1052 | --libexe=* | --libex=* | --libe=*) 1053 libexecdir=$ac_optarg ;; 1054 1055 -localedir | --localedir | --localedi | --localed | --locale) 1056 ac_prev=localedir ;; 1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1058 localedir=$ac_optarg ;; 1059 1060 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1061 | --localstate | --localstat | --localsta | --localst | --locals) 1062 ac_prev=localstatedir ;; 1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1065 localstatedir=$ac_optarg ;; 1066 1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1068 ac_prev=mandir ;; 1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1070 mandir=$ac_optarg ;; 1071 1072 -nfp | --nfp | --nf) 1073 # Obsolete; use --without-fp. 1074 with_fp=no ;; 1075 1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1077 | --no-cr | --no-c | -n) 1078 no_create=yes ;; 1079 1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1082 no_recursion=yes ;; 1083 1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1086 | --oldin | --oldi | --old | --ol | --o) 1087 ac_prev=oldincludedir ;; 1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1091 oldincludedir=$ac_optarg ;; 1092 1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1094 ac_prev=prefix ;; 1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1096 prefix=$ac_optarg ;; 1097 1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1099 | --program-pre | --program-pr | --program-p) 1100 ac_prev=program_prefix ;; 1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1103 program_prefix=$ac_optarg ;; 1104 1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1106 | --program-suf | --program-su | --program-s) 1107 ac_prev=program_suffix ;; 1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1110 program_suffix=$ac_optarg ;; 1111 1112 -program-transform-name | --program-transform-name \ 1113 | --program-transform-nam | --program-transform-na \ 1114 | --program-transform-n | --program-transform- \ 1115 | --program-transform | --program-transfor \ 1116 | --program-transfo | --program-transf \ 1117 | --program-trans | --program-tran \ 1118 | --progr-tra | --program-tr | --program-t) 1119 ac_prev=program_transform_name ;; 1120 -program-transform-name=* | --program-transform-name=* \ 1121 | --program-transform-nam=* | --program-transform-na=* \ 1122 | --program-transform-n=* | --program-transform-=* \ 1123 | --program-transform=* | --program-transfor=* \ 1124 | --program-transfo=* | --program-transf=* \ 1125 | --program-trans=* | --program-tran=* \ 1126 | --progr-tra=* | --program-tr=* | --program-t=*) 1127 program_transform_name=$ac_optarg ;; 1128 1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1130 ac_prev=pdfdir ;; 1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1132 pdfdir=$ac_optarg ;; 1133 1134 -psdir | --psdir | --psdi | --psd | --ps) 1135 ac_prev=psdir ;; 1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1137 psdir=$ac_optarg ;; 1138 1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1140 | -silent | --silent | --silen | --sile | --sil) 1141 silent=yes ;; 1142 1143 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1144 | --runstate | --runstat | --runsta | --runst | --runs \ 1145 | --run | --ru | --r) 1146 ac_prev=runstatedir ;; 1147 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1148 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1149 | --run=* | --ru=* | --r=*) 1150 runstatedir=$ac_optarg ;; 1151 1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1153 ac_prev=sbindir ;; 1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1155 | --sbi=* | --sb=*) 1156 sbindir=$ac_optarg ;; 1157 1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1160 | --sharedst | --shareds | --shared | --share | --shar \ 1161 | --sha | --sh) 1162 ac_prev=sharedstatedir ;; 1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1166 | --sha=* | --sh=*) 1167 sharedstatedir=$ac_optarg ;; 1168 1169 -site | --site | --sit) 1170 ac_prev=site ;; 1171 -site=* | --site=* | --sit=*) 1172 site=$ac_optarg ;; 1173 1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1175 ac_prev=srcdir ;; 1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1177 srcdir=$ac_optarg ;; 1178 1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1180 | --syscon | --sysco | --sysc | --sys | --sy) 1181 ac_prev=sysconfdir ;; 1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1184 sysconfdir=$ac_optarg ;; 1185 1186 -target | --target | --targe | --targ | --tar | --ta | --t) 1187 ac_prev=target_alias ;; 1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1189 target_alias=$ac_optarg ;; 1190 1191 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1192 verbose=yes ;; 1193 1194 -version | --version | --versio | --versi | --vers | -V) 1195 ac_init_version=: ;; 1196 1197 -with-* | --with-*) 1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1199 # Reject names that are not valid shell variable names. 1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1201 as_fn_error $? "invalid package name: \`$ac_useropt'" 1202 ac_useropt_orig=$ac_useropt 1203 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1204 case $ac_user_opts in 1205 *" 1206"with_$ac_useropt" 1207"*) ;; 1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1209 ac_unrecognized_sep=', ';; 1210 esac 1211 eval with_$ac_useropt=\$ac_optarg ;; 1212 1213 -without-* | --without-*) 1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1215 # Reject names that are not valid shell variable names. 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1217 as_fn_error $? "invalid package name: \`$ac_useropt'" 1218 ac_useropt_orig=$ac_useropt 1219 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1220 case $ac_user_opts in 1221 *" 1222"with_$ac_useropt" 1223"*) ;; 1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1225 ac_unrecognized_sep=', ';; 1226 esac 1227 eval with_$ac_useropt=no ;; 1228 1229 --x) 1230 # Obsolete; use --with-x. 1231 with_x=yes ;; 1232 1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1234 | --x-incl | --x-inc | --x-in | --x-i) 1235 ac_prev=x_includes ;; 1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1238 x_includes=$ac_optarg ;; 1239 1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1242 ac_prev=x_libraries ;; 1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1245 x_libraries=$ac_optarg ;; 1246 1247 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1248Try \`$0 --help' for more information" 1249 ;; 1250 1251 *=*) 1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1253 # Reject names that are not valid shell variable names. 1254 case $ac_envvar in #( 1255 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1257 esac 1258 eval $ac_envvar=\$ac_optarg 1259 export $ac_envvar ;; 1260 1261 *) 1262 # FIXME: should be removed in autoconf 3.0. 1263 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1265 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1267 ;; 1268 1269 esac 1270done 1271 1272if test -n "$ac_prev"; then 1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1274 as_fn_error $? "missing argument to $ac_option" 1275fi 1276 1277if test -n "$ac_unrecognized_opts"; then 1278 case $enable_option_checking in 1279 no) ;; 1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1281 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1282 esac 1283fi 1284 1285# Check all directory arguments for consistency. 1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1287 datadir sysconfdir sharedstatedir localstatedir includedir \ 1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1289 libdir localedir mandir runstatedir 1290do 1291 eval ac_val=\$$ac_var 1292 # Remove trailing slashes. 1293 case $ac_val in 1294 */ ) 1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1296 eval $ac_var=\$ac_val;; 1297 esac 1298 # Be sure to have absolute directory names. 1299 case $ac_val in 1300 [\\/$]* | ?:[\\/]* ) continue;; 1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1302 esac 1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1304done 1305 1306# There might be people who depend on the old broken behavior: `$host' 1307# used to hold the argument of --host etc. 1308# FIXME: To remove some day. 1309build=$build_alias 1310host=$host_alias 1311target=$target_alias 1312 1313# FIXME: To remove some day. 1314if test "x$host_alias" != x; then 1315 if test "x$build_alias" = x; then 1316 cross_compiling=maybe 1317 elif test "x$build_alias" != "x$host_alias"; then 1318 cross_compiling=yes 1319 fi 1320fi 1321 1322ac_tool_prefix= 1323test -n "$host_alias" && ac_tool_prefix=$host_alias- 1324 1325test "$silent" = yes && exec 6>/dev/null 1326 1327 1328ac_pwd=`pwd` && test -n "$ac_pwd" && 1329ac_ls_di=`ls -di .` && 1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1331 as_fn_error $? "working directory cannot be determined" 1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1333 as_fn_error $? "pwd does not report name of working directory" 1334 1335 1336# Find the source files, if location was not specified. 1337if test -z "$srcdir"; then 1338 ac_srcdir_defaulted=yes 1339 # Try the directory containing this script, then the parent directory. 1340 ac_confdir=`$as_dirname -- "$as_myself" || 1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1342 X"$as_myself" : 'X\(//\)[^/]' \| \ 1343 X"$as_myself" : 'X\(//\)$' \| \ 1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1345printf "%s\n" X"$as_myself" | 1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\/\)[^/].*/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\/\)$/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\).*/{ 1359 s//\1/ 1360 q 1361 } 1362 s/.*/./; q'` 1363 srcdir=$ac_confdir 1364 if test ! -r "$srcdir/$ac_unique_file"; then 1365 srcdir=.. 1366 fi 1367else 1368 ac_srcdir_defaulted=no 1369fi 1370if test ! -r "$srcdir/$ac_unique_file"; then 1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1373fi 1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1375ac_abs_confdir=`( 1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1377 pwd)` 1378# When building in place, set srcdir=. 1379if test "$ac_abs_confdir" = "$ac_pwd"; then 1380 srcdir=. 1381fi 1382# Remove unnecessary trailing slashes from srcdir. 1383# Double slashes in file names in object file debugging info 1384# mess up M-x gdb in Emacs. 1385case $srcdir in 1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1387esac 1388for ac_var in $ac_precious_vars; do 1389 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_env_${ac_var}_value=\$${ac_var} 1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1392 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1393done 1394 1395# 1396# Report the --help message. 1397# 1398if test "$ac_init_help" = "long"; then 1399 # Omit some internal or obsolete options to make the list less imposing. 1400 # This message is too long to be a string in the A/UX 3.1 sh. 1401 cat <<_ACEOF 1402\`configure' configures xf86-video-nv 2.1.22 to adapt to many kinds of systems. 1403 1404Usage: $0 [OPTION]... [VAR=VALUE]... 1405 1406To assign environment variables (e.g., CC, CFLAGS...), specify them as 1407VAR=VALUE. See below for descriptions of some of the useful variables. 1408 1409Defaults for the options are specified in brackets. 1410 1411Configuration: 1412 -h, --help display this help and exit 1413 --help=short display options specific to this package 1414 --help=recursive display the short help of all the included packages 1415 -V, --version display version information and exit 1416 -q, --quiet, --silent do not print \`checking ...' messages 1417 --cache-file=FILE cache test results in FILE [disabled] 1418 -C, --config-cache alias for \`--cache-file=config.cache' 1419 -n, --no-create do not create output files 1420 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1421 1422Installation directories: 1423 --prefix=PREFIX install architecture-independent files in PREFIX 1424 [$ac_default_prefix] 1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1426 [PREFIX] 1427 1428By default, \`make install' will install all the files in 1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1430an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1431for instance \`--prefix=\$HOME'. 1432 1433For better control, use the options below. 1434 1435Fine tuning of the installation directories: 1436 --bindir=DIR user executables [EPREFIX/bin] 1437 --sbindir=DIR system admin executables [EPREFIX/sbin] 1438 --libexecdir=DIR program executables [EPREFIX/libexec] 1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1442 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1443 --libdir=DIR object code libraries [EPREFIX/lib] 1444 --includedir=DIR C header files [PREFIX/include] 1445 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1448 --infodir=DIR info documentation [DATAROOTDIR/info] 1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1450 --mandir=DIR man documentation [DATAROOTDIR/man] 1451 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-nv] 1452 --htmldir=DIR html documentation [DOCDIR] 1453 --dvidir=DIR dvi documentation [DOCDIR] 1454 --pdfdir=DIR pdf documentation [DOCDIR] 1455 --psdir=DIR ps documentation [DOCDIR] 1456_ACEOF 1457 1458 cat <<\_ACEOF 1459 1460Program names: 1461 --program-prefix=C prepend C to installed program names 1462 --program-suffix=SUFFIX append SUFFIX to installed program names 1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1464 1465System types: 1466 --build=BUILD configure for building on BUILD [guessed] 1467 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1468_ACEOF 1469fi 1470 1471if test -n "$ac_init_help"; then 1472 case $ac_init_help in 1473 short | recursive ) echo "Configuration of xf86-video-nv 2.1.22:";; 1474 esac 1475 cat <<\_ACEOF 1476 1477Optional Features: 1478 --disable-option-checking ignore unrecognized --enable/--with options 1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1481 --disable-selective-werror 1482 Turn off selective compiler errors. (default: 1483 enabled) 1484 --enable-strict-compilation 1485 Enable all warnings from compiler and make them 1486 errors (default: disabled) 1487 --enable-silent-rules less verbose build output (undo: "make V=1") 1488 --disable-silent-rules verbose build output (undo: "make V=0") 1489 --enable-dependency-tracking 1490 do not reject slow dependency extractors 1491 --disable-dependency-tracking 1492 speeds up one-time build 1493 --enable-static[=PKGS] build static libraries [default=no] 1494 --enable-shared[=PKGS] build shared libraries [default=yes] 1495 --enable-fast-install[=PKGS] 1496 optimize for fast installation [default=yes] 1497 --disable-libtool-lock avoid locking (might break parallel builds) 1498 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1499 [default=auto] 1500 1501Optional Packages: 1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1504 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1505 both] 1506 --with-aix-soname=aix|svr4|both 1507 shared library versioning (aka "SONAME") variant to 1508 provide on AIX, [default=aix]. 1509 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1510 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1511 compiler's sysroot if not specified). 1512 --with-xorg-module-dir=DIR 1513 Default xorg module directory 1514 [[default=$libdir/xorg/modules]] 1515 1516Some influential environment variables: 1517 CC C compiler command 1518 CFLAGS C compiler flags 1519 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1520 nonstandard directory <lib dir> 1521 LIBS libraries to pass to the linker, e.g. -l<library> 1522 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1523 you have headers in a nonstandard directory <include dir> 1524 PKG_CONFIG path to pkg-config utility 1525 PKG_CONFIG_PATH 1526 directories to add to pkg-config's search path 1527 PKG_CONFIG_LIBDIR 1528 path overriding pkg-config's built-in search path 1529 LT_SYS_LIBRARY_PATH 1530 User-defined run-time library search path. 1531 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1532 XORG_LIBS linker flags for XORG, overriding pkg-config 1533 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1534 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1535 PCIACCESS_CFLAGS 1536 C compiler flags for PCIACCESS, overriding pkg-config 1537 PCIACCESS_LIBS 1538 linker flags for PCIACCESS, overriding pkg-config 1539 1540Use these variables to override the choices made by `configure' or to help 1541it to find libraries and programs with nonstandard names/locations. 1542 1543Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/issues>. 1544_ACEOF 1545ac_status=$? 1546fi 1547 1548if test "$ac_init_help" = "recursive"; then 1549 # If there are subdirs, report their specific --help. 1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1551 test -d "$ac_dir" || 1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1553 continue 1554 ac_builddir=. 1555 1556case "$ac_dir" in 1557.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1558*) 1559 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1560 # A ".." for each directory in $ac_dir_suffix. 1561 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1562 case $ac_top_builddir_sub in 1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1565 esac ;; 1566esac 1567ac_abs_top_builddir=$ac_pwd 1568ac_abs_builddir=$ac_pwd$ac_dir_suffix 1569# for backward compatibility: 1570ac_top_builddir=$ac_top_build_prefix 1571 1572case $srcdir in 1573 .) # We are building in place. 1574 ac_srcdir=. 1575 ac_top_srcdir=$ac_top_builddir_sub 1576 ac_abs_top_srcdir=$ac_pwd ;; 1577 [\\/]* | ?:[\\/]* ) # Absolute name. 1578 ac_srcdir=$srcdir$ac_dir_suffix; 1579 ac_top_srcdir=$srcdir 1580 ac_abs_top_srcdir=$srcdir ;; 1581 *) # Relative name. 1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1583 ac_top_srcdir=$ac_top_build_prefix$srcdir 1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1585esac 1586ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1587 1588 cd "$ac_dir" || { ac_status=$?; continue; } 1589 # Check for configure.gnu first; this name is used for a wrapper for 1590 # Metaconfig's "Configure" on case-insensitive file systems. 1591 if test -f "$ac_srcdir/configure.gnu"; then 1592 echo && 1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1594 elif test -f "$ac_srcdir/configure"; then 1595 echo && 1596 $SHELL "$ac_srcdir/configure" --help=recursive 1597 else 1598 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1599 fi || ac_status=$? 1600 cd "$ac_pwd" || { ac_status=$?; break; } 1601 done 1602fi 1603 1604test -n "$ac_init_help" && exit $ac_status 1605if $ac_init_version; then 1606 cat <<\_ACEOF 1607xf86-video-nv configure 2.1.22 1608generated by GNU Autoconf 2.71 1609 1610Copyright (C) 2021 Free Software Foundation, Inc. 1611This configure script is free software; the Free Software Foundation 1612gives unlimited permission to copy, distribute and modify it. 1613_ACEOF 1614 exit 1615fi 1616 1617## ------------------------ ## 1618## Autoconf initialization. ## 1619## ------------------------ ## 1620 1621# ac_fn_c_try_compile LINENO 1622# -------------------------- 1623# Try to compile conftest.$ac_ext, and return whether this succeeded. 1624ac_fn_c_try_compile () 1625{ 1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1627 rm -f conftest.$ac_objext conftest.beam 1628 if { { ac_try="$ac_compile" 1629case "(($ac_try" in 1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1631 *) ac_try_echo=$ac_try;; 1632esac 1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1634printf "%s\n" "$ac_try_echo"; } >&5 1635 (eval "$ac_compile") 2>conftest.err 1636 ac_status=$? 1637 if test -s conftest.err; then 1638 grep -v '^ *+' conftest.err >conftest.er1 1639 cat conftest.er1 >&5 1640 mv -f conftest.er1 conftest.err 1641 fi 1642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1643 test $ac_status = 0; } && { 1644 test -z "$ac_c_werror_flag" || 1645 test ! -s conftest.err 1646 } && test -s conftest.$ac_objext 1647then : 1648 ac_retval=0 1649else $as_nop 1650 printf "%s\n" "$as_me: failed program was:" >&5 1651sed 's/^/| /' conftest.$ac_ext >&5 1652 1653 ac_retval=1 1654fi 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 as_fn_set_status $ac_retval 1657 1658} # ac_fn_c_try_compile 1659 1660# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1661# ------------------------------------------------------------------ 1662# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1663# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1664ac_fn_check_decl () 1665{ 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1667 as_decl_name=`echo $2|sed 's/ *(.*//'` 1668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1669printf %s "checking whether $as_decl_name is declared... " >&6; } 1670if eval test \${$3+y} 1671then : 1672 printf %s "(cached) " >&6 1673else $as_nop 1674 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1675 eval ac_save_FLAGS=\$$6 1676 as_fn_append $6 " $5" 1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1678/* end confdefs.h. */ 1679$4 1680int 1681main (void) 1682{ 1683#ifndef $as_decl_name 1684#ifdef __cplusplus 1685 (void) $as_decl_use; 1686#else 1687 (void) $as_decl_name; 1688#endif 1689#endif 1690 1691 ; 1692 return 0; 1693} 1694_ACEOF 1695if ac_fn_c_try_compile "$LINENO" 1696then : 1697 eval "$3=yes" 1698else $as_nop 1699 eval "$3=no" 1700fi 1701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1702 eval $6=\$ac_save_FLAGS 1703 1704fi 1705eval ac_res=\$$3 1706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1707printf "%s\n" "$ac_res" >&6; } 1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1709 1710} # ac_fn_check_decl 1711 1712# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1713# ------------------------------------------------------- 1714# Tests whether HEADER exists and can be compiled using the include files in 1715# INCLUDES, setting the cache variable VAR accordingly. 1716ac_fn_c_check_header_compile () 1717{ 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1720printf %s "checking for $2... " >&6; } 1721if eval test \${$3+y} 1722then : 1723 printf %s "(cached) " >&6 1724else $as_nop 1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1726/* end confdefs.h. */ 1727$4 1728#include <$2> 1729_ACEOF 1730if ac_fn_c_try_compile "$LINENO" 1731then : 1732 eval "$3=yes" 1733else $as_nop 1734 eval "$3=no" 1735fi 1736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1737fi 1738eval ac_res=\$$3 1739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1740printf "%s\n" "$ac_res" >&6; } 1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1742 1743} # ac_fn_c_check_header_compile 1744 1745# ac_fn_c_try_link LINENO 1746# ----------------------- 1747# Try to link conftest.$ac_ext, and return whether this succeeded. 1748ac_fn_c_try_link () 1749{ 1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1751 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1752 if { { ac_try="$ac_link" 1753case "(($ac_try" in 1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1755 *) ac_try_echo=$ac_try;; 1756esac 1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1758printf "%s\n" "$ac_try_echo"; } >&5 1759 (eval "$ac_link") 2>conftest.err 1760 ac_status=$? 1761 if test -s conftest.err; then 1762 grep -v '^ *+' conftest.err >conftest.er1 1763 cat conftest.er1 >&5 1764 mv -f conftest.er1 conftest.err 1765 fi 1766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1767 test $ac_status = 0; } && { 1768 test -z "$ac_c_werror_flag" || 1769 test ! -s conftest.err 1770 } && test -s conftest$ac_exeext && { 1771 test "$cross_compiling" = yes || 1772 test -x conftest$ac_exeext 1773 } 1774then : 1775 ac_retval=0 1776else $as_nop 1777 printf "%s\n" "$as_me: failed program was:" >&5 1778sed 's/^/| /' conftest.$ac_ext >&5 1779 1780 ac_retval=1 1781fi 1782 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1783 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1784 # interfere with the next link command; also delete a directory that is 1785 # left behind by Apple's compiler. We do this before executing the actions. 1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1788 as_fn_set_status $ac_retval 1789 1790} # ac_fn_c_try_link 1791 1792# ac_fn_c_check_func LINENO FUNC VAR 1793# ---------------------------------- 1794# Tests whether FUNC exists, setting the cache variable VAR accordingly 1795ac_fn_c_check_func () 1796{ 1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1799printf %s "checking for $2... " >&6; } 1800if eval test \${$3+y} 1801then : 1802 printf %s "(cached) " >&6 1803else $as_nop 1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1805/* end confdefs.h. */ 1806/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1807 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1808#define $2 innocuous_$2 1809 1810/* System header to define __stub macros and hopefully few prototypes, 1811 which can conflict with char $2 (); below. */ 1812 1813#include <limits.h> 1814#undef $2 1815 1816/* Override any GCC internal prototype to avoid an error. 1817 Use char because int might match the return type of a GCC 1818 builtin and then its argument prototype would still apply. */ 1819#ifdef __cplusplus 1820extern "C" 1821#endif 1822char $2 (); 1823/* The GNU C library defines this for functions which it implements 1824 to always fail with ENOSYS. Some functions are actually named 1825 something starting with __ and the normal name is an alias. */ 1826#if defined __stub_$2 || defined __stub___$2 1827choke me 1828#endif 1829 1830int 1831main (void) 1832{ 1833return $2 (); 1834 ; 1835 return 0; 1836} 1837_ACEOF 1838if ac_fn_c_try_link "$LINENO" 1839then : 1840 eval "$3=yes" 1841else $as_nop 1842 eval "$3=no" 1843fi 1844rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1845 conftest$ac_exeext conftest.$ac_ext 1846fi 1847eval ac_res=\$$3 1848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1849printf "%s\n" "$ac_res" >&6; } 1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1851 1852} # ac_fn_c_check_func 1853ac_configure_args_raw= 1854for ac_arg 1855do 1856 case $ac_arg in 1857 *\'*) 1858 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1859 esac 1860 as_fn_append ac_configure_args_raw " '$ac_arg'" 1861done 1862 1863case $ac_configure_args_raw in 1864 *$as_nl*) 1865 ac_safe_unquote= ;; 1866 *) 1867 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1868 ac_unsafe_a="$ac_unsafe_z#~" 1869 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1870 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1871esac 1872 1873cat >config.log <<_ACEOF 1874This file contains any messages produced by compilers while 1875running configure, to aid debugging if configure makes a mistake. 1876 1877It was created by xf86-video-nv $as_me 2.1.22, which was 1878generated by GNU Autoconf 2.71. Invocation command line was 1879 1880 $ $0$ac_configure_args_raw 1881 1882_ACEOF 1883exec 5>>config.log 1884{ 1885cat <<_ASUNAME 1886## --------- ## 1887## Platform. ## 1888## --------- ## 1889 1890hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1891uname -m = `(uname -m) 2>/dev/null || echo unknown` 1892uname -r = `(uname -r) 2>/dev/null || echo unknown` 1893uname -s = `(uname -s) 2>/dev/null || echo unknown` 1894uname -v = `(uname -v) 2>/dev/null || echo unknown` 1895 1896/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1897/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1898 1899/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1900/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1901/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1902/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1903/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1904/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1905/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1906 1907_ASUNAME 1908 1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1910for as_dir in $PATH 1911do 1912 IFS=$as_save_IFS 1913 case $as_dir in #((( 1914 '') as_dir=./ ;; 1915 */) ;; 1916 *) as_dir=$as_dir/ ;; 1917 esac 1918 printf "%s\n" "PATH: $as_dir" 1919 done 1920IFS=$as_save_IFS 1921 1922} >&5 1923 1924cat >&5 <<_ACEOF 1925 1926 1927## ----------- ## 1928## Core tests. ## 1929## ----------- ## 1930 1931_ACEOF 1932 1933 1934# Keep a trace of the command line. 1935# Strip out --no-create and --no-recursion so they do not pile up. 1936# Strip out --silent because we don't want to record it for future runs. 1937# Also quote any args containing shell meta-characters. 1938# Make two passes to allow for proper duplicate-argument suppression. 1939ac_configure_args= 1940ac_configure_args0= 1941ac_configure_args1= 1942ac_must_keep_next=false 1943for ac_pass in 1 2 1944do 1945 for ac_arg 1946 do 1947 case $ac_arg in 1948 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1950 | -silent | --silent | --silen | --sile | --sil) 1951 continue ;; 1952 *\'*) 1953 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1954 esac 1955 case $ac_pass in 1956 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1957 2) 1958 as_fn_append ac_configure_args1 " '$ac_arg'" 1959 if test $ac_must_keep_next = true; then 1960 ac_must_keep_next=false # Got value, back to normal. 1961 else 1962 case $ac_arg in 1963 *=* | --config-cache | -C | -disable-* | --disable-* \ 1964 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1965 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1966 | -with-* | --with-* | -without-* | --without-* | --x) 1967 case "$ac_configure_args0 " in 1968 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1969 esac 1970 ;; 1971 -* ) ac_must_keep_next=true ;; 1972 esac 1973 fi 1974 as_fn_append ac_configure_args " '$ac_arg'" 1975 ;; 1976 esac 1977 done 1978done 1979{ ac_configure_args0=; unset ac_configure_args0;} 1980{ ac_configure_args1=; unset ac_configure_args1;} 1981 1982# When interrupted or exit'd, cleanup temporary files, and complete 1983# config.log. We remove comments because anyway the quotes in there 1984# would cause problems or look ugly. 1985# WARNING: Use '\'' to represent an apostrophe within the trap. 1986# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1987trap 'exit_status=$? 1988 # Sanitize IFS. 1989 IFS=" "" $as_nl" 1990 # Save into config.log some information that might help in debugging. 1991 { 1992 echo 1993 1994 printf "%s\n" "## ---------------- ## 1995## Cache variables. ## 1996## ---------------- ##" 1997 echo 1998 # The following way of writing the cache mishandles newlines in values, 1999( 2000 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2001 eval ac_val=\$$ac_var 2002 case $ac_val in #( 2003 *${as_nl}*) 2004 case $ac_var in #( 2005 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2006printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2007 esac 2008 case $ac_var in #( 2009 _ | IFS | as_nl) ;; #( 2010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2011 *) { eval $ac_var=; unset $ac_var;} ;; 2012 esac ;; 2013 esac 2014 done 2015 (set) 2>&1 | 2016 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2017 *${as_nl}ac_space=\ *) 2018 sed -n \ 2019 "s/'\''/'\''\\\\'\'''\''/g; 2020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2021 ;; #( 2022 *) 2023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2024 ;; 2025 esac | 2026 sort 2027) 2028 echo 2029 2030 printf "%s\n" "## ----------------- ## 2031## Output variables. ## 2032## ----------------- ##" 2033 echo 2034 for ac_var in $ac_subst_vars 2035 do 2036 eval ac_val=\$$ac_var 2037 case $ac_val in 2038 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2039 esac 2040 printf "%s\n" "$ac_var='\''$ac_val'\''" 2041 done | sort 2042 echo 2043 2044 if test -n "$ac_subst_files"; then 2045 printf "%s\n" "## ------------------- ## 2046## File substitutions. ## 2047## ------------------- ##" 2048 echo 2049 for ac_var in $ac_subst_files 2050 do 2051 eval ac_val=\$$ac_var 2052 case $ac_val in 2053 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2054 esac 2055 printf "%s\n" "$ac_var='\''$ac_val'\''" 2056 done | sort 2057 echo 2058 fi 2059 2060 if test -s confdefs.h; then 2061 printf "%s\n" "## ----------- ## 2062## confdefs.h. ## 2063## ----------- ##" 2064 echo 2065 cat confdefs.h 2066 echo 2067 fi 2068 test "$ac_signal" != 0 && 2069 printf "%s\n" "$as_me: caught signal $ac_signal" 2070 printf "%s\n" "$as_me: exit $exit_status" 2071 } >&5 2072 rm -f core *.core core.conftest.* && 2073 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2074 exit $exit_status 2075' 0 2076for ac_signal in 1 2 13 15; do 2077 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2078done 2079ac_signal=0 2080 2081# confdefs.h avoids OS command line length limits that DEFS can exceed. 2082rm -f -r conftest* confdefs.h 2083 2084printf "%s\n" "/* confdefs.h */" > confdefs.h 2085 2086# Predefined preprocessor variables. 2087 2088printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2089 2090printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2091 2092printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2093 2094printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2095 2096printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2097 2098printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2099 2100 2101# Let the site file select an alternate cache file if it wants to. 2102# Prefer an explicitly selected file to automatically selected ones. 2103if test -n "$CONFIG_SITE"; then 2104 ac_site_files="$CONFIG_SITE" 2105elif test "x$prefix" != xNONE; then 2106 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2107else 2108 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2109fi 2110 2111for ac_site_file in $ac_site_files 2112do 2113 case $ac_site_file in #( 2114 */*) : 2115 ;; #( 2116 *) : 2117 ac_site_file=./$ac_site_file ;; 2118esac 2119 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2121printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2122 sed 's/^/| /' "$ac_site_file" >&5 2123 . "$ac_site_file" \ 2124 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2125printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2126as_fn_error $? "failed to load site script $ac_site_file 2127See \`config.log' for more details" "$LINENO" 5; } 2128 fi 2129done 2130 2131if test -r "$cache_file"; then 2132 # Some versions of bash will fail to source /dev/null (special files 2133 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2134 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2136printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2137 case $cache_file in 2138 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2139 *) . "./$cache_file";; 2140 esac 2141 fi 2142else 2143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2144printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2145 >$cache_file 2146fi 2147 2148# Test code for whether the C compiler supports C89 (global declarations) 2149ac_c_conftest_c89_globals=' 2150/* Does the compiler advertise C89 conformance? 2151 Do not test the value of __STDC__, because some compilers set it to 0 2152 while being otherwise adequately conformant. */ 2153#if !defined __STDC__ 2154# error "Compiler does not advertise C89 conformance" 2155#endif 2156 2157#include <stddef.h> 2158#include <stdarg.h> 2159struct stat; 2160/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2161struct buf { int x; }; 2162struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2163static char *e (p, i) 2164 char **p; 2165 int i; 2166{ 2167 return p[i]; 2168} 2169static char *f (char * (*g) (char **, int), char **p, ...) 2170{ 2171 char *s; 2172 va_list v; 2173 va_start (v,p); 2174 s = g (p, va_arg (v,int)); 2175 va_end (v); 2176 return s; 2177} 2178 2179/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2180 function prototypes and stuff, but not \xHH hex character constants. 2181 These do not provoke an error unfortunately, instead are silently treated 2182 as an "x". The following induces an error, until -std is added to get 2183 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2184 array size at least. It is necessary to write \x00 == 0 to get something 2185 that is true only with -std. */ 2186int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2187 2188/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2189 inside strings and character constants. */ 2190#define FOO(x) '\''x'\'' 2191int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2192 2193int test (int i, double x); 2194struct s1 {int (*f) (int a);}; 2195struct s2 {int (*f) (double a);}; 2196int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2197 int, int);' 2198 2199# Test code for whether the C compiler supports C89 (body of main). 2200ac_c_conftest_c89_main=' 2201ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2202' 2203 2204# Test code for whether the C compiler supports C99 (global declarations) 2205ac_c_conftest_c99_globals=' 2206// Does the compiler advertise C99 conformance? 2207#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2208# error "Compiler does not advertise C99 conformance" 2209#endif 2210 2211#include <stdbool.h> 2212extern int puts (const char *); 2213extern int printf (const char *, ...); 2214extern int dprintf (int, const char *, ...); 2215extern void *malloc (size_t); 2216 2217// Check varargs macros. These examples are taken from C99 6.10.3.5. 2218// dprintf is used instead of fprintf to avoid needing to declare 2219// FILE and stderr. 2220#define debug(...) dprintf (2, __VA_ARGS__) 2221#define showlist(...) puts (#__VA_ARGS__) 2222#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2223static void 2224test_varargs_macros (void) 2225{ 2226 int x = 1234; 2227 int y = 5678; 2228 debug ("Flag"); 2229 debug ("X = %d\n", x); 2230 showlist (The first, second, and third items.); 2231 report (x>y, "x is %d but y is %d", x, y); 2232} 2233 2234// Check long long types. 2235#define BIG64 18446744073709551615ull 2236#define BIG32 4294967295ul 2237#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2238#if !BIG_OK 2239 #error "your preprocessor is broken" 2240#endif 2241#if BIG_OK 2242#else 2243 #error "your preprocessor is broken" 2244#endif 2245static long long int bignum = -9223372036854775807LL; 2246static unsigned long long int ubignum = BIG64; 2247 2248struct incomplete_array 2249{ 2250 int datasize; 2251 double data[]; 2252}; 2253 2254struct named_init { 2255 int number; 2256 const wchar_t *name; 2257 double average; 2258}; 2259 2260typedef const char *ccp; 2261 2262static inline int 2263test_restrict (ccp restrict text) 2264{ 2265 // See if C++-style comments work. 2266 // Iterate through items via the restricted pointer. 2267 // Also check for declarations in for loops. 2268 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2269 continue; 2270 return 0; 2271} 2272 2273// Check varargs and va_copy. 2274static bool 2275test_varargs (const char *format, ...) 2276{ 2277 va_list args; 2278 va_start (args, format); 2279 va_list args_copy; 2280 va_copy (args_copy, args); 2281 2282 const char *str = ""; 2283 int number = 0; 2284 float fnumber = 0; 2285 2286 while (*format) 2287 { 2288 switch (*format++) 2289 { 2290 case '\''s'\'': // string 2291 str = va_arg (args_copy, const char *); 2292 break; 2293 case '\''d'\'': // int 2294 number = va_arg (args_copy, int); 2295 break; 2296 case '\''f'\'': // float 2297 fnumber = va_arg (args_copy, double); 2298 break; 2299 default: 2300 break; 2301 } 2302 } 2303 va_end (args_copy); 2304 va_end (args); 2305 2306 return *str && number && fnumber; 2307} 2308' 2309 2310# Test code for whether the C compiler supports C99 (body of main). 2311ac_c_conftest_c99_main=' 2312 // Check bool. 2313 _Bool success = false; 2314 success |= (argc != 0); 2315 2316 // Check restrict. 2317 if (test_restrict ("String literal") == 0) 2318 success = true; 2319 char *restrict newvar = "Another string"; 2320 2321 // Check varargs. 2322 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2323 test_varargs_macros (); 2324 2325 // Check flexible array members. 2326 struct incomplete_array *ia = 2327 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2328 ia->datasize = 10; 2329 for (int i = 0; i < ia->datasize; ++i) 2330 ia->data[i] = i * 1.234; 2331 2332 // Check named initializers. 2333 struct named_init ni = { 2334 .number = 34, 2335 .name = L"Test wide string", 2336 .average = 543.34343, 2337 }; 2338 2339 ni.number = 58; 2340 2341 int dynamic_array[ni.number]; 2342 dynamic_array[0] = argv[0][0]; 2343 dynamic_array[ni.number - 1] = 543; 2344 2345 // work around unused variable warnings 2346 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2347 || dynamic_array[ni.number - 1] != 543); 2348' 2349 2350# Test code for whether the C compiler supports C11 (global declarations) 2351ac_c_conftest_c11_globals=' 2352// Does the compiler advertise C11 conformance? 2353#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2354# error "Compiler does not advertise C11 conformance" 2355#endif 2356 2357// Check _Alignas. 2358char _Alignas (double) aligned_as_double; 2359char _Alignas (0) no_special_alignment; 2360extern char aligned_as_int; 2361char _Alignas (0) _Alignas (int) aligned_as_int; 2362 2363// Check _Alignof. 2364enum 2365{ 2366 int_alignment = _Alignof (int), 2367 int_array_alignment = _Alignof (int[100]), 2368 char_alignment = _Alignof (char) 2369}; 2370_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2371 2372// Check _Noreturn. 2373int _Noreturn does_not_return (void) { for (;;) continue; } 2374 2375// Check _Static_assert. 2376struct test_static_assert 2377{ 2378 int x; 2379 _Static_assert (sizeof (int) <= sizeof (long int), 2380 "_Static_assert does not work in struct"); 2381 long int y; 2382}; 2383 2384// Check UTF-8 literals. 2385#define u8 syntax error! 2386char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2387 2388// Check duplicate typedefs. 2389typedef long *long_ptr; 2390typedef long int *long_ptr; 2391typedef long_ptr long_ptr; 2392 2393// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2394struct anonymous 2395{ 2396 union { 2397 struct { int i; int j; }; 2398 struct { int k; long int l; } w; 2399 }; 2400 int m; 2401} v1; 2402' 2403 2404# Test code for whether the C compiler supports C11 (body of main). 2405ac_c_conftest_c11_main=' 2406 _Static_assert ((offsetof (struct anonymous, i) 2407 == offsetof (struct anonymous, w.k)), 2408 "Anonymous union alignment botch"); 2409 v1.i = 2; 2410 v1.w.k = 5; 2411 ok |= v1.i != 5; 2412' 2413 2414# Test code for whether the C compiler supports C11 (complete). 2415ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2416${ac_c_conftest_c99_globals} 2417${ac_c_conftest_c11_globals} 2418 2419int 2420main (int argc, char **argv) 2421{ 2422 int ok = 0; 2423 ${ac_c_conftest_c89_main} 2424 ${ac_c_conftest_c99_main} 2425 ${ac_c_conftest_c11_main} 2426 return ok; 2427} 2428" 2429 2430# Test code for whether the C compiler supports C99 (complete). 2431ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2432${ac_c_conftest_c99_globals} 2433 2434int 2435main (int argc, char **argv) 2436{ 2437 int ok = 0; 2438 ${ac_c_conftest_c89_main} 2439 ${ac_c_conftest_c99_main} 2440 return ok; 2441} 2442" 2443 2444# Test code for whether the C compiler supports C89 (complete). 2445ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2446 2447int 2448main (int argc, char **argv) 2449{ 2450 int ok = 0; 2451 ${ac_c_conftest_c89_main} 2452 return ok; 2453} 2454" 2455 2456as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2457as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2458as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2459as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2460as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2461as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2462as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2463as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2464as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2465 2466# Auxiliary files required by this configure script. 2467ac_aux_files="ltmain.sh missing config.guess config.sub compile install-sh" 2468 2469# Locations in which to look for auxiliary files. 2470ac_aux_dir_candidates="${srcdir}/." 2471 2472# Search for a directory containing all of the required auxiliary files, 2473# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2474# If we don't find one directory that contains all the files we need, 2475# we report the set of missing files from the *first* directory in 2476# $ac_aux_dir_candidates and give up. 2477ac_missing_aux_files="" 2478ac_first_candidate=: 2479printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2481as_found=false 2482for as_dir in $ac_aux_dir_candidates 2483do 2484 IFS=$as_save_IFS 2485 case $as_dir in #((( 2486 '') as_dir=./ ;; 2487 */) ;; 2488 *) as_dir=$as_dir/ ;; 2489 esac 2490 as_found=: 2491 2492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2493 ac_aux_dir_found=yes 2494 ac_install_sh= 2495 for ac_aux in $ac_aux_files 2496 do 2497 # As a special case, if "install-sh" is required, that requirement 2498 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2499 # and $ac_install_sh is set appropriately for whichever one is found. 2500 if test x"$ac_aux" = x"install-sh" 2501 then 2502 if test -f "${as_dir}install-sh"; then 2503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2504 ac_install_sh="${as_dir}install-sh -c" 2505 elif test -f "${as_dir}install.sh"; then 2506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2507 ac_install_sh="${as_dir}install.sh -c" 2508 elif test -f "${as_dir}shtool"; then 2509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2510 ac_install_sh="${as_dir}shtool install -c" 2511 else 2512 ac_aux_dir_found=no 2513 if $ac_first_candidate; then 2514 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2515 else 2516 break 2517 fi 2518 fi 2519 else 2520 if test -f "${as_dir}${ac_aux}"; then 2521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2522 else 2523 ac_aux_dir_found=no 2524 if $ac_first_candidate; then 2525 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2526 else 2527 break 2528 fi 2529 fi 2530 fi 2531 done 2532 if test "$ac_aux_dir_found" = yes; then 2533 ac_aux_dir="$as_dir" 2534 break 2535 fi 2536 ac_first_candidate=false 2537 2538 as_found=false 2539done 2540IFS=$as_save_IFS 2541if $as_found 2542then : 2543 2544else $as_nop 2545 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2546fi 2547 2548 2549# These three variables are undocumented and unsupported, 2550# and are intended to be withdrawn in a future Autoconf release. 2551# They can cause serious problems if a builder's source tree is in a directory 2552# whose full name contains unusual characters. 2553if test -f "${ac_aux_dir}config.guess"; then 2554 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2555fi 2556if test -f "${ac_aux_dir}config.sub"; then 2557 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2558fi 2559if test -f "$ac_aux_dir/configure"; then 2560 ac_configure="$SHELL ${ac_aux_dir}configure" 2561fi 2562 2563# Check that the precious variables saved in the cache have kept the same 2564# value. 2565ac_cache_corrupted=false 2566for ac_var in $ac_precious_vars; do 2567 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2568 eval ac_new_set=\$ac_env_${ac_var}_set 2569 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2570 eval ac_new_val=\$ac_env_${ac_var}_value 2571 case $ac_old_set,$ac_new_set in 2572 set,) 2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2574printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2575 ac_cache_corrupted=: ;; 2576 ,set) 2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2578printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2579 ac_cache_corrupted=: ;; 2580 ,);; 2581 *) 2582 if test "x$ac_old_val" != "x$ac_new_val"; then 2583 # differences in whitespace do not lead to failure. 2584 ac_old_val_w=`echo x $ac_old_val` 2585 ac_new_val_w=`echo x $ac_new_val` 2586 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2588printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2589 ac_cache_corrupted=: 2590 else 2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2592printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2593 eval $ac_var=\$ac_old_val 2594 fi 2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2596printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2598printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2599 fi;; 2600 esac 2601 # Pass precious variables to config.status. 2602 if test "$ac_new_set" = set; then 2603 case $ac_new_val in 2604 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2605 *) ac_arg=$ac_var=$ac_new_val ;; 2606 esac 2607 case " $ac_configure_args " in 2608 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2609 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2610 esac 2611 fi 2612done 2613if $ac_cache_corrupted; then 2614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2615printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2617printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2618 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2619 and start over" "$LINENO" 5 2620fi 2621## -------------------- ## 2622## Main body of script. ## 2623## -------------------- ## 2624 2625ac_ext=c 2626ac_cpp='$CPP $CPPFLAGS' 2627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2629ac_compiler_gnu=$ac_cv_c_compiler_gnu 2630 2631 2632 2633ac_config_headers="$ac_config_headers config.h" 2634 2635 2636# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 # Find a good install program. We prefer a C program (faster), 2651# so one script is as good as another. But avoid the broken or 2652# incompatible versions: 2653# SysV /etc/install, /usr/sbin/install 2654# SunOS /usr/etc/install 2655# IRIX /sbin/install 2656# AIX /bin/install 2657# AmigaOS /C/install, which installs bootblocks on floppy discs 2658# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2659# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2660# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2661# OS/2's system install, which has a completely different semantic 2662# ./install, which can be erroneously created by make from ./install.sh. 2663# Reject install programs that cannot install multiple files. 2664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2665printf %s "checking for a BSD-compatible install... " >&6; } 2666if test -z "$INSTALL"; then 2667if test ${ac_cv_path_install+y} 2668then : 2669 printf %s "(cached) " >&6 2670else $as_nop 2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2672for as_dir in $PATH 2673do 2674 IFS=$as_save_IFS 2675 case $as_dir in #((( 2676 '') as_dir=./ ;; 2677 */) ;; 2678 *) as_dir=$as_dir/ ;; 2679 esac 2680 # Account for fact that we put trailing slashes in our PATH walk. 2681case $as_dir in #(( 2682 ./ | /[cC]/* | \ 2683 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2684 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2685 /usr/ucb/* ) ;; 2686 *) 2687 # OSF1 and SCO ODT 3.0 have their own names for install. 2688 # Don't use installbsd from OSF since it installs stuff as root 2689 # by default. 2690 for ac_prog in ginstall scoinst install; do 2691 for ac_exec_ext in '' $ac_executable_extensions; do 2692 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2693 if test $ac_prog = install && 2694 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2695 # AIX install. It has an incompatible calling convention. 2696 : 2697 elif test $ac_prog = install && 2698 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2699 # program-specific install script used by HP pwplus--don't use. 2700 : 2701 else 2702 rm -rf conftest.one conftest.two conftest.dir 2703 echo one > conftest.one 2704 echo two > conftest.two 2705 mkdir conftest.dir 2706 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2707 test -s conftest.one && test -s conftest.two && 2708 test -s conftest.dir/conftest.one && 2709 test -s conftest.dir/conftest.two 2710 then 2711 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2712 break 3 2713 fi 2714 fi 2715 fi 2716 done 2717 done 2718 ;; 2719esac 2720 2721 done 2722IFS=$as_save_IFS 2723 2724rm -rf conftest.one conftest.two conftest.dir 2725 2726fi 2727 if test ${ac_cv_path_install+y}; then 2728 INSTALL=$ac_cv_path_install 2729 else 2730 # As a last resort, use the slow shell script. Don't cache a 2731 # value for INSTALL within a source directory, because that will 2732 # break other packages using the cache if that directory is 2733 # removed, or if the value is a relative name. 2734 INSTALL=$ac_install_sh 2735 fi 2736fi 2737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2738printf "%s\n" "$INSTALL" >&6; } 2739 2740# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2741# It thinks the first close brace ends the variable substitution. 2742test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2743 2744test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2745 2746test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758# Expand $ac_aux_dir to an absolute path. 2759am_aux_dir=`cd "$ac_aux_dir" && pwd` 2760 2761ac_ext=c 2762ac_cpp='$CPP $CPPFLAGS' 2763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2765ac_compiler_gnu=$ac_cv_c_compiler_gnu 2766if test -n "$ac_tool_prefix"; then 2767 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2768set dummy ${ac_tool_prefix}gcc; ac_word=$2 2769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2770printf %s "checking for $ac_word... " >&6; } 2771if test ${ac_cv_prog_CC+y} 2772then : 2773 printf %s "(cached) " >&6 2774else $as_nop 2775 if test -n "$CC"; then 2776 ac_cv_prog_CC="$CC" # Let the user override the test. 2777else 2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2779for as_dir in $PATH 2780do 2781 IFS=$as_save_IFS 2782 case $as_dir in #((( 2783 '') as_dir=./ ;; 2784 */) ;; 2785 *) as_dir=$as_dir/ ;; 2786 esac 2787 for ac_exec_ext in '' $ac_executable_extensions; do 2788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2789 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2791 break 2 2792 fi 2793done 2794 done 2795IFS=$as_save_IFS 2796 2797fi 2798fi 2799CC=$ac_cv_prog_CC 2800if test -n "$CC"; then 2801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2802printf "%s\n" "$CC" >&6; } 2803else 2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2805printf "%s\n" "no" >&6; } 2806fi 2807 2808 2809fi 2810if test -z "$ac_cv_prog_CC"; then 2811 ac_ct_CC=$CC 2812 # Extract the first word of "gcc", so it can be a program name with args. 2813set dummy gcc; ac_word=$2 2814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2815printf %s "checking for $ac_word... " >&6; } 2816if test ${ac_cv_prog_ac_ct_CC+y} 2817then : 2818 printf %s "(cached) " >&6 2819else $as_nop 2820 if test -n "$ac_ct_CC"; then 2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2822else 2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2824for as_dir in $PATH 2825do 2826 IFS=$as_save_IFS 2827 case $as_dir in #((( 2828 '') as_dir=./ ;; 2829 */) ;; 2830 *) as_dir=$as_dir/ ;; 2831 esac 2832 for ac_exec_ext in '' $ac_executable_extensions; do 2833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2834 ac_cv_prog_ac_ct_CC="gcc" 2835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2836 break 2 2837 fi 2838done 2839 done 2840IFS=$as_save_IFS 2841 2842fi 2843fi 2844ac_ct_CC=$ac_cv_prog_ac_ct_CC 2845if test -n "$ac_ct_CC"; then 2846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2847printf "%s\n" "$ac_ct_CC" >&6; } 2848else 2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2850printf "%s\n" "no" >&6; } 2851fi 2852 2853 if test "x$ac_ct_CC" = x; then 2854 CC="" 2855 else 2856 case $cross_compiling:$ac_tool_warned in 2857yes:) 2858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2859printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2860ac_tool_warned=yes ;; 2861esac 2862 CC=$ac_ct_CC 2863 fi 2864else 2865 CC="$ac_cv_prog_CC" 2866fi 2867 2868if test -z "$CC"; then 2869 if test -n "$ac_tool_prefix"; then 2870 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2871set dummy ${ac_tool_prefix}cc; ac_word=$2 2872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2873printf %s "checking for $ac_word... " >&6; } 2874if test ${ac_cv_prog_CC+y} 2875then : 2876 printf %s "(cached) " >&6 2877else $as_nop 2878 if test -n "$CC"; then 2879 ac_cv_prog_CC="$CC" # Let the user override the test. 2880else 2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2882for as_dir in $PATH 2883do 2884 IFS=$as_save_IFS 2885 case $as_dir in #((( 2886 '') as_dir=./ ;; 2887 */) ;; 2888 *) as_dir=$as_dir/ ;; 2889 esac 2890 for ac_exec_ext in '' $ac_executable_extensions; do 2891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2892 ac_cv_prog_CC="${ac_tool_prefix}cc" 2893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2894 break 2 2895 fi 2896done 2897 done 2898IFS=$as_save_IFS 2899 2900fi 2901fi 2902CC=$ac_cv_prog_CC 2903if test -n "$CC"; then 2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2905printf "%s\n" "$CC" >&6; } 2906else 2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2908printf "%s\n" "no" >&6; } 2909fi 2910 2911 2912 fi 2913fi 2914if test -z "$CC"; then 2915 # Extract the first word of "cc", so it can be a program name with args. 2916set dummy cc; ac_word=$2 2917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2918printf %s "checking for $ac_word... " >&6; } 2919if test ${ac_cv_prog_CC+y} 2920then : 2921 printf %s "(cached) " >&6 2922else $as_nop 2923 if test -n "$CC"; then 2924 ac_cv_prog_CC="$CC" # Let the user override the test. 2925else 2926 ac_prog_rejected=no 2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2928for as_dir in $PATH 2929do 2930 IFS=$as_save_IFS 2931 case $as_dir in #((( 2932 '') as_dir=./ ;; 2933 */) ;; 2934 *) as_dir=$as_dir/ ;; 2935 esac 2936 for ac_exec_ext in '' $ac_executable_extensions; do 2937 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2938 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2939 ac_prog_rejected=yes 2940 continue 2941 fi 2942 ac_cv_prog_CC="cc" 2943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2944 break 2 2945 fi 2946done 2947 done 2948IFS=$as_save_IFS 2949 2950if test $ac_prog_rejected = yes; then 2951 # We found a bogon in the path, so make sure we never use it. 2952 set dummy $ac_cv_prog_CC 2953 shift 2954 if test $# != 0; then 2955 # We chose a different compiler from the bogus one. 2956 # However, it has the same basename, so the bogon will be chosen 2957 # first if we set CC to just the basename; use the full file name. 2958 shift 2959 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2960 fi 2961fi 2962fi 2963fi 2964CC=$ac_cv_prog_CC 2965if test -n "$CC"; then 2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2967printf "%s\n" "$CC" >&6; } 2968else 2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2970printf "%s\n" "no" >&6; } 2971fi 2972 2973 2974fi 2975if test -z "$CC"; then 2976 if test -n "$ac_tool_prefix"; then 2977 for ac_prog in cl.exe 2978 do 2979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2980set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2982printf %s "checking for $ac_word... " >&6; } 2983if test ${ac_cv_prog_CC+y} 2984then : 2985 printf %s "(cached) " >&6 2986else $as_nop 2987 if test -n "$CC"; then 2988 ac_cv_prog_CC="$CC" # Let the user override the test. 2989else 2990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2991for as_dir in $PATH 2992do 2993 IFS=$as_save_IFS 2994 case $as_dir in #((( 2995 '') as_dir=./ ;; 2996 */) ;; 2997 *) as_dir=$as_dir/ ;; 2998 esac 2999 for ac_exec_ext in '' $ac_executable_extensions; do 3000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3003 break 2 3004 fi 3005done 3006 done 3007IFS=$as_save_IFS 3008 3009fi 3010fi 3011CC=$ac_cv_prog_CC 3012if test -n "$CC"; then 3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3014printf "%s\n" "$CC" >&6; } 3015else 3016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3017printf "%s\n" "no" >&6; } 3018fi 3019 3020 3021 test -n "$CC" && break 3022 done 3023fi 3024if test -z "$CC"; then 3025 ac_ct_CC=$CC 3026 for ac_prog in cl.exe 3027do 3028 # Extract the first word of "$ac_prog", so it can be a program name with args. 3029set dummy $ac_prog; ac_word=$2 3030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3031printf %s "checking for $ac_word... " >&6; } 3032if test ${ac_cv_prog_ac_ct_CC+y} 3033then : 3034 printf %s "(cached) " >&6 3035else $as_nop 3036 if test -n "$ac_ct_CC"; then 3037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3038else 3039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3040for as_dir in $PATH 3041do 3042 IFS=$as_save_IFS 3043 case $as_dir in #((( 3044 '') as_dir=./ ;; 3045 */) ;; 3046 *) as_dir=$as_dir/ ;; 3047 esac 3048 for ac_exec_ext in '' $ac_executable_extensions; do 3049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3050 ac_cv_prog_ac_ct_CC="$ac_prog" 3051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3052 break 2 3053 fi 3054done 3055 done 3056IFS=$as_save_IFS 3057 3058fi 3059fi 3060ac_ct_CC=$ac_cv_prog_ac_ct_CC 3061if test -n "$ac_ct_CC"; then 3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3063printf "%s\n" "$ac_ct_CC" >&6; } 3064else 3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3066printf "%s\n" "no" >&6; } 3067fi 3068 3069 3070 test -n "$ac_ct_CC" && break 3071done 3072 3073 if test "x$ac_ct_CC" = x; then 3074 CC="" 3075 else 3076 case $cross_compiling:$ac_tool_warned in 3077yes:) 3078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3079printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3080ac_tool_warned=yes ;; 3081esac 3082 CC=$ac_ct_CC 3083 fi 3084fi 3085 3086fi 3087if test -z "$CC"; then 3088 if test -n "$ac_tool_prefix"; then 3089 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3090set dummy ${ac_tool_prefix}clang; ac_word=$2 3091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3092printf %s "checking for $ac_word... " >&6; } 3093if test ${ac_cv_prog_CC+y} 3094then : 3095 printf %s "(cached) " >&6 3096else $as_nop 3097 if test -n "$CC"; then 3098 ac_cv_prog_CC="$CC" # Let the user override the test. 3099else 3100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3101for as_dir in $PATH 3102do 3103 IFS=$as_save_IFS 3104 case $as_dir in #((( 3105 '') as_dir=./ ;; 3106 */) ;; 3107 *) as_dir=$as_dir/ ;; 3108 esac 3109 for ac_exec_ext in '' $ac_executable_extensions; do 3110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3111 ac_cv_prog_CC="${ac_tool_prefix}clang" 3112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3113 break 2 3114 fi 3115done 3116 done 3117IFS=$as_save_IFS 3118 3119fi 3120fi 3121CC=$ac_cv_prog_CC 3122if test -n "$CC"; then 3123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3124printf "%s\n" "$CC" >&6; } 3125else 3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3127printf "%s\n" "no" >&6; } 3128fi 3129 3130 3131fi 3132if test -z "$ac_cv_prog_CC"; then 3133 ac_ct_CC=$CC 3134 # Extract the first word of "clang", so it can be a program name with args. 3135set dummy clang; ac_word=$2 3136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3137printf %s "checking for $ac_word... " >&6; } 3138if test ${ac_cv_prog_ac_ct_CC+y} 3139then : 3140 printf %s "(cached) " >&6 3141else $as_nop 3142 if test -n "$ac_ct_CC"; then 3143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3144else 3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3146for as_dir in $PATH 3147do 3148 IFS=$as_save_IFS 3149 case $as_dir in #((( 3150 '') as_dir=./ ;; 3151 */) ;; 3152 *) as_dir=$as_dir/ ;; 3153 esac 3154 for ac_exec_ext in '' $ac_executable_extensions; do 3155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3156 ac_cv_prog_ac_ct_CC="clang" 3157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3158 break 2 3159 fi 3160done 3161 done 3162IFS=$as_save_IFS 3163 3164fi 3165fi 3166ac_ct_CC=$ac_cv_prog_ac_ct_CC 3167if test -n "$ac_ct_CC"; then 3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3169printf "%s\n" "$ac_ct_CC" >&6; } 3170else 3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3172printf "%s\n" "no" >&6; } 3173fi 3174 3175 if test "x$ac_ct_CC" = x; then 3176 CC="" 3177 else 3178 case $cross_compiling:$ac_tool_warned in 3179yes:) 3180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3181printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3182ac_tool_warned=yes ;; 3183esac 3184 CC=$ac_ct_CC 3185 fi 3186else 3187 CC="$ac_cv_prog_CC" 3188fi 3189 3190fi 3191 3192 3193test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3194printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3195as_fn_error $? "no acceptable C compiler found in \$PATH 3196See \`config.log' for more details" "$LINENO" 5; } 3197 3198# Provide some information about the compiler. 3199printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3200set X $ac_compile 3201ac_compiler=$2 3202for ac_option in --version -v -V -qversion -version; do 3203 { { ac_try="$ac_compiler $ac_option >&5" 3204case "(($ac_try" in 3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3206 *) ac_try_echo=$ac_try;; 3207esac 3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3209printf "%s\n" "$ac_try_echo"; } >&5 3210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3211 ac_status=$? 3212 if test -s conftest.err; then 3213 sed '10a\ 3214... rest of stderr output deleted ... 3215 10q' conftest.err >conftest.er1 3216 cat conftest.er1 >&5 3217 fi 3218 rm -f conftest.er1 conftest.err 3219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3220 test $ac_status = 0; } 3221done 3222 3223cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3224/* end confdefs.h. */ 3225 3226int 3227main (void) 3228{ 3229 3230 ; 3231 return 0; 3232} 3233_ACEOF 3234ac_clean_files_save=$ac_clean_files 3235ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3236# Try to create an executable without -o first, disregard a.out. 3237# It will help us diagnose broken compilers, and finding out an intuition 3238# of exeext. 3239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3240printf %s "checking whether the C compiler works... " >&6; } 3241ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3242 3243# The possible output files: 3244ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3245 3246ac_rmfiles= 3247for ac_file in $ac_files 3248do 3249 case $ac_file in 3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3251 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3252 esac 3253done 3254rm -f $ac_rmfiles 3255 3256if { { ac_try="$ac_link_default" 3257case "(($ac_try" in 3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3259 *) ac_try_echo=$ac_try;; 3260esac 3261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3262printf "%s\n" "$ac_try_echo"; } >&5 3263 (eval "$ac_link_default") 2>&5 3264 ac_status=$? 3265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3266 test $ac_status = 0; } 3267then : 3268 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3269# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3270# in a Makefile. We should not override ac_cv_exeext if it was cached, 3271# so that the user can short-circuit this test for compilers unknown to 3272# Autoconf. 3273for ac_file in $ac_files '' 3274do 3275 test -f "$ac_file" || continue 3276 case $ac_file in 3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3278 ;; 3279 [ab].out ) 3280 # We found the default executable, but exeext='' is most 3281 # certainly right. 3282 break;; 3283 *.* ) 3284 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3285 then :; else 3286 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3287 fi 3288 # We set ac_cv_exeext here because the later test for it is not 3289 # safe: cross compilers may not add the suffix if given an `-o' 3290 # argument, so we may need to know it at that point already. 3291 # Even if this section looks crufty: it has the advantage of 3292 # actually working. 3293 break;; 3294 * ) 3295 break;; 3296 esac 3297done 3298test "$ac_cv_exeext" = no && ac_cv_exeext= 3299 3300else $as_nop 3301 ac_file='' 3302fi 3303if test -z "$ac_file" 3304then : 3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3306printf "%s\n" "no" >&6; } 3307printf "%s\n" "$as_me: failed program was:" >&5 3308sed 's/^/| /' conftest.$ac_ext >&5 3309 3310{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3311printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3312as_fn_error 77 "C compiler cannot create executables 3313See \`config.log' for more details" "$LINENO" 5; } 3314else $as_nop 3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3316printf "%s\n" "yes" >&6; } 3317fi 3318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3319printf %s "checking for C compiler default output file name... " >&6; } 3320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3321printf "%s\n" "$ac_file" >&6; } 3322ac_exeext=$ac_cv_exeext 3323 3324rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3325ac_clean_files=$ac_clean_files_save 3326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3327printf %s "checking for suffix of executables... " >&6; } 3328if { { ac_try="$ac_link" 3329case "(($ac_try" in 3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3331 *) ac_try_echo=$ac_try;; 3332esac 3333eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3334printf "%s\n" "$ac_try_echo"; } >&5 3335 (eval "$ac_link") 2>&5 3336 ac_status=$? 3337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3338 test $ac_status = 0; } 3339then : 3340 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3341# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3342# work properly (i.e., refer to `conftest.exe'), while it won't with 3343# `rm'. 3344for ac_file in conftest.exe conftest conftest.*; do 3345 test -f "$ac_file" || continue 3346 case $ac_file in 3347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3348 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3349 break;; 3350 * ) break;; 3351 esac 3352done 3353else $as_nop 3354 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3355printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3356as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3357See \`config.log' for more details" "$LINENO" 5; } 3358fi 3359rm -f conftest conftest$ac_cv_exeext 3360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3361printf "%s\n" "$ac_cv_exeext" >&6; } 3362 3363rm -f conftest.$ac_ext 3364EXEEXT=$ac_cv_exeext 3365ac_exeext=$EXEEXT 3366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3367/* end confdefs.h. */ 3368#include <stdio.h> 3369int 3370main (void) 3371{ 3372FILE *f = fopen ("conftest.out", "w"); 3373 return ferror (f) || fclose (f) != 0; 3374 3375 ; 3376 return 0; 3377} 3378_ACEOF 3379ac_clean_files="$ac_clean_files conftest.out" 3380# Check that the compiler produces executables we can run. If not, either 3381# the compiler is broken, or we cross compile. 3382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3383printf %s "checking whether we are cross compiling... " >&6; } 3384if test "$cross_compiling" != yes; then 3385 { { ac_try="$ac_link" 3386case "(($ac_try" in 3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3388 *) ac_try_echo=$ac_try;; 3389esac 3390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3391printf "%s\n" "$ac_try_echo"; } >&5 3392 (eval "$ac_link") 2>&5 3393 ac_status=$? 3394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3395 test $ac_status = 0; } 3396 if { ac_try='./conftest$ac_cv_exeext' 3397 { { case "(($ac_try" in 3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3399 *) ac_try_echo=$ac_try;; 3400esac 3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3402printf "%s\n" "$ac_try_echo"; } >&5 3403 (eval "$ac_try") 2>&5 3404 ac_status=$? 3405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3406 test $ac_status = 0; }; }; then 3407 cross_compiling=no 3408 else 3409 if test "$cross_compiling" = maybe; then 3410 cross_compiling=yes 3411 else 3412 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3413printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3414as_fn_error 77 "cannot run C compiled programs. 3415If you meant to cross compile, use \`--host'. 3416See \`config.log' for more details" "$LINENO" 5; } 3417 fi 3418 fi 3419fi 3420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3421printf "%s\n" "$cross_compiling" >&6; } 3422 3423rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3424ac_clean_files=$ac_clean_files_save 3425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3426printf %s "checking for suffix of object files... " >&6; } 3427if test ${ac_cv_objext+y} 3428then : 3429 printf %s "(cached) " >&6 3430else $as_nop 3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3432/* end confdefs.h. */ 3433 3434int 3435main (void) 3436{ 3437 3438 ; 3439 return 0; 3440} 3441_ACEOF 3442rm -f conftest.o conftest.obj 3443if { { ac_try="$ac_compile" 3444case "(($ac_try" in 3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3446 *) ac_try_echo=$ac_try;; 3447esac 3448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3449printf "%s\n" "$ac_try_echo"; } >&5 3450 (eval "$ac_compile") 2>&5 3451 ac_status=$? 3452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3453 test $ac_status = 0; } 3454then : 3455 for ac_file in conftest.o conftest.obj conftest.*; do 3456 test -f "$ac_file" || continue; 3457 case $ac_file in 3458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3459 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3460 break;; 3461 esac 3462done 3463else $as_nop 3464 printf "%s\n" "$as_me: failed program was:" >&5 3465sed 's/^/| /' conftest.$ac_ext >&5 3466 3467{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3468printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3469as_fn_error $? "cannot compute suffix of object files: cannot compile 3470See \`config.log' for more details" "$LINENO" 5; } 3471fi 3472rm -f conftest.$ac_cv_objext conftest.$ac_ext 3473fi 3474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3475printf "%s\n" "$ac_cv_objext" >&6; } 3476OBJEXT=$ac_cv_objext 3477ac_objext=$OBJEXT 3478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3479printf %s "checking whether the compiler supports GNU C... " >&6; } 3480if test ${ac_cv_c_compiler_gnu+y} 3481then : 3482 printf %s "(cached) " >&6 3483else $as_nop 3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3485/* end confdefs.h. */ 3486 3487int 3488main (void) 3489{ 3490#ifndef __GNUC__ 3491 choke me 3492#endif 3493 3494 ; 3495 return 0; 3496} 3497_ACEOF 3498if ac_fn_c_try_compile "$LINENO" 3499then : 3500 ac_compiler_gnu=yes 3501else $as_nop 3502 ac_compiler_gnu=no 3503fi 3504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3505ac_cv_c_compiler_gnu=$ac_compiler_gnu 3506 3507fi 3508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3509printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3510ac_compiler_gnu=$ac_cv_c_compiler_gnu 3511 3512if test $ac_compiler_gnu = yes; then 3513 GCC=yes 3514else 3515 GCC= 3516fi 3517ac_test_CFLAGS=${CFLAGS+y} 3518ac_save_CFLAGS=$CFLAGS 3519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3520printf %s "checking whether $CC accepts -g... " >&6; } 3521if test ${ac_cv_prog_cc_g+y} 3522then : 3523 printf %s "(cached) " >&6 3524else $as_nop 3525 ac_save_c_werror_flag=$ac_c_werror_flag 3526 ac_c_werror_flag=yes 3527 ac_cv_prog_cc_g=no 3528 CFLAGS="-g" 3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3530/* end confdefs.h. */ 3531 3532int 3533main (void) 3534{ 3535 3536 ; 3537 return 0; 3538} 3539_ACEOF 3540if ac_fn_c_try_compile "$LINENO" 3541then : 3542 ac_cv_prog_cc_g=yes 3543else $as_nop 3544 CFLAGS="" 3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3546/* end confdefs.h. */ 3547 3548int 3549main (void) 3550{ 3551 3552 ; 3553 return 0; 3554} 3555_ACEOF 3556if ac_fn_c_try_compile "$LINENO" 3557then : 3558 3559else $as_nop 3560 ac_c_werror_flag=$ac_save_c_werror_flag 3561 CFLAGS="-g" 3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3563/* end confdefs.h. */ 3564 3565int 3566main (void) 3567{ 3568 3569 ; 3570 return 0; 3571} 3572_ACEOF 3573if ac_fn_c_try_compile "$LINENO" 3574then : 3575 ac_cv_prog_cc_g=yes 3576fi 3577rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3578fi 3579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3580fi 3581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3582 ac_c_werror_flag=$ac_save_c_werror_flag 3583fi 3584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3585printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3586if test $ac_test_CFLAGS; then 3587 CFLAGS=$ac_save_CFLAGS 3588elif test $ac_cv_prog_cc_g = yes; then 3589 if test "$GCC" = yes; then 3590 CFLAGS="-g -O2" 3591 else 3592 CFLAGS="-g" 3593 fi 3594else 3595 if test "$GCC" = yes; then 3596 CFLAGS="-O2" 3597 else 3598 CFLAGS= 3599 fi 3600fi 3601ac_prog_cc_stdc=no 3602if test x$ac_prog_cc_stdc = xno 3603then : 3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3605printf %s "checking for $CC option to enable C11 features... " >&6; } 3606if test ${ac_cv_prog_cc_c11+y} 3607then : 3608 printf %s "(cached) " >&6 3609else $as_nop 3610 ac_cv_prog_cc_c11=no 3611ac_save_CC=$CC 3612cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3613/* end confdefs.h. */ 3614$ac_c_conftest_c11_program 3615_ACEOF 3616for ac_arg in '' -std=gnu11 3617do 3618 CC="$ac_save_CC $ac_arg" 3619 if ac_fn_c_try_compile "$LINENO" 3620then : 3621 ac_cv_prog_cc_c11=$ac_arg 3622fi 3623rm -f core conftest.err conftest.$ac_objext conftest.beam 3624 test "x$ac_cv_prog_cc_c11" != "xno" && break 3625done 3626rm -f conftest.$ac_ext 3627CC=$ac_save_CC 3628fi 3629 3630if test "x$ac_cv_prog_cc_c11" = xno 3631then : 3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3633printf "%s\n" "unsupported" >&6; } 3634else $as_nop 3635 if test "x$ac_cv_prog_cc_c11" = x 3636then : 3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3638printf "%s\n" "none needed" >&6; } 3639else $as_nop 3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3641printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3642 CC="$CC $ac_cv_prog_cc_c11" 3643fi 3644 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3645 ac_prog_cc_stdc=c11 3646fi 3647fi 3648if test x$ac_prog_cc_stdc = xno 3649then : 3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3651printf %s "checking for $CC option to enable C99 features... " >&6; } 3652if test ${ac_cv_prog_cc_c99+y} 3653then : 3654 printf %s "(cached) " >&6 3655else $as_nop 3656 ac_cv_prog_cc_c99=no 3657ac_save_CC=$CC 3658cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3659/* end confdefs.h. */ 3660$ac_c_conftest_c99_program 3661_ACEOF 3662for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3663do 3664 CC="$ac_save_CC $ac_arg" 3665 if ac_fn_c_try_compile "$LINENO" 3666then : 3667 ac_cv_prog_cc_c99=$ac_arg 3668fi 3669rm -f core conftest.err conftest.$ac_objext conftest.beam 3670 test "x$ac_cv_prog_cc_c99" != "xno" && break 3671done 3672rm -f conftest.$ac_ext 3673CC=$ac_save_CC 3674fi 3675 3676if test "x$ac_cv_prog_cc_c99" = xno 3677then : 3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3679printf "%s\n" "unsupported" >&6; } 3680else $as_nop 3681 if test "x$ac_cv_prog_cc_c99" = x 3682then : 3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3684printf "%s\n" "none needed" >&6; } 3685else $as_nop 3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3687printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3688 CC="$CC $ac_cv_prog_cc_c99" 3689fi 3690 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3691 ac_prog_cc_stdc=c99 3692fi 3693fi 3694if test x$ac_prog_cc_stdc = xno 3695then : 3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3697printf %s "checking for $CC option to enable C89 features... " >&6; } 3698if test ${ac_cv_prog_cc_c89+y} 3699then : 3700 printf %s "(cached) " >&6 3701else $as_nop 3702 ac_cv_prog_cc_c89=no 3703ac_save_CC=$CC 3704cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3705/* end confdefs.h. */ 3706$ac_c_conftest_c89_program 3707_ACEOF 3708for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3709do 3710 CC="$ac_save_CC $ac_arg" 3711 if ac_fn_c_try_compile "$LINENO" 3712then : 3713 ac_cv_prog_cc_c89=$ac_arg 3714fi 3715rm -f core conftest.err conftest.$ac_objext conftest.beam 3716 test "x$ac_cv_prog_cc_c89" != "xno" && break 3717done 3718rm -f conftest.$ac_ext 3719CC=$ac_save_CC 3720fi 3721 3722if test "x$ac_cv_prog_cc_c89" = xno 3723then : 3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3725printf "%s\n" "unsupported" >&6; } 3726else $as_nop 3727 if test "x$ac_cv_prog_cc_c89" = x 3728then : 3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3730printf "%s\n" "none needed" >&6; } 3731else $as_nop 3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3733printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3734 CC="$CC $ac_cv_prog_cc_c89" 3735fi 3736 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3737 ac_prog_cc_stdc=c89 3738fi 3739fi 3740 3741ac_ext=c 3742ac_cpp='$CPP $CPPFLAGS' 3743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3745ac_compiler_gnu=$ac_cv_c_compiler_gnu 3746 3747 3748 ac_ext=c 3749ac_cpp='$CPP $CPPFLAGS' 3750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3752ac_compiler_gnu=$ac_cv_c_compiler_gnu 3753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3754printf %s "checking whether $CC understands -c and -o together... " >&6; } 3755if test ${am_cv_prog_cc_c_o+y} 3756then : 3757 printf %s "(cached) " >&6 3758else $as_nop 3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3760/* end confdefs.h. */ 3761 3762int 3763main (void) 3764{ 3765 3766 ; 3767 return 0; 3768} 3769_ACEOF 3770 # Make sure it works both with $CC and with simple cc. 3771 # Following AC_PROG_CC_C_O, we do the test twice because some 3772 # compilers refuse to overwrite an existing .o file with -o, 3773 # though they will create one. 3774 am_cv_prog_cc_c_o=yes 3775 for am_i in 1 2; do 3776 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3777 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3778 ac_status=$? 3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3780 (exit $ac_status); } \ 3781 && test -f conftest2.$ac_objext; then 3782 : OK 3783 else 3784 am_cv_prog_cc_c_o=no 3785 break 3786 fi 3787 done 3788 rm -f core conftest* 3789 unset am_i 3790fi 3791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3792printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3793if test "$am_cv_prog_cc_c_o" != yes; then 3794 # Losing compiler, so override with the script. 3795 # FIXME: It is wrong to rewrite CC. 3796 # But if we don't then we get into trouble of one sort or another. 3797 # A longer-term fix would be to have automake use am__CC in this case, 3798 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3799 CC="$am_aux_dir/compile $CC" 3800fi 3801ac_ext=c 3802ac_cpp='$CPP $CPPFLAGS' 3803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3805ac_compiler_gnu=$ac_cv_c_compiler_gnu 3806 3807 3808 3809 3810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 3811printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 3812if test ${ac_cv_c_undeclared_builtin_options+y} 3813then : 3814 printf %s "(cached) " >&6 3815else $as_nop 3816 ac_save_CFLAGS=$CFLAGS 3817 ac_cv_c_undeclared_builtin_options='cannot detect' 3818 for ac_arg in '' -fno-builtin; do 3819 CFLAGS="$ac_save_CFLAGS $ac_arg" 3820 # This test program should *not* compile successfully. 3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3822/* end confdefs.h. */ 3823 3824int 3825main (void) 3826{ 3827(void) strchr; 3828 ; 3829 return 0; 3830} 3831_ACEOF 3832if ac_fn_c_try_compile "$LINENO" 3833then : 3834 3835else $as_nop 3836 # This test program should compile successfully. 3837 # No library function is consistently available on 3838 # freestanding implementations, so test against a dummy 3839 # declaration. Include always-available headers on the 3840 # off chance that they somehow elicit warnings. 3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3842/* end confdefs.h. */ 3843#include <float.h> 3844#include <limits.h> 3845#include <stdarg.h> 3846#include <stddef.h> 3847extern void ac_decl (int, char *); 3848 3849int 3850main (void) 3851{ 3852(void) ac_decl (0, (char *) 0); 3853 (void) ac_decl; 3854 3855 ; 3856 return 0; 3857} 3858_ACEOF 3859if ac_fn_c_try_compile "$LINENO" 3860then : 3861 if test x"$ac_arg" = x 3862then : 3863 ac_cv_c_undeclared_builtin_options='none needed' 3864else $as_nop 3865 ac_cv_c_undeclared_builtin_options=$ac_arg 3866fi 3867 break 3868fi 3869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3870fi 3871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3872 done 3873 CFLAGS=$ac_save_CFLAGS 3874 3875fi 3876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 3877printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 3878 case $ac_cv_c_undeclared_builtin_options in #( 3879 'cannot detect') : 3880 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3881printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3882as_fn_error $? "cannot make $CC report undeclared builtins 3883See \`config.log' for more details" "$LINENO" 5; } ;; #( 3884 'none needed') : 3885 ac_c_undeclared_builtin_options='' ;; #( 3886 *) : 3887 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 3888esac 3889 3890ac_header= ac_cache= 3891for ac_item in $ac_header_c_list 3892do 3893 if test $ac_cache; then 3894 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3895 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3896 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3897 fi 3898 ac_header= ac_cache= 3899 elif test $ac_header; then 3900 ac_cache=$ac_item 3901 else 3902 ac_header=$ac_item 3903 fi 3904done 3905 3906 3907 3908 3909 3910 3911 3912 3913if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3914then : 3915 3916printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3917 3918fi 3919 3920 3921 3922 3923ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 3924if test "x$ac_cv_have_decl___clang__" = xyes 3925then : 3926 CLANGCC="yes" 3927else $as_nop 3928 CLANGCC="no" 3929fi 3930ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 3931if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 3932then : 3933 INTELCC="yes" 3934else $as_nop 3935 INTELCC="no" 3936fi 3937ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 3938if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 3939then : 3940 SUNCC="yes" 3941else $as_nop 3942 SUNCC="no" 3943fi 3944 3945 3946 3947 3948 3949 3950 3951 3952if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 3953 if test -n "$ac_tool_prefix"; then 3954 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 3955set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 3956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3957printf %s "checking for $ac_word... " >&6; } 3958if test ${ac_cv_path_PKG_CONFIG+y} 3959then : 3960 printf %s "(cached) " >&6 3961else $as_nop 3962 case $PKG_CONFIG in 3963 [\\/]* | ?:[\\/]*) 3964 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 3965 ;; 3966 *) 3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3968for as_dir in $PATH 3969do 3970 IFS=$as_save_IFS 3971 case $as_dir in #((( 3972 '') as_dir=./ ;; 3973 */) ;; 3974 *) as_dir=$as_dir/ ;; 3975 esac 3976 for ac_exec_ext in '' $ac_executable_extensions; do 3977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3978 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 3979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3980 break 2 3981 fi 3982done 3983 done 3984IFS=$as_save_IFS 3985 3986 ;; 3987esac 3988fi 3989PKG_CONFIG=$ac_cv_path_PKG_CONFIG 3990if test -n "$PKG_CONFIG"; then 3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 3992printf "%s\n" "$PKG_CONFIG" >&6; } 3993else 3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3995printf "%s\n" "no" >&6; } 3996fi 3997 3998 3999fi 4000if test -z "$ac_cv_path_PKG_CONFIG"; then 4001 ac_pt_PKG_CONFIG=$PKG_CONFIG 4002 # Extract the first word of "pkg-config", so it can be a program name with args. 4003set dummy pkg-config; ac_word=$2 4004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4005printf %s "checking for $ac_word... " >&6; } 4006if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4007then : 4008 printf %s "(cached) " >&6 4009else $as_nop 4010 case $ac_pt_PKG_CONFIG in 4011 [\\/]* | ?:[\\/]*) 4012 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4013 ;; 4014 *) 4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4016for as_dir in $PATH 4017do 4018 IFS=$as_save_IFS 4019 case $as_dir in #((( 4020 '') as_dir=./ ;; 4021 */) ;; 4022 *) as_dir=$as_dir/ ;; 4023 esac 4024 for ac_exec_ext in '' $ac_executable_extensions; do 4025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4026 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4028 break 2 4029 fi 4030done 4031 done 4032IFS=$as_save_IFS 4033 4034 ;; 4035esac 4036fi 4037ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4038if test -n "$ac_pt_PKG_CONFIG"; then 4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4040printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4041else 4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4043printf "%s\n" "no" >&6; } 4044fi 4045 4046 if test "x$ac_pt_PKG_CONFIG" = x; then 4047 PKG_CONFIG="" 4048 else 4049 case $cross_compiling:$ac_tool_warned in 4050yes:) 4051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4052printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4053ac_tool_warned=yes ;; 4054esac 4055 PKG_CONFIG=$ac_pt_PKG_CONFIG 4056 fi 4057else 4058 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4059fi 4060 4061fi 4062if test -n "$PKG_CONFIG"; then 4063 _pkg_min_version=0.9.0 4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4065printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4066 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4068printf "%s\n" "yes" >&6; } 4069 else 4070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4071printf "%s\n" "no" >&6; } 4072 PKG_CONFIG="" 4073 fi 4074fi 4075 4076 4077 # Make sure we can run config.sub. 4078$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4079 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4080 4081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4082printf %s "checking build system type... " >&6; } 4083if test ${ac_cv_build+y} 4084then : 4085 printf %s "(cached) " >&6 4086else $as_nop 4087 ac_build_alias=$build_alias 4088test "x$ac_build_alias" = x && 4089 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4090test "x$ac_build_alias" = x && 4091 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4092ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4093 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4094 4095fi 4096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4097printf "%s\n" "$ac_cv_build" >&6; } 4098case $ac_cv_build in 4099*-*-*) ;; 4100*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4101esac 4102build=$ac_cv_build 4103ac_save_IFS=$IFS; IFS='-' 4104set x $ac_cv_build 4105shift 4106build_cpu=$1 4107build_vendor=$2 4108shift; shift 4109# Remember, the first character of IFS is used to create $*, 4110# except with old shells: 4111build_os=$* 4112IFS=$ac_save_IFS 4113case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4114 4115 4116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4117printf %s "checking host system type... " >&6; } 4118if test ${ac_cv_host+y} 4119then : 4120 printf %s "(cached) " >&6 4121else $as_nop 4122 if test "x$host_alias" = x; then 4123 ac_cv_host=$ac_cv_build 4124else 4125 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4126 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4127fi 4128 4129fi 4130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4131printf "%s\n" "$ac_cv_host" >&6; } 4132case $ac_cv_host in 4133*-*-*) ;; 4134*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4135esac 4136host=$ac_cv_host 4137ac_save_IFS=$IFS; IFS='-' 4138set x $ac_cv_host 4139shift 4140host_cpu=$1 4141host_vendor=$2 4142shift; shift 4143# Remember, the first character of IFS is used to create $*, 4144# except with old shells: 4145host_os=$* 4146IFS=$ac_save_IFS 4147case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4148 4149 4150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4151printf %s "checking for a sed that does not truncate output... " >&6; } 4152if test ${ac_cv_path_SED+y} 4153then : 4154 printf %s "(cached) " >&6 4155else $as_nop 4156 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4157 for ac_i in 1 2 3 4 5 6 7; do 4158 ac_script="$ac_script$as_nl$ac_script" 4159 done 4160 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4161 { ac_script=; unset ac_script;} 4162 if test -z "$SED"; then 4163 ac_path_SED_found=false 4164 # Loop through the user's path and test for each of PROGNAME-LIST 4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4166for as_dir in $PATH 4167do 4168 IFS=$as_save_IFS 4169 case $as_dir in #((( 4170 '') as_dir=./ ;; 4171 */) ;; 4172 *) as_dir=$as_dir/ ;; 4173 esac 4174 for ac_prog in sed gsed 4175 do 4176 for ac_exec_ext in '' $ac_executable_extensions; do 4177 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4178 as_fn_executable_p "$ac_path_SED" || continue 4179# Check for GNU ac_path_SED and select it if it is found. 4180 # Check for GNU $ac_path_SED 4181case `"$ac_path_SED" --version 2>&1` in 4182*GNU*) 4183 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4184*) 4185 ac_count=0 4186 printf %s 0123456789 >"conftest.in" 4187 while : 4188 do 4189 cat "conftest.in" "conftest.in" >"conftest.tmp" 4190 mv "conftest.tmp" "conftest.in" 4191 cp "conftest.in" "conftest.nl" 4192 printf "%s\n" '' >> "conftest.nl" 4193 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4195 as_fn_arith $ac_count + 1 && ac_count=$as_val 4196 if test $ac_count -gt ${ac_path_SED_max-0}; then 4197 # Best one so far, save it but keep looking for a better one 4198 ac_cv_path_SED="$ac_path_SED" 4199 ac_path_SED_max=$ac_count 4200 fi 4201 # 10*(2^10) chars as input seems more than enough 4202 test $ac_count -gt 10 && break 4203 done 4204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4205esac 4206 4207 $ac_path_SED_found && break 3 4208 done 4209 done 4210 done 4211IFS=$as_save_IFS 4212 if test -z "$ac_cv_path_SED"; then 4213 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4214 fi 4215else 4216 ac_cv_path_SED=$SED 4217fi 4218 4219fi 4220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4221printf "%s\n" "$ac_cv_path_SED" >&6; } 4222 SED="$ac_cv_path_SED" 4223 rm -f conftest.sed 4224 4225 4226 4227 4228 4229 4230# Check whether --enable-selective-werror was given. 4231if test ${enable_selective_werror+y} 4232then : 4233 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4234else $as_nop 4235 SELECTIVE_WERROR=yes 4236fi 4237 4238 4239 4240 4241 4242# -v is too short to test reliably with XORG_TESTSET_CFLAG 4243if test "x$SUNCC" = "xyes"; then 4244 BASE_CFLAGS="-v" 4245else 4246 BASE_CFLAGS="" 4247fi 4248 4249# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263xorg_testset_save_CFLAGS="$CFLAGS" 4264 4265if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4268printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4269if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4270then : 4271 printf %s "(cached) " >&6 4272else $as_nop 4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4274/* end confdefs.h. */ 4275int i; 4276_ACEOF 4277if ac_fn_c_try_compile "$LINENO" 4278then : 4279 xorg_cv_cc_flag_unknown_warning_option=yes 4280else $as_nop 4281 xorg_cv_cc_flag_unknown_warning_option=no 4282fi 4283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4284fi 4285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4286printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4288 CFLAGS="$xorg_testset_save_CFLAGS" 4289fi 4290 4291if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4294 fi 4295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4297printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4298if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4299then : 4300 printf %s "(cached) " >&6 4301else $as_nop 4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4303/* end confdefs.h. */ 4304int i; 4305_ACEOF 4306if ac_fn_c_try_compile "$LINENO" 4307then : 4308 xorg_cv_cc_flag_unused_command_line_argument=yes 4309else $as_nop 4310 xorg_cv_cc_flag_unused_command_line_argument=no 4311fi 4312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4313fi 4314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4315printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4316 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4317 CFLAGS="$xorg_testset_save_CFLAGS" 4318fi 4319 4320found="no" 4321 4322 if test $found = "no" ; then 4323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4325 fi 4326 4327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4329 fi 4330 4331 CFLAGS="$CFLAGS -Wall" 4332 4333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4334printf %s "checking if $CC supports -Wall... " >&6; } 4335 cacheid=xorg_cv_cc_flag__Wall 4336 if eval test \${$cacheid+y} 4337then : 4338 printf %s "(cached) " >&6 4339else $as_nop 4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4341/* end confdefs.h. */ 4342int i; 4343int 4344main (void) 4345{ 4346 4347 ; 4348 return 0; 4349} 4350_ACEOF 4351if ac_fn_c_try_link "$LINENO" 4352then : 4353 eval $cacheid=yes 4354else $as_nop 4355 eval $cacheid=no 4356fi 4357rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4358 conftest$ac_exeext conftest.$ac_ext 4359fi 4360 4361 4362 CFLAGS="$xorg_testset_save_CFLAGS" 4363 4364 eval supported=\$$cacheid 4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4366printf "%s\n" "$supported" >&6; } 4367 if test "$supported" = "yes" ; then 4368 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4369 found="yes" 4370 fi 4371 fi 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387xorg_testset_save_CFLAGS="$CFLAGS" 4388 4389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4392printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4393if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4394then : 4395 printf %s "(cached) " >&6 4396else $as_nop 4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4398/* end confdefs.h. */ 4399int i; 4400_ACEOF 4401if ac_fn_c_try_compile "$LINENO" 4402then : 4403 xorg_cv_cc_flag_unknown_warning_option=yes 4404else $as_nop 4405 xorg_cv_cc_flag_unknown_warning_option=no 4406fi 4407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4408fi 4409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4410printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4412 CFLAGS="$xorg_testset_save_CFLAGS" 4413fi 4414 4415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4418 fi 4419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4421printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4422if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4423then : 4424 printf %s "(cached) " >&6 4425else $as_nop 4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4427/* end confdefs.h. */ 4428int i; 4429_ACEOF 4430if ac_fn_c_try_compile "$LINENO" 4431then : 4432 xorg_cv_cc_flag_unused_command_line_argument=yes 4433else $as_nop 4434 xorg_cv_cc_flag_unused_command_line_argument=no 4435fi 4436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4437fi 4438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4439printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4441 CFLAGS="$xorg_testset_save_CFLAGS" 4442fi 4443 4444found="no" 4445 4446 if test $found = "no" ; then 4447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4449 fi 4450 4451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4453 fi 4454 4455 CFLAGS="$CFLAGS -Wpointer-arith" 4456 4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4458printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 4459 cacheid=xorg_cv_cc_flag__Wpointer_arith 4460 if eval test \${$cacheid+y} 4461then : 4462 printf %s "(cached) " >&6 4463else $as_nop 4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4465/* end confdefs.h. */ 4466int i; 4467int 4468main (void) 4469{ 4470 4471 ; 4472 return 0; 4473} 4474_ACEOF 4475if ac_fn_c_try_link "$LINENO" 4476then : 4477 eval $cacheid=yes 4478else $as_nop 4479 eval $cacheid=no 4480fi 4481rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4482 conftest$ac_exeext conftest.$ac_ext 4483fi 4484 4485 4486 CFLAGS="$xorg_testset_save_CFLAGS" 4487 4488 eval supported=\$$cacheid 4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4490printf "%s\n" "$supported" >&6; } 4491 if test "$supported" = "yes" ; then 4492 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4493 found="yes" 4494 fi 4495 fi 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511xorg_testset_save_CFLAGS="$CFLAGS" 4512 4513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4516printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4517if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4518then : 4519 printf %s "(cached) " >&6 4520else $as_nop 4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4522/* end confdefs.h. */ 4523int i; 4524_ACEOF 4525if ac_fn_c_try_compile "$LINENO" 4526then : 4527 xorg_cv_cc_flag_unknown_warning_option=yes 4528else $as_nop 4529 xorg_cv_cc_flag_unknown_warning_option=no 4530fi 4531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4532fi 4533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4534printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4536 CFLAGS="$xorg_testset_save_CFLAGS" 4537fi 4538 4539if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4542 fi 4543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4545printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4546if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4547then : 4548 printf %s "(cached) " >&6 4549else $as_nop 4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4551/* end confdefs.h. */ 4552int i; 4553_ACEOF 4554if ac_fn_c_try_compile "$LINENO" 4555then : 4556 xorg_cv_cc_flag_unused_command_line_argument=yes 4557else $as_nop 4558 xorg_cv_cc_flag_unused_command_line_argument=no 4559fi 4560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4561fi 4562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4563printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4564 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4565 CFLAGS="$xorg_testset_save_CFLAGS" 4566fi 4567 4568found="no" 4569 4570 if test $found = "no" ; then 4571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4573 fi 4574 4575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4577 fi 4578 4579 CFLAGS="$CFLAGS -Wmissing-declarations" 4580 4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4582printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 4583 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4584 if eval test \${$cacheid+y} 4585then : 4586 printf %s "(cached) " >&6 4587else $as_nop 4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4589/* end confdefs.h. */ 4590int i; 4591int 4592main (void) 4593{ 4594 4595 ; 4596 return 0; 4597} 4598_ACEOF 4599if ac_fn_c_try_link "$LINENO" 4600then : 4601 eval $cacheid=yes 4602else $as_nop 4603 eval $cacheid=no 4604fi 4605rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4606 conftest$ac_exeext conftest.$ac_ext 4607fi 4608 4609 4610 CFLAGS="$xorg_testset_save_CFLAGS" 4611 4612 eval supported=\$$cacheid 4613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4614printf "%s\n" "$supported" >&6; } 4615 if test "$supported" = "yes" ; then 4616 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4617 found="yes" 4618 fi 4619 fi 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635xorg_testset_save_CFLAGS="$CFLAGS" 4636 4637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4640printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4641if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4642then : 4643 printf %s "(cached) " >&6 4644else $as_nop 4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4646/* end confdefs.h. */ 4647int i; 4648_ACEOF 4649if ac_fn_c_try_compile "$LINENO" 4650then : 4651 xorg_cv_cc_flag_unknown_warning_option=yes 4652else $as_nop 4653 xorg_cv_cc_flag_unknown_warning_option=no 4654fi 4655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4656fi 4657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4658printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4660 CFLAGS="$xorg_testset_save_CFLAGS" 4661fi 4662 4663if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4666 fi 4667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4669printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4670if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4671then : 4672 printf %s "(cached) " >&6 4673else $as_nop 4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4675/* end confdefs.h. */ 4676int i; 4677_ACEOF 4678if ac_fn_c_try_compile "$LINENO" 4679then : 4680 xorg_cv_cc_flag_unused_command_line_argument=yes 4681else $as_nop 4682 xorg_cv_cc_flag_unused_command_line_argument=no 4683fi 4684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4685fi 4686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4687printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4689 CFLAGS="$xorg_testset_save_CFLAGS" 4690fi 4691 4692found="no" 4693 4694 if test $found = "no" ; then 4695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4697 fi 4698 4699 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4701 fi 4702 4703 CFLAGS="$CFLAGS -Wformat=2" 4704 4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 4706printf %s "checking if $CC supports -Wformat=2... " >&6; } 4707 cacheid=xorg_cv_cc_flag__Wformat_2 4708 if eval test \${$cacheid+y} 4709then : 4710 printf %s "(cached) " >&6 4711else $as_nop 4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4713/* end confdefs.h. */ 4714int i; 4715int 4716main (void) 4717{ 4718 4719 ; 4720 return 0; 4721} 4722_ACEOF 4723if ac_fn_c_try_link "$LINENO" 4724then : 4725 eval $cacheid=yes 4726else $as_nop 4727 eval $cacheid=no 4728fi 4729rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4730 conftest$ac_exeext conftest.$ac_ext 4731fi 4732 4733 4734 CFLAGS="$xorg_testset_save_CFLAGS" 4735 4736 eval supported=\$$cacheid 4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4738printf "%s\n" "$supported" >&6; } 4739 if test "$supported" = "yes" ; then 4740 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 4741 found="yes" 4742 fi 4743 fi 4744 4745 if test $found = "no" ; then 4746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4748 fi 4749 4750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4752 fi 4753 4754 CFLAGS="$CFLAGS -Wformat" 4755 4756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 4757printf %s "checking if $CC supports -Wformat... " >&6; } 4758 cacheid=xorg_cv_cc_flag__Wformat 4759 if eval test \${$cacheid+y} 4760then : 4761 printf %s "(cached) " >&6 4762else $as_nop 4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4764/* end confdefs.h. */ 4765int i; 4766int 4767main (void) 4768{ 4769 4770 ; 4771 return 0; 4772} 4773_ACEOF 4774if ac_fn_c_try_link "$LINENO" 4775then : 4776 eval $cacheid=yes 4777else $as_nop 4778 eval $cacheid=no 4779fi 4780rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4781 conftest$ac_exeext conftest.$ac_ext 4782fi 4783 4784 4785 CFLAGS="$xorg_testset_save_CFLAGS" 4786 4787 eval supported=\$$cacheid 4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4789printf "%s\n" "$supported" >&6; } 4790 if test "$supported" = "yes" ; then 4791 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 4792 found="yes" 4793 fi 4794 fi 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812xorg_testset_save_CFLAGS="$CFLAGS" 4813 4814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4817printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4818if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4819then : 4820 printf %s "(cached) " >&6 4821else $as_nop 4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4823/* end confdefs.h. */ 4824int i; 4825_ACEOF 4826if ac_fn_c_try_compile "$LINENO" 4827then : 4828 xorg_cv_cc_flag_unknown_warning_option=yes 4829else $as_nop 4830 xorg_cv_cc_flag_unknown_warning_option=no 4831fi 4832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4833fi 4834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4835printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4837 CFLAGS="$xorg_testset_save_CFLAGS" 4838fi 4839 4840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4843 fi 4844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4846printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4847if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4848then : 4849 printf %s "(cached) " >&6 4850else $as_nop 4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4852/* end confdefs.h. */ 4853int i; 4854_ACEOF 4855if ac_fn_c_try_compile "$LINENO" 4856then : 4857 xorg_cv_cc_flag_unused_command_line_argument=yes 4858else $as_nop 4859 xorg_cv_cc_flag_unused_command_line_argument=no 4860fi 4861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4862fi 4863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4864printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4866 CFLAGS="$xorg_testset_save_CFLAGS" 4867fi 4868 4869found="no" 4870 4871 if test $found = "no" ; then 4872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4874 fi 4875 4876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4878 fi 4879 4880 CFLAGS="$CFLAGS -Wstrict-prototypes" 4881 4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 4883printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 4884 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 4885 if eval test \${$cacheid+y} 4886then : 4887 printf %s "(cached) " >&6 4888else $as_nop 4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4890/* end confdefs.h. */ 4891int i; 4892int 4893main (void) 4894{ 4895 4896 ; 4897 return 0; 4898} 4899_ACEOF 4900if ac_fn_c_try_link "$LINENO" 4901then : 4902 eval $cacheid=yes 4903else $as_nop 4904 eval $cacheid=no 4905fi 4906rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4907 conftest$ac_exeext conftest.$ac_ext 4908fi 4909 4910 4911 CFLAGS="$xorg_testset_save_CFLAGS" 4912 4913 eval supported=\$$cacheid 4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4915printf "%s\n" "$supported" >&6; } 4916 if test "$supported" = "yes" ; then 4917 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 4918 found="yes" 4919 fi 4920 fi 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936xorg_testset_save_CFLAGS="$CFLAGS" 4937 4938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4941printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4942if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4943then : 4944 printf %s "(cached) " >&6 4945else $as_nop 4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4947/* end confdefs.h. */ 4948int i; 4949_ACEOF 4950if ac_fn_c_try_compile "$LINENO" 4951then : 4952 xorg_cv_cc_flag_unknown_warning_option=yes 4953else $as_nop 4954 xorg_cv_cc_flag_unknown_warning_option=no 4955fi 4956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4957fi 4958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4959printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4961 CFLAGS="$xorg_testset_save_CFLAGS" 4962fi 4963 4964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4967 fi 4968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4970printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4971if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4972then : 4973 printf %s "(cached) " >&6 4974else $as_nop 4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4976/* end confdefs.h. */ 4977int i; 4978_ACEOF 4979if ac_fn_c_try_compile "$LINENO" 4980then : 4981 xorg_cv_cc_flag_unused_command_line_argument=yes 4982else $as_nop 4983 xorg_cv_cc_flag_unused_command_line_argument=no 4984fi 4985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4986fi 4987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4988printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4990 CFLAGS="$xorg_testset_save_CFLAGS" 4991fi 4992 4993found="no" 4994 4995 if test $found = "no" ; then 4996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4998 fi 4999 5000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5002 fi 5003 5004 CFLAGS="$CFLAGS -Wmissing-prototypes" 5005 5006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5007printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5008 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5009 if eval test \${$cacheid+y} 5010then : 5011 printf %s "(cached) " >&6 5012else $as_nop 5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5014/* end confdefs.h. */ 5015int i; 5016int 5017main (void) 5018{ 5019 5020 ; 5021 return 0; 5022} 5023_ACEOF 5024if ac_fn_c_try_link "$LINENO" 5025then : 5026 eval $cacheid=yes 5027else $as_nop 5028 eval $cacheid=no 5029fi 5030rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5031 conftest$ac_exeext conftest.$ac_ext 5032fi 5033 5034 5035 CFLAGS="$xorg_testset_save_CFLAGS" 5036 5037 eval supported=\$$cacheid 5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5039printf "%s\n" "$supported" >&6; } 5040 if test "$supported" = "yes" ; then 5041 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5042 found="yes" 5043 fi 5044 fi 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060xorg_testset_save_CFLAGS="$CFLAGS" 5061 5062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5065printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5066if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5067then : 5068 printf %s "(cached) " >&6 5069else $as_nop 5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5071/* end confdefs.h. */ 5072int i; 5073_ACEOF 5074if ac_fn_c_try_compile "$LINENO" 5075then : 5076 xorg_cv_cc_flag_unknown_warning_option=yes 5077else $as_nop 5078 xorg_cv_cc_flag_unknown_warning_option=no 5079fi 5080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5081fi 5082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5083printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5085 CFLAGS="$xorg_testset_save_CFLAGS" 5086fi 5087 5088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5091 fi 5092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5094printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5095if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5096then : 5097 printf %s "(cached) " >&6 5098else $as_nop 5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5100/* end confdefs.h. */ 5101int i; 5102_ACEOF 5103if ac_fn_c_try_compile "$LINENO" 5104then : 5105 xorg_cv_cc_flag_unused_command_line_argument=yes 5106else $as_nop 5107 xorg_cv_cc_flag_unused_command_line_argument=no 5108fi 5109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5110fi 5111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5112printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5114 CFLAGS="$xorg_testset_save_CFLAGS" 5115fi 5116 5117found="no" 5118 5119 if test $found = "no" ; then 5120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5122 fi 5123 5124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5126 fi 5127 5128 CFLAGS="$CFLAGS -Wnested-externs" 5129 5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5131printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5132 cacheid=xorg_cv_cc_flag__Wnested_externs 5133 if eval test \${$cacheid+y} 5134then : 5135 printf %s "(cached) " >&6 5136else $as_nop 5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5138/* end confdefs.h. */ 5139int i; 5140int 5141main (void) 5142{ 5143 5144 ; 5145 return 0; 5146} 5147_ACEOF 5148if ac_fn_c_try_link "$LINENO" 5149then : 5150 eval $cacheid=yes 5151else $as_nop 5152 eval $cacheid=no 5153fi 5154rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5155 conftest$ac_exeext conftest.$ac_ext 5156fi 5157 5158 5159 CFLAGS="$xorg_testset_save_CFLAGS" 5160 5161 eval supported=\$$cacheid 5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5163printf "%s\n" "$supported" >&6; } 5164 if test "$supported" = "yes" ; then 5165 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5166 found="yes" 5167 fi 5168 fi 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184xorg_testset_save_CFLAGS="$CFLAGS" 5185 5186if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5189printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5190if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5191then : 5192 printf %s "(cached) " >&6 5193else $as_nop 5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5195/* end confdefs.h. */ 5196int i; 5197_ACEOF 5198if ac_fn_c_try_compile "$LINENO" 5199then : 5200 xorg_cv_cc_flag_unknown_warning_option=yes 5201else $as_nop 5202 xorg_cv_cc_flag_unknown_warning_option=no 5203fi 5204rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5205fi 5206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5207printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5209 CFLAGS="$xorg_testset_save_CFLAGS" 5210fi 5211 5212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5215 fi 5216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5218printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5219if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5220then : 5221 printf %s "(cached) " >&6 5222else $as_nop 5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5224/* end confdefs.h. */ 5225int i; 5226_ACEOF 5227if ac_fn_c_try_compile "$LINENO" 5228then : 5229 xorg_cv_cc_flag_unused_command_line_argument=yes 5230else $as_nop 5231 xorg_cv_cc_flag_unused_command_line_argument=no 5232fi 5233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5234fi 5235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5236printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5238 CFLAGS="$xorg_testset_save_CFLAGS" 5239fi 5240 5241found="no" 5242 5243 if test $found = "no" ; then 5244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5246 fi 5247 5248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5250 fi 5251 5252 CFLAGS="$CFLAGS -Wbad-function-cast" 5253 5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5255printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5256 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5257 if eval test \${$cacheid+y} 5258then : 5259 printf %s "(cached) " >&6 5260else $as_nop 5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5262/* end confdefs.h. */ 5263int i; 5264int 5265main (void) 5266{ 5267 5268 ; 5269 return 0; 5270} 5271_ACEOF 5272if ac_fn_c_try_link "$LINENO" 5273then : 5274 eval $cacheid=yes 5275else $as_nop 5276 eval $cacheid=no 5277fi 5278rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5279 conftest$ac_exeext conftest.$ac_ext 5280fi 5281 5282 5283 CFLAGS="$xorg_testset_save_CFLAGS" 5284 5285 eval supported=\$$cacheid 5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5287printf "%s\n" "$supported" >&6; } 5288 if test "$supported" = "yes" ; then 5289 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5290 found="yes" 5291 fi 5292 fi 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308xorg_testset_save_CFLAGS="$CFLAGS" 5309 5310if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5313printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5314if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5315then : 5316 printf %s "(cached) " >&6 5317else $as_nop 5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5319/* end confdefs.h. */ 5320int i; 5321_ACEOF 5322if ac_fn_c_try_compile "$LINENO" 5323then : 5324 xorg_cv_cc_flag_unknown_warning_option=yes 5325else $as_nop 5326 xorg_cv_cc_flag_unknown_warning_option=no 5327fi 5328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5329fi 5330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5331printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5333 CFLAGS="$xorg_testset_save_CFLAGS" 5334fi 5335 5336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5339 fi 5340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5342printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5343if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5344then : 5345 printf %s "(cached) " >&6 5346else $as_nop 5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5348/* end confdefs.h. */ 5349int i; 5350_ACEOF 5351if ac_fn_c_try_compile "$LINENO" 5352then : 5353 xorg_cv_cc_flag_unused_command_line_argument=yes 5354else $as_nop 5355 xorg_cv_cc_flag_unused_command_line_argument=no 5356fi 5357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5358fi 5359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5360printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5362 CFLAGS="$xorg_testset_save_CFLAGS" 5363fi 5364 5365found="no" 5366 5367 if test $found = "no" ; then 5368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5370 fi 5371 5372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5374 fi 5375 5376 CFLAGS="$CFLAGS -Wold-style-definition" 5377 5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5379printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 5380 cacheid=xorg_cv_cc_flag__Wold_style_definition 5381 if eval test \${$cacheid+y} 5382then : 5383 printf %s "(cached) " >&6 5384else $as_nop 5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5386/* end confdefs.h. */ 5387int i; 5388int 5389main (void) 5390{ 5391 5392 ; 5393 return 0; 5394} 5395_ACEOF 5396if ac_fn_c_try_link "$LINENO" 5397then : 5398 eval $cacheid=yes 5399else $as_nop 5400 eval $cacheid=no 5401fi 5402rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5403 conftest$ac_exeext conftest.$ac_ext 5404fi 5405 5406 5407 CFLAGS="$xorg_testset_save_CFLAGS" 5408 5409 eval supported=\$$cacheid 5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5411printf "%s\n" "$supported" >&6; } 5412 if test "$supported" = "yes" ; then 5413 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5414 found="yes" 5415 fi 5416 fi 5417 5418 if test $found = "no" ; then 5419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5421 fi 5422 5423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5425 fi 5426 5427 CFLAGS="$CFLAGS -fd" 5428 5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5430printf %s "checking if $CC supports -fd... " >&6; } 5431 cacheid=xorg_cv_cc_flag__fd 5432 if eval test \${$cacheid+y} 5433then : 5434 printf %s "(cached) " >&6 5435else $as_nop 5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5437/* end confdefs.h. */ 5438int i; 5439int 5440main (void) 5441{ 5442 5443 ; 5444 return 0; 5445} 5446_ACEOF 5447if ac_fn_c_try_link "$LINENO" 5448then : 5449 eval $cacheid=yes 5450else $as_nop 5451 eval $cacheid=no 5452fi 5453rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5454 conftest$ac_exeext conftest.$ac_ext 5455fi 5456 5457 5458 CFLAGS="$xorg_testset_save_CFLAGS" 5459 5460 eval supported=\$$cacheid 5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5462printf "%s\n" "$supported" >&6; } 5463 if test "$supported" = "yes" ; then 5464 BASE_CFLAGS="$BASE_CFLAGS -fd" 5465 found="yes" 5466 fi 5467 fi 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483xorg_testset_save_CFLAGS="$CFLAGS" 5484 5485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5488printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5489if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5490then : 5491 printf %s "(cached) " >&6 5492else $as_nop 5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5494/* end confdefs.h. */ 5495int i; 5496_ACEOF 5497if ac_fn_c_try_compile "$LINENO" 5498then : 5499 xorg_cv_cc_flag_unknown_warning_option=yes 5500else $as_nop 5501 xorg_cv_cc_flag_unknown_warning_option=no 5502fi 5503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5504fi 5505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5506printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5508 CFLAGS="$xorg_testset_save_CFLAGS" 5509fi 5510 5511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5514 fi 5515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5517printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5518if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5519then : 5520 printf %s "(cached) " >&6 5521else $as_nop 5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5523/* end confdefs.h. */ 5524int i; 5525_ACEOF 5526if ac_fn_c_try_compile "$LINENO" 5527then : 5528 xorg_cv_cc_flag_unused_command_line_argument=yes 5529else $as_nop 5530 xorg_cv_cc_flag_unused_command_line_argument=no 5531fi 5532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5533fi 5534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5535printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5537 CFLAGS="$xorg_testset_save_CFLAGS" 5538fi 5539 5540found="no" 5541 5542 if test $found = "no" ; then 5543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5545 fi 5546 5547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5549 fi 5550 5551 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5552 5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5554printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5555 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5556 if eval test \${$cacheid+y} 5557then : 5558 printf %s "(cached) " >&6 5559else $as_nop 5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5561/* end confdefs.h. */ 5562int i; 5563int 5564main (void) 5565{ 5566 5567 ; 5568 return 0; 5569} 5570_ACEOF 5571if ac_fn_c_try_link "$LINENO" 5572then : 5573 eval $cacheid=yes 5574else $as_nop 5575 eval $cacheid=no 5576fi 5577rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5578 conftest$ac_exeext conftest.$ac_ext 5579fi 5580 5581 5582 CFLAGS="$xorg_testset_save_CFLAGS" 5583 5584 eval supported=\$$cacheid 5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5586printf "%s\n" "$supported" >&6; } 5587 if test "$supported" = "yes" ; then 5588 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5589 found="yes" 5590 fi 5591 fi 5592 5593 5594 5595 5596 5597# This chunk adds additional warnings that could catch undesired effects. 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611xorg_testset_save_CFLAGS="$CFLAGS" 5612 5613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5616printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5617if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5618then : 5619 printf %s "(cached) " >&6 5620else $as_nop 5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5622/* end confdefs.h. */ 5623int i; 5624_ACEOF 5625if ac_fn_c_try_compile "$LINENO" 5626then : 5627 xorg_cv_cc_flag_unknown_warning_option=yes 5628else $as_nop 5629 xorg_cv_cc_flag_unknown_warning_option=no 5630fi 5631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5632fi 5633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5634printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5635 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5636 CFLAGS="$xorg_testset_save_CFLAGS" 5637fi 5638 5639if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5642 fi 5643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5645printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5646if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5647then : 5648 printf %s "(cached) " >&6 5649else $as_nop 5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5651/* end confdefs.h. */ 5652int i; 5653_ACEOF 5654if ac_fn_c_try_compile "$LINENO" 5655then : 5656 xorg_cv_cc_flag_unused_command_line_argument=yes 5657else $as_nop 5658 xorg_cv_cc_flag_unused_command_line_argument=no 5659fi 5660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5661fi 5662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5663printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5665 CFLAGS="$xorg_testset_save_CFLAGS" 5666fi 5667 5668found="no" 5669 5670 if test $found = "no" ; then 5671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5673 fi 5674 5675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5677 fi 5678 5679 CFLAGS="$CFLAGS -Wunused" 5680 5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5682printf %s "checking if $CC supports -Wunused... " >&6; } 5683 cacheid=xorg_cv_cc_flag__Wunused 5684 if eval test \${$cacheid+y} 5685then : 5686 printf %s "(cached) " >&6 5687else $as_nop 5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5689/* end confdefs.h. */ 5690int i; 5691int 5692main (void) 5693{ 5694 5695 ; 5696 return 0; 5697} 5698_ACEOF 5699if ac_fn_c_try_link "$LINENO" 5700then : 5701 eval $cacheid=yes 5702else $as_nop 5703 eval $cacheid=no 5704fi 5705rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5706 conftest$ac_exeext conftest.$ac_ext 5707fi 5708 5709 5710 CFLAGS="$xorg_testset_save_CFLAGS" 5711 5712 eval supported=\$$cacheid 5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5714printf "%s\n" "$supported" >&6; } 5715 if test "$supported" = "yes" ; then 5716 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5717 found="yes" 5718 fi 5719 fi 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735xorg_testset_save_CFLAGS="$CFLAGS" 5736 5737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5740printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5741if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5742then : 5743 printf %s "(cached) " >&6 5744else $as_nop 5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5746/* end confdefs.h. */ 5747int i; 5748_ACEOF 5749if ac_fn_c_try_compile "$LINENO" 5750then : 5751 xorg_cv_cc_flag_unknown_warning_option=yes 5752else $as_nop 5753 xorg_cv_cc_flag_unknown_warning_option=no 5754fi 5755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5756fi 5757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5758printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5760 CFLAGS="$xorg_testset_save_CFLAGS" 5761fi 5762 5763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5766 fi 5767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5769printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5770if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5771then : 5772 printf %s "(cached) " >&6 5773else $as_nop 5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5775/* end confdefs.h. */ 5776int i; 5777_ACEOF 5778if ac_fn_c_try_compile "$LINENO" 5779then : 5780 xorg_cv_cc_flag_unused_command_line_argument=yes 5781else $as_nop 5782 xorg_cv_cc_flag_unused_command_line_argument=no 5783fi 5784rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5785fi 5786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5787printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5789 CFLAGS="$xorg_testset_save_CFLAGS" 5790fi 5791 5792found="no" 5793 5794 if test $found = "no" ; then 5795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5797 fi 5798 5799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5801 fi 5802 5803 CFLAGS="$CFLAGS -Wuninitialized" 5804 5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5806printf %s "checking if $CC supports -Wuninitialized... " >&6; } 5807 cacheid=xorg_cv_cc_flag__Wuninitialized 5808 if eval test \${$cacheid+y} 5809then : 5810 printf %s "(cached) " >&6 5811else $as_nop 5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5813/* end confdefs.h. */ 5814int i; 5815int 5816main (void) 5817{ 5818 5819 ; 5820 return 0; 5821} 5822_ACEOF 5823if ac_fn_c_try_link "$LINENO" 5824then : 5825 eval $cacheid=yes 5826else $as_nop 5827 eval $cacheid=no 5828fi 5829rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5830 conftest$ac_exeext conftest.$ac_ext 5831fi 5832 5833 5834 CFLAGS="$xorg_testset_save_CFLAGS" 5835 5836 eval supported=\$$cacheid 5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5838printf "%s\n" "$supported" >&6; } 5839 if test "$supported" = "yes" ; then 5840 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5841 found="yes" 5842 fi 5843 fi 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859xorg_testset_save_CFLAGS="$CFLAGS" 5860 5861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5864printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5865if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5866then : 5867 printf %s "(cached) " >&6 5868else $as_nop 5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5870/* end confdefs.h. */ 5871int i; 5872_ACEOF 5873if ac_fn_c_try_compile "$LINENO" 5874then : 5875 xorg_cv_cc_flag_unknown_warning_option=yes 5876else $as_nop 5877 xorg_cv_cc_flag_unknown_warning_option=no 5878fi 5879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5880fi 5881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5882printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5883 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5884 CFLAGS="$xorg_testset_save_CFLAGS" 5885fi 5886 5887if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5890 fi 5891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5893printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5894if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5895then : 5896 printf %s "(cached) " >&6 5897else $as_nop 5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5899/* end confdefs.h. */ 5900int i; 5901_ACEOF 5902if ac_fn_c_try_compile "$LINENO" 5903then : 5904 xorg_cv_cc_flag_unused_command_line_argument=yes 5905else $as_nop 5906 xorg_cv_cc_flag_unused_command_line_argument=no 5907fi 5908rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5909fi 5910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5911printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5913 CFLAGS="$xorg_testset_save_CFLAGS" 5914fi 5915 5916found="no" 5917 5918 if test $found = "no" ; then 5919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5921 fi 5922 5923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5925 fi 5926 5927 CFLAGS="$CFLAGS -Wshadow" 5928 5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 5930printf %s "checking if $CC supports -Wshadow... " >&6; } 5931 cacheid=xorg_cv_cc_flag__Wshadow 5932 if eval test \${$cacheid+y} 5933then : 5934 printf %s "(cached) " >&6 5935else $as_nop 5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5937/* end confdefs.h. */ 5938int i; 5939int 5940main (void) 5941{ 5942 5943 ; 5944 return 0; 5945} 5946_ACEOF 5947if ac_fn_c_try_link "$LINENO" 5948then : 5949 eval $cacheid=yes 5950else $as_nop 5951 eval $cacheid=no 5952fi 5953rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5954 conftest$ac_exeext conftest.$ac_ext 5955fi 5956 5957 5958 CFLAGS="$xorg_testset_save_CFLAGS" 5959 5960 eval supported=\$$cacheid 5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5962printf "%s\n" "$supported" >&6; } 5963 if test "$supported" = "yes" ; then 5964 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 5965 found="yes" 5966 fi 5967 fi 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983xorg_testset_save_CFLAGS="$CFLAGS" 5984 5985if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5988printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5989if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5990then : 5991 printf %s "(cached) " >&6 5992else $as_nop 5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5994/* end confdefs.h. */ 5995int i; 5996_ACEOF 5997if ac_fn_c_try_compile "$LINENO" 5998then : 5999 xorg_cv_cc_flag_unknown_warning_option=yes 6000else $as_nop 6001 xorg_cv_cc_flag_unknown_warning_option=no 6002fi 6003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6004fi 6005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6006printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6007 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6008 CFLAGS="$xorg_testset_save_CFLAGS" 6009fi 6010 6011if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6014 fi 6015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6017printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6018if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6019then : 6020 printf %s "(cached) " >&6 6021else $as_nop 6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6023/* end confdefs.h. */ 6024int i; 6025_ACEOF 6026if ac_fn_c_try_compile "$LINENO" 6027then : 6028 xorg_cv_cc_flag_unused_command_line_argument=yes 6029else $as_nop 6030 xorg_cv_cc_flag_unused_command_line_argument=no 6031fi 6032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6033fi 6034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6035printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6037 CFLAGS="$xorg_testset_save_CFLAGS" 6038fi 6039 6040found="no" 6041 6042 if test $found = "no" ; then 6043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6045 fi 6046 6047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6049 fi 6050 6051 CFLAGS="$CFLAGS -Wmissing-noreturn" 6052 6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6054printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6055 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6056 if eval test \${$cacheid+y} 6057then : 6058 printf %s "(cached) " >&6 6059else $as_nop 6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6061/* end confdefs.h. */ 6062int i; 6063int 6064main (void) 6065{ 6066 6067 ; 6068 return 0; 6069} 6070_ACEOF 6071if ac_fn_c_try_link "$LINENO" 6072then : 6073 eval $cacheid=yes 6074else $as_nop 6075 eval $cacheid=no 6076fi 6077rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6078 conftest$ac_exeext conftest.$ac_ext 6079fi 6080 6081 6082 CFLAGS="$xorg_testset_save_CFLAGS" 6083 6084 eval supported=\$$cacheid 6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6086printf "%s\n" "$supported" >&6; } 6087 if test "$supported" = "yes" ; then 6088 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6089 found="yes" 6090 fi 6091 fi 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107xorg_testset_save_CFLAGS="$CFLAGS" 6108 6109if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6112printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6113if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6114then : 6115 printf %s "(cached) " >&6 6116else $as_nop 6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6118/* end confdefs.h. */ 6119int i; 6120_ACEOF 6121if ac_fn_c_try_compile "$LINENO" 6122then : 6123 xorg_cv_cc_flag_unknown_warning_option=yes 6124else $as_nop 6125 xorg_cv_cc_flag_unknown_warning_option=no 6126fi 6127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6128fi 6129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6130printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6132 CFLAGS="$xorg_testset_save_CFLAGS" 6133fi 6134 6135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6138 fi 6139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6141printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6142if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6143then : 6144 printf %s "(cached) " >&6 6145else $as_nop 6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6147/* end confdefs.h. */ 6148int i; 6149_ACEOF 6150if ac_fn_c_try_compile "$LINENO" 6151then : 6152 xorg_cv_cc_flag_unused_command_line_argument=yes 6153else $as_nop 6154 xorg_cv_cc_flag_unused_command_line_argument=no 6155fi 6156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6157fi 6158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6159printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6160 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6161 CFLAGS="$xorg_testset_save_CFLAGS" 6162fi 6163 6164found="no" 6165 6166 if test $found = "no" ; then 6167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6169 fi 6170 6171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6173 fi 6174 6175 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6176 6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6178printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6179 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6180 if eval test \${$cacheid+y} 6181then : 6182 printf %s "(cached) " >&6 6183else $as_nop 6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6185/* end confdefs.h. */ 6186int i; 6187int 6188main (void) 6189{ 6190 6191 ; 6192 return 0; 6193} 6194_ACEOF 6195if ac_fn_c_try_link "$LINENO" 6196then : 6197 eval $cacheid=yes 6198else $as_nop 6199 eval $cacheid=no 6200fi 6201rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6202 conftest$ac_exeext conftest.$ac_ext 6203fi 6204 6205 6206 CFLAGS="$xorg_testset_save_CFLAGS" 6207 6208 eval supported=\$$cacheid 6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6210printf "%s\n" "$supported" >&6; } 6211 if test "$supported" = "yes" ; then 6212 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6213 found="yes" 6214 fi 6215 fi 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231xorg_testset_save_CFLAGS="$CFLAGS" 6232 6233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6236printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6237if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6238then : 6239 printf %s "(cached) " >&6 6240else $as_nop 6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6242/* end confdefs.h. */ 6243int i; 6244_ACEOF 6245if ac_fn_c_try_compile "$LINENO" 6246then : 6247 xorg_cv_cc_flag_unknown_warning_option=yes 6248else $as_nop 6249 xorg_cv_cc_flag_unknown_warning_option=no 6250fi 6251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6252fi 6253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6254printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6256 CFLAGS="$xorg_testset_save_CFLAGS" 6257fi 6258 6259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6262 fi 6263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6265printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6266if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6267then : 6268 printf %s "(cached) " >&6 6269else $as_nop 6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6271/* end confdefs.h. */ 6272int i; 6273_ACEOF 6274if ac_fn_c_try_compile "$LINENO" 6275then : 6276 xorg_cv_cc_flag_unused_command_line_argument=yes 6277else $as_nop 6278 xorg_cv_cc_flag_unused_command_line_argument=no 6279fi 6280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6281fi 6282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6283printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6284 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6285 CFLAGS="$xorg_testset_save_CFLAGS" 6286fi 6287 6288found="no" 6289 6290 if test $found = "no" ; then 6291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6293 fi 6294 6295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6297 fi 6298 6299 CFLAGS="$CFLAGS -Wredundant-decls" 6300 6301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6302printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6303 cacheid=xorg_cv_cc_flag__Wredundant_decls 6304 if eval test \${$cacheid+y} 6305then : 6306 printf %s "(cached) " >&6 6307else $as_nop 6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6309/* end confdefs.h. */ 6310int i; 6311int 6312main (void) 6313{ 6314 6315 ; 6316 return 0; 6317} 6318_ACEOF 6319if ac_fn_c_try_link "$LINENO" 6320then : 6321 eval $cacheid=yes 6322else $as_nop 6323 eval $cacheid=no 6324fi 6325rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6326 conftest$ac_exeext conftest.$ac_ext 6327fi 6328 6329 6330 CFLAGS="$xorg_testset_save_CFLAGS" 6331 6332 eval supported=\$$cacheid 6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6334printf "%s\n" "$supported" >&6; } 6335 if test "$supported" = "yes" ; then 6336 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6337 found="yes" 6338 fi 6339 fi 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355xorg_testset_save_CFLAGS="$CFLAGS" 6356 6357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6360printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6361if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6362then : 6363 printf %s "(cached) " >&6 6364else $as_nop 6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6366/* end confdefs.h. */ 6367int i; 6368_ACEOF 6369if ac_fn_c_try_compile "$LINENO" 6370then : 6371 xorg_cv_cc_flag_unknown_warning_option=yes 6372else $as_nop 6373 xorg_cv_cc_flag_unknown_warning_option=no 6374fi 6375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6376fi 6377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6378printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6380 CFLAGS="$xorg_testset_save_CFLAGS" 6381fi 6382 6383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6386 fi 6387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6389printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6390if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6391then : 6392 printf %s "(cached) " >&6 6393else $as_nop 6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6395/* end confdefs.h. */ 6396int i; 6397_ACEOF 6398if ac_fn_c_try_compile "$LINENO" 6399then : 6400 xorg_cv_cc_flag_unused_command_line_argument=yes 6401else $as_nop 6402 xorg_cv_cc_flag_unused_command_line_argument=no 6403fi 6404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6405fi 6406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6407printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6409 CFLAGS="$xorg_testset_save_CFLAGS" 6410fi 6411 6412found="no" 6413 6414 if test $found = "no" ; then 6415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6417 fi 6418 6419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6421 fi 6422 6423 CFLAGS="$CFLAGS -Wlogical-op" 6424 6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6426printf %s "checking if $CC supports -Wlogical-op... " >&6; } 6427 cacheid=xorg_cv_cc_flag__Wlogical_op 6428 if eval test \${$cacheid+y} 6429then : 6430 printf %s "(cached) " >&6 6431else $as_nop 6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6433/* end confdefs.h. */ 6434int i; 6435int 6436main (void) 6437{ 6438 6439 ; 6440 return 0; 6441} 6442_ACEOF 6443if ac_fn_c_try_link "$LINENO" 6444then : 6445 eval $cacheid=yes 6446else $as_nop 6447 eval $cacheid=no 6448fi 6449rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6450 conftest$ac_exeext conftest.$ac_ext 6451fi 6452 6453 6454 CFLAGS="$xorg_testset_save_CFLAGS" 6455 6456 eval supported=\$$cacheid 6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6458printf "%s\n" "$supported" >&6; } 6459 if test "$supported" = "yes" ; then 6460 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6461 found="yes" 6462 fi 6463 fi 6464 6465 6466 6467# These are currently disabled because they are noisy. They will be enabled 6468# in the future once the codebase is sufficiently modernized to silence 6469# them. For now, I don't want them to drown out the other warnings. 6470# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6471# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6472# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6473 6474# Turn some warnings into errors, so we don't accidently get successful builds 6475# when there are problems that should be fixed. 6476 6477if test "x$SELECTIVE_WERROR" = "xyes" ; then 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491xorg_testset_save_CFLAGS="$CFLAGS" 6492 6493if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6496printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6497if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6498then : 6499 printf %s "(cached) " >&6 6500else $as_nop 6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6502/* end confdefs.h. */ 6503int i; 6504_ACEOF 6505if ac_fn_c_try_compile "$LINENO" 6506then : 6507 xorg_cv_cc_flag_unknown_warning_option=yes 6508else $as_nop 6509 xorg_cv_cc_flag_unknown_warning_option=no 6510fi 6511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6512fi 6513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6514printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6516 CFLAGS="$xorg_testset_save_CFLAGS" 6517fi 6518 6519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6522 fi 6523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6525printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6526if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6527then : 6528 printf %s "(cached) " >&6 6529else $as_nop 6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6531/* end confdefs.h. */ 6532int i; 6533_ACEOF 6534if ac_fn_c_try_compile "$LINENO" 6535then : 6536 xorg_cv_cc_flag_unused_command_line_argument=yes 6537else $as_nop 6538 xorg_cv_cc_flag_unused_command_line_argument=no 6539fi 6540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6541fi 6542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6543printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6544 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6545 CFLAGS="$xorg_testset_save_CFLAGS" 6546fi 6547 6548found="no" 6549 6550 if test $found = "no" ; then 6551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6553 fi 6554 6555 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6557 fi 6558 6559 CFLAGS="$CFLAGS -Werror=implicit" 6560 6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6562printf %s "checking if $CC supports -Werror=implicit... " >&6; } 6563 cacheid=xorg_cv_cc_flag__Werror_implicit 6564 if eval test \${$cacheid+y} 6565then : 6566 printf %s "(cached) " >&6 6567else $as_nop 6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6569/* end confdefs.h. */ 6570int i; 6571int 6572main (void) 6573{ 6574 6575 ; 6576 return 0; 6577} 6578_ACEOF 6579if ac_fn_c_try_link "$LINENO" 6580then : 6581 eval $cacheid=yes 6582else $as_nop 6583 eval $cacheid=no 6584fi 6585rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6586 conftest$ac_exeext conftest.$ac_ext 6587fi 6588 6589 6590 CFLAGS="$xorg_testset_save_CFLAGS" 6591 6592 eval supported=\$$cacheid 6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6594printf "%s\n" "$supported" >&6; } 6595 if test "$supported" = "yes" ; then 6596 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6597 found="yes" 6598 fi 6599 fi 6600 6601 if test $found = "no" ; then 6602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6604 fi 6605 6606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6608 fi 6609 6610 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6611 6612 { 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 6613printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6614 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6615 if eval test \${$cacheid+y} 6616then : 6617 printf %s "(cached) " >&6 6618else $as_nop 6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6620/* end confdefs.h. */ 6621int i; 6622int 6623main (void) 6624{ 6625 6626 ; 6627 return 0; 6628} 6629_ACEOF 6630if ac_fn_c_try_link "$LINENO" 6631then : 6632 eval $cacheid=yes 6633else $as_nop 6634 eval $cacheid=no 6635fi 6636rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6637 conftest$ac_exeext conftest.$ac_ext 6638fi 6639 6640 6641 CFLAGS="$xorg_testset_save_CFLAGS" 6642 6643 eval supported=\$$cacheid 6644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6645printf "%s\n" "$supported" >&6; } 6646 if test "$supported" = "yes" ; then 6647 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6648 found="yes" 6649 fi 6650 fi 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666xorg_testset_save_CFLAGS="$CFLAGS" 6667 6668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6671printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6672if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6673then : 6674 printf %s "(cached) " >&6 6675else $as_nop 6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6677/* end confdefs.h. */ 6678int i; 6679_ACEOF 6680if ac_fn_c_try_compile "$LINENO" 6681then : 6682 xorg_cv_cc_flag_unknown_warning_option=yes 6683else $as_nop 6684 xorg_cv_cc_flag_unknown_warning_option=no 6685fi 6686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6687fi 6688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6689printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6690 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6691 CFLAGS="$xorg_testset_save_CFLAGS" 6692fi 6693 6694if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6697 fi 6698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6700printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6701if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6702then : 6703 printf %s "(cached) " >&6 6704else $as_nop 6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6706/* end confdefs.h. */ 6707int i; 6708_ACEOF 6709if ac_fn_c_try_compile "$LINENO" 6710then : 6711 xorg_cv_cc_flag_unused_command_line_argument=yes 6712else $as_nop 6713 xorg_cv_cc_flag_unused_command_line_argument=no 6714fi 6715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6716fi 6717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6718printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6720 CFLAGS="$xorg_testset_save_CFLAGS" 6721fi 6722 6723found="no" 6724 6725 if test $found = "no" ; then 6726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6728 fi 6729 6730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6732 fi 6733 6734 CFLAGS="$CFLAGS -Werror=nonnull" 6735 6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6737printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 6738 cacheid=xorg_cv_cc_flag__Werror_nonnull 6739 if eval test \${$cacheid+y} 6740then : 6741 printf %s "(cached) " >&6 6742else $as_nop 6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6744/* end confdefs.h. */ 6745int i; 6746int 6747main (void) 6748{ 6749 6750 ; 6751 return 0; 6752} 6753_ACEOF 6754if ac_fn_c_try_link "$LINENO" 6755then : 6756 eval $cacheid=yes 6757else $as_nop 6758 eval $cacheid=no 6759fi 6760rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6761 conftest$ac_exeext conftest.$ac_ext 6762fi 6763 6764 6765 CFLAGS="$xorg_testset_save_CFLAGS" 6766 6767 eval supported=\$$cacheid 6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6769printf "%s\n" "$supported" >&6; } 6770 if test "$supported" = "yes" ; then 6771 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6772 found="yes" 6773 fi 6774 fi 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790xorg_testset_save_CFLAGS="$CFLAGS" 6791 6792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6795printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6796if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6797then : 6798 printf %s "(cached) " >&6 6799else $as_nop 6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6801/* end confdefs.h. */ 6802int i; 6803_ACEOF 6804if ac_fn_c_try_compile "$LINENO" 6805then : 6806 xorg_cv_cc_flag_unknown_warning_option=yes 6807else $as_nop 6808 xorg_cv_cc_flag_unknown_warning_option=no 6809fi 6810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6811fi 6812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6813printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6815 CFLAGS="$xorg_testset_save_CFLAGS" 6816fi 6817 6818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6821 fi 6822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6824printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6825if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6826then : 6827 printf %s "(cached) " >&6 6828else $as_nop 6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6830/* end confdefs.h. */ 6831int i; 6832_ACEOF 6833if ac_fn_c_try_compile "$LINENO" 6834then : 6835 xorg_cv_cc_flag_unused_command_line_argument=yes 6836else $as_nop 6837 xorg_cv_cc_flag_unused_command_line_argument=no 6838fi 6839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6840fi 6841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6842printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6844 CFLAGS="$xorg_testset_save_CFLAGS" 6845fi 6846 6847found="no" 6848 6849 if test $found = "no" ; then 6850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6852 fi 6853 6854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6856 fi 6857 6858 CFLAGS="$CFLAGS -Werror=init-self" 6859 6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6861printf %s "checking if $CC supports -Werror=init-self... " >&6; } 6862 cacheid=xorg_cv_cc_flag__Werror_init_self 6863 if eval test \${$cacheid+y} 6864then : 6865 printf %s "(cached) " >&6 6866else $as_nop 6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6868/* end confdefs.h. */ 6869int i; 6870int 6871main (void) 6872{ 6873 6874 ; 6875 return 0; 6876} 6877_ACEOF 6878if ac_fn_c_try_link "$LINENO" 6879then : 6880 eval $cacheid=yes 6881else $as_nop 6882 eval $cacheid=no 6883fi 6884rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6885 conftest$ac_exeext conftest.$ac_ext 6886fi 6887 6888 6889 CFLAGS="$xorg_testset_save_CFLAGS" 6890 6891 eval supported=\$$cacheid 6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6893printf "%s\n" "$supported" >&6; } 6894 if test "$supported" = "yes" ; then 6895 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6896 found="yes" 6897 fi 6898 fi 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914xorg_testset_save_CFLAGS="$CFLAGS" 6915 6916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6919printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6920if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6921then : 6922 printf %s "(cached) " >&6 6923else $as_nop 6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6925/* end confdefs.h. */ 6926int i; 6927_ACEOF 6928if ac_fn_c_try_compile "$LINENO" 6929then : 6930 xorg_cv_cc_flag_unknown_warning_option=yes 6931else $as_nop 6932 xorg_cv_cc_flag_unknown_warning_option=no 6933fi 6934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6935fi 6936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6937printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6939 CFLAGS="$xorg_testset_save_CFLAGS" 6940fi 6941 6942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6945 fi 6946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6948printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6949if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6950then : 6951 printf %s "(cached) " >&6 6952else $as_nop 6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6954/* end confdefs.h. */ 6955int i; 6956_ACEOF 6957if ac_fn_c_try_compile "$LINENO" 6958then : 6959 xorg_cv_cc_flag_unused_command_line_argument=yes 6960else $as_nop 6961 xorg_cv_cc_flag_unused_command_line_argument=no 6962fi 6963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6964fi 6965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6966printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6968 CFLAGS="$xorg_testset_save_CFLAGS" 6969fi 6970 6971found="no" 6972 6973 if test $found = "no" ; then 6974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6976 fi 6977 6978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6980 fi 6981 6982 CFLAGS="$CFLAGS -Werror=main" 6983 6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 6985printf %s "checking if $CC supports -Werror=main... " >&6; } 6986 cacheid=xorg_cv_cc_flag__Werror_main 6987 if eval test \${$cacheid+y} 6988then : 6989 printf %s "(cached) " >&6 6990else $as_nop 6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6992/* end confdefs.h. */ 6993int i; 6994int 6995main (void) 6996{ 6997 6998 ; 6999 return 0; 7000} 7001_ACEOF 7002if ac_fn_c_try_link "$LINENO" 7003then : 7004 eval $cacheid=yes 7005else $as_nop 7006 eval $cacheid=no 7007fi 7008rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7009 conftest$ac_exeext conftest.$ac_ext 7010fi 7011 7012 7013 CFLAGS="$xorg_testset_save_CFLAGS" 7014 7015 eval supported=\$$cacheid 7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7017printf "%s\n" "$supported" >&6; } 7018 if test "$supported" = "yes" ; then 7019 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7020 found="yes" 7021 fi 7022 fi 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038xorg_testset_save_CFLAGS="$CFLAGS" 7039 7040if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7043printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7044if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7045then : 7046 printf %s "(cached) " >&6 7047else $as_nop 7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7049/* end confdefs.h. */ 7050int i; 7051_ACEOF 7052if ac_fn_c_try_compile "$LINENO" 7053then : 7054 xorg_cv_cc_flag_unknown_warning_option=yes 7055else $as_nop 7056 xorg_cv_cc_flag_unknown_warning_option=no 7057fi 7058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7059fi 7060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7061printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7063 CFLAGS="$xorg_testset_save_CFLAGS" 7064fi 7065 7066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7069 fi 7070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7072printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7073if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7074then : 7075 printf %s "(cached) " >&6 7076else $as_nop 7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7078/* end confdefs.h. */ 7079int i; 7080_ACEOF 7081if ac_fn_c_try_compile "$LINENO" 7082then : 7083 xorg_cv_cc_flag_unused_command_line_argument=yes 7084else $as_nop 7085 xorg_cv_cc_flag_unused_command_line_argument=no 7086fi 7087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7088fi 7089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7090printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7092 CFLAGS="$xorg_testset_save_CFLAGS" 7093fi 7094 7095found="no" 7096 7097 if test $found = "no" ; then 7098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7100 fi 7101 7102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7104 fi 7105 7106 CFLAGS="$CFLAGS -Werror=missing-braces" 7107 7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7109printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7110 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7111 if eval test \${$cacheid+y} 7112then : 7113 printf %s "(cached) " >&6 7114else $as_nop 7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7116/* end confdefs.h. */ 7117int i; 7118int 7119main (void) 7120{ 7121 7122 ; 7123 return 0; 7124} 7125_ACEOF 7126if ac_fn_c_try_link "$LINENO" 7127then : 7128 eval $cacheid=yes 7129else $as_nop 7130 eval $cacheid=no 7131fi 7132rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7133 conftest$ac_exeext conftest.$ac_ext 7134fi 7135 7136 7137 CFLAGS="$xorg_testset_save_CFLAGS" 7138 7139 eval supported=\$$cacheid 7140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7141printf "%s\n" "$supported" >&6; } 7142 if test "$supported" = "yes" ; then 7143 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7144 found="yes" 7145 fi 7146 fi 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162xorg_testset_save_CFLAGS="$CFLAGS" 7163 7164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7167printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7168if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7169then : 7170 printf %s "(cached) " >&6 7171else $as_nop 7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7173/* end confdefs.h. */ 7174int i; 7175_ACEOF 7176if ac_fn_c_try_compile "$LINENO" 7177then : 7178 xorg_cv_cc_flag_unknown_warning_option=yes 7179else $as_nop 7180 xorg_cv_cc_flag_unknown_warning_option=no 7181fi 7182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7183fi 7184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7185printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7187 CFLAGS="$xorg_testset_save_CFLAGS" 7188fi 7189 7190if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7193 fi 7194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7196printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7197if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7198then : 7199 printf %s "(cached) " >&6 7200else $as_nop 7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7202/* end confdefs.h. */ 7203int i; 7204_ACEOF 7205if ac_fn_c_try_compile "$LINENO" 7206then : 7207 xorg_cv_cc_flag_unused_command_line_argument=yes 7208else $as_nop 7209 xorg_cv_cc_flag_unused_command_line_argument=no 7210fi 7211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7212fi 7213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7214printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7216 CFLAGS="$xorg_testset_save_CFLAGS" 7217fi 7218 7219found="no" 7220 7221 if test $found = "no" ; then 7222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7224 fi 7225 7226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7228 fi 7229 7230 CFLAGS="$CFLAGS -Werror=sequence-point" 7231 7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7233printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7234 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7235 if eval test \${$cacheid+y} 7236then : 7237 printf %s "(cached) " >&6 7238else $as_nop 7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7240/* end confdefs.h. */ 7241int i; 7242int 7243main (void) 7244{ 7245 7246 ; 7247 return 0; 7248} 7249_ACEOF 7250if ac_fn_c_try_link "$LINENO" 7251then : 7252 eval $cacheid=yes 7253else $as_nop 7254 eval $cacheid=no 7255fi 7256rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7257 conftest$ac_exeext conftest.$ac_ext 7258fi 7259 7260 7261 CFLAGS="$xorg_testset_save_CFLAGS" 7262 7263 eval supported=\$$cacheid 7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7265printf "%s\n" "$supported" >&6; } 7266 if test "$supported" = "yes" ; then 7267 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7268 found="yes" 7269 fi 7270 fi 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286xorg_testset_save_CFLAGS="$CFLAGS" 7287 7288if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7291printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7292if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7293then : 7294 printf %s "(cached) " >&6 7295else $as_nop 7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7297/* end confdefs.h. */ 7298int i; 7299_ACEOF 7300if ac_fn_c_try_compile "$LINENO" 7301then : 7302 xorg_cv_cc_flag_unknown_warning_option=yes 7303else $as_nop 7304 xorg_cv_cc_flag_unknown_warning_option=no 7305fi 7306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7307fi 7308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7309printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7311 CFLAGS="$xorg_testset_save_CFLAGS" 7312fi 7313 7314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7317 fi 7318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7320printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7321if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7322then : 7323 printf %s "(cached) " >&6 7324else $as_nop 7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7326/* end confdefs.h. */ 7327int i; 7328_ACEOF 7329if ac_fn_c_try_compile "$LINENO" 7330then : 7331 xorg_cv_cc_flag_unused_command_line_argument=yes 7332else $as_nop 7333 xorg_cv_cc_flag_unused_command_line_argument=no 7334fi 7335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7336fi 7337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7338printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7340 CFLAGS="$xorg_testset_save_CFLAGS" 7341fi 7342 7343found="no" 7344 7345 if test $found = "no" ; then 7346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7348 fi 7349 7350 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7352 fi 7353 7354 CFLAGS="$CFLAGS -Werror=return-type" 7355 7356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7357printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7358 cacheid=xorg_cv_cc_flag__Werror_return_type 7359 if eval test \${$cacheid+y} 7360then : 7361 printf %s "(cached) " >&6 7362else $as_nop 7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7364/* end confdefs.h. */ 7365int i; 7366int 7367main (void) 7368{ 7369 7370 ; 7371 return 0; 7372} 7373_ACEOF 7374if ac_fn_c_try_link "$LINENO" 7375then : 7376 eval $cacheid=yes 7377else $as_nop 7378 eval $cacheid=no 7379fi 7380rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7381 conftest$ac_exeext conftest.$ac_ext 7382fi 7383 7384 7385 CFLAGS="$xorg_testset_save_CFLAGS" 7386 7387 eval supported=\$$cacheid 7388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7389printf "%s\n" "$supported" >&6; } 7390 if test "$supported" = "yes" ; then 7391 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7392 found="yes" 7393 fi 7394 fi 7395 7396 if test $found = "no" ; then 7397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7399 fi 7400 7401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7403 fi 7404 7405 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7406 7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7408printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7409 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7410 if eval test \${$cacheid+y} 7411then : 7412 printf %s "(cached) " >&6 7413else $as_nop 7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7415/* end confdefs.h. */ 7416int i; 7417int 7418main (void) 7419{ 7420 7421 ; 7422 return 0; 7423} 7424_ACEOF 7425if ac_fn_c_try_link "$LINENO" 7426then : 7427 eval $cacheid=yes 7428else $as_nop 7429 eval $cacheid=no 7430fi 7431rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7432 conftest$ac_exeext conftest.$ac_ext 7433fi 7434 7435 7436 CFLAGS="$xorg_testset_save_CFLAGS" 7437 7438 eval supported=\$$cacheid 7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7440printf "%s\n" "$supported" >&6; } 7441 if test "$supported" = "yes" ; then 7442 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7443 found="yes" 7444 fi 7445 fi 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461xorg_testset_save_CFLAGS="$CFLAGS" 7462 7463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7466printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7467if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7468then : 7469 printf %s "(cached) " >&6 7470else $as_nop 7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7472/* end confdefs.h. */ 7473int i; 7474_ACEOF 7475if ac_fn_c_try_compile "$LINENO" 7476then : 7477 xorg_cv_cc_flag_unknown_warning_option=yes 7478else $as_nop 7479 xorg_cv_cc_flag_unknown_warning_option=no 7480fi 7481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7482fi 7483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7484printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7486 CFLAGS="$xorg_testset_save_CFLAGS" 7487fi 7488 7489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7492 fi 7493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7495printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7496if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7497then : 7498 printf %s "(cached) " >&6 7499else $as_nop 7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7501/* end confdefs.h. */ 7502int i; 7503_ACEOF 7504if ac_fn_c_try_compile "$LINENO" 7505then : 7506 xorg_cv_cc_flag_unused_command_line_argument=yes 7507else $as_nop 7508 xorg_cv_cc_flag_unused_command_line_argument=no 7509fi 7510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7511fi 7512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7513printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7515 CFLAGS="$xorg_testset_save_CFLAGS" 7516fi 7517 7518found="no" 7519 7520 if test $found = "no" ; then 7521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7523 fi 7524 7525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7527 fi 7528 7529 CFLAGS="$CFLAGS -Werror=trigraphs" 7530 7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7532printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 7533 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7534 if eval test \${$cacheid+y} 7535then : 7536 printf %s "(cached) " >&6 7537else $as_nop 7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7539/* end confdefs.h. */ 7540int i; 7541int 7542main (void) 7543{ 7544 7545 ; 7546 return 0; 7547} 7548_ACEOF 7549if ac_fn_c_try_link "$LINENO" 7550then : 7551 eval $cacheid=yes 7552else $as_nop 7553 eval $cacheid=no 7554fi 7555rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7556 conftest$ac_exeext conftest.$ac_ext 7557fi 7558 7559 7560 CFLAGS="$xorg_testset_save_CFLAGS" 7561 7562 eval supported=\$$cacheid 7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7564printf "%s\n" "$supported" >&6; } 7565 if test "$supported" = "yes" ; then 7566 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7567 found="yes" 7568 fi 7569 fi 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585xorg_testset_save_CFLAGS="$CFLAGS" 7586 7587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7590printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7591if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7592then : 7593 printf %s "(cached) " >&6 7594else $as_nop 7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7596/* end confdefs.h. */ 7597int i; 7598_ACEOF 7599if ac_fn_c_try_compile "$LINENO" 7600then : 7601 xorg_cv_cc_flag_unknown_warning_option=yes 7602else $as_nop 7603 xorg_cv_cc_flag_unknown_warning_option=no 7604fi 7605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7606fi 7607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7608printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7610 CFLAGS="$xorg_testset_save_CFLAGS" 7611fi 7612 7613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7616 fi 7617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7619printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7620if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7621then : 7622 printf %s "(cached) " >&6 7623else $as_nop 7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7625/* end confdefs.h. */ 7626int i; 7627_ACEOF 7628if ac_fn_c_try_compile "$LINENO" 7629then : 7630 xorg_cv_cc_flag_unused_command_line_argument=yes 7631else $as_nop 7632 xorg_cv_cc_flag_unused_command_line_argument=no 7633fi 7634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7635fi 7636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7637printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7639 CFLAGS="$xorg_testset_save_CFLAGS" 7640fi 7641 7642found="no" 7643 7644 if test $found = "no" ; then 7645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7647 fi 7648 7649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7651 fi 7652 7653 CFLAGS="$CFLAGS -Werror=array-bounds" 7654 7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7656printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 7657 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7658 if eval test \${$cacheid+y} 7659then : 7660 printf %s "(cached) " >&6 7661else $as_nop 7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7663/* end confdefs.h. */ 7664int i; 7665int 7666main (void) 7667{ 7668 7669 ; 7670 return 0; 7671} 7672_ACEOF 7673if ac_fn_c_try_link "$LINENO" 7674then : 7675 eval $cacheid=yes 7676else $as_nop 7677 eval $cacheid=no 7678fi 7679rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7680 conftest$ac_exeext conftest.$ac_ext 7681fi 7682 7683 7684 CFLAGS="$xorg_testset_save_CFLAGS" 7685 7686 eval supported=\$$cacheid 7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7688printf "%s\n" "$supported" >&6; } 7689 if test "$supported" = "yes" ; then 7690 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7691 found="yes" 7692 fi 7693 fi 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709xorg_testset_save_CFLAGS="$CFLAGS" 7710 7711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7714printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7715if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7716then : 7717 printf %s "(cached) " >&6 7718else $as_nop 7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7720/* end confdefs.h. */ 7721int i; 7722_ACEOF 7723if ac_fn_c_try_compile "$LINENO" 7724then : 7725 xorg_cv_cc_flag_unknown_warning_option=yes 7726else $as_nop 7727 xorg_cv_cc_flag_unknown_warning_option=no 7728fi 7729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7730fi 7731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7732printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7734 CFLAGS="$xorg_testset_save_CFLAGS" 7735fi 7736 7737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7740 fi 7741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7743printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7744if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7745then : 7746 printf %s "(cached) " >&6 7747else $as_nop 7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7749/* end confdefs.h. */ 7750int i; 7751_ACEOF 7752if ac_fn_c_try_compile "$LINENO" 7753then : 7754 xorg_cv_cc_flag_unused_command_line_argument=yes 7755else $as_nop 7756 xorg_cv_cc_flag_unused_command_line_argument=no 7757fi 7758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7759fi 7760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7761printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7763 CFLAGS="$xorg_testset_save_CFLAGS" 7764fi 7765 7766found="no" 7767 7768 if test $found = "no" ; then 7769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7771 fi 7772 7773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7775 fi 7776 7777 CFLAGS="$CFLAGS -Werror=write-strings" 7778 7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7780printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 7781 cacheid=xorg_cv_cc_flag__Werror_write_strings 7782 if eval test \${$cacheid+y} 7783then : 7784 printf %s "(cached) " >&6 7785else $as_nop 7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7787/* end confdefs.h. */ 7788int i; 7789int 7790main (void) 7791{ 7792 7793 ; 7794 return 0; 7795} 7796_ACEOF 7797if ac_fn_c_try_link "$LINENO" 7798then : 7799 eval $cacheid=yes 7800else $as_nop 7801 eval $cacheid=no 7802fi 7803rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7804 conftest$ac_exeext conftest.$ac_ext 7805fi 7806 7807 7808 CFLAGS="$xorg_testset_save_CFLAGS" 7809 7810 eval supported=\$$cacheid 7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7812printf "%s\n" "$supported" >&6; } 7813 if test "$supported" = "yes" ; then 7814 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7815 found="yes" 7816 fi 7817 fi 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833xorg_testset_save_CFLAGS="$CFLAGS" 7834 7835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7838printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7839if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7840then : 7841 printf %s "(cached) " >&6 7842else $as_nop 7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7844/* end confdefs.h. */ 7845int i; 7846_ACEOF 7847if ac_fn_c_try_compile "$LINENO" 7848then : 7849 xorg_cv_cc_flag_unknown_warning_option=yes 7850else $as_nop 7851 xorg_cv_cc_flag_unknown_warning_option=no 7852fi 7853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7854fi 7855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7856printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7858 CFLAGS="$xorg_testset_save_CFLAGS" 7859fi 7860 7861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7864 fi 7865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7867printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7868if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7869then : 7870 printf %s "(cached) " >&6 7871else $as_nop 7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7873/* end confdefs.h. */ 7874int i; 7875_ACEOF 7876if ac_fn_c_try_compile "$LINENO" 7877then : 7878 xorg_cv_cc_flag_unused_command_line_argument=yes 7879else $as_nop 7880 xorg_cv_cc_flag_unused_command_line_argument=no 7881fi 7882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7883fi 7884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7885printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7887 CFLAGS="$xorg_testset_save_CFLAGS" 7888fi 7889 7890found="no" 7891 7892 if test $found = "no" ; then 7893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7895 fi 7896 7897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7899 fi 7900 7901 CFLAGS="$CFLAGS -Werror=address" 7902 7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7904printf %s "checking if $CC supports -Werror=address... " >&6; } 7905 cacheid=xorg_cv_cc_flag__Werror_address 7906 if eval test \${$cacheid+y} 7907then : 7908 printf %s "(cached) " >&6 7909else $as_nop 7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7911/* end confdefs.h. */ 7912int i; 7913int 7914main (void) 7915{ 7916 7917 ; 7918 return 0; 7919} 7920_ACEOF 7921if ac_fn_c_try_link "$LINENO" 7922then : 7923 eval $cacheid=yes 7924else $as_nop 7925 eval $cacheid=no 7926fi 7927rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7928 conftest$ac_exeext conftest.$ac_ext 7929fi 7930 7931 7932 CFLAGS="$xorg_testset_save_CFLAGS" 7933 7934 eval supported=\$$cacheid 7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7936printf "%s\n" "$supported" >&6; } 7937 if test "$supported" = "yes" ; then 7938 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7939 found="yes" 7940 fi 7941 fi 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957xorg_testset_save_CFLAGS="$CFLAGS" 7958 7959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7962printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7963if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7964then : 7965 printf %s "(cached) " >&6 7966else $as_nop 7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7968/* end confdefs.h. */ 7969int i; 7970_ACEOF 7971if ac_fn_c_try_compile "$LINENO" 7972then : 7973 xorg_cv_cc_flag_unknown_warning_option=yes 7974else $as_nop 7975 xorg_cv_cc_flag_unknown_warning_option=no 7976fi 7977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7978fi 7979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7980printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7982 CFLAGS="$xorg_testset_save_CFLAGS" 7983fi 7984 7985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7988 fi 7989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7991printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7992if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7993then : 7994 printf %s "(cached) " >&6 7995else $as_nop 7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7997/* end confdefs.h. */ 7998int i; 7999_ACEOF 8000if ac_fn_c_try_compile "$LINENO" 8001then : 8002 xorg_cv_cc_flag_unused_command_line_argument=yes 8003else $as_nop 8004 xorg_cv_cc_flag_unused_command_line_argument=no 8005fi 8006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8007fi 8008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8009printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8011 CFLAGS="$xorg_testset_save_CFLAGS" 8012fi 8013 8014found="no" 8015 8016 if test $found = "no" ; then 8017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8019 fi 8020 8021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8023 fi 8024 8025 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8026 8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8028printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8029 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8030 if eval test \${$cacheid+y} 8031then : 8032 printf %s "(cached) " >&6 8033else $as_nop 8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8035/* end confdefs.h. */ 8036int i; 8037int 8038main (void) 8039{ 8040 8041 ; 8042 return 0; 8043} 8044_ACEOF 8045if ac_fn_c_try_link "$LINENO" 8046then : 8047 eval $cacheid=yes 8048else $as_nop 8049 eval $cacheid=no 8050fi 8051rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8052 conftest$ac_exeext conftest.$ac_ext 8053fi 8054 8055 8056 CFLAGS="$xorg_testset_save_CFLAGS" 8057 8058 eval supported=\$$cacheid 8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8060printf "%s\n" "$supported" >&6; } 8061 if test "$supported" = "yes" ; then 8062 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8063 found="yes" 8064 fi 8065 fi 8066 8067 if test $found = "no" ; then 8068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8070 fi 8071 8072 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8074 fi 8075 8076 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8077 8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8079printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8080 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8081 if eval test \${$cacheid+y} 8082then : 8083 printf %s "(cached) " >&6 8084else $as_nop 8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8086/* end confdefs.h. */ 8087int i; 8088int 8089main (void) 8090{ 8091 8092 ; 8093 return 0; 8094} 8095_ACEOF 8096if ac_fn_c_try_link "$LINENO" 8097then : 8098 eval $cacheid=yes 8099else $as_nop 8100 eval $cacheid=no 8101fi 8102rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8103 conftest$ac_exeext conftest.$ac_ext 8104fi 8105 8106 8107 CFLAGS="$xorg_testset_save_CFLAGS" 8108 8109 eval supported=\$$cacheid 8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8111printf "%s\n" "$supported" >&6; } 8112 if test "$supported" = "yes" ; then 8113 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8114 found="yes" 8115 fi 8116 fi 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132xorg_testset_save_CFLAGS="$CFLAGS" 8133 8134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8137printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8138if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8139then : 8140 printf %s "(cached) " >&6 8141else $as_nop 8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8143/* end confdefs.h. */ 8144int i; 8145_ACEOF 8146if ac_fn_c_try_compile "$LINENO" 8147then : 8148 xorg_cv_cc_flag_unknown_warning_option=yes 8149else $as_nop 8150 xorg_cv_cc_flag_unknown_warning_option=no 8151fi 8152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8153fi 8154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8155printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8157 CFLAGS="$xorg_testset_save_CFLAGS" 8158fi 8159 8160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8163 fi 8164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8166printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8167if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8168then : 8169 printf %s "(cached) " >&6 8170else $as_nop 8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8172/* end confdefs.h. */ 8173int i; 8174_ACEOF 8175if ac_fn_c_try_compile "$LINENO" 8176then : 8177 xorg_cv_cc_flag_unused_command_line_argument=yes 8178else $as_nop 8179 xorg_cv_cc_flag_unused_command_line_argument=no 8180fi 8181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8182fi 8183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8184printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8186 CFLAGS="$xorg_testset_save_CFLAGS" 8187fi 8188 8189found="no" 8190 8191 if test $found = "no" ; then 8192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8194 fi 8195 8196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8198 fi 8199 8200 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8201 8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8203printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8204 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8205 if eval test \${$cacheid+y} 8206then : 8207 printf %s "(cached) " >&6 8208else $as_nop 8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8210/* end confdefs.h. */ 8211int i; 8212int 8213main (void) 8214{ 8215 8216 ; 8217 return 0; 8218} 8219_ACEOF 8220if ac_fn_c_try_link "$LINENO" 8221then : 8222 eval $cacheid=yes 8223else $as_nop 8224 eval $cacheid=no 8225fi 8226rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8227 conftest$ac_exeext conftest.$ac_ext 8228fi 8229 8230 8231 CFLAGS="$xorg_testset_save_CFLAGS" 8232 8233 eval supported=\$$cacheid 8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8235printf "%s\n" "$supported" >&6; } 8236 if test "$supported" = "yes" ; then 8237 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8238 found="yes" 8239 fi 8240 fi 8241 8242 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8243else 8244{ 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 8245printf "%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;} 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259xorg_testset_save_CFLAGS="$CFLAGS" 8260 8261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8264printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8265if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8266then : 8267 printf %s "(cached) " >&6 8268else $as_nop 8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8270/* end confdefs.h. */ 8271int i; 8272_ACEOF 8273if ac_fn_c_try_compile "$LINENO" 8274then : 8275 xorg_cv_cc_flag_unknown_warning_option=yes 8276else $as_nop 8277 xorg_cv_cc_flag_unknown_warning_option=no 8278fi 8279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8280fi 8281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8282printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8284 CFLAGS="$xorg_testset_save_CFLAGS" 8285fi 8286 8287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8290 fi 8291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8293printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8294if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8295then : 8296 printf %s "(cached) " >&6 8297else $as_nop 8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8299/* end confdefs.h. */ 8300int i; 8301_ACEOF 8302if ac_fn_c_try_compile "$LINENO" 8303then : 8304 xorg_cv_cc_flag_unused_command_line_argument=yes 8305else $as_nop 8306 xorg_cv_cc_flag_unused_command_line_argument=no 8307fi 8308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8309fi 8310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8311printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8313 CFLAGS="$xorg_testset_save_CFLAGS" 8314fi 8315 8316found="no" 8317 8318 if test $found = "no" ; then 8319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8321 fi 8322 8323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8325 fi 8326 8327 CFLAGS="$CFLAGS -Wimplicit" 8328 8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8330printf %s "checking if $CC supports -Wimplicit... " >&6; } 8331 cacheid=xorg_cv_cc_flag__Wimplicit 8332 if eval test \${$cacheid+y} 8333then : 8334 printf %s "(cached) " >&6 8335else $as_nop 8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8337/* end confdefs.h. */ 8338int i; 8339int 8340main (void) 8341{ 8342 8343 ; 8344 return 0; 8345} 8346_ACEOF 8347if ac_fn_c_try_link "$LINENO" 8348then : 8349 eval $cacheid=yes 8350else $as_nop 8351 eval $cacheid=no 8352fi 8353rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8354 conftest$ac_exeext conftest.$ac_ext 8355fi 8356 8357 8358 CFLAGS="$xorg_testset_save_CFLAGS" 8359 8360 eval supported=\$$cacheid 8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8362printf "%s\n" "$supported" >&6; } 8363 if test "$supported" = "yes" ; then 8364 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8365 found="yes" 8366 fi 8367 fi 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383xorg_testset_save_CFLAGS="$CFLAGS" 8384 8385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8388printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8389if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8390then : 8391 printf %s "(cached) " >&6 8392else $as_nop 8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8394/* end confdefs.h. */ 8395int i; 8396_ACEOF 8397if ac_fn_c_try_compile "$LINENO" 8398then : 8399 xorg_cv_cc_flag_unknown_warning_option=yes 8400else $as_nop 8401 xorg_cv_cc_flag_unknown_warning_option=no 8402fi 8403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8404fi 8405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8406printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8408 CFLAGS="$xorg_testset_save_CFLAGS" 8409fi 8410 8411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8414 fi 8415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8417printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8418if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8419then : 8420 printf %s "(cached) " >&6 8421else $as_nop 8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8423/* end confdefs.h. */ 8424int i; 8425_ACEOF 8426if ac_fn_c_try_compile "$LINENO" 8427then : 8428 xorg_cv_cc_flag_unused_command_line_argument=yes 8429else $as_nop 8430 xorg_cv_cc_flag_unused_command_line_argument=no 8431fi 8432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8433fi 8434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8435printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8437 CFLAGS="$xorg_testset_save_CFLAGS" 8438fi 8439 8440found="no" 8441 8442 if test $found = "no" ; then 8443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8445 fi 8446 8447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8449 fi 8450 8451 CFLAGS="$CFLAGS -Wnonnull" 8452 8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8454printf %s "checking if $CC supports -Wnonnull... " >&6; } 8455 cacheid=xorg_cv_cc_flag__Wnonnull 8456 if eval test \${$cacheid+y} 8457then : 8458 printf %s "(cached) " >&6 8459else $as_nop 8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8461/* end confdefs.h. */ 8462int i; 8463int 8464main (void) 8465{ 8466 8467 ; 8468 return 0; 8469} 8470_ACEOF 8471if ac_fn_c_try_link "$LINENO" 8472then : 8473 eval $cacheid=yes 8474else $as_nop 8475 eval $cacheid=no 8476fi 8477rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8478 conftest$ac_exeext conftest.$ac_ext 8479fi 8480 8481 8482 CFLAGS="$xorg_testset_save_CFLAGS" 8483 8484 eval supported=\$$cacheid 8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8486printf "%s\n" "$supported" >&6; } 8487 if test "$supported" = "yes" ; then 8488 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8489 found="yes" 8490 fi 8491 fi 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507xorg_testset_save_CFLAGS="$CFLAGS" 8508 8509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8512printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8513if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8514then : 8515 printf %s "(cached) " >&6 8516else $as_nop 8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8518/* end confdefs.h. */ 8519int i; 8520_ACEOF 8521if ac_fn_c_try_compile "$LINENO" 8522then : 8523 xorg_cv_cc_flag_unknown_warning_option=yes 8524else $as_nop 8525 xorg_cv_cc_flag_unknown_warning_option=no 8526fi 8527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8528fi 8529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8530printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8532 CFLAGS="$xorg_testset_save_CFLAGS" 8533fi 8534 8535if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8538 fi 8539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8541printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8542if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8543then : 8544 printf %s "(cached) " >&6 8545else $as_nop 8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8547/* end confdefs.h. */ 8548int i; 8549_ACEOF 8550if ac_fn_c_try_compile "$LINENO" 8551then : 8552 xorg_cv_cc_flag_unused_command_line_argument=yes 8553else $as_nop 8554 xorg_cv_cc_flag_unused_command_line_argument=no 8555fi 8556rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8557fi 8558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8559printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8561 CFLAGS="$xorg_testset_save_CFLAGS" 8562fi 8563 8564found="no" 8565 8566 if test $found = "no" ; then 8567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8569 fi 8570 8571 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8573 fi 8574 8575 CFLAGS="$CFLAGS -Winit-self" 8576 8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8578printf %s "checking if $CC supports -Winit-self... " >&6; } 8579 cacheid=xorg_cv_cc_flag__Winit_self 8580 if eval test \${$cacheid+y} 8581then : 8582 printf %s "(cached) " >&6 8583else $as_nop 8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8585/* end confdefs.h. */ 8586int i; 8587int 8588main (void) 8589{ 8590 8591 ; 8592 return 0; 8593} 8594_ACEOF 8595if ac_fn_c_try_link "$LINENO" 8596then : 8597 eval $cacheid=yes 8598else $as_nop 8599 eval $cacheid=no 8600fi 8601rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8602 conftest$ac_exeext conftest.$ac_ext 8603fi 8604 8605 8606 CFLAGS="$xorg_testset_save_CFLAGS" 8607 8608 eval supported=\$$cacheid 8609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8610printf "%s\n" "$supported" >&6; } 8611 if test "$supported" = "yes" ; then 8612 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8613 found="yes" 8614 fi 8615 fi 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631xorg_testset_save_CFLAGS="$CFLAGS" 8632 8633if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8636printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8637if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8638then : 8639 printf %s "(cached) " >&6 8640else $as_nop 8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8642/* end confdefs.h. */ 8643int i; 8644_ACEOF 8645if ac_fn_c_try_compile "$LINENO" 8646then : 8647 xorg_cv_cc_flag_unknown_warning_option=yes 8648else $as_nop 8649 xorg_cv_cc_flag_unknown_warning_option=no 8650fi 8651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8652fi 8653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8654printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8656 CFLAGS="$xorg_testset_save_CFLAGS" 8657fi 8658 8659if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8662 fi 8663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8665printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8666if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8667then : 8668 printf %s "(cached) " >&6 8669else $as_nop 8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8671/* end confdefs.h. */ 8672int i; 8673_ACEOF 8674if ac_fn_c_try_compile "$LINENO" 8675then : 8676 xorg_cv_cc_flag_unused_command_line_argument=yes 8677else $as_nop 8678 xorg_cv_cc_flag_unused_command_line_argument=no 8679fi 8680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8681fi 8682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8683printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8685 CFLAGS="$xorg_testset_save_CFLAGS" 8686fi 8687 8688found="no" 8689 8690 if test $found = "no" ; then 8691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8693 fi 8694 8695 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8697 fi 8698 8699 CFLAGS="$CFLAGS -Wmain" 8700 8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8702printf %s "checking if $CC supports -Wmain... " >&6; } 8703 cacheid=xorg_cv_cc_flag__Wmain 8704 if eval test \${$cacheid+y} 8705then : 8706 printf %s "(cached) " >&6 8707else $as_nop 8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8709/* end confdefs.h. */ 8710int i; 8711int 8712main (void) 8713{ 8714 8715 ; 8716 return 0; 8717} 8718_ACEOF 8719if ac_fn_c_try_link "$LINENO" 8720then : 8721 eval $cacheid=yes 8722else $as_nop 8723 eval $cacheid=no 8724fi 8725rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8726 conftest$ac_exeext conftest.$ac_ext 8727fi 8728 8729 8730 CFLAGS="$xorg_testset_save_CFLAGS" 8731 8732 eval supported=\$$cacheid 8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8734printf "%s\n" "$supported" >&6; } 8735 if test "$supported" = "yes" ; then 8736 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8737 found="yes" 8738 fi 8739 fi 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755xorg_testset_save_CFLAGS="$CFLAGS" 8756 8757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8760printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8761if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8762then : 8763 printf %s "(cached) " >&6 8764else $as_nop 8765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8766/* end confdefs.h. */ 8767int i; 8768_ACEOF 8769if ac_fn_c_try_compile "$LINENO" 8770then : 8771 xorg_cv_cc_flag_unknown_warning_option=yes 8772else $as_nop 8773 xorg_cv_cc_flag_unknown_warning_option=no 8774fi 8775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8776fi 8777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8778printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8780 CFLAGS="$xorg_testset_save_CFLAGS" 8781fi 8782 8783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8786 fi 8787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8789printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8790if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8791then : 8792 printf %s "(cached) " >&6 8793else $as_nop 8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8795/* end confdefs.h. */ 8796int i; 8797_ACEOF 8798if ac_fn_c_try_compile "$LINENO" 8799then : 8800 xorg_cv_cc_flag_unused_command_line_argument=yes 8801else $as_nop 8802 xorg_cv_cc_flag_unused_command_line_argument=no 8803fi 8804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8805fi 8806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8807printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8809 CFLAGS="$xorg_testset_save_CFLAGS" 8810fi 8811 8812found="no" 8813 8814 if test $found = "no" ; then 8815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8817 fi 8818 8819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8821 fi 8822 8823 CFLAGS="$CFLAGS -Wmissing-braces" 8824 8825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8826printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 8827 cacheid=xorg_cv_cc_flag__Wmissing_braces 8828 if eval test \${$cacheid+y} 8829then : 8830 printf %s "(cached) " >&6 8831else $as_nop 8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8833/* end confdefs.h. */ 8834int i; 8835int 8836main (void) 8837{ 8838 8839 ; 8840 return 0; 8841} 8842_ACEOF 8843if ac_fn_c_try_link "$LINENO" 8844then : 8845 eval $cacheid=yes 8846else $as_nop 8847 eval $cacheid=no 8848fi 8849rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8850 conftest$ac_exeext conftest.$ac_ext 8851fi 8852 8853 8854 CFLAGS="$xorg_testset_save_CFLAGS" 8855 8856 eval supported=\$$cacheid 8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8858printf "%s\n" "$supported" >&6; } 8859 if test "$supported" = "yes" ; then 8860 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8861 found="yes" 8862 fi 8863 fi 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879xorg_testset_save_CFLAGS="$CFLAGS" 8880 8881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8884printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8885if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8886then : 8887 printf %s "(cached) " >&6 8888else $as_nop 8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8890/* end confdefs.h. */ 8891int i; 8892_ACEOF 8893if ac_fn_c_try_compile "$LINENO" 8894then : 8895 xorg_cv_cc_flag_unknown_warning_option=yes 8896else $as_nop 8897 xorg_cv_cc_flag_unknown_warning_option=no 8898fi 8899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8900fi 8901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8902printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8903 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8904 CFLAGS="$xorg_testset_save_CFLAGS" 8905fi 8906 8907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8910 fi 8911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8913printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8914if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8915then : 8916 printf %s "(cached) " >&6 8917else $as_nop 8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8919/* end confdefs.h. */ 8920int i; 8921_ACEOF 8922if ac_fn_c_try_compile "$LINENO" 8923then : 8924 xorg_cv_cc_flag_unused_command_line_argument=yes 8925else $as_nop 8926 xorg_cv_cc_flag_unused_command_line_argument=no 8927fi 8928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8929fi 8930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8931printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8933 CFLAGS="$xorg_testset_save_CFLAGS" 8934fi 8935 8936found="no" 8937 8938 if test $found = "no" ; then 8939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8941 fi 8942 8943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8945 fi 8946 8947 CFLAGS="$CFLAGS -Wsequence-point" 8948 8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8950printf %s "checking if $CC supports -Wsequence-point... " >&6; } 8951 cacheid=xorg_cv_cc_flag__Wsequence_point 8952 if eval test \${$cacheid+y} 8953then : 8954 printf %s "(cached) " >&6 8955else $as_nop 8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8957/* end confdefs.h. */ 8958int i; 8959int 8960main (void) 8961{ 8962 8963 ; 8964 return 0; 8965} 8966_ACEOF 8967if ac_fn_c_try_link "$LINENO" 8968then : 8969 eval $cacheid=yes 8970else $as_nop 8971 eval $cacheid=no 8972fi 8973rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8974 conftest$ac_exeext conftest.$ac_ext 8975fi 8976 8977 8978 CFLAGS="$xorg_testset_save_CFLAGS" 8979 8980 eval supported=\$$cacheid 8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8982printf "%s\n" "$supported" >&6; } 8983 if test "$supported" = "yes" ; then 8984 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 8985 found="yes" 8986 fi 8987 fi 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003xorg_testset_save_CFLAGS="$CFLAGS" 9004 9005if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9008printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9009if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9010then : 9011 printf %s "(cached) " >&6 9012else $as_nop 9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9014/* end confdefs.h. */ 9015int i; 9016_ACEOF 9017if ac_fn_c_try_compile "$LINENO" 9018then : 9019 xorg_cv_cc_flag_unknown_warning_option=yes 9020else $as_nop 9021 xorg_cv_cc_flag_unknown_warning_option=no 9022fi 9023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9024fi 9025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9026printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9027 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9028 CFLAGS="$xorg_testset_save_CFLAGS" 9029fi 9030 9031if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9034 fi 9035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9037printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9038if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9039then : 9040 printf %s "(cached) " >&6 9041else $as_nop 9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9043/* end confdefs.h. */ 9044int i; 9045_ACEOF 9046if ac_fn_c_try_compile "$LINENO" 9047then : 9048 xorg_cv_cc_flag_unused_command_line_argument=yes 9049else $as_nop 9050 xorg_cv_cc_flag_unused_command_line_argument=no 9051fi 9052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9053fi 9054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9055printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9057 CFLAGS="$xorg_testset_save_CFLAGS" 9058fi 9059 9060found="no" 9061 9062 if test $found = "no" ; then 9063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9065 fi 9066 9067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9069 fi 9070 9071 CFLAGS="$CFLAGS -Wreturn-type" 9072 9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9074printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9075 cacheid=xorg_cv_cc_flag__Wreturn_type 9076 if eval test \${$cacheid+y} 9077then : 9078 printf %s "(cached) " >&6 9079else $as_nop 9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9081/* end confdefs.h. */ 9082int i; 9083int 9084main (void) 9085{ 9086 9087 ; 9088 return 0; 9089} 9090_ACEOF 9091if ac_fn_c_try_link "$LINENO" 9092then : 9093 eval $cacheid=yes 9094else $as_nop 9095 eval $cacheid=no 9096fi 9097rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9098 conftest$ac_exeext conftest.$ac_ext 9099fi 9100 9101 9102 CFLAGS="$xorg_testset_save_CFLAGS" 9103 9104 eval supported=\$$cacheid 9105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9106printf "%s\n" "$supported" >&6; } 9107 if test "$supported" = "yes" ; then 9108 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9109 found="yes" 9110 fi 9111 fi 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127xorg_testset_save_CFLAGS="$CFLAGS" 9128 9129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9132printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9133if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9134then : 9135 printf %s "(cached) " >&6 9136else $as_nop 9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9138/* end confdefs.h. */ 9139int i; 9140_ACEOF 9141if ac_fn_c_try_compile "$LINENO" 9142then : 9143 xorg_cv_cc_flag_unknown_warning_option=yes 9144else $as_nop 9145 xorg_cv_cc_flag_unknown_warning_option=no 9146fi 9147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9148fi 9149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9150printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9151 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9152 CFLAGS="$xorg_testset_save_CFLAGS" 9153fi 9154 9155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9158 fi 9159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9161printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9162if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9163then : 9164 printf %s "(cached) " >&6 9165else $as_nop 9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9167/* end confdefs.h. */ 9168int i; 9169_ACEOF 9170if ac_fn_c_try_compile "$LINENO" 9171then : 9172 xorg_cv_cc_flag_unused_command_line_argument=yes 9173else $as_nop 9174 xorg_cv_cc_flag_unused_command_line_argument=no 9175fi 9176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9177fi 9178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9179printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9180 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9181 CFLAGS="$xorg_testset_save_CFLAGS" 9182fi 9183 9184found="no" 9185 9186 if test $found = "no" ; then 9187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9189 fi 9190 9191 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9193 fi 9194 9195 CFLAGS="$CFLAGS -Wtrigraphs" 9196 9197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9198printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9199 cacheid=xorg_cv_cc_flag__Wtrigraphs 9200 if eval test \${$cacheid+y} 9201then : 9202 printf %s "(cached) " >&6 9203else $as_nop 9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9205/* end confdefs.h. */ 9206int i; 9207int 9208main (void) 9209{ 9210 9211 ; 9212 return 0; 9213} 9214_ACEOF 9215if ac_fn_c_try_link "$LINENO" 9216then : 9217 eval $cacheid=yes 9218else $as_nop 9219 eval $cacheid=no 9220fi 9221rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9222 conftest$ac_exeext conftest.$ac_ext 9223fi 9224 9225 9226 CFLAGS="$xorg_testset_save_CFLAGS" 9227 9228 eval supported=\$$cacheid 9229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9230printf "%s\n" "$supported" >&6; } 9231 if test "$supported" = "yes" ; then 9232 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9233 found="yes" 9234 fi 9235 fi 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251xorg_testset_save_CFLAGS="$CFLAGS" 9252 9253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9256printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9257if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9258then : 9259 printf %s "(cached) " >&6 9260else $as_nop 9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9262/* end confdefs.h. */ 9263int i; 9264_ACEOF 9265if ac_fn_c_try_compile "$LINENO" 9266then : 9267 xorg_cv_cc_flag_unknown_warning_option=yes 9268else $as_nop 9269 xorg_cv_cc_flag_unknown_warning_option=no 9270fi 9271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9272fi 9273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9274printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9276 CFLAGS="$xorg_testset_save_CFLAGS" 9277fi 9278 9279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9282 fi 9283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9285printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9286if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9287then : 9288 printf %s "(cached) " >&6 9289else $as_nop 9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9291/* end confdefs.h. */ 9292int i; 9293_ACEOF 9294if ac_fn_c_try_compile "$LINENO" 9295then : 9296 xorg_cv_cc_flag_unused_command_line_argument=yes 9297else $as_nop 9298 xorg_cv_cc_flag_unused_command_line_argument=no 9299fi 9300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9301fi 9302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9303printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9305 CFLAGS="$xorg_testset_save_CFLAGS" 9306fi 9307 9308found="no" 9309 9310 if test $found = "no" ; then 9311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9313 fi 9314 9315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9317 fi 9318 9319 CFLAGS="$CFLAGS -Warray-bounds" 9320 9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9322printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9323 cacheid=xorg_cv_cc_flag__Warray_bounds 9324 if eval test \${$cacheid+y} 9325then : 9326 printf %s "(cached) " >&6 9327else $as_nop 9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9329/* end confdefs.h. */ 9330int i; 9331int 9332main (void) 9333{ 9334 9335 ; 9336 return 0; 9337} 9338_ACEOF 9339if ac_fn_c_try_link "$LINENO" 9340then : 9341 eval $cacheid=yes 9342else $as_nop 9343 eval $cacheid=no 9344fi 9345rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9346 conftest$ac_exeext conftest.$ac_ext 9347fi 9348 9349 9350 CFLAGS="$xorg_testset_save_CFLAGS" 9351 9352 eval supported=\$$cacheid 9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9354printf "%s\n" "$supported" >&6; } 9355 if test "$supported" = "yes" ; then 9356 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9357 found="yes" 9358 fi 9359 fi 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375xorg_testset_save_CFLAGS="$CFLAGS" 9376 9377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9380printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9381if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9382then : 9383 printf %s "(cached) " >&6 9384else $as_nop 9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9386/* end confdefs.h. */ 9387int i; 9388_ACEOF 9389if ac_fn_c_try_compile "$LINENO" 9390then : 9391 xorg_cv_cc_flag_unknown_warning_option=yes 9392else $as_nop 9393 xorg_cv_cc_flag_unknown_warning_option=no 9394fi 9395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9396fi 9397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9398printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9400 CFLAGS="$xorg_testset_save_CFLAGS" 9401fi 9402 9403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9406 fi 9407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9409printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9410if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9411then : 9412 printf %s "(cached) " >&6 9413else $as_nop 9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9415/* end confdefs.h. */ 9416int i; 9417_ACEOF 9418if ac_fn_c_try_compile "$LINENO" 9419then : 9420 xorg_cv_cc_flag_unused_command_line_argument=yes 9421else $as_nop 9422 xorg_cv_cc_flag_unused_command_line_argument=no 9423fi 9424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9425fi 9426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9427printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9429 CFLAGS="$xorg_testset_save_CFLAGS" 9430fi 9431 9432found="no" 9433 9434 if test $found = "no" ; then 9435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9437 fi 9438 9439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9441 fi 9442 9443 CFLAGS="$CFLAGS -Wwrite-strings" 9444 9445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9446printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 9447 cacheid=xorg_cv_cc_flag__Wwrite_strings 9448 if eval test \${$cacheid+y} 9449then : 9450 printf %s "(cached) " >&6 9451else $as_nop 9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9453/* end confdefs.h. */ 9454int i; 9455int 9456main (void) 9457{ 9458 9459 ; 9460 return 0; 9461} 9462_ACEOF 9463if ac_fn_c_try_link "$LINENO" 9464then : 9465 eval $cacheid=yes 9466else $as_nop 9467 eval $cacheid=no 9468fi 9469rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9470 conftest$ac_exeext conftest.$ac_ext 9471fi 9472 9473 9474 CFLAGS="$xorg_testset_save_CFLAGS" 9475 9476 eval supported=\$$cacheid 9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9478printf "%s\n" "$supported" >&6; } 9479 if test "$supported" = "yes" ; then 9480 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9481 found="yes" 9482 fi 9483 fi 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499xorg_testset_save_CFLAGS="$CFLAGS" 9500 9501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9504printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9505if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9506then : 9507 printf %s "(cached) " >&6 9508else $as_nop 9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9510/* end confdefs.h. */ 9511int i; 9512_ACEOF 9513if ac_fn_c_try_compile "$LINENO" 9514then : 9515 xorg_cv_cc_flag_unknown_warning_option=yes 9516else $as_nop 9517 xorg_cv_cc_flag_unknown_warning_option=no 9518fi 9519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9520fi 9521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9522printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9524 CFLAGS="$xorg_testset_save_CFLAGS" 9525fi 9526 9527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9530 fi 9531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9533printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9534if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9535then : 9536 printf %s "(cached) " >&6 9537else $as_nop 9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9539/* end confdefs.h. */ 9540int i; 9541_ACEOF 9542if ac_fn_c_try_compile "$LINENO" 9543then : 9544 xorg_cv_cc_flag_unused_command_line_argument=yes 9545else $as_nop 9546 xorg_cv_cc_flag_unused_command_line_argument=no 9547fi 9548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9549fi 9550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9551printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9553 CFLAGS="$xorg_testset_save_CFLAGS" 9554fi 9555 9556found="no" 9557 9558 if test $found = "no" ; then 9559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9561 fi 9562 9563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9565 fi 9566 9567 CFLAGS="$CFLAGS -Waddress" 9568 9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9570printf %s "checking if $CC supports -Waddress... " >&6; } 9571 cacheid=xorg_cv_cc_flag__Waddress 9572 if eval test \${$cacheid+y} 9573then : 9574 printf %s "(cached) " >&6 9575else $as_nop 9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9577/* end confdefs.h. */ 9578int i; 9579int 9580main (void) 9581{ 9582 9583 ; 9584 return 0; 9585} 9586_ACEOF 9587if ac_fn_c_try_link "$LINENO" 9588then : 9589 eval $cacheid=yes 9590else $as_nop 9591 eval $cacheid=no 9592fi 9593rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9594 conftest$ac_exeext conftest.$ac_ext 9595fi 9596 9597 9598 CFLAGS="$xorg_testset_save_CFLAGS" 9599 9600 eval supported=\$$cacheid 9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9602printf "%s\n" "$supported" >&6; } 9603 if test "$supported" = "yes" ; then 9604 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9605 found="yes" 9606 fi 9607 fi 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623xorg_testset_save_CFLAGS="$CFLAGS" 9624 9625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9628printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9629if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9630then : 9631 printf %s "(cached) " >&6 9632else $as_nop 9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9634/* end confdefs.h. */ 9635int i; 9636_ACEOF 9637if ac_fn_c_try_compile "$LINENO" 9638then : 9639 xorg_cv_cc_flag_unknown_warning_option=yes 9640else $as_nop 9641 xorg_cv_cc_flag_unknown_warning_option=no 9642fi 9643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9644fi 9645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9646printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9648 CFLAGS="$xorg_testset_save_CFLAGS" 9649fi 9650 9651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9654 fi 9655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9657printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9658if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9659then : 9660 printf %s "(cached) " >&6 9661else $as_nop 9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9663/* end confdefs.h. */ 9664int i; 9665_ACEOF 9666if ac_fn_c_try_compile "$LINENO" 9667then : 9668 xorg_cv_cc_flag_unused_command_line_argument=yes 9669else $as_nop 9670 xorg_cv_cc_flag_unused_command_line_argument=no 9671fi 9672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9673fi 9674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9675printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9677 CFLAGS="$xorg_testset_save_CFLAGS" 9678fi 9679 9680found="no" 9681 9682 if test $found = "no" ; then 9683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9685 fi 9686 9687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9689 fi 9690 9691 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9692 9693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9694printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9695 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9696 if eval test \${$cacheid+y} 9697then : 9698 printf %s "(cached) " >&6 9699else $as_nop 9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9701/* end confdefs.h. */ 9702int i; 9703int 9704main (void) 9705{ 9706 9707 ; 9708 return 0; 9709} 9710_ACEOF 9711if ac_fn_c_try_link "$LINENO" 9712then : 9713 eval $cacheid=yes 9714else $as_nop 9715 eval $cacheid=no 9716fi 9717rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9718 conftest$ac_exeext conftest.$ac_ext 9719fi 9720 9721 9722 CFLAGS="$xorg_testset_save_CFLAGS" 9723 9724 eval supported=\$$cacheid 9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9726printf "%s\n" "$supported" >&6; } 9727 if test "$supported" = "yes" ; then 9728 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9729 found="yes" 9730 fi 9731 fi 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747xorg_testset_save_CFLAGS="$CFLAGS" 9748 9749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9752printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9753if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9754then : 9755 printf %s "(cached) " >&6 9756else $as_nop 9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9758/* end confdefs.h. */ 9759int i; 9760_ACEOF 9761if ac_fn_c_try_compile "$LINENO" 9762then : 9763 xorg_cv_cc_flag_unknown_warning_option=yes 9764else $as_nop 9765 xorg_cv_cc_flag_unknown_warning_option=no 9766fi 9767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9768fi 9769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9770printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9772 CFLAGS="$xorg_testset_save_CFLAGS" 9773fi 9774 9775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9778 fi 9779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9781printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9782if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9783then : 9784 printf %s "(cached) " >&6 9785else $as_nop 9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9787/* end confdefs.h. */ 9788int i; 9789_ACEOF 9790if ac_fn_c_try_compile "$LINENO" 9791then : 9792 xorg_cv_cc_flag_unused_command_line_argument=yes 9793else $as_nop 9794 xorg_cv_cc_flag_unused_command_line_argument=no 9795fi 9796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9797fi 9798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9799printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9801 CFLAGS="$xorg_testset_save_CFLAGS" 9802fi 9803 9804found="no" 9805 9806 if test $found = "no" ; then 9807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9809 fi 9810 9811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9813 fi 9814 9815 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9816 9817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9818printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9819 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9820 if eval test \${$cacheid+y} 9821then : 9822 printf %s "(cached) " >&6 9823else $as_nop 9824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9825/* end confdefs.h. */ 9826int i; 9827int 9828main (void) 9829{ 9830 9831 ; 9832 return 0; 9833} 9834_ACEOF 9835if ac_fn_c_try_link "$LINENO" 9836then : 9837 eval $cacheid=yes 9838else $as_nop 9839 eval $cacheid=no 9840fi 9841rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9842 conftest$ac_exeext conftest.$ac_ext 9843fi 9844 9845 9846 CFLAGS="$xorg_testset_save_CFLAGS" 9847 9848 eval supported=\$$cacheid 9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9850printf "%s\n" "$supported" >&6; } 9851 if test "$supported" = "yes" ; then 9852 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9853 found="yes" 9854 fi 9855 fi 9856 9857 9858fi 9859 9860 9861 9862 9863 9864 9865 9866 CWARNFLAGS="$BASE_CFLAGS" 9867 if test "x$GCC" = xyes ; then 9868 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9869 fi 9870 9871 9872 9873 9874 9875 9876 9877 9878# Check whether --enable-strict-compilation was given. 9879if test ${enable_strict_compilation+y} 9880then : 9881 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9882else $as_nop 9883 STRICT_COMPILE=no 9884fi 9885 9886 9887 9888 9889 9890 9891STRICT_CFLAGS="" 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905xorg_testset_save_CFLAGS="$CFLAGS" 9906 9907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9910printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9911if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9912then : 9913 printf %s "(cached) " >&6 9914else $as_nop 9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9916/* end confdefs.h. */ 9917int i; 9918_ACEOF 9919if ac_fn_c_try_compile "$LINENO" 9920then : 9921 xorg_cv_cc_flag_unknown_warning_option=yes 9922else $as_nop 9923 xorg_cv_cc_flag_unknown_warning_option=no 9924fi 9925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9926fi 9927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9928printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9930 CFLAGS="$xorg_testset_save_CFLAGS" 9931fi 9932 9933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9936 fi 9937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9939printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9940if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9941then : 9942 printf %s "(cached) " >&6 9943else $as_nop 9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9945/* end confdefs.h. */ 9946int i; 9947_ACEOF 9948if ac_fn_c_try_compile "$LINENO" 9949then : 9950 xorg_cv_cc_flag_unused_command_line_argument=yes 9951else $as_nop 9952 xorg_cv_cc_flag_unused_command_line_argument=no 9953fi 9954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9955fi 9956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9957printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9958 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9959 CFLAGS="$xorg_testset_save_CFLAGS" 9960fi 9961 9962found="no" 9963 9964 if test $found = "no" ; then 9965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9967 fi 9968 9969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9971 fi 9972 9973 CFLAGS="$CFLAGS -pedantic" 9974 9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9976printf %s "checking if $CC supports -pedantic... " >&6; } 9977 cacheid=xorg_cv_cc_flag__pedantic 9978 if eval test \${$cacheid+y} 9979then : 9980 printf %s "(cached) " >&6 9981else $as_nop 9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9983/* end confdefs.h. */ 9984int i; 9985int 9986main (void) 9987{ 9988 9989 ; 9990 return 0; 9991} 9992_ACEOF 9993if ac_fn_c_try_link "$LINENO" 9994then : 9995 eval $cacheid=yes 9996else $as_nop 9997 eval $cacheid=no 9998fi 9999rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10000 conftest$ac_exeext conftest.$ac_ext 10001fi 10002 10003 10004 CFLAGS="$xorg_testset_save_CFLAGS" 10005 10006 eval supported=\$$cacheid 10007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10008printf "%s\n" "$supported" >&6; } 10009 if test "$supported" = "yes" ; then 10010 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10011 found="yes" 10012 fi 10013 fi 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029xorg_testset_save_CFLAGS="$CFLAGS" 10030 10031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10034printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10035if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10036then : 10037 printf %s "(cached) " >&6 10038else $as_nop 10039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10040/* end confdefs.h. */ 10041int i; 10042_ACEOF 10043if ac_fn_c_try_compile "$LINENO" 10044then : 10045 xorg_cv_cc_flag_unknown_warning_option=yes 10046else $as_nop 10047 xorg_cv_cc_flag_unknown_warning_option=no 10048fi 10049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10050fi 10051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10052printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10054 CFLAGS="$xorg_testset_save_CFLAGS" 10055fi 10056 10057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10060 fi 10061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10063printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10064if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10065then : 10066 printf %s "(cached) " >&6 10067else $as_nop 10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10069/* end confdefs.h. */ 10070int i; 10071_ACEOF 10072if ac_fn_c_try_compile "$LINENO" 10073then : 10074 xorg_cv_cc_flag_unused_command_line_argument=yes 10075else $as_nop 10076 xorg_cv_cc_flag_unused_command_line_argument=no 10077fi 10078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10079fi 10080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10081printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10083 CFLAGS="$xorg_testset_save_CFLAGS" 10084fi 10085 10086found="no" 10087 10088 if test $found = "no" ; then 10089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10091 fi 10092 10093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10095 fi 10096 10097 CFLAGS="$CFLAGS -Werror" 10098 10099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10100printf %s "checking if $CC supports -Werror... " >&6; } 10101 cacheid=xorg_cv_cc_flag__Werror 10102 if eval test \${$cacheid+y} 10103then : 10104 printf %s "(cached) " >&6 10105else $as_nop 10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10107/* end confdefs.h. */ 10108int i; 10109int 10110main (void) 10111{ 10112 10113 ; 10114 return 0; 10115} 10116_ACEOF 10117if ac_fn_c_try_link "$LINENO" 10118then : 10119 eval $cacheid=yes 10120else $as_nop 10121 eval $cacheid=no 10122fi 10123rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10124 conftest$ac_exeext conftest.$ac_ext 10125fi 10126 10127 10128 CFLAGS="$xorg_testset_save_CFLAGS" 10129 10130 eval supported=\$$cacheid 10131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10132printf "%s\n" "$supported" >&6; } 10133 if test "$supported" = "yes" ; then 10134 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10135 found="yes" 10136 fi 10137 fi 10138 10139 if test $found = "no" ; then 10140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10142 fi 10143 10144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10146 fi 10147 10148 CFLAGS="$CFLAGS -errwarn" 10149 10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10151printf %s "checking if $CC supports -errwarn... " >&6; } 10152 cacheid=xorg_cv_cc_flag__errwarn 10153 if eval test \${$cacheid+y} 10154then : 10155 printf %s "(cached) " >&6 10156else $as_nop 10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10158/* end confdefs.h. */ 10159int i; 10160int 10161main (void) 10162{ 10163 10164 ; 10165 return 0; 10166} 10167_ACEOF 10168if ac_fn_c_try_link "$LINENO" 10169then : 10170 eval $cacheid=yes 10171else $as_nop 10172 eval $cacheid=no 10173fi 10174rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10175 conftest$ac_exeext conftest.$ac_ext 10176fi 10177 10178 10179 CFLAGS="$xorg_testset_save_CFLAGS" 10180 10181 eval supported=\$$cacheid 10182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10183printf "%s\n" "$supported" >&6; } 10184 if test "$supported" = "yes" ; then 10185 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10186 found="yes" 10187 fi 10188 fi 10189 10190 10191 10192# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10193# activate it with -Werror, so we add it here explicitly. 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207xorg_testset_save_CFLAGS="$CFLAGS" 10208 10209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10212printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10213if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10214then : 10215 printf %s "(cached) " >&6 10216else $as_nop 10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10218/* end confdefs.h. */ 10219int i; 10220_ACEOF 10221if ac_fn_c_try_compile "$LINENO" 10222then : 10223 xorg_cv_cc_flag_unknown_warning_option=yes 10224else $as_nop 10225 xorg_cv_cc_flag_unknown_warning_option=no 10226fi 10227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10228fi 10229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10230printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10232 CFLAGS="$xorg_testset_save_CFLAGS" 10233fi 10234 10235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10238 fi 10239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10241printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10242if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10243then : 10244 printf %s "(cached) " >&6 10245else $as_nop 10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10247/* end confdefs.h. */ 10248int i; 10249_ACEOF 10250if ac_fn_c_try_compile "$LINENO" 10251then : 10252 xorg_cv_cc_flag_unused_command_line_argument=yes 10253else $as_nop 10254 xorg_cv_cc_flag_unused_command_line_argument=no 10255fi 10256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10257fi 10258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10259printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10261 CFLAGS="$xorg_testset_save_CFLAGS" 10262fi 10263 10264found="no" 10265 10266 if test $found = "no" ; then 10267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10269 fi 10270 10271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10273 fi 10274 10275 CFLAGS="$CFLAGS -Werror=attributes" 10276 10277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10278printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10279 cacheid=xorg_cv_cc_flag__Werror_attributes 10280 if eval test \${$cacheid+y} 10281then : 10282 printf %s "(cached) " >&6 10283else $as_nop 10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10285/* end confdefs.h. */ 10286int i; 10287int 10288main (void) 10289{ 10290 10291 ; 10292 return 0; 10293} 10294_ACEOF 10295if ac_fn_c_try_link "$LINENO" 10296then : 10297 eval $cacheid=yes 10298else $as_nop 10299 eval $cacheid=no 10300fi 10301rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10302 conftest$ac_exeext conftest.$ac_ext 10303fi 10304 10305 10306 CFLAGS="$xorg_testset_save_CFLAGS" 10307 10308 eval supported=\$$cacheid 10309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10310printf "%s\n" "$supported" >&6; } 10311 if test "$supported" = "yes" ; then 10312 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10313 found="yes" 10314 fi 10315 fi 10316 10317 10318 10319if test "x$STRICT_COMPILE" = "xyes"; then 10320 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10321 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10322fi 10323 10324 10325 10326 10327 10328 10329cat >>confdefs.h <<_ACEOF 10330#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10331_ACEOF 10332 10333 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10334 if test "x$PVM" = "x"; then 10335 PVM="0" 10336 fi 10337 10338printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10339 10340 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10341 if test "x$PVP" = "x"; then 10342 PVP="0" 10343 fi 10344 10345printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10346 10347 10348 10349CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10350mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10351|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10352touch \$(top_srcdir)/ChangeLog; \ 10353echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10354 10355 10356 10357 10358macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10359INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10360mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10361|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10362touch \$(top_srcdir)/INSTALL; \ 10363echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10364 10365 10366 10367 10368 10369 10370case $host_os in 10371 solaris*) 10372 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10373 # check for a man page file found in later versions that use 10374 # traditional section numbers instead 10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10376printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10377if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10378then : 10379 printf %s "(cached) " >&6 10380else $as_nop 10381 test "$cross_compiling" = yes && 10382 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10383if test -r "/usr/share/man/man7/attributes.7"; then 10384 ac_cv_file__usr_share_man_man7_attributes_7=yes 10385else 10386 ac_cv_file__usr_share_man_man7_attributes_7=no 10387fi 10388fi 10389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10390printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10391if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10392then : 10393 SYSV_MAN_SECTIONS=false 10394else $as_nop 10395 SYSV_MAN_SECTIONS=true 10396fi 10397 10398 ;; 10399 *) SYSV_MAN_SECTIONS=false ;; 10400esac 10401 10402if test x$APP_MAN_SUFFIX = x ; then 10403 APP_MAN_SUFFIX=1 10404fi 10405if test x$APP_MAN_DIR = x ; then 10406 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10407fi 10408 10409if test x$LIB_MAN_SUFFIX = x ; then 10410 LIB_MAN_SUFFIX=3 10411fi 10412if test x$LIB_MAN_DIR = x ; then 10413 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10414fi 10415 10416if test x$FILE_MAN_SUFFIX = x ; then 10417 case $SYSV_MAN_SECTIONS in 10418 true) FILE_MAN_SUFFIX=4 ;; 10419 *) FILE_MAN_SUFFIX=5 ;; 10420 esac 10421fi 10422if test x$FILE_MAN_DIR = x ; then 10423 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10424fi 10425 10426if test x$MISC_MAN_SUFFIX = x ; then 10427 case $SYSV_MAN_SECTIONS in 10428 true) MISC_MAN_SUFFIX=5 ;; 10429 *) MISC_MAN_SUFFIX=7 ;; 10430 esac 10431fi 10432if test x$MISC_MAN_DIR = x ; then 10433 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10434fi 10435 10436if test x$DRIVER_MAN_SUFFIX = x ; then 10437 case $SYSV_MAN_SECTIONS in 10438 true) DRIVER_MAN_SUFFIX=7 ;; 10439 *) DRIVER_MAN_SUFFIX=4 ;; 10440 esac 10441fi 10442if test x$DRIVER_MAN_DIR = x ; then 10443 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10444fi 10445 10446if test x$ADMIN_MAN_SUFFIX = x ; then 10447 case $SYSV_MAN_SECTIONS in 10448 true) ADMIN_MAN_SUFFIX=1m ;; 10449 *) ADMIN_MAN_SUFFIX=8 ;; 10450 esac 10451fi 10452if test x$ADMIN_MAN_DIR = x ; then 10453 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10454fi 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470XORG_MAN_PAGE="X Version 11" 10471 10472MAN_SUBSTS="\ 10473 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10474 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10475 -e 's|__xservername__|Xorg|g' \ 10476 -e 's|__xconfigfile__|xorg.conf|g' \ 10477 -e 's|__projectroot__|\$(prefix)|g' \ 10478 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10479 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10480 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10481 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10482 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10483 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10484 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10485 10486 10487 10488# Check whether --enable-silent-rules was given. 10489if test ${enable_silent_rules+y} 10490then : 10491 enableval=$enable_silent_rules; 10492fi 10493 10494case $enable_silent_rules in # ((( 10495 yes) AM_DEFAULT_VERBOSITY=0;; 10496 no) AM_DEFAULT_VERBOSITY=1;; 10497 *) AM_DEFAULT_VERBOSITY=0;; 10498esac 10499am_make=${MAKE-make} 10500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10501printf %s "checking whether $am_make supports nested variables... " >&6; } 10502if test ${am_cv_make_support_nested_variables+y} 10503then : 10504 printf %s "(cached) " >&6 10505else $as_nop 10506 if printf "%s\n" 'TRUE=$(BAR$(V)) 10507BAR0=false 10508BAR1=true 10509V=1 10510am__doit: 10511 @$(TRUE) 10512.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10513 am_cv_make_support_nested_variables=yes 10514else 10515 am_cv_make_support_nested_variables=no 10516fi 10517fi 10518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10519printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 10520if test $am_cv_make_support_nested_variables = yes; then 10521 AM_V='$(V)' 10522 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10523else 10524 AM_V=$AM_DEFAULT_VERBOSITY 10525 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10526fi 10527AM_BACKSLASH='\' 10528 10529 10530 10531 10532 10533# Initialize Automake 10534am__api_version='1.16' 10535 10536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 10537printf %s "checking whether build environment is sane... " >&6; } 10538# Reject unsafe characters in $srcdir or the absolute working directory 10539# name. Accept space and tab only in the latter. 10540am_lf=' 10541' 10542case `pwd` in 10543 *[\\\"\#\$\&\'\`$am_lf]*) 10544 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 10545esac 10546case $srcdir in 10547 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 10548 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 10549esac 10550 10551# Do 'set' in a subshell so we don't clobber the current shell's 10552# arguments. Must try -L first in case configure is actually a 10553# symlink; some systems play weird games with the mod time of symlinks 10554# (eg FreeBSD returns the mod time of the symlink's containing 10555# directory). 10556if ( 10557 am_has_slept=no 10558 for am_try in 1 2; do 10559 echo "timestamp, slept: $am_has_slept" > conftest.file 10560 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 10561 if test "$*" = "X"; then 10562 # -L didn't work. 10563 set X `ls -t "$srcdir/configure" conftest.file` 10564 fi 10565 if test "$*" != "X $srcdir/configure conftest.file" \ 10566 && test "$*" != "X conftest.file $srcdir/configure"; then 10567 10568 # If neither matched, then we have a broken ls. This can happen 10569 # if, for instance, CONFIG_SHELL is bash and it inherits a 10570 # broken ls alias from the environment. This has actually 10571 # happened. Such a system could not be considered "sane". 10572 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 10573 alias in your environment" "$LINENO" 5 10574 fi 10575 if test "$2" = conftest.file || test $am_try -eq 2; then 10576 break 10577 fi 10578 # Just in case. 10579 sleep 1 10580 am_has_slept=yes 10581 done 10582 test "$2" = conftest.file 10583 ) 10584then 10585 # Ok. 10586 : 10587else 10588 as_fn_error $? "newly created file is older than distributed files! 10589Check your system clock" "$LINENO" 5 10590fi 10591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10592printf "%s\n" "yes" >&6; } 10593# If we didn't sleep, we still need to ensure time stamps of config.status and 10594# generated files are strictly newer. 10595am_sleep_pid= 10596if grep 'slept: no' conftest.file >/dev/null 2>&1; then 10597 ( sleep 1 ) & 10598 am_sleep_pid=$! 10599fi 10600 10601rm -f conftest.file 10602 10603test "$program_prefix" != NONE && 10604 program_transform_name="s&^&$program_prefix&;$program_transform_name" 10605# Use a double $ so make ignores it. 10606test "$program_suffix" != NONE && 10607 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 10608# Double any \ or $. 10609# By default was `s,x,x', remove it if useless. 10610ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 10611program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 10612 10613 10614 if test x"${MISSING+set}" != xset; then 10615 MISSING="\${SHELL} '$am_aux_dir/missing'" 10616fi 10617# Use eval to expand $SHELL 10618if eval "$MISSING --is-lightweight"; then 10619 am_missing_run="$MISSING " 10620else 10621 am_missing_run= 10622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 10623printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 10624fi 10625 10626if test x"${install_sh+set}" != xset; then 10627 case $am_aux_dir in 10628 *\ * | *\ *) 10629 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 10630 *) 10631 install_sh="\${SHELL} $am_aux_dir/install-sh" 10632 esac 10633fi 10634 10635# Installed binaries are usually stripped using 'strip' when the user 10636# run "make install-strip". However 'strip' might not be the right 10637# tool to use in cross-compilation environments, therefore Automake 10638# will honor the 'STRIP' environment variable to overrule this program. 10639if test "$cross_compiling" != no; then 10640 if test -n "$ac_tool_prefix"; then 10641 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10642set dummy ${ac_tool_prefix}strip; ac_word=$2 10643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10644printf %s "checking for $ac_word... " >&6; } 10645if test ${ac_cv_prog_STRIP+y} 10646then : 10647 printf %s "(cached) " >&6 10648else $as_nop 10649 if test -n "$STRIP"; then 10650 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10651else 10652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10653for as_dir in $PATH 10654do 10655 IFS=$as_save_IFS 10656 case $as_dir in #((( 10657 '') as_dir=./ ;; 10658 */) ;; 10659 *) as_dir=$as_dir/ ;; 10660 esac 10661 for ac_exec_ext in '' $ac_executable_extensions; do 10662 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10663 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10665 break 2 10666 fi 10667done 10668 done 10669IFS=$as_save_IFS 10670 10671fi 10672fi 10673STRIP=$ac_cv_prog_STRIP 10674if test -n "$STRIP"; then 10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10676printf "%s\n" "$STRIP" >&6; } 10677else 10678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10679printf "%s\n" "no" >&6; } 10680fi 10681 10682 10683fi 10684if test -z "$ac_cv_prog_STRIP"; then 10685 ac_ct_STRIP=$STRIP 10686 # Extract the first word of "strip", so it can be a program name with args. 10687set dummy strip; ac_word=$2 10688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10689printf %s "checking for $ac_word... " >&6; } 10690if test ${ac_cv_prog_ac_ct_STRIP+y} 10691then : 10692 printf %s "(cached) " >&6 10693else $as_nop 10694 if test -n "$ac_ct_STRIP"; then 10695 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10696else 10697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10698for as_dir in $PATH 10699do 10700 IFS=$as_save_IFS 10701 case $as_dir in #((( 10702 '') as_dir=./ ;; 10703 */) ;; 10704 *) as_dir=$as_dir/ ;; 10705 esac 10706 for ac_exec_ext in '' $ac_executable_extensions; do 10707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10708 ac_cv_prog_ac_ct_STRIP="strip" 10709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10710 break 2 10711 fi 10712done 10713 done 10714IFS=$as_save_IFS 10715 10716fi 10717fi 10718ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10719if test -n "$ac_ct_STRIP"; then 10720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10721printf "%s\n" "$ac_ct_STRIP" >&6; } 10722else 10723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10724printf "%s\n" "no" >&6; } 10725fi 10726 10727 if test "x$ac_ct_STRIP" = x; then 10728 STRIP=":" 10729 else 10730 case $cross_compiling:$ac_tool_warned in 10731yes:) 10732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10733printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10734ac_tool_warned=yes ;; 10735esac 10736 STRIP=$ac_ct_STRIP 10737 fi 10738else 10739 STRIP="$ac_cv_prog_STRIP" 10740fi 10741 10742fi 10743INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 10744 10745 10746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 10747printf %s "checking for a race-free mkdir -p... " >&6; } 10748if test -z "$MKDIR_P"; then 10749 if test ${ac_cv_path_mkdir+y} 10750then : 10751 printf %s "(cached) " >&6 10752else $as_nop 10753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10754for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 10755do 10756 IFS=$as_save_IFS 10757 case $as_dir in #((( 10758 '') as_dir=./ ;; 10759 */) ;; 10760 *) as_dir=$as_dir/ ;; 10761 esac 10762 for ac_prog in mkdir gmkdir; do 10763 for ac_exec_ext in '' $ac_executable_extensions; do 10764 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 10765 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 10766 'mkdir ('*'coreutils) '* | \ 10767 'BusyBox '* | \ 10768 'mkdir (fileutils) '4.1*) 10769 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 10770 break 3;; 10771 esac 10772 done 10773 done 10774 done 10775IFS=$as_save_IFS 10776 10777fi 10778 10779 test -d ./--version && rmdir ./--version 10780 if test ${ac_cv_path_mkdir+y}; then 10781 MKDIR_P="$ac_cv_path_mkdir -p" 10782 else 10783 # As a last resort, use the slow shell script. Don't cache a 10784 # value for MKDIR_P within a source directory, because that will 10785 # break other packages using the cache if that directory is 10786 # removed, or if the value is a relative name. 10787 MKDIR_P="$ac_install_sh -d" 10788 fi 10789fi 10790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 10791printf "%s\n" "$MKDIR_P" >&6; } 10792 10793for ac_prog in gawk mawk nawk awk 10794do 10795 # Extract the first word of "$ac_prog", so it can be a program name with args. 10796set dummy $ac_prog; ac_word=$2 10797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10798printf %s "checking for $ac_word... " >&6; } 10799if test ${ac_cv_prog_AWK+y} 10800then : 10801 printf %s "(cached) " >&6 10802else $as_nop 10803 if test -n "$AWK"; then 10804 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10805else 10806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10807for as_dir in $PATH 10808do 10809 IFS=$as_save_IFS 10810 case $as_dir in #((( 10811 '') as_dir=./ ;; 10812 */) ;; 10813 *) as_dir=$as_dir/ ;; 10814 esac 10815 for ac_exec_ext in '' $ac_executable_extensions; do 10816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10817 ac_cv_prog_AWK="$ac_prog" 10818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10819 break 2 10820 fi 10821done 10822 done 10823IFS=$as_save_IFS 10824 10825fi 10826fi 10827AWK=$ac_cv_prog_AWK 10828if test -n "$AWK"; then 10829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 10830printf "%s\n" "$AWK" >&6; } 10831else 10832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10833printf "%s\n" "no" >&6; } 10834fi 10835 10836 10837 test -n "$AWK" && break 10838done 10839 10840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 10841printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 10842set x ${MAKE-make} 10843ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 10844if eval test \${ac_cv_prog_make_${ac_make}_set+y} 10845then : 10846 printf %s "(cached) " >&6 10847else $as_nop 10848 cat >conftest.make <<\_ACEOF 10849SHELL = /bin/sh 10850all: 10851 @echo '@@@%%%=$(MAKE)=@@@%%%' 10852_ACEOF 10853# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 10854case `${MAKE-make} -f conftest.make 2>/dev/null` in 10855 *@@@%%%=?*=@@@%%%*) 10856 eval ac_cv_prog_make_${ac_make}_set=yes;; 10857 *) 10858 eval ac_cv_prog_make_${ac_make}_set=no;; 10859esac 10860rm -f conftest.make 10861fi 10862if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 10863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10864printf "%s\n" "yes" >&6; } 10865 SET_MAKE= 10866else 10867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10868printf "%s\n" "no" >&6; } 10869 SET_MAKE="MAKE=${MAKE-make}" 10870fi 10871 10872rm -rf .tst 2>/dev/null 10873mkdir .tst 2>/dev/null 10874if test -d .tst; then 10875 am__leading_dot=. 10876else 10877 am__leading_dot=_ 10878fi 10879rmdir .tst 2>/dev/null 10880 10881DEPDIR="${am__leading_dot}deps" 10882 10883ac_config_commands="$ac_config_commands depfiles" 10884 10885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 10886printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 10887cat > confinc.mk << 'END' 10888am__doit: 10889 @echo this is the am__doit target >confinc.out 10890.PHONY: am__doit 10891END 10892am__include="#" 10893am__quote= 10894# BSD make does it like this. 10895echo '.include "confinc.mk" # ignored' > confmf.BSD 10896# Other make implementations (GNU, Solaris 10, AIX) do it like this. 10897echo 'include confinc.mk # ignored' > confmf.GNU 10898_am_result=no 10899for s in GNU BSD; do 10900 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 10901 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 10902 ac_status=$? 10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10904 (exit $ac_status); } 10905 case $?:`cat confinc.out 2>/dev/null` in #( 10906 '0:this is the am__doit target') : 10907 case $s in #( 10908 BSD) : 10909 am__include='.include' am__quote='"' ;; #( 10910 *) : 10911 am__include='include' am__quote='' ;; 10912esac ;; #( 10913 *) : 10914 ;; 10915esac 10916 if test "$am__include" != "#"; then 10917 _am_result="yes ($s style)" 10918 break 10919 fi 10920done 10921rm -f confinc.* confmf.* 10922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 10923printf "%s\n" "${_am_result}" >&6; } 10924 10925# Check whether --enable-dependency-tracking was given. 10926if test ${enable_dependency_tracking+y} 10927then : 10928 enableval=$enable_dependency_tracking; 10929fi 10930 10931if test "x$enable_dependency_tracking" != xno; then 10932 am_depcomp="$ac_aux_dir/depcomp" 10933 AMDEPBACKSLASH='\' 10934 am__nodep='_no' 10935fi 10936 if test "x$enable_dependency_tracking" != xno; then 10937 AMDEP_TRUE= 10938 AMDEP_FALSE='#' 10939else 10940 AMDEP_TRUE='#' 10941 AMDEP_FALSE= 10942fi 10943 10944 10945if test "`cd $srcdir && pwd`" != "`pwd`"; then 10946 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 10947 # is not polluted with repeated "-I." 10948 am__isrc=' -I$(srcdir)' 10949 # test to see if srcdir already configured 10950 if test -f $srcdir/config.status; then 10951 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 10952 fi 10953fi 10954 10955# test whether we have cygpath 10956if test -z "$CYGPATH_W"; then 10957 if (cygpath --version) >/dev/null 2>/dev/null; then 10958 CYGPATH_W='cygpath -w' 10959 else 10960 CYGPATH_W=echo 10961 fi 10962fi 10963 10964 10965# Define the identity of the package. 10966 PACKAGE='xf86-video-nv' 10967 VERSION='2.1.22' 10968 10969 10970printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 10971 10972 10973printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 10974 10975# Some tools Automake needs. 10976 10977ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 10978 10979 10980AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 10981 10982 10983AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 10984 10985 10986AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 10987 10988 10989MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 10990 10991# For better backward compatibility. To be removed once Automake 1.9.x 10992# dies out for good. For more background, see: 10993# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 10994# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 10995mkdir_p='$(MKDIR_P)' 10996 10997# We need awk for the "check" target (and possibly the TAP driver). The 10998# system "awk" is bad on some platforms. 10999# Always define AMTAR for backward compatibility. Yes, it's still used 11000# in the wild :-( We should find a proper way to deprecate it ... 11001AMTAR='$${TAR-tar}' 11002 11003 11004# We'll loop over all known methods to create a tar archive until one works. 11005_am_tools='gnutar pax cpio none' 11006 11007am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 11008 11009 11010 11011 11012 11013depcc="$CC" am_compiler_list= 11014 11015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 11016printf %s "checking dependency style of $depcc... " >&6; } 11017if test ${am_cv_CC_dependencies_compiler_type+y} 11018then : 11019 printf %s "(cached) " >&6 11020else $as_nop 11021 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11022 # We make a subdir and do the tests there. Otherwise we can end up 11023 # making bogus files that we don't know about and never remove. For 11024 # instance it was reported that on HP-UX the gcc test will end up 11025 # making a dummy file named 'D' -- because '-MD' means "put the output 11026 # in D". 11027 rm -rf conftest.dir 11028 mkdir conftest.dir 11029 # Copy depcomp to subdir because otherwise we won't find it if we're 11030 # using a relative directory. 11031 cp "$am_depcomp" conftest.dir 11032 cd conftest.dir 11033 # We will build objects and dependencies in a subdirectory because 11034 # it helps to detect inapplicable dependency modes. For instance 11035 # both Tru64's cc and ICC support -MD to output dependencies as a 11036 # side effect of compilation, but ICC will put the dependencies in 11037 # the current directory while Tru64 will put them in the object 11038 # directory. 11039 mkdir sub 11040 11041 am_cv_CC_dependencies_compiler_type=none 11042 if test "$am_compiler_list" = ""; then 11043 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11044 fi 11045 am__universal=false 11046 case " $depcc " in #( 11047 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11048 esac 11049 11050 for depmode in $am_compiler_list; do 11051 # Setup a source with many dependencies, because some compilers 11052 # like to wrap large dependency lists on column 80 (with \), and 11053 # we should not choose a depcomp mode which is confused by this. 11054 # 11055 # We need to recreate these files for each test, as the compiler may 11056 # overwrite some of them when testing with obscure command lines. 11057 # This happens at least with the AIX C compiler. 11058 : > sub/conftest.c 11059 for i in 1 2 3 4 5 6; do 11060 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11061 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 11062 # Solaris 10 /bin/sh. 11063 echo '/* dummy */' > sub/conftst$i.h 11064 done 11065 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11066 11067 # We check with '-c' and '-o' for the sake of the "dashmstdout" 11068 # mode. It turns out that the SunPro C++ compiler does not properly 11069 # handle '-M -o', and we need to detect this. Also, some Intel 11070 # versions had trouble with output in subdirs. 11071 am__obj=sub/conftest.${OBJEXT-o} 11072 am__minus_obj="-o $am__obj" 11073 case $depmode in 11074 gcc) 11075 # This depmode causes a compiler race in universal mode. 11076 test "$am__universal" = false || continue 11077 ;; 11078 nosideeffect) 11079 # After this tag, mechanisms are not by side-effect, so they'll 11080 # only be used when explicitly requested. 11081 if test "x$enable_dependency_tracking" = xyes; then 11082 continue 11083 else 11084 break 11085 fi 11086 ;; 11087 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 11088 # This compiler won't grok '-c -o', but also, the minuso test has 11089 # not run yet. These depmodes are late enough in the game, and 11090 # so weak that their functioning should not be impacted. 11091 am__obj=conftest.${OBJEXT-o} 11092 am__minus_obj= 11093 ;; 11094 none) break ;; 11095 esac 11096 if depmode=$depmode \ 11097 source=sub/conftest.c object=$am__obj \ 11098 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11099 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 11100 >/dev/null 2>conftest.err && 11101 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11102 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11103 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 11104 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11105 # icc doesn't choke on unknown options, it will just issue warnings 11106 # or remarks (even with -Werror). So we grep stderr for any message 11107 # that says an option was ignored or not supported. 11108 # When given -MP, icc 7.0 and 7.1 complain thusly: 11109 # icc: Command line warning: ignoring option '-M'; no argument required 11110 # The diagnosis changed in icc 8.0: 11111 # icc: Command line remark: option '-MP' not supported 11112 if (grep 'ignoring option' conftest.err || 11113 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11114 am_cv_CC_dependencies_compiler_type=$depmode 11115 break 11116 fi 11117 fi 11118 done 11119 11120 cd .. 11121 rm -rf conftest.dir 11122else 11123 am_cv_CC_dependencies_compiler_type=none 11124fi 11125 11126fi 11127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 11128printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 11129CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11130 11131 if 11132 test "x$enable_dependency_tracking" != xno \ 11133 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11134 am__fastdepCC_TRUE= 11135 am__fastdepCC_FALSE='#' 11136else 11137 am__fastdepCC_TRUE='#' 11138 am__fastdepCC_FALSE= 11139fi 11140 11141 11142# Variables for tags utilities; see am/tags.am 11143if test -z "$CTAGS"; then 11144 CTAGS=ctags 11145fi 11146 11147if test -z "$ETAGS"; then 11148 ETAGS=etags 11149fi 11150 11151if test -z "$CSCOPE"; then 11152 CSCOPE=cscope 11153fi 11154 11155 11156 11157# POSIX will say in a future version that running "rm -f" with no argument 11158# is OK; and we want to be able to make that assumption in our Makefile 11159# recipes. So use an aggressive probe to check that the usage we want is 11160# actually supported "in the wild" to an acceptable degree. 11161# See automake bug#10828. 11162# To make any issue more visible, cause the running configure to be aborted 11163# by default if the 'rm' program in use doesn't match our expectations; the 11164# user can still override this though. 11165if rm -f && rm -fr && rm -rf; then : OK; else 11166 cat >&2 <<'END' 11167Oops! 11168 11169Your 'rm' program seems unable to run without file operands specified 11170on the command line, even when the '-f' option is present. This is contrary 11171to the behaviour of most rm programs out there, and not conforming with 11172the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 11173 11174Please tell bug-automake@gnu.org about your system, including the value 11175of your $PATH and any error possibly output before this message. This 11176can help us improve future automake versions. 11177 11178END 11179 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 11180 echo 'Configuration will proceed anyway, since you have set the' >&2 11181 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 11182 echo >&2 11183 else 11184 cat >&2 <<'END' 11185Aborting the configuration process, to ensure you take notice of the issue. 11186 11187You can download and install GNU coreutils to get an 'rm' implementation 11188that behaves properly: <https://www.gnu.org/software/coreutils/>. 11189 11190If you want to complete the configuration process using your problematic 11191'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 11192to "yes", and re-run configure. 11193 11194END 11195 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 11196 fi 11197fi 11198 11199 11200# Initialize libtool 11201# Check whether --enable-static was given. 11202if test ${enable_static+y} 11203then : 11204 enableval=$enable_static; p=${PACKAGE-default} 11205 case $enableval in 11206 yes) enable_static=yes ;; 11207 no) enable_static=no ;; 11208 *) 11209 enable_static=no 11210 # Look at the argument we got. We use all the common list separators. 11211 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11212 for pkg in $enableval; do 11213 IFS=$lt_save_ifs 11214 if test "X$pkg" = "X$p"; then 11215 enable_static=yes 11216 fi 11217 done 11218 IFS=$lt_save_ifs 11219 ;; 11220 esac 11221else $as_nop 11222 enable_static=no 11223fi 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233case `pwd` in 11234 *\ * | *\ *) 11235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11236printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11237esac 11238 11239 11240 11241macro_version='2.4.7' 11242macro_revision='2.4.7' 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257ltmain=$ac_aux_dir/ltmain.sh 11258 11259# Backslashify metacharacters that are still active within 11260# double-quoted strings. 11261sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11262 11263# Same as above, but do not quote variable references. 11264double_quote_subst='s/\(["`\\]\)/\\\1/g' 11265 11266# Sed substitution to delay expansion of an escaped shell variable in a 11267# double_quote_subst'ed string. 11268delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11269 11270# Sed substitution to delay expansion of an escaped single quote. 11271delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11272 11273# Sed substitution to avoid accidental globbing in evaled expressions 11274no_glob_subst='s/\*/\\\*/g' 11275 11276ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11277ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11278ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11279 11280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11281printf %s "checking how to print strings... " >&6; } 11282# Test print first, because it will be a builtin if present. 11283if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11284 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11285 ECHO='print -r --' 11286elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11287 ECHO='printf %s\n' 11288else 11289 # Use this function as a fallback that always works. 11290 func_fallback_echo () 11291 { 11292 eval 'cat <<_LTECHO_EOF 11293$1 11294_LTECHO_EOF' 11295 } 11296 ECHO='func_fallback_echo' 11297fi 11298 11299# func_echo_all arg... 11300# Invoke $ECHO with all args, space-separated. 11301func_echo_all () 11302{ 11303 $ECHO "" 11304} 11305 11306case $ECHO in 11307 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11308printf "%s\n" "printf" >&6; } ;; 11309 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11310printf "%s\n" "print -r" >&6; } ;; 11311 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11312printf "%s\n" "cat" >&6; } ;; 11313esac 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11329printf %s "checking for a sed that does not truncate output... " >&6; } 11330if test ${ac_cv_path_SED+y} 11331then : 11332 printf %s "(cached) " >&6 11333else $as_nop 11334 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11335 for ac_i in 1 2 3 4 5 6 7; do 11336 ac_script="$ac_script$as_nl$ac_script" 11337 done 11338 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11339 { ac_script=; unset ac_script;} 11340 if test -z "$SED"; then 11341 ac_path_SED_found=false 11342 # Loop through the user's path and test for each of PROGNAME-LIST 11343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11344for as_dir in $PATH 11345do 11346 IFS=$as_save_IFS 11347 case $as_dir in #((( 11348 '') as_dir=./ ;; 11349 */) ;; 11350 *) as_dir=$as_dir/ ;; 11351 esac 11352 for ac_prog in sed gsed 11353 do 11354 for ac_exec_ext in '' $ac_executable_extensions; do 11355 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11356 as_fn_executable_p "$ac_path_SED" || continue 11357# Check for GNU ac_path_SED and select it if it is found. 11358 # Check for GNU $ac_path_SED 11359case `"$ac_path_SED" --version 2>&1` in 11360*GNU*) 11361 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11362*) 11363 ac_count=0 11364 printf %s 0123456789 >"conftest.in" 11365 while : 11366 do 11367 cat "conftest.in" "conftest.in" >"conftest.tmp" 11368 mv "conftest.tmp" "conftest.in" 11369 cp "conftest.in" "conftest.nl" 11370 printf "%s\n" '' >> "conftest.nl" 11371 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11372 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11373 as_fn_arith $ac_count + 1 && ac_count=$as_val 11374 if test $ac_count -gt ${ac_path_SED_max-0}; then 11375 # Best one so far, save it but keep looking for a better one 11376 ac_cv_path_SED="$ac_path_SED" 11377 ac_path_SED_max=$ac_count 11378 fi 11379 # 10*(2^10) chars as input seems more than enough 11380 test $ac_count -gt 10 && break 11381 done 11382 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11383esac 11384 11385 $ac_path_SED_found && break 3 11386 done 11387 done 11388 done 11389IFS=$as_save_IFS 11390 if test -z "$ac_cv_path_SED"; then 11391 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11392 fi 11393else 11394 ac_cv_path_SED=$SED 11395fi 11396 11397fi 11398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11399printf "%s\n" "$ac_cv_path_SED" >&6; } 11400 SED="$ac_cv_path_SED" 11401 rm -f conftest.sed 11402 11403test -z "$SED" && SED=sed 11404Xsed="$SED -e 1s/^X//" 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11417printf %s "checking for grep that handles long lines and -e... " >&6; } 11418if test ${ac_cv_path_GREP+y} 11419then : 11420 printf %s "(cached) " >&6 11421else $as_nop 11422 if test -z "$GREP"; then 11423 ac_path_GREP_found=false 11424 # Loop through the user's path and test for each of PROGNAME-LIST 11425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11426for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11427do 11428 IFS=$as_save_IFS 11429 case $as_dir in #((( 11430 '') as_dir=./ ;; 11431 */) ;; 11432 *) as_dir=$as_dir/ ;; 11433 esac 11434 for ac_prog in grep ggrep 11435 do 11436 for ac_exec_ext in '' $ac_executable_extensions; do 11437 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11438 as_fn_executable_p "$ac_path_GREP" || continue 11439# Check for GNU ac_path_GREP and select it if it is found. 11440 # Check for GNU $ac_path_GREP 11441case `"$ac_path_GREP" --version 2>&1` in 11442*GNU*) 11443 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11444*) 11445 ac_count=0 11446 printf %s 0123456789 >"conftest.in" 11447 while : 11448 do 11449 cat "conftest.in" "conftest.in" >"conftest.tmp" 11450 mv "conftest.tmp" "conftest.in" 11451 cp "conftest.in" "conftest.nl" 11452 printf "%s\n" 'GREP' >> "conftest.nl" 11453 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11454 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11455 as_fn_arith $ac_count + 1 && ac_count=$as_val 11456 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11457 # Best one so far, save it but keep looking for a better one 11458 ac_cv_path_GREP="$ac_path_GREP" 11459 ac_path_GREP_max=$ac_count 11460 fi 11461 # 10*(2^10) chars as input seems more than enough 11462 test $ac_count -gt 10 && break 11463 done 11464 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11465esac 11466 11467 $ac_path_GREP_found && break 3 11468 done 11469 done 11470 done 11471IFS=$as_save_IFS 11472 if test -z "$ac_cv_path_GREP"; then 11473 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11474 fi 11475else 11476 ac_cv_path_GREP=$GREP 11477fi 11478 11479fi 11480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11481printf "%s\n" "$ac_cv_path_GREP" >&6; } 11482 GREP="$ac_cv_path_GREP" 11483 11484 11485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11486printf %s "checking for egrep... " >&6; } 11487if test ${ac_cv_path_EGREP+y} 11488then : 11489 printf %s "(cached) " >&6 11490else $as_nop 11491 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11492 then ac_cv_path_EGREP="$GREP -E" 11493 else 11494 if test -z "$EGREP"; then 11495 ac_path_EGREP_found=false 11496 # Loop through the user's path and test for each of PROGNAME-LIST 11497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11498for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11499do 11500 IFS=$as_save_IFS 11501 case $as_dir in #((( 11502 '') as_dir=./ ;; 11503 */) ;; 11504 *) as_dir=$as_dir/ ;; 11505 esac 11506 for ac_prog in egrep 11507 do 11508 for ac_exec_ext in '' $ac_executable_extensions; do 11509 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11510 as_fn_executable_p "$ac_path_EGREP" || continue 11511# Check for GNU ac_path_EGREP and select it if it is found. 11512 # Check for GNU $ac_path_EGREP 11513case `"$ac_path_EGREP" --version 2>&1` in 11514*GNU*) 11515 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11516*) 11517 ac_count=0 11518 printf %s 0123456789 >"conftest.in" 11519 while : 11520 do 11521 cat "conftest.in" "conftest.in" >"conftest.tmp" 11522 mv "conftest.tmp" "conftest.in" 11523 cp "conftest.in" "conftest.nl" 11524 printf "%s\n" 'EGREP' >> "conftest.nl" 11525 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11527 as_fn_arith $ac_count + 1 && ac_count=$as_val 11528 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11529 # Best one so far, save it but keep looking for a better one 11530 ac_cv_path_EGREP="$ac_path_EGREP" 11531 ac_path_EGREP_max=$ac_count 11532 fi 11533 # 10*(2^10) chars as input seems more than enough 11534 test $ac_count -gt 10 && break 11535 done 11536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11537esac 11538 11539 $ac_path_EGREP_found && break 3 11540 done 11541 done 11542 done 11543IFS=$as_save_IFS 11544 if test -z "$ac_cv_path_EGREP"; then 11545 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11546 fi 11547else 11548 ac_cv_path_EGREP=$EGREP 11549fi 11550 11551 fi 11552fi 11553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11554printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11555 EGREP="$ac_cv_path_EGREP" 11556 11557 11558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11559printf %s "checking for fgrep... " >&6; } 11560if test ${ac_cv_path_FGREP+y} 11561then : 11562 printf %s "(cached) " >&6 11563else $as_nop 11564 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11565 then ac_cv_path_FGREP="$GREP -F" 11566 else 11567 if test -z "$FGREP"; then 11568 ac_path_FGREP_found=false 11569 # Loop through the user's path and test for each of PROGNAME-LIST 11570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11571for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11572do 11573 IFS=$as_save_IFS 11574 case $as_dir in #((( 11575 '') as_dir=./ ;; 11576 */) ;; 11577 *) as_dir=$as_dir/ ;; 11578 esac 11579 for ac_prog in fgrep 11580 do 11581 for ac_exec_ext in '' $ac_executable_extensions; do 11582 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11583 as_fn_executable_p "$ac_path_FGREP" || continue 11584# Check for GNU ac_path_FGREP and select it if it is found. 11585 # Check for GNU $ac_path_FGREP 11586case `"$ac_path_FGREP" --version 2>&1` in 11587*GNU*) 11588 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11589*) 11590 ac_count=0 11591 printf %s 0123456789 >"conftest.in" 11592 while : 11593 do 11594 cat "conftest.in" "conftest.in" >"conftest.tmp" 11595 mv "conftest.tmp" "conftest.in" 11596 cp "conftest.in" "conftest.nl" 11597 printf "%s\n" 'FGREP' >> "conftest.nl" 11598 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11600 as_fn_arith $ac_count + 1 && ac_count=$as_val 11601 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11602 # Best one so far, save it but keep looking for a better one 11603 ac_cv_path_FGREP="$ac_path_FGREP" 11604 ac_path_FGREP_max=$ac_count 11605 fi 11606 # 10*(2^10) chars as input seems more than enough 11607 test $ac_count -gt 10 && break 11608 done 11609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11610esac 11611 11612 $ac_path_FGREP_found && break 3 11613 done 11614 done 11615 done 11616IFS=$as_save_IFS 11617 if test -z "$ac_cv_path_FGREP"; then 11618 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11619 fi 11620else 11621 ac_cv_path_FGREP=$FGREP 11622fi 11623 11624 fi 11625fi 11626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11627printf "%s\n" "$ac_cv_path_FGREP" >&6; } 11628 FGREP="$ac_cv_path_FGREP" 11629 11630 11631test -z "$GREP" && GREP=grep 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651# Check whether --with-gnu-ld was given. 11652if test ${with_gnu_ld+y} 11653then : 11654 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11655else $as_nop 11656 with_gnu_ld=no 11657fi 11658 11659ac_prog=ld 11660if test yes = "$GCC"; then 11661 # Check if gcc -print-prog-name=ld gives a path. 11662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11663printf %s "checking for ld used by $CC... " >&6; } 11664 case $host in 11665 *-*-mingw*) 11666 # gcc leaves a trailing carriage return, which upsets mingw 11667 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11668 *) 11669 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11670 esac 11671 case $ac_prog in 11672 # Accept absolute paths. 11673 [\\/]* | ?:[\\/]*) 11674 re_direlt='/[^/][^/]*/\.\./' 11675 # Canonicalize the pathname of ld 11676 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11677 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11678 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11679 done 11680 test -z "$LD" && LD=$ac_prog 11681 ;; 11682 "") 11683 # If it fails, then pretend we aren't using GCC. 11684 ac_prog=ld 11685 ;; 11686 *) 11687 # If it is relative, then search for the first ld in PATH. 11688 with_gnu_ld=unknown 11689 ;; 11690 esac 11691elif test yes = "$with_gnu_ld"; then 11692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11693printf %s "checking for GNU ld... " >&6; } 11694else 11695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11696printf %s "checking for non-GNU ld... " >&6; } 11697fi 11698if test ${lt_cv_path_LD+y} 11699then : 11700 printf %s "(cached) " >&6 11701else $as_nop 11702 if test -z "$LD"; then 11703 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11704 for ac_dir in $PATH; do 11705 IFS=$lt_save_ifs 11706 test -z "$ac_dir" && ac_dir=. 11707 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11708 lt_cv_path_LD=$ac_dir/$ac_prog 11709 # Check to see if the program is GNU ld. I'd rather use --version, 11710 # but apparently some variants of GNU ld only accept -v. 11711 # Break only if it was the GNU/non-GNU ld that we prefer. 11712 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11713 *GNU* | *'with BFD'*) 11714 test no != "$with_gnu_ld" && break 11715 ;; 11716 *) 11717 test yes != "$with_gnu_ld" && break 11718 ;; 11719 esac 11720 fi 11721 done 11722 IFS=$lt_save_ifs 11723else 11724 lt_cv_path_LD=$LD # Let the user override the test with a path. 11725fi 11726fi 11727 11728LD=$lt_cv_path_LD 11729if test -n "$LD"; then 11730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11731printf "%s\n" "$LD" >&6; } 11732else 11733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11734printf "%s\n" "no" >&6; } 11735fi 11736test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11738printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 11739if test ${lt_cv_prog_gnu_ld+y} 11740then : 11741 printf %s "(cached) " >&6 11742else $as_nop 11743 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11744case `$LD -v 2>&1 </dev/null` in 11745*GNU* | *'with BFD'*) 11746 lt_cv_prog_gnu_ld=yes 11747 ;; 11748*) 11749 lt_cv_prog_gnu_ld=no 11750 ;; 11751esac 11752fi 11753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11754printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 11755with_gnu_ld=$lt_cv_prog_gnu_ld 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11766printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11767if test ${lt_cv_path_NM+y} 11768then : 11769 printf %s "(cached) " >&6 11770else $as_nop 11771 if test -n "$NM"; then 11772 # Let the user override the test. 11773 lt_cv_path_NM=$NM 11774else 11775 lt_nm_to_check=${ac_tool_prefix}nm 11776 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11777 lt_nm_to_check="$lt_nm_to_check nm" 11778 fi 11779 for lt_tmp_nm in $lt_nm_to_check; do 11780 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11781 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11782 IFS=$lt_save_ifs 11783 test -z "$ac_dir" && ac_dir=. 11784 tmp_nm=$ac_dir/$lt_tmp_nm 11785 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11786 # Check to see if the nm accepts a BSD-compat flag. 11787 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11788 # nm: unknown option "B" ignored 11789 # Tru64's nm complains that /dev/null is an invalid object file 11790 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11791 case $build_os in 11792 mingw*) lt_bad_file=conftest.nm/nofile ;; 11793 *) lt_bad_file=/dev/null ;; 11794 esac 11795 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 11796 *$lt_bad_file* | *'Invalid file or object type'*) 11797 lt_cv_path_NM="$tmp_nm -B" 11798 break 2 11799 ;; 11800 *) 11801 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 11802 */dev/null*) 11803 lt_cv_path_NM="$tmp_nm -p" 11804 break 2 11805 ;; 11806 *) 11807 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11808 continue # so that we can try to find one that supports BSD flags 11809 ;; 11810 esac 11811 ;; 11812 esac 11813 fi 11814 done 11815 IFS=$lt_save_ifs 11816 done 11817 : ${lt_cv_path_NM=no} 11818fi 11819fi 11820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11821printf "%s\n" "$lt_cv_path_NM" >&6; } 11822if test no != "$lt_cv_path_NM"; then 11823 NM=$lt_cv_path_NM 11824else 11825 # Didn't find any BSD compatible name lister, look for dumpbin. 11826 if test -n "$DUMPBIN"; then : 11827 # Let the user override the test. 11828 else 11829 if test -n "$ac_tool_prefix"; then 11830 for ac_prog in dumpbin "link -dump" 11831 do 11832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11833set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11835printf %s "checking for $ac_word... " >&6; } 11836if test ${ac_cv_prog_DUMPBIN+y} 11837then : 11838 printf %s "(cached) " >&6 11839else $as_nop 11840 if test -n "$DUMPBIN"; then 11841 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11842else 11843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11844for as_dir in $PATH 11845do 11846 IFS=$as_save_IFS 11847 case $as_dir in #((( 11848 '') as_dir=./ ;; 11849 */) ;; 11850 *) as_dir=$as_dir/ ;; 11851 esac 11852 for ac_exec_ext in '' $ac_executable_extensions; do 11853 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11854 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11856 break 2 11857 fi 11858done 11859 done 11860IFS=$as_save_IFS 11861 11862fi 11863fi 11864DUMPBIN=$ac_cv_prog_DUMPBIN 11865if test -n "$DUMPBIN"; then 11866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11867printf "%s\n" "$DUMPBIN" >&6; } 11868else 11869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11870printf "%s\n" "no" >&6; } 11871fi 11872 11873 11874 test -n "$DUMPBIN" && break 11875 done 11876fi 11877if test -z "$DUMPBIN"; then 11878 ac_ct_DUMPBIN=$DUMPBIN 11879 for ac_prog in dumpbin "link -dump" 11880do 11881 # Extract the first word of "$ac_prog", so it can be a program name with args. 11882set dummy $ac_prog; ac_word=$2 11883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11884printf %s "checking for $ac_word... " >&6; } 11885if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 11886then : 11887 printf %s "(cached) " >&6 11888else $as_nop 11889 if test -n "$ac_ct_DUMPBIN"; then 11890 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11891else 11892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11893for as_dir in $PATH 11894do 11895 IFS=$as_save_IFS 11896 case $as_dir in #((( 11897 '') as_dir=./ ;; 11898 */) ;; 11899 *) as_dir=$as_dir/ ;; 11900 esac 11901 for ac_exec_ext in '' $ac_executable_extensions; do 11902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11903 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11905 break 2 11906 fi 11907done 11908 done 11909IFS=$as_save_IFS 11910 11911fi 11912fi 11913ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11914if test -n "$ac_ct_DUMPBIN"; then 11915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11916printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 11917else 11918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11919printf "%s\n" "no" >&6; } 11920fi 11921 11922 11923 test -n "$ac_ct_DUMPBIN" && break 11924done 11925 11926 if test "x$ac_ct_DUMPBIN" = x; then 11927 DUMPBIN=":" 11928 else 11929 case $cross_compiling:$ac_tool_warned in 11930yes:) 11931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11932printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11933ac_tool_warned=yes ;; 11934esac 11935 DUMPBIN=$ac_ct_DUMPBIN 11936 fi 11937fi 11938 11939 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 11940 *COFF*) 11941 DUMPBIN="$DUMPBIN -symbols -headers" 11942 ;; 11943 *) 11944 DUMPBIN=: 11945 ;; 11946 esac 11947 fi 11948 11949 if test : != "$DUMPBIN"; then 11950 NM=$DUMPBIN 11951 fi 11952fi 11953test -z "$NM" && NM=nm 11954 11955 11956 11957 11958 11959 11960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11961printf %s "checking the name lister ($NM) interface... " >&6; } 11962if test ${lt_cv_nm_interface+y} 11963then : 11964 printf %s "(cached) " >&6 11965else $as_nop 11966 lt_cv_nm_interface="BSD nm" 11967 echo "int some_variable = 0;" > conftest.$ac_ext 11968 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11969 (eval "$ac_compile" 2>conftest.err) 11970 cat conftest.err >&5 11971 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11972 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11973 cat conftest.err >&5 11974 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11975 cat conftest.out >&5 11976 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11977 lt_cv_nm_interface="MS dumpbin" 11978 fi 11979 rm -f conftest* 11980fi 11981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11982printf "%s\n" "$lt_cv_nm_interface" >&6; } 11983 11984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11985printf %s "checking whether ln -s works... " >&6; } 11986LN_S=$as_ln_s 11987if test "$LN_S" = "ln -s"; then 11988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11989printf "%s\n" "yes" >&6; } 11990else 11991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11992printf "%s\n" "no, using $LN_S" >&6; } 11993fi 11994 11995# find the maximum length of command line arguments 11996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11997printf %s "checking the maximum length of command line arguments... " >&6; } 11998if test ${lt_cv_sys_max_cmd_len+y} 11999then : 12000 printf %s "(cached) " >&6 12001else $as_nop 12002 i=0 12003 teststring=ABCD 12004 12005 case $build_os in 12006 msdosdjgpp*) 12007 # On DJGPP, this test can blow up pretty badly due to problems in libc 12008 # (any single argument exceeding 2000 bytes causes a buffer overrun 12009 # during glob expansion). Even if it were fixed, the result of this 12010 # check would be larger than it should be. 12011 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12012 ;; 12013 12014 gnu*) 12015 # Under GNU Hurd, this test is not required because there is 12016 # no limit to the length of command line arguments. 12017 # Libtool will interpret -1 as no limit whatsoever 12018 lt_cv_sys_max_cmd_len=-1; 12019 ;; 12020 12021 cygwin* | mingw* | cegcc*) 12022 # On Win9x/ME, this test blows up -- it succeeds, but takes 12023 # about 5 minutes as the teststring grows exponentially. 12024 # Worse, since 9x/ME are not pre-emptively multitasking, 12025 # you end up with a "frozen" computer, even though with patience 12026 # the test eventually succeeds (with a max line length of 256k). 12027 # Instead, let's just punt: use the minimum linelength reported by 12028 # all of the supported platforms: 8192 (on NT/2K/XP). 12029 lt_cv_sys_max_cmd_len=8192; 12030 ;; 12031 12032 mint*) 12033 # On MiNT this can take a long time and run out of memory. 12034 lt_cv_sys_max_cmd_len=8192; 12035 ;; 12036 12037 amigaos*) 12038 # On AmigaOS with pdksh, this test takes hours, literally. 12039 # So we just punt and use a minimum line length of 8192. 12040 lt_cv_sys_max_cmd_len=8192; 12041 ;; 12042 12043 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12044 # This has been around since 386BSD, at least. Likely further. 12045 if test -x /sbin/sysctl; then 12046 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12047 elif test -x /usr/sbin/sysctl; then 12048 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12049 else 12050 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12051 fi 12052 # And add a safety zone 12053 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12055 ;; 12056 12057 interix*) 12058 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12059 lt_cv_sys_max_cmd_len=196608 12060 ;; 12061 12062 os2*) 12063 # The test takes a long time on OS/2. 12064 lt_cv_sys_max_cmd_len=8192 12065 ;; 12066 12067 osf*) 12068 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12069 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12070 # nice to cause kernel panics so lets avoid the loop below. 12071 # First set a reasonable default. 12072 lt_cv_sys_max_cmd_len=16384 12073 # 12074 if test -x /sbin/sysconfig; then 12075 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12076 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12077 esac 12078 fi 12079 ;; 12080 sco3.2v5*) 12081 lt_cv_sys_max_cmd_len=102400 12082 ;; 12083 sysv5* | sco5v6* | sysv4.2uw2*) 12084 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12085 if test -n "$kargmax"; then 12086 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12087 else 12088 lt_cv_sys_max_cmd_len=32768 12089 fi 12090 ;; 12091 *) 12092 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12093 if test -n "$lt_cv_sys_max_cmd_len" && \ 12094 test undefined != "$lt_cv_sys_max_cmd_len"; then 12095 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12096 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12097 else 12098 # Make teststring a little bigger before we do anything with it. 12099 # a 1K string should be a reasonable start. 12100 for i in 1 2 3 4 5 6 7 8; do 12101 teststring=$teststring$teststring 12102 done 12103 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12104 # If test is not a shell built-in, we'll probably end up computing a 12105 # maximum length that is only half of the actual maximum length, but 12106 # we can't tell. 12107 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12108 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12109 test 17 != "$i" # 1/2 MB should be enough 12110 do 12111 i=`expr $i + 1` 12112 teststring=$teststring$teststring 12113 done 12114 # Only check the string length outside the loop. 12115 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12116 teststring= 12117 # Add a significant safety factor because C++ compilers can tack on 12118 # massive amounts of additional arguments before passing them to the 12119 # linker. It appears as though 1/2 is a usable value. 12120 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12121 fi 12122 ;; 12123 esac 12124 12125fi 12126 12127if test -n "$lt_cv_sys_max_cmd_len"; then 12128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12129printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12130else 12131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12132printf "%s\n" "none" >&6; } 12133fi 12134max_cmd_len=$lt_cv_sys_max_cmd_len 12135 12136 12137 12138 12139 12140 12141: ${CP="cp -f"} 12142: ${MV="mv -f"} 12143: ${RM="rm -f"} 12144 12145if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12146 lt_unset=unset 12147else 12148 lt_unset=false 12149fi 12150 12151 12152 12153 12154 12155# test EBCDIC or ASCII 12156case `echo X|tr X '\101'` in 12157 A) # ASCII based system 12158 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12159 lt_SP2NL='tr \040 \012' 12160 lt_NL2SP='tr \015\012 \040\040' 12161 ;; 12162 *) # EBCDIC based system 12163 lt_SP2NL='tr \100 \n' 12164 lt_NL2SP='tr \r\n \100\100' 12165 ;; 12166esac 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12177printf %s "checking how to convert $build file names to $host format... " >&6; } 12178if test ${lt_cv_to_host_file_cmd+y} 12179then : 12180 printf %s "(cached) " >&6 12181else $as_nop 12182 case $host in 12183 *-*-mingw* ) 12184 case $build in 12185 *-*-mingw* ) # actually msys 12186 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12187 ;; 12188 *-*-cygwin* ) 12189 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12190 ;; 12191 * ) # otherwise, assume *nix 12192 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12193 ;; 12194 esac 12195 ;; 12196 *-*-cygwin* ) 12197 case $build in 12198 *-*-mingw* ) # actually msys 12199 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12200 ;; 12201 *-*-cygwin* ) 12202 lt_cv_to_host_file_cmd=func_convert_file_noop 12203 ;; 12204 * ) # otherwise, assume *nix 12205 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12206 ;; 12207 esac 12208 ;; 12209 * ) # unhandled hosts (and "normal" native builds) 12210 lt_cv_to_host_file_cmd=func_convert_file_noop 12211 ;; 12212esac 12213 12214fi 12215 12216to_host_file_cmd=$lt_cv_to_host_file_cmd 12217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12218printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12219 12220 12221 12222 12223 12224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12225printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12226if test ${lt_cv_to_tool_file_cmd+y} 12227then : 12228 printf %s "(cached) " >&6 12229else $as_nop 12230 #assume ordinary cross tools, or native build. 12231lt_cv_to_tool_file_cmd=func_convert_file_noop 12232case $host in 12233 *-*-mingw* ) 12234 case $build in 12235 *-*-mingw* ) # actually msys 12236 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12237 ;; 12238 esac 12239 ;; 12240esac 12241 12242fi 12243 12244to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12246printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12247 12248 12249 12250 12251 12252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12253printf %s "checking for $LD option to reload object files... " >&6; } 12254if test ${lt_cv_ld_reload_flag+y} 12255then : 12256 printf %s "(cached) " >&6 12257else $as_nop 12258 lt_cv_ld_reload_flag='-r' 12259fi 12260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12261printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12262reload_flag=$lt_cv_ld_reload_flag 12263case $reload_flag in 12264"" | " "*) ;; 12265*) reload_flag=" $reload_flag" ;; 12266esac 12267reload_cmds='$LD$reload_flag -o $output$reload_objs' 12268case $host_os in 12269 cygwin* | mingw* | pw32* | cegcc*) 12270 if test yes != "$GCC"; then 12271 reload_cmds=false 12272 fi 12273 ;; 12274 darwin*) 12275 if test yes = "$GCC"; then 12276 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12277 else 12278 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12279 fi 12280 ;; 12281esac 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291if test -n "$ac_tool_prefix"; then 12292 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 12293set dummy ${ac_tool_prefix}file; ac_word=$2 12294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12295printf %s "checking for $ac_word... " >&6; } 12296if test ${ac_cv_prog_FILECMD+y} 12297then : 12298 printf %s "(cached) " >&6 12299else $as_nop 12300 if test -n "$FILECMD"; then 12301 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12302else 12303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12304for as_dir in $PATH 12305do 12306 IFS=$as_save_IFS 12307 case $as_dir in #((( 12308 '') as_dir=./ ;; 12309 */) ;; 12310 *) as_dir=$as_dir/ ;; 12311 esac 12312 for ac_exec_ext in '' $ac_executable_extensions; do 12313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12314 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 12315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12316 break 2 12317 fi 12318done 12319 done 12320IFS=$as_save_IFS 12321 12322fi 12323fi 12324FILECMD=$ac_cv_prog_FILECMD 12325if test -n "$FILECMD"; then 12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12327printf "%s\n" "$FILECMD" >&6; } 12328else 12329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12330printf "%s\n" "no" >&6; } 12331fi 12332 12333 12334fi 12335if test -z "$ac_cv_prog_FILECMD"; then 12336 ac_ct_FILECMD=$FILECMD 12337 # Extract the first word of "file", so it can be a program name with args. 12338set dummy file; ac_word=$2 12339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12340printf %s "checking for $ac_word... " >&6; } 12341if test ${ac_cv_prog_ac_ct_FILECMD+y} 12342then : 12343 printf %s "(cached) " >&6 12344else $as_nop 12345 if test -n "$ac_ct_FILECMD"; then 12346 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 12347else 12348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12349for as_dir in $PATH 12350do 12351 IFS=$as_save_IFS 12352 case $as_dir in #((( 12353 '') as_dir=./ ;; 12354 */) ;; 12355 *) as_dir=$as_dir/ ;; 12356 esac 12357 for ac_exec_ext in '' $ac_executable_extensions; do 12358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12359 ac_cv_prog_ac_ct_FILECMD="file" 12360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12361 break 2 12362 fi 12363done 12364 done 12365IFS=$as_save_IFS 12366 12367fi 12368fi 12369ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 12370if test -n "$ac_ct_FILECMD"; then 12371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 12372printf "%s\n" "$ac_ct_FILECMD" >&6; } 12373else 12374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12375printf "%s\n" "no" >&6; } 12376fi 12377 12378 if test "x$ac_ct_FILECMD" = x; then 12379 FILECMD=":" 12380 else 12381 case $cross_compiling:$ac_tool_warned in 12382yes:) 12383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12384printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12385ac_tool_warned=yes ;; 12386esac 12387 FILECMD=$ac_ct_FILECMD 12388 fi 12389else 12390 FILECMD="$ac_cv_prog_FILECMD" 12391fi 12392 12393 12394 12395 12396 12397 12398 12399if test -n "$ac_tool_prefix"; then 12400 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12401set dummy ${ac_tool_prefix}objdump; ac_word=$2 12402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12403printf %s "checking for $ac_word... " >&6; } 12404if test ${ac_cv_prog_OBJDUMP+y} 12405then : 12406 printf %s "(cached) " >&6 12407else $as_nop 12408 if test -n "$OBJDUMP"; then 12409 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12410else 12411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12412for as_dir in $PATH 12413do 12414 IFS=$as_save_IFS 12415 case $as_dir in #((( 12416 '') as_dir=./ ;; 12417 */) ;; 12418 *) as_dir=$as_dir/ ;; 12419 esac 12420 for ac_exec_ext in '' $ac_executable_extensions; do 12421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12422 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12424 break 2 12425 fi 12426done 12427 done 12428IFS=$as_save_IFS 12429 12430fi 12431fi 12432OBJDUMP=$ac_cv_prog_OBJDUMP 12433if test -n "$OBJDUMP"; then 12434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12435printf "%s\n" "$OBJDUMP" >&6; } 12436else 12437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12438printf "%s\n" "no" >&6; } 12439fi 12440 12441 12442fi 12443if test -z "$ac_cv_prog_OBJDUMP"; then 12444 ac_ct_OBJDUMP=$OBJDUMP 12445 # Extract the first word of "objdump", so it can be a program name with args. 12446set dummy objdump; ac_word=$2 12447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12448printf %s "checking for $ac_word... " >&6; } 12449if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12450then : 12451 printf %s "(cached) " >&6 12452else $as_nop 12453 if test -n "$ac_ct_OBJDUMP"; then 12454 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12455else 12456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12457for as_dir in $PATH 12458do 12459 IFS=$as_save_IFS 12460 case $as_dir in #((( 12461 '') as_dir=./ ;; 12462 */) ;; 12463 *) as_dir=$as_dir/ ;; 12464 esac 12465 for ac_exec_ext in '' $ac_executable_extensions; do 12466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12467 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12469 break 2 12470 fi 12471done 12472 done 12473IFS=$as_save_IFS 12474 12475fi 12476fi 12477ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12478if test -n "$ac_ct_OBJDUMP"; then 12479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12480printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12481else 12482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12483printf "%s\n" "no" >&6; } 12484fi 12485 12486 if test "x$ac_ct_OBJDUMP" = x; then 12487 OBJDUMP="false" 12488 else 12489 case $cross_compiling:$ac_tool_warned in 12490yes:) 12491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12492printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12493ac_tool_warned=yes ;; 12494esac 12495 OBJDUMP=$ac_ct_OBJDUMP 12496 fi 12497else 12498 OBJDUMP="$ac_cv_prog_OBJDUMP" 12499fi 12500 12501test -z "$OBJDUMP" && OBJDUMP=objdump 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12512printf %s "checking how to recognize dependent libraries... " >&6; } 12513if test ${lt_cv_deplibs_check_method+y} 12514then : 12515 printf %s "(cached) " >&6 12516else $as_nop 12517 lt_cv_file_magic_cmd='$MAGIC_CMD' 12518lt_cv_file_magic_test_file= 12519lt_cv_deplibs_check_method='unknown' 12520# Need to set the preceding variable on all platforms that support 12521# interlibrary dependencies. 12522# 'none' -- dependencies not supported. 12523# 'unknown' -- same as none, but documents that we really don't know. 12524# 'pass_all' -- all dependencies passed with no checks. 12525# 'test_compile' -- check by making test program. 12526# 'file_magic [[regex]]' -- check by looking for files in library path 12527# that responds to the $file_magic_cmd with a given extended regex. 12528# If you have 'file' or equivalent on your system and you're not sure 12529# whether 'pass_all' will *always* work, you probably want this one. 12530 12531case $host_os in 12532aix[4-9]*) 12533 lt_cv_deplibs_check_method=pass_all 12534 ;; 12535 12536beos*) 12537 lt_cv_deplibs_check_method=pass_all 12538 ;; 12539 12540bsdi[45]*) 12541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12542 lt_cv_file_magic_cmd='$FILECMD -L' 12543 lt_cv_file_magic_test_file=/shlib/libc.so 12544 ;; 12545 12546cygwin*) 12547 # func_win32_libid is a shell function defined in ltmain.sh 12548 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12549 lt_cv_file_magic_cmd='func_win32_libid' 12550 ;; 12551 12552mingw* | pw32*) 12553 # Base MSYS/MinGW do not provide the 'file' command needed by 12554 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12555 # unless we find 'file', for example because we are cross-compiling. 12556 if ( file / ) >/dev/null 2>&1; then 12557 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12558 lt_cv_file_magic_cmd='func_win32_libid' 12559 else 12560 # Keep this pattern in sync with the one in func_win32_libid. 12561 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12562 lt_cv_file_magic_cmd='$OBJDUMP -f' 12563 fi 12564 ;; 12565 12566cegcc*) 12567 # use the weaker test based on 'objdump'. See mingw*. 12568 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12569 lt_cv_file_magic_cmd='$OBJDUMP -f' 12570 ;; 12571 12572darwin* | rhapsody*) 12573 lt_cv_deplibs_check_method=pass_all 12574 ;; 12575 12576freebsd* | dragonfly* | midnightbsd*) 12577 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12578 case $host_cpu in 12579 i*86 ) 12580 # Not sure whether the presence of OpenBSD here was a mistake. 12581 # Let's accept both of them until this is cleared up. 12582 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12583 lt_cv_file_magic_cmd=$FILECMD 12584 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12585 ;; 12586 esac 12587 else 12588 lt_cv_deplibs_check_method=pass_all 12589 fi 12590 ;; 12591 12592haiku*) 12593 lt_cv_deplibs_check_method=pass_all 12594 ;; 12595 12596hpux10.20* | hpux11*) 12597 lt_cv_file_magic_cmd=$FILECMD 12598 case $host_cpu in 12599 ia64*) 12600 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12601 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12602 ;; 12603 hppa*64*) 12604 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]' 12605 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12606 ;; 12607 *) 12608 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12609 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12610 ;; 12611 esac 12612 ;; 12613 12614interix[3-9]*) 12615 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12616 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12617 ;; 12618 12619irix5* | irix6* | nonstopux*) 12620 case $LD in 12621 *-32|*"-32 ") libmagic=32-bit;; 12622 *-n32|*"-n32 ") libmagic=N32;; 12623 *-64|*"-64 ") libmagic=64-bit;; 12624 *) libmagic=never-match;; 12625 esac 12626 lt_cv_deplibs_check_method=pass_all 12627 ;; 12628 12629# This must be glibc/ELF. 12630linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12631 lt_cv_deplibs_check_method=pass_all 12632 ;; 12633 12634netbsd*) 12635 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12637 else 12638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12639 fi 12640 ;; 12641 12642newos6*) 12643 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12644 lt_cv_file_magic_cmd=$FILECMD 12645 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12646 ;; 12647 12648*nto* | *qnx*) 12649 lt_cv_deplibs_check_method=pass_all 12650 ;; 12651 12652openbsd* | bitrig*) 12653 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12655 else 12656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12657 fi 12658 ;; 12659 12660osf3* | osf4* | osf5*) 12661 lt_cv_deplibs_check_method=pass_all 12662 ;; 12663 12664rdos*) 12665 lt_cv_deplibs_check_method=pass_all 12666 ;; 12667 12668solaris*) 12669 lt_cv_deplibs_check_method=pass_all 12670 ;; 12671 12672sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12673 lt_cv_deplibs_check_method=pass_all 12674 ;; 12675 12676sysv4 | sysv4.3*) 12677 case $host_vendor in 12678 motorola) 12679 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]' 12680 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12681 ;; 12682 ncr) 12683 lt_cv_deplibs_check_method=pass_all 12684 ;; 12685 sequent) 12686 lt_cv_file_magic_cmd='/bin/file' 12687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12688 ;; 12689 sni) 12690 lt_cv_file_magic_cmd='/bin/file' 12691 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12692 lt_cv_file_magic_test_file=/lib/libc.so 12693 ;; 12694 siemens) 12695 lt_cv_deplibs_check_method=pass_all 12696 ;; 12697 pc) 12698 lt_cv_deplibs_check_method=pass_all 12699 ;; 12700 esac 12701 ;; 12702 12703tpf*) 12704 lt_cv_deplibs_check_method=pass_all 12705 ;; 12706os2*) 12707 lt_cv_deplibs_check_method=pass_all 12708 ;; 12709esac 12710 12711fi 12712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12713printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 12714 12715file_magic_glob= 12716want_nocaseglob=no 12717if test "$build" = "$host"; then 12718 case $host_os in 12719 mingw* | pw32*) 12720 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12721 want_nocaseglob=yes 12722 else 12723 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12724 fi 12725 ;; 12726 esac 12727fi 12728 12729file_magic_cmd=$lt_cv_file_magic_cmd 12730deplibs_check_method=$lt_cv_deplibs_check_method 12731test -z "$deplibs_check_method" && deplibs_check_method=unknown 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754if test -n "$ac_tool_prefix"; then 12755 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12756set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12758printf %s "checking for $ac_word... " >&6; } 12759if test ${ac_cv_prog_DLLTOOL+y} 12760then : 12761 printf %s "(cached) " >&6 12762else $as_nop 12763 if test -n "$DLLTOOL"; then 12764 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12765else 12766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12767for as_dir in $PATH 12768do 12769 IFS=$as_save_IFS 12770 case $as_dir in #((( 12771 '') as_dir=./ ;; 12772 */) ;; 12773 *) as_dir=$as_dir/ ;; 12774 esac 12775 for ac_exec_ext in '' $ac_executable_extensions; do 12776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12777 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12779 break 2 12780 fi 12781done 12782 done 12783IFS=$as_save_IFS 12784 12785fi 12786fi 12787DLLTOOL=$ac_cv_prog_DLLTOOL 12788if test -n "$DLLTOOL"; then 12789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12790printf "%s\n" "$DLLTOOL" >&6; } 12791else 12792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12793printf "%s\n" "no" >&6; } 12794fi 12795 12796 12797fi 12798if test -z "$ac_cv_prog_DLLTOOL"; then 12799 ac_ct_DLLTOOL=$DLLTOOL 12800 # Extract the first word of "dlltool", so it can be a program name with args. 12801set dummy dlltool; ac_word=$2 12802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12803printf %s "checking for $ac_word... " >&6; } 12804if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 12805then : 12806 printf %s "(cached) " >&6 12807else $as_nop 12808 if test -n "$ac_ct_DLLTOOL"; then 12809 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12810else 12811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12812for as_dir in $PATH 12813do 12814 IFS=$as_save_IFS 12815 case $as_dir in #((( 12816 '') as_dir=./ ;; 12817 */) ;; 12818 *) as_dir=$as_dir/ ;; 12819 esac 12820 for ac_exec_ext in '' $ac_executable_extensions; do 12821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12822 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12824 break 2 12825 fi 12826done 12827 done 12828IFS=$as_save_IFS 12829 12830fi 12831fi 12832ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12833if test -n "$ac_ct_DLLTOOL"; then 12834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12835printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 12836else 12837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12838printf "%s\n" "no" >&6; } 12839fi 12840 12841 if test "x$ac_ct_DLLTOOL" = x; then 12842 DLLTOOL="false" 12843 else 12844 case $cross_compiling:$ac_tool_warned in 12845yes:) 12846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12847printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12848ac_tool_warned=yes ;; 12849esac 12850 DLLTOOL=$ac_ct_DLLTOOL 12851 fi 12852else 12853 DLLTOOL="$ac_cv_prog_DLLTOOL" 12854fi 12855 12856test -z "$DLLTOOL" && DLLTOOL=dlltool 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12868printf %s "checking how to associate runtime and link libraries... " >&6; } 12869if test ${lt_cv_sharedlib_from_linklib_cmd+y} 12870then : 12871 printf %s "(cached) " >&6 12872else $as_nop 12873 lt_cv_sharedlib_from_linklib_cmd='unknown' 12874 12875case $host_os in 12876cygwin* | mingw* | pw32* | cegcc*) 12877 # two different shell functions defined in ltmain.sh; 12878 # decide which one to use based on capabilities of $DLLTOOL 12879 case `$DLLTOOL --help 2>&1` in 12880 *--identify-strict*) 12881 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12882 ;; 12883 *) 12884 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12885 ;; 12886 esac 12887 ;; 12888*) 12889 # fallback: assume linklib IS sharedlib 12890 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12891 ;; 12892esac 12893 12894fi 12895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12896printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12897sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12898test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12899 12900 12901 12902 12903 12904 12905 12906if test -n "$ac_tool_prefix"; then 12907 for ac_prog in ar 12908 do 12909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12910set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12912printf %s "checking for $ac_word... " >&6; } 12913if test ${ac_cv_prog_AR+y} 12914then : 12915 printf %s "(cached) " >&6 12916else $as_nop 12917 if test -n "$AR"; then 12918 ac_cv_prog_AR="$AR" # Let the user override the test. 12919else 12920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12921for as_dir in $PATH 12922do 12923 IFS=$as_save_IFS 12924 case $as_dir in #((( 12925 '') as_dir=./ ;; 12926 */) ;; 12927 *) as_dir=$as_dir/ ;; 12928 esac 12929 for ac_exec_ext in '' $ac_executable_extensions; do 12930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12931 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12933 break 2 12934 fi 12935done 12936 done 12937IFS=$as_save_IFS 12938 12939fi 12940fi 12941AR=$ac_cv_prog_AR 12942if test -n "$AR"; then 12943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12944printf "%s\n" "$AR" >&6; } 12945else 12946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12947printf "%s\n" "no" >&6; } 12948fi 12949 12950 12951 test -n "$AR" && break 12952 done 12953fi 12954if test -z "$AR"; then 12955 ac_ct_AR=$AR 12956 for ac_prog in ar 12957do 12958 # Extract the first word of "$ac_prog", so it can be a program name with args. 12959set dummy $ac_prog; ac_word=$2 12960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12961printf %s "checking for $ac_word... " >&6; } 12962if test ${ac_cv_prog_ac_ct_AR+y} 12963then : 12964 printf %s "(cached) " >&6 12965else $as_nop 12966 if test -n "$ac_ct_AR"; then 12967 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12968else 12969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12970for as_dir in $PATH 12971do 12972 IFS=$as_save_IFS 12973 case $as_dir in #((( 12974 '') as_dir=./ ;; 12975 */) ;; 12976 *) as_dir=$as_dir/ ;; 12977 esac 12978 for ac_exec_ext in '' $ac_executable_extensions; do 12979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12980 ac_cv_prog_ac_ct_AR="$ac_prog" 12981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12982 break 2 12983 fi 12984done 12985 done 12986IFS=$as_save_IFS 12987 12988fi 12989fi 12990ac_ct_AR=$ac_cv_prog_ac_ct_AR 12991if test -n "$ac_ct_AR"; then 12992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12993printf "%s\n" "$ac_ct_AR" >&6; } 12994else 12995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12996printf "%s\n" "no" >&6; } 12997fi 12998 12999 13000 test -n "$ac_ct_AR" && break 13001done 13002 13003 if test "x$ac_ct_AR" = x; then 13004 AR="false" 13005 else 13006 case $cross_compiling:$ac_tool_warned in 13007yes:) 13008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13009printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13010ac_tool_warned=yes ;; 13011esac 13012 AR=$ac_ct_AR 13013 fi 13014fi 13015 13016: ${AR=ar} 13017 13018 13019 13020 13021 13022 13023# Use ARFLAGS variable as AR's operation code to sync the variable naming with 13024# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13025# higher priority because thats what people were doing historically (setting 13026# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13027# variable obsoleted/removed. 13028 13029test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13030lt_ar_flags=$AR_FLAGS 13031 13032 13033 13034 13035 13036 13037# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13038# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13039 13040 13041 13042 13043 13044 13045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13046printf %s "checking for archiver @FILE support... " >&6; } 13047if test ${lt_cv_ar_at_file+y} 13048then : 13049 printf %s "(cached) " >&6 13050else $as_nop 13051 lt_cv_ar_at_file=no 13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13053/* end confdefs.h. */ 13054 13055int 13056main (void) 13057{ 13058 13059 ; 13060 return 0; 13061} 13062_ACEOF 13063if ac_fn_c_try_compile "$LINENO" 13064then : 13065 echo conftest.$ac_objext > conftest.lst 13066 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13068 (eval $lt_ar_try) 2>&5 13069 ac_status=$? 13070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13071 test $ac_status = 0; } 13072 if test 0 -eq "$ac_status"; then 13073 # Ensure the archiver fails upon bogus file names. 13074 rm -f conftest.$ac_objext libconftest.a 13075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13076 (eval $lt_ar_try) 2>&5 13077 ac_status=$? 13078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13079 test $ac_status = 0; } 13080 if test 0 -ne "$ac_status"; then 13081 lt_cv_ar_at_file=@ 13082 fi 13083 fi 13084 rm -f conftest.* libconftest.a 13085 13086fi 13087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13088 13089fi 13090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13091printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13092 13093if test no = "$lt_cv_ar_at_file"; then 13094 archiver_list_spec= 13095else 13096 archiver_list_spec=$lt_cv_ar_at_file 13097fi 13098 13099 13100 13101 13102 13103 13104 13105if test -n "$ac_tool_prefix"; then 13106 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13107set dummy ${ac_tool_prefix}strip; ac_word=$2 13108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13109printf %s "checking for $ac_word... " >&6; } 13110if test ${ac_cv_prog_STRIP+y} 13111then : 13112 printf %s "(cached) " >&6 13113else $as_nop 13114 if test -n "$STRIP"; then 13115 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13116else 13117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13118for as_dir in $PATH 13119do 13120 IFS=$as_save_IFS 13121 case $as_dir in #((( 13122 '') as_dir=./ ;; 13123 */) ;; 13124 *) as_dir=$as_dir/ ;; 13125 esac 13126 for ac_exec_ext in '' $ac_executable_extensions; do 13127 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13128 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13130 break 2 13131 fi 13132done 13133 done 13134IFS=$as_save_IFS 13135 13136fi 13137fi 13138STRIP=$ac_cv_prog_STRIP 13139if test -n "$STRIP"; then 13140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13141printf "%s\n" "$STRIP" >&6; } 13142else 13143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13144printf "%s\n" "no" >&6; } 13145fi 13146 13147 13148fi 13149if test -z "$ac_cv_prog_STRIP"; then 13150 ac_ct_STRIP=$STRIP 13151 # Extract the first word of "strip", so it can be a program name with args. 13152set dummy strip; ac_word=$2 13153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13154printf %s "checking for $ac_word... " >&6; } 13155if test ${ac_cv_prog_ac_ct_STRIP+y} 13156then : 13157 printf %s "(cached) " >&6 13158else $as_nop 13159 if test -n "$ac_ct_STRIP"; then 13160 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13161else 13162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13163for as_dir in $PATH 13164do 13165 IFS=$as_save_IFS 13166 case $as_dir in #((( 13167 '') as_dir=./ ;; 13168 */) ;; 13169 *) as_dir=$as_dir/ ;; 13170 esac 13171 for ac_exec_ext in '' $ac_executable_extensions; do 13172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13173 ac_cv_prog_ac_ct_STRIP="strip" 13174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13175 break 2 13176 fi 13177done 13178 done 13179IFS=$as_save_IFS 13180 13181fi 13182fi 13183ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13184if test -n "$ac_ct_STRIP"; then 13185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13186printf "%s\n" "$ac_ct_STRIP" >&6; } 13187else 13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13189printf "%s\n" "no" >&6; } 13190fi 13191 13192 if test "x$ac_ct_STRIP" = x; then 13193 STRIP=":" 13194 else 13195 case $cross_compiling:$ac_tool_warned in 13196yes:) 13197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13198printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13199ac_tool_warned=yes ;; 13200esac 13201 STRIP=$ac_ct_STRIP 13202 fi 13203else 13204 STRIP="$ac_cv_prog_STRIP" 13205fi 13206 13207test -z "$STRIP" && STRIP=: 13208 13209 13210 13211 13212 13213 13214if test -n "$ac_tool_prefix"; then 13215 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13216set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13218printf %s "checking for $ac_word... " >&6; } 13219if test ${ac_cv_prog_RANLIB+y} 13220then : 13221 printf %s "(cached) " >&6 13222else $as_nop 13223 if test -n "$RANLIB"; then 13224 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13225else 13226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13227for as_dir in $PATH 13228do 13229 IFS=$as_save_IFS 13230 case $as_dir in #((( 13231 '') as_dir=./ ;; 13232 */) ;; 13233 *) as_dir=$as_dir/ ;; 13234 esac 13235 for ac_exec_ext in '' $ac_executable_extensions; do 13236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13237 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13239 break 2 13240 fi 13241done 13242 done 13243IFS=$as_save_IFS 13244 13245fi 13246fi 13247RANLIB=$ac_cv_prog_RANLIB 13248if test -n "$RANLIB"; then 13249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13250printf "%s\n" "$RANLIB" >&6; } 13251else 13252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13253printf "%s\n" "no" >&6; } 13254fi 13255 13256 13257fi 13258if test -z "$ac_cv_prog_RANLIB"; then 13259 ac_ct_RANLIB=$RANLIB 13260 # Extract the first word of "ranlib", so it can be a program name with args. 13261set dummy ranlib; ac_word=$2 13262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13263printf %s "checking for $ac_word... " >&6; } 13264if test ${ac_cv_prog_ac_ct_RANLIB+y} 13265then : 13266 printf %s "(cached) " >&6 13267else $as_nop 13268 if test -n "$ac_ct_RANLIB"; then 13269 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13270else 13271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13272for as_dir in $PATH 13273do 13274 IFS=$as_save_IFS 13275 case $as_dir in #((( 13276 '') as_dir=./ ;; 13277 */) ;; 13278 *) as_dir=$as_dir/ ;; 13279 esac 13280 for ac_exec_ext in '' $ac_executable_extensions; do 13281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13282 ac_cv_prog_ac_ct_RANLIB="ranlib" 13283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13284 break 2 13285 fi 13286done 13287 done 13288IFS=$as_save_IFS 13289 13290fi 13291fi 13292ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13293if test -n "$ac_ct_RANLIB"; then 13294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13295printf "%s\n" "$ac_ct_RANLIB" >&6; } 13296else 13297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13298printf "%s\n" "no" >&6; } 13299fi 13300 13301 if test "x$ac_ct_RANLIB" = x; then 13302 RANLIB=":" 13303 else 13304 case $cross_compiling:$ac_tool_warned in 13305yes:) 13306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13307printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13308ac_tool_warned=yes ;; 13309esac 13310 RANLIB=$ac_ct_RANLIB 13311 fi 13312else 13313 RANLIB="$ac_cv_prog_RANLIB" 13314fi 13315 13316test -z "$RANLIB" && RANLIB=: 13317 13318 13319 13320 13321 13322 13323# Determine commands to create old-style static archives. 13324old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13325old_postinstall_cmds='chmod 644 $oldlib' 13326old_postuninstall_cmds= 13327 13328if test -n "$RANLIB"; then 13329 case $host_os in 13330 bitrig* | openbsd*) 13331 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13332 ;; 13333 *) 13334 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13335 ;; 13336 esac 13337 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13338fi 13339 13340case $host_os in 13341 darwin*) 13342 lock_old_archive_extraction=yes ;; 13343 *) 13344 lock_old_archive_extraction=no ;; 13345esac 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385# If no C compiler was specified, use CC. 13386LTCC=${LTCC-"$CC"} 13387 13388# If no C compiler flags were specified, use CFLAGS. 13389LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13390 13391# Allow CC to be a program name with arguments. 13392compiler=$CC 13393 13394 13395# Check for command to grab the raw symbol name followed by C symbol from nm. 13396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13397printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13398if test ${lt_cv_sys_global_symbol_pipe+y} 13399then : 13400 printf %s "(cached) " >&6 13401else $as_nop 13402 13403# These are sane defaults that work on at least a few old systems. 13404# [They come from Ultrix. What could be older than Ultrix?!! ;)] 13405 13406# Character class describing NM global symbol codes. 13407symcode='[BCDEGRST]' 13408 13409# Regexp to match symbols that can be accessed directly from C. 13410sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13411 13412# Define system-specific variables. 13413case $host_os in 13414aix*) 13415 symcode='[BCDT]' 13416 ;; 13417cygwin* | mingw* | pw32* | cegcc*) 13418 symcode='[ABCDGISTW]' 13419 ;; 13420hpux*) 13421 if test ia64 = "$host_cpu"; then 13422 symcode='[ABCDEGRST]' 13423 fi 13424 ;; 13425irix* | nonstopux*) 13426 symcode='[BCDEGRST]' 13427 ;; 13428osf*) 13429 symcode='[BCDEGQRST]' 13430 ;; 13431solaris*) 13432 symcode='[BDRT]' 13433 ;; 13434sco3.2v5*) 13435 symcode='[DT]' 13436 ;; 13437sysv4.2uw2*) 13438 symcode='[DT]' 13439 ;; 13440sysv5* | sco5v6* | unixware* | OpenUNIX*) 13441 symcode='[ABDT]' 13442 ;; 13443sysv4) 13444 symcode='[DFNSTU]' 13445 ;; 13446esac 13447 13448# If we're using GNU nm, then use its standard symbol codes. 13449case `$NM -V 2>&1` in 13450*GNU* | *'with BFD'*) 13451 symcode='[ABCDGIRSTW]' ;; 13452esac 13453 13454if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13455 # Gets list of data symbols to import. 13456 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13457 # Adjust the below global symbol transforms to fixup imported variables. 13458 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13459 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13460 lt_c_name_lib_hook="\ 13461 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13462 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13463else 13464 # Disable hooks by default. 13465 lt_cv_sys_global_symbol_to_import= 13466 lt_cdecl_hook= 13467 lt_c_name_hook= 13468 lt_c_name_lib_hook= 13469fi 13470 13471# Transform an extracted symbol line into a proper C declaration. 13472# Some systems (esp. on ia64) link data and code symbols differently, 13473# so use this general approach. 13474lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13475$lt_cdecl_hook\ 13476" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13477" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13478 13479# Transform an extracted symbol line into symbol name and symbol address 13480lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13481$lt_c_name_hook\ 13482" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13483" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13484 13485# Transform an extracted symbol line into symbol name with lib prefix and 13486# symbol address. 13487lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13488$lt_c_name_lib_hook\ 13489" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13490" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13491" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13492 13493# Handle CRLF in mingw tool chain 13494opt_cr= 13495case $build_os in 13496mingw*) 13497 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13498 ;; 13499esac 13500 13501# Try without a prefix underscore, then with it. 13502for ac_symprfx in "" "_"; do 13503 13504 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13505 symxfrm="\\1 $ac_symprfx\\2 \\2" 13506 13507 # Write the raw and C identifiers. 13508 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13509 # Fake it for dumpbin and say T for any non-static function, 13510 # D for any global variable and I for any imported variable. 13511 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13512 # which start with @ or ?. 13513 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13514" {last_section=section; section=\$ 3};"\ 13515" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13516" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13517" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13518" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13519" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13520" \$ 0!~/External *\|/{next};"\ 13521" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13522" {if(hide[section]) next};"\ 13523" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13524" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13525" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13526" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13527" ' prfx=^$ac_symprfx" 13528 else 13529 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13530 fi 13531 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13532 13533 # Check to see that the pipe works correctly. 13534 pipe_works=no 13535 13536 rm -f conftest* 13537 cat > conftest.$ac_ext <<_LT_EOF 13538#ifdef __cplusplus 13539extern "C" { 13540#endif 13541char nm_test_var; 13542void nm_test_func(void); 13543void nm_test_func(void){} 13544#ifdef __cplusplus 13545} 13546#endif 13547int main(){nm_test_var='a';nm_test_func();return(0);} 13548_LT_EOF 13549 13550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13551 (eval $ac_compile) 2>&5 13552 ac_status=$? 13553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13554 test $ac_status = 0; }; then 13555 # Now try to grab the symbols. 13556 nlist=conftest.nm 13557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13558 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13559 ac_status=$? 13560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13561 test $ac_status = 0; } && test -s "$nlist"; then 13562 # Try sorting and uniquifying the output. 13563 if sort "$nlist" | uniq > "$nlist"T; then 13564 mv -f "$nlist"T "$nlist" 13565 else 13566 rm -f "$nlist"T 13567 fi 13568 13569 # Make sure that we snagged all the symbols we need. 13570 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13571 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13572 cat <<_LT_EOF > conftest.$ac_ext 13573/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13574#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13575/* DATA imports from DLLs on WIN32 can't be const, because runtime 13576 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13577# define LT_DLSYM_CONST 13578#elif defined __osf__ 13579/* This system does not cope well with relocations in const data. */ 13580# define LT_DLSYM_CONST 13581#else 13582# define LT_DLSYM_CONST const 13583#endif 13584 13585#ifdef __cplusplus 13586extern "C" { 13587#endif 13588 13589_LT_EOF 13590 # Now generate the symbol file. 13591 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13592 13593 cat <<_LT_EOF >> conftest.$ac_ext 13594 13595/* The mapping between symbol names and symbols. */ 13596LT_DLSYM_CONST struct { 13597 const char *name; 13598 void *address; 13599} 13600lt__PROGRAM__LTX_preloaded_symbols[] = 13601{ 13602 { "@PROGRAM@", (void *) 0 }, 13603_LT_EOF 13604 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13605 cat <<\_LT_EOF >> conftest.$ac_ext 13606 {0, (void *) 0} 13607}; 13608 13609/* This works around a problem in FreeBSD linker */ 13610#ifdef FREEBSD_WORKAROUND 13611static const void *lt_preloaded_setup() { 13612 return lt__PROGRAM__LTX_preloaded_symbols; 13613} 13614#endif 13615 13616#ifdef __cplusplus 13617} 13618#endif 13619_LT_EOF 13620 # Now try linking the two files. 13621 mv conftest.$ac_objext conftstm.$ac_objext 13622 lt_globsym_save_LIBS=$LIBS 13623 lt_globsym_save_CFLAGS=$CFLAGS 13624 LIBS=conftstm.$ac_objext 13625 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13627 (eval $ac_link) 2>&5 13628 ac_status=$? 13629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13630 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13631 pipe_works=yes 13632 fi 13633 LIBS=$lt_globsym_save_LIBS 13634 CFLAGS=$lt_globsym_save_CFLAGS 13635 else 13636 echo "cannot find nm_test_func in $nlist" >&5 13637 fi 13638 else 13639 echo "cannot find nm_test_var in $nlist" >&5 13640 fi 13641 else 13642 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13643 fi 13644 else 13645 echo "$progname: failed program was:" >&5 13646 cat conftest.$ac_ext >&5 13647 fi 13648 rm -rf conftest* conftst* 13649 13650 # Do not use the global_symbol_pipe unless it works. 13651 if test yes = "$pipe_works"; then 13652 break 13653 else 13654 lt_cv_sys_global_symbol_pipe= 13655 fi 13656done 13657 13658fi 13659 13660if test -z "$lt_cv_sys_global_symbol_pipe"; then 13661 lt_cv_sys_global_symbol_to_cdecl= 13662fi 13663if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13665printf "%s\n" "failed" >&6; } 13666else 13667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13668printf "%s\n" "ok" >&6; } 13669fi 13670 13671# Response file support. 13672if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13673 nm_file_list_spec='@' 13674elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13675 nm_file_list_spec='@' 13676fi 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13715printf %s "checking for sysroot... " >&6; } 13716 13717# Check whether --with-sysroot was given. 13718if test ${with_sysroot+y} 13719then : 13720 withval=$with_sysroot; 13721else $as_nop 13722 with_sysroot=no 13723fi 13724 13725 13726lt_sysroot= 13727case $with_sysroot in #( 13728 yes) 13729 if test yes = "$GCC"; then 13730 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13731 fi 13732 ;; #( 13733 /*) 13734 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 13735 ;; #( 13736 no|'') 13737 ;; #( 13738 *) 13739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13740printf "%s\n" "$with_sysroot" >&6; } 13741 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13742 ;; 13743esac 13744 13745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13746printf "%s\n" "${lt_sysroot:-no}" >&6; } 13747 13748 13749 13750 13751 13752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13753printf %s "checking for a working dd... " >&6; } 13754if test ${ac_cv_path_lt_DD+y} 13755then : 13756 printf %s "(cached) " >&6 13757else $as_nop 13758 printf 0123456789abcdef0123456789abcdef >conftest.i 13759cat conftest.i conftest.i >conftest2.i 13760: ${lt_DD:=$DD} 13761if test -z "$lt_DD"; then 13762 ac_path_lt_DD_found=false 13763 # Loop through the user's path and test for each of PROGNAME-LIST 13764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13765for as_dir in $PATH 13766do 13767 IFS=$as_save_IFS 13768 case $as_dir in #((( 13769 '') as_dir=./ ;; 13770 */) ;; 13771 *) as_dir=$as_dir/ ;; 13772 esac 13773 for ac_prog in dd 13774 do 13775 for ac_exec_ext in '' $ac_executable_extensions; do 13776 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 13777 as_fn_executable_p "$ac_path_lt_DD" || continue 13778if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13779 cmp -s conftest.i conftest.out \ 13780 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13781fi 13782 $ac_path_lt_DD_found && break 3 13783 done 13784 done 13785 done 13786IFS=$as_save_IFS 13787 if test -z "$ac_cv_path_lt_DD"; then 13788 : 13789 fi 13790else 13791 ac_cv_path_lt_DD=$lt_DD 13792fi 13793 13794rm -f conftest.i conftest2.i conftest.out 13795fi 13796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13797printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 13798 13799 13800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13801printf %s "checking how to truncate binary pipes... " >&6; } 13802if test ${lt_cv_truncate_bin+y} 13803then : 13804 printf %s "(cached) " >&6 13805else $as_nop 13806 printf 0123456789abcdef0123456789abcdef >conftest.i 13807cat conftest.i conftest.i >conftest2.i 13808lt_cv_truncate_bin= 13809if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13810 cmp -s conftest.i conftest.out \ 13811 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13812fi 13813rm -f conftest.i conftest2.i conftest.out 13814test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13815fi 13816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13817printf "%s\n" "$lt_cv_truncate_bin" >&6; } 13818 13819 13820 13821 13822 13823 13824 13825# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13826func_cc_basename () 13827{ 13828 for cc_temp in $*""; do 13829 case $cc_temp in 13830 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13831 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13832 \-*) ;; 13833 *) break;; 13834 esac 13835 done 13836 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13837} 13838 13839# Check whether --enable-libtool-lock was given. 13840if test ${enable_libtool_lock+y} 13841then : 13842 enableval=$enable_libtool_lock; 13843fi 13844 13845test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13846 13847# Some flags need to be propagated to the compiler or linker for good 13848# libtool support. 13849case $host in 13850ia64-*-hpux*) 13851 # Find out what ABI is being produced by ac_compile, and set mode 13852 # options accordingly. 13853 echo 'int i;' > conftest.$ac_ext 13854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13855 (eval $ac_compile) 2>&5 13856 ac_status=$? 13857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13858 test $ac_status = 0; }; then 13859 case `$FILECMD conftest.$ac_objext` in 13860 *ELF-32*) 13861 HPUX_IA64_MODE=32 13862 ;; 13863 *ELF-64*) 13864 HPUX_IA64_MODE=64 13865 ;; 13866 esac 13867 fi 13868 rm -rf conftest* 13869 ;; 13870*-*-irix6*) 13871 # Find out what ABI is being produced by ac_compile, and set linker 13872 # options accordingly. 13873 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13875 (eval $ac_compile) 2>&5 13876 ac_status=$? 13877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13878 test $ac_status = 0; }; then 13879 if test yes = "$lt_cv_prog_gnu_ld"; then 13880 case `$FILECMD conftest.$ac_objext` in 13881 *32-bit*) 13882 LD="${LD-ld} -melf32bsmip" 13883 ;; 13884 *N32*) 13885 LD="${LD-ld} -melf32bmipn32" 13886 ;; 13887 *64-bit*) 13888 LD="${LD-ld} -melf64bmip" 13889 ;; 13890 esac 13891 else 13892 case `$FILECMD conftest.$ac_objext` in 13893 *32-bit*) 13894 LD="${LD-ld} -32" 13895 ;; 13896 *N32*) 13897 LD="${LD-ld} -n32" 13898 ;; 13899 *64-bit*) 13900 LD="${LD-ld} -64" 13901 ;; 13902 esac 13903 fi 13904 fi 13905 rm -rf conftest* 13906 ;; 13907 13908mips64*-*linux*) 13909 # Find out what ABI is being produced by ac_compile, and set linker 13910 # options accordingly. 13911 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13913 (eval $ac_compile) 2>&5 13914 ac_status=$? 13915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13916 test $ac_status = 0; }; then 13917 emul=elf 13918 case `$FILECMD conftest.$ac_objext` in 13919 *32-bit*) 13920 emul="${emul}32" 13921 ;; 13922 *64-bit*) 13923 emul="${emul}64" 13924 ;; 13925 esac 13926 case `$FILECMD conftest.$ac_objext` in 13927 *MSB*) 13928 emul="${emul}btsmip" 13929 ;; 13930 *LSB*) 13931 emul="${emul}ltsmip" 13932 ;; 13933 esac 13934 case `$FILECMD conftest.$ac_objext` in 13935 *N32*) 13936 emul="${emul}n32" 13937 ;; 13938 esac 13939 LD="${LD-ld} -m $emul" 13940 fi 13941 rm -rf conftest* 13942 ;; 13943 13944x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13945s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13946 # Find out what ABI is being produced by ac_compile, and set linker 13947 # options accordingly. Note that the listed cases only cover the 13948 # situations where additional linker options are needed (such as when 13949 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13950 # vice versa); the common cases where no linker options are needed do 13951 # not appear in the list. 13952 echo 'int i;' > conftest.$ac_ext 13953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13954 (eval $ac_compile) 2>&5 13955 ac_status=$? 13956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13957 test $ac_status = 0; }; then 13958 case `$FILECMD conftest.o` in 13959 *32-bit*) 13960 case $host in 13961 x86_64-*kfreebsd*-gnu) 13962 LD="${LD-ld} -m elf_i386_fbsd" 13963 ;; 13964 x86_64-*linux*) 13965 case `$FILECMD conftest.o` in 13966 *x86-64*) 13967 LD="${LD-ld} -m elf32_x86_64" 13968 ;; 13969 *) 13970 LD="${LD-ld} -m elf_i386" 13971 ;; 13972 esac 13973 ;; 13974 powerpc64le-*linux*) 13975 LD="${LD-ld} -m elf32lppclinux" 13976 ;; 13977 powerpc64-*linux*) 13978 LD="${LD-ld} -m elf32ppclinux" 13979 ;; 13980 s390x-*linux*) 13981 LD="${LD-ld} -m elf_s390" 13982 ;; 13983 sparc64-*linux*) 13984 LD="${LD-ld} -m elf32_sparc" 13985 ;; 13986 esac 13987 ;; 13988 *64-bit*) 13989 case $host in 13990 x86_64-*kfreebsd*-gnu) 13991 LD="${LD-ld} -m elf_x86_64_fbsd" 13992 ;; 13993 x86_64-*linux*) 13994 LD="${LD-ld} -m elf_x86_64" 13995 ;; 13996 powerpcle-*linux*) 13997 LD="${LD-ld} -m elf64lppc" 13998 ;; 13999 powerpc-*linux*) 14000 LD="${LD-ld} -m elf64ppc" 14001 ;; 14002 s390*-*linux*|s390*-*tpf*) 14003 LD="${LD-ld} -m elf64_s390" 14004 ;; 14005 sparc*-*linux*) 14006 LD="${LD-ld} -m elf64_sparc" 14007 ;; 14008 esac 14009 ;; 14010 esac 14011 fi 14012 rm -rf conftest* 14013 ;; 14014 14015*-*-sco3.2v5*) 14016 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14017 SAVE_CFLAGS=$CFLAGS 14018 CFLAGS="$CFLAGS -belf" 14019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14020printf %s "checking whether the C compiler needs -belf... " >&6; } 14021if test ${lt_cv_cc_needs_belf+y} 14022then : 14023 printf %s "(cached) " >&6 14024else $as_nop 14025 ac_ext=c 14026ac_cpp='$CPP $CPPFLAGS' 14027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14029ac_compiler_gnu=$ac_cv_c_compiler_gnu 14030 14031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14032/* end confdefs.h. */ 14033 14034int 14035main (void) 14036{ 14037 14038 ; 14039 return 0; 14040} 14041_ACEOF 14042if ac_fn_c_try_link "$LINENO" 14043then : 14044 lt_cv_cc_needs_belf=yes 14045else $as_nop 14046 lt_cv_cc_needs_belf=no 14047fi 14048rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14049 conftest$ac_exeext conftest.$ac_ext 14050 ac_ext=c 14051ac_cpp='$CPP $CPPFLAGS' 14052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14054ac_compiler_gnu=$ac_cv_c_compiler_gnu 14055 14056fi 14057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14058printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14059 if test yes != "$lt_cv_cc_needs_belf"; then 14060 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14061 CFLAGS=$SAVE_CFLAGS 14062 fi 14063 ;; 14064*-*solaris*) 14065 # Find out what ABI is being produced by ac_compile, and set linker 14066 # options accordingly. 14067 echo 'int i;' > conftest.$ac_ext 14068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14069 (eval $ac_compile) 2>&5 14070 ac_status=$? 14071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14072 test $ac_status = 0; }; then 14073 case `$FILECMD conftest.o` in 14074 *64-bit*) 14075 case $lt_cv_prog_gnu_ld in 14076 yes*) 14077 case $host in 14078 i?86-*-solaris*|x86_64-*-solaris*) 14079 LD="${LD-ld} -m elf_x86_64" 14080 ;; 14081 sparc*-*-solaris*) 14082 LD="${LD-ld} -m elf64_sparc" 14083 ;; 14084 esac 14085 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14086 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14087 LD=${LD-ld}_sol2 14088 fi 14089 ;; 14090 *) 14091 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14092 LD="${LD-ld} -64" 14093 fi 14094 ;; 14095 esac 14096 ;; 14097 esac 14098 fi 14099 rm -rf conftest* 14100 ;; 14101esac 14102 14103need_locks=$enable_libtool_lock 14104 14105if test -n "$ac_tool_prefix"; then 14106 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14107set dummy ${ac_tool_prefix}mt; ac_word=$2 14108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14109printf %s "checking for $ac_word... " >&6; } 14110if test ${ac_cv_prog_MANIFEST_TOOL+y} 14111then : 14112 printf %s "(cached) " >&6 14113else $as_nop 14114 if test -n "$MANIFEST_TOOL"; then 14115 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14116else 14117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14118for as_dir in $PATH 14119do 14120 IFS=$as_save_IFS 14121 case $as_dir in #((( 14122 '') as_dir=./ ;; 14123 */) ;; 14124 *) as_dir=$as_dir/ ;; 14125 esac 14126 for ac_exec_ext in '' $ac_executable_extensions; do 14127 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14128 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14130 break 2 14131 fi 14132done 14133 done 14134IFS=$as_save_IFS 14135 14136fi 14137fi 14138MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14139if test -n "$MANIFEST_TOOL"; then 14140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14141printf "%s\n" "$MANIFEST_TOOL" >&6; } 14142else 14143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14144printf "%s\n" "no" >&6; } 14145fi 14146 14147 14148fi 14149if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14150 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14151 # Extract the first word of "mt", so it can be a program name with args. 14152set dummy mt; ac_word=$2 14153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14154printf %s "checking for $ac_word... " >&6; } 14155if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14156then : 14157 printf %s "(cached) " >&6 14158else $as_nop 14159 if test -n "$ac_ct_MANIFEST_TOOL"; then 14160 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14161else 14162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14163for as_dir in $PATH 14164do 14165 IFS=$as_save_IFS 14166 case $as_dir in #((( 14167 '') as_dir=./ ;; 14168 */) ;; 14169 *) as_dir=$as_dir/ ;; 14170 esac 14171 for ac_exec_ext in '' $ac_executable_extensions; do 14172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14173 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14175 break 2 14176 fi 14177done 14178 done 14179IFS=$as_save_IFS 14180 14181fi 14182fi 14183ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14184if test -n "$ac_ct_MANIFEST_TOOL"; then 14185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14186printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14187else 14188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14189printf "%s\n" "no" >&6; } 14190fi 14191 14192 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14193 MANIFEST_TOOL=":" 14194 else 14195 case $cross_compiling:$ac_tool_warned in 14196yes:) 14197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14198printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14199ac_tool_warned=yes ;; 14200esac 14201 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14202 fi 14203else 14204 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14205fi 14206 14207test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14209printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14210if test ${lt_cv_path_mainfest_tool+y} 14211then : 14212 printf %s "(cached) " >&6 14213else $as_nop 14214 lt_cv_path_mainfest_tool=no 14215 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14216 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14217 cat conftest.err >&5 14218 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14219 lt_cv_path_mainfest_tool=yes 14220 fi 14221 rm -f conftest* 14222fi 14223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14224printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14225if test yes != "$lt_cv_path_mainfest_tool"; then 14226 MANIFEST_TOOL=: 14227fi 14228 14229 14230 14231 14232 14233 14234 case $host_os in 14235 rhapsody* | darwin*) 14236 if test -n "$ac_tool_prefix"; then 14237 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14238set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14240printf %s "checking for $ac_word... " >&6; } 14241if test ${ac_cv_prog_DSYMUTIL+y} 14242then : 14243 printf %s "(cached) " >&6 14244else $as_nop 14245 if test -n "$DSYMUTIL"; then 14246 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14247else 14248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14249for as_dir in $PATH 14250do 14251 IFS=$as_save_IFS 14252 case $as_dir in #((( 14253 '') as_dir=./ ;; 14254 */) ;; 14255 *) as_dir=$as_dir/ ;; 14256 esac 14257 for ac_exec_ext in '' $ac_executable_extensions; do 14258 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14259 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14261 break 2 14262 fi 14263done 14264 done 14265IFS=$as_save_IFS 14266 14267fi 14268fi 14269DSYMUTIL=$ac_cv_prog_DSYMUTIL 14270if test -n "$DSYMUTIL"; then 14271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14272printf "%s\n" "$DSYMUTIL" >&6; } 14273else 14274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14275printf "%s\n" "no" >&6; } 14276fi 14277 14278 14279fi 14280if test -z "$ac_cv_prog_DSYMUTIL"; then 14281 ac_ct_DSYMUTIL=$DSYMUTIL 14282 # Extract the first word of "dsymutil", so it can be a program name with args. 14283set dummy dsymutil; ac_word=$2 14284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14285printf %s "checking for $ac_word... " >&6; } 14286if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14287then : 14288 printf %s "(cached) " >&6 14289else $as_nop 14290 if test -n "$ac_ct_DSYMUTIL"; then 14291 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14292else 14293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14294for as_dir in $PATH 14295do 14296 IFS=$as_save_IFS 14297 case $as_dir in #((( 14298 '') as_dir=./ ;; 14299 */) ;; 14300 *) as_dir=$as_dir/ ;; 14301 esac 14302 for ac_exec_ext in '' $ac_executable_extensions; do 14303 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14304 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14306 break 2 14307 fi 14308done 14309 done 14310IFS=$as_save_IFS 14311 14312fi 14313fi 14314ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14315if test -n "$ac_ct_DSYMUTIL"; then 14316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14317printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14318else 14319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14320printf "%s\n" "no" >&6; } 14321fi 14322 14323 if test "x$ac_ct_DSYMUTIL" = x; then 14324 DSYMUTIL=":" 14325 else 14326 case $cross_compiling:$ac_tool_warned in 14327yes:) 14328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14329printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14330ac_tool_warned=yes ;; 14331esac 14332 DSYMUTIL=$ac_ct_DSYMUTIL 14333 fi 14334else 14335 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14336fi 14337 14338 if test -n "$ac_tool_prefix"; then 14339 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14340set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14342printf %s "checking for $ac_word... " >&6; } 14343if test ${ac_cv_prog_NMEDIT+y} 14344then : 14345 printf %s "(cached) " >&6 14346else $as_nop 14347 if test -n "$NMEDIT"; then 14348 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14349else 14350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14351for as_dir in $PATH 14352do 14353 IFS=$as_save_IFS 14354 case $as_dir in #((( 14355 '') as_dir=./ ;; 14356 */) ;; 14357 *) as_dir=$as_dir/ ;; 14358 esac 14359 for ac_exec_ext in '' $ac_executable_extensions; do 14360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14361 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14363 break 2 14364 fi 14365done 14366 done 14367IFS=$as_save_IFS 14368 14369fi 14370fi 14371NMEDIT=$ac_cv_prog_NMEDIT 14372if test -n "$NMEDIT"; then 14373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14374printf "%s\n" "$NMEDIT" >&6; } 14375else 14376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14377printf "%s\n" "no" >&6; } 14378fi 14379 14380 14381fi 14382if test -z "$ac_cv_prog_NMEDIT"; then 14383 ac_ct_NMEDIT=$NMEDIT 14384 # Extract the first word of "nmedit", so it can be a program name with args. 14385set dummy nmedit; ac_word=$2 14386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14387printf %s "checking for $ac_word... " >&6; } 14388if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14389then : 14390 printf %s "(cached) " >&6 14391else $as_nop 14392 if test -n "$ac_ct_NMEDIT"; then 14393 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14394else 14395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14396for as_dir in $PATH 14397do 14398 IFS=$as_save_IFS 14399 case $as_dir in #((( 14400 '') as_dir=./ ;; 14401 */) ;; 14402 *) as_dir=$as_dir/ ;; 14403 esac 14404 for ac_exec_ext in '' $ac_executable_extensions; do 14405 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14406 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14408 break 2 14409 fi 14410done 14411 done 14412IFS=$as_save_IFS 14413 14414fi 14415fi 14416ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14417if test -n "$ac_ct_NMEDIT"; then 14418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14419printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14420else 14421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14422printf "%s\n" "no" >&6; } 14423fi 14424 14425 if test "x$ac_ct_NMEDIT" = x; then 14426 NMEDIT=":" 14427 else 14428 case $cross_compiling:$ac_tool_warned in 14429yes:) 14430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14431printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14432ac_tool_warned=yes ;; 14433esac 14434 NMEDIT=$ac_ct_NMEDIT 14435 fi 14436else 14437 NMEDIT="$ac_cv_prog_NMEDIT" 14438fi 14439 14440 if test -n "$ac_tool_prefix"; then 14441 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14442set dummy ${ac_tool_prefix}lipo; ac_word=$2 14443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14444printf %s "checking for $ac_word... " >&6; } 14445if test ${ac_cv_prog_LIPO+y} 14446then : 14447 printf %s "(cached) " >&6 14448else $as_nop 14449 if test -n "$LIPO"; then 14450 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14451else 14452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14453for as_dir in $PATH 14454do 14455 IFS=$as_save_IFS 14456 case $as_dir in #((( 14457 '') as_dir=./ ;; 14458 */) ;; 14459 *) as_dir=$as_dir/ ;; 14460 esac 14461 for ac_exec_ext in '' $ac_executable_extensions; do 14462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14463 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14465 break 2 14466 fi 14467done 14468 done 14469IFS=$as_save_IFS 14470 14471fi 14472fi 14473LIPO=$ac_cv_prog_LIPO 14474if test -n "$LIPO"; then 14475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14476printf "%s\n" "$LIPO" >&6; } 14477else 14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14479printf "%s\n" "no" >&6; } 14480fi 14481 14482 14483fi 14484if test -z "$ac_cv_prog_LIPO"; then 14485 ac_ct_LIPO=$LIPO 14486 # Extract the first word of "lipo", so it can be a program name with args. 14487set dummy lipo; ac_word=$2 14488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14489printf %s "checking for $ac_word... " >&6; } 14490if test ${ac_cv_prog_ac_ct_LIPO+y} 14491then : 14492 printf %s "(cached) " >&6 14493else $as_nop 14494 if test -n "$ac_ct_LIPO"; then 14495 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14496else 14497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14498for as_dir in $PATH 14499do 14500 IFS=$as_save_IFS 14501 case $as_dir in #((( 14502 '') as_dir=./ ;; 14503 */) ;; 14504 *) as_dir=$as_dir/ ;; 14505 esac 14506 for ac_exec_ext in '' $ac_executable_extensions; do 14507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14508 ac_cv_prog_ac_ct_LIPO="lipo" 14509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14510 break 2 14511 fi 14512done 14513 done 14514IFS=$as_save_IFS 14515 14516fi 14517fi 14518ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14519if test -n "$ac_ct_LIPO"; then 14520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14521printf "%s\n" "$ac_ct_LIPO" >&6; } 14522else 14523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14524printf "%s\n" "no" >&6; } 14525fi 14526 14527 if test "x$ac_ct_LIPO" = x; then 14528 LIPO=":" 14529 else 14530 case $cross_compiling:$ac_tool_warned in 14531yes:) 14532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14533printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14534ac_tool_warned=yes ;; 14535esac 14536 LIPO=$ac_ct_LIPO 14537 fi 14538else 14539 LIPO="$ac_cv_prog_LIPO" 14540fi 14541 14542 if test -n "$ac_tool_prefix"; then 14543 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14544set dummy ${ac_tool_prefix}otool; ac_word=$2 14545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14546printf %s "checking for $ac_word... " >&6; } 14547if test ${ac_cv_prog_OTOOL+y} 14548then : 14549 printf %s "(cached) " >&6 14550else $as_nop 14551 if test -n "$OTOOL"; then 14552 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14553else 14554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14555for as_dir in $PATH 14556do 14557 IFS=$as_save_IFS 14558 case $as_dir in #((( 14559 '') as_dir=./ ;; 14560 */) ;; 14561 *) as_dir=$as_dir/ ;; 14562 esac 14563 for ac_exec_ext in '' $ac_executable_extensions; do 14564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14565 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14567 break 2 14568 fi 14569done 14570 done 14571IFS=$as_save_IFS 14572 14573fi 14574fi 14575OTOOL=$ac_cv_prog_OTOOL 14576if test -n "$OTOOL"; then 14577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14578printf "%s\n" "$OTOOL" >&6; } 14579else 14580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14581printf "%s\n" "no" >&6; } 14582fi 14583 14584 14585fi 14586if test -z "$ac_cv_prog_OTOOL"; then 14587 ac_ct_OTOOL=$OTOOL 14588 # Extract the first word of "otool", so it can be a program name with args. 14589set dummy otool; ac_word=$2 14590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14591printf %s "checking for $ac_word... " >&6; } 14592if test ${ac_cv_prog_ac_ct_OTOOL+y} 14593then : 14594 printf %s "(cached) " >&6 14595else $as_nop 14596 if test -n "$ac_ct_OTOOL"; then 14597 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14598else 14599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14600for as_dir in $PATH 14601do 14602 IFS=$as_save_IFS 14603 case $as_dir in #((( 14604 '') as_dir=./ ;; 14605 */) ;; 14606 *) as_dir=$as_dir/ ;; 14607 esac 14608 for ac_exec_ext in '' $ac_executable_extensions; do 14609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14610 ac_cv_prog_ac_ct_OTOOL="otool" 14611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14612 break 2 14613 fi 14614done 14615 done 14616IFS=$as_save_IFS 14617 14618fi 14619fi 14620ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14621if test -n "$ac_ct_OTOOL"; then 14622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14623printf "%s\n" "$ac_ct_OTOOL" >&6; } 14624else 14625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14626printf "%s\n" "no" >&6; } 14627fi 14628 14629 if test "x$ac_ct_OTOOL" = x; then 14630 OTOOL=":" 14631 else 14632 case $cross_compiling:$ac_tool_warned in 14633yes:) 14634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14635printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14636ac_tool_warned=yes ;; 14637esac 14638 OTOOL=$ac_ct_OTOOL 14639 fi 14640else 14641 OTOOL="$ac_cv_prog_OTOOL" 14642fi 14643 14644 if test -n "$ac_tool_prefix"; then 14645 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14646set dummy ${ac_tool_prefix}otool64; ac_word=$2 14647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14648printf %s "checking for $ac_word... " >&6; } 14649if test ${ac_cv_prog_OTOOL64+y} 14650then : 14651 printf %s "(cached) " >&6 14652else $as_nop 14653 if test -n "$OTOOL64"; then 14654 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14655else 14656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14657for as_dir in $PATH 14658do 14659 IFS=$as_save_IFS 14660 case $as_dir in #((( 14661 '') as_dir=./ ;; 14662 */) ;; 14663 *) as_dir=$as_dir/ ;; 14664 esac 14665 for ac_exec_ext in '' $ac_executable_extensions; do 14666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14667 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14669 break 2 14670 fi 14671done 14672 done 14673IFS=$as_save_IFS 14674 14675fi 14676fi 14677OTOOL64=$ac_cv_prog_OTOOL64 14678if test -n "$OTOOL64"; then 14679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14680printf "%s\n" "$OTOOL64" >&6; } 14681else 14682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14683printf "%s\n" "no" >&6; } 14684fi 14685 14686 14687fi 14688if test -z "$ac_cv_prog_OTOOL64"; then 14689 ac_ct_OTOOL64=$OTOOL64 14690 # Extract the first word of "otool64", so it can be a program name with args. 14691set dummy otool64; ac_word=$2 14692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14693printf %s "checking for $ac_word... " >&6; } 14694if test ${ac_cv_prog_ac_ct_OTOOL64+y} 14695then : 14696 printf %s "(cached) " >&6 14697else $as_nop 14698 if test -n "$ac_ct_OTOOL64"; then 14699 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14700else 14701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14702for as_dir in $PATH 14703do 14704 IFS=$as_save_IFS 14705 case $as_dir in #((( 14706 '') as_dir=./ ;; 14707 */) ;; 14708 *) as_dir=$as_dir/ ;; 14709 esac 14710 for ac_exec_ext in '' $ac_executable_extensions; do 14711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14712 ac_cv_prog_ac_ct_OTOOL64="otool64" 14713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14714 break 2 14715 fi 14716done 14717 done 14718IFS=$as_save_IFS 14719 14720fi 14721fi 14722ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14723if test -n "$ac_ct_OTOOL64"; then 14724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14725printf "%s\n" "$ac_ct_OTOOL64" >&6; } 14726else 14727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14728printf "%s\n" "no" >&6; } 14729fi 14730 14731 if test "x$ac_ct_OTOOL64" = x; then 14732 OTOOL64=":" 14733 else 14734 case $cross_compiling:$ac_tool_warned in 14735yes:) 14736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14737printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14738ac_tool_warned=yes ;; 14739esac 14740 OTOOL64=$ac_ct_OTOOL64 14741 fi 14742else 14743 OTOOL64="$ac_cv_prog_OTOOL64" 14744fi 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14773printf %s "checking for -single_module linker flag... " >&6; } 14774if test ${lt_cv_apple_cc_single_mod+y} 14775then : 14776 printf %s "(cached) " >&6 14777else $as_nop 14778 lt_cv_apple_cc_single_mod=no 14779 if test -z "$LT_MULTI_MODULE"; then 14780 # By default we will add the -single_module flag. You can override 14781 # by either setting the environment variable LT_MULTI_MODULE 14782 # non-empty at configure time, or by adding -multi_module to the 14783 # link flags. 14784 rm -rf libconftest.dylib* 14785 echo "int foo(void){return 1;}" > conftest.c 14786 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14787-dynamiclib -Wl,-single_module conftest.c" >&5 14788 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14789 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14790 _lt_result=$? 14791 # If there is a non-empty error log, and "single_module" 14792 # appears in it, assume the flag caused a linker warning 14793 if test -s conftest.err && $GREP single_module conftest.err; then 14794 cat conftest.err >&5 14795 # Otherwise, if the output was created with a 0 exit code from 14796 # the compiler, it worked. 14797 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14798 lt_cv_apple_cc_single_mod=yes 14799 else 14800 cat conftest.err >&5 14801 fi 14802 rm -rf libconftest.dylib* 14803 rm -f conftest.* 14804 fi 14805fi 14806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14807printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 14808 14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14810printf %s "checking for -exported_symbols_list linker flag... " >&6; } 14811if test ${lt_cv_ld_exported_symbols_list+y} 14812then : 14813 printf %s "(cached) " >&6 14814else $as_nop 14815 lt_cv_ld_exported_symbols_list=no 14816 save_LDFLAGS=$LDFLAGS 14817 echo "_main" > conftest.sym 14818 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14820/* end confdefs.h. */ 14821 14822int 14823main (void) 14824{ 14825 14826 ; 14827 return 0; 14828} 14829_ACEOF 14830if ac_fn_c_try_link "$LINENO" 14831then : 14832 lt_cv_ld_exported_symbols_list=yes 14833else $as_nop 14834 lt_cv_ld_exported_symbols_list=no 14835fi 14836rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14837 conftest$ac_exeext conftest.$ac_ext 14838 LDFLAGS=$save_LDFLAGS 14839 14840fi 14841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14842printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 14843 14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14845printf %s "checking for -force_load linker flag... " >&6; } 14846if test ${lt_cv_ld_force_load+y} 14847then : 14848 printf %s "(cached) " >&6 14849else $as_nop 14850 lt_cv_ld_force_load=no 14851 cat > conftest.c << _LT_EOF 14852int forced_loaded() { return 2;} 14853_LT_EOF 14854 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14855 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14856 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 14857 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 14858 echo "$RANLIB libconftest.a" >&5 14859 $RANLIB libconftest.a 2>&5 14860 cat > conftest.c << _LT_EOF 14861int main() { return 0;} 14862_LT_EOF 14863 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14864 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14865 _lt_result=$? 14866 if test -s conftest.err && $GREP force_load conftest.err; then 14867 cat conftest.err >&5 14868 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14869 lt_cv_ld_force_load=yes 14870 else 14871 cat conftest.err >&5 14872 fi 14873 rm -f conftest.err libconftest.a conftest conftest.c 14874 rm -rf conftest.dSYM 14875 14876fi 14877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14878printf "%s\n" "$lt_cv_ld_force_load" >&6; } 14879 case $host_os in 14880 rhapsody* | darwin1.[012]) 14881 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14882 darwin1.*) 14883 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14884 darwin*) 14885 case $MACOSX_DEPLOYMENT_TARGET,$host in 14886 10.[012],*|,*powerpc*-darwin[5-8]*) 14887 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14888 *) 14889 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14890 esac 14891 ;; 14892 esac 14893 if test yes = "$lt_cv_apple_cc_single_mod"; then 14894 _lt_dar_single_mod='$single_module' 14895 fi 14896 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14897 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14898 else 14899 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14900 fi 14901 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14902 _lt_dsymutil='~$DSYMUTIL $lib || :' 14903 else 14904 _lt_dsymutil= 14905 fi 14906 ;; 14907 esac 14908 14909# func_munge_path_list VARIABLE PATH 14910# ----------------------------------- 14911# VARIABLE is name of variable containing _space_ separated list of 14912# directories to be munged by the contents of PATH, which is string 14913# having a format: 14914# "DIR[:DIR]:" 14915# string "DIR[ DIR]" will be prepended to VARIABLE 14916# ":DIR[:DIR]" 14917# string "DIR[ DIR]" will be appended to VARIABLE 14918# "DIRP[:DIRP]::[DIRA:]DIRA" 14919# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14920# "DIRA[ DIRA]" will be appended to VARIABLE 14921# "DIR[:DIR]" 14922# VARIABLE will be replaced by "DIR[ DIR]" 14923func_munge_path_list () 14924{ 14925 case x$2 in 14926 x) 14927 ;; 14928 *:) 14929 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14930 ;; 14931 x:*) 14932 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14933 ;; 14934 *::*) 14935 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14936 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14937 ;; 14938 *) 14939 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14940 ;; 14941 esac 14942} 14943 14944ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14945" 14946if test "x$ac_cv_header_dlfcn_h" = xyes 14947then : 14948 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 14949 14950fi 14951 14952 14953 14954 14955 14956# Set options 14957 14958 14959 14960 enable_dlopen=no 14961 14962 14963 enable_win32_dll=no 14964 14965 14966 # Check whether --enable-shared was given. 14967if test ${enable_shared+y} 14968then : 14969 enableval=$enable_shared; p=${PACKAGE-default} 14970 case $enableval in 14971 yes) enable_shared=yes ;; 14972 no) enable_shared=no ;; 14973 *) 14974 enable_shared=no 14975 # Look at the argument we got. We use all the common list separators. 14976 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14977 for pkg in $enableval; do 14978 IFS=$lt_save_ifs 14979 if test "X$pkg" = "X$p"; then 14980 enable_shared=yes 14981 fi 14982 done 14983 IFS=$lt_save_ifs 14984 ;; 14985 esac 14986else $as_nop 14987 enable_shared=yes 14988fi 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000# Check whether --with-pic was given. 15001if test ${with_pic+y} 15002then : 15003 withval=$with_pic; lt_p=${PACKAGE-default} 15004 case $withval in 15005 yes|no) pic_mode=$withval ;; 15006 *) 15007 pic_mode=default 15008 # Look at the argument we got. We use all the common list separators. 15009 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15010 for lt_pkg in $withval; do 15011 IFS=$lt_save_ifs 15012 if test "X$lt_pkg" = "X$lt_p"; then 15013 pic_mode=yes 15014 fi 15015 done 15016 IFS=$lt_save_ifs 15017 ;; 15018 esac 15019else $as_nop 15020 pic_mode=default 15021fi 15022 15023 15024 15025 15026 15027 15028 15029 15030 # Check whether --enable-fast-install was given. 15031if test ${enable_fast_install+y} 15032then : 15033 enableval=$enable_fast_install; p=${PACKAGE-default} 15034 case $enableval in 15035 yes) enable_fast_install=yes ;; 15036 no) enable_fast_install=no ;; 15037 *) 15038 enable_fast_install=no 15039 # Look at the argument we got. We use all the common list separators. 15040 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15041 for pkg in $enableval; do 15042 IFS=$lt_save_ifs 15043 if test "X$pkg" = "X$p"; then 15044 enable_fast_install=yes 15045 fi 15046 done 15047 IFS=$lt_save_ifs 15048 ;; 15049 esac 15050else $as_nop 15051 enable_fast_install=yes 15052fi 15053 15054 15055 15056 15057 15058 15059 15060 15061 shared_archive_member_spec= 15062case $host,$enable_shared in 15063power*-*-aix[5-9]*,yes) 15064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15065printf %s "checking which variant of shared library versioning to provide... " >&6; } 15066 15067# Check whether --with-aix-soname was given. 15068if test ${with_aix_soname+y} 15069then : 15070 withval=$with_aix_soname; case $withval in 15071 aix|svr4|both) 15072 ;; 15073 *) 15074 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15075 ;; 15076 esac 15077 lt_cv_with_aix_soname=$with_aix_soname 15078else $as_nop 15079 if test ${lt_cv_with_aix_soname+y} 15080then : 15081 printf %s "(cached) " >&6 15082else $as_nop 15083 lt_cv_with_aix_soname=aix 15084fi 15085 15086 with_aix_soname=$lt_cv_with_aix_soname 15087fi 15088 15089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15090printf "%s\n" "$with_aix_soname" >&6; } 15091 if test aix != "$with_aix_soname"; then 15092 # For the AIX way of multilib, we name the shared archive member 15093 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15094 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15095 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15096 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15097 if test 64 = "${OBJECT_MODE-32}"; then 15098 shared_archive_member_spec=shr_64 15099 else 15100 shared_archive_member_spec=shr 15101 fi 15102 fi 15103 ;; 15104*) 15105 with_aix_soname=aix 15106 ;; 15107esac 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118# This can be used to rebuild libtool when needed 15119LIBTOOL_DEPS=$ltmain 15120 15121# Always use our own libtool. 15122LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153test -z "$LN_S" && LN_S="ln -s" 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168if test -n "${ZSH_VERSION+set}"; then 15169 setopt NO_GLOB_SUBST 15170fi 15171 15172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15173printf %s "checking for objdir... " >&6; } 15174if test ${lt_cv_objdir+y} 15175then : 15176 printf %s "(cached) " >&6 15177else $as_nop 15178 rm -f .libs 2>/dev/null 15179mkdir .libs 2>/dev/null 15180if test -d .libs; then 15181 lt_cv_objdir=.libs 15182else 15183 # MS-DOS does not allow filenames that begin with a dot. 15184 lt_cv_objdir=_libs 15185fi 15186rmdir .libs 2>/dev/null 15187fi 15188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15189printf "%s\n" "$lt_cv_objdir" >&6; } 15190objdir=$lt_cv_objdir 15191 15192 15193 15194 15195 15196printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15197 15198 15199 15200 15201case $host_os in 15202aix3*) 15203 # AIX sometimes has problems with the GCC collect2 program. For some 15204 # reason, if we set the COLLECT_NAMES environment variable, the problems 15205 # vanish in a puff of smoke. 15206 if test set != "${COLLECT_NAMES+set}"; then 15207 COLLECT_NAMES= 15208 export COLLECT_NAMES 15209 fi 15210 ;; 15211esac 15212 15213# Global variables: 15214ofile=libtool 15215can_build_shared=yes 15216 15217# All known linkers require a '.a' archive for static linking (except MSVC and 15218# ICC, which need '.lib'). 15219libext=a 15220 15221with_gnu_ld=$lt_cv_prog_gnu_ld 15222 15223old_CC=$CC 15224old_CFLAGS=$CFLAGS 15225 15226# Set sane defaults for various variables 15227test -z "$CC" && CC=cc 15228test -z "$LTCC" && LTCC=$CC 15229test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15230test -z "$LD" && LD=ld 15231test -z "$ac_objext" && ac_objext=o 15232 15233func_cc_basename $compiler 15234cc_basename=$func_cc_basename_result 15235 15236 15237# Only perform the check for file, if the check method requires it 15238test -z "$MAGIC_CMD" && MAGIC_CMD=file 15239case $deplibs_check_method in 15240file_magic*) 15241 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15243printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15244if test ${lt_cv_path_MAGIC_CMD+y} 15245then : 15246 printf %s "(cached) " >&6 15247else $as_nop 15248 case $MAGIC_CMD in 15249[\\/*] | ?:[\\/]*) 15250 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15251 ;; 15252*) 15253 lt_save_MAGIC_CMD=$MAGIC_CMD 15254 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15255 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15256 for ac_dir in $ac_dummy; do 15257 IFS=$lt_save_ifs 15258 test -z "$ac_dir" && ac_dir=. 15259 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15260 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15261 if test -n "$file_magic_test_file"; then 15262 case $deplibs_check_method in 15263 "file_magic "*) 15264 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15265 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15266 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15267 $EGREP "$file_magic_regex" > /dev/null; then 15268 : 15269 else 15270 cat <<_LT_EOF 1>&2 15271 15272*** Warning: the command libtool uses to detect shared libraries, 15273*** $file_magic_cmd, produces output that libtool cannot recognize. 15274*** The result is that libtool may fail to recognize shared libraries 15275*** as such. This will affect the creation of libtool libraries that 15276*** depend on shared libraries, but programs linked with such libtool 15277*** libraries will work regardless of this problem. Nevertheless, you 15278*** may want to report the problem to your system manager and/or to 15279*** bug-libtool@gnu.org 15280 15281_LT_EOF 15282 fi ;; 15283 esac 15284 fi 15285 break 15286 fi 15287 done 15288 IFS=$lt_save_ifs 15289 MAGIC_CMD=$lt_save_MAGIC_CMD 15290 ;; 15291esac 15292fi 15293 15294MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15295if test -n "$MAGIC_CMD"; then 15296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15297printf "%s\n" "$MAGIC_CMD" >&6; } 15298else 15299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15300printf "%s\n" "no" >&6; } 15301fi 15302 15303 15304 15305 15306 15307if test -z "$lt_cv_path_MAGIC_CMD"; then 15308 if test -n "$ac_tool_prefix"; then 15309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15310printf %s "checking for file... " >&6; } 15311if test ${lt_cv_path_MAGIC_CMD+y} 15312then : 15313 printf %s "(cached) " >&6 15314else $as_nop 15315 case $MAGIC_CMD in 15316[\\/*] | ?:[\\/]*) 15317 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15318 ;; 15319*) 15320 lt_save_MAGIC_CMD=$MAGIC_CMD 15321 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15322 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15323 for ac_dir in $ac_dummy; do 15324 IFS=$lt_save_ifs 15325 test -z "$ac_dir" && ac_dir=. 15326 if test -f "$ac_dir/file"; then 15327 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15328 if test -n "$file_magic_test_file"; then 15329 case $deplibs_check_method in 15330 "file_magic "*) 15331 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15332 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15333 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15334 $EGREP "$file_magic_regex" > /dev/null; then 15335 : 15336 else 15337 cat <<_LT_EOF 1>&2 15338 15339*** Warning: the command libtool uses to detect shared libraries, 15340*** $file_magic_cmd, produces output that libtool cannot recognize. 15341*** The result is that libtool may fail to recognize shared libraries 15342*** as such. This will affect the creation of libtool libraries that 15343*** depend on shared libraries, but programs linked with such libtool 15344*** libraries will work regardless of this problem. Nevertheless, you 15345*** may want to report the problem to your system manager and/or to 15346*** bug-libtool@gnu.org 15347 15348_LT_EOF 15349 fi ;; 15350 esac 15351 fi 15352 break 15353 fi 15354 done 15355 IFS=$lt_save_ifs 15356 MAGIC_CMD=$lt_save_MAGIC_CMD 15357 ;; 15358esac 15359fi 15360 15361MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15362if test -n "$MAGIC_CMD"; then 15363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15364printf "%s\n" "$MAGIC_CMD" >&6; } 15365else 15366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15367printf "%s\n" "no" >&6; } 15368fi 15369 15370 15371 else 15372 MAGIC_CMD=: 15373 fi 15374fi 15375 15376 fi 15377 ;; 15378esac 15379 15380# Use C for the default configuration in the libtool script 15381 15382lt_save_CC=$CC 15383ac_ext=c 15384ac_cpp='$CPP $CPPFLAGS' 15385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15387ac_compiler_gnu=$ac_cv_c_compiler_gnu 15388 15389 15390# Source file extension for C test sources. 15391ac_ext=c 15392 15393# Object file extension for compiled C test sources. 15394objext=o 15395objext=$objext 15396 15397# Code to be used in simple compile tests 15398lt_simple_compile_test_code="int some_variable = 0;" 15399 15400# Code to be used in simple link tests 15401lt_simple_link_test_code='int main(){return(0);}' 15402 15403 15404 15405 15406 15407 15408 15409# If no C compiler was specified, use CC. 15410LTCC=${LTCC-"$CC"} 15411 15412# If no C compiler flags were specified, use CFLAGS. 15413LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15414 15415# Allow CC to be a program name with arguments. 15416compiler=$CC 15417 15418# Save the default compiler, since it gets overwritten when the other 15419# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15420compiler_DEFAULT=$CC 15421 15422# save warnings/boilerplate of simple test code 15423ac_outfile=conftest.$ac_objext 15424echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15425eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15426_lt_compiler_boilerplate=`cat conftest.err` 15427$RM conftest* 15428 15429ac_outfile=conftest.$ac_objext 15430echo "$lt_simple_link_test_code" >conftest.$ac_ext 15431eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15432_lt_linker_boilerplate=`cat conftest.err` 15433$RM -r conftest* 15434 15435 15436if test -n "$compiler"; then 15437 15438lt_prog_compiler_no_builtin_flag= 15439 15440if test yes = "$GCC"; then 15441 case $cc_basename in 15442 nvcc*) 15443 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15444 *) 15445 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15446 esac 15447 15448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15449printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15450if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15451then : 15452 printf %s "(cached) " >&6 15453else $as_nop 15454 lt_cv_prog_compiler_rtti_exceptions=no 15455 ac_outfile=conftest.$ac_objext 15456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15457 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15458 # Insert the option either (1) after the last *FLAGS variable, or 15459 # (2) before a word containing "conftest.", or (3) at the end. 15460 # Note that $ac_compile itself does not contain backslashes and begins 15461 # with a dollar sign (not a hyphen), so the echo should work correctly. 15462 # The option is referenced via a variable to avoid confusing sed. 15463 lt_compile=`echo "$ac_compile" | $SED \ 15464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15466 -e 's:$: $lt_compiler_flag:'` 15467 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15468 (eval "$lt_compile" 2>conftest.err) 15469 ac_status=$? 15470 cat conftest.err >&5 15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15472 if (exit $ac_status) && test -s "$ac_outfile"; then 15473 # The compiler can only warn and ignore the option if not recognized 15474 # So say no if there are warnings other than the usual output. 15475 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15477 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15478 lt_cv_prog_compiler_rtti_exceptions=yes 15479 fi 15480 fi 15481 $RM conftest* 15482 15483fi 15484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15485printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15486 15487if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15488 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15489else 15490 : 15491fi 15492 15493fi 15494 15495 15496 15497 15498 15499 15500 lt_prog_compiler_wl= 15501lt_prog_compiler_pic= 15502lt_prog_compiler_static= 15503 15504 15505 if test yes = "$GCC"; then 15506 lt_prog_compiler_wl='-Wl,' 15507 lt_prog_compiler_static='-static' 15508 15509 case $host_os in 15510 aix*) 15511 # All AIX code is PIC. 15512 if test ia64 = "$host_cpu"; then 15513 # AIX 5 now supports IA64 processor 15514 lt_prog_compiler_static='-Bstatic' 15515 fi 15516 lt_prog_compiler_pic='-fPIC' 15517 ;; 15518 15519 amigaos*) 15520 case $host_cpu in 15521 powerpc) 15522 # see comment about AmigaOS4 .so support 15523 lt_prog_compiler_pic='-fPIC' 15524 ;; 15525 m68k) 15526 # FIXME: we need at least 68020 code to build shared libraries, but 15527 # adding the '-m68020' flag to GCC prevents building anything better, 15528 # like '-m68040'. 15529 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15530 ;; 15531 esac 15532 ;; 15533 15534 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15535 # PIC is the default for these OSes. 15536 ;; 15537 15538 mingw* | cygwin* | pw32* | os2* | cegcc*) 15539 # This hack is so that the source file can tell whether it is being 15540 # built for inclusion in a dll (and should export symbols for example). 15541 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15542 # (--disable-auto-import) libraries 15543 lt_prog_compiler_pic='-DDLL_EXPORT' 15544 case $host_os in 15545 os2*) 15546 lt_prog_compiler_static='$wl-static' 15547 ;; 15548 esac 15549 ;; 15550 15551 darwin* | rhapsody*) 15552 # PIC is the default on this platform 15553 # Common symbols not allowed in MH_DYLIB files 15554 lt_prog_compiler_pic='-fno-common' 15555 ;; 15556 15557 haiku*) 15558 # PIC is the default for Haiku. 15559 # The "-static" flag exists, but is broken. 15560 lt_prog_compiler_static= 15561 ;; 15562 15563 hpux*) 15564 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15565 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15566 # sets the default TLS model and affects inlining. 15567 case $host_cpu in 15568 hppa*64*) 15569 # +Z the default 15570 ;; 15571 *) 15572 lt_prog_compiler_pic='-fPIC' 15573 ;; 15574 esac 15575 ;; 15576 15577 interix[3-9]*) 15578 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15579 # Instead, we relocate shared libraries at runtime. 15580 ;; 15581 15582 msdosdjgpp*) 15583 # Just because we use GCC doesn't mean we suddenly get shared libraries 15584 # on systems that don't support them. 15585 lt_prog_compiler_can_build_shared=no 15586 enable_shared=no 15587 ;; 15588 15589 *nto* | *qnx*) 15590 # QNX uses GNU C++, but need to define -shared option too, otherwise 15591 # it will coredump. 15592 lt_prog_compiler_pic='-fPIC -shared' 15593 ;; 15594 15595 sysv4*MP*) 15596 if test -d /usr/nec; then 15597 lt_prog_compiler_pic=-Kconform_pic 15598 fi 15599 ;; 15600 15601 *) 15602 lt_prog_compiler_pic='-fPIC' 15603 ;; 15604 esac 15605 15606 case $cc_basename in 15607 nvcc*) # Cuda Compiler Driver 2.2 15608 lt_prog_compiler_wl='-Xlinker ' 15609 if test -n "$lt_prog_compiler_pic"; then 15610 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15611 fi 15612 ;; 15613 esac 15614 else 15615 # PORTME Check for flag to pass linker flags through the system compiler. 15616 case $host_os in 15617 aix*) 15618 lt_prog_compiler_wl='-Wl,' 15619 if test ia64 = "$host_cpu"; then 15620 # AIX 5 now supports IA64 processor 15621 lt_prog_compiler_static='-Bstatic' 15622 else 15623 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15624 fi 15625 ;; 15626 15627 darwin* | rhapsody*) 15628 # PIC is the default on this platform 15629 # Common symbols not allowed in MH_DYLIB files 15630 lt_prog_compiler_pic='-fno-common' 15631 case $cc_basename in 15632 nagfor*) 15633 # NAG Fortran compiler 15634 lt_prog_compiler_wl='-Wl,-Wl,,' 15635 lt_prog_compiler_pic='-PIC' 15636 lt_prog_compiler_static='-Bstatic' 15637 ;; 15638 esac 15639 ;; 15640 15641 mingw* | cygwin* | pw32* | os2* | cegcc*) 15642 # This hack is so that the source file can tell whether it is being 15643 # built for inclusion in a dll (and should export symbols for example). 15644 lt_prog_compiler_pic='-DDLL_EXPORT' 15645 case $host_os in 15646 os2*) 15647 lt_prog_compiler_static='$wl-static' 15648 ;; 15649 esac 15650 ;; 15651 15652 hpux9* | hpux10* | hpux11*) 15653 lt_prog_compiler_wl='-Wl,' 15654 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15655 # not for PA HP-UX. 15656 case $host_cpu in 15657 hppa*64*|ia64*) 15658 # +Z the default 15659 ;; 15660 *) 15661 lt_prog_compiler_pic='+Z' 15662 ;; 15663 esac 15664 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15665 lt_prog_compiler_static='$wl-a ${wl}archive' 15666 ;; 15667 15668 irix5* | irix6* | nonstopux*) 15669 lt_prog_compiler_wl='-Wl,' 15670 # PIC (with -KPIC) is the default. 15671 lt_prog_compiler_static='-non_shared' 15672 ;; 15673 15674 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15675 case $cc_basename in 15676 # old Intel for x86_64, which still supported -KPIC. 15677 ecc*) 15678 lt_prog_compiler_wl='-Wl,' 15679 lt_prog_compiler_pic='-KPIC' 15680 lt_prog_compiler_static='-static' 15681 ;; 15682 # icc used to be incompatible with GCC. 15683 # ICC 10 doesn't accept -KPIC any more. 15684 icc* | ifort*) 15685 lt_prog_compiler_wl='-Wl,' 15686 lt_prog_compiler_pic='-fPIC' 15687 lt_prog_compiler_static='-static' 15688 ;; 15689 # Lahey Fortran 8.1. 15690 lf95*) 15691 lt_prog_compiler_wl='-Wl,' 15692 lt_prog_compiler_pic='--shared' 15693 lt_prog_compiler_static='--static' 15694 ;; 15695 nagfor*) 15696 # NAG Fortran compiler 15697 lt_prog_compiler_wl='-Wl,-Wl,,' 15698 lt_prog_compiler_pic='-PIC' 15699 lt_prog_compiler_static='-Bstatic' 15700 ;; 15701 tcc*) 15702 # Fabrice Bellard et al's Tiny C Compiler 15703 lt_prog_compiler_wl='-Wl,' 15704 lt_prog_compiler_pic='-fPIC' 15705 lt_prog_compiler_static='-static' 15706 ;; 15707 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15708 # Portland Group compilers (*not* the Pentium gcc compiler, 15709 # which looks to be a dead project) 15710 lt_prog_compiler_wl='-Wl,' 15711 lt_prog_compiler_pic='-fpic' 15712 lt_prog_compiler_static='-Bstatic' 15713 ;; 15714 ccc*) 15715 lt_prog_compiler_wl='-Wl,' 15716 # All Alpha code is PIC. 15717 lt_prog_compiler_static='-non_shared' 15718 ;; 15719 xl* | bgxl* | bgf* | mpixl*) 15720 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15721 lt_prog_compiler_wl='-Wl,' 15722 lt_prog_compiler_pic='-qpic' 15723 lt_prog_compiler_static='-qstaticlink' 15724 ;; 15725 *) 15726 case `$CC -V 2>&1 | $SED 5q` in 15727 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15728 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15729 lt_prog_compiler_pic='-KPIC' 15730 lt_prog_compiler_static='-Bstatic' 15731 lt_prog_compiler_wl='' 15732 ;; 15733 *Sun\ F* | *Sun*Fortran*) 15734 lt_prog_compiler_pic='-KPIC' 15735 lt_prog_compiler_static='-Bstatic' 15736 lt_prog_compiler_wl='-Qoption ld ' 15737 ;; 15738 *Sun\ C*) 15739 # Sun C 5.9 15740 lt_prog_compiler_pic='-KPIC' 15741 lt_prog_compiler_static='-Bstatic' 15742 lt_prog_compiler_wl='-Wl,' 15743 ;; 15744 *Intel*\ [CF]*Compiler*) 15745 lt_prog_compiler_wl='-Wl,' 15746 lt_prog_compiler_pic='-fPIC' 15747 lt_prog_compiler_static='-static' 15748 ;; 15749 *Portland\ Group*) 15750 lt_prog_compiler_wl='-Wl,' 15751 lt_prog_compiler_pic='-fpic' 15752 lt_prog_compiler_static='-Bstatic' 15753 ;; 15754 esac 15755 ;; 15756 esac 15757 ;; 15758 15759 newsos6) 15760 lt_prog_compiler_pic='-KPIC' 15761 lt_prog_compiler_static='-Bstatic' 15762 ;; 15763 15764 *nto* | *qnx*) 15765 # QNX uses GNU C++, but need to define -shared option too, otherwise 15766 # it will coredump. 15767 lt_prog_compiler_pic='-fPIC -shared' 15768 ;; 15769 15770 osf3* | osf4* | osf5*) 15771 lt_prog_compiler_wl='-Wl,' 15772 # All OSF/1 code is PIC. 15773 lt_prog_compiler_static='-non_shared' 15774 ;; 15775 15776 rdos*) 15777 lt_prog_compiler_static='-non_shared' 15778 ;; 15779 15780 solaris*) 15781 lt_prog_compiler_pic='-KPIC' 15782 lt_prog_compiler_static='-Bstatic' 15783 case $cc_basename in 15784 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15785 lt_prog_compiler_wl='-Qoption ld ';; 15786 *) 15787 lt_prog_compiler_wl='-Wl,';; 15788 esac 15789 ;; 15790 15791 sunos4*) 15792 lt_prog_compiler_wl='-Qoption ld ' 15793 lt_prog_compiler_pic='-PIC' 15794 lt_prog_compiler_static='-Bstatic' 15795 ;; 15796 15797 sysv4 | sysv4.2uw2* | sysv4.3*) 15798 lt_prog_compiler_wl='-Wl,' 15799 lt_prog_compiler_pic='-KPIC' 15800 lt_prog_compiler_static='-Bstatic' 15801 ;; 15802 15803 sysv4*MP*) 15804 if test -d /usr/nec; then 15805 lt_prog_compiler_pic='-Kconform_pic' 15806 lt_prog_compiler_static='-Bstatic' 15807 fi 15808 ;; 15809 15810 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15811 lt_prog_compiler_wl='-Wl,' 15812 lt_prog_compiler_pic='-KPIC' 15813 lt_prog_compiler_static='-Bstatic' 15814 ;; 15815 15816 unicos*) 15817 lt_prog_compiler_wl='-Wl,' 15818 lt_prog_compiler_can_build_shared=no 15819 ;; 15820 15821 uts4*) 15822 lt_prog_compiler_pic='-pic' 15823 lt_prog_compiler_static='-Bstatic' 15824 ;; 15825 15826 *) 15827 lt_prog_compiler_can_build_shared=no 15828 ;; 15829 esac 15830 fi 15831 15832case $host_os in 15833 # For platforms that do not support PIC, -DPIC is meaningless: 15834 *djgpp*) 15835 lt_prog_compiler_pic= 15836 ;; 15837 *) 15838 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15839 ;; 15840esac 15841 15842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15843printf %s "checking for $compiler option to produce PIC... " >&6; } 15844if test ${lt_cv_prog_compiler_pic+y} 15845then : 15846 printf %s "(cached) " >&6 15847else $as_nop 15848 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15849fi 15850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15851printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 15852lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15853 15854# 15855# Check to make sure the PIC flag actually works. 15856# 15857if test -n "$lt_prog_compiler_pic"; then 15858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15859printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15860if test ${lt_cv_prog_compiler_pic_works+y} 15861then : 15862 printf %s "(cached) " >&6 15863else $as_nop 15864 lt_cv_prog_compiler_pic_works=no 15865 ac_outfile=conftest.$ac_objext 15866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15867 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15868 # Insert the option either (1) after the last *FLAGS variable, or 15869 # (2) before a word containing "conftest.", or (3) at the end. 15870 # Note that $ac_compile itself does not contain backslashes and begins 15871 # with a dollar sign (not a hyphen), so the echo should work correctly. 15872 # The option is referenced via a variable to avoid confusing sed. 15873 lt_compile=`echo "$ac_compile" | $SED \ 15874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15876 -e 's:$: $lt_compiler_flag:'` 15877 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15878 (eval "$lt_compile" 2>conftest.err) 15879 ac_status=$? 15880 cat conftest.err >&5 15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15882 if (exit $ac_status) && test -s "$ac_outfile"; then 15883 # The compiler can only warn and ignore the option if not recognized 15884 # So say no if there are warnings other than the usual output. 15885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15888 lt_cv_prog_compiler_pic_works=yes 15889 fi 15890 fi 15891 $RM conftest* 15892 15893fi 15894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15895printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 15896 15897if test yes = "$lt_cv_prog_compiler_pic_works"; then 15898 case $lt_prog_compiler_pic in 15899 "" | " "*) ;; 15900 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15901 esac 15902else 15903 lt_prog_compiler_pic= 15904 lt_prog_compiler_can_build_shared=no 15905fi 15906 15907fi 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919# 15920# Check to make sure the static flag actually works. 15921# 15922wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15924printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15925if test ${lt_cv_prog_compiler_static_works+y} 15926then : 15927 printf %s "(cached) " >&6 15928else $as_nop 15929 lt_cv_prog_compiler_static_works=no 15930 save_LDFLAGS=$LDFLAGS 15931 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15932 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15933 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15934 # The linker can only warn and ignore the option if not recognized 15935 # So say no if there are warnings 15936 if test -s conftest.err; then 15937 # Append any errors to the config.log. 15938 cat conftest.err 1>&5 15939 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15941 if diff conftest.exp conftest.er2 >/dev/null; then 15942 lt_cv_prog_compiler_static_works=yes 15943 fi 15944 else 15945 lt_cv_prog_compiler_static_works=yes 15946 fi 15947 fi 15948 $RM -r conftest* 15949 LDFLAGS=$save_LDFLAGS 15950 15951fi 15952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15953printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 15954 15955if test yes = "$lt_cv_prog_compiler_static_works"; then 15956 : 15957else 15958 lt_prog_compiler_static= 15959fi 15960 15961 15962 15963 15964 15965 15966 15967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15968printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15969if test ${lt_cv_prog_compiler_c_o+y} 15970then : 15971 printf %s "(cached) " >&6 15972else $as_nop 15973 lt_cv_prog_compiler_c_o=no 15974 $RM -r conftest 2>/dev/null 15975 mkdir conftest 15976 cd conftest 15977 mkdir out 15978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15979 15980 lt_compiler_flag="-o out/conftest2.$ac_objext" 15981 # Insert the option either (1) after the last *FLAGS variable, or 15982 # (2) before a word containing "conftest.", or (3) at the end. 15983 # Note that $ac_compile itself does not contain backslashes and begins 15984 # with a dollar sign (not a hyphen), so the echo should work correctly. 15985 lt_compile=`echo "$ac_compile" | $SED \ 15986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15988 -e 's:$: $lt_compiler_flag:'` 15989 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15990 (eval "$lt_compile" 2>out/conftest.err) 15991 ac_status=$? 15992 cat out/conftest.err >&5 15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15994 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15995 then 15996 # The compiler can only warn and ignore the option if not recognized 15997 # So say no if there are warnings 15998 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15999 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16000 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16001 lt_cv_prog_compiler_c_o=yes 16002 fi 16003 fi 16004 chmod u+w . 2>&5 16005 $RM conftest* 16006 # SGI C++ compiler will create directory out/ii_files/ for 16007 # template instantiation 16008 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16009 $RM out/* && rmdir out 16010 cd .. 16011 $RM -r conftest 16012 $RM conftest* 16013 16014fi 16015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16016printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16017 16018 16019 16020 16021 16022 16023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16024printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16025if test ${lt_cv_prog_compiler_c_o+y} 16026then : 16027 printf %s "(cached) " >&6 16028else $as_nop 16029 lt_cv_prog_compiler_c_o=no 16030 $RM -r conftest 2>/dev/null 16031 mkdir conftest 16032 cd conftest 16033 mkdir out 16034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16035 16036 lt_compiler_flag="-o out/conftest2.$ac_objext" 16037 # Insert the option either (1) after the last *FLAGS variable, or 16038 # (2) before a word containing "conftest.", or (3) at the end. 16039 # Note that $ac_compile itself does not contain backslashes and begins 16040 # with a dollar sign (not a hyphen), so the echo should work correctly. 16041 lt_compile=`echo "$ac_compile" | $SED \ 16042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16044 -e 's:$: $lt_compiler_flag:'` 16045 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16046 (eval "$lt_compile" 2>out/conftest.err) 16047 ac_status=$? 16048 cat out/conftest.err >&5 16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16050 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16051 then 16052 # The compiler can only warn and ignore the option if not recognized 16053 # So say no if there are warnings 16054 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16055 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16056 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16057 lt_cv_prog_compiler_c_o=yes 16058 fi 16059 fi 16060 chmod u+w . 2>&5 16061 $RM conftest* 16062 # SGI C++ compiler will create directory out/ii_files/ for 16063 # template instantiation 16064 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16065 $RM out/* && rmdir out 16066 cd .. 16067 $RM -r conftest 16068 $RM conftest* 16069 16070fi 16071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16072printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16073 16074 16075 16076 16077hard_links=nottested 16078if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16079 # do not overwrite the value of need_locks provided by the user 16080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16081printf %s "checking if we can lock with hard links... " >&6; } 16082 hard_links=yes 16083 $RM conftest* 16084 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16085 touch conftest.a 16086 ln conftest.a conftest.b 2>&5 || hard_links=no 16087 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16089printf "%s\n" "$hard_links" >&6; } 16090 if test no = "$hard_links"; then 16091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16092printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16093 need_locks=warn 16094 fi 16095else 16096 need_locks=no 16097fi 16098 16099 16100 16101 16102 16103 16104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16105printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16106 16107 runpath_var= 16108 allow_undefined_flag= 16109 always_export_symbols=no 16110 archive_cmds= 16111 archive_expsym_cmds= 16112 compiler_needs_object=no 16113 enable_shared_with_static_runtimes=no 16114 export_dynamic_flag_spec= 16115 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16116 hardcode_automatic=no 16117 hardcode_direct=no 16118 hardcode_direct_absolute=no 16119 hardcode_libdir_flag_spec= 16120 hardcode_libdir_separator= 16121 hardcode_minus_L=no 16122 hardcode_shlibpath_var=unsupported 16123 inherit_rpath=no 16124 link_all_deplibs=unknown 16125 module_cmds= 16126 module_expsym_cmds= 16127 old_archive_from_new_cmds= 16128 old_archive_from_expsyms_cmds= 16129 thread_safe_flag_spec= 16130 whole_archive_flag_spec= 16131 # include_expsyms should be a list of space-separated symbols to be *always* 16132 # included in the symbol list 16133 include_expsyms= 16134 # exclude_expsyms can be an extended regexp of symbols to exclude 16135 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16136 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16137 # as well as any symbol that contains 'd'. 16138 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16139 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16140 # platforms (ab)use it in PIC code, but their linkers get confused if 16141 # the symbol is explicitly referenced. Since portable code cannot 16142 # rely on this symbol name, it's probably fine to never include it in 16143 # preloaded symbol tables. 16144 # Exclude shared library initialization/finalization symbols. 16145 extract_expsyms_cmds= 16146 16147 case $host_os in 16148 cygwin* | mingw* | pw32* | cegcc*) 16149 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16150 # When not using gcc, we currently assume that we are using 16151 # Microsoft Visual C++ or Intel C++ Compiler. 16152 if test yes != "$GCC"; then 16153 with_gnu_ld=no 16154 fi 16155 ;; 16156 interix*) 16157 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16158 with_gnu_ld=yes 16159 ;; 16160 openbsd* | bitrig*) 16161 with_gnu_ld=no 16162 ;; 16163 esac 16164 16165 ld_shlibs=yes 16166 16167 # On some targets, GNU ld is compatible enough with the native linker 16168 # that we're better off using the native interface for both. 16169 lt_use_gnu_ld_interface=no 16170 if test yes = "$with_gnu_ld"; then 16171 case $host_os in 16172 aix*) 16173 # The AIX port of GNU ld has always aspired to compatibility 16174 # with the native linker. However, as the warning in the GNU ld 16175 # block says, versions before 2.19.5* couldn't really create working 16176 # shared libraries, regardless of the interface used. 16177 case `$LD -v 2>&1` in 16178 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16179 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16180 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16181 *) 16182 lt_use_gnu_ld_interface=yes 16183 ;; 16184 esac 16185 ;; 16186 *) 16187 lt_use_gnu_ld_interface=yes 16188 ;; 16189 esac 16190 fi 16191 16192 if test yes = "$lt_use_gnu_ld_interface"; then 16193 # If archive_cmds runs LD, not CC, wlarc should be empty 16194 wlarc='$wl' 16195 16196 # Set some defaults for GNU ld with shared library support. These 16197 # are reset later if shared libraries are not supported. Putting them 16198 # here allows them to be overridden if necessary. 16199 runpath_var=LD_RUN_PATH 16200 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16201 export_dynamic_flag_spec='$wl--export-dynamic' 16202 # ancient GNU ld didn't support --whole-archive et. al. 16203 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16204 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16205 else 16206 whole_archive_flag_spec= 16207 fi 16208 supports_anon_versioning=no 16209 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16210 *GNU\ gold*) supports_anon_versioning=yes ;; 16211 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16212 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16213 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16214 *\ 2.11.*) ;; # other 2.11 versions 16215 *) supports_anon_versioning=yes ;; 16216 esac 16217 16218 # See if GNU ld supports shared libraries. 16219 case $host_os in 16220 aix[3-9]*) 16221 # On AIX/PPC, the GNU linker is very broken 16222 if test ia64 != "$host_cpu"; then 16223 ld_shlibs=no 16224 cat <<_LT_EOF 1>&2 16225 16226*** Warning: the GNU linker, at least up to release 2.19, is reported 16227*** to be unable to reliably create shared libraries on AIX. 16228*** Therefore, libtool is disabling shared libraries support. If you 16229*** really care for shared libraries, you may want to install binutils 16230*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16231*** You will then need to restart the configuration process. 16232 16233_LT_EOF 16234 fi 16235 ;; 16236 16237 amigaos*) 16238 case $host_cpu in 16239 powerpc) 16240 # see comment about AmigaOS4 .so support 16241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16242 archive_expsym_cmds='' 16243 ;; 16244 m68k) 16245 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)' 16246 hardcode_libdir_flag_spec='-L$libdir' 16247 hardcode_minus_L=yes 16248 ;; 16249 esac 16250 ;; 16251 16252 beos*) 16253 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16254 allow_undefined_flag=unsupported 16255 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16256 # support --undefined. This deserves some investigation. FIXME 16257 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16258 else 16259 ld_shlibs=no 16260 fi 16261 ;; 16262 16263 cygwin* | mingw* | pw32* | cegcc*) 16264 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16265 # as there is no search path for DLLs. 16266 hardcode_libdir_flag_spec='-L$libdir' 16267 export_dynamic_flag_spec='$wl--export-all-symbols' 16268 allow_undefined_flag=unsupported 16269 always_export_symbols=no 16270 enable_shared_with_static_runtimes=yes 16271 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' 16272 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16273 16274 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16276 # If the export-symbols file already is a .def file, use it as 16277 # is; otherwise, prepend EXPORTS... 16278 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16279 cp $export_symbols $output_objdir/$soname.def; 16280 else 16281 echo EXPORTS > $output_objdir/$soname.def; 16282 cat $export_symbols >> $output_objdir/$soname.def; 16283 fi~ 16284 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16285 else 16286 ld_shlibs=no 16287 fi 16288 ;; 16289 16290 haiku*) 16291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16292 link_all_deplibs=yes 16293 ;; 16294 16295 os2*) 16296 hardcode_libdir_flag_spec='-L$libdir' 16297 hardcode_minus_L=yes 16298 allow_undefined_flag=unsupported 16299 shrext_cmds=.dll 16300 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16301 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16302 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16303 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16304 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16305 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16306 emximp -o $lib $output_objdir/$libname.def' 16307 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16308 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16309 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16310 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16311 prefix_cmds="$SED"~ 16312 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16313 prefix_cmds="$prefix_cmds -e 1d"; 16314 fi~ 16315 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16316 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16317 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16318 emximp -o $lib $output_objdir/$libname.def' 16319 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16320 enable_shared_with_static_runtimes=yes 16321 file_list_spec='@' 16322 ;; 16323 16324 interix[3-9]*) 16325 hardcode_direct=no 16326 hardcode_shlibpath_var=no 16327 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16328 export_dynamic_flag_spec='$wl-E' 16329 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16330 # Instead, shared libraries are loaded at an image base (0x10000000 by 16331 # default) and relocated if they conflict, which is a slow very memory 16332 # consuming and fragmenting process. To avoid this, we pick a random, 16333 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16334 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16335 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16336 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' 16337 ;; 16338 16339 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16340 tmp_diet=no 16341 if test linux-dietlibc = "$host_os"; then 16342 case $cc_basename in 16343 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16344 esac 16345 fi 16346 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16347 && test no = "$tmp_diet" 16348 then 16349 tmp_addflag=' $pic_flag' 16350 tmp_sharedflag='-shared' 16351 case $cc_basename,$host_cpu in 16352 pgcc*) # Portland Group C compiler 16353 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' 16354 tmp_addflag=' $pic_flag' 16355 ;; 16356 pgf77* | pgf90* | pgf95* | pgfortran*) 16357 # Portland Group f77 and f90 compilers 16358 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' 16359 tmp_addflag=' $pic_flag -Mnomain' ;; 16360 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16361 tmp_addflag=' -i_dynamic' ;; 16362 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16363 tmp_addflag=' -i_dynamic -nofor_main' ;; 16364 ifc* | ifort*) # Intel Fortran compiler 16365 tmp_addflag=' -nofor_main' ;; 16366 lf95*) # Lahey Fortran 8.1 16367 whole_archive_flag_spec= 16368 tmp_sharedflag='--shared' ;; 16369 nagfor*) # NAGFOR 5.3 16370 tmp_sharedflag='-Wl,-shared' ;; 16371 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16372 tmp_sharedflag='-qmkshrobj' 16373 tmp_addflag= ;; 16374 nvcc*) # Cuda Compiler Driver 2.2 16375 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' 16376 compiler_needs_object=yes 16377 ;; 16378 esac 16379 case `$CC -V 2>&1 | $SED 5q` in 16380 *Sun\ C*) # Sun C 5.9 16381 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' 16382 compiler_needs_object=yes 16383 tmp_sharedflag='-G' ;; 16384 *Sun\ F*) # Sun Fortran 8.3 16385 tmp_sharedflag='-G' ;; 16386 esac 16387 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16388 16389 if test yes = "$supports_anon_versioning"; then 16390 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16391 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16392 echo "local: *; };" >> $output_objdir/$libname.ver~ 16393 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16394 fi 16395 16396 case $cc_basename in 16397 tcc*) 16398 export_dynamic_flag_spec='-rdynamic' 16399 ;; 16400 xlf* | bgf* | bgxlf* | mpixlf*) 16401 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16402 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16403 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16404 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16405 if test yes = "$supports_anon_versioning"; then 16406 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16407 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16408 echo "local: *; };" >> $output_objdir/$libname.ver~ 16409 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16410 fi 16411 ;; 16412 esac 16413 else 16414 ld_shlibs=no 16415 fi 16416 ;; 16417 16418 netbsd*) 16419 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16420 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16421 wlarc= 16422 else 16423 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16424 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16425 fi 16426 ;; 16427 16428 solaris*) 16429 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16430 ld_shlibs=no 16431 cat <<_LT_EOF 1>&2 16432 16433*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16434*** create shared libraries on Solaris systems. Therefore, libtool 16435*** is disabling shared libraries support. We urge you to upgrade GNU 16436*** binutils to release 2.9.1 or newer. Another option is to modify 16437*** your PATH or compiler configuration so that the native linker is 16438*** used, and then restart. 16439 16440_LT_EOF 16441 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16442 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16443 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16444 else 16445 ld_shlibs=no 16446 fi 16447 ;; 16448 16449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16450 case `$LD -v 2>&1` in 16451 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16452 ld_shlibs=no 16453 cat <<_LT_EOF 1>&2 16454 16455*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16456*** reliably create shared libraries on SCO systems. Therefore, libtool 16457*** is disabling shared libraries support. We urge you to upgrade GNU 16458*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16459*** your PATH or compiler configuration so that the native linker is 16460*** used, and then restart. 16461 16462_LT_EOF 16463 ;; 16464 *) 16465 # For security reasons, it is highly recommended that you always 16466 # use absolute paths for naming shared libraries, and exclude the 16467 # DT_RUNPATH tag from executables and libraries. But doing so 16468 # requires that you compile everything twice, which is a pain. 16469 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16470 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16472 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16473 else 16474 ld_shlibs=no 16475 fi 16476 ;; 16477 esac 16478 ;; 16479 16480 sunos4*) 16481 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16482 wlarc= 16483 hardcode_direct=yes 16484 hardcode_shlibpath_var=no 16485 ;; 16486 16487 *) 16488 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16489 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16490 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16491 else 16492 ld_shlibs=no 16493 fi 16494 ;; 16495 esac 16496 16497 if test no = "$ld_shlibs"; then 16498 runpath_var= 16499 hardcode_libdir_flag_spec= 16500 export_dynamic_flag_spec= 16501 whole_archive_flag_spec= 16502 fi 16503 else 16504 # PORTME fill in a description of your system's linker (not GNU ld) 16505 case $host_os in 16506 aix3*) 16507 allow_undefined_flag=unsupported 16508 always_export_symbols=yes 16509 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' 16510 # Note: this linker hardcodes the directories in LIBPATH if there 16511 # are no directories specified by -L. 16512 hardcode_minus_L=yes 16513 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16514 # Neither direct hardcoding nor static linking is supported with a 16515 # broken collect2. 16516 hardcode_direct=unsupported 16517 fi 16518 ;; 16519 16520 aix[4-9]*) 16521 if test ia64 = "$host_cpu"; then 16522 # On IA64, the linker does run time linking by default, so we don't 16523 # have to do anything special. 16524 aix_use_runtimelinking=no 16525 exp_sym_flag='-Bexport' 16526 no_entry_flag= 16527 else 16528 # If we're using GNU nm, then we don't want the "-C" option. 16529 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16530 # Without the "-l" option, or with the "-B" option, AIX nm treats 16531 # weak defined symbols like other global defined symbols, whereas 16532 # GNU nm marks them as "W". 16533 # While the 'weak' keyword is ignored in the Export File, we need 16534 # it in the Import File for the 'aix-soname' feature, so we have 16535 # to replace the "-B" option with "-P" for AIX nm. 16536 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16537 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' 16538 else 16539 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 == "L") || (\$ 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' 16540 fi 16541 aix_use_runtimelinking=no 16542 16543 # Test if we are trying to use run time linking or normal 16544 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16545 # have runtime linking enabled, and use it for executables. 16546 # For shared libraries, we enable/disable runtime linking 16547 # depending on the kind of the shared library created - 16548 # when "with_aix_soname,aix_use_runtimelinking" is: 16549 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16550 # "aix,yes" lib.so shared, rtl:yes, for executables 16551 # lib.a static archive 16552 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16553 # lib.a(lib.so.V) shared, rtl:no, for executables 16554 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16555 # lib.a(lib.so.V) shared, rtl:no 16556 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16557 # lib.a static archive 16558 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16559 for ld_flag in $LDFLAGS; do 16560 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16561 aix_use_runtimelinking=yes 16562 break 16563 fi 16564 done 16565 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16566 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16567 # so we don't have lib.a shared libs to link our executables. 16568 # We have to force runtime linking in this case. 16569 aix_use_runtimelinking=yes 16570 LDFLAGS="$LDFLAGS -Wl,-brtl" 16571 fi 16572 ;; 16573 esac 16574 16575 exp_sym_flag='-bexport' 16576 no_entry_flag='-bnoentry' 16577 fi 16578 16579 # When large executables or shared objects are built, AIX ld can 16580 # have problems creating the table of contents. If linking a library 16581 # or program results in "error TOC overflow" add -mminimal-toc to 16582 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16583 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16584 16585 archive_cmds='' 16586 hardcode_direct=yes 16587 hardcode_direct_absolute=yes 16588 hardcode_libdir_separator=':' 16589 link_all_deplibs=yes 16590 file_list_spec='$wl-f,' 16591 case $with_aix_soname,$aix_use_runtimelinking in 16592 aix,*) ;; # traditional, no import file 16593 svr4,* | *,yes) # use import file 16594 # The Import File defines what to hardcode. 16595 hardcode_direct=no 16596 hardcode_direct_absolute=no 16597 ;; 16598 esac 16599 16600 if test yes = "$GCC"; then 16601 case $host_os in aix4.[012]|aix4.[012].*) 16602 # We only want to do this on AIX 4.2 and lower, the check 16603 # below for broken collect2 doesn't work under 4.3+ 16604 collect2name=`$CC -print-prog-name=collect2` 16605 if test -f "$collect2name" && 16606 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16607 then 16608 # We have reworked collect2 16609 : 16610 else 16611 # We have old collect2 16612 hardcode_direct=unsupported 16613 # It fails to find uninstalled libraries when the uninstalled 16614 # path is not listed in the libpath. Setting hardcode_minus_L 16615 # to unsupported forces relinking 16616 hardcode_minus_L=yes 16617 hardcode_libdir_flag_spec='-L$libdir' 16618 hardcode_libdir_separator= 16619 fi 16620 ;; 16621 esac 16622 shared_flag='-shared' 16623 if test yes = "$aix_use_runtimelinking"; then 16624 shared_flag="$shared_flag "'$wl-G' 16625 fi 16626 # Need to ensure runtime linking is disabled for the traditional 16627 # shared library, or the linker may eventually find shared libraries 16628 # /with/ Import File - we do not want to mix them. 16629 shared_flag_aix='-shared' 16630 shared_flag_svr4='-shared $wl-G' 16631 else 16632 # not using gcc 16633 if test ia64 = "$host_cpu"; then 16634 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16635 # chokes on -Wl,-G. The following line is correct: 16636 shared_flag='-G' 16637 else 16638 if test yes = "$aix_use_runtimelinking"; then 16639 shared_flag='$wl-G' 16640 else 16641 shared_flag='$wl-bM:SRE' 16642 fi 16643 shared_flag_aix='$wl-bM:SRE' 16644 shared_flag_svr4='$wl-G' 16645 fi 16646 fi 16647 16648 export_dynamic_flag_spec='$wl-bexpall' 16649 # It seems that -bexpall does not export symbols beginning with 16650 # underscore (_), so it is better to generate a list of symbols to export. 16651 always_export_symbols=yes 16652 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16653 # Warning - without using the other runtime loading flags (-brtl), 16654 # -berok will link without error, but may produce a broken library. 16655 allow_undefined_flag='-berok' 16656 # Determine the default libpath from the value encoded in an 16657 # empty executable. 16658 if test set = "${lt_cv_aix_libpath+set}"; then 16659 aix_libpath=$lt_cv_aix_libpath 16660else 16661 if test ${lt_cv_aix_libpath_+y} 16662then : 16663 printf %s "(cached) " >&6 16664else $as_nop 16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16666/* end confdefs.h. */ 16667 16668int 16669main (void) 16670{ 16671 16672 ; 16673 return 0; 16674} 16675_ACEOF 16676if ac_fn_c_try_link "$LINENO" 16677then : 16678 16679 lt_aix_libpath_sed=' 16680 /Import File Strings/,/^$/ { 16681 /^0/ { 16682 s/^0 *\([^ ]*\) *$/\1/ 16683 p 16684 } 16685 }' 16686 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16687 # Check for a 64-bit object if we didn't find anything. 16688 if test -z "$lt_cv_aix_libpath_"; then 16689 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16690 fi 16691fi 16692rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16693 conftest$ac_exeext conftest.$ac_ext 16694 if test -z "$lt_cv_aix_libpath_"; then 16695 lt_cv_aix_libpath_=/usr/lib:/lib 16696 fi 16697 16698fi 16699 16700 aix_libpath=$lt_cv_aix_libpath_ 16701fi 16702 16703 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16704 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 16705 else 16706 if test ia64 = "$host_cpu"; then 16707 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16708 allow_undefined_flag="-z nodefs" 16709 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" 16710 else 16711 # Determine the default libpath from the value encoded in an 16712 # empty executable. 16713 if test set = "${lt_cv_aix_libpath+set}"; then 16714 aix_libpath=$lt_cv_aix_libpath 16715else 16716 if test ${lt_cv_aix_libpath_+y} 16717then : 16718 printf %s "(cached) " >&6 16719else $as_nop 16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16721/* end confdefs.h. */ 16722 16723int 16724main (void) 16725{ 16726 16727 ; 16728 return 0; 16729} 16730_ACEOF 16731if ac_fn_c_try_link "$LINENO" 16732then : 16733 16734 lt_aix_libpath_sed=' 16735 /Import File Strings/,/^$/ { 16736 /^0/ { 16737 s/^0 *\([^ ]*\) *$/\1/ 16738 p 16739 } 16740 }' 16741 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16742 # Check for a 64-bit object if we didn't find anything. 16743 if test -z "$lt_cv_aix_libpath_"; then 16744 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16745 fi 16746fi 16747rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16748 conftest$ac_exeext conftest.$ac_ext 16749 if test -z "$lt_cv_aix_libpath_"; then 16750 lt_cv_aix_libpath_=/usr/lib:/lib 16751 fi 16752 16753fi 16754 16755 aix_libpath=$lt_cv_aix_libpath_ 16756fi 16757 16758 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16759 # Warning - without using the other run time loading flags, 16760 # -berok will link without error, but may produce a broken library. 16761 no_undefined_flag=' $wl-bernotok' 16762 allow_undefined_flag=' $wl-berok' 16763 if test yes = "$with_gnu_ld"; then 16764 # We only use this code for GNU lds that support --whole-archive. 16765 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16766 else 16767 # Exported symbols can be pulled into shared objects from archives 16768 whole_archive_flag_spec='$convenience' 16769 fi 16770 archive_cmds_need_lc=yes 16771 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16772 # -brtl affects multiple linker settings, -berok does not and is overridden later 16773 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16774 if test svr4 != "$with_aix_soname"; then 16775 # This is similar to how AIX traditionally builds its shared libraries. 16776 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' 16777 fi 16778 if test aix != "$with_aix_soname"; then 16779 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' 16780 else 16781 # used by -dlpreopen to get the symbols 16782 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16783 fi 16784 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16785 fi 16786 fi 16787 ;; 16788 16789 amigaos*) 16790 case $host_cpu in 16791 powerpc) 16792 # see comment about AmigaOS4 .so support 16793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16794 archive_expsym_cmds='' 16795 ;; 16796 m68k) 16797 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)' 16798 hardcode_libdir_flag_spec='-L$libdir' 16799 hardcode_minus_L=yes 16800 ;; 16801 esac 16802 ;; 16803 16804 bsdi[45]*) 16805 export_dynamic_flag_spec=-rdynamic 16806 ;; 16807 16808 cygwin* | mingw* | pw32* | cegcc*) 16809 # When not using gcc, we currently assume that we are using 16810 # Microsoft Visual C++ or Intel C++ Compiler. 16811 # hardcode_libdir_flag_spec is actually meaningless, as there is 16812 # no search path for DLLs. 16813 case $cc_basename in 16814 cl* | icl*) 16815 # Native MSVC or ICC 16816 hardcode_libdir_flag_spec=' ' 16817 allow_undefined_flag=unsupported 16818 always_export_symbols=yes 16819 file_list_spec='@' 16820 # Tell ltmain to make .lib files, not .a files. 16821 libext=lib 16822 # Tell ltmain to make .dll files, not .so files. 16823 shrext_cmds=.dll 16824 # FIXME: Setting linknames here is a bad hack. 16825 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16826 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16827 cp "$export_symbols" "$output_objdir/$soname.def"; 16828 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16829 else 16830 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16831 fi~ 16832 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16833 linknames=' 16834 # The linker will not automatically build a static lib if we build a DLL. 16835 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16836 enable_shared_with_static_runtimes=yes 16837 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16838 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16839 # Don't use ranlib 16840 old_postinstall_cmds='chmod 644 $oldlib' 16841 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16842 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16843 case $lt_outputfile in 16844 *.exe|*.EXE) ;; 16845 *) 16846 lt_outputfile=$lt_outputfile.exe 16847 lt_tool_outputfile=$lt_tool_outputfile.exe 16848 ;; 16849 esac~ 16850 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16851 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16852 $RM "$lt_outputfile.manifest"; 16853 fi' 16854 ;; 16855 *) 16856 # Assume MSVC and ICC wrapper 16857 hardcode_libdir_flag_spec=' ' 16858 allow_undefined_flag=unsupported 16859 # Tell ltmain to make .lib files, not .a files. 16860 libext=lib 16861 # Tell ltmain to make .dll files, not .so files. 16862 shrext_cmds=.dll 16863 # FIXME: Setting linknames here is a bad hack. 16864 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16865 # The linker will automatically build a .lib file if we build a DLL. 16866 old_archive_from_new_cmds='true' 16867 # FIXME: Should let the user specify the lib program. 16868 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16869 enable_shared_with_static_runtimes=yes 16870 ;; 16871 esac 16872 ;; 16873 16874 darwin* | rhapsody*) 16875 16876 16877 archive_cmds_need_lc=no 16878 hardcode_direct=no 16879 hardcode_automatic=yes 16880 hardcode_shlibpath_var=unsupported 16881 if test yes = "$lt_cv_ld_force_load"; then 16882 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\"`' 16883 16884 else 16885 whole_archive_flag_spec='' 16886 fi 16887 link_all_deplibs=yes 16888 allow_undefined_flag=$_lt_dar_allow_undefined 16889 case $cc_basename in 16890 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16891 *) _lt_dar_can_shared=$GCC ;; 16892 esac 16893 if test yes = "$_lt_dar_can_shared"; then 16894 output_verbose_link_cmd=func_echo_all 16895 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16896 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16897 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" 16898 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" 16899 16900 else 16901 ld_shlibs=no 16902 fi 16903 16904 ;; 16905 16906 dgux*) 16907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16908 hardcode_libdir_flag_spec='-L$libdir' 16909 hardcode_shlibpath_var=no 16910 ;; 16911 16912 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16913 # support. Future versions do this automatically, but an explicit c++rt0.o 16914 # does not break anything, and helps significantly (at the cost of a little 16915 # extra space). 16916 freebsd2.2*) 16917 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16918 hardcode_libdir_flag_spec='-R$libdir' 16919 hardcode_direct=yes 16920 hardcode_shlibpath_var=no 16921 ;; 16922 16923 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16924 freebsd2.*) 16925 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16926 hardcode_direct=yes 16927 hardcode_minus_L=yes 16928 hardcode_shlibpath_var=no 16929 ;; 16930 16931 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16932 freebsd* | dragonfly* | midnightbsd*) 16933 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16934 hardcode_libdir_flag_spec='-R$libdir' 16935 hardcode_direct=yes 16936 hardcode_shlibpath_var=no 16937 ;; 16938 16939 hpux9*) 16940 if test yes = "$GCC"; then 16941 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' 16942 else 16943 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' 16944 fi 16945 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16946 hardcode_libdir_separator=: 16947 hardcode_direct=yes 16948 16949 # hardcode_minus_L: Not really in the search PATH, 16950 # but as the default location of the library. 16951 hardcode_minus_L=yes 16952 export_dynamic_flag_spec='$wl-E' 16953 ;; 16954 16955 hpux10*) 16956 if test yes,no = "$GCC,$with_gnu_ld"; then 16957 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16958 else 16959 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16960 fi 16961 if test no = "$with_gnu_ld"; then 16962 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16963 hardcode_libdir_separator=: 16964 hardcode_direct=yes 16965 hardcode_direct_absolute=yes 16966 export_dynamic_flag_spec='$wl-E' 16967 # hardcode_minus_L: Not really in the search PATH, 16968 # but as the default location of the library. 16969 hardcode_minus_L=yes 16970 fi 16971 ;; 16972 16973 hpux11*) 16974 if test yes,no = "$GCC,$with_gnu_ld"; then 16975 case $host_cpu in 16976 hppa*64*) 16977 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16978 ;; 16979 ia64*) 16980 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16981 ;; 16982 *) 16983 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16984 ;; 16985 esac 16986 else 16987 case $host_cpu in 16988 hppa*64*) 16989 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16990 ;; 16991 ia64*) 16992 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16993 ;; 16994 *) 16995 16996 # Older versions of the 11.00 compiler do not understand -b yet 16997 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16999printf %s "checking if $CC understands -b... " >&6; } 17000if test ${lt_cv_prog_compiler__b+y} 17001then : 17002 printf %s "(cached) " >&6 17003else $as_nop 17004 lt_cv_prog_compiler__b=no 17005 save_LDFLAGS=$LDFLAGS 17006 LDFLAGS="$LDFLAGS -b" 17007 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17008 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17009 # The linker can only warn and ignore the option if not recognized 17010 # So say no if there are warnings 17011 if test -s conftest.err; then 17012 # Append any errors to the config.log. 17013 cat conftest.err 1>&5 17014 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17016 if diff conftest.exp conftest.er2 >/dev/null; then 17017 lt_cv_prog_compiler__b=yes 17018 fi 17019 else 17020 lt_cv_prog_compiler__b=yes 17021 fi 17022 fi 17023 $RM -r conftest* 17024 LDFLAGS=$save_LDFLAGS 17025 17026fi 17027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17028printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17029 17030if test yes = "$lt_cv_prog_compiler__b"; then 17031 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17032else 17033 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17034fi 17035 17036 ;; 17037 esac 17038 fi 17039 if test no = "$with_gnu_ld"; then 17040 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17041 hardcode_libdir_separator=: 17042 17043 case $host_cpu in 17044 hppa*64*|ia64*) 17045 hardcode_direct=no 17046 hardcode_shlibpath_var=no 17047 ;; 17048 *) 17049 hardcode_direct=yes 17050 hardcode_direct_absolute=yes 17051 export_dynamic_flag_spec='$wl-E' 17052 17053 # hardcode_minus_L: Not really in the search PATH, 17054 # but as the default location of the library. 17055 hardcode_minus_L=yes 17056 ;; 17057 esac 17058 fi 17059 ;; 17060 17061 irix5* | irix6* | nonstopux*) 17062 if test yes = "$GCC"; then 17063 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' 17064 # Try to use the -exported_symbol ld option, if it does not 17065 # work, assume that -exports_file does not work either and 17066 # implicitly export all symbols. 17067 # This should be the same for all languages, so no per-tag cache variable. 17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17069printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17070if test ${lt_cv_irix_exported_symbol+y} 17071then : 17072 printf %s "(cached) " >&6 17073else $as_nop 17074 save_LDFLAGS=$LDFLAGS 17075 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17077/* end confdefs.h. */ 17078int foo (void) { return 0; } 17079_ACEOF 17080if ac_fn_c_try_link "$LINENO" 17081then : 17082 lt_cv_irix_exported_symbol=yes 17083else $as_nop 17084 lt_cv_irix_exported_symbol=no 17085fi 17086rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17087 conftest$ac_exeext conftest.$ac_ext 17088 LDFLAGS=$save_LDFLAGS 17089fi 17090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17091printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17092 if test yes = "$lt_cv_irix_exported_symbol"; then 17093 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' 17094 fi 17095 else 17096 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' 17097 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' 17098 fi 17099 archive_cmds_need_lc='no' 17100 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17101 hardcode_libdir_separator=: 17102 inherit_rpath=yes 17103 link_all_deplibs=yes 17104 ;; 17105 17106 linux*) 17107 case $cc_basename in 17108 tcc*) 17109 # Fabrice Bellard et al's Tiny C Compiler 17110 ld_shlibs=yes 17111 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17112 ;; 17113 esac 17114 ;; 17115 17116 netbsd*) 17117 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17118 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17119 else 17120 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17121 fi 17122 hardcode_libdir_flag_spec='-R$libdir' 17123 hardcode_direct=yes 17124 hardcode_shlibpath_var=no 17125 ;; 17126 17127 newsos6) 17128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17129 hardcode_direct=yes 17130 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17131 hardcode_libdir_separator=: 17132 hardcode_shlibpath_var=no 17133 ;; 17134 17135 *nto* | *qnx*) 17136 ;; 17137 17138 openbsd* | bitrig*) 17139 if test -f /usr/libexec/ld.so; then 17140 hardcode_direct=yes 17141 hardcode_shlibpath_var=no 17142 hardcode_direct_absolute=yes 17143 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17144 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17145 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17146 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17147 export_dynamic_flag_spec='$wl-E' 17148 else 17149 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17150 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17151 fi 17152 else 17153 ld_shlibs=no 17154 fi 17155 ;; 17156 17157 os2*) 17158 hardcode_libdir_flag_spec='-L$libdir' 17159 hardcode_minus_L=yes 17160 allow_undefined_flag=unsupported 17161 shrext_cmds=.dll 17162 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17163 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17164 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17165 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17166 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17167 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17168 emximp -o $lib $output_objdir/$libname.def' 17169 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17170 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17171 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17172 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17173 prefix_cmds="$SED"~ 17174 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17175 prefix_cmds="$prefix_cmds -e 1d"; 17176 fi~ 17177 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17178 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17179 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17180 emximp -o $lib $output_objdir/$libname.def' 17181 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17182 enable_shared_with_static_runtimes=yes 17183 file_list_spec='@' 17184 ;; 17185 17186 osf3*) 17187 if test yes = "$GCC"; then 17188 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17189 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' 17190 else 17191 allow_undefined_flag=' -expect_unresolved \*' 17192 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' 17193 fi 17194 archive_cmds_need_lc='no' 17195 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17196 hardcode_libdir_separator=: 17197 ;; 17198 17199 osf4* | osf5*) # as osf3* with the addition of -msym flag 17200 if test yes = "$GCC"; then 17201 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17202 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' 17203 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17204 else 17205 allow_undefined_flag=' -expect_unresolved \*' 17206 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' 17207 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~ 17208 $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' 17209 17210 # Both c and cxx compiler support -rpath directly 17211 hardcode_libdir_flag_spec='-rpath $libdir' 17212 fi 17213 archive_cmds_need_lc='no' 17214 hardcode_libdir_separator=: 17215 ;; 17216 17217 solaris*) 17218 no_undefined_flag=' -z defs' 17219 if test yes = "$GCC"; then 17220 wlarc='$wl' 17221 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17222 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17223 $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' 17224 else 17225 case `$CC -V 2>&1` in 17226 *"Compilers 5.0"*) 17227 wlarc='' 17228 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17229 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17230 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17231 ;; 17232 *) 17233 wlarc='$wl' 17234 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17235 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17236 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17237 ;; 17238 esac 17239 fi 17240 hardcode_libdir_flag_spec='-R$libdir' 17241 hardcode_shlibpath_var=no 17242 case $host_os in 17243 solaris2.[0-5] | solaris2.[0-5].*) ;; 17244 *) 17245 # The compiler driver will combine and reorder linker options, 17246 # but understands '-z linker_flag'. GCC discards it without '$wl', 17247 # but is careful enough not to reorder. 17248 # Supported since Solaris 2.6 (maybe 2.5.1?) 17249 if test yes = "$GCC"; then 17250 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17251 else 17252 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17253 fi 17254 ;; 17255 esac 17256 link_all_deplibs=yes 17257 ;; 17258 17259 sunos4*) 17260 if test sequent = "$host_vendor"; then 17261 # Use $CC to link under sequent, because it throws in some extra .o 17262 # files that make .init and .fini sections work. 17263 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17264 else 17265 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17266 fi 17267 hardcode_libdir_flag_spec='-L$libdir' 17268 hardcode_direct=yes 17269 hardcode_minus_L=yes 17270 hardcode_shlibpath_var=no 17271 ;; 17272 17273 sysv4) 17274 case $host_vendor in 17275 sni) 17276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17277 hardcode_direct=yes # is this really true??? 17278 ;; 17279 siemens) 17280 ## LD is ld it makes a PLAMLIB 17281 ## CC just makes a GrossModule. 17282 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17283 reload_cmds='$CC -r -o $output$reload_objs' 17284 hardcode_direct=no 17285 ;; 17286 motorola) 17287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17288 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17289 ;; 17290 esac 17291 runpath_var='LD_RUN_PATH' 17292 hardcode_shlibpath_var=no 17293 ;; 17294 17295 sysv4.3*) 17296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17297 hardcode_shlibpath_var=no 17298 export_dynamic_flag_spec='-Bexport' 17299 ;; 17300 17301 sysv4*MP*) 17302 if test -d /usr/nec; then 17303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17304 hardcode_shlibpath_var=no 17305 runpath_var=LD_RUN_PATH 17306 hardcode_runpath_var=yes 17307 ld_shlibs=yes 17308 fi 17309 ;; 17310 17311 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17312 no_undefined_flag='$wl-z,text' 17313 archive_cmds_need_lc=no 17314 hardcode_shlibpath_var=no 17315 runpath_var='LD_RUN_PATH' 17316 17317 if test yes = "$GCC"; then 17318 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17319 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17320 else 17321 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17322 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17323 fi 17324 ;; 17325 17326 sysv5* | sco3.2v5* | sco5v6*) 17327 # Note: We CANNOT use -z defs as we might desire, because we do not 17328 # link with -lc, and that would cause any symbols used from libc to 17329 # always be unresolved, which means just about no library would 17330 # ever link correctly. If we're not using GNU ld we use -z text 17331 # though, which does catch some bad symbols but isn't as heavy-handed 17332 # as -z defs. 17333 no_undefined_flag='$wl-z,text' 17334 allow_undefined_flag='$wl-z,nodefs' 17335 archive_cmds_need_lc=no 17336 hardcode_shlibpath_var=no 17337 hardcode_libdir_flag_spec='$wl-R,$libdir' 17338 hardcode_libdir_separator=':' 17339 link_all_deplibs=yes 17340 export_dynamic_flag_spec='$wl-Bexport' 17341 runpath_var='LD_RUN_PATH' 17342 17343 if test yes = "$GCC"; then 17344 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17345 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17346 else 17347 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17348 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17349 fi 17350 ;; 17351 17352 uts4*) 17353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17354 hardcode_libdir_flag_spec='-L$libdir' 17355 hardcode_shlibpath_var=no 17356 ;; 17357 17358 *) 17359 ld_shlibs=no 17360 ;; 17361 esac 17362 17363 if test sni = "$host_vendor"; then 17364 case $host in 17365 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17366 export_dynamic_flag_spec='$wl-Blargedynsym' 17367 ;; 17368 esac 17369 fi 17370 fi 17371 17372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17373printf "%s\n" "$ld_shlibs" >&6; } 17374test no = "$ld_shlibs" && can_build_shared=no 17375 17376with_gnu_ld=$with_gnu_ld 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392# 17393# Do we need to explicitly link libc? 17394# 17395case "x$archive_cmds_need_lc" in 17396x|xyes) 17397 # Assume -lc should be added 17398 archive_cmds_need_lc=yes 17399 17400 if test yes,yes = "$GCC,$enable_shared"; then 17401 case $archive_cmds in 17402 *'~'*) 17403 # FIXME: we may have to deal with multi-command sequences. 17404 ;; 17405 '$CC '*) 17406 # Test whether the compiler implicitly links with -lc since on some 17407 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17408 # to ld, don't add -lc before -lgcc. 17409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17410printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17411if test ${lt_cv_archive_cmds_need_lc+y} 17412then : 17413 printf %s "(cached) " >&6 17414else $as_nop 17415 $RM conftest* 17416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17417 17418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17419 (eval $ac_compile) 2>&5 17420 ac_status=$? 17421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17422 test $ac_status = 0; } 2>conftest.err; then 17423 soname=conftest 17424 lib=conftest 17425 libobjs=conftest.$ac_objext 17426 deplibs= 17427 wl=$lt_prog_compiler_wl 17428 pic_flag=$lt_prog_compiler_pic 17429 compiler_flags=-v 17430 linker_flags=-v 17431 verstring= 17432 output_objdir=. 17433 libname=conftest 17434 lt_save_allow_undefined_flag=$allow_undefined_flag 17435 allow_undefined_flag= 17436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17437 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17438 ac_status=$? 17439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17440 test $ac_status = 0; } 17441 then 17442 lt_cv_archive_cmds_need_lc=no 17443 else 17444 lt_cv_archive_cmds_need_lc=yes 17445 fi 17446 allow_undefined_flag=$lt_save_allow_undefined_flag 17447 else 17448 cat conftest.err 1>&5 17449 fi 17450 $RM conftest* 17451 17452fi 17453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17454printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17455 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17456 ;; 17457 esac 17458 fi 17459 ;; 17460esac 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17614printf %s "checking dynamic linker characteristics... " >&6; } 17615 17616if test yes = "$GCC"; then 17617 case $host_os in 17618 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17619 *) lt_awk_arg='/^libraries:/' ;; 17620 esac 17621 case $host_os in 17622 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17623 *) lt_sed_strip_eq='s|=/|/|g' ;; 17624 esac 17625 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17626 case $lt_search_path_spec in 17627 *\;*) 17628 # if the path contains ";" then we assume it to be the separator 17629 # otherwise default to the standard path separator (i.e. ":") - it is 17630 # assumed that no part of a normal pathname contains ";" but that should 17631 # okay in the real world where ";" in dirpaths is itself problematic. 17632 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17633 ;; 17634 *) 17635 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17636 ;; 17637 esac 17638 # Ok, now we have the path, separated by spaces, we can step through it 17639 # and add multilib dir if necessary... 17640 lt_tmp_lt_search_path_spec= 17641 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17642 # ...but if some path component already ends with the multilib dir we assume 17643 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17644 case "$lt_multi_os_dir; $lt_search_path_spec " in 17645 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17646 lt_multi_os_dir= 17647 ;; 17648 esac 17649 for lt_sys_path in $lt_search_path_spec; do 17650 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17651 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17652 elif test -n "$lt_multi_os_dir"; then 17653 test -d "$lt_sys_path" && \ 17654 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17655 fi 17656 done 17657 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17658BEGIN {RS = " "; FS = "/|\n";} { 17659 lt_foo = ""; 17660 lt_count = 0; 17661 for (lt_i = NF; lt_i > 0; lt_i--) { 17662 if ($lt_i != "" && $lt_i != ".") { 17663 if ($lt_i == "..") { 17664 lt_count++; 17665 } else { 17666 if (lt_count == 0) { 17667 lt_foo = "/" $lt_i lt_foo; 17668 } else { 17669 lt_count--; 17670 } 17671 } 17672 } 17673 } 17674 if (lt_foo != "") { lt_freq[lt_foo]++; } 17675 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17676}'` 17677 # AWK program above erroneously prepends '/' to C:/dos/paths 17678 # for these hosts. 17679 case $host_os in 17680 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17681 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17682 esac 17683 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17684else 17685 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17686fi 17687library_names_spec= 17688libname_spec='lib$name' 17689soname_spec= 17690shrext_cmds=.so 17691postinstall_cmds= 17692postuninstall_cmds= 17693finish_cmds= 17694finish_eval= 17695shlibpath_var= 17696shlibpath_overrides_runpath=unknown 17697version_type=none 17698dynamic_linker="$host_os ld.so" 17699sys_lib_dlsearch_path_spec="/lib /usr/lib" 17700need_lib_prefix=unknown 17701hardcode_into_libs=no 17702 17703# when you set need_version to no, make sure it does not cause -set_version 17704# flags to be left without arguments 17705need_version=unknown 17706 17707 17708 17709case $host_os in 17710aix3*) 17711 version_type=linux # correct to gnu/linux during the next big refactor 17712 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17713 shlibpath_var=LIBPATH 17714 17715 # AIX 3 has no versioning support, so we append a major version to the name. 17716 soname_spec='$libname$release$shared_ext$major' 17717 ;; 17718 17719aix[4-9]*) 17720 version_type=linux # correct to gnu/linux during the next big refactor 17721 need_lib_prefix=no 17722 need_version=no 17723 hardcode_into_libs=yes 17724 if test ia64 = "$host_cpu"; then 17725 # AIX 5 supports IA64 17726 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17727 shlibpath_var=LD_LIBRARY_PATH 17728 else 17729 # With GCC up to 2.95.x, collect2 would create an import file 17730 # for dependence libraries. The import file would start with 17731 # the line '#! .'. This would cause the generated library to 17732 # depend on '.', always an invalid library. This was fixed in 17733 # development snapshots of GCC prior to 3.0. 17734 case $host_os in 17735 aix4 | aix4.[01] | aix4.[01].*) 17736 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17737 echo ' yes ' 17738 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17739 : 17740 else 17741 can_build_shared=no 17742 fi 17743 ;; 17744 esac 17745 # Using Import Files as archive members, it is possible to support 17746 # filename-based versioning of shared library archives on AIX. While 17747 # this would work for both with and without runtime linking, it will 17748 # prevent static linking of such archives. So we do filename-based 17749 # shared library versioning with .so extension only, which is used 17750 # when both runtime linking and shared linking is enabled. 17751 # Unfortunately, runtime linking may impact performance, so we do 17752 # not want this to be the default eventually. Also, we use the 17753 # versioned .so libs for executables only if there is the -brtl 17754 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17755 # To allow for filename-based versioning support, we need to create 17756 # libNAME.so.V as an archive file, containing: 17757 # *) an Import File, referring to the versioned filename of the 17758 # archive as well as the shared archive member, telling the 17759 # bitwidth (32 or 64) of that shared object, and providing the 17760 # list of exported symbols of that shared object, eventually 17761 # decorated with the 'weak' keyword 17762 # *) the shared object with the F_LOADONLY flag set, to really avoid 17763 # it being seen by the linker. 17764 # At run time we better use the real file rather than another symlink, 17765 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17766 17767 case $with_aix_soname,$aix_use_runtimelinking in 17768 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17769 # soname into executable. Probably we can add versioning support to 17770 # collect2, so additional links can be useful in future. 17771 aix,yes) # traditional libtool 17772 dynamic_linker='AIX unversionable lib.so' 17773 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17774 # instead of lib<name>.a to let people know that these are not 17775 # typical AIX shared libraries. 17776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17777 ;; 17778 aix,no) # traditional AIX only 17779 dynamic_linker='AIX lib.a(lib.so.V)' 17780 # We preserve .a as extension for shared libraries through AIX4.2 17781 # and later when we are not doing run time linking. 17782 library_names_spec='$libname$release.a $libname.a' 17783 soname_spec='$libname$release$shared_ext$major' 17784 ;; 17785 svr4,*) # full svr4 only 17786 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17787 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17788 # We do not specify a path in Import Files, so LIBPATH fires. 17789 shlibpath_overrides_runpath=yes 17790 ;; 17791 *,yes) # both, prefer svr4 17792 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17793 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17794 # unpreferred sharedlib libNAME.a needs extra handling 17795 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"' 17796 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"' 17797 # We do not specify a path in Import Files, so LIBPATH fires. 17798 shlibpath_overrides_runpath=yes 17799 ;; 17800 *,no) # both, prefer aix 17801 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17802 library_names_spec='$libname$release.a $libname.a' 17803 soname_spec='$libname$release$shared_ext$major' 17804 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17805 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)' 17806 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"' 17807 ;; 17808 esac 17809 shlibpath_var=LIBPATH 17810 fi 17811 ;; 17812 17813amigaos*) 17814 case $host_cpu in 17815 powerpc) 17816 # Since July 2007 AmigaOS4 officially supports .so libraries. 17817 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17819 ;; 17820 m68k) 17821 library_names_spec='$libname.ixlibrary $libname.a' 17822 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17823 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' 17824 ;; 17825 esac 17826 ;; 17827 17828beos*) 17829 library_names_spec='$libname$shared_ext' 17830 dynamic_linker="$host_os ld.so" 17831 shlibpath_var=LIBRARY_PATH 17832 ;; 17833 17834bsdi[45]*) 17835 version_type=linux # correct to gnu/linux during the next big refactor 17836 need_version=no 17837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17838 soname_spec='$libname$release$shared_ext$major' 17839 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17840 shlibpath_var=LD_LIBRARY_PATH 17841 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17842 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17843 # the default ld.so.conf also contains /usr/contrib/lib and 17844 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17845 # libtool to hard-code these into programs 17846 ;; 17847 17848cygwin* | mingw* | pw32* | cegcc*) 17849 version_type=windows 17850 shrext_cmds=.dll 17851 need_version=no 17852 need_lib_prefix=no 17853 17854 case $GCC,$cc_basename in 17855 yes,*) 17856 # gcc 17857 library_names_spec='$libname.dll.a' 17858 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17859 postinstall_cmds='base_file=`basename \$file`~ 17860 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17861 dldir=$destdir/`dirname \$dlpath`~ 17862 test -d \$dldir || mkdir -p \$dldir~ 17863 $install_prog $dir/$dlname \$dldir/$dlname~ 17864 chmod a+x \$dldir/$dlname~ 17865 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17866 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17867 fi' 17868 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17869 dlpath=$dir/\$dldll~ 17870 $RM \$dlpath' 17871 shlibpath_overrides_runpath=yes 17872 17873 case $host_os in 17874 cygwin*) 17875 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17876 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17877 17878 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17879 ;; 17880 mingw* | cegcc*) 17881 # MinGW DLLs use traditional 'lib' prefix 17882 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17883 ;; 17884 pw32*) 17885 # pw32 DLLs use 'pw' prefix rather than 'lib' 17886 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17887 ;; 17888 esac 17889 dynamic_linker='Win32 ld.exe' 17890 ;; 17891 17892 *,cl* | *,icl*) 17893 # Native MSVC or ICC 17894 libname_spec='$name' 17895 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17896 library_names_spec='$libname.dll.lib' 17897 17898 case $build_os in 17899 mingw*) 17900 sys_lib_search_path_spec= 17901 lt_save_ifs=$IFS 17902 IFS=';' 17903 for lt_path in $LIB 17904 do 17905 IFS=$lt_save_ifs 17906 # Let DOS variable expansion print the short 8.3 style file name. 17907 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17908 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17909 done 17910 IFS=$lt_save_ifs 17911 # Convert to MSYS style. 17912 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17913 ;; 17914 cygwin*) 17915 # Convert to unix form, then to dos form, then back to unix form 17916 # but this time dos style (no spaces!) so that the unix form looks 17917 # like /cygdrive/c/PROGRA~1:/cygdr... 17918 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17919 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17920 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17921 ;; 17922 *) 17923 sys_lib_search_path_spec=$LIB 17924 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17925 # It is most probably a Windows format PATH. 17926 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17927 else 17928 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17929 fi 17930 # FIXME: find the short name or the path components, as spaces are 17931 # common. (e.g. "Program Files" -> "PROGRA~1") 17932 ;; 17933 esac 17934 17935 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17936 postinstall_cmds='base_file=`basename \$file`~ 17937 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17938 dldir=$destdir/`dirname \$dlpath`~ 17939 test -d \$dldir || mkdir -p \$dldir~ 17940 $install_prog $dir/$dlname \$dldir/$dlname' 17941 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17942 dlpath=$dir/\$dldll~ 17943 $RM \$dlpath' 17944 shlibpath_overrides_runpath=yes 17945 dynamic_linker='Win32 link.exe' 17946 ;; 17947 17948 *) 17949 # Assume MSVC and ICC wrapper 17950 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17951 dynamic_linker='Win32 ld.exe' 17952 ;; 17953 esac 17954 # FIXME: first we should search . and the directory the executable is in 17955 shlibpath_var=PATH 17956 ;; 17957 17958darwin* | rhapsody*) 17959 dynamic_linker="$host_os dyld" 17960 version_type=darwin 17961 need_lib_prefix=no 17962 need_version=no 17963 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17964 soname_spec='$libname$release$major$shared_ext' 17965 shlibpath_overrides_runpath=yes 17966 shlibpath_var=DYLD_LIBRARY_PATH 17967 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17968 17969 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17970 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17971 ;; 17972 17973dgux*) 17974 version_type=linux # correct to gnu/linux during the next big refactor 17975 need_lib_prefix=no 17976 need_version=no 17977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17978 soname_spec='$libname$release$shared_ext$major' 17979 shlibpath_var=LD_LIBRARY_PATH 17980 ;; 17981 17982freebsd* | dragonfly* | midnightbsd*) 17983 # DragonFly does not have aout. When/if they implement a new 17984 # versioning mechanism, adjust this. 17985 if test -x /usr/bin/objformat; then 17986 objformat=`/usr/bin/objformat` 17987 else 17988 case $host_os in 17989 freebsd[23].*) objformat=aout ;; 17990 *) objformat=elf ;; 17991 esac 17992 fi 17993 version_type=freebsd-$objformat 17994 case $version_type in 17995 freebsd-elf*) 17996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17997 soname_spec='$libname$release$shared_ext$major' 17998 need_version=no 17999 need_lib_prefix=no 18000 ;; 18001 freebsd-*) 18002 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18003 need_version=yes 18004 ;; 18005 esac 18006 shlibpath_var=LD_LIBRARY_PATH 18007 case $host_os in 18008 freebsd2.*) 18009 shlibpath_overrides_runpath=yes 18010 ;; 18011 freebsd3.[01]* | freebsdelf3.[01]*) 18012 shlibpath_overrides_runpath=yes 18013 hardcode_into_libs=yes 18014 ;; 18015 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18016 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18017 shlibpath_overrides_runpath=no 18018 hardcode_into_libs=yes 18019 ;; 18020 *) # from 4.6 on, and DragonFly 18021 shlibpath_overrides_runpath=yes 18022 hardcode_into_libs=yes 18023 ;; 18024 esac 18025 ;; 18026 18027haiku*) 18028 version_type=linux # correct to gnu/linux during the next big refactor 18029 need_lib_prefix=no 18030 need_version=no 18031 dynamic_linker="$host_os runtime_loader" 18032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18033 soname_spec='$libname$release$shared_ext$major' 18034 shlibpath_var=LIBRARY_PATH 18035 shlibpath_overrides_runpath=no 18036 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18037 hardcode_into_libs=yes 18038 ;; 18039 18040hpux9* | hpux10* | hpux11*) 18041 # Give a soname corresponding to the major version so that dld.sl refuses to 18042 # link against other versions. 18043 version_type=sunos 18044 need_lib_prefix=no 18045 need_version=no 18046 case $host_cpu in 18047 ia64*) 18048 shrext_cmds='.so' 18049 hardcode_into_libs=yes 18050 dynamic_linker="$host_os dld.so" 18051 shlibpath_var=LD_LIBRARY_PATH 18052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18054 soname_spec='$libname$release$shared_ext$major' 18055 if test 32 = "$HPUX_IA64_MODE"; then 18056 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18057 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18058 else 18059 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18060 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18061 fi 18062 ;; 18063 hppa*64*) 18064 shrext_cmds='.sl' 18065 hardcode_into_libs=yes 18066 dynamic_linker="$host_os dld.sl" 18067 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18068 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18070 soname_spec='$libname$release$shared_ext$major' 18071 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18073 ;; 18074 *) 18075 shrext_cmds='.sl' 18076 dynamic_linker="$host_os dld.sl" 18077 shlibpath_var=SHLIB_PATH 18078 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18080 soname_spec='$libname$release$shared_ext$major' 18081 ;; 18082 esac 18083 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18084 postinstall_cmds='chmod 555 $lib' 18085 # or fails outright, so override atomically: 18086 install_override_mode=555 18087 ;; 18088 18089interix[3-9]*) 18090 version_type=linux # correct to gnu/linux during the next big refactor 18091 need_lib_prefix=no 18092 need_version=no 18093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18094 soname_spec='$libname$release$shared_ext$major' 18095 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18096 shlibpath_var=LD_LIBRARY_PATH 18097 shlibpath_overrides_runpath=no 18098 hardcode_into_libs=yes 18099 ;; 18100 18101irix5* | irix6* | nonstopux*) 18102 case $host_os in 18103 nonstopux*) version_type=nonstopux ;; 18104 *) 18105 if test yes = "$lt_cv_prog_gnu_ld"; then 18106 version_type=linux # correct to gnu/linux during the next big refactor 18107 else 18108 version_type=irix 18109 fi ;; 18110 esac 18111 need_lib_prefix=no 18112 need_version=no 18113 soname_spec='$libname$release$shared_ext$major' 18114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18115 case $host_os in 18116 irix5* | nonstopux*) 18117 libsuff= shlibsuff= 18118 ;; 18119 *) 18120 case $LD in # libtool.m4 will add one of these switches to LD 18121 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18122 libsuff= shlibsuff= libmagic=32-bit;; 18123 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18124 libsuff=32 shlibsuff=N32 libmagic=N32;; 18125 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18126 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18127 *) libsuff= shlibsuff= libmagic=never-match;; 18128 esac 18129 ;; 18130 esac 18131 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18132 shlibpath_overrides_runpath=no 18133 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18134 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18135 hardcode_into_libs=yes 18136 ;; 18137 18138# No shared lib support for Linux oldld, aout, or coff. 18139linux*oldld* | linux*aout* | linux*coff*) 18140 dynamic_linker=no 18141 ;; 18142 18143linux*android*) 18144 version_type=none # Android doesn't support versioned libraries. 18145 need_lib_prefix=no 18146 need_version=no 18147 library_names_spec='$libname$release$shared_ext' 18148 soname_spec='$libname$release$shared_ext' 18149 finish_cmds= 18150 shlibpath_var=LD_LIBRARY_PATH 18151 shlibpath_overrides_runpath=yes 18152 18153 # This implies no fast_install, which is unacceptable. 18154 # Some rework will be needed to allow for fast_install 18155 # before this can be enabled. 18156 hardcode_into_libs=yes 18157 18158 dynamic_linker='Android linker' 18159 # Don't embed -rpath directories since the linker doesn't support them. 18160 hardcode_libdir_flag_spec='-L$libdir' 18161 ;; 18162 18163# This must be glibc/ELF. 18164linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18165 version_type=linux # correct to gnu/linux during the next big refactor 18166 need_lib_prefix=no 18167 need_version=no 18168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18169 soname_spec='$libname$release$shared_ext$major' 18170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18171 shlibpath_var=LD_LIBRARY_PATH 18172 shlibpath_overrides_runpath=no 18173 18174 # Some binutils ld are patched to set DT_RUNPATH 18175 if test ${lt_cv_shlibpath_overrides_runpath+y} 18176then : 18177 printf %s "(cached) " >&6 18178else $as_nop 18179 lt_cv_shlibpath_overrides_runpath=no 18180 save_LDFLAGS=$LDFLAGS 18181 save_libdir=$libdir 18182 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18183 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18185/* end confdefs.h. */ 18186 18187int 18188main (void) 18189{ 18190 18191 ; 18192 return 0; 18193} 18194_ACEOF 18195if ac_fn_c_try_link "$LINENO" 18196then : 18197 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18198then : 18199 lt_cv_shlibpath_overrides_runpath=yes 18200fi 18201fi 18202rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18203 conftest$ac_exeext conftest.$ac_ext 18204 LDFLAGS=$save_LDFLAGS 18205 libdir=$save_libdir 18206 18207fi 18208 18209 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18210 18211 # This implies no fast_install, which is unacceptable. 18212 # Some rework will be needed to allow for fast_install 18213 # before this can be enabled. 18214 hardcode_into_libs=yes 18215 18216 # Ideally, we could use ldconfig to report *all* directores which are 18217 # searched for libraries, however this is still not possible. Aside from not 18218 # being certain /sbin/ldconfig is available, command 18219 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18220 # even though it is searched at run-time. Try to do the best guess by 18221 # appending ld.so.conf contents (and includes) to the search path. 18222 if test -f /etc/ld.so.conf; then 18223 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' ' '` 18224 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18225 fi 18226 18227 # We used to test for /lib/ld.so.1 and disable shared libraries on 18228 # powerpc, because MkLinux only supported shared libraries with the 18229 # GNU dynamic linker. Since this was broken with cross compilers, 18230 # most powerpc-linux boxes support dynamic linking these days and 18231 # people can always --disable-shared, the test was removed, and we 18232 # assume the GNU/Linux dynamic linker is in use. 18233 dynamic_linker='GNU/Linux ld.so' 18234 ;; 18235 18236netbsd*) 18237 version_type=sunos 18238 need_lib_prefix=no 18239 need_version=no 18240 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18241 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18243 dynamic_linker='NetBSD (a.out) ld.so' 18244 else 18245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18246 soname_spec='$libname$release$shared_ext$major' 18247 dynamic_linker='NetBSD ld.elf_so' 18248 fi 18249 shlibpath_var=LD_LIBRARY_PATH 18250 shlibpath_overrides_runpath=yes 18251 hardcode_into_libs=yes 18252 ;; 18253 18254newsos6) 18255 version_type=linux # correct to gnu/linux during the next big refactor 18256 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18257 shlibpath_var=LD_LIBRARY_PATH 18258 shlibpath_overrides_runpath=yes 18259 ;; 18260 18261*nto* | *qnx*) 18262 version_type=qnx 18263 need_lib_prefix=no 18264 need_version=no 18265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18266 soname_spec='$libname$release$shared_ext$major' 18267 shlibpath_var=LD_LIBRARY_PATH 18268 shlibpath_overrides_runpath=no 18269 hardcode_into_libs=yes 18270 dynamic_linker='ldqnx.so' 18271 ;; 18272 18273openbsd* | bitrig*) 18274 version_type=sunos 18275 sys_lib_dlsearch_path_spec=/usr/lib 18276 need_lib_prefix=no 18277 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18278 need_version=no 18279 else 18280 need_version=yes 18281 fi 18282 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18284 shlibpath_var=LD_LIBRARY_PATH 18285 shlibpath_overrides_runpath=yes 18286 ;; 18287 18288os2*) 18289 libname_spec='$name' 18290 version_type=windows 18291 shrext_cmds=.dll 18292 need_version=no 18293 need_lib_prefix=no 18294 # OS/2 can only load a DLL with a base name of 8 characters or less. 18295 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18296 v=$($ECHO $release$versuffix | tr -d .-); 18297 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18298 $ECHO $n$v`$shared_ext' 18299 library_names_spec='${libname}_dll.$libext' 18300 dynamic_linker='OS/2 ld.exe' 18301 shlibpath_var=BEGINLIBPATH 18302 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18304 postinstall_cmds='base_file=`basename \$file`~ 18305 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18306 dldir=$destdir/`dirname \$dlpath`~ 18307 test -d \$dldir || mkdir -p \$dldir~ 18308 $install_prog $dir/$dlname \$dldir/$dlname~ 18309 chmod a+x \$dldir/$dlname~ 18310 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18311 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18312 fi' 18313 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18314 dlpath=$dir/\$dldll~ 18315 $RM \$dlpath' 18316 ;; 18317 18318osf3* | osf4* | osf5*) 18319 version_type=osf 18320 need_lib_prefix=no 18321 need_version=no 18322 soname_spec='$libname$release$shared_ext$major' 18323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18324 shlibpath_var=LD_LIBRARY_PATH 18325 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18327 ;; 18328 18329rdos*) 18330 dynamic_linker=no 18331 ;; 18332 18333solaris*) 18334 version_type=linux # correct to gnu/linux during the next big refactor 18335 need_lib_prefix=no 18336 need_version=no 18337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18338 soname_spec='$libname$release$shared_ext$major' 18339 shlibpath_var=LD_LIBRARY_PATH 18340 shlibpath_overrides_runpath=yes 18341 hardcode_into_libs=yes 18342 # ldd complains unless libraries are executable 18343 postinstall_cmds='chmod +x $lib' 18344 ;; 18345 18346sunos4*) 18347 version_type=sunos 18348 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18349 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18350 shlibpath_var=LD_LIBRARY_PATH 18351 shlibpath_overrides_runpath=yes 18352 if test yes = "$with_gnu_ld"; then 18353 need_lib_prefix=no 18354 fi 18355 need_version=yes 18356 ;; 18357 18358sysv4 | sysv4.3*) 18359 version_type=linux # correct to gnu/linux during the next big refactor 18360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18361 soname_spec='$libname$release$shared_ext$major' 18362 shlibpath_var=LD_LIBRARY_PATH 18363 case $host_vendor in 18364 sni) 18365 shlibpath_overrides_runpath=no 18366 need_lib_prefix=no 18367 runpath_var=LD_RUN_PATH 18368 ;; 18369 siemens) 18370 need_lib_prefix=no 18371 ;; 18372 motorola) 18373 need_lib_prefix=no 18374 need_version=no 18375 shlibpath_overrides_runpath=no 18376 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18377 ;; 18378 esac 18379 ;; 18380 18381sysv4*MP*) 18382 if test -d /usr/nec; then 18383 version_type=linux # correct to gnu/linux during the next big refactor 18384 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18385 soname_spec='$libname$shared_ext.$major' 18386 shlibpath_var=LD_LIBRARY_PATH 18387 fi 18388 ;; 18389 18390sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18391 version_type=sco 18392 need_lib_prefix=no 18393 need_version=no 18394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18395 soname_spec='$libname$release$shared_ext$major' 18396 shlibpath_var=LD_LIBRARY_PATH 18397 shlibpath_overrides_runpath=yes 18398 hardcode_into_libs=yes 18399 if test yes = "$with_gnu_ld"; then 18400 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18401 else 18402 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18403 case $host_os in 18404 sco3.2v5*) 18405 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18406 ;; 18407 esac 18408 fi 18409 sys_lib_dlsearch_path_spec='/usr/lib' 18410 ;; 18411 18412tpf*) 18413 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18414 version_type=linux # correct to gnu/linux during the next big refactor 18415 need_lib_prefix=no 18416 need_version=no 18417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18418 shlibpath_var=LD_LIBRARY_PATH 18419 shlibpath_overrides_runpath=no 18420 hardcode_into_libs=yes 18421 ;; 18422 18423uts4*) 18424 version_type=linux # correct to gnu/linux during the next big refactor 18425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18426 soname_spec='$libname$release$shared_ext$major' 18427 shlibpath_var=LD_LIBRARY_PATH 18428 ;; 18429 18430*) 18431 dynamic_linker=no 18432 ;; 18433esac 18434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18435printf "%s\n" "$dynamic_linker" >&6; } 18436test no = "$dynamic_linker" && can_build_shared=no 18437 18438variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18439if test yes = "$GCC"; then 18440 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18441fi 18442 18443if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18444 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18445fi 18446 18447if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18448 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18449fi 18450 18451# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18452configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18453 18454# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18455func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18456 18457# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18458configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508 18509 18510 18511 18512 18513 18514 18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18557printf %s "checking how to hardcode library paths into programs... " >&6; } 18558hardcode_action= 18559if test -n "$hardcode_libdir_flag_spec" || 18560 test -n "$runpath_var" || 18561 test yes = "$hardcode_automatic"; then 18562 18563 # We can hardcode non-existent directories. 18564 if test no != "$hardcode_direct" && 18565 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18566 # have to relink, otherwise we might link with an installed library 18567 # when we should be linking with a yet-to-be-installed one 18568 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18569 test no != "$hardcode_minus_L"; then 18570 # Linking always hardcodes the temporary library directory. 18571 hardcode_action=relink 18572 else 18573 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18574 hardcode_action=immediate 18575 fi 18576else 18577 # We cannot hardcode anything, or else we can only hardcode existing 18578 # directories. 18579 hardcode_action=unsupported 18580fi 18581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18582printf "%s\n" "$hardcode_action" >&6; } 18583 18584if test relink = "$hardcode_action" || 18585 test yes = "$inherit_rpath"; then 18586 # Fast installation is not supported 18587 enable_fast_install=no 18588elif test yes = "$shlibpath_overrides_runpath" || 18589 test no = "$enable_shared"; then 18590 # Fast installation is not necessary 18591 enable_fast_install=needless 18592fi 18593 18594 18595 18596 18597 18598 18599 if test yes != "$enable_dlopen"; then 18600 enable_dlopen=unknown 18601 enable_dlopen_self=unknown 18602 enable_dlopen_self_static=unknown 18603else 18604 lt_cv_dlopen=no 18605 lt_cv_dlopen_libs= 18606 18607 case $host_os in 18608 beos*) 18609 lt_cv_dlopen=load_add_on 18610 lt_cv_dlopen_libs= 18611 lt_cv_dlopen_self=yes 18612 ;; 18613 18614 mingw* | pw32* | cegcc*) 18615 lt_cv_dlopen=LoadLibrary 18616 lt_cv_dlopen_libs= 18617 ;; 18618 18619 cygwin*) 18620 lt_cv_dlopen=dlopen 18621 lt_cv_dlopen_libs= 18622 ;; 18623 18624 darwin*) 18625 # if libdl is installed we need to link against it 18626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18627printf %s "checking for dlopen in -ldl... " >&6; } 18628if test ${ac_cv_lib_dl_dlopen+y} 18629then : 18630 printf %s "(cached) " >&6 18631else $as_nop 18632 ac_check_lib_save_LIBS=$LIBS 18633LIBS="-ldl $LIBS" 18634cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18635/* end confdefs.h. */ 18636 18637/* Override any GCC internal prototype to avoid an error. 18638 Use char because int might match the return type of a GCC 18639 builtin and then its argument prototype would still apply. */ 18640char dlopen (); 18641int 18642main (void) 18643{ 18644return dlopen (); 18645 ; 18646 return 0; 18647} 18648_ACEOF 18649if ac_fn_c_try_link "$LINENO" 18650then : 18651 ac_cv_lib_dl_dlopen=yes 18652else $as_nop 18653 ac_cv_lib_dl_dlopen=no 18654fi 18655rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18656 conftest$ac_exeext conftest.$ac_ext 18657LIBS=$ac_check_lib_save_LIBS 18658fi 18659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18660printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18661if test "x$ac_cv_lib_dl_dlopen" = xyes 18662then : 18663 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18664else $as_nop 18665 18666 lt_cv_dlopen=dyld 18667 lt_cv_dlopen_libs= 18668 lt_cv_dlopen_self=yes 18669 18670fi 18671 18672 ;; 18673 18674 tpf*) 18675 # Don't try to run any link tests for TPF. We know it's impossible 18676 # because TPF is a cross-compiler, and we know how we open DSOs. 18677 lt_cv_dlopen=dlopen 18678 lt_cv_dlopen_libs= 18679 lt_cv_dlopen_self=no 18680 ;; 18681 18682 *) 18683 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18684if test "x$ac_cv_func_shl_load" = xyes 18685then : 18686 lt_cv_dlopen=shl_load 18687else $as_nop 18688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18689printf %s "checking for shl_load in -ldld... " >&6; } 18690if test ${ac_cv_lib_dld_shl_load+y} 18691then : 18692 printf %s "(cached) " >&6 18693else $as_nop 18694 ac_check_lib_save_LIBS=$LIBS 18695LIBS="-ldld $LIBS" 18696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18697/* end confdefs.h. */ 18698 18699/* Override any GCC internal prototype to avoid an error. 18700 Use char because int might match the return type of a GCC 18701 builtin and then its argument prototype would still apply. */ 18702char shl_load (); 18703int 18704main (void) 18705{ 18706return shl_load (); 18707 ; 18708 return 0; 18709} 18710_ACEOF 18711if ac_fn_c_try_link "$LINENO" 18712then : 18713 ac_cv_lib_dld_shl_load=yes 18714else $as_nop 18715 ac_cv_lib_dld_shl_load=no 18716fi 18717rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18718 conftest$ac_exeext conftest.$ac_ext 18719LIBS=$ac_check_lib_save_LIBS 18720fi 18721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18722printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 18723if test "x$ac_cv_lib_dld_shl_load" = xyes 18724then : 18725 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18726else $as_nop 18727 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18728if test "x$ac_cv_func_dlopen" = xyes 18729then : 18730 lt_cv_dlopen=dlopen 18731else $as_nop 18732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18733printf %s "checking for dlopen in -ldl... " >&6; } 18734if test ${ac_cv_lib_dl_dlopen+y} 18735then : 18736 printf %s "(cached) " >&6 18737else $as_nop 18738 ac_check_lib_save_LIBS=$LIBS 18739LIBS="-ldl $LIBS" 18740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18741/* end confdefs.h. */ 18742 18743/* Override any GCC internal prototype to avoid an error. 18744 Use char because int might match the return type of a GCC 18745 builtin and then its argument prototype would still apply. */ 18746char dlopen (); 18747int 18748main (void) 18749{ 18750return dlopen (); 18751 ; 18752 return 0; 18753} 18754_ACEOF 18755if ac_fn_c_try_link "$LINENO" 18756then : 18757 ac_cv_lib_dl_dlopen=yes 18758else $as_nop 18759 ac_cv_lib_dl_dlopen=no 18760fi 18761rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18762 conftest$ac_exeext conftest.$ac_ext 18763LIBS=$ac_check_lib_save_LIBS 18764fi 18765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18766printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18767if test "x$ac_cv_lib_dl_dlopen" = xyes 18768then : 18769 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18770else $as_nop 18771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18772printf %s "checking for dlopen in -lsvld... " >&6; } 18773if test ${ac_cv_lib_svld_dlopen+y} 18774then : 18775 printf %s "(cached) " >&6 18776else $as_nop 18777 ac_check_lib_save_LIBS=$LIBS 18778LIBS="-lsvld $LIBS" 18779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18780/* end confdefs.h. */ 18781 18782/* Override any GCC internal prototype to avoid an error. 18783 Use char because int might match the return type of a GCC 18784 builtin and then its argument prototype would still apply. */ 18785char dlopen (); 18786int 18787main (void) 18788{ 18789return dlopen (); 18790 ; 18791 return 0; 18792} 18793_ACEOF 18794if ac_fn_c_try_link "$LINENO" 18795then : 18796 ac_cv_lib_svld_dlopen=yes 18797else $as_nop 18798 ac_cv_lib_svld_dlopen=no 18799fi 18800rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18801 conftest$ac_exeext conftest.$ac_ext 18802LIBS=$ac_check_lib_save_LIBS 18803fi 18804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18805printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 18806if test "x$ac_cv_lib_svld_dlopen" = xyes 18807then : 18808 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18809else $as_nop 18810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18811printf %s "checking for dld_link in -ldld... " >&6; } 18812if test ${ac_cv_lib_dld_dld_link+y} 18813then : 18814 printf %s "(cached) " >&6 18815else $as_nop 18816 ac_check_lib_save_LIBS=$LIBS 18817LIBS="-ldld $LIBS" 18818cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18819/* end confdefs.h. */ 18820 18821/* Override any GCC internal prototype to avoid an error. 18822 Use char because int might match the return type of a GCC 18823 builtin and then its argument prototype would still apply. */ 18824char dld_link (); 18825int 18826main (void) 18827{ 18828return dld_link (); 18829 ; 18830 return 0; 18831} 18832_ACEOF 18833if ac_fn_c_try_link "$LINENO" 18834then : 18835 ac_cv_lib_dld_dld_link=yes 18836else $as_nop 18837 ac_cv_lib_dld_dld_link=no 18838fi 18839rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18840 conftest$ac_exeext conftest.$ac_ext 18841LIBS=$ac_check_lib_save_LIBS 18842fi 18843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18844printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 18845if test "x$ac_cv_lib_dld_dld_link" = xyes 18846then : 18847 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18848fi 18849 18850 18851fi 18852 18853 18854fi 18855 18856 18857fi 18858 18859 18860fi 18861 18862 18863fi 18864 18865 ;; 18866 esac 18867 18868 if test no = "$lt_cv_dlopen"; then 18869 enable_dlopen=no 18870 else 18871 enable_dlopen=yes 18872 fi 18873 18874 case $lt_cv_dlopen in 18875 dlopen) 18876 save_CPPFLAGS=$CPPFLAGS 18877 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18878 18879 save_LDFLAGS=$LDFLAGS 18880 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18881 18882 save_LIBS=$LIBS 18883 LIBS="$lt_cv_dlopen_libs $LIBS" 18884 18885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18886printf %s "checking whether a program can dlopen itself... " >&6; } 18887if test ${lt_cv_dlopen_self+y} 18888then : 18889 printf %s "(cached) " >&6 18890else $as_nop 18891 if test yes = "$cross_compiling"; then : 18892 lt_cv_dlopen_self=cross 18893else 18894 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18895 lt_status=$lt_dlunknown 18896 cat > conftest.$ac_ext <<_LT_EOF 18897#line $LINENO "configure" 18898#include "confdefs.h" 18899 18900#if HAVE_DLFCN_H 18901#include <dlfcn.h> 18902#endif 18903 18904#include <stdio.h> 18905 18906#ifdef RTLD_GLOBAL 18907# define LT_DLGLOBAL RTLD_GLOBAL 18908#else 18909# ifdef DL_GLOBAL 18910# define LT_DLGLOBAL DL_GLOBAL 18911# else 18912# define LT_DLGLOBAL 0 18913# endif 18914#endif 18915 18916/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18917 find out it does not work in some platform. */ 18918#ifndef LT_DLLAZY_OR_NOW 18919# ifdef RTLD_LAZY 18920# define LT_DLLAZY_OR_NOW RTLD_LAZY 18921# else 18922# ifdef DL_LAZY 18923# define LT_DLLAZY_OR_NOW DL_LAZY 18924# else 18925# ifdef RTLD_NOW 18926# define LT_DLLAZY_OR_NOW RTLD_NOW 18927# else 18928# ifdef DL_NOW 18929# define LT_DLLAZY_OR_NOW DL_NOW 18930# else 18931# define LT_DLLAZY_OR_NOW 0 18932# endif 18933# endif 18934# endif 18935# endif 18936#endif 18937 18938/* When -fvisibility=hidden is used, assume the code has been annotated 18939 correspondingly for the symbols needed. */ 18940#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18941int fnord () __attribute__((visibility("default"))); 18942#endif 18943 18944int fnord () { return 42; } 18945int main () 18946{ 18947 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18948 int status = $lt_dlunknown; 18949 18950 if (self) 18951 { 18952 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18953 else 18954 { 18955 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18956 else puts (dlerror ()); 18957 } 18958 /* dlclose (self); */ 18959 } 18960 else 18961 puts (dlerror ()); 18962 18963 return status; 18964} 18965_LT_EOF 18966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18967 (eval $ac_link) 2>&5 18968 ac_status=$? 18969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18970 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18971 (./conftest; exit; ) >&5 2>/dev/null 18972 lt_status=$? 18973 case x$lt_status in 18974 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18975 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18976 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18977 esac 18978 else : 18979 # compilation failed 18980 lt_cv_dlopen_self=no 18981 fi 18982fi 18983rm -fr conftest* 18984 18985 18986fi 18987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18988printf "%s\n" "$lt_cv_dlopen_self" >&6; } 18989 18990 if test yes = "$lt_cv_dlopen_self"; then 18991 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18993printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 18994if test ${lt_cv_dlopen_self_static+y} 18995then : 18996 printf %s "(cached) " >&6 18997else $as_nop 18998 if test yes = "$cross_compiling"; then : 18999 lt_cv_dlopen_self_static=cross 19000else 19001 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19002 lt_status=$lt_dlunknown 19003 cat > conftest.$ac_ext <<_LT_EOF 19004#line $LINENO "configure" 19005#include "confdefs.h" 19006 19007#if HAVE_DLFCN_H 19008#include <dlfcn.h> 19009#endif 19010 19011#include <stdio.h> 19012 19013#ifdef RTLD_GLOBAL 19014# define LT_DLGLOBAL RTLD_GLOBAL 19015#else 19016# ifdef DL_GLOBAL 19017# define LT_DLGLOBAL DL_GLOBAL 19018# else 19019# define LT_DLGLOBAL 0 19020# endif 19021#endif 19022 19023/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19024 find out it does not work in some platform. */ 19025#ifndef LT_DLLAZY_OR_NOW 19026# ifdef RTLD_LAZY 19027# define LT_DLLAZY_OR_NOW RTLD_LAZY 19028# else 19029# ifdef DL_LAZY 19030# define LT_DLLAZY_OR_NOW DL_LAZY 19031# else 19032# ifdef RTLD_NOW 19033# define LT_DLLAZY_OR_NOW RTLD_NOW 19034# else 19035# ifdef DL_NOW 19036# define LT_DLLAZY_OR_NOW DL_NOW 19037# else 19038# define LT_DLLAZY_OR_NOW 0 19039# endif 19040# endif 19041# endif 19042# endif 19043#endif 19044 19045/* When -fvisibility=hidden is used, assume the code has been annotated 19046 correspondingly for the symbols needed. */ 19047#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19048int fnord () __attribute__((visibility("default"))); 19049#endif 19050 19051int fnord () { return 42; } 19052int main () 19053{ 19054 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19055 int status = $lt_dlunknown; 19056 19057 if (self) 19058 { 19059 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19060 else 19061 { 19062 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19063 else puts (dlerror ()); 19064 } 19065 /* dlclose (self); */ 19066 } 19067 else 19068 puts (dlerror ()); 19069 19070 return status; 19071} 19072_LT_EOF 19073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19074 (eval $ac_link) 2>&5 19075 ac_status=$? 19076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19077 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19078 (./conftest; exit; ) >&5 2>/dev/null 19079 lt_status=$? 19080 case x$lt_status in 19081 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19082 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19083 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19084 esac 19085 else : 19086 # compilation failed 19087 lt_cv_dlopen_self_static=no 19088 fi 19089fi 19090rm -fr conftest* 19091 19092 19093fi 19094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19095printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19096 fi 19097 19098 CPPFLAGS=$save_CPPFLAGS 19099 LDFLAGS=$save_LDFLAGS 19100 LIBS=$save_LIBS 19101 ;; 19102 esac 19103 19104 case $lt_cv_dlopen_self in 19105 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19106 *) enable_dlopen_self=unknown ;; 19107 esac 19108 19109 case $lt_cv_dlopen_self_static in 19110 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19111 *) enable_dlopen_self_static=unknown ;; 19112 esac 19113fi 19114 19115 19116 19117 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131striplib= 19132old_striplib= 19133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19134printf %s "checking whether stripping libraries is possible... " >&6; } 19135if test -z "$STRIP"; then 19136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19137printf "%s\n" "no" >&6; } 19138else 19139 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19140 old_striplib="$STRIP --strip-debug" 19141 striplib="$STRIP --strip-unneeded" 19142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19143printf "%s\n" "yes" >&6; } 19144 else 19145 case $host_os in 19146 darwin*) 19147 # FIXME - insert some real tests, host_os isn't really good enough 19148 striplib="$STRIP -x" 19149 old_striplib="$STRIP -S" 19150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19151printf "%s\n" "yes" >&6; } 19152 ;; 19153 freebsd*) 19154 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 19155 old_striplib="$STRIP --strip-debug" 19156 striplib="$STRIP --strip-unneeded" 19157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19158printf "%s\n" "yes" >&6; } 19159 else 19160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19161printf "%s\n" "no" >&6; } 19162 fi 19163 ;; 19164 *) 19165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19166printf "%s\n" "no" >&6; } 19167 ;; 19168 esac 19169 fi 19170fi 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 19181 19182 19183 # Report what library types will actually be built 19184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19185printf %s "checking if libtool supports shared libraries... " >&6; } 19186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19187printf "%s\n" "$can_build_shared" >&6; } 19188 19189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19190printf %s "checking whether to build shared libraries... " >&6; } 19191 test no = "$can_build_shared" && enable_shared=no 19192 19193 # On AIX, shared libraries and static libraries use the same namespace, and 19194 # are all built from PIC. 19195 case $host_os in 19196 aix3*) 19197 test yes = "$enable_shared" && enable_static=no 19198 if test -n "$RANLIB"; then 19199 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19200 postinstall_cmds='$RANLIB $lib' 19201 fi 19202 ;; 19203 19204 aix[4-9]*) 19205 if test ia64 != "$host_cpu"; then 19206 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19207 yes,aix,yes) ;; # shared object as lib.so file only 19208 yes,svr4,*) ;; # shared object as lib.so archive member only 19209 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19210 esac 19211 fi 19212 ;; 19213 esac 19214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19215printf "%s\n" "$enable_shared" >&6; } 19216 19217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19218printf %s "checking whether to build static libraries... " >&6; } 19219 # Make sure either enable_shared or enable_static is yes. 19220 test yes = "$enable_shared" || enable_static=yes 19221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19222printf "%s\n" "$enable_static" >&6; } 19223 19224 19225 19226 19227fi 19228ac_ext=c 19229ac_cpp='$CPP $CPPFLAGS' 19230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19232ac_compiler_gnu=$ac_cv_c_compiler_gnu 19233 19234CC=$lt_save_CC 19235 19236 19237 19238 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 ac_config_commands="$ac_config_commands libtool" 19251 19252 19253 19254 19255# Only expand once: 19256 19257 19258 19259 19260 19261# Options 19262# Define a configure option for an alternate module directory 19263 19264# Check whether --with-xorg-module-dir was given. 19265if test ${with_xorg_module_dir+y} 19266then : 19267 withval=$with_xorg_module_dir; moduledir="$withval" 19268else $as_nop 19269 moduledir="$libdir/xorg/modules" 19270fi 19271 19272 19273# Store the list of server defined optional extensions in REQUIRED_MODULES 19274 19275 19276 SAVE_CFLAGS="$CFLAGS" 19277 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19279/* end confdefs.h. */ 19280 19281#include "xorg-server.h" 19282#if !defined RANDR 19283#error RANDR not defined 19284#endif 19285 19286int 19287main (void) 19288{ 19289 19290 ; 19291 return 0; 19292} 19293_ACEOF 19294if ac_fn_c_try_compile "$LINENO" 19295then : 19296 _EXT_CHECK=yes 19297else $as_nop 19298 _EXT_CHECK=no 19299fi 19300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19301 CFLAGS="$SAVE_CFLAGS" 19302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19303printf %s "checking if RANDR is defined... " >&6; } 19304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19305printf "%s\n" "$_EXT_CHECK" >&6; } 19306 if test "$_EXT_CHECK" != no; then 19307 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19308 fi 19309 19310 19311 19312 SAVE_CFLAGS="$CFLAGS" 19313 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19315/* end confdefs.h. */ 19316 19317#include "xorg-server.h" 19318#if !defined RENDER 19319#error RENDER not defined 19320#endif 19321 19322int 19323main (void) 19324{ 19325 19326 ; 19327 return 0; 19328} 19329_ACEOF 19330if ac_fn_c_try_compile "$LINENO" 19331then : 19332 _EXT_CHECK=yes 19333else $as_nop 19334 _EXT_CHECK=no 19335fi 19336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19337 CFLAGS="$SAVE_CFLAGS" 19338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19339printf %s "checking if RENDER is defined... " >&6; } 19340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19341printf "%s\n" "$_EXT_CHECK" >&6; } 19342 if test "$_EXT_CHECK" != no; then 19343 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19344 fi 19345 19346 19347 19348 SAVE_CFLAGS="$CFLAGS" 19349 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19351/* end confdefs.h. */ 19352 19353#include "xorg-server.h" 19354#if !defined XV 19355#error XV not defined 19356#endif 19357 19358int 19359main (void) 19360{ 19361 19362 ; 19363 return 0; 19364} 19365_ACEOF 19366if ac_fn_c_try_compile "$LINENO" 19367then : 19368 _EXT_CHECK=yes 19369else $as_nop 19370 _EXT_CHECK=no 19371fi 19372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19373 CFLAGS="$SAVE_CFLAGS" 19374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 19375printf %s "checking if XV is defined... " >&6; } 19376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19377printf "%s\n" "$_EXT_CHECK" >&6; } 19378 if test "$_EXT_CHECK" != no; then 19379 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 19380 fi 19381 19382 19383 19384 SAVE_CFLAGS="$CFLAGS" 19385 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19387/* end confdefs.h. */ 19388 19389#include "xorg-server.h" 19390#if !defined DPMSExtension 19391#error DPMSExtension not defined 19392#endif 19393 19394int 19395main (void) 19396{ 19397 19398 ; 19399 return 0; 19400} 19401_ACEOF 19402if ac_fn_c_try_compile "$LINENO" 19403then : 19404 _EXT_CHECK=yes 19405else $as_nop 19406 _EXT_CHECK=no 19407fi 19408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19409 CFLAGS="$SAVE_CFLAGS" 19410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 19411printf %s "checking if DPMSExtension is defined... " >&6; } 19412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19413printf "%s\n" "$_EXT_CHECK" >&6; } 19414 if test "$_EXT_CHECK" != no; then 19415 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19416 fi 19417 19418 19419# Obtain compiler/linker options for the driver dependencies 19420 19421pkg_failed=no 19422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19423printf %s "checking for XORG... " >&6; } 19424 19425if test -n "$XORG_CFLAGS"; then 19426 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19427 elif test -n "$PKG_CONFIG"; then 19428 if test -n "$PKG_CONFIG" && \ 19429 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19430 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5 19431 ac_status=$? 19432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19433 test $ac_status = 0; }; then 19434 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19435 test "x$?" != "x0" && pkg_failed=yes 19436else 19437 pkg_failed=yes 19438fi 19439 else 19440 pkg_failed=untried 19441fi 19442if test -n "$XORG_LIBS"; then 19443 pkg_cv_XORG_LIBS="$XORG_LIBS" 19444 elif test -n "$PKG_CONFIG"; then 19445 if test -n "$PKG_CONFIG" && \ 19446 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19447 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5 19448 ac_status=$? 19449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19450 test $ac_status = 0; }; then 19451 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19452 test "x$?" != "x0" && pkg_failed=yes 19453else 19454 pkg_failed=yes 19455fi 19456 else 19457 pkg_failed=untried 19458fi 19459 19460 19461 19462if test $pkg_failed = yes; then 19463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19464printf "%s\n" "no" >&6; } 19465 19466if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19467 _pkg_short_errors_supported=yes 19468else 19469 _pkg_short_errors_supported=no 19470fi 19471 if test $_pkg_short_errors_supported = yes; then 19472 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19473 else 19474 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19475 fi 19476 # Put the nasty error message in config.log where it belongs 19477 echo "$XORG_PKG_ERRORS" >&5 19478 19479 as_fn_error $? "Package requirements (xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES) were not met: 19480 19481$XORG_PKG_ERRORS 19482 19483Consider adjusting the PKG_CONFIG_PATH environment variable if you 19484installed software in a non-standard prefix. 19485 19486Alternatively, you may set the environment variables XORG_CFLAGS 19487and XORG_LIBS to avoid the need to call pkg-config. 19488See the pkg-config man page for more details." "$LINENO" 5 19489elif test $pkg_failed = untried; then 19490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19491printf "%s\n" "no" >&6; } 19492 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19493printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19494as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19495is in your PATH or set the PKG_CONFIG environment variable to the full 19496path to pkg-config. 19497 19498Alternatively, you may set the environment variables XORG_CFLAGS 19499and XORG_LIBS to avoid the need to call pkg-config. 19500See the pkg-config man page for more details. 19501 19502To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19503See \`config.log' for more details" "$LINENO" 5; } 19504else 19505 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19506 XORG_LIBS=$pkg_cv_XORG_LIBS 19507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19508printf "%s\n" "yes" >&6; } 19509 19510fi 19511 19512pkg_failed=no 19513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 19514printf %s "checking for XEXT... " >&6; } 19515 19516if test -n "$XEXT_CFLAGS"; then 19517 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 19518 elif test -n "$PKG_CONFIG"; then 19519 if test -n "$PKG_CONFIG" && \ 19520 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19521 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19522 ac_status=$? 19523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19524 test $ac_status = 0; }; then 19525 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 19526 test "x$?" != "x0" && pkg_failed=yes 19527else 19528 pkg_failed=yes 19529fi 19530 else 19531 pkg_failed=untried 19532fi 19533if test -n "$XEXT_LIBS"; then 19534 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 19535 elif test -n "$PKG_CONFIG"; then 19536 if test -n "$PKG_CONFIG" && \ 19537 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19538 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19539 ac_status=$? 19540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19541 test $ac_status = 0; }; then 19542 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 19543 test "x$?" != "x0" && pkg_failed=yes 19544else 19545 pkg_failed=yes 19546fi 19547 else 19548 pkg_failed=untried 19549fi 19550 19551 19552 19553if test $pkg_failed = yes; then 19554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19555printf "%s\n" "no" >&6; } 19556 19557if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19558 _pkg_short_errors_supported=yes 19559else 19560 _pkg_short_errors_supported=no 19561fi 19562 if test $_pkg_short_errors_supported = yes; then 19563 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19564 else 19565 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19566 fi 19567 # Put the nasty error message in config.log where it belongs 19568 echo "$XEXT_PKG_ERRORS" >&5 19569 19570 HAVE_XEXTPROTO_71="no" 19571elif test $pkg_failed = untried; then 19572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19573printf "%s\n" "no" >&6; } 19574 HAVE_XEXTPROTO_71="no" 19575else 19576 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 19577 XEXT_LIBS=$pkg_cv_XEXT_LIBS 19578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19579printf "%s\n" "yes" >&6; } 19580 HAVE_XEXTPROTO_71="yes"; 19581printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 19582 19583fi 19584 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 19585 HAVE_XEXTPROTO_71_TRUE= 19586 HAVE_XEXTPROTO_71_FALSE='#' 19587else 19588 HAVE_XEXTPROTO_71_TRUE='#' 19589 HAVE_XEXTPROTO_71_FALSE= 19590fi 19591 19592 19593# Checks for libraries. 19594 19595 19596save_CFLAGS="$CFLAGS" 19597CFLAGS="$XORG_CFLAGS" 19598 19599# PCI rework 19600ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 19601" "$ac_c_undeclared_builtin_options" "CFLAGS" 19602if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes 19603then : 19604 XSERVER_LIBPCIACCESS=yes 19605else $as_nop 19606 XSERVER_LIBPCIACCESS=no 19607fi 19608if test "x$XSERVER_LIBPCIACCESS" = "xyes"; then 19609 19610pkg_failed=no 19611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19612printf %s "checking for PCIACCESS... " >&6; } 19613 19614if test -n "$PCIACCESS_CFLAGS"; then 19615 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19616 elif test -n "$PKG_CONFIG"; then 19617 if test -n "$PKG_CONFIG" && \ 19618 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10.7\""; } >&5 19619 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10.7") 2>&5 19620 ac_status=$? 19621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19622 test $ac_status = 0; }; then 19623 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10.7" 2>/dev/null` 19624 test "x$?" != "x0" && pkg_failed=yes 19625else 19626 pkg_failed=yes 19627fi 19628 else 19629 pkg_failed=untried 19630fi 19631if test -n "$PCIACCESS_LIBS"; then 19632 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 19633 elif test -n "$PKG_CONFIG"; then 19634 if test -n "$PKG_CONFIG" && \ 19635 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10.7\""; } >&5 19636 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10.7") 2>&5 19637 ac_status=$? 19638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19639 test $ac_status = 0; }; then 19640 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10.7" 2>/dev/null` 19641 test "x$?" != "x0" && pkg_failed=yes 19642else 19643 pkg_failed=yes 19644fi 19645 else 19646 pkg_failed=untried 19647fi 19648 19649 19650 19651if test $pkg_failed = yes; then 19652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19653printf "%s\n" "no" >&6; } 19654 19655if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19656 _pkg_short_errors_supported=yes 19657else 19658 _pkg_short_errors_supported=no 19659fi 19660 if test $_pkg_short_errors_supported = yes; then 19661 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10.7" 2>&1` 19662 else 19663 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10.7" 2>&1` 19664 fi 19665 # Put the nasty error message in config.log where it belongs 19666 echo "$PCIACCESS_PKG_ERRORS" >&5 19667 19668 as_fn_error $? "Package requirements (pciaccess >= 0.10.7) were not met: 19669 19670$PCIACCESS_PKG_ERRORS 19671 19672Consider adjusting the PKG_CONFIG_PATH environment variable if you 19673installed software in a non-standard prefix. 19674 19675Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19676and PCIACCESS_LIBS to avoid the need to call pkg-config. 19677See the pkg-config man page for more details." "$LINENO" 5 19678elif test $pkg_failed = untried; then 19679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19680printf "%s\n" "no" >&6; } 19681 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19682printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19683as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19684is in your PATH or set the PKG_CONFIG environment variable to the full 19685path to pkg-config. 19686 19687Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19688and PCIACCESS_LIBS to avoid the need to call pkg-config. 19689See the pkg-config man page for more details. 19690 19691To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19692See \`config.log' for more details" "$LINENO" 5; } 19693else 19694 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 19695 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 19696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19697printf "%s\n" "yes" >&6; } 19698 19699fi 19700fi 19701 19702CFLAGS="$save_CFLAGS" 19703 19704# Check whether --enable-xaa was given. 19705if test ${enable_xaa+y} 19706then : 19707 enableval=$enable_xaa; XAA="$enableval" 19708else $as_nop 19709 XAA=auto 19710fi 19711 19712if test "x$XAA" != xno; then 19713 save_CFLAGS=$CFLAGS 19714 save_CPPFLAGS=$CPPFLAGS 19715 CFLAGS=$XORG_CFLAGS 19716 CPPFLAGS="$XORG_CFLAGS" 19717 for ac_header in xaa.h 19718do : 19719 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 19720if test "x$ac_cv_header_xaa_h" = xyes 19721then : 19722 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h 19723 XAA=yes 19724else $as_nop 19725 XAA=no 19726fi 19727 19728done 19729 CFLAGS=$save_CFLAGS 19730 CPPFLAGS=$save_CPPFLAGS 19731fi 19732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 19733printf %s "checking whether to include XAA support... " >&6; } 19734 if test "x$XAA" = xyes; then 19735 XAA_TRUE= 19736 XAA_FALSE='#' 19737else 19738 XAA_TRUE='#' 19739 XAA_FALSE= 19740fi 19741 19742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 19743printf "%s\n" "$XAA" >&6; } 19744 19745# Substitutions 19746 19747 19748DRIVER_NAME=nv 19749 19750 19751ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 19752 19753cat >confcache <<\_ACEOF 19754# This file is a shell script that caches the results of configure 19755# tests run on this system so they can be shared between configure 19756# scripts and configure runs, see configure's option --config-cache. 19757# It is not useful on other systems. If it contains results you don't 19758# want to keep, you may remove or edit it. 19759# 19760# config.status only pays attention to the cache file if you give it 19761# the --recheck option to rerun configure. 19762# 19763# `ac_cv_env_foo' variables (set or unset) will be overridden when 19764# loading this file, other *unset* `ac_cv_foo' will be assigned the 19765# following values. 19766 19767_ACEOF 19768 19769# The following way of writing the cache mishandles newlines in values, 19770# but we know of no workaround that is simple, portable, and efficient. 19771# So, we kill variables containing newlines. 19772# Ultrix sh set writes to stderr and can't be redirected directly, 19773# and sets the high bit in the cache file unless we assign to the vars. 19774( 19775 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19776 eval ac_val=\$$ac_var 19777 case $ac_val in #( 19778 *${as_nl}*) 19779 case $ac_var in #( 19780 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19781printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19782 esac 19783 case $ac_var in #( 19784 _ | IFS | as_nl) ;; #( 19785 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19786 *) { eval $ac_var=; unset $ac_var;} ;; 19787 esac ;; 19788 esac 19789 done 19790 19791 (set) 2>&1 | 19792 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19793 *${as_nl}ac_space=\ *) 19794 # `set' does not quote correctly, so add quotes: double-quote 19795 # substitution turns \\\\ into \\, and sed turns \\ into \. 19796 sed -n \ 19797 "s/'/'\\\\''/g; 19798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19799 ;; #( 19800 *) 19801 # `set' quotes correctly as required by POSIX, so do not add quotes. 19802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19803 ;; 19804 esac | 19805 sort 19806) | 19807 sed ' 19808 /^ac_cv_env_/b end 19809 t clear 19810 :clear 19811 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19812 t end 19813 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19814 :end' >>confcache 19815if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19816 if test -w "$cache_file"; then 19817 if test "x$cache_file" != "x/dev/null"; then 19818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19819printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19820 if test ! -f "$cache_file" || test -h "$cache_file"; then 19821 cat confcache >"$cache_file" 19822 else 19823 case $cache_file in #( 19824 */* | ?:*) 19825 mv -f confcache "$cache_file"$$ && 19826 mv -f "$cache_file"$$ "$cache_file" ;; #( 19827 *) 19828 mv -f confcache "$cache_file" ;; 19829 esac 19830 fi 19831 fi 19832 else 19833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19834printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19835 fi 19836fi 19837rm -f confcache 19838 19839test "x$prefix" = xNONE && prefix=$ac_default_prefix 19840# Let make expand exec_prefix. 19841test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19842 19843DEFS=-DHAVE_CONFIG_H 19844 19845ac_libobjs= 19846ac_ltlibobjs= 19847U= 19848for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19849 # 1. Remove the extension, and $U if already installed. 19850 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19851 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19852 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19853 # will be set to the directory where LIBOBJS objects are built. 19854 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19855 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19856done 19857LIBOBJS=$ac_libobjs 19858 19859LTLIBOBJS=$ac_ltlibobjs 19860 19861 19862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19863printf %s "checking that generated files are newer than configure... " >&6; } 19864 if test -n "$am_sleep_pid"; then 19865 # Hide warnings about reused PIDs. 19866 wait $am_sleep_pid 2>/dev/null 19867 fi 19868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19869printf "%s\n" "done" >&6; } 19870if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19871 as_fn_error $? "conditional \"AMDEP\" was never defined. 19872Usually this means the macro was only invoked conditionally." "$LINENO" 5 19873fi 19874if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19875 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19876Usually this means the macro was only invoked conditionally." "$LINENO" 5 19877fi 19878 if test -n "$EXEEXT"; then 19879 am__EXEEXT_TRUE= 19880 am__EXEEXT_FALSE='#' 19881else 19882 am__EXEEXT_TRUE='#' 19883 am__EXEEXT_FALSE= 19884fi 19885 19886if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 19887 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 19888Usually this means the macro was only invoked conditionally." "$LINENO" 5 19889fi 19890if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 19891 as_fn_error $? "conditional \"XAA\" was never defined. 19892Usually this means the macro was only invoked conditionally." "$LINENO" 5 19893fi 19894 19895: "${CONFIG_STATUS=./config.status}" 19896ac_write_fail=0 19897ac_clean_files_save=$ac_clean_files 19898ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19900printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19901as_write_fail=0 19902cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19903#! $SHELL 19904# Generated by $as_me. 19905# Run this file to recreate the current configuration. 19906# Compiler output produced by configure, useful for debugging 19907# configure, is in config.log if it exists. 19908 19909debug=false 19910ac_cs_recheck=false 19911ac_cs_silent=false 19912 19913SHELL=\${CONFIG_SHELL-$SHELL} 19914export SHELL 19915_ASEOF 19916cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19917## -------------------- ## 19918## M4sh Initialization. ## 19919## -------------------- ## 19920 19921# Be more Bourne compatible 19922DUALCASE=1; export DUALCASE # for MKS sh 19923as_nop=: 19924if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19925then : 19926 emulate sh 19927 NULLCMD=: 19928 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19929 # is contrary to our usage. Disable this feature. 19930 alias -g '${1+"$@"}'='"$@"' 19931 setopt NO_GLOB_SUBST 19932else $as_nop 19933 case `(set -o) 2>/dev/null` in #( 19934 *posix*) : 19935 set -o posix ;; #( 19936 *) : 19937 ;; 19938esac 19939fi 19940 19941 19942 19943# Reset variables that may have inherited troublesome values from 19944# the environment. 19945 19946# IFS needs to be set, to space, tab, and newline, in precisely that order. 19947# (If _AS_PATH_WALK were called with IFS unset, it would have the 19948# side effect of setting IFS to empty, thus disabling word splitting.) 19949# Quoting is to prevent editors from complaining about space-tab. 19950as_nl=' 19951' 19952export as_nl 19953IFS=" "" $as_nl" 19954 19955PS1='$ ' 19956PS2='> ' 19957PS4='+ ' 19958 19959# Ensure predictable behavior from utilities with locale-dependent output. 19960LC_ALL=C 19961export LC_ALL 19962LANGUAGE=C 19963export LANGUAGE 19964 19965# We cannot yet rely on "unset" to work, but we need these variables 19966# to be unset--not just set to an empty or harmless value--now, to 19967# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19968# also avoids known problems related to "unset" and subshell syntax 19969# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19970for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19971do eval test \${$as_var+y} \ 19972 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19973done 19974 19975# Ensure that fds 0, 1, and 2 are open. 19976if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19977if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19978if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19979 19980# The user is always right. 19981if ${PATH_SEPARATOR+false} :; then 19982 PATH_SEPARATOR=: 19983 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19984 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19985 PATH_SEPARATOR=';' 19986 } 19987fi 19988 19989 19990# Find who we are. Look in the path if we contain no directory separator. 19991as_myself= 19992case $0 in #(( 19993 *[\\/]* ) as_myself=$0 ;; 19994 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19995for as_dir in $PATH 19996do 19997 IFS=$as_save_IFS 19998 case $as_dir in #((( 19999 '') as_dir=./ ;; 20000 */) ;; 20001 *) as_dir=$as_dir/ ;; 20002 esac 20003 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20004 done 20005IFS=$as_save_IFS 20006 20007 ;; 20008esac 20009# We did not find ourselves, most probably we were run as `sh COMMAND' 20010# in which case we are not to be found in the path. 20011if test "x$as_myself" = x; then 20012 as_myself=$0 20013fi 20014if test ! -f "$as_myself"; then 20015 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20016 exit 1 20017fi 20018 20019 20020 20021# as_fn_error STATUS ERROR [LINENO LOG_FD] 20022# ---------------------------------------- 20023# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20024# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20025# script with STATUS, using 1 if that was 0. 20026as_fn_error () 20027{ 20028 as_status=$1; test $as_status -eq 0 && as_status=1 20029 if test "$4"; then 20030 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20032 fi 20033 printf "%s\n" "$as_me: error: $2" >&2 20034 as_fn_exit $as_status 20035} # as_fn_error 20036 20037 20038 20039# as_fn_set_status STATUS 20040# ----------------------- 20041# Set $? to STATUS, without forking. 20042as_fn_set_status () 20043{ 20044 return $1 20045} # as_fn_set_status 20046 20047# as_fn_exit STATUS 20048# ----------------- 20049# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20050as_fn_exit () 20051{ 20052 set +e 20053 as_fn_set_status $1 20054 exit $1 20055} # as_fn_exit 20056 20057# as_fn_unset VAR 20058# --------------- 20059# Portably unset VAR. 20060as_fn_unset () 20061{ 20062 { eval $1=; unset $1;} 20063} 20064as_unset=as_fn_unset 20065 20066# as_fn_append VAR VALUE 20067# ---------------------- 20068# Append the text in VALUE to the end of the definition contained in VAR. Take 20069# advantage of any shell optimizations that allow amortized linear growth over 20070# repeated appends, instead of the typical quadratic growth present in naive 20071# implementations. 20072if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20073then : 20074 eval 'as_fn_append () 20075 { 20076 eval $1+=\$2 20077 }' 20078else $as_nop 20079 as_fn_append () 20080 { 20081 eval $1=\$$1\$2 20082 } 20083fi # as_fn_append 20084 20085# as_fn_arith ARG... 20086# ------------------ 20087# Perform arithmetic evaluation on the ARGs, and store the result in the 20088# global $as_val. Take advantage of shells that can avoid forks. The arguments 20089# must be portable across $(()) and expr. 20090if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20091then : 20092 eval 'as_fn_arith () 20093 { 20094 as_val=$(( $* )) 20095 }' 20096else $as_nop 20097 as_fn_arith () 20098 { 20099 as_val=`expr "$@" || test $? -eq 1` 20100 } 20101fi # as_fn_arith 20102 20103 20104if expr a : '\(a\)' >/dev/null 2>&1 && 20105 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20106 as_expr=expr 20107else 20108 as_expr=false 20109fi 20110 20111if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20112 as_basename=basename 20113else 20114 as_basename=false 20115fi 20116 20117if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20118 as_dirname=dirname 20119else 20120 as_dirname=false 20121fi 20122 20123as_me=`$as_basename -- "$0" || 20124$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20125 X"$0" : 'X\(//\)$' \| \ 20126 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20127printf "%s\n" X/"$0" | 20128 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20129 s//\1/ 20130 q 20131 } 20132 /^X\/\(\/\/\)$/{ 20133 s//\1/ 20134 q 20135 } 20136 /^X\/\(\/\).*/{ 20137 s//\1/ 20138 q 20139 } 20140 s/.*/./; q'` 20141 20142# Avoid depending upon Character Ranges. 20143as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20144as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20145as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20146as_cr_digits='0123456789' 20147as_cr_alnum=$as_cr_Letters$as_cr_digits 20148 20149 20150# Determine whether it's possible to make 'echo' print without a newline. 20151# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20152# for compatibility with existing Makefiles. 20153ECHO_C= ECHO_N= ECHO_T= 20154case `echo -n x` in #((((( 20155-n*) 20156 case `echo 'xy\c'` in 20157 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20158 xy) ECHO_C='\c';; 20159 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20160 ECHO_T=' ';; 20161 esac;; 20162*) 20163 ECHO_N='-n';; 20164esac 20165 20166# For backward compatibility with old third-party macros, we provide 20167# the shell variables $as_echo and $as_echo_n. New code should use 20168# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20169as_echo='printf %s\n' 20170as_echo_n='printf %s' 20171 20172rm -f conf$$ conf$$.exe conf$$.file 20173if test -d conf$$.dir; then 20174 rm -f conf$$.dir/conf$$.file 20175else 20176 rm -f conf$$.dir 20177 mkdir conf$$.dir 2>/dev/null 20178fi 20179if (echo >conf$$.file) 2>/dev/null; then 20180 if ln -s conf$$.file conf$$ 2>/dev/null; then 20181 as_ln_s='ln -s' 20182 # ... but there are two gotchas: 20183 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20184 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20185 # In both cases, we have to default to `cp -pR'. 20186 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20187 as_ln_s='cp -pR' 20188 elif ln conf$$.file conf$$ 2>/dev/null; then 20189 as_ln_s=ln 20190 else 20191 as_ln_s='cp -pR' 20192 fi 20193else 20194 as_ln_s='cp -pR' 20195fi 20196rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20197rmdir conf$$.dir 2>/dev/null 20198 20199 20200# as_fn_mkdir_p 20201# ------------- 20202# Create "$as_dir" as a directory, including parents if necessary. 20203as_fn_mkdir_p () 20204{ 20205 20206 case $as_dir in #( 20207 -*) as_dir=./$as_dir;; 20208 esac 20209 test -d "$as_dir" || eval $as_mkdir_p || { 20210 as_dirs= 20211 while :; do 20212 case $as_dir in #( 20213 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20214 *) as_qdir=$as_dir;; 20215 esac 20216 as_dirs="'$as_qdir' $as_dirs" 20217 as_dir=`$as_dirname -- "$as_dir" || 20218$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20219 X"$as_dir" : 'X\(//\)[^/]' \| \ 20220 X"$as_dir" : 'X\(//\)$' \| \ 20221 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20222printf "%s\n" X"$as_dir" | 20223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20224 s//\1/ 20225 q 20226 } 20227 /^X\(\/\/\)[^/].*/{ 20228 s//\1/ 20229 q 20230 } 20231 /^X\(\/\/\)$/{ 20232 s//\1/ 20233 q 20234 } 20235 /^X\(\/\).*/{ 20236 s//\1/ 20237 q 20238 } 20239 s/.*/./; q'` 20240 test -d "$as_dir" && break 20241 done 20242 test -z "$as_dirs" || eval "mkdir $as_dirs" 20243 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20244 20245 20246} # as_fn_mkdir_p 20247if mkdir -p . 2>/dev/null; then 20248 as_mkdir_p='mkdir -p "$as_dir"' 20249else 20250 test -d ./-p && rmdir ./-p 20251 as_mkdir_p=false 20252fi 20253 20254 20255# as_fn_executable_p FILE 20256# ----------------------- 20257# Test if FILE is an executable regular file. 20258as_fn_executable_p () 20259{ 20260 test -f "$1" && test -x "$1" 20261} # as_fn_executable_p 20262as_test_x='test -x' 20263as_executable_p=as_fn_executable_p 20264 20265# Sed expression to map a string onto a valid CPP name. 20266as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20267 20268# Sed expression to map a string onto a valid variable name. 20269as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20270 20271 20272exec 6>&1 20273## ----------------------------------- ## 20274## Main body of $CONFIG_STATUS script. ## 20275## ----------------------------------- ## 20276_ASEOF 20277test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20278 20279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20280# Save the log message, to keep $0 and so on meaningful, and to 20281# report actual input values of CONFIG_FILES etc. instead of their 20282# values after options handling. 20283ac_log=" 20284This file was extended by xf86-video-nv $as_me 2.1.22, which was 20285generated by GNU Autoconf 2.71. Invocation command line was 20286 20287 CONFIG_FILES = $CONFIG_FILES 20288 CONFIG_HEADERS = $CONFIG_HEADERS 20289 CONFIG_LINKS = $CONFIG_LINKS 20290 CONFIG_COMMANDS = $CONFIG_COMMANDS 20291 $ $0 $@ 20292 20293on `(hostname || uname -n) 2>/dev/null | sed 1q` 20294" 20295 20296_ACEOF 20297 20298case $ac_config_files in *" 20299"*) set x $ac_config_files; shift; ac_config_files=$*;; 20300esac 20301 20302case $ac_config_headers in *" 20303"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20304esac 20305 20306 20307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20308# Files that config.status was made for. 20309config_files="$ac_config_files" 20310config_headers="$ac_config_headers" 20311config_commands="$ac_config_commands" 20312 20313_ACEOF 20314 20315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20316ac_cs_usage="\ 20317\`$as_me' instantiates files and other configuration actions 20318from templates according to the current configuration. Unless the files 20319and actions are specified as TAGs, all are instantiated by default. 20320 20321Usage: $0 [OPTION]... [TAG]... 20322 20323 -h, --help print this help, then exit 20324 -V, --version print version number and configuration settings, then exit 20325 --config print configuration, then exit 20326 -q, --quiet, --silent 20327 do not print progress messages 20328 -d, --debug don't remove temporary files 20329 --recheck update $as_me by reconfiguring in the same conditions 20330 --file=FILE[:TEMPLATE] 20331 instantiate the configuration file FILE 20332 --header=FILE[:TEMPLATE] 20333 instantiate the configuration header FILE 20334 20335Configuration files: 20336$config_files 20337 20338Configuration headers: 20339$config_headers 20340 20341Configuration commands: 20342$config_commands 20343 20344Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/issues>." 20345 20346_ACEOF 20347ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20348ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20350ac_cs_config='$ac_cs_config_escaped' 20351ac_cs_version="\\ 20352xf86-video-nv config.status 2.1.22 20353configured by $0, generated by GNU Autoconf 2.71, 20354 with options \\"\$ac_cs_config\\" 20355 20356Copyright (C) 2021 Free Software Foundation, Inc. 20357This config.status script is free software; the Free Software Foundation 20358gives unlimited permission to copy, distribute and modify it." 20359 20360ac_pwd='$ac_pwd' 20361srcdir='$srcdir' 20362INSTALL='$INSTALL' 20363MKDIR_P='$MKDIR_P' 20364AWK='$AWK' 20365test -n "\$AWK" || AWK=awk 20366_ACEOF 20367 20368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20369# The default lists apply if the user does not specify any file. 20370ac_need_defaults=: 20371while test $# != 0 20372do 20373 case $1 in 20374 --*=?*) 20375 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20376 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20377 ac_shift=: 20378 ;; 20379 --*=) 20380 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20381 ac_optarg= 20382 ac_shift=: 20383 ;; 20384 *) 20385 ac_option=$1 20386 ac_optarg=$2 20387 ac_shift=shift 20388 ;; 20389 esac 20390 20391 case $ac_option in 20392 # Handling of the options. 20393 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20394 ac_cs_recheck=: ;; 20395 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20396 printf "%s\n" "$ac_cs_version"; exit ;; 20397 --config | --confi | --conf | --con | --co | --c ) 20398 printf "%s\n" "$ac_cs_config"; exit ;; 20399 --debug | --debu | --deb | --de | --d | -d ) 20400 debug=: ;; 20401 --file | --fil | --fi | --f ) 20402 $ac_shift 20403 case $ac_optarg in 20404 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20405 '') as_fn_error $? "missing file argument" ;; 20406 esac 20407 as_fn_append CONFIG_FILES " '$ac_optarg'" 20408 ac_need_defaults=false;; 20409 --header | --heade | --head | --hea ) 20410 $ac_shift 20411 case $ac_optarg in 20412 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20413 esac 20414 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20415 ac_need_defaults=false;; 20416 --he | --h) 20417 # Conflict between --help and --header 20418 as_fn_error $? "ambiguous option: \`$1' 20419Try \`$0 --help' for more information.";; 20420 --help | --hel | -h ) 20421 printf "%s\n" "$ac_cs_usage"; exit ;; 20422 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20423 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20424 ac_cs_silent=: ;; 20425 20426 # This is an error. 20427 -*) as_fn_error $? "unrecognized option: \`$1' 20428Try \`$0 --help' for more information." ;; 20429 20430 *) as_fn_append ac_config_targets " $1" 20431 ac_need_defaults=false ;; 20432 20433 esac 20434 shift 20435done 20436 20437ac_configure_extra_args= 20438 20439if $ac_cs_silent; then 20440 exec 6>/dev/null 20441 ac_configure_extra_args="$ac_configure_extra_args --silent" 20442fi 20443 20444_ACEOF 20445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20446if \$ac_cs_recheck; then 20447 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20448 shift 20449 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20450 CONFIG_SHELL='$SHELL' 20451 export CONFIG_SHELL 20452 exec "\$@" 20453fi 20454 20455_ACEOF 20456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20457exec 5>>config.log 20458{ 20459 echo 20460 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20461## Running $as_me. ## 20462_ASBOX 20463 printf "%s\n" "$ac_log" 20464} >&5 20465 20466_ACEOF 20467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20468# 20469# INIT-COMMANDS 20470# 20471AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20472 20473 20474# The HP-UX ksh and POSIX shell print the target directory to stdout 20475# if CDPATH is set. 20476(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20477 20478sed_quote_subst='$sed_quote_subst' 20479double_quote_subst='$double_quote_subst' 20480delay_variable_subst='$delay_variable_subst' 20481enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20482macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20483macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20484enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20485pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20486enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20487shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20488SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20489ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20490PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20491host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20492host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20493host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20494build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20495build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20496build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20497SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20498Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20499GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20500EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20501FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20502LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20503NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20504LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20505max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20506ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20507exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20508lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20509lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20510lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20511lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20512lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20513reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20514reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20515FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20516OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20517deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20518file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20519file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20520want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20521DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20522sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20523AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20524lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20525AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20526archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20527STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20528RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20529old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20530old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20531old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20532lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20533CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20534CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20535compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20536GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20537lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20538lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20539lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20540lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20541lt_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"`' 20542lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20543nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20544lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20545lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20546objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20547MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20548lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20549lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20550lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20551lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20552lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20553need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20554MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20555DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20556NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20557LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20558OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20559OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20560libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20561shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20562extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20563archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20564enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20565export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20566whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20567compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20568old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20569old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20570archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20571archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20572module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20573module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20574with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20575allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20576no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20577hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20578hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20579hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20580hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20581hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20582hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20583hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20584inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20585link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20586always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20587export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20588exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20589include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20590prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20591postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20592file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20593variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20594need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20595need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20596version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20597runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20598shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20599shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20600libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20601library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20602soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20603install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20604postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20605postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20606finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20607finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20608hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20609sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20610configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20611configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20612hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20613enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20614enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20615enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20616old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20617striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20618 20619LTCC='$LTCC' 20620LTCFLAGS='$LTCFLAGS' 20621compiler='$compiler_DEFAULT' 20622 20623# A function that is used when there is no print builtin or printf. 20624func_fallback_echo () 20625{ 20626 eval 'cat <<_LTECHO_EOF 20627\$1 20628_LTECHO_EOF' 20629} 20630 20631# Quote evaled strings. 20632for var in SHELL \ 20633ECHO \ 20634PATH_SEPARATOR \ 20635SED \ 20636GREP \ 20637EGREP \ 20638FGREP \ 20639LD \ 20640NM \ 20641LN_S \ 20642lt_SP2NL \ 20643lt_NL2SP \ 20644reload_flag \ 20645FILECMD \ 20646OBJDUMP \ 20647deplibs_check_method \ 20648file_magic_cmd \ 20649file_magic_glob \ 20650want_nocaseglob \ 20651DLLTOOL \ 20652sharedlib_from_linklib_cmd \ 20653AR \ 20654archiver_list_spec \ 20655STRIP \ 20656RANLIB \ 20657CC \ 20658CFLAGS \ 20659compiler \ 20660lt_cv_sys_global_symbol_pipe \ 20661lt_cv_sys_global_symbol_to_cdecl \ 20662lt_cv_sys_global_symbol_to_import \ 20663lt_cv_sys_global_symbol_to_c_name_address \ 20664lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20665lt_cv_nm_interface \ 20666nm_file_list_spec \ 20667lt_cv_truncate_bin \ 20668lt_prog_compiler_no_builtin_flag \ 20669lt_prog_compiler_pic \ 20670lt_prog_compiler_wl \ 20671lt_prog_compiler_static \ 20672lt_cv_prog_compiler_c_o \ 20673need_locks \ 20674MANIFEST_TOOL \ 20675DSYMUTIL \ 20676NMEDIT \ 20677LIPO \ 20678OTOOL \ 20679OTOOL64 \ 20680shrext_cmds \ 20681export_dynamic_flag_spec \ 20682whole_archive_flag_spec \ 20683compiler_needs_object \ 20684with_gnu_ld \ 20685allow_undefined_flag \ 20686no_undefined_flag \ 20687hardcode_libdir_flag_spec \ 20688hardcode_libdir_separator \ 20689exclude_expsyms \ 20690include_expsyms \ 20691file_list_spec \ 20692variables_saved_for_relink \ 20693libname_spec \ 20694library_names_spec \ 20695soname_spec \ 20696install_override_mode \ 20697finish_eval \ 20698old_striplib \ 20699striplib; do 20700 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20701 *[\\\\\\\`\\"\\\$]*) 20702 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20703 ;; 20704 *) 20705 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20706 ;; 20707 esac 20708done 20709 20710# Double-quote double-evaled strings. 20711for var in reload_cmds \ 20712old_postinstall_cmds \ 20713old_postuninstall_cmds \ 20714old_archive_cmds \ 20715extract_expsyms_cmds \ 20716old_archive_from_new_cmds \ 20717old_archive_from_expsyms_cmds \ 20718archive_cmds \ 20719archive_expsym_cmds \ 20720module_cmds \ 20721module_expsym_cmds \ 20722export_symbols_cmds \ 20723prelink_cmds \ 20724postlink_cmds \ 20725postinstall_cmds \ 20726postuninstall_cmds \ 20727finish_cmds \ 20728sys_lib_search_path_spec \ 20729configure_time_dlsearch_path \ 20730configure_time_lt_sys_library_path; do 20731 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20732 *[\\\\\\\`\\"\\\$]*) 20733 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20734 ;; 20735 *) 20736 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20737 ;; 20738 esac 20739done 20740 20741ac_aux_dir='$ac_aux_dir' 20742 20743# See if we are running on zsh, and set the options that allow our 20744# commands through without removal of \ escapes INIT. 20745if test -n "\${ZSH_VERSION+set}"; then 20746 setopt NO_GLOB_SUBST 20747fi 20748 20749 20750 PACKAGE='$PACKAGE' 20751 VERSION='$VERSION' 20752 RM='$RM' 20753 ofile='$ofile' 20754 20755 20756 20757 20758_ACEOF 20759 20760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20761 20762# Handling of arguments. 20763for ac_config_target in $ac_config_targets 20764do 20765 case $ac_config_target in 20766 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20767 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20768 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20769 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20770 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20771 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20772 20773 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20774 esac 20775done 20776 20777 20778# If the user did not use the arguments to specify the items to instantiate, 20779# then the envvar interface is used. Set only those that are not. 20780# We use the long form for the default assignment because of an extremely 20781# bizarre bug on SunOS 4.1.3. 20782if $ac_need_defaults; then 20783 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20784 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20785 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20786fi 20787 20788# Have a temporary directory for convenience. Make it in the build tree 20789# simply because there is no reason against having it here, and in addition, 20790# creating and moving files from /tmp can sometimes cause problems. 20791# Hook for its removal unless debugging. 20792# Note that there is a small window in which the directory will not be cleaned: 20793# after its creation but before its name has been assigned to `$tmp'. 20794$debug || 20795{ 20796 tmp= ac_tmp= 20797 trap 'exit_status=$? 20798 : "${ac_tmp:=$tmp}" 20799 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20800' 0 20801 trap 'as_fn_exit 1' 1 2 13 15 20802} 20803# Create a (secure) tmp directory for tmp files. 20804 20805{ 20806 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20807 test -d "$tmp" 20808} || 20809{ 20810 tmp=./conf$$-$RANDOM 20811 (umask 077 && mkdir "$tmp") 20812} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20813ac_tmp=$tmp 20814 20815# Set up the scripts for CONFIG_FILES section. 20816# No need to generate them if there are no CONFIG_FILES. 20817# This happens for instance with `./config.status config.h'. 20818if test -n "$CONFIG_FILES"; then 20819 20820 20821ac_cr=`echo X | tr X '\015'` 20822# On cygwin, bash can eat \r inside `` if the user requested igncr. 20823# But we know of no other shell where ac_cr would be empty at this 20824# point, so we can use a bashism as a fallback. 20825if test "x$ac_cr" = x; then 20826 eval ac_cr=\$\'\\r\' 20827fi 20828ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20829if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20830 ac_cs_awk_cr='\\r' 20831else 20832 ac_cs_awk_cr=$ac_cr 20833fi 20834 20835echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20836_ACEOF 20837 20838 20839{ 20840 echo "cat >conf$$subs.awk <<_ACEOF" && 20841 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20842 echo "_ACEOF" 20843} >conf$$subs.sh || 20844 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20845ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20846ac_delim='%!_!# ' 20847for ac_last_try in false false false false false :; do 20848 . ./conf$$subs.sh || 20849 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20850 20851 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20852 if test $ac_delim_n = $ac_delim_num; then 20853 break 20854 elif $ac_last_try; then 20855 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20856 else 20857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20858 fi 20859done 20860rm -f conf$$subs.sh 20861 20862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20863cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20864_ACEOF 20865sed -n ' 20866h 20867s/^/S["/; s/!.*/"]=/ 20868p 20869g 20870s/^[^!]*!// 20871:repl 20872t repl 20873s/'"$ac_delim"'$// 20874t delim 20875:nl 20876h 20877s/\(.\{148\}\)..*/\1/ 20878t more1 20879s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20880p 20881n 20882b repl 20883:more1 20884s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20885p 20886g 20887s/.\{148\}// 20888t nl 20889:delim 20890h 20891s/\(.\{148\}\)..*/\1/ 20892t more2 20893s/["\\]/\\&/g; s/^/"/; s/$/"/ 20894p 20895b 20896:more2 20897s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20898p 20899g 20900s/.\{148\}// 20901t delim 20902' <conf$$subs.awk | sed ' 20903/^[^""]/{ 20904 N 20905 s/\n// 20906} 20907' >>$CONFIG_STATUS || ac_write_fail=1 20908rm -f conf$$subs.awk 20909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20910_ACAWK 20911cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20912 for (key in S) S_is_set[key] = 1 20913 FS = "" 20914 20915} 20916{ 20917 line = $ 0 20918 nfields = split(line, field, "@") 20919 substed = 0 20920 len = length(field[1]) 20921 for (i = 2; i < nfields; i++) { 20922 key = field[i] 20923 keylen = length(key) 20924 if (S_is_set[key]) { 20925 value = S[key] 20926 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20927 len += length(value) + length(field[++i]) 20928 substed = 1 20929 } else 20930 len += 1 + keylen 20931 } 20932 20933 print line 20934} 20935 20936_ACAWK 20937_ACEOF 20938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20939if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20940 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20941else 20942 cat 20943fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20944 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20945_ACEOF 20946 20947# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20948# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20949# trailing colons and then remove the whole line if VPATH becomes empty 20950# (actually we leave an empty line to preserve line numbers). 20951if test "x$srcdir" = x.; then 20952 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20953h 20954s/// 20955s/^/:/ 20956s/[ ]*$/:/ 20957s/:\$(srcdir):/:/g 20958s/:\${srcdir}:/:/g 20959s/:@srcdir@:/:/g 20960s/^:*// 20961s/:*$// 20962x 20963s/\(=[ ]*\).*/\1/ 20964G 20965s/\n// 20966s/^[^=]*=[ ]*$// 20967}' 20968fi 20969 20970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20971fi # test -n "$CONFIG_FILES" 20972 20973# Set up the scripts for CONFIG_HEADERS section. 20974# No need to generate them if there are no CONFIG_HEADERS. 20975# This happens for instance with `./config.status Makefile'. 20976if test -n "$CONFIG_HEADERS"; then 20977cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20978BEGIN { 20979_ACEOF 20980 20981# Transform confdefs.h into an awk script `defines.awk', embedded as 20982# here-document in config.status, that substitutes the proper values into 20983# config.h.in to produce config.h. 20984 20985# Create a delimiter string that does not exist in confdefs.h, to ease 20986# handling of long lines. 20987ac_delim='%!_!# ' 20988for ac_last_try in false false :; do 20989 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20990 if test -z "$ac_tt"; then 20991 break 20992 elif $ac_last_try; then 20993 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20994 else 20995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20996 fi 20997done 20998 20999# For the awk script, D is an array of macro values keyed by name, 21000# likewise P contains macro parameters if any. Preserve backslash 21001# newline sequences. 21002 21003ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21004sed -n ' 21005s/.\{148\}/&'"$ac_delim"'/g 21006t rset 21007:rset 21008s/^[ ]*#[ ]*define[ ][ ]*/ / 21009t def 21010d 21011:def 21012s/\\$// 21013t bsnl 21014s/["\\]/\\&/g 21015s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21016D["\1"]=" \3"/p 21017s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21018d 21019:bsnl 21020s/["\\]/\\&/g 21021s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21022D["\1"]=" \3\\\\\\n"\\/p 21023t cont 21024s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21025t cont 21026d 21027:cont 21028n 21029s/.\{148\}/&'"$ac_delim"'/g 21030t clear 21031:clear 21032s/\\$// 21033t bsnlc 21034s/["\\]/\\&/g; s/^/"/; s/$/"/p 21035d 21036:bsnlc 21037s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21038b cont 21039' <confdefs.h | sed ' 21040s/'"$ac_delim"'/"\\\ 21041"/g' >>$CONFIG_STATUS || ac_write_fail=1 21042 21043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21044 for (key in D) D_is_set[key] = 1 21045 FS = "" 21046} 21047/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21048 line = \$ 0 21049 split(line, arg, " ") 21050 if (arg[1] == "#") { 21051 defundef = arg[2] 21052 mac1 = arg[3] 21053 } else { 21054 defundef = substr(arg[1], 2) 21055 mac1 = arg[2] 21056 } 21057 split(mac1, mac2, "(") #) 21058 macro = mac2[1] 21059 prefix = substr(line, 1, index(line, defundef) - 1) 21060 if (D_is_set[macro]) { 21061 # Preserve the white space surrounding the "#". 21062 print prefix "define", macro P[macro] D[macro] 21063 next 21064 } else { 21065 # Replace #undef with comments. This is necessary, for example, 21066 # in the case of _POSIX_SOURCE, which is predefined and required 21067 # on some systems where configure will not decide to define it. 21068 if (defundef == "undef") { 21069 print "/*", prefix defundef, macro, "*/" 21070 next 21071 } 21072 } 21073} 21074{ print } 21075_ACAWK 21076_ACEOF 21077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21078 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21079fi # test -n "$CONFIG_HEADERS" 21080 21081 21082eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21083shift 21084for ac_tag 21085do 21086 case $ac_tag in 21087 :[FHLC]) ac_mode=$ac_tag; continue;; 21088 esac 21089 case $ac_mode$ac_tag in 21090 :[FHL]*:*);; 21091 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21092 :[FH]-) ac_tag=-:-;; 21093 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21094 esac 21095 ac_save_IFS=$IFS 21096 IFS=: 21097 set x $ac_tag 21098 IFS=$ac_save_IFS 21099 shift 21100 ac_file=$1 21101 shift 21102 21103 case $ac_mode in 21104 :L) ac_source=$1;; 21105 :[FH]) 21106 ac_file_inputs= 21107 for ac_f 21108 do 21109 case $ac_f in 21110 -) ac_f="$ac_tmp/stdin";; 21111 *) # Look for the file first in the build tree, then in the source tree 21112 # (if the path is not absolute). The absolute path cannot be DOS-style, 21113 # because $ac_f cannot contain `:'. 21114 test -f "$ac_f" || 21115 case $ac_f in 21116 [\\/$]*) false;; 21117 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21118 esac || 21119 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21120 esac 21121 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21122 as_fn_append ac_file_inputs " '$ac_f'" 21123 done 21124 21125 # Let's still pretend it is `configure' which instantiates (i.e., don't 21126 # use $as_me), people would be surprised to read: 21127 # /* config.h. Generated by config.status. */ 21128 configure_input='Generated from '` 21129 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21130 `' by configure.' 21131 if test x"$ac_file" != x-; then 21132 configure_input="$ac_file. $configure_input" 21133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21134printf "%s\n" "$as_me: creating $ac_file" >&6;} 21135 fi 21136 # Neutralize special characters interpreted by sed in replacement strings. 21137 case $configure_input in #( 21138 *\&* | *\|* | *\\* ) 21139 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21140 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21141 *) ac_sed_conf_input=$configure_input;; 21142 esac 21143 21144 case $ac_tag in 21145 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21147 esac 21148 ;; 21149 esac 21150 21151 ac_dir=`$as_dirname -- "$ac_file" || 21152$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21153 X"$ac_file" : 'X\(//\)[^/]' \| \ 21154 X"$ac_file" : 'X\(//\)$' \| \ 21155 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21156printf "%s\n" X"$ac_file" | 21157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21158 s//\1/ 21159 q 21160 } 21161 /^X\(\/\/\)[^/].*/{ 21162 s//\1/ 21163 q 21164 } 21165 /^X\(\/\/\)$/{ 21166 s//\1/ 21167 q 21168 } 21169 /^X\(\/\).*/{ 21170 s//\1/ 21171 q 21172 } 21173 s/.*/./; q'` 21174 as_dir="$ac_dir"; as_fn_mkdir_p 21175 ac_builddir=. 21176 21177case "$ac_dir" in 21178.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21179*) 21180 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21181 # A ".." for each directory in $ac_dir_suffix. 21182 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21183 case $ac_top_builddir_sub in 21184 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21185 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21186 esac ;; 21187esac 21188ac_abs_top_builddir=$ac_pwd 21189ac_abs_builddir=$ac_pwd$ac_dir_suffix 21190# for backward compatibility: 21191ac_top_builddir=$ac_top_build_prefix 21192 21193case $srcdir in 21194 .) # We are building in place. 21195 ac_srcdir=. 21196 ac_top_srcdir=$ac_top_builddir_sub 21197 ac_abs_top_srcdir=$ac_pwd ;; 21198 [\\/]* | ?:[\\/]* ) # Absolute name. 21199 ac_srcdir=$srcdir$ac_dir_suffix; 21200 ac_top_srcdir=$srcdir 21201 ac_abs_top_srcdir=$srcdir ;; 21202 *) # Relative name. 21203 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21204 ac_top_srcdir=$ac_top_build_prefix$srcdir 21205 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21206esac 21207ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21208 21209 21210 case $ac_mode in 21211 :F) 21212 # 21213 # CONFIG_FILE 21214 # 21215 21216 case $INSTALL in 21217 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21218 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21219 esac 21220 ac_MKDIR_P=$MKDIR_P 21221 case $MKDIR_P in 21222 [\\/$]* | ?:[\\/]* ) ;; 21223 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21224 esac 21225_ACEOF 21226 21227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21228# If the template does not know about datarootdir, expand it. 21229# FIXME: This hack should be removed a few years after 2.60. 21230ac_datarootdir_hack=; ac_datarootdir_seen= 21231ac_sed_dataroot=' 21232/datarootdir/ { 21233 p 21234 q 21235} 21236/@datadir@/p 21237/@docdir@/p 21238/@infodir@/p 21239/@localedir@/p 21240/@mandir@/p' 21241case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21242*datarootdir*) ac_datarootdir_seen=yes;; 21243*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21245printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21246_ACEOF 21247cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21248 ac_datarootdir_hack=' 21249 s&@datadir@&$datadir&g 21250 s&@docdir@&$docdir&g 21251 s&@infodir@&$infodir&g 21252 s&@localedir@&$localedir&g 21253 s&@mandir@&$mandir&g 21254 s&\\\${datarootdir}&$datarootdir&g' ;; 21255esac 21256_ACEOF 21257 21258# Neutralize VPATH when `$srcdir' = `.'. 21259# Shell code in configure.ac might set extrasub. 21260# FIXME: do we really want to maintain this feature? 21261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21262ac_sed_extra="$ac_vpsub 21263$extrasub 21264_ACEOF 21265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21266:t 21267/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21268s|@configure_input@|$ac_sed_conf_input|;t t 21269s&@top_builddir@&$ac_top_builddir_sub&;t t 21270s&@top_build_prefix@&$ac_top_build_prefix&;t t 21271s&@srcdir@&$ac_srcdir&;t t 21272s&@abs_srcdir@&$ac_abs_srcdir&;t t 21273s&@top_srcdir@&$ac_top_srcdir&;t t 21274s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21275s&@builddir@&$ac_builddir&;t t 21276s&@abs_builddir@&$ac_abs_builddir&;t t 21277s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21278s&@INSTALL@&$ac_INSTALL&;t t 21279s&@MKDIR_P@&$ac_MKDIR_P&;t t 21280$ac_datarootdir_hack 21281" 21282eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21283 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21284 21285test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21286 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21287 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21288 "$ac_tmp/out"`; test -z "$ac_out"; } && 21289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21290which seems to be undefined. Please make sure it is defined" >&5 21291printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21292which seems to be undefined. Please make sure it is defined" >&2;} 21293 21294 rm -f "$ac_tmp/stdin" 21295 case $ac_file in 21296 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21297 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21298 esac \ 21299 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21300 ;; 21301 :H) 21302 # 21303 # CONFIG_HEADER 21304 # 21305 if test x"$ac_file" != x-; then 21306 { 21307 printf "%s\n" "/* $configure_input */" >&1 \ 21308 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21309 } >"$ac_tmp/config.h" \ 21310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21311 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21313printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21314 else 21315 rm -f "$ac_file" 21316 mv "$ac_tmp/config.h" "$ac_file" \ 21317 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21318 fi 21319 else 21320 printf "%s\n" "/* $configure_input */" >&1 \ 21321 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21322 || as_fn_error $? "could not create -" "$LINENO" 5 21323 fi 21324# Compute "$ac_file"'s index in $config_headers. 21325_am_arg="$ac_file" 21326_am_stamp_count=1 21327for _am_header in $config_headers :; do 21328 case $_am_header in 21329 $_am_arg | $_am_arg:* ) 21330 break ;; 21331 * ) 21332 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21333 esac 21334done 21335echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21336$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21337 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21338 X"$_am_arg" : 'X\(//\)$' \| \ 21339 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21340printf "%s\n" X"$_am_arg" | 21341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21342 s//\1/ 21343 q 21344 } 21345 /^X\(\/\/\)[^/].*/{ 21346 s//\1/ 21347 q 21348 } 21349 /^X\(\/\/\)$/{ 21350 s//\1/ 21351 q 21352 } 21353 /^X\(\/\).*/{ 21354 s//\1/ 21355 q 21356 } 21357 s/.*/./; q'`/stamp-h$_am_stamp_count 21358 ;; 21359 21360 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21361printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21362 ;; 21363 esac 21364 21365 21366 case $ac_file$ac_mode in 21367 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21368 # Older Autoconf quotes --file arguments for eval, but not when files 21369 # are listed without --file. Let's play safe and only enable the eval 21370 # if we detect the quoting. 21371 # TODO: see whether this extra hack can be removed once we start 21372 # requiring Autoconf 2.70 or later. 21373 case $CONFIG_FILES in #( 21374 *\'*) : 21375 eval set x "$CONFIG_FILES" ;; #( 21376 *) : 21377 set x $CONFIG_FILES ;; #( 21378 *) : 21379 ;; 21380esac 21381 shift 21382 # Used to flag and report bootstrapping failures. 21383 am_rc=0 21384 for am_mf 21385 do 21386 # Strip MF so we end up with the name of the file. 21387 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21388 # Check whether this is an Automake generated Makefile which includes 21389 # dependency-tracking related rules and includes. 21390 # Grep'ing the whole file directly is not great: AIX grep has a line 21391 # limit of 2048, but all sed's we know have understand at least 4000. 21392 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21393 || continue 21394 am_dirpart=`$as_dirname -- "$am_mf" || 21395$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21396 X"$am_mf" : 'X\(//\)[^/]' \| \ 21397 X"$am_mf" : 'X\(//\)$' \| \ 21398 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21399printf "%s\n" X"$am_mf" | 21400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21401 s//\1/ 21402 q 21403 } 21404 /^X\(\/\/\)[^/].*/{ 21405 s//\1/ 21406 q 21407 } 21408 /^X\(\/\/\)$/{ 21409 s//\1/ 21410 q 21411 } 21412 /^X\(\/\).*/{ 21413 s//\1/ 21414 q 21415 } 21416 s/.*/./; q'` 21417 am_filepart=`$as_basename -- "$am_mf" || 21418$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21419 X"$am_mf" : 'X\(//\)$' \| \ 21420 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21421printf "%s\n" X/"$am_mf" | 21422 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21423 s//\1/ 21424 q 21425 } 21426 /^X\/\(\/\/\)$/{ 21427 s//\1/ 21428 q 21429 } 21430 /^X\/\(\/\).*/{ 21431 s//\1/ 21432 q 21433 } 21434 s/.*/./; q'` 21435 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21436 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21437 | $MAKE -f - am--depfiles" >&5 21438 (cd "$am_dirpart" \ 21439 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21440 | $MAKE -f - am--depfiles) >&5 2>&5 21441 ac_status=$? 21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21443 (exit $ac_status); } || am_rc=$? 21444 done 21445 if test $am_rc -ne 0; then 21446 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21447printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21448as_fn_error $? "Something went wrong bootstrapping makefile fragments 21449 for automatic dependency tracking. If GNU make was not used, consider 21450 re-running the configure script with MAKE=\"gmake\" (or whatever is 21451 necessary). You can also try re-running configure with the 21452 '--disable-dependency-tracking' option to at least be able to build 21453 the package (albeit without support for automatic dependency tracking). 21454See \`config.log' for more details" "$LINENO" 5; } 21455 fi 21456 { am_dirpart=; unset am_dirpart;} 21457 { am_filepart=; unset am_filepart;} 21458 { am_mf=; unset am_mf;} 21459 { am_rc=; unset am_rc;} 21460 rm -f conftest-deps.mk 21461} 21462 ;; 21463 "libtool":C) 21464 21465 # See if we are running on zsh, and set the options that allow our 21466 # commands through without removal of \ escapes. 21467 if test -n "${ZSH_VERSION+set}"; then 21468 setopt NO_GLOB_SUBST 21469 fi 21470 21471 cfgfile=${ofile}T 21472 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21473 $RM "$cfgfile" 21474 21475 cat <<_LT_EOF >> "$cfgfile" 21476#! $SHELL 21477# Generated automatically by $as_me ($PACKAGE) $VERSION 21478# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21479# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21480 21481# Provide generalized library-building support services. 21482# Written by Gordon Matzigkeit, 1996 21483 21484# Copyright (C) 2014 Free Software Foundation, Inc. 21485# This is free software; see the source for copying conditions. There is NO 21486# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21487 21488# GNU Libtool is free software; you can redistribute it and/or modify 21489# it under the terms of the GNU General Public License as published by 21490# the Free Software Foundation; either version 2 of of the License, or 21491# (at your option) any later version. 21492# 21493# As a special exception to the GNU General Public License, if you 21494# distribute this file as part of a program or library that is built 21495# using GNU Libtool, you may include this file under the same 21496# distribution terms that you use for the rest of that program. 21497# 21498# GNU Libtool is distributed in the hope that it will be useful, but 21499# WITHOUT ANY WARRANTY; without even the implied warranty of 21500# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21501# GNU General Public License for more details. 21502# 21503# You should have received a copy of the GNU General Public License 21504# along with this program. If not, see <http://www.gnu.org/licenses/>. 21505 21506 21507# The names of the tagged configurations supported by this script. 21508available_tags='' 21509 21510# Configured defaults for sys_lib_dlsearch_path munging. 21511: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21512 21513# ### BEGIN LIBTOOL CONFIG 21514 21515# Whether or not to build static libraries. 21516build_old_libs=$enable_static 21517 21518# Which release of libtool.m4 was used? 21519macro_version=$macro_version 21520macro_revision=$macro_revision 21521 21522# Whether or not to build shared libraries. 21523build_libtool_libs=$enable_shared 21524 21525# What type of objects to build. 21526pic_mode=$pic_mode 21527 21528# Whether or not to optimize for fast installation. 21529fast_install=$enable_fast_install 21530 21531# Shared archive member basename,for filename based shared library versioning on AIX. 21532shared_archive_member_spec=$shared_archive_member_spec 21533 21534# Shell to use when invoking shell scripts. 21535SHELL=$lt_SHELL 21536 21537# An echo program that protects backslashes. 21538ECHO=$lt_ECHO 21539 21540# The PATH separator for the build system. 21541PATH_SEPARATOR=$lt_PATH_SEPARATOR 21542 21543# The host system. 21544host_alias=$host_alias 21545host=$host 21546host_os=$host_os 21547 21548# The build system. 21549build_alias=$build_alias 21550build=$build 21551build_os=$build_os 21552 21553# A sed program that does not truncate output. 21554SED=$lt_SED 21555 21556# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21557Xsed="\$SED -e 1s/^X//" 21558 21559# A grep program that handles long lines. 21560GREP=$lt_GREP 21561 21562# An ERE matcher. 21563EGREP=$lt_EGREP 21564 21565# A literal string matcher. 21566FGREP=$lt_FGREP 21567 21568# A BSD- or MS-compatible name lister. 21569NM=$lt_NM 21570 21571# Whether we need soft or hard links. 21572LN_S=$lt_LN_S 21573 21574# What is the maximum length of a command? 21575max_cmd_len=$max_cmd_len 21576 21577# Object file suffix (normally "o"). 21578objext=$ac_objext 21579 21580# Executable file suffix (normally ""). 21581exeext=$exeext 21582 21583# whether the shell understands "unset". 21584lt_unset=$lt_unset 21585 21586# turn spaces into newlines. 21587SP2NL=$lt_lt_SP2NL 21588 21589# turn newlines into spaces. 21590NL2SP=$lt_lt_NL2SP 21591 21592# convert \$build file names to \$host format. 21593to_host_file_cmd=$lt_cv_to_host_file_cmd 21594 21595# convert \$build files to toolchain format. 21596to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21597 21598# A file(cmd) program that detects file types. 21599FILECMD=$lt_FILECMD 21600 21601# An object symbol dumper. 21602OBJDUMP=$lt_OBJDUMP 21603 21604# Method to check whether dependent libraries are shared objects. 21605deplibs_check_method=$lt_deplibs_check_method 21606 21607# Command to use when deplibs_check_method = "file_magic". 21608file_magic_cmd=$lt_file_magic_cmd 21609 21610# How to find potential files when deplibs_check_method = "file_magic". 21611file_magic_glob=$lt_file_magic_glob 21612 21613# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21614want_nocaseglob=$lt_want_nocaseglob 21615 21616# DLL creation program. 21617DLLTOOL=$lt_DLLTOOL 21618 21619# Command to associate shared and link libraries. 21620sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21621 21622# The archiver. 21623AR=$lt_AR 21624 21625# Flags to create an archive (by configure). 21626lt_ar_flags=$lt_ar_flags 21627 21628# Flags to create an archive. 21629AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21630 21631# How to feed a file listing to the archiver. 21632archiver_list_spec=$lt_archiver_list_spec 21633 21634# A symbol stripping program. 21635STRIP=$lt_STRIP 21636 21637# Commands used to install an old-style archive. 21638RANLIB=$lt_RANLIB 21639old_postinstall_cmds=$lt_old_postinstall_cmds 21640old_postuninstall_cmds=$lt_old_postuninstall_cmds 21641 21642# Whether to use a lock for old archive extraction. 21643lock_old_archive_extraction=$lock_old_archive_extraction 21644 21645# A C compiler. 21646LTCC=$lt_CC 21647 21648# LTCC compiler flags. 21649LTCFLAGS=$lt_CFLAGS 21650 21651# Take the output of nm and produce a listing of raw symbols and C names. 21652global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21653 21654# Transform the output of nm in a proper C declaration. 21655global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21656 21657# Transform the output of nm into a list of symbols to manually relocate. 21658global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21659 21660# Transform the output of nm in a C name address pair. 21661global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21662 21663# Transform the output of nm in a C name address pair when lib prefix is needed. 21664global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21665 21666# The name lister interface. 21667nm_interface=$lt_lt_cv_nm_interface 21668 21669# Specify filename containing input files for \$NM. 21670nm_file_list_spec=$lt_nm_file_list_spec 21671 21672# The root where to search for dependent libraries,and where our libraries should be installed. 21673lt_sysroot=$lt_sysroot 21674 21675# Command to truncate a binary pipe. 21676lt_truncate_bin=$lt_lt_cv_truncate_bin 21677 21678# The name of the directory that contains temporary libtool files. 21679objdir=$objdir 21680 21681# Used to examine libraries when file_magic_cmd begins with "file". 21682MAGIC_CMD=$MAGIC_CMD 21683 21684# Must we lock files when doing compilation? 21685need_locks=$lt_need_locks 21686 21687# Manifest tool. 21688MANIFEST_TOOL=$lt_MANIFEST_TOOL 21689 21690# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21691DSYMUTIL=$lt_DSYMUTIL 21692 21693# Tool to change global to local symbols on Mac OS X. 21694NMEDIT=$lt_NMEDIT 21695 21696# Tool to manipulate fat objects and archives on Mac OS X. 21697LIPO=$lt_LIPO 21698 21699# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21700OTOOL=$lt_OTOOL 21701 21702# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21703OTOOL64=$lt_OTOOL64 21704 21705# Old archive suffix (normally "a"). 21706libext=$libext 21707 21708# Shared library suffix (normally ".so"). 21709shrext_cmds=$lt_shrext_cmds 21710 21711# The commands to extract the exported symbol list from a shared archive. 21712extract_expsyms_cmds=$lt_extract_expsyms_cmds 21713 21714# Variables whose values should be saved in libtool wrapper scripts and 21715# restored at link time. 21716variables_saved_for_relink=$lt_variables_saved_for_relink 21717 21718# Do we need the "lib" prefix for modules? 21719need_lib_prefix=$need_lib_prefix 21720 21721# Do we need a version for libraries? 21722need_version=$need_version 21723 21724# Library versioning type. 21725version_type=$version_type 21726 21727# Shared library runtime path variable. 21728runpath_var=$runpath_var 21729 21730# Shared library path variable. 21731shlibpath_var=$shlibpath_var 21732 21733# Is shlibpath searched before the hard-coded library search path? 21734shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21735 21736# Format of library name prefix. 21737libname_spec=$lt_libname_spec 21738 21739# List of archive names. First name is the real one, the rest are links. 21740# The last name is the one that the linker finds with -lNAME 21741library_names_spec=$lt_library_names_spec 21742 21743# The coded name of the library, if different from the real name. 21744soname_spec=$lt_soname_spec 21745 21746# Permission mode override for installation of shared libraries. 21747install_override_mode=$lt_install_override_mode 21748 21749# Command to use after installation of a shared archive. 21750postinstall_cmds=$lt_postinstall_cmds 21751 21752# Command to use after uninstallation of a shared archive. 21753postuninstall_cmds=$lt_postuninstall_cmds 21754 21755# Commands used to finish a libtool library installation in a directory. 21756finish_cmds=$lt_finish_cmds 21757 21758# As "finish_cmds", except a single script fragment to be evaled but 21759# not shown. 21760finish_eval=$lt_finish_eval 21761 21762# Whether we should hardcode library paths into libraries. 21763hardcode_into_libs=$hardcode_into_libs 21764 21765# Compile-time system search path for libraries. 21766sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21767 21768# Detected run-time system search path for libraries. 21769sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21770 21771# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21772configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21773 21774# Whether dlopen is supported. 21775dlopen_support=$enable_dlopen 21776 21777# Whether dlopen of programs is supported. 21778dlopen_self=$enable_dlopen_self 21779 21780# Whether dlopen of statically linked programs is supported. 21781dlopen_self_static=$enable_dlopen_self_static 21782 21783# Commands to strip libraries. 21784old_striplib=$lt_old_striplib 21785striplib=$lt_striplib 21786 21787 21788# The linker used to build libraries. 21789LD=$lt_LD 21790 21791# How to create reloadable object files. 21792reload_flag=$lt_reload_flag 21793reload_cmds=$lt_reload_cmds 21794 21795# Commands used to build an old-style archive. 21796old_archive_cmds=$lt_old_archive_cmds 21797 21798# A language specific compiler. 21799CC=$lt_compiler 21800 21801# Is the compiler the GNU compiler? 21802with_gcc=$GCC 21803 21804# Compiler flag to turn off builtin functions. 21805no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21806 21807# Additional compiler flags for building library objects. 21808pic_flag=$lt_lt_prog_compiler_pic 21809 21810# How to pass a linker flag through the compiler. 21811wl=$lt_lt_prog_compiler_wl 21812 21813# Compiler flag to prevent dynamic linking. 21814link_static_flag=$lt_lt_prog_compiler_static 21815 21816# Does compiler simultaneously support -c and -o options? 21817compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21818 21819# Whether or not to add -lc for building shared libraries. 21820build_libtool_need_lc=$archive_cmds_need_lc 21821 21822# Whether or not to disallow shared libs when runtime libs are static. 21823allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21824 21825# Compiler flag to allow reflexive dlopens. 21826export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21827 21828# Compiler flag to generate shared objects directly from archives. 21829whole_archive_flag_spec=$lt_whole_archive_flag_spec 21830 21831# Whether the compiler copes with passing no objects directly. 21832compiler_needs_object=$lt_compiler_needs_object 21833 21834# Create an old-style archive from a shared archive. 21835old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21836 21837# Create a temporary old-style archive to link instead of a shared archive. 21838old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21839 21840# Commands used to build a shared archive. 21841archive_cmds=$lt_archive_cmds 21842archive_expsym_cmds=$lt_archive_expsym_cmds 21843 21844# Commands used to build a loadable module if different from building 21845# a shared archive. 21846module_cmds=$lt_module_cmds 21847module_expsym_cmds=$lt_module_expsym_cmds 21848 21849# Whether we are building with GNU ld or not. 21850with_gnu_ld=$lt_with_gnu_ld 21851 21852# Flag that allows shared libraries with undefined symbols to be built. 21853allow_undefined_flag=$lt_allow_undefined_flag 21854 21855# Flag that enforces no undefined symbols. 21856no_undefined_flag=$lt_no_undefined_flag 21857 21858# Flag to hardcode \$libdir into a binary during linking. 21859# This must work even if \$libdir does not exist 21860hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21861 21862# Whether we need a single "-rpath" flag with a separated argument. 21863hardcode_libdir_separator=$lt_hardcode_libdir_separator 21864 21865# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21866# DIR into the resulting binary. 21867hardcode_direct=$hardcode_direct 21868 21869# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21870# DIR into the resulting binary and the resulting library dependency is 21871# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21872# library is relocated. 21873hardcode_direct_absolute=$hardcode_direct_absolute 21874 21875# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21876# into the resulting binary. 21877hardcode_minus_L=$hardcode_minus_L 21878 21879# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21880# into the resulting binary. 21881hardcode_shlibpath_var=$hardcode_shlibpath_var 21882 21883# Set to "yes" if building a shared library automatically hardcodes DIR 21884# into the library and all subsequent libraries and executables linked 21885# against it. 21886hardcode_automatic=$hardcode_automatic 21887 21888# Set to yes if linker adds runtime paths of dependent libraries 21889# to runtime path list. 21890inherit_rpath=$inherit_rpath 21891 21892# Whether libtool must link a program against all its dependency libraries. 21893link_all_deplibs=$link_all_deplibs 21894 21895# Set to "yes" if exported symbols are required. 21896always_export_symbols=$always_export_symbols 21897 21898# The commands to list exported symbols. 21899export_symbols_cmds=$lt_export_symbols_cmds 21900 21901# Symbols that should not be listed in the preloaded symbols. 21902exclude_expsyms=$lt_exclude_expsyms 21903 21904# Symbols that must always be exported. 21905include_expsyms=$lt_include_expsyms 21906 21907# Commands necessary for linking programs (against libraries) with templates. 21908prelink_cmds=$lt_prelink_cmds 21909 21910# Commands necessary for finishing linking programs. 21911postlink_cmds=$lt_postlink_cmds 21912 21913# Specify filename containing input files. 21914file_list_spec=$lt_file_list_spec 21915 21916# How to hardcode a shared library path into an executable. 21917hardcode_action=$hardcode_action 21918 21919# ### END LIBTOOL CONFIG 21920 21921_LT_EOF 21922 21923 cat <<'_LT_EOF' >> "$cfgfile" 21924 21925# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21926 21927# func_munge_path_list VARIABLE PATH 21928# ----------------------------------- 21929# VARIABLE is name of variable containing _space_ separated list of 21930# directories to be munged by the contents of PATH, which is string 21931# having a format: 21932# "DIR[:DIR]:" 21933# string "DIR[ DIR]" will be prepended to VARIABLE 21934# ":DIR[:DIR]" 21935# string "DIR[ DIR]" will be appended to VARIABLE 21936# "DIRP[:DIRP]::[DIRA:]DIRA" 21937# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21938# "DIRA[ DIRA]" will be appended to VARIABLE 21939# "DIR[:DIR]" 21940# VARIABLE will be replaced by "DIR[ DIR]" 21941func_munge_path_list () 21942{ 21943 case x$2 in 21944 x) 21945 ;; 21946 *:) 21947 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21948 ;; 21949 x:*) 21950 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21951 ;; 21952 *::*) 21953 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21954 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21955 ;; 21956 *) 21957 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21958 ;; 21959 esac 21960} 21961 21962 21963# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21964func_cc_basename () 21965{ 21966 for cc_temp in $*""; do 21967 case $cc_temp in 21968 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21969 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21970 \-*) ;; 21971 *) break;; 21972 esac 21973 done 21974 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21975} 21976 21977 21978# ### END FUNCTIONS SHARED WITH CONFIGURE 21979 21980_LT_EOF 21981 21982 case $host_os in 21983 aix3*) 21984 cat <<\_LT_EOF >> "$cfgfile" 21985# AIX sometimes has problems with the GCC collect2 program. For some 21986# reason, if we set the COLLECT_NAMES environment variable, the problems 21987# vanish in a puff of smoke. 21988if test set != "${COLLECT_NAMES+set}"; then 21989 COLLECT_NAMES= 21990 export COLLECT_NAMES 21991fi 21992_LT_EOF 21993 ;; 21994 esac 21995 21996 21997 21998ltmain=$ac_aux_dir/ltmain.sh 21999 22000 22001 # We use sed instead of cat because bash on DJGPP gets confused if 22002 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22003 # text mode, it properly converts lines to CR/LF. This bash problem 22004 # is reportedly fixed, but why not run on old versions too? 22005 $SED '$q' "$ltmain" >> "$cfgfile" \ 22006 || (rm -f "$cfgfile"; exit 1) 22007 22008 mv -f "$cfgfile" "$ofile" || 22009 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22010 chmod +x "$ofile" 22011 22012 ;; 22013 22014 esac 22015done # for ac_tag 22016 22017 22018as_fn_exit 0 22019_ACEOF 22020ac_clean_files=$ac_clean_files_save 22021 22022test $ac_write_fail = 0 || 22023 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22024 22025 22026# configure is writing to config.log, and then calls config.status. 22027# config.status does its own redirection, appending to config.log. 22028# Unfortunately, on DOS this fails, as config.log is still kept open 22029# by configure, so config.status won't be able to write to it; its 22030# output is simply discarded. So we exec the FD to /dev/null, 22031# effectively closing config.log, so it can be properly (re)opened and 22032# appended to by config.status. When coming back to configure, we 22033# need to make the FD available again. 22034if test "$no_create" != yes; then 22035 ac_cs_success=: 22036 ac_config_status_args= 22037 test "$silent" = yes && 22038 ac_config_status_args="$ac_config_status_args --quiet" 22039 exec 5>/dev/null 22040 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22041 exec 5>>config.log 22042 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22043 # would make configure fail if this is the last instruction. 22044 $ac_cs_success || as_fn_exit 1 22045fi 22046if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22048printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22049fi 22050 22051 22052