1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xf86-video-mga 2.0.1. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/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-mga/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-mga' 624PACKAGE_TARNAME='xf86-video-mga' 625PACKAGE_VERSION='2.0.1' 626PACKAGE_STRING='xf86-video-mga 2.0.1' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/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 669USE_EXA_FALSE 670USE_EXA_TRUE 671CPP 672XAA_FALSE 673XAA_TRUE 674XSERVER_LIBPCIACCESS_FALSE 675XSERVER_LIBPCIACCESS_TRUE 676PCIACCESS_LIBS 677PCIACCESS_CFLAGS 678DRI_LIBS 679DRI_CFLAGS 680DRI_FALSE 681DRI_TRUE 682XORG_LIBS 683XORG_CFLAGS 684LT_SYS_LIBRARY_PATH 685OTOOL64 686OTOOL 687LIPO 688NMEDIT 689DSYMUTIL 690MANIFEST_TOOL 691RANLIB 692ac_ct_AR 693AR 694DLLTOOL 695OBJDUMP 696FILECMD 697LN_S 698NM 699ac_ct_DUMPBIN 700DUMPBIN 701LD 702FGREP 703EGREP 704GREP 705LIBTOOL 706CSCOPE 707ETAGS 708CTAGS 709am__fastdepCC_FALSE 710am__fastdepCC_TRUE 711CCDEPMODE 712am__nodep 713AMDEPBACKSLASH 714AMDEP_FALSE 715AMDEP_TRUE 716am__include 717DEPDIR 718am__untar 719am__tar 720AMTAR 721am__leading_dot 722SET_MAKE 723AWK 724mkdir_p 725MKDIR_P 726INSTALL_STRIP_PROGRAM 727STRIP 728install_sh 729MAKEINFO 730AUTOHEADER 731AUTOMAKE 732AUTOCONF 733ACLOCAL 734VERSION 735PACKAGE 736CYGPATH_W 737am__isrc 738AM_BACKSLASH 739AM_DEFAULT_VERBOSITY 740AM_DEFAULT_V 741AM_V 742MAN_SUBSTS 743XORG_MAN_PAGE 744ADMIN_MAN_DIR 745DRIVER_MAN_DIR 746MISC_MAN_DIR 747FILE_MAN_DIR 748LIB_MAN_DIR 749APP_MAN_DIR 750ADMIN_MAN_SUFFIX 751DRIVER_MAN_SUFFIX 752MISC_MAN_SUFFIX 753FILE_MAN_SUFFIX 754LIB_MAN_SUFFIX 755APP_MAN_SUFFIX 756SED 757host_os 758host_vendor 759host_cpu 760host 761build_os 762build_vendor 763build_cpu 764build 765INSTALL_CMD 766PKG_CONFIG_LIBDIR 767PKG_CONFIG_PATH 768PKG_CONFIG 769CHANGELOG_CMD 770STRICT_CFLAGS 771CWARNFLAGS 772BASE_CFLAGS 773OBJEXT 774EXEEXT 775ac_ct_CC 776CPPFLAGS 777LDFLAGS 778CFLAGS 779CC 780INSTALL_DATA 781INSTALL_SCRIPT 782INSTALL_PROGRAM 783target_alias 784host_alias 785build_alias 786LIBS 787ECHO_T 788ECHO_N 789ECHO_C 790DEFS 791mandir 792localedir 793libdir 794psdir 795pdfdir 796dvidir 797htmldir 798infodir 799docdir 800oldincludedir 801includedir 802runstatedir 803localstatedir 804sharedstatedir 805sysconfdir 806datadir 807datarootdir 808libexecdir 809sbindir 810bindir 811program_transform_name 812prefix 813exec_prefix 814PACKAGE_URL 815PACKAGE_BUGREPORT 816PACKAGE_STRING 817PACKAGE_VERSION 818PACKAGE_TARNAME 819PACKAGE_NAME 820PATH_SEPARATOR 821SHELL 822am__quote' 823ac_subst_files='' 824ac_user_opts=' 825enable_option_checking 826enable_selective_werror 827enable_strict_compilation 828enable_silent_rules 829enable_dependency_tracking 830enable_static 831enable_shared 832with_pic 833enable_fast_install 834with_aix_soname 835with_gnu_ld 836with_sysroot 837enable_libtool_lock 838with_xorg_module_dir 839enable_dri 840enable_exa 841enable_xaa 842' 843 ac_precious_vars='build_alias 844host_alias 845target_alias 846CC 847CFLAGS 848LDFLAGS 849LIBS 850CPPFLAGS 851PKG_CONFIG 852PKG_CONFIG_PATH 853PKG_CONFIG_LIBDIR 854LT_SYS_LIBRARY_PATH 855XORG_CFLAGS 856XORG_LIBS 857DRI_CFLAGS 858DRI_LIBS 859PCIACCESS_CFLAGS 860PCIACCESS_LIBS 861CPP' 862 863 864# Initialize some variables set by options. 865ac_init_help= 866ac_init_version=false 867ac_unrecognized_opts= 868ac_unrecognized_sep= 869# The variables have the same names as the options, with 870# dashes changed to underlines. 871cache_file=/dev/null 872exec_prefix=NONE 873no_create= 874no_recursion= 875prefix=NONE 876program_prefix=NONE 877program_suffix=NONE 878program_transform_name=s,x,x, 879silent= 880site= 881srcdir= 882verbose= 883x_includes=NONE 884x_libraries=NONE 885 886# Installation directory options. 887# These are left unexpanded so users can "make install exec_prefix=/foo" 888# and all the variables that are supposed to be based on exec_prefix 889# by default will actually change. 890# Use braces instead of parens because sh, perl, etc. also accept them. 891# (The list follows the same order as the GNU Coding Standards.) 892bindir='${exec_prefix}/bin' 893sbindir='${exec_prefix}/sbin' 894libexecdir='${exec_prefix}/libexec' 895datarootdir='${prefix}/share' 896datadir='${datarootdir}' 897sysconfdir='${prefix}/etc' 898sharedstatedir='${prefix}/com' 899localstatedir='${prefix}/var' 900runstatedir='${localstatedir}/run' 901includedir='${prefix}/include' 902oldincludedir='/usr/include' 903docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 904infodir='${datarootdir}/info' 905htmldir='${docdir}' 906dvidir='${docdir}' 907pdfdir='${docdir}' 908psdir='${docdir}' 909libdir='${exec_prefix}/lib' 910localedir='${datarootdir}/locale' 911mandir='${datarootdir}/man' 912 913ac_prev= 914ac_dashdash= 915for ac_option 916do 917 # If the previous option needs an argument, assign it. 918 if test -n "$ac_prev"; then 919 eval $ac_prev=\$ac_option 920 ac_prev= 921 continue 922 fi 923 924 case $ac_option in 925 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 926 *=) ac_optarg= ;; 927 *) ac_optarg=yes ;; 928 esac 929 930 case $ac_dashdash$ac_option in 931 --) 932 ac_dashdash=yes ;; 933 934 -bindir | --bindir | --bindi | --bind | --bin | --bi) 935 ac_prev=bindir ;; 936 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 937 bindir=$ac_optarg ;; 938 939 -build | --build | --buil | --bui | --bu) 940 ac_prev=build_alias ;; 941 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 942 build_alias=$ac_optarg ;; 943 944 -cache-file | --cache-file | --cache-fil | --cache-fi \ 945 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 946 ac_prev=cache_file ;; 947 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 948 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 949 cache_file=$ac_optarg ;; 950 951 --config-cache | -C) 952 cache_file=config.cache ;; 953 954 -datadir | --datadir | --datadi | --datad) 955 ac_prev=datadir ;; 956 -datadir=* | --datadir=* | --datadi=* | --datad=*) 957 datadir=$ac_optarg ;; 958 959 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 960 | --dataroo | --dataro | --datar) 961 ac_prev=datarootdir ;; 962 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 963 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 964 datarootdir=$ac_optarg ;; 965 966 -disable-* | --disable-*) 967 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 968 # Reject names that are not valid shell variable names. 969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 970 as_fn_error $? "invalid feature name: \`$ac_useropt'" 971 ac_useropt_orig=$ac_useropt 972 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 973 case $ac_user_opts in 974 *" 975"enable_$ac_useropt" 976"*) ;; 977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 978 ac_unrecognized_sep=', ';; 979 esac 980 eval enable_$ac_useropt=no ;; 981 982 -docdir | --docdir | --docdi | --doc | --do) 983 ac_prev=docdir ;; 984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 985 docdir=$ac_optarg ;; 986 987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 988 ac_prev=dvidir ;; 989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 990 dvidir=$ac_optarg ;; 991 992 -enable-* | --enable-*) 993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 994 # Reject names that are not valid shell variable names. 995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 996 as_fn_error $? "invalid feature name: \`$ac_useropt'" 997 ac_useropt_orig=$ac_useropt 998 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 999 case $ac_user_opts in 1000 *" 1001"enable_$ac_useropt" 1002"*) ;; 1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1004 ac_unrecognized_sep=', ';; 1005 esac 1006 eval enable_$ac_useropt=\$ac_optarg ;; 1007 1008 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1009 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1010 | --exec | --exe | --ex) 1011 ac_prev=exec_prefix ;; 1012 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1013 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1014 | --exec=* | --exe=* | --ex=*) 1015 exec_prefix=$ac_optarg ;; 1016 1017 -gas | --gas | --ga | --g) 1018 # Obsolete; use --with-gas. 1019 with_gas=yes ;; 1020 1021 -help | --help | --hel | --he | -h) 1022 ac_init_help=long ;; 1023 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1024 ac_init_help=recursive ;; 1025 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1026 ac_init_help=short ;; 1027 1028 -host | --host | --hos | --ho) 1029 ac_prev=host_alias ;; 1030 -host=* | --host=* | --hos=* | --ho=*) 1031 host_alias=$ac_optarg ;; 1032 1033 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1034 ac_prev=htmldir ;; 1035 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1036 | --ht=*) 1037 htmldir=$ac_optarg ;; 1038 1039 -includedir | --includedir | --includedi | --included | --include \ 1040 | --includ | --inclu | --incl | --inc) 1041 ac_prev=includedir ;; 1042 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1043 | --includ=* | --inclu=* | --incl=* | --inc=*) 1044 includedir=$ac_optarg ;; 1045 1046 -infodir | --infodir | --infodi | --infod | --info | --inf) 1047 ac_prev=infodir ;; 1048 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1049 infodir=$ac_optarg ;; 1050 1051 -libdir | --libdir | --libdi | --libd) 1052 ac_prev=libdir ;; 1053 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1054 libdir=$ac_optarg ;; 1055 1056 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1057 | --libexe | --libex | --libe) 1058 ac_prev=libexecdir ;; 1059 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1060 | --libexe=* | --libex=* | --libe=*) 1061 libexecdir=$ac_optarg ;; 1062 1063 -localedir | --localedir | --localedi | --localed | --locale) 1064 ac_prev=localedir ;; 1065 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1066 localedir=$ac_optarg ;; 1067 1068 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1069 | --localstate | --localstat | --localsta | --localst | --locals) 1070 ac_prev=localstatedir ;; 1071 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1072 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1073 localstatedir=$ac_optarg ;; 1074 1075 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1076 ac_prev=mandir ;; 1077 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1078 mandir=$ac_optarg ;; 1079 1080 -nfp | --nfp | --nf) 1081 # Obsolete; use --without-fp. 1082 with_fp=no ;; 1083 1084 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1085 | --no-cr | --no-c | -n) 1086 no_create=yes ;; 1087 1088 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1089 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1090 no_recursion=yes ;; 1091 1092 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1093 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1094 | --oldin | --oldi | --old | --ol | --o) 1095 ac_prev=oldincludedir ;; 1096 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1097 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1098 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1099 oldincludedir=$ac_optarg ;; 1100 1101 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1102 ac_prev=prefix ;; 1103 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1104 prefix=$ac_optarg ;; 1105 1106 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1107 | --program-pre | --program-pr | --program-p) 1108 ac_prev=program_prefix ;; 1109 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1110 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1111 program_prefix=$ac_optarg ;; 1112 1113 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1114 | --program-suf | --program-su | --program-s) 1115 ac_prev=program_suffix ;; 1116 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1117 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1118 program_suffix=$ac_optarg ;; 1119 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 ac_prev=program_transform_name ;; 1128 -program-transform-name=* | --program-transform-name=* \ 1129 | --program-transform-nam=* | --program-transform-na=* \ 1130 | --program-transform-n=* | --program-transform-=* \ 1131 | --program-transform=* | --program-transfor=* \ 1132 | --program-transfo=* | --program-transf=* \ 1133 | --program-trans=* | --program-tran=* \ 1134 | --progr-tra=* | --program-tr=* | --program-t=*) 1135 program_transform_name=$ac_optarg ;; 1136 1137 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1138 ac_prev=pdfdir ;; 1139 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1140 pdfdir=$ac_optarg ;; 1141 1142 -psdir | --psdir | --psdi | --psd | --ps) 1143 ac_prev=psdir ;; 1144 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1145 psdir=$ac_optarg ;; 1146 1147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1148 | -silent | --silent | --silen | --sile | --sil) 1149 silent=yes ;; 1150 1151 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1152 | --runstate | --runstat | --runsta | --runst | --runs \ 1153 | --run | --ru | --r) 1154 ac_prev=runstatedir ;; 1155 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1156 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1157 | --run=* | --ru=* | --r=*) 1158 runstatedir=$ac_optarg ;; 1159 1160 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1161 ac_prev=sbindir ;; 1162 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1163 | --sbi=* | --sb=*) 1164 sbindir=$ac_optarg ;; 1165 1166 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1167 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1168 | --sharedst | --shareds | --shared | --share | --shar \ 1169 | --sha | --sh) 1170 ac_prev=sharedstatedir ;; 1171 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1172 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1173 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1174 | --sha=* | --sh=*) 1175 sharedstatedir=$ac_optarg ;; 1176 1177 -site | --site | --sit) 1178 ac_prev=site ;; 1179 -site=* | --site=* | --sit=*) 1180 site=$ac_optarg ;; 1181 1182 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1183 ac_prev=srcdir ;; 1184 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1185 srcdir=$ac_optarg ;; 1186 1187 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1188 | --syscon | --sysco | --sysc | --sys | --sy) 1189 ac_prev=sysconfdir ;; 1190 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1191 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1192 sysconfdir=$ac_optarg ;; 1193 1194 -target | --target | --targe | --targ | --tar | --ta | --t) 1195 ac_prev=target_alias ;; 1196 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1197 target_alias=$ac_optarg ;; 1198 1199 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1200 verbose=yes ;; 1201 1202 -version | --version | --versio | --versi | --vers | -V) 1203 ac_init_version=: ;; 1204 1205 -with-* | --with-*) 1206 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1207 # Reject names that are not valid shell variable names. 1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1209 as_fn_error $? "invalid package name: \`$ac_useropt'" 1210 ac_useropt_orig=$ac_useropt 1211 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1212 case $ac_user_opts in 1213 *" 1214"with_$ac_useropt" 1215"*) ;; 1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1217 ac_unrecognized_sep=', ';; 1218 esac 1219 eval with_$ac_useropt=\$ac_optarg ;; 1220 1221 -without-* | --without-*) 1222 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1223 # Reject names that are not valid shell variable names. 1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1225 as_fn_error $? "invalid package name: \`$ac_useropt'" 1226 ac_useropt_orig=$ac_useropt 1227 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1228 case $ac_user_opts in 1229 *" 1230"with_$ac_useropt" 1231"*) ;; 1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1233 ac_unrecognized_sep=', ';; 1234 esac 1235 eval with_$ac_useropt=no ;; 1236 1237 --x) 1238 # Obsolete; use --with-x. 1239 with_x=yes ;; 1240 1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1242 | --x-incl | --x-inc | --x-in | --x-i) 1243 ac_prev=x_includes ;; 1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1246 x_includes=$ac_optarg ;; 1247 1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1250 ac_prev=x_libraries ;; 1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1253 x_libraries=$ac_optarg ;; 1254 1255 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1256Try \`$0 --help' for more information" 1257 ;; 1258 1259 *=*) 1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1261 # Reject names that are not valid shell variable names. 1262 case $ac_envvar in #( 1263 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1264 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1265 esac 1266 eval $ac_envvar=\$ac_optarg 1267 export $ac_envvar ;; 1268 1269 *) 1270 # FIXME: should be removed in autoconf 3.0. 1271 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1273 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1274 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1275 ;; 1276 1277 esac 1278done 1279 1280if test -n "$ac_prev"; then 1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1282 as_fn_error $? "missing argument to $ac_option" 1283fi 1284 1285if test -n "$ac_unrecognized_opts"; then 1286 case $enable_option_checking in 1287 no) ;; 1288 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1289 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1290 esac 1291fi 1292 1293# Check all directory arguments for consistency. 1294for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1295 datadir sysconfdir sharedstatedir localstatedir includedir \ 1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1297 libdir localedir mandir runstatedir 1298do 1299 eval ac_val=\$$ac_var 1300 # Remove trailing slashes. 1301 case $ac_val in 1302 */ ) 1303 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1304 eval $ac_var=\$ac_val;; 1305 esac 1306 # Be sure to have absolute directory names. 1307 case $ac_val in 1308 [\\/$]* | ?:[\\/]* ) continue;; 1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1310 esac 1311 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1312done 1313 1314# There might be people who depend on the old broken behavior: `$host' 1315# used to hold the argument of --host etc. 1316# FIXME: To remove some day. 1317build=$build_alias 1318host=$host_alias 1319target=$target_alias 1320 1321# FIXME: To remove some day. 1322if test "x$host_alias" != x; then 1323 if test "x$build_alias" = x; then 1324 cross_compiling=maybe 1325 elif test "x$build_alias" != "x$host_alias"; then 1326 cross_compiling=yes 1327 fi 1328fi 1329 1330ac_tool_prefix= 1331test -n "$host_alias" && ac_tool_prefix=$host_alias- 1332 1333test "$silent" = yes && exec 6>/dev/null 1334 1335 1336ac_pwd=`pwd` && test -n "$ac_pwd" && 1337ac_ls_di=`ls -di .` && 1338ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1339 as_fn_error $? "working directory cannot be determined" 1340test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1341 as_fn_error $? "pwd does not report name of working directory" 1342 1343 1344# Find the source files, if location was not specified. 1345if test -z "$srcdir"; then 1346 ac_srcdir_defaulted=yes 1347 # Try the directory containing this script, then the parent directory. 1348 ac_confdir=`$as_dirname -- "$as_myself" || 1349$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1350 X"$as_myself" : 'X\(//\)[^/]' \| \ 1351 X"$as_myself" : 'X\(//\)$' \| \ 1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1353printf "%s\n" X"$as_myself" | 1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\/\)[^/].*/{ 1359 s//\1/ 1360 q 1361 } 1362 /^X\(\/\/\)$/{ 1363 s//\1/ 1364 q 1365 } 1366 /^X\(\/\).*/{ 1367 s//\1/ 1368 q 1369 } 1370 s/.*/./; q'` 1371 srcdir=$ac_confdir 1372 if test ! -r "$srcdir/$ac_unique_file"; then 1373 srcdir=.. 1374 fi 1375else 1376 ac_srcdir_defaulted=no 1377fi 1378if test ! -r "$srcdir/$ac_unique_file"; then 1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1380 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1381fi 1382ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1383ac_abs_confdir=`( 1384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1385 pwd)` 1386# When building in place, set srcdir=. 1387if test "$ac_abs_confdir" = "$ac_pwd"; then 1388 srcdir=. 1389fi 1390# Remove unnecessary trailing slashes from srcdir. 1391# Double slashes in file names in object file debugging info 1392# mess up M-x gdb in Emacs. 1393case $srcdir in 1394*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1395esac 1396for ac_var in $ac_precious_vars; do 1397 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1398 eval ac_env_${ac_var}_value=\$${ac_var} 1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1400 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1401done 1402 1403# 1404# Report the --help message. 1405# 1406if test "$ac_init_help" = "long"; then 1407 # Omit some internal or obsolete options to make the list less imposing. 1408 # This message is too long to be a string in the A/UX 3.1 sh. 1409 cat <<_ACEOF 1410\`configure' configures xf86-video-mga 2.0.1 to adapt to many kinds of systems. 1411 1412Usage: $0 [OPTION]... [VAR=VALUE]... 1413 1414To assign environment variables (e.g., CC, CFLAGS...), specify them as 1415VAR=VALUE. See below for descriptions of some of the useful variables. 1416 1417Defaults for the options are specified in brackets. 1418 1419Configuration: 1420 -h, --help display this help and exit 1421 --help=short display options specific to this package 1422 --help=recursive display the short help of all the included packages 1423 -V, --version display version information and exit 1424 -q, --quiet, --silent do not print \`checking ...' messages 1425 --cache-file=FILE cache test results in FILE [disabled] 1426 -C, --config-cache alias for \`--cache-file=config.cache' 1427 -n, --no-create do not create output files 1428 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1429 1430Installation directories: 1431 --prefix=PREFIX install architecture-independent files in PREFIX 1432 [$ac_default_prefix] 1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1434 [PREFIX] 1435 1436By default, \`make install' will install all the files in 1437\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1438an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1439for instance \`--prefix=\$HOME'. 1440 1441For better control, use the options below. 1442 1443Fine tuning of the installation directories: 1444 --bindir=DIR user executables [EPREFIX/bin] 1445 --sbindir=DIR system admin executables [EPREFIX/sbin] 1446 --libexecdir=DIR program executables [EPREFIX/libexec] 1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1450 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1451 --libdir=DIR object code libraries [EPREFIX/lib] 1452 --includedir=DIR C header files [PREFIX/include] 1453 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1456 --infodir=DIR info documentation [DATAROOTDIR/info] 1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1458 --mandir=DIR man documentation [DATAROOTDIR/man] 1459 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-mga] 1460 --htmldir=DIR html documentation [DOCDIR] 1461 --dvidir=DIR dvi documentation [DOCDIR] 1462 --pdfdir=DIR pdf documentation [DOCDIR] 1463 --psdir=DIR ps documentation [DOCDIR] 1464_ACEOF 1465 1466 cat <<\_ACEOF 1467 1468Program names: 1469 --program-prefix=C prepend C to installed program names 1470 --program-suffix=SUFFIX append SUFFIX to installed program names 1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1472 1473System types: 1474 --build=BUILD configure for building on BUILD [guessed] 1475 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1476_ACEOF 1477fi 1478 1479if test -n "$ac_init_help"; then 1480 case $ac_init_help in 1481 short | recursive ) echo "Configuration of xf86-video-mga 2.0.1:";; 1482 esac 1483 cat <<\_ACEOF 1484 1485Optional Features: 1486 --disable-option-checking ignore unrecognized --enable/--with options 1487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1489 --disable-selective-werror 1490 Turn off selective compiler errors. (default: 1491 enabled) 1492 --enable-strict-compilation 1493 Enable all warnings from compiler and make them 1494 errors (default: disabled) 1495 --enable-silent-rules less verbose build output (undo: "make V=1") 1496 --disable-silent-rules verbose build output (undo: "make V=0") 1497 --enable-dependency-tracking 1498 do not reject slow dependency extractors 1499 --disable-dependency-tracking 1500 speeds up one-time build 1501 --enable-static[=PKGS] build static libraries [default=no] 1502 --enable-shared[=PKGS] build shared libraries [default=yes] 1503 --enable-fast-install[=PKGS] 1504 optimize for fast installation [default=yes] 1505 --disable-libtool-lock avoid locking (might break parallel builds) 1506 --disable-dri Disable DRI support [[default=auto]] 1507 --disable-exa Disable EXA support [[default=enabled]] 1508 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1509 [default=auto] 1510 1511Optional Packages: 1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1514 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1515 both] 1516 --with-aix-soname=aix|svr4|both 1517 shared library versioning (aka "SONAME") variant to 1518 provide on AIX, [default=aix]. 1519 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1520 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1521 compiler's sysroot if not specified). 1522 --with-xorg-module-dir=DIR 1523 Default xorg module directory 1524 [[default=$libdir/xorg/modules]] 1525 1526Some influential environment variables: 1527 CC C compiler command 1528 CFLAGS C compiler flags 1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1530 nonstandard directory <lib dir> 1531 LIBS libraries to pass to the linker, e.g. -l<library> 1532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1533 you have headers in a nonstandard directory <include dir> 1534 PKG_CONFIG path to pkg-config utility 1535 PKG_CONFIG_PATH 1536 directories to add to pkg-config's search path 1537 PKG_CONFIG_LIBDIR 1538 path overriding pkg-config's built-in search path 1539 LT_SYS_LIBRARY_PATH 1540 User-defined run-time library search path. 1541 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1542 XORG_LIBS linker flags for XORG, overriding pkg-config 1543 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1544 DRI_LIBS linker flags for DRI, overriding pkg-config 1545 PCIACCESS_CFLAGS 1546 C compiler flags for PCIACCESS, overriding pkg-config 1547 PCIACCESS_LIBS 1548 linker flags for PCIACCESS, overriding pkg-config 1549 CPP C preprocessor 1550 1551Use these variables to override the choices made by `configure' or to help 1552it to find libraries and programs with nonstandard names/locations. 1553 1554Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/issues>. 1555_ACEOF 1556ac_status=$? 1557fi 1558 1559if test "$ac_init_help" = "recursive"; then 1560 # If there are subdirs, report their specific --help. 1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1562 test -d "$ac_dir" || 1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1564 continue 1565 ac_builddir=. 1566 1567case "$ac_dir" in 1568.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1569*) 1570 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1571 # A ".." for each directory in $ac_dir_suffix. 1572 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1573 case $ac_top_builddir_sub in 1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1576 esac ;; 1577esac 1578ac_abs_top_builddir=$ac_pwd 1579ac_abs_builddir=$ac_pwd$ac_dir_suffix 1580# for backward compatibility: 1581ac_top_builddir=$ac_top_build_prefix 1582 1583case $srcdir in 1584 .) # We are building in place. 1585 ac_srcdir=. 1586 ac_top_srcdir=$ac_top_builddir_sub 1587 ac_abs_top_srcdir=$ac_pwd ;; 1588 [\\/]* | ?:[\\/]* ) # Absolute name. 1589 ac_srcdir=$srcdir$ac_dir_suffix; 1590 ac_top_srcdir=$srcdir 1591 ac_abs_top_srcdir=$srcdir ;; 1592 *) # Relative name. 1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1594 ac_top_srcdir=$ac_top_build_prefix$srcdir 1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1596esac 1597ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1598 1599 cd "$ac_dir" || { ac_status=$?; continue; } 1600 # Check for configure.gnu first; this name is used for a wrapper for 1601 # Metaconfig's "Configure" on case-insensitive file systems. 1602 if test -f "$ac_srcdir/configure.gnu"; then 1603 echo && 1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1605 elif test -f "$ac_srcdir/configure"; then 1606 echo && 1607 $SHELL "$ac_srcdir/configure" --help=recursive 1608 else 1609 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1610 fi || ac_status=$? 1611 cd "$ac_pwd" || { ac_status=$?; break; } 1612 done 1613fi 1614 1615test -n "$ac_init_help" && exit $ac_status 1616if $ac_init_version; then 1617 cat <<\_ACEOF 1618xf86-video-mga configure 2.0.1 1619generated by GNU Autoconf 2.71 1620 1621Copyright (C) 2021 Free Software Foundation, Inc. 1622This configure script is free software; the Free Software Foundation 1623gives unlimited permission to copy, distribute and modify it. 1624_ACEOF 1625 exit 1626fi 1627 1628## ------------------------ ## 1629## Autoconf initialization. ## 1630## ------------------------ ## 1631 1632# ac_fn_c_try_compile LINENO 1633# -------------------------- 1634# Try to compile conftest.$ac_ext, and return whether this succeeded. 1635ac_fn_c_try_compile () 1636{ 1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1638 rm -f conftest.$ac_objext conftest.beam 1639 if { { ac_try="$ac_compile" 1640case "(($ac_try" in 1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1642 *) ac_try_echo=$ac_try;; 1643esac 1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1645printf "%s\n" "$ac_try_echo"; } >&5 1646 (eval "$ac_compile") 2>conftest.err 1647 ac_status=$? 1648 if test -s conftest.err; then 1649 grep -v '^ *+' conftest.err >conftest.er1 1650 cat conftest.er1 >&5 1651 mv -f conftest.er1 conftest.err 1652 fi 1653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1654 test $ac_status = 0; } && { 1655 test -z "$ac_c_werror_flag" || 1656 test ! -s conftest.err 1657 } && test -s conftest.$ac_objext 1658then : 1659 ac_retval=0 1660else $as_nop 1661 printf "%s\n" "$as_me: failed program was:" >&5 1662sed 's/^/| /' conftest.$ac_ext >&5 1663 1664 ac_retval=1 1665fi 1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1667 as_fn_set_status $ac_retval 1668 1669} # ac_fn_c_try_compile 1670 1671# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1672# ------------------------------------------------------------------ 1673# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1674# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1675ac_fn_check_decl () 1676{ 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 as_decl_name=`echo $2|sed 's/ *(.*//'` 1679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1680printf %s "checking whether $as_decl_name is declared... " >&6; } 1681if eval test \${$3+y} 1682then : 1683 printf %s "(cached) " >&6 1684else $as_nop 1685 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1686 eval ac_save_FLAGS=\$$6 1687 as_fn_append $6 " $5" 1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1689/* end confdefs.h. */ 1690$4 1691int 1692main (void) 1693{ 1694#ifndef $as_decl_name 1695#ifdef __cplusplus 1696 (void) $as_decl_use; 1697#else 1698 (void) $as_decl_name; 1699#endif 1700#endif 1701 1702 ; 1703 return 0; 1704} 1705_ACEOF 1706if ac_fn_c_try_compile "$LINENO" 1707then : 1708 eval "$3=yes" 1709else $as_nop 1710 eval "$3=no" 1711fi 1712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1713 eval $6=\$ac_save_FLAGS 1714 1715fi 1716eval ac_res=\$$3 1717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1718printf "%s\n" "$ac_res" >&6; } 1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1720 1721} # ac_fn_check_decl 1722 1723# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1724# ------------------------------------------------------- 1725# Tests whether HEADER exists and can be compiled using the include files in 1726# INCLUDES, setting the cache variable VAR accordingly. 1727ac_fn_c_check_header_compile () 1728{ 1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1731printf %s "checking for $2... " >&6; } 1732if eval test \${$3+y} 1733then : 1734 printf %s "(cached) " >&6 1735else $as_nop 1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1737/* end confdefs.h. */ 1738$4 1739#include <$2> 1740_ACEOF 1741if ac_fn_c_try_compile "$LINENO" 1742then : 1743 eval "$3=yes" 1744else $as_nop 1745 eval "$3=no" 1746fi 1747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1748fi 1749eval ac_res=\$$3 1750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1751printf "%s\n" "$ac_res" >&6; } 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 1754} # ac_fn_c_check_header_compile 1755 1756# ac_fn_c_try_link LINENO 1757# ----------------------- 1758# Try to link conftest.$ac_ext, and return whether this succeeded. 1759ac_fn_c_try_link () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1763 if { { ac_try="$ac_link" 1764case "(($ac_try" in 1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1766 *) ac_try_echo=$ac_try;; 1767esac 1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1769printf "%s\n" "$ac_try_echo"; } >&5 1770 (eval "$ac_link") 2>conftest.err 1771 ac_status=$? 1772 if test -s conftest.err; then 1773 grep -v '^ *+' conftest.err >conftest.er1 1774 cat conftest.er1 >&5 1775 mv -f conftest.er1 conftest.err 1776 fi 1777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1778 test $ac_status = 0; } && { 1779 test -z "$ac_c_werror_flag" || 1780 test ! -s conftest.err 1781 } && test -s conftest$ac_exeext && { 1782 test "$cross_compiling" = yes || 1783 test -x conftest$ac_exeext 1784 } 1785then : 1786 ac_retval=0 1787else $as_nop 1788 printf "%s\n" "$as_me: failed program was:" >&5 1789sed 's/^/| /' conftest.$ac_ext >&5 1790 1791 ac_retval=1 1792fi 1793 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1794 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1795 # interfere with the next link command; also delete a directory that is 1796 # left behind by Apple's compiler. We do this before executing the actions. 1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 as_fn_set_status $ac_retval 1800 1801} # ac_fn_c_try_link 1802 1803# ac_fn_c_check_func LINENO FUNC VAR 1804# ---------------------------------- 1805# Tests whether FUNC exists, setting the cache variable VAR accordingly 1806ac_fn_c_check_func () 1807{ 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1810printf %s "checking for $2... " >&6; } 1811if eval test \${$3+y} 1812then : 1813 printf %s "(cached) " >&6 1814else $as_nop 1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1816/* end confdefs.h. */ 1817/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1818 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1819#define $2 innocuous_$2 1820 1821/* System header to define __stub macros and hopefully few prototypes, 1822 which can conflict with char $2 (); below. */ 1823 1824#include <limits.h> 1825#undef $2 1826 1827/* Override any GCC internal prototype to avoid an error. 1828 Use char because int might match the return type of a GCC 1829 builtin and then its argument prototype would still apply. */ 1830#ifdef __cplusplus 1831extern "C" 1832#endif 1833char $2 (); 1834/* The GNU C library defines this for functions which it implements 1835 to always fail with ENOSYS. Some functions are actually named 1836 something starting with __ and the normal name is an alias. */ 1837#if defined __stub_$2 || defined __stub___$2 1838choke me 1839#endif 1840 1841int 1842main (void) 1843{ 1844return $2 (); 1845 ; 1846 return 0; 1847} 1848_ACEOF 1849if ac_fn_c_try_link "$LINENO" 1850then : 1851 eval "$3=yes" 1852else $as_nop 1853 eval "$3=no" 1854fi 1855rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1856 conftest$ac_exeext conftest.$ac_ext 1857fi 1858eval ac_res=\$$3 1859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1860printf "%s\n" "$ac_res" >&6; } 1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1862 1863} # ac_fn_c_check_func 1864 1865# ac_fn_c_try_cpp LINENO 1866# ---------------------- 1867# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1868ac_fn_c_try_cpp () 1869{ 1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1871 if { { ac_try="$ac_cpp conftest.$ac_ext" 1872case "(($ac_try" in 1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1874 *) ac_try_echo=$ac_try;; 1875esac 1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1877printf "%s\n" "$ac_try_echo"; } >&5 1878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1879 ac_status=$? 1880 if test -s conftest.err; then 1881 grep -v '^ *+' conftest.err >conftest.er1 1882 cat conftest.er1 >&5 1883 mv -f conftest.er1 conftest.err 1884 fi 1885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1886 test $ac_status = 0; } > conftest.i && { 1887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1888 test ! -s conftest.err 1889 } 1890then : 1891 ac_retval=0 1892else $as_nop 1893 printf "%s\n" "$as_me: failed program was:" >&5 1894sed 's/^/| /' conftest.$ac_ext >&5 1895 1896 ac_retval=1 1897fi 1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1899 as_fn_set_status $ac_retval 1900 1901} # ac_fn_c_try_cpp 1902ac_configure_args_raw= 1903for ac_arg 1904do 1905 case $ac_arg in 1906 *\'*) 1907 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1908 esac 1909 as_fn_append ac_configure_args_raw " '$ac_arg'" 1910done 1911 1912case $ac_configure_args_raw in 1913 *$as_nl*) 1914 ac_safe_unquote= ;; 1915 *) 1916 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1917 ac_unsafe_a="$ac_unsafe_z#~" 1918 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1919 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1920esac 1921 1922cat >config.log <<_ACEOF 1923This file contains any messages produced by compilers while 1924running configure, to aid debugging if configure makes a mistake. 1925 1926It was created by xf86-video-mga $as_me 2.0.1, which was 1927generated by GNU Autoconf 2.71. Invocation command line was 1928 1929 $ $0$ac_configure_args_raw 1930 1931_ACEOF 1932exec 5>>config.log 1933{ 1934cat <<_ASUNAME 1935## --------- ## 1936## Platform. ## 1937## --------- ## 1938 1939hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1940uname -m = `(uname -m) 2>/dev/null || echo unknown` 1941uname -r = `(uname -r) 2>/dev/null || echo unknown` 1942uname -s = `(uname -s) 2>/dev/null || echo unknown` 1943uname -v = `(uname -v) 2>/dev/null || echo unknown` 1944 1945/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1946/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1947 1948/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1949/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1950/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1951/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1952/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1953/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1954/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1955 1956_ASUNAME 1957 1958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1959for as_dir in $PATH 1960do 1961 IFS=$as_save_IFS 1962 case $as_dir in #((( 1963 '') as_dir=./ ;; 1964 */) ;; 1965 *) as_dir=$as_dir/ ;; 1966 esac 1967 printf "%s\n" "PATH: $as_dir" 1968 done 1969IFS=$as_save_IFS 1970 1971} >&5 1972 1973cat >&5 <<_ACEOF 1974 1975 1976## ----------- ## 1977## Core tests. ## 1978## ----------- ## 1979 1980_ACEOF 1981 1982 1983# Keep a trace of the command line. 1984# Strip out --no-create and --no-recursion so they do not pile up. 1985# Strip out --silent because we don't want to record it for future runs. 1986# Also quote any args containing shell meta-characters. 1987# Make two passes to allow for proper duplicate-argument suppression. 1988ac_configure_args= 1989ac_configure_args0= 1990ac_configure_args1= 1991ac_must_keep_next=false 1992for ac_pass in 1 2 1993do 1994 for ac_arg 1995 do 1996 case $ac_arg in 1997 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1999 | -silent | --silent | --silen | --sile | --sil) 2000 continue ;; 2001 *\'*) 2002 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2003 esac 2004 case $ac_pass in 2005 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2006 2) 2007 as_fn_append ac_configure_args1 " '$ac_arg'" 2008 if test $ac_must_keep_next = true; then 2009 ac_must_keep_next=false # Got value, back to normal. 2010 else 2011 case $ac_arg in 2012 *=* | --config-cache | -C | -disable-* | --disable-* \ 2013 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2014 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2015 | -with-* | --with-* | -without-* | --without-* | --x) 2016 case "$ac_configure_args0 " in 2017 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2018 esac 2019 ;; 2020 -* ) ac_must_keep_next=true ;; 2021 esac 2022 fi 2023 as_fn_append ac_configure_args " '$ac_arg'" 2024 ;; 2025 esac 2026 done 2027done 2028{ ac_configure_args0=; unset ac_configure_args0;} 2029{ ac_configure_args1=; unset ac_configure_args1;} 2030 2031# When interrupted or exit'd, cleanup temporary files, and complete 2032# config.log. We remove comments because anyway the quotes in there 2033# would cause problems or look ugly. 2034# WARNING: Use '\'' to represent an apostrophe within the trap. 2035# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2036trap 'exit_status=$? 2037 # Sanitize IFS. 2038 IFS=" "" $as_nl" 2039 # Save into config.log some information that might help in debugging. 2040 { 2041 echo 2042 2043 printf "%s\n" "## ---------------- ## 2044## Cache variables. ## 2045## ---------------- ##" 2046 echo 2047 # The following way of writing the cache mishandles newlines in values, 2048( 2049 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2050 eval ac_val=\$$ac_var 2051 case $ac_val in #( 2052 *${as_nl}*) 2053 case $ac_var in #( 2054 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2055printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2056 esac 2057 case $ac_var in #( 2058 _ | IFS | as_nl) ;; #( 2059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2060 *) { eval $ac_var=; unset $ac_var;} ;; 2061 esac ;; 2062 esac 2063 done 2064 (set) 2>&1 | 2065 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2066 *${as_nl}ac_space=\ *) 2067 sed -n \ 2068 "s/'\''/'\''\\\\'\'''\''/g; 2069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2070 ;; #( 2071 *) 2072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2073 ;; 2074 esac | 2075 sort 2076) 2077 echo 2078 2079 printf "%s\n" "## ----------------- ## 2080## Output variables. ## 2081## ----------------- ##" 2082 echo 2083 for ac_var in $ac_subst_vars 2084 do 2085 eval ac_val=\$$ac_var 2086 case $ac_val in 2087 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2088 esac 2089 printf "%s\n" "$ac_var='\''$ac_val'\''" 2090 done | sort 2091 echo 2092 2093 if test -n "$ac_subst_files"; then 2094 printf "%s\n" "## ------------------- ## 2095## File substitutions. ## 2096## ------------------- ##" 2097 echo 2098 for ac_var in $ac_subst_files 2099 do 2100 eval ac_val=\$$ac_var 2101 case $ac_val in 2102 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2103 esac 2104 printf "%s\n" "$ac_var='\''$ac_val'\''" 2105 done | sort 2106 echo 2107 fi 2108 2109 if test -s confdefs.h; then 2110 printf "%s\n" "## ----------- ## 2111## confdefs.h. ## 2112## ----------- ##" 2113 echo 2114 cat confdefs.h 2115 echo 2116 fi 2117 test "$ac_signal" != 0 && 2118 printf "%s\n" "$as_me: caught signal $ac_signal" 2119 printf "%s\n" "$as_me: exit $exit_status" 2120 } >&5 2121 rm -f core *.core core.conftest.* && 2122 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2123 exit $exit_status 2124' 0 2125for ac_signal in 1 2 13 15; do 2126 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2127done 2128ac_signal=0 2129 2130# confdefs.h avoids OS command line length limits that DEFS can exceed. 2131rm -f -r conftest* confdefs.h 2132 2133printf "%s\n" "/* confdefs.h */" > confdefs.h 2134 2135# Predefined preprocessor variables. 2136 2137printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2138 2139printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2140 2141printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2142 2143printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2144 2145printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2146 2147printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2148 2149 2150# Let the site file select an alternate cache file if it wants to. 2151# Prefer an explicitly selected file to automatically selected ones. 2152if test -n "$CONFIG_SITE"; then 2153 ac_site_files="$CONFIG_SITE" 2154elif test "x$prefix" != xNONE; then 2155 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2156else 2157 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2158fi 2159 2160for ac_site_file in $ac_site_files 2161do 2162 case $ac_site_file in #( 2163 */*) : 2164 ;; #( 2165 *) : 2166 ac_site_file=./$ac_site_file ;; 2167esac 2168 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2170printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2171 sed 's/^/| /' "$ac_site_file" >&5 2172 . "$ac_site_file" \ 2173 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2174printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2175as_fn_error $? "failed to load site script $ac_site_file 2176See \`config.log' for more details" "$LINENO" 5; } 2177 fi 2178done 2179 2180if test -r "$cache_file"; then 2181 # Some versions of bash will fail to source /dev/null (special files 2182 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2183 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2185printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2186 case $cache_file in 2187 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2188 *) . "./$cache_file";; 2189 esac 2190 fi 2191else 2192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2193printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2194 >$cache_file 2195fi 2196 2197# Test code for whether the C compiler supports C89 (global declarations) 2198ac_c_conftest_c89_globals=' 2199/* Does the compiler advertise C89 conformance? 2200 Do not test the value of __STDC__, because some compilers set it to 0 2201 while being otherwise adequately conformant. */ 2202#if !defined __STDC__ 2203# error "Compiler does not advertise C89 conformance" 2204#endif 2205 2206#include <stddef.h> 2207#include <stdarg.h> 2208struct stat; 2209/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2210struct buf { int x; }; 2211struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2212static char *e (p, i) 2213 char **p; 2214 int i; 2215{ 2216 return p[i]; 2217} 2218static char *f (char * (*g) (char **, int), char **p, ...) 2219{ 2220 char *s; 2221 va_list v; 2222 va_start (v,p); 2223 s = g (p, va_arg (v,int)); 2224 va_end (v); 2225 return s; 2226} 2227 2228/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2229 function prototypes and stuff, but not \xHH hex character constants. 2230 These do not provoke an error unfortunately, instead are silently treated 2231 as an "x". The following induces an error, until -std is added to get 2232 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2233 array size at least. It is necessary to write \x00 == 0 to get something 2234 that is true only with -std. */ 2235int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2236 2237/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2238 inside strings and character constants. */ 2239#define FOO(x) '\''x'\'' 2240int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2241 2242int test (int i, double x); 2243struct s1 {int (*f) (int a);}; 2244struct s2 {int (*f) (double a);}; 2245int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2246 int, int);' 2247 2248# Test code for whether the C compiler supports C89 (body of main). 2249ac_c_conftest_c89_main=' 2250ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2251' 2252 2253# Test code for whether the C compiler supports C99 (global declarations) 2254ac_c_conftest_c99_globals=' 2255// Does the compiler advertise C99 conformance? 2256#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2257# error "Compiler does not advertise C99 conformance" 2258#endif 2259 2260#include <stdbool.h> 2261extern int puts (const char *); 2262extern int printf (const char *, ...); 2263extern int dprintf (int, const char *, ...); 2264extern void *malloc (size_t); 2265 2266// Check varargs macros. These examples are taken from C99 6.10.3.5. 2267// dprintf is used instead of fprintf to avoid needing to declare 2268// FILE and stderr. 2269#define debug(...) dprintf (2, __VA_ARGS__) 2270#define showlist(...) puts (#__VA_ARGS__) 2271#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2272static void 2273test_varargs_macros (void) 2274{ 2275 int x = 1234; 2276 int y = 5678; 2277 debug ("Flag"); 2278 debug ("X = %d\n", x); 2279 showlist (The first, second, and third items.); 2280 report (x>y, "x is %d but y is %d", x, y); 2281} 2282 2283// Check long long types. 2284#define BIG64 18446744073709551615ull 2285#define BIG32 4294967295ul 2286#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2287#if !BIG_OK 2288 #error "your preprocessor is broken" 2289#endif 2290#if BIG_OK 2291#else 2292 #error "your preprocessor is broken" 2293#endif 2294static long long int bignum = -9223372036854775807LL; 2295static unsigned long long int ubignum = BIG64; 2296 2297struct incomplete_array 2298{ 2299 int datasize; 2300 double data[]; 2301}; 2302 2303struct named_init { 2304 int number; 2305 const wchar_t *name; 2306 double average; 2307}; 2308 2309typedef const char *ccp; 2310 2311static inline int 2312test_restrict (ccp restrict text) 2313{ 2314 // See if C++-style comments work. 2315 // Iterate through items via the restricted pointer. 2316 // Also check for declarations in for loops. 2317 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2318 continue; 2319 return 0; 2320} 2321 2322// Check varargs and va_copy. 2323static bool 2324test_varargs (const char *format, ...) 2325{ 2326 va_list args; 2327 va_start (args, format); 2328 va_list args_copy; 2329 va_copy (args_copy, args); 2330 2331 const char *str = ""; 2332 int number = 0; 2333 float fnumber = 0; 2334 2335 while (*format) 2336 { 2337 switch (*format++) 2338 { 2339 case '\''s'\'': // string 2340 str = va_arg (args_copy, const char *); 2341 break; 2342 case '\''d'\'': // int 2343 number = va_arg (args_copy, int); 2344 break; 2345 case '\''f'\'': // float 2346 fnumber = va_arg (args_copy, double); 2347 break; 2348 default: 2349 break; 2350 } 2351 } 2352 va_end (args_copy); 2353 va_end (args); 2354 2355 return *str && number && fnumber; 2356} 2357' 2358 2359# Test code for whether the C compiler supports C99 (body of main). 2360ac_c_conftest_c99_main=' 2361 // Check bool. 2362 _Bool success = false; 2363 success |= (argc != 0); 2364 2365 // Check restrict. 2366 if (test_restrict ("String literal") == 0) 2367 success = true; 2368 char *restrict newvar = "Another string"; 2369 2370 // Check varargs. 2371 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2372 test_varargs_macros (); 2373 2374 // Check flexible array members. 2375 struct incomplete_array *ia = 2376 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2377 ia->datasize = 10; 2378 for (int i = 0; i < ia->datasize; ++i) 2379 ia->data[i] = i * 1.234; 2380 2381 // Check named initializers. 2382 struct named_init ni = { 2383 .number = 34, 2384 .name = L"Test wide string", 2385 .average = 543.34343, 2386 }; 2387 2388 ni.number = 58; 2389 2390 int dynamic_array[ni.number]; 2391 dynamic_array[0] = argv[0][0]; 2392 dynamic_array[ni.number - 1] = 543; 2393 2394 // work around unused variable warnings 2395 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2396 || dynamic_array[ni.number - 1] != 543); 2397' 2398 2399# Test code for whether the C compiler supports C11 (global declarations) 2400ac_c_conftest_c11_globals=' 2401// Does the compiler advertise C11 conformance? 2402#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2403# error "Compiler does not advertise C11 conformance" 2404#endif 2405 2406// Check _Alignas. 2407char _Alignas (double) aligned_as_double; 2408char _Alignas (0) no_special_alignment; 2409extern char aligned_as_int; 2410char _Alignas (0) _Alignas (int) aligned_as_int; 2411 2412// Check _Alignof. 2413enum 2414{ 2415 int_alignment = _Alignof (int), 2416 int_array_alignment = _Alignof (int[100]), 2417 char_alignment = _Alignof (char) 2418}; 2419_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2420 2421// Check _Noreturn. 2422int _Noreturn does_not_return (void) { for (;;) continue; } 2423 2424// Check _Static_assert. 2425struct test_static_assert 2426{ 2427 int x; 2428 _Static_assert (sizeof (int) <= sizeof (long int), 2429 "_Static_assert does not work in struct"); 2430 long int y; 2431}; 2432 2433// Check UTF-8 literals. 2434#define u8 syntax error! 2435char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2436 2437// Check duplicate typedefs. 2438typedef long *long_ptr; 2439typedef long int *long_ptr; 2440typedef long_ptr long_ptr; 2441 2442// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2443struct anonymous 2444{ 2445 union { 2446 struct { int i; int j; }; 2447 struct { int k; long int l; } w; 2448 }; 2449 int m; 2450} v1; 2451' 2452 2453# Test code for whether the C compiler supports C11 (body of main). 2454ac_c_conftest_c11_main=' 2455 _Static_assert ((offsetof (struct anonymous, i) 2456 == offsetof (struct anonymous, w.k)), 2457 "Anonymous union alignment botch"); 2458 v1.i = 2; 2459 v1.w.k = 5; 2460 ok |= v1.i != 5; 2461' 2462 2463# Test code for whether the C compiler supports C11 (complete). 2464ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2465${ac_c_conftest_c99_globals} 2466${ac_c_conftest_c11_globals} 2467 2468int 2469main (int argc, char **argv) 2470{ 2471 int ok = 0; 2472 ${ac_c_conftest_c89_main} 2473 ${ac_c_conftest_c99_main} 2474 ${ac_c_conftest_c11_main} 2475 return ok; 2476} 2477" 2478 2479# Test code for whether the C compiler supports C99 (complete). 2480ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2481${ac_c_conftest_c99_globals} 2482 2483int 2484main (int argc, char **argv) 2485{ 2486 int ok = 0; 2487 ${ac_c_conftest_c89_main} 2488 ${ac_c_conftest_c99_main} 2489 return ok; 2490} 2491" 2492 2493# Test code for whether the C compiler supports C89 (complete). 2494ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2495 2496int 2497main (int argc, char **argv) 2498{ 2499 int ok = 0; 2500 ${ac_c_conftest_c89_main} 2501 return ok; 2502} 2503" 2504 2505as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2506as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2507as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2508as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2509as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2510as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2511as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2512as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2513as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2514 2515# Auxiliary files required by this configure script. 2516ac_aux_files="ltmain.sh missing config.guess config.sub compile install-sh" 2517 2518# Locations in which to look for auxiliary files. 2519ac_aux_dir_candidates="${srcdir}/." 2520 2521# Search for a directory containing all of the required auxiliary files, 2522# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2523# If we don't find one directory that contains all the files we need, 2524# we report the set of missing files from the *first* directory in 2525# $ac_aux_dir_candidates and give up. 2526ac_missing_aux_files="" 2527ac_first_candidate=: 2528printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2530as_found=false 2531for as_dir in $ac_aux_dir_candidates 2532do 2533 IFS=$as_save_IFS 2534 case $as_dir in #((( 2535 '') as_dir=./ ;; 2536 */) ;; 2537 *) as_dir=$as_dir/ ;; 2538 esac 2539 as_found=: 2540 2541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2542 ac_aux_dir_found=yes 2543 ac_install_sh= 2544 for ac_aux in $ac_aux_files 2545 do 2546 # As a special case, if "install-sh" is required, that requirement 2547 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2548 # and $ac_install_sh is set appropriately for whichever one is found. 2549 if test x"$ac_aux" = x"install-sh" 2550 then 2551 if test -f "${as_dir}install-sh"; then 2552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2553 ac_install_sh="${as_dir}install-sh -c" 2554 elif test -f "${as_dir}install.sh"; then 2555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2556 ac_install_sh="${as_dir}install.sh -c" 2557 elif test -f "${as_dir}shtool"; then 2558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2559 ac_install_sh="${as_dir}shtool install -c" 2560 else 2561 ac_aux_dir_found=no 2562 if $ac_first_candidate; then 2563 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2564 else 2565 break 2566 fi 2567 fi 2568 else 2569 if test -f "${as_dir}${ac_aux}"; then 2570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2571 else 2572 ac_aux_dir_found=no 2573 if $ac_first_candidate; then 2574 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2575 else 2576 break 2577 fi 2578 fi 2579 fi 2580 done 2581 if test "$ac_aux_dir_found" = yes; then 2582 ac_aux_dir="$as_dir" 2583 break 2584 fi 2585 ac_first_candidate=false 2586 2587 as_found=false 2588done 2589IFS=$as_save_IFS 2590if $as_found 2591then : 2592 2593else $as_nop 2594 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2595fi 2596 2597 2598# These three variables are undocumented and unsupported, 2599# and are intended to be withdrawn in a future Autoconf release. 2600# They can cause serious problems if a builder's source tree is in a directory 2601# whose full name contains unusual characters. 2602if test -f "${ac_aux_dir}config.guess"; then 2603 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2604fi 2605if test -f "${ac_aux_dir}config.sub"; then 2606 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2607fi 2608if test -f "$ac_aux_dir/configure"; then 2609 ac_configure="$SHELL ${ac_aux_dir}configure" 2610fi 2611 2612# Check that the precious variables saved in the cache have kept the same 2613# value. 2614ac_cache_corrupted=false 2615for ac_var in $ac_precious_vars; do 2616 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2617 eval ac_new_set=\$ac_env_${ac_var}_set 2618 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2619 eval ac_new_val=\$ac_env_${ac_var}_value 2620 case $ac_old_set,$ac_new_set in 2621 set,) 2622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2623printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2624 ac_cache_corrupted=: ;; 2625 ,set) 2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2627printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2628 ac_cache_corrupted=: ;; 2629 ,);; 2630 *) 2631 if test "x$ac_old_val" != "x$ac_new_val"; then 2632 # differences in whitespace do not lead to failure. 2633 ac_old_val_w=`echo x $ac_old_val` 2634 ac_new_val_w=`echo x $ac_new_val` 2635 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2637printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2638 ac_cache_corrupted=: 2639 else 2640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2641printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2642 eval $ac_var=\$ac_old_val 2643 fi 2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2645printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2647printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2648 fi;; 2649 esac 2650 # Pass precious variables to config.status. 2651 if test "$ac_new_set" = set; then 2652 case $ac_new_val in 2653 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2654 *) ac_arg=$ac_var=$ac_new_val ;; 2655 esac 2656 case " $ac_configure_args " in 2657 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2658 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2659 esac 2660 fi 2661done 2662if $ac_cache_corrupted; then 2663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2664printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2666printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2667 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2668 and start over" "$LINENO" 5 2669fi 2670## -------------------- ## 2671## Main body of script. ## 2672## -------------------- ## 2673 2674ac_ext=c 2675ac_cpp='$CPP $CPPFLAGS' 2676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2678ac_compiler_gnu=$ac_cv_c_compiler_gnu 2679 2680 2681 2682ac_config_headers="$ac_config_headers config.h" 2683 2684 2685# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 # Find a good install program. We prefer a C program (faster), 2700# so one script is as good as another. But avoid the broken or 2701# incompatible versions: 2702# SysV /etc/install, /usr/sbin/install 2703# SunOS /usr/etc/install 2704# IRIX /sbin/install 2705# AIX /bin/install 2706# AmigaOS /C/install, which installs bootblocks on floppy discs 2707# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2708# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2709# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2710# OS/2's system install, which has a completely different semantic 2711# ./install, which can be erroneously created by make from ./install.sh. 2712# Reject install programs that cannot install multiple files. 2713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2714printf %s "checking for a BSD-compatible install... " >&6; } 2715if test -z "$INSTALL"; then 2716if test ${ac_cv_path_install+y} 2717then : 2718 printf %s "(cached) " >&6 2719else $as_nop 2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2721for as_dir in $PATH 2722do 2723 IFS=$as_save_IFS 2724 case $as_dir in #((( 2725 '') as_dir=./ ;; 2726 */) ;; 2727 *) as_dir=$as_dir/ ;; 2728 esac 2729 # Account for fact that we put trailing slashes in our PATH walk. 2730case $as_dir in #(( 2731 ./ | /[cC]/* | \ 2732 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2733 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2734 /usr/ucb/* ) ;; 2735 *) 2736 # OSF1 and SCO ODT 3.0 have their own names for install. 2737 # Don't use installbsd from OSF since it installs stuff as root 2738 # by default. 2739 for ac_prog in ginstall scoinst install; do 2740 for ac_exec_ext in '' $ac_executable_extensions; do 2741 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2742 if test $ac_prog = install && 2743 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2744 # AIX install. It has an incompatible calling convention. 2745 : 2746 elif test $ac_prog = install && 2747 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2748 # program-specific install script used by HP pwplus--don't use. 2749 : 2750 else 2751 rm -rf conftest.one conftest.two conftest.dir 2752 echo one > conftest.one 2753 echo two > conftest.two 2754 mkdir conftest.dir 2755 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2756 test -s conftest.one && test -s conftest.two && 2757 test -s conftest.dir/conftest.one && 2758 test -s conftest.dir/conftest.two 2759 then 2760 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2761 break 3 2762 fi 2763 fi 2764 fi 2765 done 2766 done 2767 ;; 2768esac 2769 2770 done 2771IFS=$as_save_IFS 2772 2773rm -rf conftest.one conftest.two conftest.dir 2774 2775fi 2776 if test ${ac_cv_path_install+y}; then 2777 INSTALL=$ac_cv_path_install 2778 else 2779 # As a last resort, use the slow shell script. Don't cache a 2780 # value for INSTALL within a source directory, because that will 2781 # break other packages using the cache if that directory is 2782 # removed, or if the value is a relative name. 2783 INSTALL=$ac_install_sh 2784 fi 2785fi 2786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2787printf "%s\n" "$INSTALL" >&6; } 2788 2789# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2790# It thinks the first close brace ends the variable substitution. 2791test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2792 2793test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2794 2795test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807# Expand $ac_aux_dir to an absolute path. 2808am_aux_dir=`cd "$ac_aux_dir" && pwd` 2809 2810ac_ext=c 2811ac_cpp='$CPP $CPPFLAGS' 2812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2814ac_compiler_gnu=$ac_cv_c_compiler_gnu 2815if test -n "$ac_tool_prefix"; then 2816 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2817set dummy ${ac_tool_prefix}gcc; ac_word=$2 2818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2819printf %s "checking for $ac_word... " >&6; } 2820if test ${ac_cv_prog_CC+y} 2821then : 2822 printf %s "(cached) " >&6 2823else $as_nop 2824 if test -n "$CC"; then 2825 ac_cv_prog_CC="$CC" # Let the user override the test. 2826else 2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2828for as_dir in $PATH 2829do 2830 IFS=$as_save_IFS 2831 case $as_dir in #((( 2832 '') as_dir=./ ;; 2833 */) ;; 2834 *) as_dir=$as_dir/ ;; 2835 esac 2836 for ac_exec_ext in '' $ac_executable_extensions; do 2837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2838 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2840 break 2 2841 fi 2842done 2843 done 2844IFS=$as_save_IFS 2845 2846fi 2847fi 2848CC=$ac_cv_prog_CC 2849if test -n "$CC"; then 2850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2851printf "%s\n" "$CC" >&6; } 2852else 2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2854printf "%s\n" "no" >&6; } 2855fi 2856 2857 2858fi 2859if test -z "$ac_cv_prog_CC"; then 2860 ac_ct_CC=$CC 2861 # Extract the first word of "gcc", so it can be a program name with args. 2862set dummy gcc; ac_word=$2 2863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2864printf %s "checking for $ac_word... " >&6; } 2865if test ${ac_cv_prog_ac_ct_CC+y} 2866then : 2867 printf %s "(cached) " >&6 2868else $as_nop 2869 if test -n "$ac_ct_CC"; then 2870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2871else 2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2873for as_dir in $PATH 2874do 2875 IFS=$as_save_IFS 2876 case $as_dir in #((( 2877 '') as_dir=./ ;; 2878 */) ;; 2879 *) as_dir=$as_dir/ ;; 2880 esac 2881 for ac_exec_ext in '' $ac_executable_extensions; do 2882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2883 ac_cv_prog_ac_ct_CC="gcc" 2884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2885 break 2 2886 fi 2887done 2888 done 2889IFS=$as_save_IFS 2890 2891fi 2892fi 2893ac_ct_CC=$ac_cv_prog_ac_ct_CC 2894if test -n "$ac_ct_CC"; then 2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2896printf "%s\n" "$ac_ct_CC" >&6; } 2897else 2898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2899printf "%s\n" "no" >&6; } 2900fi 2901 2902 if test "x$ac_ct_CC" = x; then 2903 CC="" 2904 else 2905 case $cross_compiling:$ac_tool_warned in 2906yes:) 2907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2908printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2909ac_tool_warned=yes ;; 2910esac 2911 CC=$ac_ct_CC 2912 fi 2913else 2914 CC="$ac_cv_prog_CC" 2915fi 2916 2917if test -z "$CC"; then 2918 if test -n "$ac_tool_prefix"; then 2919 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2920set dummy ${ac_tool_prefix}cc; ac_word=$2 2921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2922printf %s "checking for $ac_word... " >&6; } 2923if test ${ac_cv_prog_CC+y} 2924then : 2925 printf %s "(cached) " >&6 2926else $as_nop 2927 if test -n "$CC"; then 2928 ac_cv_prog_CC="$CC" # Let the user override the test. 2929else 2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2931for as_dir in $PATH 2932do 2933 IFS=$as_save_IFS 2934 case $as_dir in #((( 2935 '') as_dir=./ ;; 2936 */) ;; 2937 *) as_dir=$as_dir/ ;; 2938 esac 2939 for ac_exec_ext in '' $ac_executable_extensions; do 2940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2941 ac_cv_prog_CC="${ac_tool_prefix}cc" 2942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2943 break 2 2944 fi 2945done 2946 done 2947IFS=$as_save_IFS 2948 2949fi 2950fi 2951CC=$ac_cv_prog_CC 2952if test -n "$CC"; then 2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2954printf "%s\n" "$CC" >&6; } 2955else 2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2957printf "%s\n" "no" >&6; } 2958fi 2959 2960 2961 fi 2962fi 2963if test -z "$CC"; then 2964 # Extract the first word of "cc", so it can be a program name with args. 2965set dummy cc; ac_word=$2 2966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2967printf %s "checking for $ac_word... " >&6; } 2968if test ${ac_cv_prog_CC+y} 2969then : 2970 printf %s "(cached) " >&6 2971else $as_nop 2972 if test -n "$CC"; then 2973 ac_cv_prog_CC="$CC" # Let the user override the test. 2974else 2975 ac_prog_rejected=no 2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2977for as_dir in $PATH 2978do 2979 IFS=$as_save_IFS 2980 case $as_dir in #((( 2981 '') as_dir=./ ;; 2982 */) ;; 2983 *) as_dir=$as_dir/ ;; 2984 esac 2985 for ac_exec_ext in '' $ac_executable_extensions; do 2986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2987 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2988 ac_prog_rejected=yes 2989 continue 2990 fi 2991 ac_cv_prog_CC="cc" 2992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2993 break 2 2994 fi 2995done 2996 done 2997IFS=$as_save_IFS 2998 2999if test $ac_prog_rejected = yes; then 3000 # We found a bogon in the path, so make sure we never use it. 3001 set dummy $ac_cv_prog_CC 3002 shift 3003 if test $# != 0; then 3004 # We chose a different compiler from the bogus one. 3005 # However, it has the same basename, so the bogon will be chosen 3006 # first if we set CC to just the basename; use the full file name. 3007 shift 3008 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3009 fi 3010fi 3011fi 3012fi 3013CC=$ac_cv_prog_CC 3014if test -n "$CC"; then 3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3016printf "%s\n" "$CC" >&6; } 3017else 3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3019printf "%s\n" "no" >&6; } 3020fi 3021 3022 3023fi 3024if test -z "$CC"; then 3025 if test -n "$ac_tool_prefix"; then 3026 for ac_prog in cl.exe 3027 do 3028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3029set dummy $ac_tool_prefix$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_CC+y} 3033then : 3034 printf %s "(cached) " >&6 3035else $as_nop 3036 if test -n "$CC"; then 3037 ac_cv_prog_CC="$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_CC="$ac_tool_prefix$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 3060CC=$ac_cv_prog_CC 3061if test -n "$CC"; then 3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3063printf "%s\n" "$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 "$CC" && break 3071 done 3072fi 3073if test -z "$CC"; then 3074 ac_ct_CC=$CC 3075 for ac_prog in cl.exe 3076do 3077 # Extract the first word of "$ac_prog", so it can be a program name with args. 3078set dummy $ac_prog; ac_word=$2 3079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3080printf %s "checking for $ac_word... " >&6; } 3081if test ${ac_cv_prog_ac_ct_CC+y} 3082then : 3083 printf %s "(cached) " >&6 3084else $as_nop 3085 if test -n "$ac_ct_CC"; then 3086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3087else 3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3089for as_dir in $PATH 3090do 3091 IFS=$as_save_IFS 3092 case $as_dir in #((( 3093 '') as_dir=./ ;; 3094 */) ;; 3095 *) as_dir=$as_dir/ ;; 3096 esac 3097 for ac_exec_ext in '' $ac_executable_extensions; do 3098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3099 ac_cv_prog_ac_ct_CC="$ac_prog" 3100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3101 break 2 3102 fi 3103done 3104 done 3105IFS=$as_save_IFS 3106 3107fi 3108fi 3109ac_ct_CC=$ac_cv_prog_ac_ct_CC 3110if test -n "$ac_ct_CC"; then 3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3112printf "%s\n" "$ac_ct_CC" >&6; } 3113else 3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3115printf "%s\n" "no" >&6; } 3116fi 3117 3118 3119 test -n "$ac_ct_CC" && break 3120done 3121 3122 if test "x$ac_ct_CC" = x; then 3123 CC="" 3124 else 3125 case $cross_compiling:$ac_tool_warned in 3126yes:) 3127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3128printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3129ac_tool_warned=yes ;; 3130esac 3131 CC=$ac_ct_CC 3132 fi 3133fi 3134 3135fi 3136if test -z "$CC"; then 3137 if test -n "$ac_tool_prefix"; then 3138 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3139set dummy ${ac_tool_prefix}clang; ac_word=$2 3140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3141printf %s "checking for $ac_word... " >&6; } 3142if test ${ac_cv_prog_CC+y} 3143then : 3144 printf %s "(cached) " >&6 3145else $as_nop 3146 if test -n "$CC"; then 3147 ac_cv_prog_CC="$CC" # Let the user override the test. 3148else 3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3150for as_dir in $PATH 3151do 3152 IFS=$as_save_IFS 3153 case $as_dir in #((( 3154 '') as_dir=./ ;; 3155 */) ;; 3156 *) as_dir=$as_dir/ ;; 3157 esac 3158 for ac_exec_ext in '' $ac_executable_extensions; do 3159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3160 ac_cv_prog_CC="${ac_tool_prefix}clang" 3161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3162 break 2 3163 fi 3164done 3165 done 3166IFS=$as_save_IFS 3167 3168fi 3169fi 3170CC=$ac_cv_prog_CC 3171if test -n "$CC"; then 3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3173printf "%s\n" "$CC" >&6; } 3174else 3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3176printf "%s\n" "no" >&6; } 3177fi 3178 3179 3180fi 3181if test -z "$ac_cv_prog_CC"; then 3182 ac_ct_CC=$CC 3183 # Extract the first word of "clang", so it can be a program name with args. 3184set dummy clang; ac_word=$2 3185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3186printf %s "checking for $ac_word... " >&6; } 3187if test ${ac_cv_prog_ac_ct_CC+y} 3188then : 3189 printf %s "(cached) " >&6 3190else $as_nop 3191 if test -n "$ac_ct_CC"; then 3192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3193else 3194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3195for as_dir in $PATH 3196do 3197 IFS=$as_save_IFS 3198 case $as_dir in #((( 3199 '') as_dir=./ ;; 3200 */) ;; 3201 *) as_dir=$as_dir/ ;; 3202 esac 3203 for ac_exec_ext in '' $ac_executable_extensions; do 3204 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3205 ac_cv_prog_ac_ct_CC="clang" 3206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3207 break 2 3208 fi 3209done 3210 done 3211IFS=$as_save_IFS 3212 3213fi 3214fi 3215ac_ct_CC=$ac_cv_prog_ac_ct_CC 3216if test -n "$ac_ct_CC"; then 3217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3218printf "%s\n" "$ac_ct_CC" >&6; } 3219else 3220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3221printf "%s\n" "no" >&6; } 3222fi 3223 3224 if test "x$ac_ct_CC" = x; then 3225 CC="" 3226 else 3227 case $cross_compiling:$ac_tool_warned in 3228yes:) 3229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3230printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3231ac_tool_warned=yes ;; 3232esac 3233 CC=$ac_ct_CC 3234 fi 3235else 3236 CC="$ac_cv_prog_CC" 3237fi 3238 3239fi 3240 3241 3242test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3243printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3244as_fn_error $? "no acceptable C compiler found in \$PATH 3245See \`config.log' for more details" "$LINENO" 5; } 3246 3247# Provide some information about the compiler. 3248printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3249set X $ac_compile 3250ac_compiler=$2 3251for ac_option in --version -v -V -qversion -version; do 3252 { { ac_try="$ac_compiler $ac_option >&5" 3253case "(($ac_try" in 3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3255 *) ac_try_echo=$ac_try;; 3256esac 3257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3258printf "%s\n" "$ac_try_echo"; } >&5 3259 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3260 ac_status=$? 3261 if test -s conftest.err; then 3262 sed '10a\ 3263... rest of stderr output deleted ... 3264 10q' conftest.err >conftest.er1 3265 cat conftest.er1 >&5 3266 fi 3267 rm -f conftest.er1 conftest.err 3268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3269 test $ac_status = 0; } 3270done 3271 3272cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3273/* end confdefs.h. */ 3274 3275int 3276main (void) 3277{ 3278 3279 ; 3280 return 0; 3281} 3282_ACEOF 3283ac_clean_files_save=$ac_clean_files 3284ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3285# Try to create an executable without -o first, disregard a.out. 3286# It will help us diagnose broken compilers, and finding out an intuition 3287# of exeext. 3288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3289printf %s "checking whether the C compiler works... " >&6; } 3290ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3291 3292# The possible output files: 3293ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3294 3295ac_rmfiles= 3296for ac_file in $ac_files 3297do 3298 case $ac_file in 3299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3300 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3301 esac 3302done 3303rm -f $ac_rmfiles 3304 3305if { { ac_try="$ac_link_default" 3306case "(($ac_try" in 3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3308 *) ac_try_echo=$ac_try;; 3309esac 3310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3311printf "%s\n" "$ac_try_echo"; } >&5 3312 (eval "$ac_link_default") 2>&5 3313 ac_status=$? 3314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3315 test $ac_status = 0; } 3316then : 3317 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3318# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3319# in a Makefile. We should not override ac_cv_exeext if it was cached, 3320# so that the user can short-circuit this test for compilers unknown to 3321# Autoconf. 3322for ac_file in $ac_files '' 3323do 3324 test -f "$ac_file" || continue 3325 case $ac_file in 3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3327 ;; 3328 [ab].out ) 3329 # We found the default executable, but exeext='' is most 3330 # certainly right. 3331 break;; 3332 *.* ) 3333 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3334 then :; else 3335 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3336 fi 3337 # We set ac_cv_exeext here because the later test for it is not 3338 # safe: cross compilers may not add the suffix if given an `-o' 3339 # argument, so we may need to know it at that point already. 3340 # Even if this section looks crufty: it has the advantage of 3341 # actually working. 3342 break;; 3343 * ) 3344 break;; 3345 esac 3346done 3347test "$ac_cv_exeext" = no && ac_cv_exeext= 3348 3349else $as_nop 3350 ac_file='' 3351fi 3352if test -z "$ac_file" 3353then : 3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3355printf "%s\n" "no" >&6; } 3356printf "%s\n" "$as_me: failed program was:" >&5 3357sed 's/^/| /' conftest.$ac_ext >&5 3358 3359{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3360printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3361as_fn_error 77 "C compiler cannot create executables 3362See \`config.log' for more details" "$LINENO" 5; } 3363else $as_nop 3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3365printf "%s\n" "yes" >&6; } 3366fi 3367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3368printf %s "checking for C compiler default output file name... " >&6; } 3369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3370printf "%s\n" "$ac_file" >&6; } 3371ac_exeext=$ac_cv_exeext 3372 3373rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3374ac_clean_files=$ac_clean_files_save 3375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3376printf %s "checking for suffix of executables... " >&6; } 3377if { { ac_try="$ac_link" 3378case "(($ac_try" in 3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3380 *) ac_try_echo=$ac_try;; 3381esac 3382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3383printf "%s\n" "$ac_try_echo"; } >&5 3384 (eval "$ac_link") 2>&5 3385 ac_status=$? 3386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3387 test $ac_status = 0; } 3388then : 3389 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3390# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3391# work properly (i.e., refer to `conftest.exe'), while it won't with 3392# `rm'. 3393for ac_file in conftest.exe conftest conftest.*; do 3394 test -f "$ac_file" || continue 3395 case $ac_file in 3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3397 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3398 break;; 3399 * ) break;; 3400 esac 3401done 3402else $as_nop 3403 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3404printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3405as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3406See \`config.log' for more details" "$LINENO" 5; } 3407fi 3408rm -f conftest conftest$ac_cv_exeext 3409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3410printf "%s\n" "$ac_cv_exeext" >&6; } 3411 3412rm -f conftest.$ac_ext 3413EXEEXT=$ac_cv_exeext 3414ac_exeext=$EXEEXT 3415cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3416/* end confdefs.h. */ 3417#include <stdio.h> 3418int 3419main (void) 3420{ 3421FILE *f = fopen ("conftest.out", "w"); 3422 return ferror (f) || fclose (f) != 0; 3423 3424 ; 3425 return 0; 3426} 3427_ACEOF 3428ac_clean_files="$ac_clean_files conftest.out" 3429# Check that the compiler produces executables we can run. If not, either 3430# the compiler is broken, or we cross compile. 3431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3432printf %s "checking whether we are cross compiling... " >&6; } 3433if test "$cross_compiling" != yes; then 3434 { { ac_try="$ac_link" 3435case "(($ac_try" in 3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3437 *) ac_try_echo=$ac_try;; 3438esac 3439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3440printf "%s\n" "$ac_try_echo"; } >&5 3441 (eval "$ac_link") 2>&5 3442 ac_status=$? 3443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3444 test $ac_status = 0; } 3445 if { ac_try='./conftest$ac_cv_exeext' 3446 { { case "(($ac_try" in 3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3448 *) ac_try_echo=$ac_try;; 3449esac 3450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3451printf "%s\n" "$ac_try_echo"; } >&5 3452 (eval "$ac_try") 2>&5 3453 ac_status=$? 3454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3455 test $ac_status = 0; }; }; then 3456 cross_compiling=no 3457 else 3458 if test "$cross_compiling" = maybe; then 3459 cross_compiling=yes 3460 else 3461 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3462printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3463as_fn_error 77 "cannot run C compiled programs. 3464If you meant to cross compile, use \`--host'. 3465See \`config.log' for more details" "$LINENO" 5; } 3466 fi 3467 fi 3468fi 3469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3470printf "%s\n" "$cross_compiling" >&6; } 3471 3472rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3473ac_clean_files=$ac_clean_files_save 3474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3475printf %s "checking for suffix of object files... " >&6; } 3476if test ${ac_cv_objext+y} 3477then : 3478 printf %s "(cached) " >&6 3479else $as_nop 3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481/* end confdefs.h. */ 3482 3483int 3484main (void) 3485{ 3486 3487 ; 3488 return 0; 3489} 3490_ACEOF 3491rm -f conftest.o conftest.obj 3492if { { ac_try="$ac_compile" 3493case "(($ac_try" in 3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3495 *) ac_try_echo=$ac_try;; 3496esac 3497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3498printf "%s\n" "$ac_try_echo"; } >&5 3499 (eval "$ac_compile") 2>&5 3500 ac_status=$? 3501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3502 test $ac_status = 0; } 3503then : 3504 for ac_file in conftest.o conftest.obj conftest.*; do 3505 test -f "$ac_file" || continue; 3506 case $ac_file in 3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3508 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3509 break;; 3510 esac 3511done 3512else $as_nop 3513 printf "%s\n" "$as_me: failed program was:" >&5 3514sed 's/^/| /' conftest.$ac_ext >&5 3515 3516{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3517printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3518as_fn_error $? "cannot compute suffix of object files: cannot compile 3519See \`config.log' for more details" "$LINENO" 5; } 3520fi 3521rm -f conftest.$ac_cv_objext conftest.$ac_ext 3522fi 3523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3524printf "%s\n" "$ac_cv_objext" >&6; } 3525OBJEXT=$ac_cv_objext 3526ac_objext=$OBJEXT 3527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3528printf %s "checking whether the compiler supports GNU C... " >&6; } 3529if test ${ac_cv_c_compiler_gnu+y} 3530then : 3531 printf %s "(cached) " >&6 3532else $as_nop 3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3534/* end confdefs.h. */ 3535 3536int 3537main (void) 3538{ 3539#ifndef __GNUC__ 3540 choke me 3541#endif 3542 3543 ; 3544 return 0; 3545} 3546_ACEOF 3547if ac_fn_c_try_compile "$LINENO" 3548then : 3549 ac_compiler_gnu=yes 3550else $as_nop 3551 ac_compiler_gnu=no 3552fi 3553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3554ac_cv_c_compiler_gnu=$ac_compiler_gnu 3555 3556fi 3557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3558printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3559ac_compiler_gnu=$ac_cv_c_compiler_gnu 3560 3561if test $ac_compiler_gnu = yes; then 3562 GCC=yes 3563else 3564 GCC= 3565fi 3566ac_test_CFLAGS=${CFLAGS+y} 3567ac_save_CFLAGS=$CFLAGS 3568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3569printf %s "checking whether $CC accepts -g... " >&6; } 3570if test ${ac_cv_prog_cc_g+y} 3571then : 3572 printf %s "(cached) " >&6 3573else $as_nop 3574 ac_save_c_werror_flag=$ac_c_werror_flag 3575 ac_c_werror_flag=yes 3576 ac_cv_prog_cc_g=no 3577 CFLAGS="-g" 3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3579/* end confdefs.h. */ 3580 3581int 3582main (void) 3583{ 3584 3585 ; 3586 return 0; 3587} 3588_ACEOF 3589if ac_fn_c_try_compile "$LINENO" 3590then : 3591 ac_cv_prog_cc_g=yes 3592else $as_nop 3593 CFLAGS="" 3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3595/* end confdefs.h. */ 3596 3597int 3598main (void) 3599{ 3600 3601 ; 3602 return 0; 3603} 3604_ACEOF 3605if ac_fn_c_try_compile "$LINENO" 3606then : 3607 3608else $as_nop 3609 ac_c_werror_flag=$ac_save_c_werror_flag 3610 CFLAGS="-g" 3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3612/* end confdefs.h. */ 3613 3614int 3615main (void) 3616{ 3617 3618 ; 3619 return 0; 3620} 3621_ACEOF 3622if ac_fn_c_try_compile "$LINENO" 3623then : 3624 ac_cv_prog_cc_g=yes 3625fi 3626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3627fi 3628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3629fi 3630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3631 ac_c_werror_flag=$ac_save_c_werror_flag 3632fi 3633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3634printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3635if test $ac_test_CFLAGS; then 3636 CFLAGS=$ac_save_CFLAGS 3637elif test $ac_cv_prog_cc_g = yes; then 3638 if test "$GCC" = yes; then 3639 CFLAGS="-g -O2" 3640 else 3641 CFLAGS="-g" 3642 fi 3643else 3644 if test "$GCC" = yes; then 3645 CFLAGS="-O2" 3646 else 3647 CFLAGS= 3648 fi 3649fi 3650ac_prog_cc_stdc=no 3651if test x$ac_prog_cc_stdc = xno 3652then : 3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3654printf %s "checking for $CC option to enable C11 features... " >&6; } 3655if test ${ac_cv_prog_cc_c11+y} 3656then : 3657 printf %s "(cached) " >&6 3658else $as_nop 3659 ac_cv_prog_cc_c11=no 3660ac_save_CC=$CC 3661cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3662/* end confdefs.h. */ 3663$ac_c_conftest_c11_program 3664_ACEOF 3665for ac_arg in '' -std=gnu11 3666do 3667 CC="$ac_save_CC $ac_arg" 3668 if ac_fn_c_try_compile "$LINENO" 3669then : 3670 ac_cv_prog_cc_c11=$ac_arg 3671fi 3672rm -f core conftest.err conftest.$ac_objext conftest.beam 3673 test "x$ac_cv_prog_cc_c11" != "xno" && break 3674done 3675rm -f conftest.$ac_ext 3676CC=$ac_save_CC 3677fi 3678 3679if test "x$ac_cv_prog_cc_c11" = xno 3680then : 3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3682printf "%s\n" "unsupported" >&6; } 3683else $as_nop 3684 if test "x$ac_cv_prog_cc_c11" = x 3685then : 3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3687printf "%s\n" "none needed" >&6; } 3688else $as_nop 3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3690printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3691 CC="$CC $ac_cv_prog_cc_c11" 3692fi 3693 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3694 ac_prog_cc_stdc=c11 3695fi 3696fi 3697if test x$ac_prog_cc_stdc = xno 3698then : 3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3700printf %s "checking for $CC option to enable C99 features... " >&6; } 3701if test ${ac_cv_prog_cc_c99+y} 3702then : 3703 printf %s "(cached) " >&6 3704else $as_nop 3705 ac_cv_prog_cc_c99=no 3706ac_save_CC=$CC 3707cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3708/* end confdefs.h. */ 3709$ac_c_conftest_c99_program 3710_ACEOF 3711for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3712do 3713 CC="$ac_save_CC $ac_arg" 3714 if ac_fn_c_try_compile "$LINENO" 3715then : 3716 ac_cv_prog_cc_c99=$ac_arg 3717fi 3718rm -f core conftest.err conftest.$ac_objext conftest.beam 3719 test "x$ac_cv_prog_cc_c99" != "xno" && break 3720done 3721rm -f conftest.$ac_ext 3722CC=$ac_save_CC 3723fi 3724 3725if test "x$ac_cv_prog_cc_c99" = xno 3726then : 3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3728printf "%s\n" "unsupported" >&6; } 3729else $as_nop 3730 if test "x$ac_cv_prog_cc_c99" = x 3731then : 3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3733printf "%s\n" "none needed" >&6; } 3734else $as_nop 3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3736printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3737 CC="$CC $ac_cv_prog_cc_c99" 3738fi 3739 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3740 ac_prog_cc_stdc=c99 3741fi 3742fi 3743if test x$ac_prog_cc_stdc = xno 3744then : 3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3746printf %s "checking for $CC option to enable C89 features... " >&6; } 3747if test ${ac_cv_prog_cc_c89+y} 3748then : 3749 printf %s "(cached) " >&6 3750else $as_nop 3751 ac_cv_prog_cc_c89=no 3752ac_save_CC=$CC 3753cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3754/* end confdefs.h. */ 3755$ac_c_conftest_c89_program 3756_ACEOF 3757for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3758do 3759 CC="$ac_save_CC $ac_arg" 3760 if ac_fn_c_try_compile "$LINENO" 3761then : 3762 ac_cv_prog_cc_c89=$ac_arg 3763fi 3764rm -f core conftest.err conftest.$ac_objext conftest.beam 3765 test "x$ac_cv_prog_cc_c89" != "xno" && break 3766done 3767rm -f conftest.$ac_ext 3768CC=$ac_save_CC 3769fi 3770 3771if test "x$ac_cv_prog_cc_c89" = xno 3772then : 3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3774printf "%s\n" "unsupported" >&6; } 3775else $as_nop 3776 if test "x$ac_cv_prog_cc_c89" = x 3777then : 3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3779printf "%s\n" "none needed" >&6; } 3780else $as_nop 3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3782printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3783 CC="$CC $ac_cv_prog_cc_c89" 3784fi 3785 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3786 ac_prog_cc_stdc=c89 3787fi 3788fi 3789 3790ac_ext=c 3791ac_cpp='$CPP $CPPFLAGS' 3792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3794ac_compiler_gnu=$ac_cv_c_compiler_gnu 3795 3796 3797 ac_ext=c 3798ac_cpp='$CPP $CPPFLAGS' 3799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3801ac_compiler_gnu=$ac_cv_c_compiler_gnu 3802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3803printf %s "checking whether $CC understands -c and -o together... " >&6; } 3804if test ${am_cv_prog_cc_c_o+y} 3805then : 3806 printf %s "(cached) " >&6 3807else $as_nop 3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3809/* end confdefs.h. */ 3810 3811int 3812main (void) 3813{ 3814 3815 ; 3816 return 0; 3817} 3818_ACEOF 3819 # Make sure it works both with $CC and with simple cc. 3820 # Following AC_PROG_CC_C_O, we do the test twice because some 3821 # compilers refuse to overwrite an existing .o file with -o, 3822 # though they will create one. 3823 am_cv_prog_cc_c_o=yes 3824 for am_i in 1 2; do 3825 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3826 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3827 ac_status=$? 3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3829 (exit $ac_status); } \ 3830 && test -f conftest2.$ac_objext; then 3831 : OK 3832 else 3833 am_cv_prog_cc_c_o=no 3834 break 3835 fi 3836 done 3837 rm -f core conftest* 3838 unset am_i 3839fi 3840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3841printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3842if test "$am_cv_prog_cc_c_o" != yes; then 3843 # Losing compiler, so override with the script. 3844 # FIXME: It is wrong to rewrite CC. 3845 # But if we don't then we get into trouble of one sort or another. 3846 # A longer-term fix would be to have automake use am__CC in this case, 3847 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3848 CC="$am_aux_dir/compile $CC" 3849fi 3850ac_ext=c 3851ac_cpp='$CPP $CPPFLAGS' 3852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3854ac_compiler_gnu=$ac_cv_c_compiler_gnu 3855 3856 3857 3858 3859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 3860printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 3861if test ${ac_cv_c_undeclared_builtin_options+y} 3862then : 3863 printf %s "(cached) " >&6 3864else $as_nop 3865 ac_save_CFLAGS=$CFLAGS 3866 ac_cv_c_undeclared_builtin_options='cannot detect' 3867 for ac_arg in '' -fno-builtin; do 3868 CFLAGS="$ac_save_CFLAGS $ac_arg" 3869 # This test program should *not* compile successfully. 3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3871/* end confdefs.h. */ 3872 3873int 3874main (void) 3875{ 3876(void) strchr; 3877 ; 3878 return 0; 3879} 3880_ACEOF 3881if ac_fn_c_try_compile "$LINENO" 3882then : 3883 3884else $as_nop 3885 # This test program should compile successfully. 3886 # No library function is consistently available on 3887 # freestanding implementations, so test against a dummy 3888 # declaration. Include always-available headers on the 3889 # off chance that they somehow elicit warnings. 3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3891/* end confdefs.h. */ 3892#include <float.h> 3893#include <limits.h> 3894#include <stdarg.h> 3895#include <stddef.h> 3896extern void ac_decl (int, char *); 3897 3898int 3899main (void) 3900{ 3901(void) ac_decl (0, (char *) 0); 3902 (void) ac_decl; 3903 3904 ; 3905 return 0; 3906} 3907_ACEOF 3908if ac_fn_c_try_compile "$LINENO" 3909then : 3910 if test x"$ac_arg" = x 3911then : 3912 ac_cv_c_undeclared_builtin_options='none needed' 3913else $as_nop 3914 ac_cv_c_undeclared_builtin_options=$ac_arg 3915fi 3916 break 3917fi 3918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3919fi 3920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3921 done 3922 CFLAGS=$ac_save_CFLAGS 3923 3924fi 3925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 3926printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 3927 case $ac_cv_c_undeclared_builtin_options in #( 3928 'cannot detect') : 3929 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3930printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3931as_fn_error $? "cannot make $CC report undeclared builtins 3932See \`config.log' for more details" "$LINENO" 5; } ;; #( 3933 'none needed') : 3934 ac_c_undeclared_builtin_options='' ;; #( 3935 *) : 3936 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 3937esac 3938 3939ac_header= ac_cache= 3940for ac_item in $ac_header_c_list 3941do 3942 if test $ac_cache; then 3943 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3944 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3945 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3946 fi 3947 ac_header= ac_cache= 3948 elif test $ac_header; then 3949 ac_cache=$ac_item 3950 else 3951 ac_header=$ac_item 3952 fi 3953done 3954 3955 3956 3957 3958 3959 3960 3961 3962if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3963then : 3964 3965printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3966 3967fi 3968 3969 3970 3971 3972ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 3973if test "x$ac_cv_have_decl___clang__" = xyes 3974then : 3975 CLANGCC="yes" 3976else $as_nop 3977 CLANGCC="no" 3978fi 3979ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 3980if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 3981then : 3982 INTELCC="yes" 3983else $as_nop 3984 INTELCC="no" 3985fi 3986ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 3987if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 3988then : 3989 SUNCC="yes" 3990else $as_nop 3991 SUNCC="no" 3992fi 3993 3994 3995 3996 3997 3998 3999 4000 4001if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4002 if test -n "$ac_tool_prefix"; then 4003 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4004set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4006printf %s "checking for $ac_word... " >&6; } 4007if test ${ac_cv_path_PKG_CONFIG+y} 4008then : 4009 printf %s "(cached) " >&6 4010else $as_nop 4011 case $PKG_CONFIG in 4012 [\\/]* | ?:[\\/]*) 4013 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4014 ;; 4015 *) 4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4017for as_dir in $PATH 4018do 4019 IFS=$as_save_IFS 4020 case $as_dir in #((( 4021 '') as_dir=./ ;; 4022 */) ;; 4023 *) as_dir=$as_dir/ ;; 4024 esac 4025 for ac_exec_ext in '' $ac_executable_extensions; do 4026 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4027 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4029 break 2 4030 fi 4031done 4032 done 4033IFS=$as_save_IFS 4034 4035 ;; 4036esac 4037fi 4038PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4039if test -n "$PKG_CONFIG"; then 4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4041printf "%s\n" "$PKG_CONFIG" >&6; } 4042else 4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4044printf "%s\n" "no" >&6; } 4045fi 4046 4047 4048fi 4049if test -z "$ac_cv_path_PKG_CONFIG"; then 4050 ac_pt_PKG_CONFIG=$PKG_CONFIG 4051 # Extract the first word of "pkg-config", so it can be a program name with args. 4052set dummy pkg-config; ac_word=$2 4053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4054printf %s "checking for $ac_word... " >&6; } 4055if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4056then : 4057 printf %s "(cached) " >&6 4058else $as_nop 4059 case $ac_pt_PKG_CONFIG in 4060 [\\/]* | ?:[\\/]*) 4061 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4062 ;; 4063 *) 4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4065for as_dir in $PATH 4066do 4067 IFS=$as_save_IFS 4068 case $as_dir in #((( 4069 '') as_dir=./ ;; 4070 */) ;; 4071 *) as_dir=$as_dir/ ;; 4072 esac 4073 for ac_exec_ext in '' $ac_executable_extensions; do 4074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4075 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4077 break 2 4078 fi 4079done 4080 done 4081IFS=$as_save_IFS 4082 4083 ;; 4084esac 4085fi 4086ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4087if test -n "$ac_pt_PKG_CONFIG"; then 4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4089printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4090else 4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4092printf "%s\n" "no" >&6; } 4093fi 4094 4095 if test "x$ac_pt_PKG_CONFIG" = x; then 4096 PKG_CONFIG="" 4097 else 4098 case $cross_compiling:$ac_tool_warned in 4099yes:) 4100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4101printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4102ac_tool_warned=yes ;; 4103esac 4104 PKG_CONFIG=$ac_pt_PKG_CONFIG 4105 fi 4106else 4107 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4108fi 4109 4110fi 4111if test -n "$PKG_CONFIG"; then 4112 _pkg_min_version=0.9.0 4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4114printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4115 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4117printf "%s\n" "yes" >&6; } 4118 else 4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4120printf "%s\n" "no" >&6; } 4121 PKG_CONFIG="" 4122 fi 4123fi 4124 4125 4126 # Make sure we can run config.sub. 4127$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4128 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4129 4130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4131printf %s "checking build system type... " >&6; } 4132if test ${ac_cv_build+y} 4133then : 4134 printf %s "(cached) " >&6 4135else $as_nop 4136 ac_build_alias=$build_alias 4137test "x$ac_build_alias" = x && 4138 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4139test "x$ac_build_alias" = x && 4140 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4141ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4142 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4143 4144fi 4145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4146printf "%s\n" "$ac_cv_build" >&6; } 4147case $ac_cv_build in 4148*-*-*) ;; 4149*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4150esac 4151build=$ac_cv_build 4152ac_save_IFS=$IFS; IFS='-' 4153set x $ac_cv_build 4154shift 4155build_cpu=$1 4156build_vendor=$2 4157shift; shift 4158# Remember, the first character of IFS is used to create $*, 4159# except with old shells: 4160build_os=$* 4161IFS=$ac_save_IFS 4162case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4163 4164 4165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4166printf %s "checking host system type... " >&6; } 4167if test ${ac_cv_host+y} 4168then : 4169 printf %s "(cached) " >&6 4170else $as_nop 4171 if test "x$host_alias" = x; then 4172 ac_cv_host=$ac_cv_build 4173else 4174 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4175 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4176fi 4177 4178fi 4179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4180printf "%s\n" "$ac_cv_host" >&6; } 4181case $ac_cv_host in 4182*-*-*) ;; 4183*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4184esac 4185host=$ac_cv_host 4186ac_save_IFS=$IFS; IFS='-' 4187set x $ac_cv_host 4188shift 4189host_cpu=$1 4190host_vendor=$2 4191shift; shift 4192# Remember, the first character of IFS is used to create $*, 4193# except with old shells: 4194host_os=$* 4195IFS=$ac_save_IFS 4196case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4197 4198 4199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4200printf %s "checking for a sed that does not truncate output... " >&6; } 4201if test ${ac_cv_path_SED+y} 4202then : 4203 printf %s "(cached) " >&6 4204else $as_nop 4205 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4206 for ac_i in 1 2 3 4 5 6 7; do 4207 ac_script="$ac_script$as_nl$ac_script" 4208 done 4209 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4210 { ac_script=; unset ac_script;} 4211 if test -z "$SED"; then 4212 ac_path_SED_found=false 4213 # Loop through the user's path and test for each of PROGNAME-LIST 4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4215for as_dir in $PATH 4216do 4217 IFS=$as_save_IFS 4218 case $as_dir in #((( 4219 '') as_dir=./ ;; 4220 */) ;; 4221 *) as_dir=$as_dir/ ;; 4222 esac 4223 for ac_prog in sed gsed 4224 do 4225 for ac_exec_ext in '' $ac_executable_extensions; do 4226 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4227 as_fn_executable_p "$ac_path_SED" || continue 4228# Check for GNU ac_path_SED and select it if it is found. 4229 # Check for GNU $ac_path_SED 4230case `"$ac_path_SED" --version 2>&1` in 4231*GNU*) 4232 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4233*) 4234 ac_count=0 4235 printf %s 0123456789 >"conftest.in" 4236 while : 4237 do 4238 cat "conftest.in" "conftest.in" >"conftest.tmp" 4239 mv "conftest.tmp" "conftest.in" 4240 cp "conftest.in" "conftest.nl" 4241 printf "%s\n" '' >> "conftest.nl" 4242 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4244 as_fn_arith $ac_count + 1 && ac_count=$as_val 4245 if test $ac_count -gt ${ac_path_SED_max-0}; then 4246 # Best one so far, save it but keep looking for a better one 4247 ac_cv_path_SED="$ac_path_SED" 4248 ac_path_SED_max=$ac_count 4249 fi 4250 # 10*(2^10) chars as input seems more than enough 4251 test $ac_count -gt 10 && break 4252 done 4253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4254esac 4255 4256 $ac_path_SED_found && break 3 4257 done 4258 done 4259 done 4260IFS=$as_save_IFS 4261 if test -z "$ac_cv_path_SED"; then 4262 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4263 fi 4264else 4265 ac_cv_path_SED=$SED 4266fi 4267 4268fi 4269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4270printf "%s\n" "$ac_cv_path_SED" >&6; } 4271 SED="$ac_cv_path_SED" 4272 rm -f conftest.sed 4273 4274 4275 4276 4277 4278 4279# Check whether --enable-selective-werror was given. 4280if test ${enable_selective_werror+y} 4281then : 4282 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4283else $as_nop 4284 SELECTIVE_WERROR=yes 4285fi 4286 4287 4288 4289 4290 4291# -v is too short to test reliably with XORG_TESTSET_CFLAG 4292if test "x$SUNCC" = "xyes"; then 4293 BASE_CFLAGS="-v" 4294else 4295 BASE_CFLAGS="" 4296fi 4297 4298# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312xorg_testset_save_CFLAGS="$CFLAGS" 4313 4314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4317printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4318if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4319then : 4320 printf %s "(cached) " >&6 4321else $as_nop 4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4323/* end confdefs.h. */ 4324int i; 4325_ACEOF 4326if ac_fn_c_try_compile "$LINENO" 4327then : 4328 xorg_cv_cc_flag_unknown_warning_option=yes 4329else $as_nop 4330 xorg_cv_cc_flag_unknown_warning_option=no 4331fi 4332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4333fi 4334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4335printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4337 CFLAGS="$xorg_testset_save_CFLAGS" 4338fi 4339 4340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4343 fi 4344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4346printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4347if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4348then : 4349 printf %s "(cached) " >&6 4350else $as_nop 4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4352/* end confdefs.h. */ 4353int i; 4354_ACEOF 4355if ac_fn_c_try_compile "$LINENO" 4356then : 4357 xorg_cv_cc_flag_unused_command_line_argument=yes 4358else $as_nop 4359 xorg_cv_cc_flag_unused_command_line_argument=no 4360fi 4361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4362fi 4363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4364printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4366 CFLAGS="$xorg_testset_save_CFLAGS" 4367fi 4368 4369found="no" 4370 4371 if test $found = "no" ; then 4372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4374 fi 4375 4376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4378 fi 4379 4380 CFLAGS="$CFLAGS -Wall" 4381 4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4383printf %s "checking if $CC supports -Wall... " >&6; } 4384 cacheid=xorg_cv_cc_flag__Wall 4385 if eval test \${$cacheid+y} 4386then : 4387 printf %s "(cached) " >&6 4388else $as_nop 4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4390/* end confdefs.h. */ 4391int i; 4392int 4393main (void) 4394{ 4395 4396 ; 4397 return 0; 4398} 4399_ACEOF 4400if ac_fn_c_try_link "$LINENO" 4401then : 4402 eval $cacheid=yes 4403else $as_nop 4404 eval $cacheid=no 4405fi 4406rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4407 conftest$ac_exeext conftest.$ac_ext 4408fi 4409 4410 4411 CFLAGS="$xorg_testset_save_CFLAGS" 4412 4413 eval supported=\$$cacheid 4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4415printf "%s\n" "$supported" >&6; } 4416 if test "$supported" = "yes" ; then 4417 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4418 found="yes" 4419 fi 4420 fi 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436xorg_testset_save_CFLAGS="$CFLAGS" 4437 4438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4441printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4442if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4443then : 4444 printf %s "(cached) " >&6 4445else $as_nop 4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4447/* end confdefs.h. */ 4448int i; 4449_ACEOF 4450if ac_fn_c_try_compile "$LINENO" 4451then : 4452 xorg_cv_cc_flag_unknown_warning_option=yes 4453else $as_nop 4454 xorg_cv_cc_flag_unknown_warning_option=no 4455fi 4456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4457fi 4458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4459printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4461 CFLAGS="$xorg_testset_save_CFLAGS" 4462fi 4463 4464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4467 fi 4468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4470printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4471if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4472then : 4473 printf %s "(cached) " >&6 4474else $as_nop 4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4476/* end confdefs.h. */ 4477int i; 4478_ACEOF 4479if ac_fn_c_try_compile "$LINENO" 4480then : 4481 xorg_cv_cc_flag_unused_command_line_argument=yes 4482else $as_nop 4483 xorg_cv_cc_flag_unused_command_line_argument=no 4484fi 4485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4486fi 4487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4488printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4490 CFLAGS="$xorg_testset_save_CFLAGS" 4491fi 4492 4493found="no" 4494 4495 if test $found = "no" ; then 4496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4498 fi 4499 4500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4502 fi 4503 4504 CFLAGS="$CFLAGS -Wpointer-arith" 4505 4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4507printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 4508 cacheid=xorg_cv_cc_flag__Wpointer_arith 4509 if eval test \${$cacheid+y} 4510then : 4511 printf %s "(cached) " >&6 4512else $as_nop 4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4514/* end confdefs.h. */ 4515int i; 4516int 4517main (void) 4518{ 4519 4520 ; 4521 return 0; 4522} 4523_ACEOF 4524if ac_fn_c_try_link "$LINENO" 4525then : 4526 eval $cacheid=yes 4527else $as_nop 4528 eval $cacheid=no 4529fi 4530rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4531 conftest$ac_exeext conftest.$ac_ext 4532fi 4533 4534 4535 CFLAGS="$xorg_testset_save_CFLAGS" 4536 4537 eval supported=\$$cacheid 4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4539printf "%s\n" "$supported" >&6; } 4540 if test "$supported" = "yes" ; then 4541 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4542 found="yes" 4543 fi 4544 fi 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560xorg_testset_save_CFLAGS="$CFLAGS" 4561 4562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4565printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4566if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4567then : 4568 printf %s "(cached) " >&6 4569else $as_nop 4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4571/* end confdefs.h. */ 4572int i; 4573_ACEOF 4574if ac_fn_c_try_compile "$LINENO" 4575then : 4576 xorg_cv_cc_flag_unknown_warning_option=yes 4577else $as_nop 4578 xorg_cv_cc_flag_unknown_warning_option=no 4579fi 4580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4581fi 4582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4583printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4585 CFLAGS="$xorg_testset_save_CFLAGS" 4586fi 4587 4588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4591 fi 4592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4594printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4595if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4596then : 4597 printf %s "(cached) " >&6 4598else $as_nop 4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4600/* end confdefs.h. */ 4601int i; 4602_ACEOF 4603if ac_fn_c_try_compile "$LINENO" 4604then : 4605 xorg_cv_cc_flag_unused_command_line_argument=yes 4606else $as_nop 4607 xorg_cv_cc_flag_unused_command_line_argument=no 4608fi 4609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4610fi 4611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4612printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4613 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4614 CFLAGS="$xorg_testset_save_CFLAGS" 4615fi 4616 4617found="no" 4618 4619 if test $found = "no" ; then 4620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4622 fi 4623 4624 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4626 fi 4627 4628 CFLAGS="$CFLAGS -Wmissing-declarations" 4629 4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4631printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 4632 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4633 if eval test \${$cacheid+y} 4634then : 4635 printf %s "(cached) " >&6 4636else $as_nop 4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4638/* end confdefs.h. */ 4639int i; 4640int 4641main (void) 4642{ 4643 4644 ; 4645 return 0; 4646} 4647_ACEOF 4648if ac_fn_c_try_link "$LINENO" 4649then : 4650 eval $cacheid=yes 4651else $as_nop 4652 eval $cacheid=no 4653fi 4654rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4655 conftest$ac_exeext conftest.$ac_ext 4656fi 4657 4658 4659 CFLAGS="$xorg_testset_save_CFLAGS" 4660 4661 eval supported=\$$cacheid 4662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4663printf "%s\n" "$supported" >&6; } 4664 if test "$supported" = "yes" ; then 4665 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4666 found="yes" 4667 fi 4668 fi 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684xorg_testset_save_CFLAGS="$CFLAGS" 4685 4686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4689printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4690if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4691then : 4692 printf %s "(cached) " >&6 4693else $as_nop 4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4695/* end confdefs.h. */ 4696int i; 4697_ACEOF 4698if ac_fn_c_try_compile "$LINENO" 4699then : 4700 xorg_cv_cc_flag_unknown_warning_option=yes 4701else $as_nop 4702 xorg_cv_cc_flag_unknown_warning_option=no 4703fi 4704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4705fi 4706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4707printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4709 CFLAGS="$xorg_testset_save_CFLAGS" 4710fi 4711 4712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4715 fi 4716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4718printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4719if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4720then : 4721 printf %s "(cached) " >&6 4722else $as_nop 4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4724/* end confdefs.h. */ 4725int i; 4726_ACEOF 4727if ac_fn_c_try_compile "$LINENO" 4728then : 4729 xorg_cv_cc_flag_unused_command_line_argument=yes 4730else $as_nop 4731 xorg_cv_cc_flag_unused_command_line_argument=no 4732fi 4733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4734fi 4735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4736printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4738 CFLAGS="$xorg_testset_save_CFLAGS" 4739fi 4740 4741found="no" 4742 4743 if test $found = "no" ; then 4744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4746 fi 4747 4748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4750 fi 4751 4752 CFLAGS="$CFLAGS -Wformat=2" 4753 4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 4755printf %s "checking if $CC supports -Wformat=2... " >&6; } 4756 cacheid=xorg_cv_cc_flag__Wformat_2 4757 if eval test \${$cacheid+y} 4758then : 4759 printf %s "(cached) " >&6 4760else $as_nop 4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4762/* end confdefs.h. */ 4763int i; 4764int 4765main (void) 4766{ 4767 4768 ; 4769 return 0; 4770} 4771_ACEOF 4772if ac_fn_c_try_link "$LINENO" 4773then : 4774 eval $cacheid=yes 4775else $as_nop 4776 eval $cacheid=no 4777fi 4778rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4779 conftest$ac_exeext conftest.$ac_ext 4780fi 4781 4782 4783 CFLAGS="$xorg_testset_save_CFLAGS" 4784 4785 eval supported=\$$cacheid 4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4787printf "%s\n" "$supported" >&6; } 4788 if test "$supported" = "yes" ; then 4789 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 4790 found="yes" 4791 fi 4792 fi 4793 4794 if test $found = "no" ; then 4795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4797 fi 4798 4799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4801 fi 4802 4803 CFLAGS="$CFLAGS -Wformat" 4804 4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 4806printf %s "checking if $CC supports -Wformat... " >&6; } 4807 cacheid=xorg_cv_cc_flag__Wformat 4808 if eval test \${$cacheid+y} 4809then : 4810 printf %s "(cached) " >&6 4811else $as_nop 4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4813/* end confdefs.h. */ 4814int i; 4815int 4816main (void) 4817{ 4818 4819 ; 4820 return 0; 4821} 4822_ACEOF 4823if ac_fn_c_try_link "$LINENO" 4824then : 4825 eval $cacheid=yes 4826else $as_nop 4827 eval $cacheid=no 4828fi 4829rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4830 conftest$ac_exeext conftest.$ac_ext 4831fi 4832 4833 4834 CFLAGS="$xorg_testset_save_CFLAGS" 4835 4836 eval supported=\$$cacheid 4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4838printf "%s\n" "$supported" >&6; } 4839 if test "$supported" = "yes" ; then 4840 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 4841 found="yes" 4842 fi 4843 fi 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861xorg_testset_save_CFLAGS="$CFLAGS" 4862 4863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4866printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4867if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4868then : 4869 printf %s "(cached) " >&6 4870else $as_nop 4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4872/* end confdefs.h. */ 4873int i; 4874_ACEOF 4875if ac_fn_c_try_compile "$LINENO" 4876then : 4877 xorg_cv_cc_flag_unknown_warning_option=yes 4878else $as_nop 4879 xorg_cv_cc_flag_unknown_warning_option=no 4880fi 4881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4882fi 4883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4884printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4886 CFLAGS="$xorg_testset_save_CFLAGS" 4887fi 4888 4889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4892 fi 4893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4895printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4896if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4897then : 4898 printf %s "(cached) " >&6 4899else $as_nop 4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4901/* end confdefs.h. */ 4902int i; 4903_ACEOF 4904if ac_fn_c_try_compile "$LINENO" 4905then : 4906 xorg_cv_cc_flag_unused_command_line_argument=yes 4907else $as_nop 4908 xorg_cv_cc_flag_unused_command_line_argument=no 4909fi 4910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4911fi 4912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4913printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4915 CFLAGS="$xorg_testset_save_CFLAGS" 4916fi 4917 4918found="no" 4919 4920 if test $found = "no" ; then 4921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4923 fi 4924 4925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4927 fi 4928 4929 CFLAGS="$CFLAGS -Wstrict-prototypes" 4930 4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 4932printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 4933 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 4934 if eval test \${$cacheid+y} 4935then : 4936 printf %s "(cached) " >&6 4937else $as_nop 4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4939/* end confdefs.h. */ 4940int i; 4941int 4942main (void) 4943{ 4944 4945 ; 4946 return 0; 4947} 4948_ACEOF 4949if ac_fn_c_try_link "$LINENO" 4950then : 4951 eval $cacheid=yes 4952else $as_nop 4953 eval $cacheid=no 4954fi 4955rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4956 conftest$ac_exeext conftest.$ac_ext 4957fi 4958 4959 4960 CFLAGS="$xorg_testset_save_CFLAGS" 4961 4962 eval supported=\$$cacheid 4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4964printf "%s\n" "$supported" >&6; } 4965 if test "$supported" = "yes" ; then 4966 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 4967 found="yes" 4968 fi 4969 fi 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985xorg_testset_save_CFLAGS="$CFLAGS" 4986 4987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4990printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4991if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4992then : 4993 printf %s "(cached) " >&6 4994else $as_nop 4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4996/* end confdefs.h. */ 4997int i; 4998_ACEOF 4999if ac_fn_c_try_compile "$LINENO" 5000then : 5001 xorg_cv_cc_flag_unknown_warning_option=yes 5002else $as_nop 5003 xorg_cv_cc_flag_unknown_warning_option=no 5004fi 5005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5006fi 5007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5008printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5010 CFLAGS="$xorg_testset_save_CFLAGS" 5011fi 5012 5013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5016 fi 5017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5019printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5020if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5021then : 5022 printf %s "(cached) " >&6 5023else $as_nop 5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5025/* end confdefs.h. */ 5026int i; 5027_ACEOF 5028if ac_fn_c_try_compile "$LINENO" 5029then : 5030 xorg_cv_cc_flag_unused_command_line_argument=yes 5031else $as_nop 5032 xorg_cv_cc_flag_unused_command_line_argument=no 5033fi 5034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5035fi 5036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5037printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5039 CFLAGS="$xorg_testset_save_CFLAGS" 5040fi 5041 5042found="no" 5043 5044 if test $found = "no" ; then 5045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5047 fi 5048 5049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5051 fi 5052 5053 CFLAGS="$CFLAGS -Wmissing-prototypes" 5054 5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5056printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5057 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5058 if eval test \${$cacheid+y} 5059then : 5060 printf %s "(cached) " >&6 5061else $as_nop 5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5063/* end confdefs.h. */ 5064int i; 5065int 5066main (void) 5067{ 5068 5069 ; 5070 return 0; 5071} 5072_ACEOF 5073if ac_fn_c_try_link "$LINENO" 5074then : 5075 eval $cacheid=yes 5076else $as_nop 5077 eval $cacheid=no 5078fi 5079rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5080 conftest$ac_exeext conftest.$ac_ext 5081fi 5082 5083 5084 CFLAGS="$xorg_testset_save_CFLAGS" 5085 5086 eval supported=\$$cacheid 5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5088printf "%s\n" "$supported" >&6; } 5089 if test "$supported" = "yes" ; then 5090 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5091 found="yes" 5092 fi 5093 fi 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109xorg_testset_save_CFLAGS="$CFLAGS" 5110 5111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5114printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5115if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5116then : 5117 printf %s "(cached) " >&6 5118else $as_nop 5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5120/* end confdefs.h. */ 5121int i; 5122_ACEOF 5123if ac_fn_c_try_compile "$LINENO" 5124then : 5125 xorg_cv_cc_flag_unknown_warning_option=yes 5126else $as_nop 5127 xorg_cv_cc_flag_unknown_warning_option=no 5128fi 5129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5130fi 5131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5132printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5134 CFLAGS="$xorg_testset_save_CFLAGS" 5135fi 5136 5137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5140 fi 5141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5143printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5144if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5145then : 5146 printf %s "(cached) " >&6 5147else $as_nop 5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5149/* end confdefs.h. */ 5150int i; 5151_ACEOF 5152if ac_fn_c_try_compile "$LINENO" 5153then : 5154 xorg_cv_cc_flag_unused_command_line_argument=yes 5155else $as_nop 5156 xorg_cv_cc_flag_unused_command_line_argument=no 5157fi 5158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5159fi 5160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5161printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5163 CFLAGS="$xorg_testset_save_CFLAGS" 5164fi 5165 5166found="no" 5167 5168 if test $found = "no" ; then 5169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5171 fi 5172 5173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5175 fi 5176 5177 CFLAGS="$CFLAGS -Wnested-externs" 5178 5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5180printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5181 cacheid=xorg_cv_cc_flag__Wnested_externs 5182 if eval test \${$cacheid+y} 5183then : 5184 printf %s "(cached) " >&6 5185else $as_nop 5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5187/* end confdefs.h. */ 5188int i; 5189int 5190main (void) 5191{ 5192 5193 ; 5194 return 0; 5195} 5196_ACEOF 5197if ac_fn_c_try_link "$LINENO" 5198then : 5199 eval $cacheid=yes 5200else $as_nop 5201 eval $cacheid=no 5202fi 5203rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5204 conftest$ac_exeext conftest.$ac_ext 5205fi 5206 5207 5208 CFLAGS="$xorg_testset_save_CFLAGS" 5209 5210 eval supported=\$$cacheid 5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5212printf "%s\n" "$supported" >&6; } 5213 if test "$supported" = "yes" ; then 5214 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5215 found="yes" 5216 fi 5217 fi 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233xorg_testset_save_CFLAGS="$CFLAGS" 5234 5235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5239if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5240then : 5241 printf %s "(cached) " >&6 5242else $as_nop 5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5244/* end confdefs.h. */ 5245int i; 5246_ACEOF 5247if ac_fn_c_try_compile "$LINENO" 5248then : 5249 xorg_cv_cc_flag_unknown_warning_option=yes 5250else $as_nop 5251 xorg_cv_cc_flag_unknown_warning_option=no 5252fi 5253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5254fi 5255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5256printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5258 CFLAGS="$xorg_testset_save_CFLAGS" 5259fi 5260 5261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5264 fi 5265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5267printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5268if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5269then : 5270 printf %s "(cached) " >&6 5271else $as_nop 5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5273/* end confdefs.h. */ 5274int i; 5275_ACEOF 5276if ac_fn_c_try_compile "$LINENO" 5277then : 5278 xorg_cv_cc_flag_unused_command_line_argument=yes 5279else $as_nop 5280 xorg_cv_cc_flag_unused_command_line_argument=no 5281fi 5282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5283fi 5284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5287 CFLAGS="$xorg_testset_save_CFLAGS" 5288fi 5289 5290found="no" 5291 5292 if test $found = "no" ; then 5293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5295 fi 5296 5297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5299 fi 5300 5301 CFLAGS="$CFLAGS -Wbad-function-cast" 5302 5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5304printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5305 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5306 if eval test \${$cacheid+y} 5307then : 5308 printf %s "(cached) " >&6 5309else $as_nop 5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5311/* end confdefs.h. */ 5312int i; 5313int 5314main (void) 5315{ 5316 5317 ; 5318 return 0; 5319} 5320_ACEOF 5321if ac_fn_c_try_link "$LINENO" 5322then : 5323 eval $cacheid=yes 5324else $as_nop 5325 eval $cacheid=no 5326fi 5327rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5328 conftest$ac_exeext conftest.$ac_ext 5329fi 5330 5331 5332 CFLAGS="$xorg_testset_save_CFLAGS" 5333 5334 eval supported=\$$cacheid 5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5336printf "%s\n" "$supported" >&6; } 5337 if test "$supported" = "yes" ; then 5338 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5339 found="yes" 5340 fi 5341 fi 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357xorg_testset_save_CFLAGS="$CFLAGS" 5358 5359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5362printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5363if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5364then : 5365 printf %s "(cached) " >&6 5366else $as_nop 5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5368/* end confdefs.h. */ 5369int i; 5370_ACEOF 5371if ac_fn_c_try_compile "$LINENO" 5372then : 5373 xorg_cv_cc_flag_unknown_warning_option=yes 5374else $as_nop 5375 xorg_cv_cc_flag_unknown_warning_option=no 5376fi 5377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5378fi 5379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5380printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5382 CFLAGS="$xorg_testset_save_CFLAGS" 5383fi 5384 5385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5388 fi 5389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5391printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5392if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5393then : 5394 printf %s "(cached) " >&6 5395else $as_nop 5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5397/* end confdefs.h. */ 5398int i; 5399_ACEOF 5400if ac_fn_c_try_compile "$LINENO" 5401then : 5402 xorg_cv_cc_flag_unused_command_line_argument=yes 5403else $as_nop 5404 xorg_cv_cc_flag_unused_command_line_argument=no 5405fi 5406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5407fi 5408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5409printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5411 CFLAGS="$xorg_testset_save_CFLAGS" 5412fi 5413 5414found="no" 5415 5416 if test $found = "no" ; then 5417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5419 fi 5420 5421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5423 fi 5424 5425 CFLAGS="$CFLAGS -Wold-style-definition" 5426 5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5428printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 5429 cacheid=xorg_cv_cc_flag__Wold_style_definition 5430 if eval test \${$cacheid+y} 5431then : 5432 printf %s "(cached) " >&6 5433else $as_nop 5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5435/* end confdefs.h. */ 5436int i; 5437int 5438main (void) 5439{ 5440 5441 ; 5442 return 0; 5443} 5444_ACEOF 5445if ac_fn_c_try_link "$LINENO" 5446then : 5447 eval $cacheid=yes 5448else $as_nop 5449 eval $cacheid=no 5450fi 5451rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5452 conftest$ac_exeext conftest.$ac_ext 5453fi 5454 5455 5456 CFLAGS="$xorg_testset_save_CFLAGS" 5457 5458 eval supported=\$$cacheid 5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5460printf "%s\n" "$supported" >&6; } 5461 if test "$supported" = "yes" ; then 5462 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5463 found="yes" 5464 fi 5465 fi 5466 5467 if test $found = "no" ; then 5468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5470 fi 5471 5472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5474 fi 5475 5476 CFLAGS="$CFLAGS -fd" 5477 5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5479printf %s "checking if $CC supports -fd... " >&6; } 5480 cacheid=xorg_cv_cc_flag__fd 5481 if eval test \${$cacheid+y} 5482then : 5483 printf %s "(cached) " >&6 5484else $as_nop 5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5486/* end confdefs.h. */ 5487int i; 5488int 5489main (void) 5490{ 5491 5492 ; 5493 return 0; 5494} 5495_ACEOF 5496if ac_fn_c_try_link "$LINENO" 5497then : 5498 eval $cacheid=yes 5499else $as_nop 5500 eval $cacheid=no 5501fi 5502rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5503 conftest$ac_exeext conftest.$ac_ext 5504fi 5505 5506 5507 CFLAGS="$xorg_testset_save_CFLAGS" 5508 5509 eval supported=\$$cacheid 5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5511printf "%s\n" "$supported" >&6; } 5512 if test "$supported" = "yes" ; then 5513 BASE_CFLAGS="$BASE_CFLAGS -fd" 5514 found="yes" 5515 fi 5516 fi 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532xorg_testset_save_CFLAGS="$CFLAGS" 5533 5534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5537printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5538if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5539then : 5540 printf %s "(cached) " >&6 5541else $as_nop 5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5543/* end confdefs.h. */ 5544int i; 5545_ACEOF 5546if ac_fn_c_try_compile "$LINENO" 5547then : 5548 xorg_cv_cc_flag_unknown_warning_option=yes 5549else $as_nop 5550 xorg_cv_cc_flag_unknown_warning_option=no 5551fi 5552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5553fi 5554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5555printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5557 CFLAGS="$xorg_testset_save_CFLAGS" 5558fi 5559 5560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5563 fi 5564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5566printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5567if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5568then : 5569 printf %s "(cached) " >&6 5570else $as_nop 5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5572/* end confdefs.h. */ 5573int i; 5574_ACEOF 5575if ac_fn_c_try_compile "$LINENO" 5576then : 5577 xorg_cv_cc_flag_unused_command_line_argument=yes 5578else $as_nop 5579 xorg_cv_cc_flag_unused_command_line_argument=no 5580fi 5581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5582fi 5583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5584printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5586 CFLAGS="$xorg_testset_save_CFLAGS" 5587fi 5588 5589found="no" 5590 5591 if test $found = "no" ; then 5592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5594 fi 5595 5596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5598 fi 5599 5600 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5601 5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5603printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5604 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5605 if eval test \${$cacheid+y} 5606then : 5607 printf %s "(cached) " >&6 5608else $as_nop 5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5610/* end confdefs.h. */ 5611int i; 5612int 5613main (void) 5614{ 5615 5616 ; 5617 return 0; 5618} 5619_ACEOF 5620if ac_fn_c_try_link "$LINENO" 5621then : 5622 eval $cacheid=yes 5623else $as_nop 5624 eval $cacheid=no 5625fi 5626rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5627 conftest$ac_exeext conftest.$ac_ext 5628fi 5629 5630 5631 CFLAGS="$xorg_testset_save_CFLAGS" 5632 5633 eval supported=\$$cacheid 5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5635printf "%s\n" "$supported" >&6; } 5636 if test "$supported" = "yes" ; then 5637 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5638 found="yes" 5639 fi 5640 fi 5641 5642 5643 5644 5645 5646# This chunk adds additional warnings that could catch undesired effects. 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660xorg_testset_save_CFLAGS="$CFLAGS" 5661 5662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5665printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5666if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5667then : 5668 printf %s "(cached) " >&6 5669else $as_nop 5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5671/* end confdefs.h. */ 5672int i; 5673_ACEOF 5674if ac_fn_c_try_compile "$LINENO" 5675then : 5676 xorg_cv_cc_flag_unknown_warning_option=yes 5677else $as_nop 5678 xorg_cv_cc_flag_unknown_warning_option=no 5679fi 5680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5681fi 5682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5683printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5685 CFLAGS="$xorg_testset_save_CFLAGS" 5686fi 5687 5688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5691 fi 5692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5694printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5695if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5696then : 5697 printf %s "(cached) " >&6 5698else $as_nop 5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5700/* end confdefs.h. */ 5701int i; 5702_ACEOF 5703if ac_fn_c_try_compile "$LINENO" 5704then : 5705 xorg_cv_cc_flag_unused_command_line_argument=yes 5706else $as_nop 5707 xorg_cv_cc_flag_unused_command_line_argument=no 5708fi 5709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5710fi 5711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5712printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5714 CFLAGS="$xorg_testset_save_CFLAGS" 5715fi 5716 5717found="no" 5718 5719 if test $found = "no" ; then 5720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5722 fi 5723 5724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5726 fi 5727 5728 CFLAGS="$CFLAGS -Wunused" 5729 5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5731printf %s "checking if $CC supports -Wunused... " >&6; } 5732 cacheid=xorg_cv_cc_flag__Wunused 5733 if eval test \${$cacheid+y} 5734then : 5735 printf %s "(cached) " >&6 5736else $as_nop 5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5738/* end confdefs.h. */ 5739int i; 5740int 5741main (void) 5742{ 5743 5744 ; 5745 return 0; 5746} 5747_ACEOF 5748if ac_fn_c_try_link "$LINENO" 5749then : 5750 eval $cacheid=yes 5751else $as_nop 5752 eval $cacheid=no 5753fi 5754rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5755 conftest$ac_exeext conftest.$ac_ext 5756fi 5757 5758 5759 CFLAGS="$xorg_testset_save_CFLAGS" 5760 5761 eval supported=\$$cacheid 5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5763printf "%s\n" "$supported" >&6; } 5764 if test "$supported" = "yes" ; then 5765 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5766 found="yes" 5767 fi 5768 fi 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784xorg_testset_save_CFLAGS="$CFLAGS" 5785 5786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5789printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5790if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5791then : 5792 printf %s "(cached) " >&6 5793else $as_nop 5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5795/* end confdefs.h. */ 5796int i; 5797_ACEOF 5798if ac_fn_c_try_compile "$LINENO" 5799then : 5800 xorg_cv_cc_flag_unknown_warning_option=yes 5801else $as_nop 5802 xorg_cv_cc_flag_unknown_warning_option=no 5803fi 5804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5805fi 5806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5807printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5809 CFLAGS="$xorg_testset_save_CFLAGS" 5810fi 5811 5812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5815 fi 5816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5818printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5819if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5820then : 5821 printf %s "(cached) " >&6 5822else $as_nop 5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5824/* end confdefs.h. */ 5825int i; 5826_ACEOF 5827if ac_fn_c_try_compile "$LINENO" 5828then : 5829 xorg_cv_cc_flag_unused_command_line_argument=yes 5830else $as_nop 5831 xorg_cv_cc_flag_unused_command_line_argument=no 5832fi 5833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5834fi 5835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5836printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5838 CFLAGS="$xorg_testset_save_CFLAGS" 5839fi 5840 5841found="no" 5842 5843 if test $found = "no" ; then 5844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5846 fi 5847 5848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5850 fi 5851 5852 CFLAGS="$CFLAGS -Wuninitialized" 5853 5854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5855printf %s "checking if $CC supports -Wuninitialized... " >&6; } 5856 cacheid=xorg_cv_cc_flag__Wuninitialized 5857 if eval test \${$cacheid+y} 5858then : 5859 printf %s "(cached) " >&6 5860else $as_nop 5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5862/* end confdefs.h. */ 5863int i; 5864int 5865main (void) 5866{ 5867 5868 ; 5869 return 0; 5870} 5871_ACEOF 5872if ac_fn_c_try_link "$LINENO" 5873then : 5874 eval $cacheid=yes 5875else $as_nop 5876 eval $cacheid=no 5877fi 5878rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5879 conftest$ac_exeext conftest.$ac_ext 5880fi 5881 5882 5883 CFLAGS="$xorg_testset_save_CFLAGS" 5884 5885 eval supported=\$$cacheid 5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5887printf "%s\n" "$supported" >&6; } 5888 if test "$supported" = "yes" ; then 5889 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5890 found="yes" 5891 fi 5892 fi 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908xorg_testset_save_CFLAGS="$CFLAGS" 5909 5910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5913printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5914if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5915then : 5916 printf %s "(cached) " >&6 5917else $as_nop 5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5919/* end confdefs.h. */ 5920int i; 5921_ACEOF 5922if ac_fn_c_try_compile "$LINENO" 5923then : 5924 xorg_cv_cc_flag_unknown_warning_option=yes 5925else $as_nop 5926 xorg_cv_cc_flag_unknown_warning_option=no 5927fi 5928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5929fi 5930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5931printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5933 CFLAGS="$xorg_testset_save_CFLAGS" 5934fi 5935 5936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5939 fi 5940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5942printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5943if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5944then : 5945 printf %s "(cached) " >&6 5946else $as_nop 5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5948/* end confdefs.h. */ 5949int i; 5950_ACEOF 5951if ac_fn_c_try_compile "$LINENO" 5952then : 5953 xorg_cv_cc_flag_unused_command_line_argument=yes 5954else $as_nop 5955 xorg_cv_cc_flag_unused_command_line_argument=no 5956fi 5957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5958fi 5959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5960printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5962 CFLAGS="$xorg_testset_save_CFLAGS" 5963fi 5964 5965found="no" 5966 5967 if test $found = "no" ; then 5968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5970 fi 5971 5972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5974 fi 5975 5976 CFLAGS="$CFLAGS -Wshadow" 5977 5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 5979printf %s "checking if $CC supports -Wshadow... " >&6; } 5980 cacheid=xorg_cv_cc_flag__Wshadow 5981 if eval test \${$cacheid+y} 5982then : 5983 printf %s "(cached) " >&6 5984else $as_nop 5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5986/* end confdefs.h. */ 5987int i; 5988int 5989main (void) 5990{ 5991 5992 ; 5993 return 0; 5994} 5995_ACEOF 5996if ac_fn_c_try_link "$LINENO" 5997then : 5998 eval $cacheid=yes 5999else $as_nop 6000 eval $cacheid=no 6001fi 6002rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6003 conftest$ac_exeext conftest.$ac_ext 6004fi 6005 6006 6007 CFLAGS="$xorg_testset_save_CFLAGS" 6008 6009 eval supported=\$$cacheid 6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6011printf "%s\n" "$supported" >&6; } 6012 if test "$supported" = "yes" ; then 6013 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6014 found="yes" 6015 fi 6016 fi 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032xorg_testset_save_CFLAGS="$CFLAGS" 6033 6034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6037printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6038if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6039then : 6040 printf %s "(cached) " >&6 6041else $as_nop 6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6043/* end confdefs.h. */ 6044int i; 6045_ACEOF 6046if ac_fn_c_try_compile "$LINENO" 6047then : 6048 xorg_cv_cc_flag_unknown_warning_option=yes 6049else $as_nop 6050 xorg_cv_cc_flag_unknown_warning_option=no 6051fi 6052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6053fi 6054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6055printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6057 CFLAGS="$xorg_testset_save_CFLAGS" 6058fi 6059 6060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6063 fi 6064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6066printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6067if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6068then : 6069 printf %s "(cached) " >&6 6070else $as_nop 6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6072/* end confdefs.h. */ 6073int i; 6074_ACEOF 6075if ac_fn_c_try_compile "$LINENO" 6076then : 6077 xorg_cv_cc_flag_unused_command_line_argument=yes 6078else $as_nop 6079 xorg_cv_cc_flag_unused_command_line_argument=no 6080fi 6081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6082fi 6083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6084printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6086 CFLAGS="$xorg_testset_save_CFLAGS" 6087fi 6088 6089found="no" 6090 6091 if test $found = "no" ; then 6092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6094 fi 6095 6096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6098 fi 6099 6100 CFLAGS="$CFLAGS -Wmissing-noreturn" 6101 6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6103printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6104 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6105 if eval test \${$cacheid+y} 6106then : 6107 printf %s "(cached) " >&6 6108else $as_nop 6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6110/* end confdefs.h. */ 6111int i; 6112int 6113main (void) 6114{ 6115 6116 ; 6117 return 0; 6118} 6119_ACEOF 6120if ac_fn_c_try_link "$LINENO" 6121then : 6122 eval $cacheid=yes 6123else $as_nop 6124 eval $cacheid=no 6125fi 6126rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6127 conftest$ac_exeext conftest.$ac_ext 6128fi 6129 6130 6131 CFLAGS="$xorg_testset_save_CFLAGS" 6132 6133 eval supported=\$$cacheid 6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6135printf "%s\n" "$supported" >&6; } 6136 if test "$supported" = "yes" ; then 6137 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6138 found="yes" 6139 fi 6140 fi 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156xorg_testset_save_CFLAGS="$CFLAGS" 6157 6158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6161printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6162if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6163then : 6164 printf %s "(cached) " >&6 6165else $as_nop 6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6167/* end confdefs.h. */ 6168int i; 6169_ACEOF 6170if ac_fn_c_try_compile "$LINENO" 6171then : 6172 xorg_cv_cc_flag_unknown_warning_option=yes 6173else $as_nop 6174 xorg_cv_cc_flag_unknown_warning_option=no 6175fi 6176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6177fi 6178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6179printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6181 CFLAGS="$xorg_testset_save_CFLAGS" 6182fi 6183 6184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6187 fi 6188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6190printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6191if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6192then : 6193 printf %s "(cached) " >&6 6194else $as_nop 6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6196/* end confdefs.h. */ 6197int i; 6198_ACEOF 6199if ac_fn_c_try_compile "$LINENO" 6200then : 6201 xorg_cv_cc_flag_unused_command_line_argument=yes 6202else $as_nop 6203 xorg_cv_cc_flag_unused_command_line_argument=no 6204fi 6205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6206fi 6207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6208printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6210 CFLAGS="$xorg_testset_save_CFLAGS" 6211fi 6212 6213found="no" 6214 6215 if test $found = "no" ; then 6216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6218 fi 6219 6220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6222 fi 6223 6224 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6225 6226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6227printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6228 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6229 if eval test \${$cacheid+y} 6230then : 6231 printf %s "(cached) " >&6 6232else $as_nop 6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6234/* end confdefs.h. */ 6235int i; 6236int 6237main (void) 6238{ 6239 6240 ; 6241 return 0; 6242} 6243_ACEOF 6244if ac_fn_c_try_link "$LINENO" 6245then : 6246 eval $cacheid=yes 6247else $as_nop 6248 eval $cacheid=no 6249fi 6250rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6251 conftest$ac_exeext conftest.$ac_ext 6252fi 6253 6254 6255 CFLAGS="$xorg_testset_save_CFLAGS" 6256 6257 eval supported=\$$cacheid 6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6259printf "%s\n" "$supported" >&6; } 6260 if test "$supported" = "yes" ; then 6261 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6262 found="yes" 6263 fi 6264 fi 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280xorg_testset_save_CFLAGS="$CFLAGS" 6281 6282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6285printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6286if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6287then : 6288 printf %s "(cached) " >&6 6289else $as_nop 6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6291/* end confdefs.h. */ 6292int i; 6293_ACEOF 6294if ac_fn_c_try_compile "$LINENO" 6295then : 6296 xorg_cv_cc_flag_unknown_warning_option=yes 6297else $as_nop 6298 xorg_cv_cc_flag_unknown_warning_option=no 6299fi 6300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6301fi 6302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6303printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6304 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6305 CFLAGS="$xorg_testset_save_CFLAGS" 6306fi 6307 6308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6311 fi 6312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6314printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6315if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6316then : 6317 printf %s "(cached) " >&6 6318else $as_nop 6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6320/* end confdefs.h. */ 6321int i; 6322_ACEOF 6323if ac_fn_c_try_compile "$LINENO" 6324then : 6325 xorg_cv_cc_flag_unused_command_line_argument=yes 6326else $as_nop 6327 xorg_cv_cc_flag_unused_command_line_argument=no 6328fi 6329rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6330fi 6331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6332printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6334 CFLAGS="$xorg_testset_save_CFLAGS" 6335fi 6336 6337found="no" 6338 6339 if test $found = "no" ; then 6340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6342 fi 6343 6344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6346 fi 6347 6348 CFLAGS="$CFLAGS -Wredundant-decls" 6349 6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6351printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6352 cacheid=xorg_cv_cc_flag__Wredundant_decls 6353 if eval test \${$cacheid+y} 6354then : 6355 printf %s "(cached) " >&6 6356else $as_nop 6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6358/* end confdefs.h. */ 6359int i; 6360int 6361main (void) 6362{ 6363 6364 ; 6365 return 0; 6366} 6367_ACEOF 6368if ac_fn_c_try_link "$LINENO" 6369then : 6370 eval $cacheid=yes 6371else $as_nop 6372 eval $cacheid=no 6373fi 6374rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6375 conftest$ac_exeext conftest.$ac_ext 6376fi 6377 6378 6379 CFLAGS="$xorg_testset_save_CFLAGS" 6380 6381 eval supported=\$$cacheid 6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6383printf "%s\n" "$supported" >&6; } 6384 if test "$supported" = "yes" ; then 6385 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6386 found="yes" 6387 fi 6388 fi 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404xorg_testset_save_CFLAGS="$CFLAGS" 6405 6406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6409printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6410if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6411then : 6412 printf %s "(cached) " >&6 6413else $as_nop 6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6415/* end confdefs.h. */ 6416int i; 6417_ACEOF 6418if ac_fn_c_try_compile "$LINENO" 6419then : 6420 xorg_cv_cc_flag_unknown_warning_option=yes 6421else $as_nop 6422 xorg_cv_cc_flag_unknown_warning_option=no 6423fi 6424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6425fi 6426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6427printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6429 CFLAGS="$xorg_testset_save_CFLAGS" 6430fi 6431 6432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6435 fi 6436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6438printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6439if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6440then : 6441 printf %s "(cached) " >&6 6442else $as_nop 6443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6444/* end confdefs.h. */ 6445int i; 6446_ACEOF 6447if ac_fn_c_try_compile "$LINENO" 6448then : 6449 xorg_cv_cc_flag_unused_command_line_argument=yes 6450else $as_nop 6451 xorg_cv_cc_flag_unused_command_line_argument=no 6452fi 6453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6454fi 6455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6456printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6458 CFLAGS="$xorg_testset_save_CFLAGS" 6459fi 6460 6461found="no" 6462 6463 if test $found = "no" ; then 6464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6466 fi 6467 6468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6470 fi 6471 6472 CFLAGS="$CFLAGS -Wlogical-op" 6473 6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6475printf %s "checking if $CC supports -Wlogical-op... " >&6; } 6476 cacheid=xorg_cv_cc_flag__Wlogical_op 6477 if eval test \${$cacheid+y} 6478then : 6479 printf %s "(cached) " >&6 6480else $as_nop 6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6482/* end confdefs.h. */ 6483int i; 6484int 6485main (void) 6486{ 6487 6488 ; 6489 return 0; 6490} 6491_ACEOF 6492if ac_fn_c_try_link "$LINENO" 6493then : 6494 eval $cacheid=yes 6495else $as_nop 6496 eval $cacheid=no 6497fi 6498rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6499 conftest$ac_exeext conftest.$ac_ext 6500fi 6501 6502 6503 CFLAGS="$xorg_testset_save_CFLAGS" 6504 6505 eval supported=\$$cacheid 6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6507printf "%s\n" "$supported" >&6; } 6508 if test "$supported" = "yes" ; then 6509 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6510 found="yes" 6511 fi 6512 fi 6513 6514 6515 6516# These are currently disabled because they are noisy. They will be enabled 6517# in the future once the codebase is sufficiently modernized to silence 6518# them. For now, I don't want them to drown out the other warnings. 6519# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6520# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6521# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6522 6523# Turn some warnings into errors, so we don't accidently get successful builds 6524# when there are problems that should be fixed. 6525 6526if test "x$SELECTIVE_WERROR" = "xyes" ; then 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540xorg_testset_save_CFLAGS="$CFLAGS" 6541 6542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6545printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6546if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6547then : 6548 printf %s "(cached) " >&6 6549else $as_nop 6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6551/* end confdefs.h. */ 6552int i; 6553_ACEOF 6554if ac_fn_c_try_compile "$LINENO" 6555then : 6556 xorg_cv_cc_flag_unknown_warning_option=yes 6557else $as_nop 6558 xorg_cv_cc_flag_unknown_warning_option=no 6559fi 6560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6561fi 6562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6563printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6565 CFLAGS="$xorg_testset_save_CFLAGS" 6566fi 6567 6568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6571 fi 6572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6574printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6575if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6576then : 6577 printf %s "(cached) " >&6 6578else $as_nop 6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6580/* end confdefs.h. */ 6581int i; 6582_ACEOF 6583if ac_fn_c_try_compile "$LINENO" 6584then : 6585 xorg_cv_cc_flag_unused_command_line_argument=yes 6586else $as_nop 6587 xorg_cv_cc_flag_unused_command_line_argument=no 6588fi 6589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6590fi 6591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6592printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6594 CFLAGS="$xorg_testset_save_CFLAGS" 6595fi 6596 6597found="no" 6598 6599 if test $found = "no" ; then 6600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6602 fi 6603 6604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6606 fi 6607 6608 CFLAGS="$CFLAGS -Werror=implicit" 6609 6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6611printf %s "checking if $CC supports -Werror=implicit... " >&6; } 6612 cacheid=xorg_cv_cc_flag__Werror_implicit 6613 if eval test \${$cacheid+y} 6614then : 6615 printf %s "(cached) " >&6 6616else $as_nop 6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6618/* end confdefs.h. */ 6619int i; 6620int 6621main (void) 6622{ 6623 6624 ; 6625 return 0; 6626} 6627_ACEOF 6628if ac_fn_c_try_link "$LINENO" 6629then : 6630 eval $cacheid=yes 6631else $as_nop 6632 eval $cacheid=no 6633fi 6634rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6635 conftest$ac_exeext conftest.$ac_ext 6636fi 6637 6638 6639 CFLAGS="$xorg_testset_save_CFLAGS" 6640 6641 eval supported=\$$cacheid 6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6643printf "%s\n" "$supported" >&6; } 6644 if test "$supported" = "yes" ; then 6645 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6646 found="yes" 6647 fi 6648 fi 6649 6650 if test $found = "no" ; then 6651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6653 fi 6654 6655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6657 fi 6658 6659 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6660 6661 { 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 6662printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6663 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6664 if eval test \${$cacheid+y} 6665then : 6666 printf %s "(cached) " >&6 6667else $as_nop 6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6669/* end confdefs.h. */ 6670int i; 6671int 6672main (void) 6673{ 6674 6675 ; 6676 return 0; 6677} 6678_ACEOF 6679if ac_fn_c_try_link "$LINENO" 6680then : 6681 eval $cacheid=yes 6682else $as_nop 6683 eval $cacheid=no 6684fi 6685rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6686 conftest$ac_exeext conftest.$ac_ext 6687fi 6688 6689 6690 CFLAGS="$xorg_testset_save_CFLAGS" 6691 6692 eval supported=\$$cacheid 6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6694printf "%s\n" "$supported" >&6; } 6695 if test "$supported" = "yes" ; then 6696 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6697 found="yes" 6698 fi 6699 fi 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715xorg_testset_save_CFLAGS="$CFLAGS" 6716 6717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6720printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6721if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6722then : 6723 printf %s "(cached) " >&6 6724else $as_nop 6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6726/* end confdefs.h. */ 6727int i; 6728_ACEOF 6729if ac_fn_c_try_compile "$LINENO" 6730then : 6731 xorg_cv_cc_flag_unknown_warning_option=yes 6732else $as_nop 6733 xorg_cv_cc_flag_unknown_warning_option=no 6734fi 6735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6736fi 6737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6738printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6740 CFLAGS="$xorg_testset_save_CFLAGS" 6741fi 6742 6743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6746 fi 6747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6749printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6750if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6751then : 6752 printf %s "(cached) " >&6 6753else $as_nop 6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6755/* end confdefs.h. */ 6756int i; 6757_ACEOF 6758if ac_fn_c_try_compile "$LINENO" 6759then : 6760 xorg_cv_cc_flag_unused_command_line_argument=yes 6761else $as_nop 6762 xorg_cv_cc_flag_unused_command_line_argument=no 6763fi 6764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6765fi 6766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6767printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6769 CFLAGS="$xorg_testset_save_CFLAGS" 6770fi 6771 6772found="no" 6773 6774 if test $found = "no" ; then 6775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6777 fi 6778 6779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6781 fi 6782 6783 CFLAGS="$CFLAGS -Werror=nonnull" 6784 6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6786printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 6787 cacheid=xorg_cv_cc_flag__Werror_nonnull 6788 if eval test \${$cacheid+y} 6789then : 6790 printf %s "(cached) " >&6 6791else $as_nop 6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6793/* end confdefs.h. */ 6794int i; 6795int 6796main (void) 6797{ 6798 6799 ; 6800 return 0; 6801} 6802_ACEOF 6803if ac_fn_c_try_link "$LINENO" 6804then : 6805 eval $cacheid=yes 6806else $as_nop 6807 eval $cacheid=no 6808fi 6809rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6810 conftest$ac_exeext conftest.$ac_ext 6811fi 6812 6813 6814 CFLAGS="$xorg_testset_save_CFLAGS" 6815 6816 eval supported=\$$cacheid 6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6818printf "%s\n" "$supported" >&6; } 6819 if test "$supported" = "yes" ; then 6820 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6821 found="yes" 6822 fi 6823 fi 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839xorg_testset_save_CFLAGS="$CFLAGS" 6840 6841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6844printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6845if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6846then : 6847 printf %s "(cached) " >&6 6848else $as_nop 6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6850/* end confdefs.h. */ 6851int i; 6852_ACEOF 6853if ac_fn_c_try_compile "$LINENO" 6854then : 6855 xorg_cv_cc_flag_unknown_warning_option=yes 6856else $as_nop 6857 xorg_cv_cc_flag_unknown_warning_option=no 6858fi 6859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6860fi 6861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6862printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6864 CFLAGS="$xorg_testset_save_CFLAGS" 6865fi 6866 6867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6870 fi 6871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6873printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6874if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6875then : 6876 printf %s "(cached) " >&6 6877else $as_nop 6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6879/* end confdefs.h. */ 6880int i; 6881_ACEOF 6882if ac_fn_c_try_compile "$LINENO" 6883then : 6884 xorg_cv_cc_flag_unused_command_line_argument=yes 6885else $as_nop 6886 xorg_cv_cc_flag_unused_command_line_argument=no 6887fi 6888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6889fi 6890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6891printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6893 CFLAGS="$xorg_testset_save_CFLAGS" 6894fi 6895 6896found="no" 6897 6898 if test $found = "no" ; then 6899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6901 fi 6902 6903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6905 fi 6906 6907 CFLAGS="$CFLAGS -Werror=init-self" 6908 6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6910printf %s "checking if $CC supports -Werror=init-self... " >&6; } 6911 cacheid=xorg_cv_cc_flag__Werror_init_self 6912 if eval test \${$cacheid+y} 6913then : 6914 printf %s "(cached) " >&6 6915else $as_nop 6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6917/* end confdefs.h. */ 6918int i; 6919int 6920main (void) 6921{ 6922 6923 ; 6924 return 0; 6925} 6926_ACEOF 6927if ac_fn_c_try_link "$LINENO" 6928then : 6929 eval $cacheid=yes 6930else $as_nop 6931 eval $cacheid=no 6932fi 6933rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6934 conftest$ac_exeext conftest.$ac_ext 6935fi 6936 6937 6938 CFLAGS="$xorg_testset_save_CFLAGS" 6939 6940 eval supported=\$$cacheid 6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6942printf "%s\n" "$supported" >&6; } 6943 if test "$supported" = "yes" ; then 6944 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6945 found="yes" 6946 fi 6947 fi 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963xorg_testset_save_CFLAGS="$CFLAGS" 6964 6965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6968printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6969if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6970then : 6971 printf %s "(cached) " >&6 6972else $as_nop 6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6974/* end confdefs.h. */ 6975int i; 6976_ACEOF 6977if ac_fn_c_try_compile "$LINENO" 6978then : 6979 xorg_cv_cc_flag_unknown_warning_option=yes 6980else $as_nop 6981 xorg_cv_cc_flag_unknown_warning_option=no 6982fi 6983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6984fi 6985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6986printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6988 CFLAGS="$xorg_testset_save_CFLAGS" 6989fi 6990 6991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6994 fi 6995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6997printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6998if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6999then : 7000 printf %s "(cached) " >&6 7001else $as_nop 7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7003/* end confdefs.h. */ 7004int i; 7005_ACEOF 7006if ac_fn_c_try_compile "$LINENO" 7007then : 7008 xorg_cv_cc_flag_unused_command_line_argument=yes 7009else $as_nop 7010 xorg_cv_cc_flag_unused_command_line_argument=no 7011fi 7012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7013fi 7014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7015printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7017 CFLAGS="$xorg_testset_save_CFLAGS" 7018fi 7019 7020found="no" 7021 7022 if test $found = "no" ; then 7023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7025 fi 7026 7027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7029 fi 7030 7031 CFLAGS="$CFLAGS -Werror=main" 7032 7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7034printf %s "checking if $CC supports -Werror=main... " >&6; } 7035 cacheid=xorg_cv_cc_flag__Werror_main 7036 if eval test \${$cacheid+y} 7037then : 7038 printf %s "(cached) " >&6 7039else $as_nop 7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7041/* end confdefs.h. */ 7042int i; 7043int 7044main (void) 7045{ 7046 7047 ; 7048 return 0; 7049} 7050_ACEOF 7051if ac_fn_c_try_link "$LINENO" 7052then : 7053 eval $cacheid=yes 7054else $as_nop 7055 eval $cacheid=no 7056fi 7057rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7058 conftest$ac_exeext conftest.$ac_ext 7059fi 7060 7061 7062 CFLAGS="$xorg_testset_save_CFLAGS" 7063 7064 eval supported=\$$cacheid 7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7066printf "%s\n" "$supported" >&6; } 7067 if test "$supported" = "yes" ; then 7068 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7069 found="yes" 7070 fi 7071 fi 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087xorg_testset_save_CFLAGS="$CFLAGS" 7088 7089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7092printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7093if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7094then : 7095 printf %s "(cached) " >&6 7096else $as_nop 7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7098/* end confdefs.h. */ 7099int i; 7100_ACEOF 7101if ac_fn_c_try_compile "$LINENO" 7102then : 7103 xorg_cv_cc_flag_unknown_warning_option=yes 7104else $as_nop 7105 xorg_cv_cc_flag_unknown_warning_option=no 7106fi 7107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7108fi 7109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7110printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7112 CFLAGS="$xorg_testset_save_CFLAGS" 7113fi 7114 7115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7118 fi 7119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7121printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7122if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7123then : 7124 printf %s "(cached) " >&6 7125else $as_nop 7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7127/* end confdefs.h. */ 7128int i; 7129_ACEOF 7130if ac_fn_c_try_compile "$LINENO" 7131then : 7132 xorg_cv_cc_flag_unused_command_line_argument=yes 7133else $as_nop 7134 xorg_cv_cc_flag_unused_command_line_argument=no 7135fi 7136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7137fi 7138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7139printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7141 CFLAGS="$xorg_testset_save_CFLAGS" 7142fi 7143 7144found="no" 7145 7146 if test $found = "no" ; then 7147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7149 fi 7150 7151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7153 fi 7154 7155 CFLAGS="$CFLAGS -Werror=missing-braces" 7156 7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7158printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7159 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7160 if eval test \${$cacheid+y} 7161then : 7162 printf %s "(cached) " >&6 7163else $as_nop 7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7165/* end confdefs.h. */ 7166int i; 7167int 7168main (void) 7169{ 7170 7171 ; 7172 return 0; 7173} 7174_ACEOF 7175if ac_fn_c_try_link "$LINENO" 7176then : 7177 eval $cacheid=yes 7178else $as_nop 7179 eval $cacheid=no 7180fi 7181rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7182 conftest$ac_exeext conftest.$ac_ext 7183fi 7184 7185 7186 CFLAGS="$xorg_testset_save_CFLAGS" 7187 7188 eval supported=\$$cacheid 7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7190printf "%s\n" "$supported" >&6; } 7191 if test "$supported" = "yes" ; then 7192 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7193 found="yes" 7194 fi 7195 fi 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211xorg_testset_save_CFLAGS="$CFLAGS" 7212 7213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7216printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7217if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7218then : 7219 printf %s "(cached) " >&6 7220else $as_nop 7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7222/* end confdefs.h. */ 7223int i; 7224_ACEOF 7225if ac_fn_c_try_compile "$LINENO" 7226then : 7227 xorg_cv_cc_flag_unknown_warning_option=yes 7228else $as_nop 7229 xorg_cv_cc_flag_unknown_warning_option=no 7230fi 7231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7232fi 7233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7234printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7236 CFLAGS="$xorg_testset_save_CFLAGS" 7237fi 7238 7239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7242 fi 7243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7245printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7246if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7247then : 7248 printf %s "(cached) " >&6 7249else $as_nop 7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7251/* end confdefs.h. */ 7252int i; 7253_ACEOF 7254if ac_fn_c_try_compile "$LINENO" 7255then : 7256 xorg_cv_cc_flag_unused_command_line_argument=yes 7257else $as_nop 7258 xorg_cv_cc_flag_unused_command_line_argument=no 7259fi 7260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7261fi 7262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7263printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7265 CFLAGS="$xorg_testset_save_CFLAGS" 7266fi 7267 7268found="no" 7269 7270 if test $found = "no" ; then 7271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7273 fi 7274 7275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7277 fi 7278 7279 CFLAGS="$CFLAGS -Werror=sequence-point" 7280 7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7282printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7283 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7284 if eval test \${$cacheid+y} 7285then : 7286 printf %s "(cached) " >&6 7287else $as_nop 7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7289/* end confdefs.h. */ 7290int i; 7291int 7292main (void) 7293{ 7294 7295 ; 7296 return 0; 7297} 7298_ACEOF 7299if ac_fn_c_try_link "$LINENO" 7300then : 7301 eval $cacheid=yes 7302else $as_nop 7303 eval $cacheid=no 7304fi 7305rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7306 conftest$ac_exeext conftest.$ac_ext 7307fi 7308 7309 7310 CFLAGS="$xorg_testset_save_CFLAGS" 7311 7312 eval supported=\$$cacheid 7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7314printf "%s\n" "$supported" >&6; } 7315 if test "$supported" = "yes" ; then 7316 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7317 found="yes" 7318 fi 7319 fi 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335xorg_testset_save_CFLAGS="$CFLAGS" 7336 7337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7340printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7341if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7342then : 7343 printf %s "(cached) " >&6 7344else $as_nop 7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7346/* end confdefs.h. */ 7347int i; 7348_ACEOF 7349if ac_fn_c_try_compile "$LINENO" 7350then : 7351 xorg_cv_cc_flag_unknown_warning_option=yes 7352else $as_nop 7353 xorg_cv_cc_flag_unknown_warning_option=no 7354fi 7355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7356fi 7357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7358printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7360 CFLAGS="$xorg_testset_save_CFLAGS" 7361fi 7362 7363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7366 fi 7367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7369printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7370if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7371then : 7372 printf %s "(cached) " >&6 7373else $as_nop 7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7375/* end confdefs.h. */ 7376int i; 7377_ACEOF 7378if ac_fn_c_try_compile "$LINENO" 7379then : 7380 xorg_cv_cc_flag_unused_command_line_argument=yes 7381else $as_nop 7382 xorg_cv_cc_flag_unused_command_line_argument=no 7383fi 7384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7385fi 7386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7387printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7389 CFLAGS="$xorg_testset_save_CFLAGS" 7390fi 7391 7392found="no" 7393 7394 if test $found = "no" ; then 7395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7397 fi 7398 7399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7401 fi 7402 7403 CFLAGS="$CFLAGS -Werror=return-type" 7404 7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7406printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7407 cacheid=xorg_cv_cc_flag__Werror_return_type 7408 if eval test \${$cacheid+y} 7409then : 7410 printf %s "(cached) " >&6 7411else $as_nop 7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7413/* end confdefs.h. */ 7414int i; 7415int 7416main (void) 7417{ 7418 7419 ; 7420 return 0; 7421} 7422_ACEOF 7423if ac_fn_c_try_link "$LINENO" 7424then : 7425 eval $cacheid=yes 7426else $as_nop 7427 eval $cacheid=no 7428fi 7429rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7430 conftest$ac_exeext conftest.$ac_ext 7431fi 7432 7433 7434 CFLAGS="$xorg_testset_save_CFLAGS" 7435 7436 eval supported=\$$cacheid 7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7438printf "%s\n" "$supported" >&6; } 7439 if test "$supported" = "yes" ; then 7440 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7441 found="yes" 7442 fi 7443 fi 7444 7445 if test $found = "no" ; then 7446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7448 fi 7449 7450 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7452 fi 7453 7454 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7455 7456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7457printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7458 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7459 if eval test \${$cacheid+y} 7460then : 7461 printf %s "(cached) " >&6 7462else $as_nop 7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7464/* end confdefs.h. */ 7465int i; 7466int 7467main (void) 7468{ 7469 7470 ; 7471 return 0; 7472} 7473_ACEOF 7474if ac_fn_c_try_link "$LINENO" 7475then : 7476 eval $cacheid=yes 7477else $as_nop 7478 eval $cacheid=no 7479fi 7480rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7481 conftest$ac_exeext conftest.$ac_ext 7482fi 7483 7484 7485 CFLAGS="$xorg_testset_save_CFLAGS" 7486 7487 eval supported=\$$cacheid 7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7489printf "%s\n" "$supported" >&6; } 7490 if test "$supported" = "yes" ; then 7491 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7492 found="yes" 7493 fi 7494 fi 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510xorg_testset_save_CFLAGS="$CFLAGS" 7511 7512if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7515printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7516if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7517then : 7518 printf %s "(cached) " >&6 7519else $as_nop 7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7521/* end confdefs.h. */ 7522int i; 7523_ACEOF 7524if ac_fn_c_try_compile "$LINENO" 7525then : 7526 xorg_cv_cc_flag_unknown_warning_option=yes 7527else $as_nop 7528 xorg_cv_cc_flag_unknown_warning_option=no 7529fi 7530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7531fi 7532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7533printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7535 CFLAGS="$xorg_testset_save_CFLAGS" 7536fi 7537 7538if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7541 fi 7542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7544printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7545if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7546then : 7547 printf %s "(cached) " >&6 7548else $as_nop 7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7550/* end confdefs.h. */ 7551int i; 7552_ACEOF 7553if ac_fn_c_try_compile "$LINENO" 7554then : 7555 xorg_cv_cc_flag_unused_command_line_argument=yes 7556else $as_nop 7557 xorg_cv_cc_flag_unused_command_line_argument=no 7558fi 7559rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7560fi 7561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7562printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7564 CFLAGS="$xorg_testset_save_CFLAGS" 7565fi 7566 7567found="no" 7568 7569 if test $found = "no" ; then 7570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7572 fi 7573 7574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7576 fi 7577 7578 CFLAGS="$CFLAGS -Werror=trigraphs" 7579 7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7581printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 7582 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7583 if eval test \${$cacheid+y} 7584then : 7585 printf %s "(cached) " >&6 7586else $as_nop 7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7588/* end confdefs.h. */ 7589int i; 7590int 7591main (void) 7592{ 7593 7594 ; 7595 return 0; 7596} 7597_ACEOF 7598if ac_fn_c_try_link "$LINENO" 7599then : 7600 eval $cacheid=yes 7601else $as_nop 7602 eval $cacheid=no 7603fi 7604rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7605 conftest$ac_exeext conftest.$ac_ext 7606fi 7607 7608 7609 CFLAGS="$xorg_testset_save_CFLAGS" 7610 7611 eval supported=\$$cacheid 7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7613printf "%s\n" "$supported" >&6; } 7614 if test "$supported" = "yes" ; then 7615 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7616 found="yes" 7617 fi 7618 fi 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634xorg_testset_save_CFLAGS="$CFLAGS" 7635 7636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7639printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7640if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7641then : 7642 printf %s "(cached) " >&6 7643else $as_nop 7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7645/* end confdefs.h. */ 7646int i; 7647_ACEOF 7648if ac_fn_c_try_compile "$LINENO" 7649then : 7650 xorg_cv_cc_flag_unknown_warning_option=yes 7651else $as_nop 7652 xorg_cv_cc_flag_unknown_warning_option=no 7653fi 7654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7655fi 7656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7657printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7659 CFLAGS="$xorg_testset_save_CFLAGS" 7660fi 7661 7662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7665 fi 7666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7668printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7669if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7670then : 7671 printf %s "(cached) " >&6 7672else $as_nop 7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7674/* end confdefs.h. */ 7675int i; 7676_ACEOF 7677if ac_fn_c_try_compile "$LINENO" 7678then : 7679 xorg_cv_cc_flag_unused_command_line_argument=yes 7680else $as_nop 7681 xorg_cv_cc_flag_unused_command_line_argument=no 7682fi 7683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7684fi 7685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7686printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7688 CFLAGS="$xorg_testset_save_CFLAGS" 7689fi 7690 7691found="no" 7692 7693 if test $found = "no" ; then 7694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7696 fi 7697 7698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7700 fi 7701 7702 CFLAGS="$CFLAGS -Werror=array-bounds" 7703 7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7705printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 7706 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7707 if eval test \${$cacheid+y} 7708then : 7709 printf %s "(cached) " >&6 7710else $as_nop 7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7712/* end confdefs.h. */ 7713int i; 7714int 7715main (void) 7716{ 7717 7718 ; 7719 return 0; 7720} 7721_ACEOF 7722if ac_fn_c_try_link "$LINENO" 7723then : 7724 eval $cacheid=yes 7725else $as_nop 7726 eval $cacheid=no 7727fi 7728rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7729 conftest$ac_exeext conftest.$ac_ext 7730fi 7731 7732 7733 CFLAGS="$xorg_testset_save_CFLAGS" 7734 7735 eval supported=\$$cacheid 7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7737printf "%s\n" "$supported" >&6; } 7738 if test "$supported" = "yes" ; then 7739 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7740 found="yes" 7741 fi 7742 fi 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758xorg_testset_save_CFLAGS="$CFLAGS" 7759 7760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7763printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7764if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7765then : 7766 printf %s "(cached) " >&6 7767else $as_nop 7768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7769/* end confdefs.h. */ 7770int i; 7771_ACEOF 7772if ac_fn_c_try_compile "$LINENO" 7773then : 7774 xorg_cv_cc_flag_unknown_warning_option=yes 7775else $as_nop 7776 xorg_cv_cc_flag_unknown_warning_option=no 7777fi 7778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7779fi 7780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7781printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7783 CFLAGS="$xorg_testset_save_CFLAGS" 7784fi 7785 7786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7789 fi 7790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7792printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7793if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7794then : 7795 printf %s "(cached) " >&6 7796else $as_nop 7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7798/* end confdefs.h. */ 7799int i; 7800_ACEOF 7801if ac_fn_c_try_compile "$LINENO" 7802then : 7803 xorg_cv_cc_flag_unused_command_line_argument=yes 7804else $as_nop 7805 xorg_cv_cc_flag_unused_command_line_argument=no 7806fi 7807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7808fi 7809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7810printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7812 CFLAGS="$xorg_testset_save_CFLAGS" 7813fi 7814 7815found="no" 7816 7817 if test $found = "no" ; then 7818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7820 fi 7821 7822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7824 fi 7825 7826 CFLAGS="$CFLAGS -Werror=write-strings" 7827 7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7829printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 7830 cacheid=xorg_cv_cc_flag__Werror_write_strings 7831 if eval test \${$cacheid+y} 7832then : 7833 printf %s "(cached) " >&6 7834else $as_nop 7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7836/* end confdefs.h. */ 7837int i; 7838int 7839main (void) 7840{ 7841 7842 ; 7843 return 0; 7844} 7845_ACEOF 7846if ac_fn_c_try_link "$LINENO" 7847then : 7848 eval $cacheid=yes 7849else $as_nop 7850 eval $cacheid=no 7851fi 7852rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7853 conftest$ac_exeext conftest.$ac_ext 7854fi 7855 7856 7857 CFLAGS="$xorg_testset_save_CFLAGS" 7858 7859 eval supported=\$$cacheid 7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7861printf "%s\n" "$supported" >&6; } 7862 if test "$supported" = "yes" ; then 7863 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7864 found="yes" 7865 fi 7866 fi 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882xorg_testset_save_CFLAGS="$CFLAGS" 7883 7884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7887printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7888if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7889then : 7890 printf %s "(cached) " >&6 7891else $as_nop 7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7893/* end confdefs.h. */ 7894int i; 7895_ACEOF 7896if ac_fn_c_try_compile "$LINENO" 7897then : 7898 xorg_cv_cc_flag_unknown_warning_option=yes 7899else $as_nop 7900 xorg_cv_cc_flag_unknown_warning_option=no 7901fi 7902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7903fi 7904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7905printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7907 CFLAGS="$xorg_testset_save_CFLAGS" 7908fi 7909 7910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7913 fi 7914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7916printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7917if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7918then : 7919 printf %s "(cached) " >&6 7920else $as_nop 7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7922/* end confdefs.h. */ 7923int i; 7924_ACEOF 7925if ac_fn_c_try_compile "$LINENO" 7926then : 7927 xorg_cv_cc_flag_unused_command_line_argument=yes 7928else $as_nop 7929 xorg_cv_cc_flag_unused_command_line_argument=no 7930fi 7931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7932fi 7933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7934printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7936 CFLAGS="$xorg_testset_save_CFLAGS" 7937fi 7938 7939found="no" 7940 7941 if test $found = "no" ; then 7942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7944 fi 7945 7946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7948 fi 7949 7950 CFLAGS="$CFLAGS -Werror=address" 7951 7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7953printf %s "checking if $CC supports -Werror=address... " >&6; } 7954 cacheid=xorg_cv_cc_flag__Werror_address 7955 if eval test \${$cacheid+y} 7956then : 7957 printf %s "(cached) " >&6 7958else $as_nop 7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7960/* end confdefs.h. */ 7961int i; 7962int 7963main (void) 7964{ 7965 7966 ; 7967 return 0; 7968} 7969_ACEOF 7970if ac_fn_c_try_link "$LINENO" 7971then : 7972 eval $cacheid=yes 7973else $as_nop 7974 eval $cacheid=no 7975fi 7976rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7977 conftest$ac_exeext conftest.$ac_ext 7978fi 7979 7980 7981 CFLAGS="$xorg_testset_save_CFLAGS" 7982 7983 eval supported=\$$cacheid 7984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7985printf "%s\n" "$supported" >&6; } 7986 if test "$supported" = "yes" ; then 7987 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7988 found="yes" 7989 fi 7990 fi 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006xorg_testset_save_CFLAGS="$CFLAGS" 8007 8008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8011printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8012if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8013then : 8014 printf %s "(cached) " >&6 8015else $as_nop 8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8017/* end confdefs.h. */ 8018int i; 8019_ACEOF 8020if ac_fn_c_try_compile "$LINENO" 8021then : 8022 xorg_cv_cc_flag_unknown_warning_option=yes 8023else $as_nop 8024 xorg_cv_cc_flag_unknown_warning_option=no 8025fi 8026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8027fi 8028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8029printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8031 CFLAGS="$xorg_testset_save_CFLAGS" 8032fi 8033 8034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8037 fi 8038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8040printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8041if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8042then : 8043 printf %s "(cached) " >&6 8044else $as_nop 8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8046/* end confdefs.h. */ 8047int i; 8048_ACEOF 8049if ac_fn_c_try_compile "$LINENO" 8050then : 8051 xorg_cv_cc_flag_unused_command_line_argument=yes 8052else $as_nop 8053 xorg_cv_cc_flag_unused_command_line_argument=no 8054fi 8055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8056fi 8057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8058printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8060 CFLAGS="$xorg_testset_save_CFLAGS" 8061fi 8062 8063found="no" 8064 8065 if test $found = "no" ; then 8066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8068 fi 8069 8070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8072 fi 8073 8074 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8075 8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8077printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8078 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8079 if eval test \${$cacheid+y} 8080then : 8081 printf %s "(cached) " >&6 8082else $as_nop 8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8084/* end confdefs.h. */ 8085int i; 8086int 8087main (void) 8088{ 8089 8090 ; 8091 return 0; 8092} 8093_ACEOF 8094if ac_fn_c_try_link "$LINENO" 8095then : 8096 eval $cacheid=yes 8097else $as_nop 8098 eval $cacheid=no 8099fi 8100rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8101 conftest$ac_exeext conftest.$ac_ext 8102fi 8103 8104 8105 CFLAGS="$xorg_testset_save_CFLAGS" 8106 8107 eval supported=\$$cacheid 8108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8109printf "%s\n" "$supported" >&6; } 8110 if test "$supported" = "yes" ; then 8111 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8112 found="yes" 8113 fi 8114 fi 8115 8116 if test $found = "no" ; then 8117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8119 fi 8120 8121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8123 fi 8124 8125 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8126 8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8128printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8129 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8130 if eval test \${$cacheid+y} 8131then : 8132 printf %s "(cached) " >&6 8133else $as_nop 8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8135/* end confdefs.h. */ 8136int i; 8137int 8138main (void) 8139{ 8140 8141 ; 8142 return 0; 8143} 8144_ACEOF 8145if ac_fn_c_try_link "$LINENO" 8146then : 8147 eval $cacheid=yes 8148else $as_nop 8149 eval $cacheid=no 8150fi 8151rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8152 conftest$ac_exeext conftest.$ac_ext 8153fi 8154 8155 8156 CFLAGS="$xorg_testset_save_CFLAGS" 8157 8158 eval supported=\$$cacheid 8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8160printf "%s\n" "$supported" >&6; } 8161 if test "$supported" = "yes" ; then 8162 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8163 found="yes" 8164 fi 8165 fi 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181xorg_testset_save_CFLAGS="$CFLAGS" 8182 8183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8186printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8187if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8188then : 8189 printf %s "(cached) " >&6 8190else $as_nop 8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8192/* end confdefs.h. */ 8193int i; 8194_ACEOF 8195if ac_fn_c_try_compile "$LINENO" 8196then : 8197 xorg_cv_cc_flag_unknown_warning_option=yes 8198else $as_nop 8199 xorg_cv_cc_flag_unknown_warning_option=no 8200fi 8201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8202fi 8203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8204printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8206 CFLAGS="$xorg_testset_save_CFLAGS" 8207fi 8208 8209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8212 fi 8213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8215printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8216if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8217then : 8218 printf %s "(cached) " >&6 8219else $as_nop 8220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8221/* end confdefs.h. */ 8222int i; 8223_ACEOF 8224if ac_fn_c_try_compile "$LINENO" 8225then : 8226 xorg_cv_cc_flag_unused_command_line_argument=yes 8227else $as_nop 8228 xorg_cv_cc_flag_unused_command_line_argument=no 8229fi 8230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8231fi 8232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8233printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8235 CFLAGS="$xorg_testset_save_CFLAGS" 8236fi 8237 8238found="no" 8239 8240 if test $found = "no" ; then 8241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8243 fi 8244 8245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8247 fi 8248 8249 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8250 8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8252printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8253 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8254 if eval test \${$cacheid+y} 8255then : 8256 printf %s "(cached) " >&6 8257else $as_nop 8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8259/* end confdefs.h. */ 8260int i; 8261int 8262main (void) 8263{ 8264 8265 ; 8266 return 0; 8267} 8268_ACEOF 8269if ac_fn_c_try_link "$LINENO" 8270then : 8271 eval $cacheid=yes 8272else $as_nop 8273 eval $cacheid=no 8274fi 8275rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8276 conftest$ac_exeext conftest.$ac_ext 8277fi 8278 8279 8280 CFLAGS="$xorg_testset_save_CFLAGS" 8281 8282 eval supported=\$$cacheid 8283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8284printf "%s\n" "$supported" >&6; } 8285 if test "$supported" = "yes" ; then 8286 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8287 found="yes" 8288 fi 8289 fi 8290 8291 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8292else 8293{ 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 8294printf "%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;} 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308xorg_testset_save_CFLAGS="$CFLAGS" 8309 8310if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8313printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8314if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8315then : 8316 printf %s "(cached) " >&6 8317else $as_nop 8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8319/* end confdefs.h. */ 8320int i; 8321_ACEOF 8322if ac_fn_c_try_compile "$LINENO" 8323then : 8324 xorg_cv_cc_flag_unknown_warning_option=yes 8325else $as_nop 8326 xorg_cv_cc_flag_unknown_warning_option=no 8327fi 8328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8329fi 8330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8331printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8333 CFLAGS="$xorg_testset_save_CFLAGS" 8334fi 8335 8336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8339 fi 8340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8342printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8343if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8344then : 8345 printf %s "(cached) " >&6 8346else $as_nop 8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8348/* end confdefs.h. */ 8349int i; 8350_ACEOF 8351if ac_fn_c_try_compile "$LINENO" 8352then : 8353 xorg_cv_cc_flag_unused_command_line_argument=yes 8354else $as_nop 8355 xorg_cv_cc_flag_unused_command_line_argument=no 8356fi 8357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8358fi 8359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8360printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8362 CFLAGS="$xorg_testset_save_CFLAGS" 8363fi 8364 8365found="no" 8366 8367 if test $found = "no" ; then 8368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8370 fi 8371 8372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8374 fi 8375 8376 CFLAGS="$CFLAGS -Wimplicit" 8377 8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8379printf %s "checking if $CC supports -Wimplicit... " >&6; } 8380 cacheid=xorg_cv_cc_flag__Wimplicit 8381 if eval test \${$cacheid+y} 8382then : 8383 printf %s "(cached) " >&6 8384else $as_nop 8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8386/* end confdefs.h. */ 8387int i; 8388int 8389main (void) 8390{ 8391 8392 ; 8393 return 0; 8394} 8395_ACEOF 8396if ac_fn_c_try_link "$LINENO" 8397then : 8398 eval $cacheid=yes 8399else $as_nop 8400 eval $cacheid=no 8401fi 8402rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8403 conftest$ac_exeext conftest.$ac_ext 8404fi 8405 8406 8407 CFLAGS="$xorg_testset_save_CFLAGS" 8408 8409 eval supported=\$$cacheid 8410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8411printf "%s\n" "$supported" >&6; } 8412 if test "$supported" = "yes" ; then 8413 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8414 found="yes" 8415 fi 8416 fi 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432xorg_testset_save_CFLAGS="$CFLAGS" 8433 8434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8437printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8438if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8439then : 8440 printf %s "(cached) " >&6 8441else $as_nop 8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8443/* end confdefs.h. */ 8444int i; 8445_ACEOF 8446if ac_fn_c_try_compile "$LINENO" 8447then : 8448 xorg_cv_cc_flag_unknown_warning_option=yes 8449else $as_nop 8450 xorg_cv_cc_flag_unknown_warning_option=no 8451fi 8452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8453fi 8454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8455printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8457 CFLAGS="$xorg_testset_save_CFLAGS" 8458fi 8459 8460if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8463 fi 8464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8466printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8467if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8468then : 8469 printf %s "(cached) " >&6 8470else $as_nop 8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8472/* end confdefs.h. */ 8473int i; 8474_ACEOF 8475if ac_fn_c_try_compile "$LINENO" 8476then : 8477 xorg_cv_cc_flag_unused_command_line_argument=yes 8478else $as_nop 8479 xorg_cv_cc_flag_unused_command_line_argument=no 8480fi 8481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8482fi 8483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8484printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8486 CFLAGS="$xorg_testset_save_CFLAGS" 8487fi 8488 8489found="no" 8490 8491 if test $found = "no" ; then 8492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8494 fi 8495 8496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8498 fi 8499 8500 CFLAGS="$CFLAGS -Wnonnull" 8501 8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8503printf %s "checking if $CC supports -Wnonnull... " >&6; } 8504 cacheid=xorg_cv_cc_flag__Wnonnull 8505 if eval test \${$cacheid+y} 8506then : 8507 printf %s "(cached) " >&6 8508else $as_nop 8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8510/* end confdefs.h. */ 8511int i; 8512int 8513main (void) 8514{ 8515 8516 ; 8517 return 0; 8518} 8519_ACEOF 8520if ac_fn_c_try_link "$LINENO" 8521then : 8522 eval $cacheid=yes 8523else $as_nop 8524 eval $cacheid=no 8525fi 8526rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8527 conftest$ac_exeext conftest.$ac_ext 8528fi 8529 8530 8531 CFLAGS="$xorg_testset_save_CFLAGS" 8532 8533 eval supported=\$$cacheid 8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8535printf "%s\n" "$supported" >&6; } 8536 if test "$supported" = "yes" ; then 8537 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8538 found="yes" 8539 fi 8540 fi 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556xorg_testset_save_CFLAGS="$CFLAGS" 8557 8558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8561printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8562if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8563then : 8564 printf %s "(cached) " >&6 8565else $as_nop 8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8567/* end confdefs.h. */ 8568int i; 8569_ACEOF 8570if ac_fn_c_try_compile "$LINENO" 8571then : 8572 xorg_cv_cc_flag_unknown_warning_option=yes 8573else $as_nop 8574 xorg_cv_cc_flag_unknown_warning_option=no 8575fi 8576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8577fi 8578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8579printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8581 CFLAGS="$xorg_testset_save_CFLAGS" 8582fi 8583 8584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8587 fi 8588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8590printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8591if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8592then : 8593 printf %s "(cached) " >&6 8594else $as_nop 8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8596/* end confdefs.h. */ 8597int i; 8598_ACEOF 8599if ac_fn_c_try_compile "$LINENO" 8600then : 8601 xorg_cv_cc_flag_unused_command_line_argument=yes 8602else $as_nop 8603 xorg_cv_cc_flag_unused_command_line_argument=no 8604fi 8605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8606fi 8607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8608printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8610 CFLAGS="$xorg_testset_save_CFLAGS" 8611fi 8612 8613found="no" 8614 8615 if test $found = "no" ; then 8616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8618 fi 8619 8620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8622 fi 8623 8624 CFLAGS="$CFLAGS -Winit-self" 8625 8626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8627printf %s "checking if $CC supports -Winit-self... " >&6; } 8628 cacheid=xorg_cv_cc_flag__Winit_self 8629 if eval test \${$cacheid+y} 8630then : 8631 printf %s "(cached) " >&6 8632else $as_nop 8633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8634/* end confdefs.h. */ 8635int i; 8636int 8637main (void) 8638{ 8639 8640 ; 8641 return 0; 8642} 8643_ACEOF 8644if ac_fn_c_try_link "$LINENO" 8645then : 8646 eval $cacheid=yes 8647else $as_nop 8648 eval $cacheid=no 8649fi 8650rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8651 conftest$ac_exeext conftest.$ac_ext 8652fi 8653 8654 8655 CFLAGS="$xorg_testset_save_CFLAGS" 8656 8657 eval supported=\$$cacheid 8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8659printf "%s\n" "$supported" >&6; } 8660 if test "$supported" = "yes" ; then 8661 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8662 found="yes" 8663 fi 8664 fi 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680xorg_testset_save_CFLAGS="$CFLAGS" 8681 8682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8685printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8686if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8687then : 8688 printf %s "(cached) " >&6 8689else $as_nop 8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8691/* end confdefs.h. */ 8692int i; 8693_ACEOF 8694if ac_fn_c_try_compile "$LINENO" 8695then : 8696 xorg_cv_cc_flag_unknown_warning_option=yes 8697else $as_nop 8698 xorg_cv_cc_flag_unknown_warning_option=no 8699fi 8700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8701fi 8702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8703printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8704 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8705 CFLAGS="$xorg_testset_save_CFLAGS" 8706fi 8707 8708if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8711 fi 8712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8714printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8715if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8716then : 8717 printf %s "(cached) " >&6 8718else $as_nop 8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8720/* end confdefs.h. */ 8721int i; 8722_ACEOF 8723if ac_fn_c_try_compile "$LINENO" 8724then : 8725 xorg_cv_cc_flag_unused_command_line_argument=yes 8726else $as_nop 8727 xorg_cv_cc_flag_unused_command_line_argument=no 8728fi 8729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8730fi 8731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8732printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8734 CFLAGS="$xorg_testset_save_CFLAGS" 8735fi 8736 8737found="no" 8738 8739 if test $found = "no" ; then 8740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8742 fi 8743 8744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8746 fi 8747 8748 CFLAGS="$CFLAGS -Wmain" 8749 8750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8751printf %s "checking if $CC supports -Wmain... " >&6; } 8752 cacheid=xorg_cv_cc_flag__Wmain 8753 if eval test \${$cacheid+y} 8754then : 8755 printf %s "(cached) " >&6 8756else $as_nop 8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8758/* end confdefs.h. */ 8759int i; 8760int 8761main (void) 8762{ 8763 8764 ; 8765 return 0; 8766} 8767_ACEOF 8768if ac_fn_c_try_link "$LINENO" 8769then : 8770 eval $cacheid=yes 8771else $as_nop 8772 eval $cacheid=no 8773fi 8774rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8775 conftest$ac_exeext conftest.$ac_ext 8776fi 8777 8778 8779 CFLAGS="$xorg_testset_save_CFLAGS" 8780 8781 eval supported=\$$cacheid 8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8783printf "%s\n" "$supported" >&6; } 8784 if test "$supported" = "yes" ; then 8785 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8786 found="yes" 8787 fi 8788 fi 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804xorg_testset_save_CFLAGS="$CFLAGS" 8805 8806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8809printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8810if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8811then : 8812 printf %s "(cached) " >&6 8813else $as_nop 8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8815/* end confdefs.h. */ 8816int i; 8817_ACEOF 8818if ac_fn_c_try_compile "$LINENO" 8819then : 8820 xorg_cv_cc_flag_unknown_warning_option=yes 8821else $as_nop 8822 xorg_cv_cc_flag_unknown_warning_option=no 8823fi 8824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8825fi 8826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8827printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8829 CFLAGS="$xorg_testset_save_CFLAGS" 8830fi 8831 8832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8835 fi 8836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8838printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8839if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8840then : 8841 printf %s "(cached) " >&6 8842else $as_nop 8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8844/* end confdefs.h. */ 8845int i; 8846_ACEOF 8847if ac_fn_c_try_compile "$LINENO" 8848then : 8849 xorg_cv_cc_flag_unused_command_line_argument=yes 8850else $as_nop 8851 xorg_cv_cc_flag_unused_command_line_argument=no 8852fi 8853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8854fi 8855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8856printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8858 CFLAGS="$xorg_testset_save_CFLAGS" 8859fi 8860 8861found="no" 8862 8863 if test $found = "no" ; then 8864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8866 fi 8867 8868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8870 fi 8871 8872 CFLAGS="$CFLAGS -Wmissing-braces" 8873 8874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8875printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 8876 cacheid=xorg_cv_cc_flag__Wmissing_braces 8877 if eval test \${$cacheid+y} 8878then : 8879 printf %s "(cached) " >&6 8880else $as_nop 8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8882/* end confdefs.h. */ 8883int i; 8884int 8885main (void) 8886{ 8887 8888 ; 8889 return 0; 8890} 8891_ACEOF 8892if ac_fn_c_try_link "$LINENO" 8893then : 8894 eval $cacheid=yes 8895else $as_nop 8896 eval $cacheid=no 8897fi 8898rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8899 conftest$ac_exeext conftest.$ac_ext 8900fi 8901 8902 8903 CFLAGS="$xorg_testset_save_CFLAGS" 8904 8905 eval supported=\$$cacheid 8906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8907printf "%s\n" "$supported" >&6; } 8908 if test "$supported" = "yes" ; then 8909 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8910 found="yes" 8911 fi 8912 fi 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928xorg_testset_save_CFLAGS="$CFLAGS" 8929 8930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8933printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8934if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8935then : 8936 printf %s "(cached) " >&6 8937else $as_nop 8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8939/* end confdefs.h. */ 8940int i; 8941_ACEOF 8942if ac_fn_c_try_compile "$LINENO" 8943then : 8944 xorg_cv_cc_flag_unknown_warning_option=yes 8945else $as_nop 8946 xorg_cv_cc_flag_unknown_warning_option=no 8947fi 8948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8949fi 8950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8951printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8953 CFLAGS="$xorg_testset_save_CFLAGS" 8954fi 8955 8956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8959 fi 8960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8962printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8963if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8964then : 8965 printf %s "(cached) " >&6 8966else $as_nop 8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8968/* end confdefs.h. */ 8969int i; 8970_ACEOF 8971if ac_fn_c_try_compile "$LINENO" 8972then : 8973 xorg_cv_cc_flag_unused_command_line_argument=yes 8974else $as_nop 8975 xorg_cv_cc_flag_unused_command_line_argument=no 8976fi 8977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8978fi 8979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8980printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8982 CFLAGS="$xorg_testset_save_CFLAGS" 8983fi 8984 8985found="no" 8986 8987 if test $found = "no" ; then 8988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8990 fi 8991 8992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8994 fi 8995 8996 CFLAGS="$CFLAGS -Wsequence-point" 8997 8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8999printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9000 cacheid=xorg_cv_cc_flag__Wsequence_point 9001 if eval test \${$cacheid+y} 9002then : 9003 printf %s "(cached) " >&6 9004else $as_nop 9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9006/* end confdefs.h. */ 9007int i; 9008int 9009main (void) 9010{ 9011 9012 ; 9013 return 0; 9014} 9015_ACEOF 9016if ac_fn_c_try_link "$LINENO" 9017then : 9018 eval $cacheid=yes 9019else $as_nop 9020 eval $cacheid=no 9021fi 9022rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9023 conftest$ac_exeext conftest.$ac_ext 9024fi 9025 9026 9027 CFLAGS="$xorg_testset_save_CFLAGS" 9028 9029 eval supported=\$$cacheid 9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9031printf "%s\n" "$supported" >&6; } 9032 if test "$supported" = "yes" ; then 9033 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9034 found="yes" 9035 fi 9036 fi 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052xorg_testset_save_CFLAGS="$CFLAGS" 9053 9054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9057printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9058if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9059then : 9060 printf %s "(cached) " >&6 9061else $as_nop 9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9063/* end confdefs.h. */ 9064int i; 9065_ACEOF 9066if ac_fn_c_try_compile "$LINENO" 9067then : 9068 xorg_cv_cc_flag_unknown_warning_option=yes 9069else $as_nop 9070 xorg_cv_cc_flag_unknown_warning_option=no 9071fi 9072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9073fi 9074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9075printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9077 CFLAGS="$xorg_testset_save_CFLAGS" 9078fi 9079 9080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9083 fi 9084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9086printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9087if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9088then : 9089 printf %s "(cached) " >&6 9090else $as_nop 9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9092/* end confdefs.h. */ 9093int i; 9094_ACEOF 9095if ac_fn_c_try_compile "$LINENO" 9096then : 9097 xorg_cv_cc_flag_unused_command_line_argument=yes 9098else $as_nop 9099 xorg_cv_cc_flag_unused_command_line_argument=no 9100fi 9101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9102fi 9103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9104printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9106 CFLAGS="$xorg_testset_save_CFLAGS" 9107fi 9108 9109found="no" 9110 9111 if test $found = "no" ; then 9112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9114 fi 9115 9116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9118 fi 9119 9120 CFLAGS="$CFLAGS -Wreturn-type" 9121 9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9123printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9124 cacheid=xorg_cv_cc_flag__Wreturn_type 9125 if eval test \${$cacheid+y} 9126then : 9127 printf %s "(cached) " >&6 9128else $as_nop 9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9130/* end confdefs.h. */ 9131int i; 9132int 9133main (void) 9134{ 9135 9136 ; 9137 return 0; 9138} 9139_ACEOF 9140if ac_fn_c_try_link "$LINENO" 9141then : 9142 eval $cacheid=yes 9143else $as_nop 9144 eval $cacheid=no 9145fi 9146rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9147 conftest$ac_exeext conftest.$ac_ext 9148fi 9149 9150 9151 CFLAGS="$xorg_testset_save_CFLAGS" 9152 9153 eval supported=\$$cacheid 9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9155printf "%s\n" "$supported" >&6; } 9156 if test "$supported" = "yes" ; then 9157 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9158 found="yes" 9159 fi 9160 fi 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176xorg_testset_save_CFLAGS="$CFLAGS" 9177 9178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9181printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9182if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9183then : 9184 printf %s "(cached) " >&6 9185else $as_nop 9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9187/* end confdefs.h. */ 9188int i; 9189_ACEOF 9190if ac_fn_c_try_compile "$LINENO" 9191then : 9192 xorg_cv_cc_flag_unknown_warning_option=yes 9193else $as_nop 9194 xorg_cv_cc_flag_unknown_warning_option=no 9195fi 9196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9197fi 9198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9199printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9201 CFLAGS="$xorg_testset_save_CFLAGS" 9202fi 9203 9204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9207 fi 9208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9210printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9211if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9212then : 9213 printf %s "(cached) " >&6 9214else $as_nop 9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9216/* end confdefs.h. */ 9217int i; 9218_ACEOF 9219if ac_fn_c_try_compile "$LINENO" 9220then : 9221 xorg_cv_cc_flag_unused_command_line_argument=yes 9222else $as_nop 9223 xorg_cv_cc_flag_unused_command_line_argument=no 9224fi 9225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9226fi 9227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9228printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9230 CFLAGS="$xorg_testset_save_CFLAGS" 9231fi 9232 9233found="no" 9234 9235 if test $found = "no" ; then 9236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9238 fi 9239 9240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9242 fi 9243 9244 CFLAGS="$CFLAGS -Wtrigraphs" 9245 9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9247printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9248 cacheid=xorg_cv_cc_flag__Wtrigraphs 9249 if eval test \${$cacheid+y} 9250then : 9251 printf %s "(cached) " >&6 9252else $as_nop 9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9254/* end confdefs.h. */ 9255int i; 9256int 9257main (void) 9258{ 9259 9260 ; 9261 return 0; 9262} 9263_ACEOF 9264if ac_fn_c_try_link "$LINENO" 9265then : 9266 eval $cacheid=yes 9267else $as_nop 9268 eval $cacheid=no 9269fi 9270rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9271 conftest$ac_exeext conftest.$ac_ext 9272fi 9273 9274 9275 CFLAGS="$xorg_testset_save_CFLAGS" 9276 9277 eval supported=\$$cacheid 9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9279printf "%s\n" "$supported" >&6; } 9280 if test "$supported" = "yes" ; then 9281 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9282 found="yes" 9283 fi 9284 fi 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300xorg_testset_save_CFLAGS="$CFLAGS" 9301 9302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9305printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9306if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9307then : 9308 printf %s "(cached) " >&6 9309else $as_nop 9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9311/* end confdefs.h. */ 9312int i; 9313_ACEOF 9314if ac_fn_c_try_compile "$LINENO" 9315then : 9316 xorg_cv_cc_flag_unknown_warning_option=yes 9317else $as_nop 9318 xorg_cv_cc_flag_unknown_warning_option=no 9319fi 9320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9321fi 9322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9323printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9325 CFLAGS="$xorg_testset_save_CFLAGS" 9326fi 9327 9328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9331 fi 9332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9334printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9335if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9336then : 9337 printf %s "(cached) " >&6 9338else $as_nop 9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9340/* end confdefs.h. */ 9341int i; 9342_ACEOF 9343if ac_fn_c_try_compile "$LINENO" 9344then : 9345 xorg_cv_cc_flag_unused_command_line_argument=yes 9346else $as_nop 9347 xorg_cv_cc_flag_unused_command_line_argument=no 9348fi 9349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9350fi 9351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9352printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9354 CFLAGS="$xorg_testset_save_CFLAGS" 9355fi 9356 9357found="no" 9358 9359 if test $found = "no" ; then 9360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9362 fi 9363 9364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9366 fi 9367 9368 CFLAGS="$CFLAGS -Warray-bounds" 9369 9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9371printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9372 cacheid=xorg_cv_cc_flag__Warray_bounds 9373 if eval test \${$cacheid+y} 9374then : 9375 printf %s "(cached) " >&6 9376else $as_nop 9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9378/* end confdefs.h. */ 9379int i; 9380int 9381main (void) 9382{ 9383 9384 ; 9385 return 0; 9386} 9387_ACEOF 9388if ac_fn_c_try_link "$LINENO" 9389then : 9390 eval $cacheid=yes 9391else $as_nop 9392 eval $cacheid=no 9393fi 9394rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9395 conftest$ac_exeext conftest.$ac_ext 9396fi 9397 9398 9399 CFLAGS="$xorg_testset_save_CFLAGS" 9400 9401 eval supported=\$$cacheid 9402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9403printf "%s\n" "$supported" >&6; } 9404 if test "$supported" = "yes" ; then 9405 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9406 found="yes" 9407 fi 9408 fi 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424xorg_testset_save_CFLAGS="$CFLAGS" 9425 9426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9429printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9430if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9431then : 9432 printf %s "(cached) " >&6 9433else $as_nop 9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9435/* end confdefs.h. */ 9436int i; 9437_ACEOF 9438if ac_fn_c_try_compile "$LINENO" 9439then : 9440 xorg_cv_cc_flag_unknown_warning_option=yes 9441else $as_nop 9442 xorg_cv_cc_flag_unknown_warning_option=no 9443fi 9444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9445fi 9446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9447printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9449 CFLAGS="$xorg_testset_save_CFLAGS" 9450fi 9451 9452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9455 fi 9456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9458printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9459if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9460then : 9461 printf %s "(cached) " >&6 9462else $as_nop 9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9464/* end confdefs.h. */ 9465int i; 9466_ACEOF 9467if ac_fn_c_try_compile "$LINENO" 9468then : 9469 xorg_cv_cc_flag_unused_command_line_argument=yes 9470else $as_nop 9471 xorg_cv_cc_flag_unused_command_line_argument=no 9472fi 9473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9474fi 9475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9476printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9478 CFLAGS="$xorg_testset_save_CFLAGS" 9479fi 9480 9481found="no" 9482 9483 if test $found = "no" ; then 9484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9486 fi 9487 9488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9490 fi 9491 9492 CFLAGS="$CFLAGS -Wwrite-strings" 9493 9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9495printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 9496 cacheid=xorg_cv_cc_flag__Wwrite_strings 9497 if eval test \${$cacheid+y} 9498then : 9499 printf %s "(cached) " >&6 9500else $as_nop 9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9502/* end confdefs.h. */ 9503int i; 9504int 9505main (void) 9506{ 9507 9508 ; 9509 return 0; 9510} 9511_ACEOF 9512if ac_fn_c_try_link "$LINENO" 9513then : 9514 eval $cacheid=yes 9515else $as_nop 9516 eval $cacheid=no 9517fi 9518rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9519 conftest$ac_exeext conftest.$ac_ext 9520fi 9521 9522 9523 CFLAGS="$xorg_testset_save_CFLAGS" 9524 9525 eval supported=\$$cacheid 9526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9527printf "%s\n" "$supported" >&6; } 9528 if test "$supported" = "yes" ; then 9529 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9530 found="yes" 9531 fi 9532 fi 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548xorg_testset_save_CFLAGS="$CFLAGS" 9549 9550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9553printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9554if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9555then : 9556 printf %s "(cached) " >&6 9557else $as_nop 9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9559/* end confdefs.h. */ 9560int i; 9561_ACEOF 9562if ac_fn_c_try_compile "$LINENO" 9563then : 9564 xorg_cv_cc_flag_unknown_warning_option=yes 9565else $as_nop 9566 xorg_cv_cc_flag_unknown_warning_option=no 9567fi 9568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9569fi 9570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9571printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9573 CFLAGS="$xorg_testset_save_CFLAGS" 9574fi 9575 9576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9579 fi 9580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9582printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9583if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9584then : 9585 printf %s "(cached) " >&6 9586else $as_nop 9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9588/* end confdefs.h. */ 9589int i; 9590_ACEOF 9591if ac_fn_c_try_compile "$LINENO" 9592then : 9593 xorg_cv_cc_flag_unused_command_line_argument=yes 9594else $as_nop 9595 xorg_cv_cc_flag_unused_command_line_argument=no 9596fi 9597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9598fi 9599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9600printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9602 CFLAGS="$xorg_testset_save_CFLAGS" 9603fi 9604 9605found="no" 9606 9607 if test $found = "no" ; then 9608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9610 fi 9611 9612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9614 fi 9615 9616 CFLAGS="$CFLAGS -Waddress" 9617 9618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9619printf %s "checking if $CC supports -Waddress... " >&6; } 9620 cacheid=xorg_cv_cc_flag__Waddress 9621 if eval test \${$cacheid+y} 9622then : 9623 printf %s "(cached) " >&6 9624else $as_nop 9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9626/* end confdefs.h. */ 9627int i; 9628int 9629main (void) 9630{ 9631 9632 ; 9633 return 0; 9634} 9635_ACEOF 9636if ac_fn_c_try_link "$LINENO" 9637then : 9638 eval $cacheid=yes 9639else $as_nop 9640 eval $cacheid=no 9641fi 9642rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9643 conftest$ac_exeext conftest.$ac_ext 9644fi 9645 9646 9647 CFLAGS="$xorg_testset_save_CFLAGS" 9648 9649 eval supported=\$$cacheid 9650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9651printf "%s\n" "$supported" >&6; } 9652 if test "$supported" = "yes" ; then 9653 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9654 found="yes" 9655 fi 9656 fi 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672xorg_testset_save_CFLAGS="$CFLAGS" 9673 9674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9677printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9678if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9679then : 9680 printf %s "(cached) " >&6 9681else $as_nop 9682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9683/* end confdefs.h. */ 9684int i; 9685_ACEOF 9686if ac_fn_c_try_compile "$LINENO" 9687then : 9688 xorg_cv_cc_flag_unknown_warning_option=yes 9689else $as_nop 9690 xorg_cv_cc_flag_unknown_warning_option=no 9691fi 9692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9693fi 9694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9695printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9697 CFLAGS="$xorg_testset_save_CFLAGS" 9698fi 9699 9700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9703 fi 9704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9706printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9707if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9708then : 9709 printf %s "(cached) " >&6 9710else $as_nop 9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9712/* end confdefs.h. */ 9713int i; 9714_ACEOF 9715if ac_fn_c_try_compile "$LINENO" 9716then : 9717 xorg_cv_cc_flag_unused_command_line_argument=yes 9718else $as_nop 9719 xorg_cv_cc_flag_unused_command_line_argument=no 9720fi 9721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9722fi 9723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9724printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9726 CFLAGS="$xorg_testset_save_CFLAGS" 9727fi 9728 9729found="no" 9730 9731 if test $found = "no" ; then 9732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9734 fi 9735 9736 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9738 fi 9739 9740 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9741 9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9743printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9744 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9745 if eval test \${$cacheid+y} 9746then : 9747 printf %s "(cached) " >&6 9748else $as_nop 9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9750/* end confdefs.h. */ 9751int i; 9752int 9753main (void) 9754{ 9755 9756 ; 9757 return 0; 9758} 9759_ACEOF 9760if ac_fn_c_try_link "$LINENO" 9761then : 9762 eval $cacheid=yes 9763else $as_nop 9764 eval $cacheid=no 9765fi 9766rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9767 conftest$ac_exeext conftest.$ac_ext 9768fi 9769 9770 9771 CFLAGS="$xorg_testset_save_CFLAGS" 9772 9773 eval supported=\$$cacheid 9774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9775printf "%s\n" "$supported" >&6; } 9776 if test "$supported" = "yes" ; then 9777 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9778 found="yes" 9779 fi 9780 fi 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796xorg_testset_save_CFLAGS="$CFLAGS" 9797 9798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9801printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9802if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9803then : 9804 printf %s "(cached) " >&6 9805else $as_nop 9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9807/* end confdefs.h. */ 9808int i; 9809_ACEOF 9810if ac_fn_c_try_compile "$LINENO" 9811then : 9812 xorg_cv_cc_flag_unknown_warning_option=yes 9813else $as_nop 9814 xorg_cv_cc_flag_unknown_warning_option=no 9815fi 9816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9817fi 9818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9819printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9821 CFLAGS="$xorg_testset_save_CFLAGS" 9822fi 9823 9824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9827 fi 9828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9830printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9831if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9832then : 9833 printf %s "(cached) " >&6 9834else $as_nop 9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9836/* end confdefs.h. */ 9837int i; 9838_ACEOF 9839if ac_fn_c_try_compile "$LINENO" 9840then : 9841 xorg_cv_cc_flag_unused_command_line_argument=yes 9842else $as_nop 9843 xorg_cv_cc_flag_unused_command_line_argument=no 9844fi 9845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9846fi 9847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9848printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9850 CFLAGS="$xorg_testset_save_CFLAGS" 9851fi 9852 9853found="no" 9854 9855 if test $found = "no" ; then 9856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9858 fi 9859 9860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9862 fi 9863 9864 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9865 9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9867printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9868 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9869 if eval test \${$cacheid+y} 9870then : 9871 printf %s "(cached) " >&6 9872else $as_nop 9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9874/* end confdefs.h. */ 9875int i; 9876int 9877main (void) 9878{ 9879 9880 ; 9881 return 0; 9882} 9883_ACEOF 9884if ac_fn_c_try_link "$LINENO" 9885then : 9886 eval $cacheid=yes 9887else $as_nop 9888 eval $cacheid=no 9889fi 9890rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9891 conftest$ac_exeext conftest.$ac_ext 9892fi 9893 9894 9895 CFLAGS="$xorg_testset_save_CFLAGS" 9896 9897 eval supported=\$$cacheid 9898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9899printf "%s\n" "$supported" >&6; } 9900 if test "$supported" = "yes" ; then 9901 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9902 found="yes" 9903 fi 9904 fi 9905 9906 9907fi 9908 9909 9910 9911 9912 9913 9914 9915 CWARNFLAGS="$BASE_CFLAGS" 9916 if test "x$GCC" = xyes ; then 9917 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9918 fi 9919 9920 9921 9922 9923 9924 9925 9926 9927# Check whether --enable-strict-compilation was given. 9928if test ${enable_strict_compilation+y} 9929then : 9930 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9931else $as_nop 9932 STRICT_COMPILE=no 9933fi 9934 9935 9936 9937 9938 9939 9940STRICT_CFLAGS="" 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954xorg_testset_save_CFLAGS="$CFLAGS" 9955 9956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9959printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9960if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9961then : 9962 printf %s "(cached) " >&6 9963else $as_nop 9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9965/* end confdefs.h. */ 9966int i; 9967_ACEOF 9968if ac_fn_c_try_compile "$LINENO" 9969then : 9970 xorg_cv_cc_flag_unknown_warning_option=yes 9971else $as_nop 9972 xorg_cv_cc_flag_unknown_warning_option=no 9973fi 9974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9975fi 9976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9977printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9979 CFLAGS="$xorg_testset_save_CFLAGS" 9980fi 9981 9982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9985 fi 9986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9988printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9989if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9990then : 9991 printf %s "(cached) " >&6 9992else $as_nop 9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9994/* end confdefs.h. */ 9995int i; 9996_ACEOF 9997if ac_fn_c_try_compile "$LINENO" 9998then : 9999 xorg_cv_cc_flag_unused_command_line_argument=yes 10000else $as_nop 10001 xorg_cv_cc_flag_unused_command_line_argument=no 10002fi 10003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10004fi 10005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10006printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10008 CFLAGS="$xorg_testset_save_CFLAGS" 10009fi 10010 10011found="no" 10012 10013 if test $found = "no" ; then 10014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10016 fi 10017 10018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10020 fi 10021 10022 CFLAGS="$CFLAGS -pedantic" 10023 10024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10025printf %s "checking if $CC supports -pedantic... " >&6; } 10026 cacheid=xorg_cv_cc_flag__pedantic 10027 if eval test \${$cacheid+y} 10028then : 10029 printf %s "(cached) " >&6 10030else $as_nop 10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10032/* end confdefs.h. */ 10033int i; 10034int 10035main (void) 10036{ 10037 10038 ; 10039 return 0; 10040} 10041_ACEOF 10042if ac_fn_c_try_link "$LINENO" 10043then : 10044 eval $cacheid=yes 10045else $as_nop 10046 eval $cacheid=no 10047fi 10048rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10049 conftest$ac_exeext conftest.$ac_ext 10050fi 10051 10052 10053 CFLAGS="$xorg_testset_save_CFLAGS" 10054 10055 eval supported=\$$cacheid 10056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10057printf "%s\n" "$supported" >&6; } 10058 if test "$supported" = "yes" ; then 10059 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10060 found="yes" 10061 fi 10062 fi 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078xorg_testset_save_CFLAGS="$CFLAGS" 10079 10080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10083printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10084if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10085then : 10086 printf %s "(cached) " >&6 10087else $as_nop 10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10089/* end confdefs.h. */ 10090int i; 10091_ACEOF 10092if ac_fn_c_try_compile "$LINENO" 10093then : 10094 xorg_cv_cc_flag_unknown_warning_option=yes 10095else $as_nop 10096 xorg_cv_cc_flag_unknown_warning_option=no 10097fi 10098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10099fi 10100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10101printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10103 CFLAGS="$xorg_testset_save_CFLAGS" 10104fi 10105 10106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10109 fi 10110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10112printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10113if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10114then : 10115 printf %s "(cached) " >&6 10116else $as_nop 10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10118/* end confdefs.h. */ 10119int i; 10120_ACEOF 10121if ac_fn_c_try_compile "$LINENO" 10122then : 10123 xorg_cv_cc_flag_unused_command_line_argument=yes 10124else $as_nop 10125 xorg_cv_cc_flag_unused_command_line_argument=no 10126fi 10127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10128fi 10129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10130printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10132 CFLAGS="$xorg_testset_save_CFLAGS" 10133fi 10134 10135found="no" 10136 10137 if test $found = "no" ; then 10138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10140 fi 10141 10142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10144 fi 10145 10146 CFLAGS="$CFLAGS -Werror" 10147 10148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10149printf %s "checking if $CC supports -Werror... " >&6; } 10150 cacheid=xorg_cv_cc_flag__Werror 10151 if eval test \${$cacheid+y} 10152then : 10153 printf %s "(cached) " >&6 10154else $as_nop 10155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10156/* end confdefs.h. */ 10157int i; 10158int 10159main (void) 10160{ 10161 10162 ; 10163 return 0; 10164} 10165_ACEOF 10166if ac_fn_c_try_link "$LINENO" 10167then : 10168 eval $cacheid=yes 10169else $as_nop 10170 eval $cacheid=no 10171fi 10172rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10173 conftest$ac_exeext conftest.$ac_ext 10174fi 10175 10176 10177 CFLAGS="$xorg_testset_save_CFLAGS" 10178 10179 eval supported=\$$cacheid 10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10181printf "%s\n" "$supported" >&6; } 10182 if test "$supported" = "yes" ; then 10183 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10184 found="yes" 10185 fi 10186 fi 10187 10188 if test $found = "no" ; then 10189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10191 fi 10192 10193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10195 fi 10196 10197 CFLAGS="$CFLAGS -errwarn" 10198 10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10200printf %s "checking if $CC supports -errwarn... " >&6; } 10201 cacheid=xorg_cv_cc_flag__errwarn 10202 if eval test \${$cacheid+y} 10203then : 10204 printf %s "(cached) " >&6 10205else $as_nop 10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10207/* end confdefs.h. */ 10208int i; 10209int 10210main (void) 10211{ 10212 10213 ; 10214 return 0; 10215} 10216_ACEOF 10217if ac_fn_c_try_link "$LINENO" 10218then : 10219 eval $cacheid=yes 10220else $as_nop 10221 eval $cacheid=no 10222fi 10223rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10224 conftest$ac_exeext conftest.$ac_ext 10225fi 10226 10227 10228 CFLAGS="$xorg_testset_save_CFLAGS" 10229 10230 eval supported=\$$cacheid 10231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10232printf "%s\n" "$supported" >&6; } 10233 if test "$supported" = "yes" ; then 10234 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10235 found="yes" 10236 fi 10237 fi 10238 10239 10240 10241# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10242# activate it with -Werror, so we add it here explicitly. 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256xorg_testset_save_CFLAGS="$CFLAGS" 10257 10258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10261printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10262if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10263then : 10264 printf %s "(cached) " >&6 10265else $as_nop 10266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10267/* end confdefs.h. */ 10268int i; 10269_ACEOF 10270if ac_fn_c_try_compile "$LINENO" 10271then : 10272 xorg_cv_cc_flag_unknown_warning_option=yes 10273else $as_nop 10274 xorg_cv_cc_flag_unknown_warning_option=no 10275fi 10276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10277fi 10278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10279printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10281 CFLAGS="$xorg_testset_save_CFLAGS" 10282fi 10283 10284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10287 fi 10288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10290printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10291if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10292then : 10293 printf %s "(cached) " >&6 10294else $as_nop 10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10296/* end confdefs.h. */ 10297int i; 10298_ACEOF 10299if ac_fn_c_try_compile "$LINENO" 10300then : 10301 xorg_cv_cc_flag_unused_command_line_argument=yes 10302else $as_nop 10303 xorg_cv_cc_flag_unused_command_line_argument=no 10304fi 10305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10306fi 10307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10308printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10310 CFLAGS="$xorg_testset_save_CFLAGS" 10311fi 10312 10313found="no" 10314 10315 if test $found = "no" ; then 10316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10318 fi 10319 10320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10322 fi 10323 10324 CFLAGS="$CFLAGS -Werror=attributes" 10325 10326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10327printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10328 cacheid=xorg_cv_cc_flag__Werror_attributes 10329 if eval test \${$cacheid+y} 10330then : 10331 printf %s "(cached) " >&6 10332else $as_nop 10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10334/* end confdefs.h. */ 10335int i; 10336int 10337main (void) 10338{ 10339 10340 ; 10341 return 0; 10342} 10343_ACEOF 10344if ac_fn_c_try_link "$LINENO" 10345then : 10346 eval $cacheid=yes 10347else $as_nop 10348 eval $cacheid=no 10349fi 10350rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10351 conftest$ac_exeext conftest.$ac_ext 10352fi 10353 10354 10355 CFLAGS="$xorg_testset_save_CFLAGS" 10356 10357 eval supported=\$$cacheid 10358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10359printf "%s\n" "$supported" >&6; } 10360 if test "$supported" = "yes" ; then 10361 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10362 found="yes" 10363 fi 10364 fi 10365 10366 10367 10368if test "x$STRICT_COMPILE" = "xyes"; then 10369 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10370 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10371fi 10372 10373 10374 10375 10376 10377 10378cat >>confdefs.h <<_ACEOF 10379#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10380_ACEOF 10381 10382 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10383 if test "x$PVM" = "x"; then 10384 PVM="0" 10385 fi 10386 10387printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10388 10389 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10390 if test "x$PVP" = "x"; then 10391 PVP="0" 10392 fi 10393 10394printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10395 10396 10397 10398CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10399mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10400|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10401touch \$(top_srcdir)/ChangeLog; \ 10402echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10403 10404 10405 10406 10407macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10408INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10409mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10410|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10411touch \$(top_srcdir)/INSTALL; \ 10412echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10413 10414 10415 10416 10417 10418 10419case $host_os in 10420 solaris*) 10421 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10422 # check for a man page file found in later versions that use 10423 # traditional section numbers instead 10424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10425printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10426if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10427then : 10428 printf %s "(cached) " >&6 10429else $as_nop 10430 test "$cross_compiling" = yes && 10431 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10432if test -r "/usr/share/man/man7/attributes.7"; then 10433 ac_cv_file__usr_share_man_man7_attributes_7=yes 10434else 10435 ac_cv_file__usr_share_man_man7_attributes_7=no 10436fi 10437fi 10438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10439printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10440if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10441then : 10442 SYSV_MAN_SECTIONS=false 10443else $as_nop 10444 SYSV_MAN_SECTIONS=true 10445fi 10446 10447 ;; 10448 *) SYSV_MAN_SECTIONS=false ;; 10449esac 10450 10451if test x$APP_MAN_SUFFIX = x ; then 10452 APP_MAN_SUFFIX=1 10453fi 10454if test x$APP_MAN_DIR = x ; then 10455 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10456fi 10457 10458if test x$LIB_MAN_SUFFIX = x ; then 10459 LIB_MAN_SUFFIX=3 10460fi 10461if test x$LIB_MAN_DIR = x ; then 10462 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10463fi 10464 10465if test x$FILE_MAN_SUFFIX = x ; then 10466 case $SYSV_MAN_SECTIONS in 10467 true) FILE_MAN_SUFFIX=4 ;; 10468 *) FILE_MAN_SUFFIX=5 ;; 10469 esac 10470fi 10471if test x$FILE_MAN_DIR = x ; then 10472 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10473fi 10474 10475if test x$MISC_MAN_SUFFIX = x ; then 10476 case $SYSV_MAN_SECTIONS in 10477 true) MISC_MAN_SUFFIX=5 ;; 10478 *) MISC_MAN_SUFFIX=7 ;; 10479 esac 10480fi 10481if test x$MISC_MAN_DIR = x ; then 10482 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10483fi 10484 10485if test x$DRIVER_MAN_SUFFIX = x ; then 10486 case $SYSV_MAN_SECTIONS in 10487 true) DRIVER_MAN_SUFFIX=7 ;; 10488 *) DRIVER_MAN_SUFFIX=4 ;; 10489 esac 10490fi 10491if test x$DRIVER_MAN_DIR = x ; then 10492 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10493fi 10494 10495if test x$ADMIN_MAN_SUFFIX = x ; then 10496 case $SYSV_MAN_SECTIONS in 10497 true) ADMIN_MAN_SUFFIX=1m ;; 10498 *) ADMIN_MAN_SUFFIX=8 ;; 10499 esac 10500fi 10501if test x$ADMIN_MAN_DIR = x ; then 10502 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10503fi 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519XORG_MAN_PAGE="X Version 11" 10520 10521MAN_SUBSTS="\ 10522 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10523 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10524 -e 's|__xservername__|Xorg|g' \ 10525 -e 's|__xconfigfile__|xorg.conf|g' \ 10526 -e 's|__projectroot__|\$(prefix)|g' \ 10527 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10528 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10529 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10530 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10531 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10532 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10533 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10534 10535 10536 10537# Check whether --enable-silent-rules was given. 10538if test ${enable_silent_rules+y} 10539then : 10540 enableval=$enable_silent_rules; 10541fi 10542 10543case $enable_silent_rules in # ((( 10544 yes) AM_DEFAULT_VERBOSITY=0;; 10545 no) AM_DEFAULT_VERBOSITY=1;; 10546 *) AM_DEFAULT_VERBOSITY=0;; 10547esac 10548am_make=${MAKE-make} 10549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10550printf %s "checking whether $am_make supports nested variables... " >&6; } 10551if test ${am_cv_make_support_nested_variables+y} 10552then : 10553 printf %s "(cached) " >&6 10554else $as_nop 10555 if printf "%s\n" 'TRUE=$(BAR$(V)) 10556BAR0=false 10557BAR1=true 10558V=1 10559am__doit: 10560 @$(TRUE) 10561.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10562 am_cv_make_support_nested_variables=yes 10563else 10564 am_cv_make_support_nested_variables=no 10565fi 10566fi 10567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10568printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 10569if test $am_cv_make_support_nested_variables = yes; then 10570 AM_V='$(V)' 10571 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10572else 10573 AM_V=$AM_DEFAULT_VERBOSITY 10574 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10575fi 10576AM_BACKSLASH='\' 10577 10578 10579 10580 10581 10582# Initialize Automake 10583am__api_version='1.16' 10584 10585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 10586printf %s "checking whether build environment is sane... " >&6; } 10587# Reject unsafe characters in $srcdir or the absolute working directory 10588# name. Accept space and tab only in the latter. 10589am_lf=' 10590' 10591case `pwd` in 10592 *[\\\"\#\$\&\'\`$am_lf]*) 10593 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 10594esac 10595case $srcdir in 10596 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 10597 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 10598esac 10599 10600# Do 'set' in a subshell so we don't clobber the current shell's 10601# arguments. Must try -L first in case configure is actually a 10602# symlink; some systems play weird games with the mod time of symlinks 10603# (eg FreeBSD returns the mod time of the symlink's containing 10604# directory). 10605if ( 10606 am_has_slept=no 10607 for am_try in 1 2; do 10608 echo "timestamp, slept: $am_has_slept" > conftest.file 10609 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 10610 if test "$*" = "X"; then 10611 # -L didn't work. 10612 set X `ls -t "$srcdir/configure" conftest.file` 10613 fi 10614 if test "$*" != "X $srcdir/configure conftest.file" \ 10615 && test "$*" != "X conftest.file $srcdir/configure"; then 10616 10617 # If neither matched, then we have a broken ls. This can happen 10618 # if, for instance, CONFIG_SHELL is bash and it inherits a 10619 # broken ls alias from the environment. This has actually 10620 # happened. Such a system could not be considered "sane". 10621 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 10622 alias in your environment" "$LINENO" 5 10623 fi 10624 if test "$2" = conftest.file || test $am_try -eq 2; then 10625 break 10626 fi 10627 # Just in case. 10628 sleep 1 10629 am_has_slept=yes 10630 done 10631 test "$2" = conftest.file 10632 ) 10633then 10634 # Ok. 10635 : 10636else 10637 as_fn_error $? "newly created file is older than distributed files! 10638Check your system clock" "$LINENO" 5 10639fi 10640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10641printf "%s\n" "yes" >&6; } 10642# If we didn't sleep, we still need to ensure time stamps of config.status and 10643# generated files are strictly newer. 10644am_sleep_pid= 10645if grep 'slept: no' conftest.file >/dev/null 2>&1; then 10646 ( sleep 1 ) & 10647 am_sleep_pid=$! 10648fi 10649 10650rm -f conftest.file 10651 10652test "$program_prefix" != NONE && 10653 program_transform_name="s&^&$program_prefix&;$program_transform_name" 10654# Use a double $ so make ignores it. 10655test "$program_suffix" != NONE && 10656 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 10657# Double any \ or $. 10658# By default was `s,x,x', remove it if useless. 10659ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 10660program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 10661 10662 10663 if test x"${MISSING+set}" != xset; then 10664 MISSING="\${SHELL} '$am_aux_dir/missing'" 10665fi 10666# Use eval to expand $SHELL 10667if eval "$MISSING --is-lightweight"; then 10668 am_missing_run="$MISSING " 10669else 10670 am_missing_run= 10671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 10672printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 10673fi 10674 10675if test x"${install_sh+set}" != xset; then 10676 case $am_aux_dir in 10677 *\ * | *\ *) 10678 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 10679 *) 10680 install_sh="\${SHELL} $am_aux_dir/install-sh" 10681 esac 10682fi 10683 10684# Installed binaries are usually stripped using 'strip' when the user 10685# run "make install-strip". However 'strip' might not be the right 10686# tool to use in cross-compilation environments, therefore Automake 10687# will honor the 'STRIP' environment variable to overrule this program. 10688if test "$cross_compiling" != no; then 10689 if test -n "$ac_tool_prefix"; then 10690 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10691set dummy ${ac_tool_prefix}strip; ac_word=$2 10692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10693printf %s "checking for $ac_word... " >&6; } 10694if test ${ac_cv_prog_STRIP+y} 10695then : 10696 printf %s "(cached) " >&6 10697else $as_nop 10698 if test -n "$STRIP"; then 10699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10700else 10701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10702for as_dir in $PATH 10703do 10704 IFS=$as_save_IFS 10705 case $as_dir in #((( 10706 '') as_dir=./ ;; 10707 */) ;; 10708 *) as_dir=$as_dir/ ;; 10709 esac 10710 for ac_exec_ext in '' $ac_executable_extensions; do 10711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10712 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10714 break 2 10715 fi 10716done 10717 done 10718IFS=$as_save_IFS 10719 10720fi 10721fi 10722STRIP=$ac_cv_prog_STRIP 10723if test -n "$STRIP"; then 10724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10725printf "%s\n" "$STRIP" >&6; } 10726else 10727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10728printf "%s\n" "no" >&6; } 10729fi 10730 10731 10732fi 10733if test -z "$ac_cv_prog_STRIP"; then 10734 ac_ct_STRIP=$STRIP 10735 # Extract the first word of "strip", so it can be a program name with args. 10736set dummy strip; ac_word=$2 10737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10738printf %s "checking for $ac_word... " >&6; } 10739if test ${ac_cv_prog_ac_ct_STRIP+y} 10740then : 10741 printf %s "(cached) " >&6 10742else $as_nop 10743 if test -n "$ac_ct_STRIP"; then 10744 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10745else 10746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10747for as_dir in $PATH 10748do 10749 IFS=$as_save_IFS 10750 case $as_dir in #((( 10751 '') as_dir=./ ;; 10752 */) ;; 10753 *) as_dir=$as_dir/ ;; 10754 esac 10755 for ac_exec_ext in '' $ac_executable_extensions; do 10756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10757 ac_cv_prog_ac_ct_STRIP="strip" 10758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10759 break 2 10760 fi 10761done 10762 done 10763IFS=$as_save_IFS 10764 10765fi 10766fi 10767ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10768if test -n "$ac_ct_STRIP"; then 10769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10770printf "%s\n" "$ac_ct_STRIP" >&6; } 10771else 10772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10773printf "%s\n" "no" >&6; } 10774fi 10775 10776 if test "x$ac_ct_STRIP" = x; then 10777 STRIP=":" 10778 else 10779 case $cross_compiling:$ac_tool_warned in 10780yes:) 10781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10782printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10783ac_tool_warned=yes ;; 10784esac 10785 STRIP=$ac_ct_STRIP 10786 fi 10787else 10788 STRIP="$ac_cv_prog_STRIP" 10789fi 10790 10791fi 10792INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 10793 10794 10795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 10796printf %s "checking for a race-free mkdir -p... " >&6; } 10797if test -z "$MKDIR_P"; then 10798 if test ${ac_cv_path_mkdir+y} 10799then : 10800 printf %s "(cached) " >&6 10801else $as_nop 10802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10803for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 10804do 10805 IFS=$as_save_IFS 10806 case $as_dir in #((( 10807 '') as_dir=./ ;; 10808 */) ;; 10809 *) as_dir=$as_dir/ ;; 10810 esac 10811 for ac_prog in mkdir gmkdir; do 10812 for ac_exec_ext in '' $ac_executable_extensions; do 10813 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 10814 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 10815 'mkdir ('*'coreutils) '* | \ 10816 'BusyBox '* | \ 10817 'mkdir (fileutils) '4.1*) 10818 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 10819 break 3;; 10820 esac 10821 done 10822 done 10823 done 10824IFS=$as_save_IFS 10825 10826fi 10827 10828 test -d ./--version && rmdir ./--version 10829 if test ${ac_cv_path_mkdir+y}; then 10830 MKDIR_P="$ac_cv_path_mkdir -p" 10831 else 10832 # As a last resort, use the slow shell script. Don't cache a 10833 # value for MKDIR_P within a source directory, because that will 10834 # break other packages using the cache if that directory is 10835 # removed, or if the value is a relative name. 10836 MKDIR_P="$ac_install_sh -d" 10837 fi 10838fi 10839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 10840printf "%s\n" "$MKDIR_P" >&6; } 10841 10842for ac_prog in gawk mawk nawk awk 10843do 10844 # Extract the first word of "$ac_prog", so it can be a program name with args. 10845set dummy $ac_prog; ac_word=$2 10846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10847printf %s "checking for $ac_word... " >&6; } 10848if test ${ac_cv_prog_AWK+y} 10849then : 10850 printf %s "(cached) " >&6 10851else $as_nop 10852 if test -n "$AWK"; then 10853 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10854else 10855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10856for as_dir in $PATH 10857do 10858 IFS=$as_save_IFS 10859 case $as_dir in #((( 10860 '') as_dir=./ ;; 10861 */) ;; 10862 *) as_dir=$as_dir/ ;; 10863 esac 10864 for ac_exec_ext in '' $ac_executable_extensions; do 10865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10866 ac_cv_prog_AWK="$ac_prog" 10867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10868 break 2 10869 fi 10870done 10871 done 10872IFS=$as_save_IFS 10873 10874fi 10875fi 10876AWK=$ac_cv_prog_AWK 10877if test -n "$AWK"; then 10878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 10879printf "%s\n" "$AWK" >&6; } 10880else 10881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10882printf "%s\n" "no" >&6; } 10883fi 10884 10885 10886 test -n "$AWK" && break 10887done 10888 10889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 10890printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 10891set x ${MAKE-make} 10892ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 10893if eval test \${ac_cv_prog_make_${ac_make}_set+y} 10894then : 10895 printf %s "(cached) " >&6 10896else $as_nop 10897 cat >conftest.make <<\_ACEOF 10898SHELL = /bin/sh 10899all: 10900 @echo '@@@%%%=$(MAKE)=@@@%%%' 10901_ACEOF 10902# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 10903case `${MAKE-make} -f conftest.make 2>/dev/null` in 10904 *@@@%%%=?*=@@@%%%*) 10905 eval ac_cv_prog_make_${ac_make}_set=yes;; 10906 *) 10907 eval ac_cv_prog_make_${ac_make}_set=no;; 10908esac 10909rm -f conftest.make 10910fi 10911if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 10912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10913printf "%s\n" "yes" >&6; } 10914 SET_MAKE= 10915else 10916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10917printf "%s\n" "no" >&6; } 10918 SET_MAKE="MAKE=${MAKE-make}" 10919fi 10920 10921rm -rf .tst 2>/dev/null 10922mkdir .tst 2>/dev/null 10923if test -d .tst; then 10924 am__leading_dot=. 10925else 10926 am__leading_dot=_ 10927fi 10928rmdir .tst 2>/dev/null 10929 10930DEPDIR="${am__leading_dot}deps" 10931 10932ac_config_commands="$ac_config_commands depfiles" 10933 10934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 10935printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 10936cat > confinc.mk << 'END' 10937am__doit: 10938 @echo this is the am__doit target >confinc.out 10939.PHONY: am__doit 10940END 10941am__include="#" 10942am__quote= 10943# BSD make does it like this. 10944echo '.include "confinc.mk" # ignored' > confmf.BSD 10945# Other make implementations (GNU, Solaris 10, AIX) do it like this. 10946echo 'include confinc.mk # ignored' > confmf.GNU 10947_am_result=no 10948for s in GNU BSD; do 10949 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 10950 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 10951 ac_status=$? 10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10953 (exit $ac_status); } 10954 case $?:`cat confinc.out 2>/dev/null` in #( 10955 '0:this is the am__doit target') : 10956 case $s in #( 10957 BSD) : 10958 am__include='.include' am__quote='"' ;; #( 10959 *) : 10960 am__include='include' am__quote='' ;; 10961esac ;; #( 10962 *) : 10963 ;; 10964esac 10965 if test "$am__include" != "#"; then 10966 _am_result="yes ($s style)" 10967 break 10968 fi 10969done 10970rm -f confinc.* confmf.* 10971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 10972printf "%s\n" "${_am_result}" >&6; } 10973 10974# Check whether --enable-dependency-tracking was given. 10975if test ${enable_dependency_tracking+y} 10976then : 10977 enableval=$enable_dependency_tracking; 10978fi 10979 10980if test "x$enable_dependency_tracking" != xno; then 10981 am_depcomp="$ac_aux_dir/depcomp" 10982 AMDEPBACKSLASH='\' 10983 am__nodep='_no' 10984fi 10985 if test "x$enable_dependency_tracking" != xno; then 10986 AMDEP_TRUE= 10987 AMDEP_FALSE='#' 10988else 10989 AMDEP_TRUE='#' 10990 AMDEP_FALSE= 10991fi 10992 10993 10994if test "`cd $srcdir && pwd`" != "`pwd`"; then 10995 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 10996 # is not polluted with repeated "-I." 10997 am__isrc=' -I$(srcdir)' 10998 # test to see if srcdir already configured 10999 if test -f $srcdir/config.status; then 11000 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 11001 fi 11002fi 11003 11004# test whether we have cygpath 11005if test -z "$CYGPATH_W"; then 11006 if (cygpath --version) >/dev/null 2>/dev/null; then 11007 CYGPATH_W='cygpath -w' 11008 else 11009 CYGPATH_W=echo 11010 fi 11011fi 11012 11013 11014# Define the identity of the package. 11015 PACKAGE='xf86-video-mga' 11016 VERSION='2.0.1' 11017 11018 11019printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 11020 11021 11022printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 11023 11024# Some tools Automake needs. 11025 11026ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 11027 11028 11029AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 11030 11031 11032AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 11033 11034 11035AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 11036 11037 11038MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 11039 11040# For better backward compatibility. To be removed once Automake 1.9.x 11041# dies out for good. For more background, see: 11042# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 11043# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 11044mkdir_p='$(MKDIR_P)' 11045 11046# We need awk for the "check" target (and possibly the TAP driver). The 11047# system "awk" is bad on some platforms. 11048# Always define AMTAR for backward compatibility. Yes, it's still used 11049# in the wild :-( We should find a proper way to deprecate it ... 11050AMTAR='$${TAR-tar}' 11051 11052 11053# We'll loop over all known methods to create a tar archive until one works. 11054_am_tools='gnutar pax cpio none' 11055 11056am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 11057 11058 11059 11060 11061 11062depcc="$CC" am_compiler_list= 11063 11064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 11065printf %s "checking dependency style of $depcc... " >&6; } 11066if test ${am_cv_CC_dependencies_compiler_type+y} 11067then : 11068 printf %s "(cached) " >&6 11069else $as_nop 11070 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11071 # We make a subdir and do the tests there. Otherwise we can end up 11072 # making bogus files that we don't know about and never remove. For 11073 # instance it was reported that on HP-UX the gcc test will end up 11074 # making a dummy file named 'D' -- because '-MD' means "put the output 11075 # in D". 11076 rm -rf conftest.dir 11077 mkdir conftest.dir 11078 # Copy depcomp to subdir because otherwise we won't find it if we're 11079 # using a relative directory. 11080 cp "$am_depcomp" conftest.dir 11081 cd conftest.dir 11082 # We will build objects and dependencies in a subdirectory because 11083 # it helps to detect inapplicable dependency modes. For instance 11084 # both Tru64's cc and ICC support -MD to output dependencies as a 11085 # side effect of compilation, but ICC will put the dependencies in 11086 # the current directory while Tru64 will put them in the object 11087 # directory. 11088 mkdir sub 11089 11090 am_cv_CC_dependencies_compiler_type=none 11091 if test "$am_compiler_list" = ""; then 11092 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11093 fi 11094 am__universal=false 11095 case " $depcc " in #( 11096 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11097 esac 11098 11099 for depmode in $am_compiler_list; do 11100 # Setup a source with many dependencies, because some compilers 11101 # like to wrap large dependency lists on column 80 (with \), and 11102 # we should not choose a depcomp mode which is confused by this. 11103 # 11104 # We need to recreate these files for each test, as the compiler may 11105 # overwrite some of them when testing with obscure command lines. 11106 # This happens at least with the AIX C compiler. 11107 : > sub/conftest.c 11108 for i in 1 2 3 4 5 6; do 11109 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11110 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 11111 # Solaris 10 /bin/sh. 11112 echo '/* dummy */' > sub/conftst$i.h 11113 done 11114 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11115 11116 # We check with '-c' and '-o' for the sake of the "dashmstdout" 11117 # mode. It turns out that the SunPro C++ compiler does not properly 11118 # handle '-M -o', and we need to detect this. Also, some Intel 11119 # versions had trouble with output in subdirs. 11120 am__obj=sub/conftest.${OBJEXT-o} 11121 am__minus_obj="-o $am__obj" 11122 case $depmode in 11123 gcc) 11124 # This depmode causes a compiler race in universal mode. 11125 test "$am__universal" = false || continue 11126 ;; 11127 nosideeffect) 11128 # After this tag, mechanisms are not by side-effect, so they'll 11129 # only be used when explicitly requested. 11130 if test "x$enable_dependency_tracking" = xyes; then 11131 continue 11132 else 11133 break 11134 fi 11135 ;; 11136 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 11137 # This compiler won't grok '-c -o', but also, the minuso test has 11138 # not run yet. These depmodes are late enough in the game, and 11139 # so weak that their functioning should not be impacted. 11140 am__obj=conftest.${OBJEXT-o} 11141 am__minus_obj= 11142 ;; 11143 none) break ;; 11144 esac 11145 if depmode=$depmode \ 11146 source=sub/conftest.c object=$am__obj \ 11147 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11148 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 11149 >/dev/null 2>conftest.err && 11150 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11152 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 11153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11154 # icc doesn't choke on unknown options, it will just issue warnings 11155 # or remarks (even with -Werror). So we grep stderr for any message 11156 # that says an option was ignored or not supported. 11157 # When given -MP, icc 7.0 and 7.1 complain thusly: 11158 # icc: Command line warning: ignoring option '-M'; no argument required 11159 # The diagnosis changed in icc 8.0: 11160 # icc: Command line remark: option '-MP' not supported 11161 if (grep 'ignoring option' conftest.err || 11162 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11163 am_cv_CC_dependencies_compiler_type=$depmode 11164 break 11165 fi 11166 fi 11167 done 11168 11169 cd .. 11170 rm -rf conftest.dir 11171else 11172 am_cv_CC_dependencies_compiler_type=none 11173fi 11174 11175fi 11176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 11177printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 11178CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11179 11180 if 11181 test "x$enable_dependency_tracking" != xno \ 11182 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11183 am__fastdepCC_TRUE= 11184 am__fastdepCC_FALSE='#' 11185else 11186 am__fastdepCC_TRUE='#' 11187 am__fastdepCC_FALSE= 11188fi 11189 11190 11191# Variables for tags utilities; see am/tags.am 11192if test -z "$CTAGS"; then 11193 CTAGS=ctags 11194fi 11195 11196if test -z "$ETAGS"; then 11197 ETAGS=etags 11198fi 11199 11200if test -z "$CSCOPE"; then 11201 CSCOPE=cscope 11202fi 11203 11204 11205 11206# POSIX will say in a future version that running "rm -f" with no argument 11207# is OK; and we want to be able to make that assumption in our Makefile 11208# recipes. So use an aggressive probe to check that the usage we want is 11209# actually supported "in the wild" to an acceptable degree. 11210# See automake bug#10828. 11211# To make any issue more visible, cause the running configure to be aborted 11212# by default if the 'rm' program in use doesn't match our expectations; the 11213# user can still override this though. 11214if rm -f && rm -fr && rm -rf; then : OK; else 11215 cat >&2 <<'END' 11216Oops! 11217 11218Your 'rm' program seems unable to run without file operands specified 11219on the command line, even when the '-f' option is present. This is contrary 11220to the behaviour of most rm programs out there, and not conforming with 11221the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 11222 11223Please tell bug-automake@gnu.org about your system, including the value 11224of your $PATH and any error possibly output before this message. This 11225can help us improve future automake versions. 11226 11227END 11228 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 11229 echo 'Configuration will proceed anyway, since you have set the' >&2 11230 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 11231 echo >&2 11232 else 11233 cat >&2 <<'END' 11234Aborting the configuration process, to ensure you take notice of the issue. 11235 11236You can download and install GNU coreutils to get an 'rm' implementation 11237that behaves properly: <https://www.gnu.org/software/coreutils/>. 11238 11239If you want to complete the configuration process using your problematic 11240'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 11241to "yes", and re-run configure. 11242 11243END 11244 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 11245 fi 11246fi 11247 11248 11249# Initialize libtool 11250# Check whether --enable-static was given. 11251if test ${enable_static+y} 11252then : 11253 enableval=$enable_static; p=${PACKAGE-default} 11254 case $enableval in 11255 yes) enable_static=yes ;; 11256 no) enable_static=no ;; 11257 *) 11258 enable_static=no 11259 # Look at the argument we got. We use all the common list separators. 11260 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11261 for pkg in $enableval; do 11262 IFS=$lt_save_ifs 11263 if test "X$pkg" = "X$p"; then 11264 enable_static=yes 11265 fi 11266 done 11267 IFS=$lt_save_ifs 11268 ;; 11269 esac 11270else $as_nop 11271 enable_static=no 11272fi 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282case `pwd` in 11283 *\ * | *\ *) 11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11285printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11286esac 11287 11288 11289 11290macro_version='2.4.7' 11291macro_revision='2.4.7' 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306ltmain=$ac_aux_dir/ltmain.sh 11307 11308# Backslashify metacharacters that are still active within 11309# double-quoted strings. 11310sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11311 11312# Same as above, but do not quote variable references. 11313double_quote_subst='s/\(["`\\]\)/\\\1/g' 11314 11315# Sed substitution to delay expansion of an escaped shell variable in a 11316# double_quote_subst'ed string. 11317delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11318 11319# Sed substitution to delay expansion of an escaped single quote. 11320delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11321 11322# Sed substitution to avoid accidental globbing in evaled expressions 11323no_glob_subst='s/\*/\\\*/g' 11324 11325ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11326ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11327ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11328 11329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11330printf %s "checking how to print strings... " >&6; } 11331# Test print first, because it will be a builtin if present. 11332if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11333 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11334 ECHO='print -r --' 11335elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11336 ECHO='printf %s\n' 11337else 11338 # Use this function as a fallback that always works. 11339 func_fallback_echo () 11340 { 11341 eval 'cat <<_LTECHO_EOF 11342$1 11343_LTECHO_EOF' 11344 } 11345 ECHO='func_fallback_echo' 11346fi 11347 11348# func_echo_all arg... 11349# Invoke $ECHO with all args, space-separated. 11350func_echo_all () 11351{ 11352 $ECHO "" 11353} 11354 11355case $ECHO in 11356 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11357printf "%s\n" "printf" >&6; } ;; 11358 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11359printf "%s\n" "print -r" >&6; } ;; 11360 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11361printf "%s\n" "cat" >&6; } ;; 11362esac 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11378printf %s "checking for a sed that does not truncate output... " >&6; } 11379if test ${ac_cv_path_SED+y} 11380then : 11381 printf %s "(cached) " >&6 11382else $as_nop 11383 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11384 for ac_i in 1 2 3 4 5 6 7; do 11385 ac_script="$ac_script$as_nl$ac_script" 11386 done 11387 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11388 { ac_script=; unset ac_script;} 11389 if test -z "$SED"; then 11390 ac_path_SED_found=false 11391 # Loop through the user's path and test for each of PROGNAME-LIST 11392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11393for as_dir in $PATH 11394do 11395 IFS=$as_save_IFS 11396 case $as_dir in #((( 11397 '') as_dir=./ ;; 11398 */) ;; 11399 *) as_dir=$as_dir/ ;; 11400 esac 11401 for ac_prog in sed gsed 11402 do 11403 for ac_exec_ext in '' $ac_executable_extensions; do 11404 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11405 as_fn_executable_p "$ac_path_SED" || continue 11406# Check for GNU ac_path_SED and select it if it is found. 11407 # Check for GNU $ac_path_SED 11408case `"$ac_path_SED" --version 2>&1` in 11409*GNU*) 11410 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11411*) 11412 ac_count=0 11413 printf %s 0123456789 >"conftest.in" 11414 while : 11415 do 11416 cat "conftest.in" "conftest.in" >"conftest.tmp" 11417 mv "conftest.tmp" "conftest.in" 11418 cp "conftest.in" "conftest.nl" 11419 printf "%s\n" '' >> "conftest.nl" 11420 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11422 as_fn_arith $ac_count + 1 && ac_count=$as_val 11423 if test $ac_count -gt ${ac_path_SED_max-0}; then 11424 # Best one so far, save it but keep looking for a better one 11425 ac_cv_path_SED="$ac_path_SED" 11426 ac_path_SED_max=$ac_count 11427 fi 11428 # 10*(2^10) chars as input seems more than enough 11429 test $ac_count -gt 10 && break 11430 done 11431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11432esac 11433 11434 $ac_path_SED_found && break 3 11435 done 11436 done 11437 done 11438IFS=$as_save_IFS 11439 if test -z "$ac_cv_path_SED"; then 11440 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11441 fi 11442else 11443 ac_cv_path_SED=$SED 11444fi 11445 11446fi 11447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11448printf "%s\n" "$ac_cv_path_SED" >&6; } 11449 SED="$ac_cv_path_SED" 11450 rm -f conftest.sed 11451 11452test -z "$SED" && SED=sed 11453Xsed="$SED -e 1s/^X//" 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11466printf %s "checking for grep that handles long lines and -e... " >&6; } 11467if test ${ac_cv_path_GREP+y} 11468then : 11469 printf %s "(cached) " >&6 11470else $as_nop 11471 if test -z "$GREP"; then 11472 ac_path_GREP_found=false 11473 # Loop through the user's path and test for each of PROGNAME-LIST 11474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11475for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11476do 11477 IFS=$as_save_IFS 11478 case $as_dir in #((( 11479 '') as_dir=./ ;; 11480 */) ;; 11481 *) as_dir=$as_dir/ ;; 11482 esac 11483 for ac_prog in grep ggrep 11484 do 11485 for ac_exec_ext in '' $ac_executable_extensions; do 11486 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11487 as_fn_executable_p "$ac_path_GREP" || continue 11488# Check for GNU ac_path_GREP and select it if it is found. 11489 # Check for GNU $ac_path_GREP 11490case `"$ac_path_GREP" --version 2>&1` in 11491*GNU*) 11492 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11493*) 11494 ac_count=0 11495 printf %s 0123456789 >"conftest.in" 11496 while : 11497 do 11498 cat "conftest.in" "conftest.in" >"conftest.tmp" 11499 mv "conftest.tmp" "conftest.in" 11500 cp "conftest.in" "conftest.nl" 11501 printf "%s\n" 'GREP' >> "conftest.nl" 11502 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11504 as_fn_arith $ac_count + 1 && ac_count=$as_val 11505 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11506 # Best one so far, save it but keep looking for a better one 11507 ac_cv_path_GREP="$ac_path_GREP" 11508 ac_path_GREP_max=$ac_count 11509 fi 11510 # 10*(2^10) chars as input seems more than enough 11511 test $ac_count -gt 10 && break 11512 done 11513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11514esac 11515 11516 $ac_path_GREP_found && break 3 11517 done 11518 done 11519 done 11520IFS=$as_save_IFS 11521 if test -z "$ac_cv_path_GREP"; then 11522 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11523 fi 11524else 11525 ac_cv_path_GREP=$GREP 11526fi 11527 11528fi 11529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11530printf "%s\n" "$ac_cv_path_GREP" >&6; } 11531 GREP="$ac_cv_path_GREP" 11532 11533 11534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11535printf %s "checking for egrep... " >&6; } 11536if test ${ac_cv_path_EGREP+y} 11537then : 11538 printf %s "(cached) " >&6 11539else $as_nop 11540 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11541 then ac_cv_path_EGREP="$GREP -E" 11542 else 11543 if test -z "$EGREP"; then 11544 ac_path_EGREP_found=false 11545 # Loop through the user's path and test for each of PROGNAME-LIST 11546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11547for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11548do 11549 IFS=$as_save_IFS 11550 case $as_dir in #((( 11551 '') as_dir=./ ;; 11552 */) ;; 11553 *) as_dir=$as_dir/ ;; 11554 esac 11555 for ac_prog in egrep 11556 do 11557 for ac_exec_ext in '' $ac_executable_extensions; do 11558 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11559 as_fn_executable_p "$ac_path_EGREP" || continue 11560# Check for GNU ac_path_EGREP and select it if it is found. 11561 # Check for GNU $ac_path_EGREP 11562case `"$ac_path_EGREP" --version 2>&1` in 11563*GNU*) 11564 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11565*) 11566 ac_count=0 11567 printf %s 0123456789 >"conftest.in" 11568 while : 11569 do 11570 cat "conftest.in" "conftest.in" >"conftest.tmp" 11571 mv "conftest.tmp" "conftest.in" 11572 cp "conftest.in" "conftest.nl" 11573 printf "%s\n" 'EGREP' >> "conftest.nl" 11574 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11576 as_fn_arith $ac_count + 1 && ac_count=$as_val 11577 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11578 # Best one so far, save it but keep looking for a better one 11579 ac_cv_path_EGREP="$ac_path_EGREP" 11580 ac_path_EGREP_max=$ac_count 11581 fi 11582 # 10*(2^10) chars as input seems more than enough 11583 test $ac_count -gt 10 && break 11584 done 11585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11586esac 11587 11588 $ac_path_EGREP_found && break 3 11589 done 11590 done 11591 done 11592IFS=$as_save_IFS 11593 if test -z "$ac_cv_path_EGREP"; then 11594 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11595 fi 11596else 11597 ac_cv_path_EGREP=$EGREP 11598fi 11599 11600 fi 11601fi 11602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11603printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11604 EGREP="$ac_cv_path_EGREP" 11605 11606 11607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11608printf %s "checking for fgrep... " >&6; } 11609if test ${ac_cv_path_FGREP+y} 11610then : 11611 printf %s "(cached) " >&6 11612else $as_nop 11613 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11614 then ac_cv_path_FGREP="$GREP -F" 11615 else 11616 if test -z "$FGREP"; then 11617 ac_path_FGREP_found=false 11618 # Loop through the user's path and test for each of PROGNAME-LIST 11619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11620for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11621do 11622 IFS=$as_save_IFS 11623 case $as_dir in #((( 11624 '') as_dir=./ ;; 11625 */) ;; 11626 *) as_dir=$as_dir/ ;; 11627 esac 11628 for ac_prog in fgrep 11629 do 11630 for ac_exec_ext in '' $ac_executable_extensions; do 11631 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11632 as_fn_executable_p "$ac_path_FGREP" || continue 11633# Check for GNU ac_path_FGREP and select it if it is found. 11634 # Check for GNU $ac_path_FGREP 11635case `"$ac_path_FGREP" --version 2>&1` in 11636*GNU*) 11637 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11638*) 11639 ac_count=0 11640 printf %s 0123456789 >"conftest.in" 11641 while : 11642 do 11643 cat "conftest.in" "conftest.in" >"conftest.tmp" 11644 mv "conftest.tmp" "conftest.in" 11645 cp "conftest.in" "conftest.nl" 11646 printf "%s\n" 'FGREP' >> "conftest.nl" 11647 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11649 as_fn_arith $ac_count + 1 && ac_count=$as_val 11650 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11651 # Best one so far, save it but keep looking for a better one 11652 ac_cv_path_FGREP="$ac_path_FGREP" 11653 ac_path_FGREP_max=$ac_count 11654 fi 11655 # 10*(2^10) chars as input seems more than enough 11656 test $ac_count -gt 10 && break 11657 done 11658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11659esac 11660 11661 $ac_path_FGREP_found && break 3 11662 done 11663 done 11664 done 11665IFS=$as_save_IFS 11666 if test -z "$ac_cv_path_FGREP"; then 11667 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11668 fi 11669else 11670 ac_cv_path_FGREP=$FGREP 11671fi 11672 11673 fi 11674fi 11675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11676printf "%s\n" "$ac_cv_path_FGREP" >&6; } 11677 FGREP="$ac_cv_path_FGREP" 11678 11679 11680test -z "$GREP" && GREP=grep 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700# Check whether --with-gnu-ld was given. 11701if test ${with_gnu_ld+y} 11702then : 11703 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11704else $as_nop 11705 with_gnu_ld=no 11706fi 11707 11708ac_prog=ld 11709if test yes = "$GCC"; then 11710 # Check if gcc -print-prog-name=ld gives a path. 11711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11712printf %s "checking for ld used by $CC... " >&6; } 11713 case $host in 11714 *-*-mingw*) 11715 # gcc leaves a trailing carriage return, which upsets mingw 11716 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11717 *) 11718 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11719 esac 11720 case $ac_prog in 11721 # Accept absolute paths. 11722 [\\/]* | ?:[\\/]*) 11723 re_direlt='/[^/][^/]*/\.\./' 11724 # Canonicalize the pathname of ld 11725 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11726 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11727 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11728 done 11729 test -z "$LD" && LD=$ac_prog 11730 ;; 11731 "") 11732 # If it fails, then pretend we aren't using GCC. 11733 ac_prog=ld 11734 ;; 11735 *) 11736 # If it is relative, then search for the first ld in PATH. 11737 with_gnu_ld=unknown 11738 ;; 11739 esac 11740elif test yes = "$with_gnu_ld"; then 11741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11742printf %s "checking for GNU ld... " >&6; } 11743else 11744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11745printf %s "checking for non-GNU ld... " >&6; } 11746fi 11747if test ${lt_cv_path_LD+y} 11748then : 11749 printf %s "(cached) " >&6 11750else $as_nop 11751 if test -z "$LD"; then 11752 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11753 for ac_dir in $PATH; do 11754 IFS=$lt_save_ifs 11755 test -z "$ac_dir" && ac_dir=. 11756 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11757 lt_cv_path_LD=$ac_dir/$ac_prog 11758 # Check to see if the program is GNU ld. I'd rather use --version, 11759 # but apparently some variants of GNU ld only accept -v. 11760 # Break only if it was the GNU/non-GNU ld that we prefer. 11761 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11762 *GNU* | *'with BFD'*) 11763 test no != "$with_gnu_ld" && break 11764 ;; 11765 *) 11766 test yes != "$with_gnu_ld" && break 11767 ;; 11768 esac 11769 fi 11770 done 11771 IFS=$lt_save_ifs 11772else 11773 lt_cv_path_LD=$LD # Let the user override the test with a path. 11774fi 11775fi 11776 11777LD=$lt_cv_path_LD 11778if test -n "$LD"; then 11779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11780printf "%s\n" "$LD" >&6; } 11781else 11782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11783printf "%s\n" "no" >&6; } 11784fi 11785test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11787printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 11788if test ${lt_cv_prog_gnu_ld+y} 11789then : 11790 printf %s "(cached) " >&6 11791else $as_nop 11792 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11793case `$LD -v 2>&1 </dev/null` in 11794*GNU* | *'with BFD'*) 11795 lt_cv_prog_gnu_ld=yes 11796 ;; 11797*) 11798 lt_cv_prog_gnu_ld=no 11799 ;; 11800esac 11801fi 11802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11803printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 11804with_gnu_ld=$lt_cv_prog_gnu_ld 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11815printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11816if test ${lt_cv_path_NM+y} 11817then : 11818 printf %s "(cached) " >&6 11819else $as_nop 11820 if test -n "$NM"; then 11821 # Let the user override the test. 11822 lt_cv_path_NM=$NM 11823else 11824 lt_nm_to_check=${ac_tool_prefix}nm 11825 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11826 lt_nm_to_check="$lt_nm_to_check nm" 11827 fi 11828 for lt_tmp_nm in $lt_nm_to_check; do 11829 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11830 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11831 IFS=$lt_save_ifs 11832 test -z "$ac_dir" && ac_dir=. 11833 tmp_nm=$ac_dir/$lt_tmp_nm 11834 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11835 # Check to see if the nm accepts a BSD-compat flag. 11836 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11837 # nm: unknown option "B" ignored 11838 # Tru64's nm complains that /dev/null is an invalid object file 11839 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11840 case $build_os in 11841 mingw*) lt_bad_file=conftest.nm/nofile ;; 11842 *) lt_bad_file=/dev/null ;; 11843 esac 11844 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 11845 *$lt_bad_file* | *'Invalid file or object type'*) 11846 lt_cv_path_NM="$tmp_nm -B" 11847 break 2 11848 ;; 11849 *) 11850 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 11851 */dev/null*) 11852 lt_cv_path_NM="$tmp_nm -p" 11853 break 2 11854 ;; 11855 *) 11856 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11857 continue # so that we can try to find one that supports BSD flags 11858 ;; 11859 esac 11860 ;; 11861 esac 11862 fi 11863 done 11864 IFS=$lt_save_ifs 11865 done 11866 : ${lt_cv_path_NM=no} 11867fi 11868fi 11869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11870printf "%s\n" "$lt_cv_path_NM" >&6; } 11871if test no != "$lt_cv_path_NM"; then 11872 NM=$lt_cv_path_NM 11873else 11874 # Didn't find any BSD compatible name lister, look for dumpbin. 11875 if test -n "$DUMPBIN"; then : 11876 # Let the user override the test. 11877 else 11878 if test -n "$ac_tool_prefix"; then 11879 for ac_prog in dumpbin "link -dump" 11880 do 11881 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11882set dummy $ac_tool_prefix$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_DUMPBIN+y} 11886then : 11887 printf %s "(cached) " >&6 11888else $as_nop 11889 if test -n "$DUMPBIN"; then 11890 ac_cv_prog_DUMPBIN="$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_DUMPBIN="$ac_tool_prefix$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 11913DUMPBIN=$ac_cv_prog_DUMPBIN 11914if test -n "$DUMPBIN"; then 11915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11916printf "%s\n" "$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 "$DUMPBIN" && break 11924 done 11925fi 11926if test -z "$DUMPBIN"; then 11927 ac_ct_DUMPBIN=$DUMPBIN 11928 for ac_prog in dumpbin "link -dump" 11929do 11930 # Extract the first word of "$ac_prog", so it can be a program name with args. 11931set dummy $ac_prog; ac_word=$2 11932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11933printf %s "checking for $ac_word... " >&6; } 11934if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 11935then : 11936 printf %s "(cached) " >&6 11937else $as_nop 11938 if test -n "$ac_ct_DUMPBIN"; then 11939 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11940else 11941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11942for as_dir in $PATH 11943do 11944 IFS=$as_save_IFS 11945 case $as_dir in #((( 11946 '') as_dir=./ ;; 11947 */) ;; 11948 *) as_dir=$as_dir/ ;; 11949 esac 11950 for ac_exec_ext in '' $ac_executable_extensions; do 11951 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11952 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11954 break 2 11955 fi 11956done 11957 done 11958IFS=$as_save_IFS 11959 11960fi 11961fi 11962ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11963if test -n "$ac_ct_DUMPBIN"; then 11964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11965printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 11966else 11967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11968printf "%s\n" "no" >&6; } 11969fi 11970 11971 11972 test -n "$ac_ct_DUMPBIN" && break 11973done 11974 11975 if test "x$ac_ct_DUMPBIN" = x; then 11976 DUMPBIN=":" 11977 else 11978 case $cross_compiling:$ac_tool_warned in 11979yes:) 11980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11981printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11982ac_tool_warned=yes ;; 11983esac 11984 DUMPBIN=$ac_ct_DUMPBIN 11985 fi 11986fi 11987 11988 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 11989 *COFF*) 11990 DUMPBIN="$DUMPBIN -symbols -headers" 11991 ;; 11992 *) 11993 DUMPBIN=: 11994 ;; 11995 esac 11996 fi 11997 11998 if test : != "$DUMPBIN"; then 11999 NM=$DUMPBIN 12000 fi 12001fi 12002test -z "$NM" && NM=nm 12003 12004 12005 12006 12007 12008 12009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12010printf %s "checking the name lister ($NM) interface... " >&6; } 12011if test ${lt_cv_nm_interface+y} 12012then : 12013 printf %s "(cached) " >&6 12014else $as_nop 12015 lt_cv_nm_interface="BSD nm" 12016 echo "int some_variable = 0;" > conftest.$ac_ext 12017 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12018 (eval "$ac_compile" 2>conftest.err) 12019 cat conftest.err >&5 12020 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12021 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12022 cat conftest.err >&5 12023 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12024 cat conftest.out >&5 12025 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12026 lt_cv_nm_interface="MS dumpbin" 12027 fi 12028 rm -f conftest* 12029fi 12030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12031printf "%s\n" "$lt_cv_nm_interface" >&6; } 12032 12033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12034printf %s "checking whether ln -s works... " >&6; } 12035LN_S=$as_ln_s 12036if test "$LN_S" = "ln -s"; then 12037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12038printf "%s\n" "yes" >&6; } 12039else 12040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12041printf "%s\n" "no, using $LN_S" >&6; } 12042fi 12043 12044# find the maximum length of command line arguments 12045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12046printf %s "checking the maximum length of command line arguments... " >&6; } 12047if test ${lt_cv_sys_max_cmd_len+y} 12048then : 12049 printf %s "(cached) " >&6 12050else $as_nop 12051 i=0 12052 teststring=ABCD 12053 12054 case $build_os in 12055 msdosdjgpp*) 12056 # On DJGPP, this test can blow up pretty badly due to problems in libc 12057 # (any single argument exceeding 2000 bytes causes a buffer overrun 12058 # during glob expansion). Even if it were fixed, the result of this 12059 # check would be larger than it should be. 12060 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12061 ;; 12062 12063 gnu*) 12064 # Under GNU Hurd, this test is not required because there is 12065 # no limit to the length of command line arguments. 12066 # Libtool will interpret -1 as no limit whatsoever 12067 lt_cv_sys_max_cmd_len=-1; 12068 ;; 12069 12070 cygwin* | mingw* | cegcc*) 12071 # On Win9x/ME, this test blows up -- it succeeds, but takes 12072 # about 5 minutes as the teststring grows exponentially. 12073 # Worse, since 9x/ME are not pre-emptively multitasking, 12074 # you end up with a "frozen" computer, even though with patience 12075 # the test eventually succeeds (with a max line length of 256k). 12076 # Instead, let's just punt: use the minimum linelength reported by 12077 # all of the supported platforms: 8192 (on NT/2K/XP). 12078 lt_cv_sys_max_cmd_len=8192; 12079 ;; 12080 12081 mint*) 12082 # On MiNT this can take a long time and run out of memory. 12083 lt_cv_sys_max_cmd_len=8192; 12084 ;; 12085 12086 amigaos*) 12087 # On AmigaOS with pdksh, this test takes hours, literally. 12088 # So we just punt and use a minimum line length of 8192. 12089 lt_cv_sys_max_cmd_len=8192; 12090 ;; 12091 12092 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12093 # This has been around since 386BSD, at least. Likely further. 12094 if test -x /sbin/sysctl; then 12095 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12096 elif test -x /usr/sbin/sysctl; then 12097 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12098 else 12099 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12100 fi 12101 # And add a safety zone 12102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12104 ;; 12105 12106 interix*) 12107 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12108 lt_cv_sys_max_cmd_len=196608 12109 ;; 12110 12111 os2*) 12112 # The test takes a long time on OS/2. 12113 lt_cv_sys_max_cmd_len=8192 12114 ;; 12115 12116 osf*) 12117 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12118 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12119 # nice to cause kernel panics so lets avoid the loop below. 12120 # First set a reasonable default. 12121 lt_cv_sys_max_cmd_len=16384 12122 # 12123 if test -x /sbin/sysconfig; then 12124 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12125 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12126 esac 12127 fi 12128 ;; 12129 sco3.2v5*) 12130 lt_cv_sys_max_cmd_len=102400 12131 ;; 12132 sysv5* | sco5v6* | sysv4.2uw2*) 12133 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12134 if test -n "$kargmax"; then 12135 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12136 else 12137 lt_cv_sys_max_cmd_len=32768 12138 fi 12139 ;; 12140 *) 12141 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12142 if test -n "$lt_cv_sys_max_cmd_len" && \ 12143 test undefined != "$lt_cv_sys_max_cmd_len"; then 12144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12146 else 12147 # Make teststring a little bigger before we do anything with it. 12148 # a 1K string should be a reasonable start. 12149 for i in 1 2 3 4 5 6 7 8; do 12150 teststring=$teststring$teststring 12151 done 12152 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12153 # If test is not a shell built-in, we'll probably end up computing a 12154 # maximum length that is only half of the actual maximum length, but 12155 # we can't tell. 12156 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12157 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12158 test 17 != "$i" # 1/2 MB should be enough 12159 do 12160 i=`expr $i + 1` 12161 teststring=$teststring$teststring 12162 done 12163 # Only check the string length outside the loop. 12164 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12165 teststring= 12166 # Add a significant safety factor because C++ compilers can tack on 12167 # massive amounts of additional arguments before passing them to the 12168 # linker. It appears as though 1/2 is a usable value. 12169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12170 fi 12171 ;; 12172 esac 12173 12174fi 12175 12176if test -n "$lt_cv_sys_max_cmd_len"; then 12177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12178printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12179else 12180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12181printf "%s\n" "none" >&6; } 12182fi 12183max_cmd_len=$lt_cv_sys_max_cmd_len 12184 12185 12186 12187 12188 12189 12190: ${CP="cp -f"} 12191: ${MV="mv -f"} 12192: ${RM="rm -f"} 12193 12194if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12195 lt_unset=unset 12196else 12197 lt_unset=false 12198fi 12199 12200 12201 12202 12203 12204# test EBCDIC or ASCII 12205case `echo X|tr X '\101'` in 12206 A) # ASCII based system 12207 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12208 lt_SP2NL='tr \040 \012' 12209 lt_NL2SP='tr \015\012 \040\040' 12210 ;; 12211 *) # EBCDIC based system 12212 lt_SP2NL='tr \100 \n' 12213 lt_NL2SP='tr \r\n \100\100' 12214 ;; 12215esac 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12226printf %s "checking how to convert $build file names to $host format... " >&6; } 12227if test ${lt_cv_to_host_file_cmd+y} 12228then : 12229 printf %s "(cached) " >&6 12230else $as_nop 12231 case $host in 12232 *-*-mingw* ) 12233 case $build in 12234 *-*-mingw* ) # actually msys 12235 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12236 ;; 12237 *-*-cygwin* ) 12238 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12239 ;; 12240 * ) # otherwise, assume *nix 12241 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12242 ;; 12243 esac 12244 ;; 12245 *-*-cygwin* ) 12246 case $build in 12247 *-*-mingw* ) # actually msys 12248 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12249 ;; 12250 *-*-cygwin* ) 12251 lt_cv_to_host_file_cmd=func_convert_file_noop 12252 ;; 12253 * ) # otherwise, assume *nix 12254 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12255 ;; 12256 esac 12257 ;; 12258 * ) # unhandled hosts (and "normal" native builds) 12259 lt_cv_to_host_file_cmd=func_convert_file_noop 12260 ;; 12261esac 12262 12263fi 12264 12265to_host_file_cmd=$lt_cv_to_host_file_cmd 12266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12267printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12268 12269 12270 12271 12272 12273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12274printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12275if test ${lt_cv_to_tool_file_cmd+y} 12276then : 12277 printf %s "(cached) " >&6 12278else $as_nop 12279 #assume ordinary cross tools, or native build. 12280lt_cv_to_tool_file_cmd=func_convert_file_noop 12281case $host in 12282 *-*-mingw* ) 12283 case $build in 12284 *-*-mingw* ) # actually msys 12285 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12286 ;; 12287 esac 12288 ;; 12289esac 12290 12291fi 12292 12293to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12295printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12296 12297 12298 12299 12300 12301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12302printf %s "checking for $LD option to reload object files... " >&6; } 12303if test ${lt_cv_ld_reload_flag+y} 12304then : 12305 printf %s "(cached) " >&6 12306else $as_nop 12307 lt_cv_ld_reload_flag='-r' 12308fi 12309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12310printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12311reload_flag=$lt_cv_ld_reload_flag 12312case $reload_flag in 12313"" | " "*) ;; 12314*) reload_flag=" $reload_flag" ;; 12315esac 12316reload_cmds='$LD$reload_flag -o $output$reload_objs' 12317case $host_os in 12318 cygwin* | mingw* | pw32* | cegcc*) 12319 if test yes != "$GCC"; then 12320 reload_cmds=false 12321 fi 12322 ;; 12323 darwin*) 12324 if test yes = "$GCC"; then 12325 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12326 else 12327 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12328 fi 12329 ;; 12330esac 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340if test -n "$ac_tool_prefix"; then 12341 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 12342set dummy ${ac_tool_prefix}file; ac_word=$2 12343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12344printf %s "checking for $ac_word... " >&6; } 12345if test ${ac_cv_prog_FILECMD+y} 12346then : 12347 printf %s "(cached) " >&6 12348else $as_nop 12349 if test -n "$FILECMD"; then 12350 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12351else 12352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12353for as_dir in $PATH 12354do 12355 IFS=$as_save_IFS 12356 case $as_dir in #((( 12357 '') as_dir=./ ;; 12358 */) ;; 12359 *) as_dir=$as_dir/ ;; 12360 esac 12361 for ac_exec_ext in '' $ac_executable_extensions; do 12362 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12363 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 12364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12365 break 2 12366 fi 12367done 12368 done 12369IFS=$as_save_IFS 12370 12371fi 12372fi 12373FILECMD=$ac_cv_prog_FILECMD 12374if test -n "$FILECMD"; then 12375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12376printf "%s\n" "$FILECMD" >&6; } 12377else 12378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12379printf "%s\n" "no" >&6; } 12380fi 12381 12382 12383fi 12384if test -z "$ac_cv_prog_FILECMD"; then 12385 ac_ct_FILECMD=$FILECMD 12386 # Extract the first word of "file", so it can be a program name with args. 12387set dummy file; ac_word=$2 12388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12389printf %s "checking for $ac_word... " >&6; } 12390if test ${ac_cv_prog_ac_ct_FILECMD+y} 12391then : 12392 printf %s "(cached) " >&6 12393else $as_nop 12394 if test -n "$ac_ct_FILECMD"; then 12395 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 12396else 12397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12398for as_dir in $PATH 12399do 12400 IFS=$as_save_IFS 12401 case $as_dir in #((( 12402 '') as_dir=./ ;; 12403 */) ;; 12404 *) as_dir=$as_dir/ ;; 12405 esac 12406 for ac_exec_ext in '' $ac_executable_extensions; do 12407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12408 ac_cv_prog_ac_ct_FILECMD="file" 12409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12410 break 2 12411 fi 12412done 12413 done 12414IFS=$as_save_IFS 12415 12416fi 12417fi 12418ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 12419if test -n "$ac_ct_FILECMD"; then 12420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 12421printf "%s\n" "$ac_ct_FILECMD" >&6; } 12422else 12423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12424printf "%s\n" "no" >&6; } 12425fi 12426 12427 if test "x$ac_ct_FILECMD" = x; then 12428 FILECMD=":" 12429 else 12430 case $cross_compiling:$ac_tool_warned in 12431yes:) 12432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12433printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12434ac_tool_warned=yes ;; 12435esac 12436 FILECMD=$ac_ct_FILECMD 12437 fi 12438else 12439 FILECMD="$ac_cv_prog_FILECMD" 12440fi 12441 12442 12443 12444 12445 12446 12447 12448if test -n "$ac_tool_prefix"; then 12449 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12450set dummy ${ac_tool_prefix}objdump; ac_word=$2 12451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12452printf %s "checking for $ac_word... " >&6; } 12453if test ${ac_cv_prog_OBJDUMP+y} 12454then : 12455 printf %s "(cached) " >&6 12456else $as_nop 12457 if test -n "$OBJDUMP"; then 12458 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12459else 12460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12461for as_dir in $PATH 12462do 12463 IFS=$as_save_IFS 12464 case $as_dir in #((( 12465 '') as_dir=./ ;; 12466 */) ;; 12467 *) as_dir=$as_dir/ ;; 12468 esac 12469 for ac_exec_ext in '' $ac_executable_extensions; do 12470 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12471 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12473 break 2 12474 fi 12475done 12476 done 12477IFS=$as_save_IFS 12478 12479fi 12480fi 12481OBJDUMP=$ac_cv_prog_OBJDUMP 12482if test -n "$OBJDUMP"; then 12483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12484printf "%s\n" "$OBJDUMP" >&6; } 12485else 12486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12487printf "%s\n" "no" >&6; } 12488fi 12489 12490 12491fi 12492if test -z "$ac_cv_prog_OBJDUMP"; then 12493 ac_ct_OBJDUMP=$OBJDUMP 12494 # Extract the first word of "objdump", so it can be a program name with args. 12495set dummy objdump; ac_word=$2 12496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12497printf %s "checking for $ac_word... " >&6; } 12498if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12499then : 12500 printf %s "(cached) " >&6 12501else $as_nop 12502 if test -n "$ac_ct_OBJDUMP"; then 12503 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12504else 12505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12506for as_dir in $PATH 12507do 12508 IFS=$as_save_IFS 12509 case $as_dir in #((( 12510 '') as_dir=./ ;; 12511 */) ;; 12512 *) as_dir=$as_dir/ ;; 12513 esac 12514 for ac_exec_ext in '' $ac_executable_extensions; do 12515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12516 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12518 break 2 12519 fi 12520done 12521 done 12522IFS=$as_save_IFS 12523 12524fi 12525fi 12526ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12527if test -n "$ac_ct_OBJDUMP"; then 12528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12529printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12530else 12531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12532printf "%s\n" "no" >&6; } 12533fi 12534 12535 if test "x$ac_ct_OBJDUMP" = x; then 12536 OBJDUMP="false" 12537 else 12538 case $cross_compiling:$ac_tool_warned in 12539yes:) 12540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12541printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12542ac_tool_warned=yes ;; 12543esac 12544 OBJDUMP=$ac_ct_OBJDUMP 12545 fi 12546else 12547 OBJDUMP="$ac_cv_prog_OBJDUMP" 12548fi 12549 12550test -z "$OBJDUMP" && OBJDUMP=objdump 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12561printf %s "checking how to recognize dependent libraries... " >&6; } 12562if test ${lt_cv_deplibs_check_method+y} 12563then : 12564 printf %s "(cached) " >&6 12565else $as_nop 12566 lt_cv_file_magic_cmd='$MAGIC_CMD' 12567lt_cv_file_magic_test_file= 12568lt_cv_deplibs_check_method='unknown' 12569# Need to set the preceding variable on all platforms that support 12570# interlibrary dependencies. 12571# 'none' -- dependencies not supported. 12572# 'unknown' -- same as none, but documents that we really don't know. 12573# 'pass_all' -- all dependencies passed with no checks. 12574# 'test_compile' -- check by making test program. 12575# 'file_magic [[regex]]' -- check by looking for files in library path 12576# that responds to the $file_magic_cmd with a given extended regex. 12577# If you have 'file' or equivalent on your system and you're not sure 12578# whether 'pass_all' will *always* work, you probably want this one. 12579 12580case $host_os in 12581aix[4-9]*) 12582 lt_cv_deplibs_check_method=pass_all 12583 ;; 12584 12585beos*) 12586 lt_cv_deplibs_check_method=pass_all 12587 ;; 12588 12589bsdi[45]*) 12590 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12591 lt_cv_file_magic_cmd='$FILECMD -L' 12592 lt_cv_file_magic_test_file=/shlib/libc.so 12593 ;; 12594 12595cygwin*) 12596 # func_win32_libid is a shell function defined in ltmain.sh 12597 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12598 lt_cv_file_magic_cmd='func_win32_libid' 12599 ;; 12600 12601mingw* | pw32*) 12602 # Base MSYS/MinGW do not provide the 'file' command needed by 12603 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12604 # unless we find 'file', for example because we are cross-compiling. 12605 if ( file / ) >/dev/null 2>&1; then 12606 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12607 lt_cv_file_magic_cmd='func_win32_libid' 12608 else 12609 # Keep this pattern in sync with the one in func_win32_libid. 12610 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12611 lt_cv_file_magic_cmd='$OBJDUMP -f' 12612 fi 12613 ;; 12614 12615cegcc*) 12616 # use the weaker test based on 'objdump'. See mingw*. 12617 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12618 lt_cv_file_magic_cmd='$OBJDUMP -f' 12619 ;; 12620 12621darwin* | rhapsody*) 12622 lt_cv_deplibs_check_method=pass_all 12623 ;; 12624 12625freebsd* | dragonfly* | midnightbsd*) 12626 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12627 case $host_cpu in 12628 i*86 ) 12629 # Not sure whether the presence of OpenBSD here was a mistake. 12630 # Let's accept both of them until this is cleared up. 12631 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12632 lt_cv_file_magic_cmd=$FILECMD 12633 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12634 ;; 12635 esac 12636 else 12637 lt_cv_deplibs_check_method=pass_all 12638 fi 12639 ;; 12640 12641haiku*) 12642 lt_cv_deplibs_check_method=pass_all 12643 ;; 12644 12645hpux10.20* | hpux11*) 12646 lt_cv_file_magic_cmd=$FILECMD 12647 case $host_cpu in 12648 ia64*) 12649 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12650 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12651 ;; 12652 hppa*64*) 12653 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]' 12654 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12655 ;; 12656 *) 12657 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12658 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12659 ;; 12660 esac 12661 ;; 12662 12663interix[3-9]*) 12664 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12666 ;; 12667 12668irix5* | irix6* | nonstopux*) 12669 case $LD in 12670 *-32|*"-32 ") libmagic=32-bit;; 12671 *-n32|*"-n32 ") libmagic=N32;; 12672 *-64|*"-64 ") libmagic=64-bit;; 12673 *) libmagic=never-match;; 12674 esac 12675 lt_cv_deplibs_check_method=pass_all 12676 ;; 12677 12678# This must be glibc/ELF. 12679linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12680 lt_cv_deplibs_check_method=pass_all 12681 ;; 12682 12683netbsd*) 12684 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12686 else 12687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12688 fi 12689 ;; 12690 12691newos6*) 12692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12693 lt_cv_file_magic_cmd=$FILECMD 12694 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12695 ;; 12696 12697*nto* | *qnx*) 12698 lt_cv_deplibs_check_method=pass_all 12699 ;; 12700 12701openbsd* | bitrig*) 12702 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12703 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12704 else 12705 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12706 fi 12707 ;; 12708 12709osf3* | osf4* | osf5*) 12710 lt_cv_deplibs_check_method=pass_all 12711 ;; 12712 12713rdos*) 12714 lt_cv_deplibs_check_method=pass_all 12715 ;; 12716 12717solaris*) 12718 lt_cv_deplibs_check_method=pass_all 12719 ;; 12720 12721sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12722 lt_cv_deplibs_check_method=pass_all 12723 ;; 12724 12725sysv4 | sysv4.3*) 12726 case $host_vendor in 12727 motorola) 12728 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]' 12729 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12730 ;; 12731 ncr) 12732 lt_cv_deplibs_check_method=pass_all 12733 ;; 12734 sequent) 12735 lt_cv_file_magic_cmd='/bin/file' 12736 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12737 ;; 12738 sni) 12739 lt_cv_file_magic_cmd='/bin/file' 12740 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12741 lt_cv_file_magic_test_file=/lib/libc.so 12742 ;; 12743 siemens) 12744 lt_cv_deplibs_check_method=pass_all 12745 ;; 12746 pc) 12747 lt_cv_deplibs_check_method=pass_all 12748 ;; 12749 esac 12750 ;; 12751 12752tpf*) 12753 lt_cv_deplibs_check_method=pass_all 12754 ;; 12755os2*) 12756 lt_cv_deplibs_check_method=pass_all 12757 ;; 12758esac 12759 12760fi 12761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12762printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 12763 12764file_magic_glob= 12765want_nocaseglob=no 12766if test "$build" = "$host"; then 12767 case $host_os in 12768 mingw* | pw32*) 12769 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12770 want_nocaseglob=yes 12771 else 12772 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12773 fi 12774 ;; 12775 esac 12776fi 12777 12778file_magic_cmd=$lt_cv_file_magic_cmd 12779deplibs_check_method=$lt_cv_deplibs_check_method 12780test -z "$deplibs_check_method" && deplibs_check_method=unknown 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803if test -n "$ac_tool_prefix"; then 12804 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12805set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12807printf %s "checking for $ac_word... " >&6; } 12808if test ${ac_cv_prog_DLLTOOL+y} 12809then : 12810 printf %s "(cached) " >&6 12811else $as_nop 12812 if test -n "$DLLTOOL"; then 12813 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12814else 12815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12816for as_dir in $PATH 12817do 12818 IFS=$as_save_IFS 12819 case $as_dir in #((( 12820 '') as_dir=./ ;; 12821 */) ;; 12822 *) as_dir=$as_dir/ ;; 12823 esac 12824 for ac_exec_ext in '' $ac_executable_extensions; do 12825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12826 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12828 break 2 12829 fi 12830done 12831 done 12832IFS=$as_save_IFS 12833 12834fi 12835fi 12836DLLTOOL=$ac_cv_prog_DLLTOOL 12837if test -n "$DLLTOOL"; then 12838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12839printf "%s\n" "$DLLTOOL" >&6; } 12840else 12841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12842printf "%s\n" "no" >&6; } 12843fi 12844 12845 12846fi 12847if test -z "$ac_cv_prog_DLLTOOL"; then 12848 ac_ct_DLLTOOL=$DLLTOOL 12849 # Extract the first word of "dlltool", so it can be a program name with args. 12850set dummy dlltool; ac_word=$2 12851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12852printf %s "checking for $ac_word... " >&6; } 12853if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 12854then : 12855 printf %s "(cached) " >&6 12856else $as_nop 12857 if test -n "$ac_ct_DLLTOOL"; then 12858 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12859else 12860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12861for as_dir in $PATH 12862do 12863 IFS=$as_save_IFS 12864 case $as_dir in #((( 12865 '') as_dir=./ ;; 12866 */) ;; 12867 *) as_dir=$as_dir/ ;; 12868 esac 12869 for ac_exec_ext in '' $ac_executable_extensions; do 12870 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12871 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12873 break 2 12874 fi 12875done 12876 done 12877IFS=$as_save_IFS 12878 12879fi 12880fi 12881ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12882if test -n "$ac_ct_DLLTOOL"; then 12883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12884printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 12885else 12886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12887printf "%s\n" "no" >&6; } 12888fi 12889 12890 if test "x$ac_ct_DLLTOOL" = x; then 12891 DLLTOOL="false" 12892 else 12893 case $cross_compiling:$ac_tool_warned in 12894yes:) 12895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12896printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12897ac_tool_warned=yes ;; 12898esac 12899 DLLTOOL=$ac_ct_DLLTOOL 12900 fi 12901else 12902 DLLTOOL="$ac_cv_prog_DLLTOOL" 12903fi 12904 12905test -z "$DLLTOOL" && DLLTOOL=dlltool 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12917printf %s "checking how to associate runtime and link libraries... " >&6; } 12918if test ${lt_cv_sharedlib_from_linklib_cmd+y} 12919then : 12920 printf %s "(cached) " >&6 12921else $as_nop 12922 lt_cv_sharedlib_from_linklib_cmd='unknown' 12923 12924case $host_os in 12925cygwin* | mingw* | pw32* | cegcc*) 12926 # two different shell functions defined in ltmain.sh; 12927 # decide which one to use based on capabilities of $DLLTOOL 12928 case `$DLLTOOL --help 2>&1` in 12929 *--identify-strict*) 12930 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12931 ;; 12932 *) 12933 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12934 ;; 12935 esac 12936 ;; 12937*) 12938 # fallback: assume linklib IS sharedlib 12939 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12940 ;; 12941esac 12942 12943fi 12944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12945printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12946sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12947test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12948 12949 12950 12951 12952 12953 12954 12955if test -n "$ac_tool_prefix"; then 12956 for ac_prog in ar 12957 do 12958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12959set dummy $ac_tool_prefix$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_AR+y} 12963then : 12964 printf %s "(cached) " >&6 12965else $as_nop 12966 if test -n "$AR"; then 12967 ac_cv_prog_AR="$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_AR="$ac_tool_prefix$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 12990AR=$ac_cv_prog_AR 12991if test -n "$AR"; then 12992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12993printf "%s\n" "$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 "$AR" && break 13001 done 13002fi 13003if test -z "$AR"; then 13004 ac_ct_AR=$AR 13005 for ac_prog in ar 13006do 13007 # Extract the first word of "$ac_prog", so it can be a program name with args. 13008set dummy $ac_prog; ac_word=$2 13009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13010printf %s "checking for $ac_word... " >&6; } 13011if test ${ac_cv_prog_ac_ct_AR+y} 13012then : 13013 printf %s "(cached) " >&6 13014else $as_nop 13015 if test -n "$ac_ct_AR"; then 13016 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13017else 13018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13019for as_dir in $PATH 13020do 13021 IFS=$as_save_IFS 13022 case $as_dir in #((( 13023 '') as_dir=./ ;; 13024 */) ;; 13025 *) as_dir=$as_dir/ ;; 13026 esac 13027 for ac_exec_ext in '' $ac_executable_extensions; do 13028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13029 ac_cv_prog_ac_ct_AR="$ac_prog" 13030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13031 break 2 13032 fi 13033done 13034 done 13035IFS=$as_save_IFS 13036 13037fi 13038fi 13039ac_ct_AR=$ac_cv_prog_ac_ct_AR 13040if test -n "$ac_ct_AR"; then 13041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13042printf "%s\n" "$ac_ct_AR" >&6; } 13043else 13044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13045printf "%s\n" "no" >&6; } 13046fi 13047 13048 13049 test -n "$ac_ct_AR" && break 13050done 13051 13052 if test "x$ac_ct_AR" = x; then 13053 AR="false" 13054 else 13055 case $cross_compiling:$ac_tool_warned in 13056yes:) 13057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13058printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13059ac_tool_warned=yes ;; 13060esac 13061 AR=$ac_ct_AR 13062 fi 13063fi 13064 13065: ${AR=ar} 13066 13067 13068 13069 13070 13071 13072# Use ARFLAGS variable as AR's operation code to sync the variable naming with 13073# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13074# higher priority because thats what people were doing historically (setting 13075# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13076# variable obsoleted/removed. 13077 13078test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13079lt_ar_flags=$AR_FLAGS 13080 13081 13082 13083 13084 13085 13086# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13087# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13088 13089 13090 13091 13092 13093 13094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13095printf %s "checking for archiver @FILE support... " >&6; } 13096if test ${lt_cv_ar_at_file+y} 13097then : 13098 printf %s "(cached) " >&6 13099else $as_nop 13100 lt_cv_ar_at_file=no 13101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13102/* end confdefs.h. */ 13103 13104int 13105main (void) 13106{ 13107 13108 ; 13109 return 0; 13110} 13111_ACEOF 13112if ac_fn_c_try_compile "$LINENO" 13113then : 13114 echo conftest.$ac_objext > conftest.lst 13115 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13117 (eval $lt_ar_try) 2>&5 13118 ac_status=$? 13119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13120 test $ac_status = 0; } 13121 if test 0 -eq "$ac_status"; then 13122 # Ensure the archiver fails upon bogus file names. 13123 rm -f conftest.$ac_objext libconftest.a 13124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13125 (eval $lt_ar_try) 2>&5 13126 ac_status=$? 13127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13128 test $ac_status = 0; } 13129 if test 0 -ne "$ac_status"; then 13130 lt_cv_ar_at_file=@ 13131 fi 13132 fi 13133 rm -f conftest.* libconftest.a 13134 13135fi 13136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13137 13138fi 13139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13140printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13141 13142if test no = "$lt_cv_ar_at_file"; then 13143 archiver_list_spec= 13144else 13145 archiver_list_spec=$lt_cv_ar_at_file 13146fi 13147 13148 13149 13150 13151 13152 13153 13154if test -n "$ac_tool_prefix"; then 13155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13156set dummy ${ac_tool_prefix}strip; ac_word=$2 13157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13158printf %s "checking for $ac_word... " >&6; } 13159if test ${ac_cv_prog_STRIP+y} 13160then : 13161 printf %s "(cached) " >&6 13162else $as_nop 13163 if test -n "$STRIP"; then 13164 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13165else 13166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13167for as_dir in $PATH 13168do 13169 IFS=$as_save_IFS 13170 case $as_dir in #((( 13171 '') as_dir=./ ;; 13172 */) ;; 13173 *) as_dir=$as_dir/ ;; 13174 esac 13175 for ac_exec_ext in '' $ac_executable_extensions; do 13176 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13177 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13179 break 2 13180 fi 13181done 13182 done 13183IFS=$as_save_IFS 13184 13185fi 13186fi 13187STRIP=$ac_cv_prog_STRIP 13188if test -n "$STRIP"; then 13189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13190printf "%s\n" "$STRIP" >&6; } 13191else 13192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13193printf "%s\n" "no" >&6; } 13194fi 13195 13196 13197fi 13198if test -z "$ac_cv_prog_STRIP"; then 13199 ac_ct_STRIP=$STRIP 13200 # Extract the first word of "strip", so it can be a program name with args. 13201set dummy strip; ac_word=$2 13202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13203printf %s "checking for $ac_word... " >&6; } 13204if test ${ac_cv_prog_ac_ct_STRIP+y} 13205then : 13206 printf %s "(cached) " >&6 13207else $as_nop 13208 if test -n "$ac_ct_STRIP"; then 13209 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13210else 13211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13212for as_dir in $PATH 13213do 13214 IFS=$as_save_IFS 13215 case $as_dir in #((( 13216 '') as_dir=./ ;; 13217 */) ;; 13218 *) as_dir=$as_dir/ ;; 13219 esac 13220 for ac_exec_ext in '' $ac_executable_extensions; do 13221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13222 ac_cv_prog_ac_ct_STRIP="strip" 13223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13224 break 2 13225 fi 13226done 13227 done 13228IFS=$as_save_IFS 13229 13230fi 13231fi 13232ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13233if test -n "$ac_ct_STRIP"; then 13234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13235printf "%s\n" "$ac_ct_STRIP" >&6; } 13236else 13237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13238printf "%s\n" "no" >&6; } 13239fi 13240 13241 if test "x$ac_ct_STRIP" = x; then 13242 STRIP=":" 13243 else 13244 case $cross_compiling:$ac_tool_warned in 13245yes:) 13246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13247printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13248ac_tool_warned=yes ;; 13249esac 13250 STRIP=$ac_ct_STRIP 13251 fi 13252else 13253 STRIP="$ac_cv_prog_STRIP" 13254fi 13255 13256test -z "$STRIP" && STRIP=: 13257 13258 13259 13260 13261 13262 13263if test -n "$ac_tool_prefix"; then 13264 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13265set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13267printf %s "checking for $ac_word... " >&6; } 13268if test ${ac_cv_prog_RANLIB+y} 13269then : 13270 printf %s "(cached) " >&6 13271else $as_nop 13272 if test -n "$RANLIB"; then 13273 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13274else 13275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13276for as_dir in $PATH 13277do 13278 IFS=$as_save_IFS 13279 case $as_dir in #((( 13280 '') as_dir=./ ;; 13281 */) ;; 13282 *) as_dir=$as_dir/ ;; 13283 esac 13284 for ac_exec_ext in '' $ac_executable_extensions; do 13285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13286 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13288 break 2 13289 fi 13290done 13291 done 13292IFS=$as_save_IFS 13293 13294fi 13295fi 13296RANLIB=$ac_cv_prog_RANLIB 13297if test -n "$RANLIB"; then 13298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13299printf "%s\n" "$RANLIB" >&6; } 13300else 13301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13302printf "%s\n" "no" >&6; } 13303fi 13304 13305 13306fi 13307if test -z "$ac_cv_prog_RANLIB"; then 13308 ac_ct_RANLIB=$RANLIB 13309 # Extract the first word of "ranlib", so it can be a program name with args. 13310set dummy ranlib; ac_word=$2 13311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13312printf %s "checking for $ac_word... " >&6; } 13313if test ${ac_cv_prog_ac_ct_RANLIB+y} 13314then : 13315 printf %s "(cached) " >&6 13316else $as_nop 13317 if test -n "$ac_ct_RANLIB"; then 13318 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13319else 13320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13321for as_dir in $PATH 13322do 13323 IFS=$as_save_IFS 13324 case $as_dir in #((( 13325 '') as_dir=./ ;; 13326 */) ;; 13327 *) as_dir=$as_dir/ ;; 13328 esac 13329 for ac_exec_ext in '' $ac_executable_extensions; do 13330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13331 ac_cv_prog_ac_ct_RANLIB="ranlib" 13332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13333 break 2 13334 fi 13335done 13336 done 13337IFS=$as_save_IFS 13338 13339fi 13340fi 13341ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13342if test -n "$ac_ct_RANLIB"; then 13343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13344printf "%s\n" "$ac_ct_RANLIB" >&6; } 13345else 13346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13347printf "%s\n" "no" >&6; } 13348fi 13349 13350 if test "x$ac_ct_RANLIB" = x; then 13351 RANLIB=":" 13352 else 13353 case $cross_compiling:$ac_tool_warned in 13354yes:) 13355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13356printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13357ac_tool_warned=yes ;; 13358esac 13359 RANLIB=$ac_ct_RANLIB 13360 fi 13361else 13362 RANLIB="$ac_cv_prog_RANLIB" 13363fi 13364 13365test -z "$RANLIB" && RANLIB=: 13366 13367 13368 13369 13370 13371 13372# Determine commands to create old-style static archives. 13373old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13374old_postinstall_cmds='chmod 644 $oldlib' 13375old_postuninstall_cmds= 13376 13377if test -n "$RANLIB"; then 13378 case $host_os in 13379 bitrig* | openbsd*) 13380 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13381 ;; 13382 *) 13383 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13384 ;; 13385 esac 13386 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13387fi 13388 13389case $host_os in 13390 darwin*) 13391 lock_old_archive_extraction=yes ;; 13392 *) 13393 lock_old_archive_extraction=no ;; 13394esac 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434# If no C compiler was specified, use CC. 13435LTCC=${LTCC-"$CC"} 13436 13437# If no C compiler flags were specified, use CFLAGS. 13438LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13439 13440# Allow CC to be a program name with arguments. 13441compiler=$CC 13442 13443 13444# Check for command to grab the raw symbol name followed by C symbol from nm. 13445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13446printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13447if test ${lt_cv_sys_global_symbol_pipe+y} 13448then : 13449 printf %s "(cached) " >&6 13450else $as_nop 13451 13452# These are sane defaults that work on at least a few old systems. 13453# [They come from Ultrix. What could be older than Ultrix?!! ;)] 13454 13455# Character class describing NM global symbol codes. 13456symcode='[BCDEGRST]' 13457 13458# Regexp to match symbols that can be accessed directly from C. 13459sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13460 13461# Define system-specific variables. 13462case $host_os in 13463aix*) 13464 symcode='[BCDT]' 13465 ;; 13466cygwin* | mingw* | pw32* | cegcc*) 13467 symcode='[ABCDGISTW]' 13468 ;; 13469hpux*) 13470 if test ia64 = "$host_cpu"; then 13471 symcode='[ABCDEGRST]' 13472 fi 13473 ;; 13474irix* | nonstopux*) 13475 symcode='[BCDEGRST]' 13476 ;; 13477osf*) 13478 symcode='[BCDEGQRST]' 13479 ;; 13480solaris*) 13481 symcode='[BDRT]' 13482 ;; 13483sco3.2v5*) 13484 symcode='[DT]' 13485 ;; 13486sysv4.2uw2*) 13487 symcode='[DT]' 13488 ;; 13489sysv5* | sco5v6* | unixware* | OpenUNIX*) 13490 symcode='[ABDT]' 13491 ;; 13492sysv4) 13493 symcode='[DFNSTU]' 13494 ;; 13495esac 13496 13497# If we're using GNU nm, then use its standard symbol codes. 13498case `$NM -V 2>&1` in 13499*GNU* | *'with BFD'*) 13500 symcode='[ABCDGIRSTW]' ;; 13501esac 13502 13503if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13504 # Gets list of data symbols to import. 13505 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13506 # Adjust the below global symbol transforms to fixup imported variables. 13507 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13508 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13509 lt_c_name_lib_hook="\ 13510 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13511 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13512else 13513 # Disable hooks by default. 13514 lt_cv_sys_global_symbol_to_import= 13515 lt_cdecl_hook= 13516 lt_c_name_hook= 13517 lt_c_name_lib_hook= 13518fi 13519 13520# Transform an extracted symbol line into a proper C declaration. 13521# Some systems (esp. on ia64) link data and code symbols differently, 13522# so use this general approach. 13523lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13524$lt_cdecl_hook\ 13525" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13526" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13527 13528# Transform an extracted symbol line into symbol name and symbol address 13529lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13530$lt_c_name_hook\ 13531" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13532" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13533 13534# Transform an extracted symbol line into symbol name with lib prefix and 13535# symbol address. 13536lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13537$lt_c_name_lib_hook\ 13538" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13539" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13540" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13541 13542# Handle CRLF in mingw tool chain 13543opt_cr= 13544case $build_os in 13545mingw*) 13546 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13547 ;; 13548esac 13549 13550# Try without a prefix underscore, then with it. 13551for ac_symprfx in "" "_"; do 13552 13553 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13554 symxfrm="\\1 $ac_symprfx\\2 \\2" 13555 13556 # Write the raw and C identifiers. 13557 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13558 # Fake it for dumpbin and say T for any non-static function, 13559 # D for any global variable and I for any imported variable. 13560 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13561 # which start with @ or ?. 13562 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13563" {last_section=section; section=\$ 3};"\ 13564" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13565" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13566" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13567" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13568" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13569" \$ 0!~/External *\|/{next};"\ 13570" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13571" {if(hide[section]) next};"\ 13572" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13573" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13574" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13575" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13576" ' prfx=^$ac_symprfx" 13577 else 13578 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13579 fi 13580 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13581 13582 # Check to see that the pipe works correctly. 13583 pipe_works=no 13584 13585 rm -f conftest* 13586 cat > conftest.$ac_ext <<_LT_EOF 13587#ifdef __cplusplus 13588extern "C" { 13589#endif 13590char nm_test_var; 13591void nm_test_func(void); 13592void nm_test_func(void){} 13593#ifdef __cplusplus 13594} 13595#endif 13596int main(){nm_test_var='a';nm_test_func();return(0);} 13597_LT_EOF 13598 13599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13600 (eval $ac_compile) 2>&5 13601 ac_status=$? 13602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13603 test $ac_status = 0; }; then 13604 # Now try to grab the symbols. 13605 nlist=conftest.nm 13606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13607 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13608 ac_status=$? 13609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13610 test $ac_status = 0; } && test -s "$nlist"; then 13611 # Try sorting and uniquifying the output. 13612 if sort "$nlist" | uniq > "$nlist"T; then 13613 mv -f "$nlist"T "$nlist" 13614 else 13615 rm -f "$nlist"T 13616 fi 13617 13618 # Make sure that we snagged all the symbols we need. 13619 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13620 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13621 cat <<_LT_EOF > conftest.$ac_ext 13622/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13623#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13624/* DATA imports from DLLs on WIN32 can't be const, because runtime 13625 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13626# define LT_DLSYM_CONST 13627#elif defined __osf__ 13628/* This system does not cope well with relocations in const data. */ 13629# define LT_DLSYM_CONST 13630#else 13631# define LT_DLSYM_CONST const 13632#endif 13633 13634#ifdef __cplusplus 13635extern "C" { 13636#endif 13637 13638_LT_EOF 13639 # Now generate the symbol file. 13640 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13641 13642 cat <<_LT_EOF >> conftest.$ac_ext 13643 13644/* The mapping between symbol names and symbols. */ 13645LT_DLSYM_CONST struct { 13646 const char *name; 13647 void *address; 13648} 13649lt__PROGRAM__LTX_preloaded_symbols[] = 13650{ 13651 { "@PROGRAM@", (void *) 0 }, 13652_LT_EOF 13653 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13654 cat <<\_LT_EOF >> conftest.$ac_ext 13655 {0, (void *) 0} 13656}; 13657 13658/* This works around a problem in FreeBSD linker */ 13659#ifdef FREEBSD_WORKAROUND 13660static const void *lt_preloaded_setup() { 13661 return lt__PROGRAM__LTX_preloaded_symbols; 13662} 13663#endif 13664 13665#ifdef __cplusplus 13666} 13667#endif 13668_LT_EOF 13669 # Now try linking the two files. 13670 mv conftest.$ac_objext conftstm.$ac_objext 13671 lt_globsym_save_LIBS=$LIBS 13672 lt_globsym_save_CFLAGS=$CFLAGS 13673 LIBS=conftstm.$ac_objext 13674 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13676 (eval $ac_link) 2>&5 13677 ac_status=$? 13678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13679 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13680 pipe_works=yes 13681 fi 13682 LIBS=$lt_globsym_save_LIBS 13683 CFLAGS=$lt_globsym_save_CFLAGS 13684 else 13685 echo "cannot find nm_test_func in $nlist" >&5 13686 fi 13687 else 13688 echo "cannot find nm_test_var in $nlist" >&5 13689 fi 13690 else 13691 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13692 fi 13693 else 13694 echo "$progname: failed program was:" >&5 13695 cat conftest.$ac_ext >&5 13696 fi 13697 rm -rf conftest* conftst* 13698 13699 # Do not use the global_symbol_pipe unless it works. 13700 if test yes = "$pipe_works"; then 13701 break 13702 else 13703 lt_cv_sys_global_symbol_pipe= 13704 fi 13705done 13706 13707fi 13708 13709if test -z "$lt_cv_sys_global_symbol_pipe"; then 13710 lt_cv_sys_global_symbol_to_cdecl= 13711fi 13712if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13714printf "%s\n" "failed" >&6; } 13715else 13716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13717printf "%s\n" "ok" >&6; } 13718fi 13719 13720# Response file support. 13721if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13722 nm_file_list_spec='@' 13723elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13724 nm_file_list_spec='@' 13725fi 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13764printf %s "checking for sysroot... " >&6; } 13765 13766# Check whether --with-sysroot was given. 13767if test ${with_sysroot+y} 13768then : 13769 withval=$with_sysroot; 13770else $as_nop 13771 with_sysroot=no 13772fi 13773 13774 13775lt_sysroot= 13776case $with_sysroot in #( 13777 yes) 13778 if test yes = "$GCC"; then 13779 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13780 fi 13781 ;; #( 13782 /*) 13783 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 13784 ;; #( 13785 no|'') 13786 ;; #( 13787 *) 13788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13789printf "%s\n" "$with_sysroot" >&6; } 13790 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13791 ;; 13792esac 13793 13794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13795printf "%s\n" "${lt_sysroot:-no}" >&6; } 13796 13797 13798 13799 13800 13801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13802printf %s "checking for a working dd... " >&6; } 13803if test ${ac_cv_path_lt_DD+y} 13804then : 13805 printf %s "(cached) " >&6 13806else $as_nop 13807 printf 0123456789abcdef0123456789abcdef >conftest.i 13808cat conftest.i conftest.i >conftest2.i 13809: ${lt_DD:=$DD} 13810if test -z "$lt_DD"; then 13811 ac_path_lt_DD_found=false 13812 # Loop through the user's path and test for each of PROGNAME-LIST 13813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13814for as_dir in $PATH 13815do 13816 IFS=$as_save_IFS 13817 case $as_dir in #((( 13818 '') as_dir=./ ;; 13819 */) ;; 13820 *) as_dir=$as_dir/ ;; 13821 esac 13822 for ac_prog in dd 13823 do 13824 for ac_exec_ext in '' $ac_executable_extensions; do 13825 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 13826 as_fn_executable_p "$ac_path_lt_DD" || continue 13827if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13828 cmp -s conftest.i conftest.out \ 13829 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13830fi 13831 $ac_path_lt_DD_found && break 3 13832 done 13833 done 13834 done 13835IFS=$as_save_IFS 13836 if test -z "$ac_cv_path_lt_DD"; then 13837 : 13838 fi 13839else 13840 ac_cv_path_lt_DD=$lt_DD 13841fi 13842 13843rm -f conftest.i conftest2.i conftest.out 13844fi 13845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13846printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 13847 13848 13849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13850printf %s "checking how to truncate binary pipes... " >&6; } 13851if test ${lt_cv_truncate_bin+y} 13852then : 13853 printf %s "(cached) " >&6 13854else $as_nop 13855 printf 0123456789abcdef0123456789abcdef >conftest.i 13856cat conftest.i conftest.i >conftest2.i 13857lt_cv_truncate_bin= 13858if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13859 cmp -s conftest.i conftest.out \ 13860 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13861fi 13862rm -f conftest.i conftest2.i conftest.out 13863test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13864fi 13865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13866printf "%s\n" "$lt_cv_truncate_bin" >&6; } 13867 13868 13869 13870 13871 13872 13873 13874# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13875func_cc_basename () 13876{ 13877 for cc_temp in $*""; do 13878 case $cc_temp in 13879 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13880 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13881 \-*) ;; 13882 *) break;; 13883 esac 13884 done 13885 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13886} 13887 13888# Check whether --enable-libtool-lock was given. 13889if test ${enable_libtool_lock+y} 13890then : 13891 enableval=$enable_libtool_lock; 13892fi 13893 13894test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13895 13896# Some flags need to be propagated to the compiler or linker for good 13897# libtool support. 13898case $host in 13899ia64-*-hpux*) 13900 # Find out what ABI is being produced by ac_compile, and set mode 13901 # options accordingly. 13902 echo 'int i;' > conftest.$ac_ext 13903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13904 (eval $ac_compile) 2>&5 13905 ac_status=$? 13906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13907 test $ac_status = 0; }; then 13908 case `$FILECMD conftest.$ac_objext` in 13909 *ELF-32*) 13910 HPUX_IA64_MODE=32 13911 ;; 13912 *ELF-64*) 13913 HPUX_IA64_MODE=64 13914 ;; 13915 esac 13916 fi 13917 rm -rf conftest* 13918 ;; 13919*-*-irix6*) 13920 # Find out what ABI is being produced by ac_compile, and set linker 13921 # options accordingly. 13922 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13924 (eval $ac_compile) 2>&5 13925 ac_status=$? 13926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13927 test $ac_status = 0; }; then 13928 if test yes = "$lt_cv_prog_gnu_ld"; then 13929 case `$FILECMD conftest.$ac_objext` in 13930 *32-bit*) 13931 LD="${LD-ld} -melf32bsmip" 13932 ;; 13933 *N32*) 13934 LD="${LD-ld} -melf32bmipn32" 13935 ;; 13936 *64-bit*) 13937 LD="${LD-ld} -melf64bmip" 13938 ;; 13939 esac 13940 else 13941 case `$FILECMD conftest.$ac_objext` in 13942 *32-bit*) 13943 LD="${LD-ld} -32" 13944 ;; 13945 *N32*) 13946 LD="${LD-ld} -n32" 13947 ;; 13948 *64-bit*) 13949 LD="${LD-ld} -64" 13950 ;; 13951 esac 13952 fi 13953 fi 13954 rm -rf conftest* 13955 ;; 13956 13957mips64*-*linux*) 13958 # Find out what ABI is being produced by ac_compile, and set linker 13959 # options accordingly. 13960 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13962 (eval $ac_compile) 2>&5 13963 ac_status=$? 13964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13965 test $ac_status = 0; }; then 13966 emul=elf 13967 case `$FILECMD conftest.$ac_objext` in 13968 *32-bit*) 13969 emul="${emul}32" 13970 ;; 13971 *64-bit*) 13972 emul="${emul}64" 13973 ;; 13974 esac 13975 case `$FILECMD conftest.$ac_objext` in 13976 *MSB*) 13977 emul="${emul}btsmip" 13978 ;; 13979 *LSB*) 13980 emul="${emul}ltsmip" 13981 ;; 13982 esac 13983 case `$FILECMD conftest.$ac_objext` in 13984 *N32*) 13985 emul="${emul}n32" 13986 ;; 13987 esac 13988 LD="${LD-ld} -m $emul" 13989 fi 13990 rm -rf conftest* 13991 ;; 13992 13993x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13994s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13995 # Find out what ABI is being produced by ac_compile, and set linker 13996 # options accordingly. Note that the listed cases only cover the 13997 # situations where additional linker options are needed (such as when 13998 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13999 # vice versa); the common cases where no linker options are needed do 14000 # not appear in the list. 14001 echo 'int i;' > conftest.$ac_ext 14002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14003 (eval $ac_compile) 2>&5 14004 ac_status=$? 14005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14006 test $ac_status = 0; }; then 14007 case `$FILECMD conftest.o` in 14008 *32-bit*) 14009 case $host in 14010 x86_64-*kfreebsd*-gnu) 14011 LD="${LD-ld} -m elf_i386_fbsd" 14012 ;; 14013 x86_64-*linux*) 14014 case `$FILECMD conftest.o` in 14015 *x86-64*) 14016 LD="${LD-ld} -m elf32_x86_64" 14017 ;; 14018 *) 14019 LD="${LD-ld} -m elf_i386" 14020 ;; 14021 esac 14022 ;; 14023 powerpc64le-*linux*) 14024 LD="${LD-ld} -m elf32lppclinux" 14025 ;; 14026 powerpc64-*linux*) 14027 LD="${LD-ld} -m elf32ppclinux" 14028 ;; 14029 s390x-*linux*) 14030 LD="${LD-ld} -m elf_s390" 14031 ;; 14032 sparc64-*linux*) 14033 LD="${LD-ld} -m elf32_sparc" 14034 ;; 14035 esac 14036 ;; 14037 *64-bit*) 14038 case $host in 14039 x86_64-*kfreebsd*-gnu) 14040 LD="${LD-ld} -m elf_x86_64_fbsd" 14041 ;; 14042 x86_64-*linux*) 14043 LD="${LD-ld} -m elf_x86_64" 14044 ;; 14045 powerpcle-*linux*) 14046 LD="${LD-ld} -m elf64lppc" 14047 ;; 14048 powerpc-*linux*) 14049 LD="${LD-ld} -m elf64ppc" 14050 ;; 14051 s390*-*linux*|s390*-*tpf*) 14052 LD="${LD-ld} -m elf64_s390" 14053 ;; 14054 sparc*-*linux*) 14055 LD="${LD-ld} -m elf64_sparc" 14056 ;; 14057 esac 14058 ;; 14059 esac 14060 fi 14061 rm -rf conftest* 14062 ;; 14063 14064*-*-sco3.2v5*) 14065 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14066 SAVE_CFLAGS=$CFLAGS 14067 CFLAGS="$CFLAGS -belf" 14068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14069printf %s "checking whether the C compiler needs -belf... " >&6; } 14070if test ${lt_cv_cc_needs_belf+y} 14071then : 14072 printf %s "(cached) " >&6 14073else $as_nop 14074 ac_ext=c 14075ac_cpp='$CPP $CPPFLAGS' 14076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14078ac_compiler_gnu=$ac_cv_c_compiler_gnu 14079 14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14081/* end confdefs.h. */ 14082 14083int 14084main (void) 14085{ 14086 14087 ; 14088 return 0; 14089} 14090_ACEOF 14091if ac_fn_c_try_link "$LINENO" 14092then : 14093 lt_cv_cc_needs_belf=yes 14094else $as_nop 14095 lt_cv_cc_needs_belf=no 14096fi 14097rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14098 conftest$ac_exeext conftest.$ac_ext 14099 ac_ext=c 14100ac_cpp='$CPP $CPPFLAGS' 14101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14103ac_compiler_gnu=$ac_cv_c_compiler_gnu 14104 14105fi 14106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14107printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14108 if test yes != "$lt_cv_cc_needs_belf"; then 14109 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14110 CFLAGS=$SAVE_CFLAGS 14111 fi 14112 ;; 14113*-*solaris*) 14114 # Find out what ABI is being produced by ac_compile, and set linker 14115 # options accordingly. 14116 echo 'int i;' > conftest.$ac_ext 14117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14118 (eval $ac_compile) 2>&5 14119 ac_status=$? 14120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14121 test $ac_status = 0; }; then 14122 case `$FILECMD conftest.o` in 14123 *64-bit*) 14124 case $lt_cv_prog_gnu_ld in 14125 yes*) 14126 case $host in 14127 i?86-*-solaris*|x86_64-*-solaris*) 14128 LD="${LD-ld} -m elf_x86_64" 14129 ;; 14130 sparc*-*-solaris*) 14131 LD="${LD-ld} -m elf64_sparc" 14132 ;; 14133 esac 14134 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14135 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14136 LD=${LD-ld}_sol2 14137 fi 14138 ;; 14139 *) 14140 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14141 LD="${LD-ld} -64" 14142 fi 14143 ;; 14144 esac 14145 ;; 14146 esac 14147 fi 14148 rm -rf conftest* 14149 ;; 14150esac 14151 14152need_locks=$enable_libtool_lock 14153 14154if test -n "$ac_tool_prefix"; then 14155 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14156set dummy ${ac_tool_prefix}mt; ac_word=$2 14157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14158printf %s "checking for $ac_word... " >&6; } 14159if test ${ac_cv_prog_MANIFEST_TOOL+y} 14160then : 14161 printf %s "(cached) " >&6 14162else $as_nop 14163 if test -n "$MANIFEST_TOOL"; then 14164 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14165else 14166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14167for as_dir in $PATH 14168do 14169 IFS=$as_save_IFS 14170 case $as_dir in #((( 14171 '') as_dir=./ ;; 14172 */) ;; 14173 *) as_dir=$as_dir/ ;; 14174 esac 14175 for ac_exec_ext in '' $ac_executable_extensions; do 14176 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14177 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14179 break 2 14180 fi 14181done 14182 done 14183IFS=$as_save_IFS 14184 14185fi 14186fi 14187MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14188if test -n "$MANIFEST_TOOL"; then 14189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14190printf "%s\n" "$MANIFEST_TOOL" >&6; } 14191else 14192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14193printf "%s\n" "no" >&6; } 14194fi 14195 14196 14197fi 14198if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14199 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14200 # Extract the first word of "mt", so it can be a program name with args. 14201set dummy mt; ac_word=$2 14202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14203printf %s "checking for $ac_word... " >&6; } 14204if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14205then : 14206 printf %s "(cached) " >&6 14207else $as_nop 14208 if test -n "$ac_ct_MANIFEST_TOOL"; then 14209 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14210else 14211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14212for as_dir in $PATH 14213do 14214 IFS=$as_save_IFS 14215 case $as_dir in #((( 14216 '') as_dir=./ ;; 14217 */) ;; 14218 *) as_dir=$as_dir/ ;; 14219 esac 14220 for ac_exec_ext in '' $ac_executable_extensions; do 14221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14222 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14224 break 2 14225 fi 14226done 14227 done 14228IFS=$as_save_IFS 14229 14230fi 14231fi 14232ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14233if test -n "$ac_ct_MANIFEST_TOOL"; then 14234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14235printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14236else 14237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14238printf "%s\n" "no" >&6; } 14239fi 14240 14241 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14242 MANIFEST_TOOL=":" 14243 else 14244 case $cross_compiling:$ac_tool_warned in 14245yes:) 14246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14247printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14248ac_tool_warned=yes ;; 14249esac 14250 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14251 fi 14252else 14253 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14254fi 14255 14256test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14258printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14259if test ${lt_cv_path_mainfest_tool+y} 14260then : 14261 printf %s "(cached) " >&6 14262else $as_nop 14263 lt_cv_path_mainfest_tool=no 14264 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14265 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14266 cat conftest.err >&5 14267 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14268 lt_cv_path_mainfest_tool=yes 14269 fi 14270 rm -f conftest* 14271fi 14272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14273printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14274if test yes != "$lt_cv_path_mainfest_tool"; then 14275 MANIFEST_TOOL=: 14276fi 14277 14278 14279 14280 14281 14282 14283 case $host_os in 14284 rhapsody* | darwin*) 14285 if test -n "$ac_tool_prefix"; then 14286 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14287set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14289printf %s "checking for $ac_word... " >&6; } 14290if test ${ac_cv_prog_DSYMUTIL+y} 14291then : 14292 printf %s "(cached) " >&6 14293else $as_nop 14294 if test -n "$DSYMUTIL"; then 14295 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14296else 14297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14298for as_dir in $PATH 14299do 14300 IFS=$as_save_IFS 14301 case $as_dir in #((( 14302 '') as_dir=./ ;; 14303 */) ;; 14304 *) as_dir=$as_dir/ ;; 14305 esac 14306 for ac_exec_ext in '' $ac_executable_extensions; do 14307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14308 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14310 break 2 14311 fi 14312done 14313 done 14314IFS=$as_save_IFS 14315 14316fi 14317fi 14318DSYMUTIL=$ac_cv_prog_DSYMUTIL 14319if test -n "$DSYMUTIL"; then 14320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14321printf "%s\n" "$DSYMUTIL" >&6; } 14322else 14323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14324printf "%s\n" "no" >&6; } 14325fi 14326 14327 14328fi 14329if test -z "$ac_cv_prog_DSYMUTIL"; then 14330 ac_ct_DSYMUTIL=$DSYMUTIL 14331 # Extract the first word of "dsymutil", so it can be a program name with args. 14332set dummy dsymutil; ac_word=$2 14333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14334printf %s "checking for $ac_word... " >&6; } 14335if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14336then : 14337 printf %s "(cached) " >&6 14338else $as_nop 14339 if test -n "$ac_ct_DSYMUTIL"; then 14340 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14341else 14342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14343for as_dir in $PATH 14344do 14345 IFS=$as_save_IFS 14346 case $as_dir in #((( 14347 '') as_dir=./ ;; 14348 */) ;; 14349 *) as_dir=$as_dir/ ;; 14350 esac 14351 for ac_exec_ext in '' $ac_executable_extensions; do 14352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14353 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14355 break 2 14356 fi 14357done 14358 done 14359IFS=$as_save_IFS 14360 14361fi 14362fi 14363ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14364if test -n "$ac_ct_DSYMUTIL"; then 14365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14366printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14367else 14368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14369printf "%s\n" "no" >&6; } 14370fi 14371 14372 if test "x$ac_ct_DSYMUTIL" = x; then 14373 DSYMUTIL=":" 14374 else 14375 case $cross_compiling:$ac_tool_warned in 14376yes:) 14377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14378printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14379ac_tool_warned=yes ;; 14380esac 14381 DSYMUTIL=$ac_ct_DSYMUTIL 14382 fi 14383else 14384 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14385fi 14386 14387 if test -n "$ac_tool_prefix"; then 14388 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14389set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14391printf %s "checking for $ac_word... " >&6; } 14392if test ${ac_cv_prog_NMEDIT+y} 14393then : 14394 printf %s "(cached) " >&6 14395else $as_nop 14396 if test -n "$NMEDIT"; then 14397 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14398else 14399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14400for as_dir in $PATH 14401do 14402 IFS=$as_save_IFS 14403 case $as_dir in #((( 14404 '') as_dir=./ ;; 14405 */) ;; 14406 *) as_dir=$as_dir/ ;; 14407 esac 14408 for ac_exec_ext in '' $ac_executable_extensions; do 14409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14410 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14412 break 2 14413 fi 14414done 14415 done 14416IFS=$as_save_IFS 14417 14418fi 14419fi 14420NMEDIT=$ac_cv_prog_NMEDIT 14421if test -n "$NMEDIT"; then 14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14423printf "%s\n" "$NMEDIT" >&6; } 14424else 14425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14426printf "%s\n" "no" >&6; } 14427fi 14428 14429 14430fi 14431if test -z "$ac_cv_prog_NMEDIT"; then 14432 ac_ct_NMEDIT=$NMEDIT 14433 # Extract the first word of "nmedit", so it can be a program name with args. 14434set dummy nmedit; ac_word=$2 14435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14436printf %s "checking for $ac_word... " >&6; } 14437if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14438then : 14439 printf %s "(cached) " >&6 14440else $as_nop 14441 if test -n "$ac_ct_NMEDIT"; then 14442 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14443else 14444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14445for as_dir in $PATH 14446do 14447 IFS=$as_save_IFS 14448 case $as_dir in #((( 14449 '') as_dir=./ ;; 14450 */) ;; 14451 *) as_dir=$as_dir/ ;; 14452 esac 14453 for ac_exec_ext in '' $ac_executable_extensions; do 14454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14455 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14457 break 2 14458 fi 14459done 14460 done 14461IFS=$as_save_IFS 14462 14463fi 14464fi 14465ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14466if test -n "$ac_ct_NMEDIT"; then 14467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14468printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14469else 14470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14471printf "%s\n" "no" >&6; } 14472fi 14473 14474 if test "x$ac_ct_NMEDIT" = x; then 14475 NMEDIT=":" 14476 else 14477 case $cross_compiling:$ac_tool_warned in 14478yes:) 14479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14480printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14481ac_tool_warned=yes ;; 14482esac 14483 NMEDIT=$ac_ct_NMEDIT 14484 fi 14485else 14486 NMEDIT="$ac_cv_prog_NMEDIT" 14487fi 14488 14489 if test -n "$ac_tool_prefix"; then 14490 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14491set dummy ${ac_tool_prefix}lipo; ac_word=$2 14492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14493printf %s "checking for $ac_word... " >&6; } 14494if test ${ac_cv_prog_LIPO+y} 14495then : 14496 printf %s "(cached) " >&6 14497else $as_nop 14498 if test -n "$LIPO"; then 14499 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14500else 14501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14502for as_dir in $PATH 14503do 14504 IFS=$as_save_IFS 14505 case $as_dir in #((( 14506 '') as_dir=./ ;; 14507 */) ;; 14508 *) as_dir=$as_dir/ ;; 14509 esac 14510 for ac_exec_ext in '' $ac_executable_extensions; do 14511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14512 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14514 break 2 14515 fi 14516done 14517 done 14518IFS=$as_save_IFS 14519 14520fi 14521fi 14522LIPO=$ac_cv_prog_LIPO 14523if test -n "$LIPO"; then 14524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14525printf "%s\n" "$LIPO" >&6; } 14526else 14527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14528printf "%s\n" "no" >&6; } 14529fi 14530 14531 14532fi 14533if test -z "$ac_cv_prog_LIPO"; then 14534 ac_ct_LIPO=$LIPO 14535 # Extract the first word of "lipo", so it can be a program name with args. 14536set dummy lipo; ac_word=$2 14537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14538printf %s "checking for $ac_word... " >&6; } 14539if test ${ac_cv_prog_ac_ct_LIPO+y} 14540then : 14541 printf %s "(cached) " >&6 14542else $as_nop 14543 if test -n "$ac_ct_LIPO"; then 14544 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14545else 14546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14547for as_dir in $PATH 14548do 14549 IFS=$as_save_IFS 14550 case $as_dir in #((( 14551 '') as_dir=./ ;; 14552 */) ;; 14553 *) as_dir=$as_dir/ ;; 14554 esac 14555 for ac_exec_ext in '' $ac_executable_extensions; do 14556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14557 ac_cv_prog_ac_ct_LIPO="lipo" 14558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14559 break 2 14560 fi 14561done 14562 done 14563IFS=$as_save_IFS 14564 14565fi 14566fi 14567ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14568if test -n "$ac_ct_LIPO"; then 14569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14570printf "%s\n" "$ac_ct_LIPO" >&6; } 14571else 14572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14573printf "%s\n" "no" >&6; } 14574fi 14575 14576 if test "x$ac_ct_LIPO" = x; then 14577 LIPO=":" 14578 else 14579 case $cross_compiling:$ac_tool_warned in 14580yes:) 14581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14582printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14583ac_tool_warned=yes ;; 14584esac 14585 LIPO=$ac_ct_LIPO 14586 fi 14587else 14588 LIPO="$ac_cv_prog_LIPO" 14589fi 14590 14591 if test -n "$ac_tool_prefix"; then 14592 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14593set dummy ${ac_tool_prefix}otool; ac_word=$2 14594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14595printf %s "checking for $ac_word... " >&6; } 14596if test ${ac_cv_prog_OTOOL+y} 14597then : 14598 printf %s "(cached) " >&6 14599else $as_nop 14600 if test -n "$OTOOL"; then 14601 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14602else 14603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14604for as_dir in $PATH 14605do 14606 IFS=$as_save_IFS 14607 case $as_dir in #((( 14608 '') as_dir=./ ;; 14609 */) ;; 14610 *) as_dir=$as_dir/ ;; 14611 esac 14612 for ac_exec_ext in '' $ac_executable_extensions; do 14613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14614 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14616 break 2 14617 fi 14618done 14619 done 14620IFS=$as_save_IFS 14621 14622fi 14623fi 14624OTOOL=$ac_cv_prog_OTOOL 14625if test -n "$OTOOL"; then 14626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14627printf "%s\n" "$OTOOL" >&6; } 14628else 14629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14630printf "%s\n" "no" >&6; } 14631fi 14632 14633 14634fi 14635if test -z "$ac_cv_prog_OTOOL"; then 14636 ac_ct_OTOOL=$OTOOL 14637 # Extract the first word of "otool", so it can be a program name with args. 14638set dummy otool; ac_word=$2 14639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14640printf %s "checking for $ac_word... " >&6; } 14641if test ${ac_cv_prog_ac_ct_OTOOL+y} 14642then : 14643 printf %s "(cached) " >&6 14644else $as_nop 14645 if test -n "$ac_ct_OTOOL"; then 14646 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14647else 14648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14649for as_dir in $PATH 14650do 14651 IFS=$as_save_IFS 14652 case $as_dir in #((( 14653 '') as_dir=./ ;; 14654 */) ;; 14655 *) as_dir=$as_dir/ ;; 14656 esac 14657 for ac_exec_ext in '' $ac_executable_extensions; do 14658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14659 ac_cv_prog_ac_ct_OTOOL="otool" 14660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14661 break 2 14662 fi 14663done 14664 done 14665IFS=$as_save_IFS 14666 14667fi 14668fi 14669ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14670if test -n "$ac_ct_OTOOL"; then 14671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14672printf "%s\n" "$ac_ct_OTOOL" >&6; } 14673else 14674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14675printf "%s\n" "no" >&6; } 14676fi 14677 14678 if test "x$ac_ct_OTOOL" = x; then 14679 OTOOL=":" 14680 else 14681 case $cross_compiling:$ac_tool_warned in 14682yes:) 14683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14684printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14685ac_tool_warned=yes ;; 14686esac 14687 OTOOL=$ac_ct_OTOOL 14688 fi 14689else 14690 OTOOL="$ac_cv_prog_OTOOL" 14691fi 14692 14693 if test -n "$ac_tool_prefix"; then 14694 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14695set dummy ${ac_tool_prefix}otool64; ac_word=$2 14696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14697printf %s "checking for $ac_word... " >&6; } 14698if test ${ac_cv_prog_OTOOL64+y} 14699then : 14700 printf %s "(cached) " >&6 14701else $as_nop 14702 if test -n "$OTOOL64"; then 14703 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14704else 14705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14706for as_dir in $PATH 14707do 14708 IFS=$as_save_IFS 14709 case $as_dir in #((( 14710 '') as_dir=./ ;; 14711 */) ;; 14712 *) as_dir=$as_dir/ ;; 14713 esac 14714 for ac_exec_ext in '' $ac_executable_extensions; do 14715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14716 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14718 break 2 14719 fi 14720done 14721 done 14722IFS=$as_save_IFS 14723 14724fi 14725fi 14726OTOOL64=$ac_cv_prog_OTOOL64 14727if test -n "$OTOOL64"; then 14728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14729printf "%s\n" "$OTOOL64" >&6; } 14730else 14731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14732printf "%s\n" "no" >&6; } 14733fi 14734 14735 14736fi 14737if test -z "$ac_cv_prog_OTOOL64"; then 14738 ac_ct_OTOOL64=$OTOOL64 14739 # Extract the first word of "otool64", so it can be a program name with args. 14740set dummy otool64; ac_word=$2 14741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14742printf %s "checking for $ac_word... " >&6; } 14743if test ${ac_cv_prog_ac_ct_OTOOL64+y} 14744then : 14745 printf %s "(cached) " >&6 14746else $as_nop 14747 if test -n "$ac_ct_OTOOL64"; then 14748 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14749else 14750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14751for as_dir in $PATH 14752do 14753 IFS=$as_save_IFS 14754 case $as_dir in #((( 14755 '') as_dir=./ ;; 14756 */) ;; 14757 *) as_dir=$as_dir/ ;; 14758 esac 14759 for ac_exec_ext in '' $ac_executable_extensions; do 14760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14761 ac_cv_prog_ac_ct_OTOOL64="otool64" 14762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14763 break 2 14764 fi 14765done 14766 done 14767IFS=$as_save_IFS 14768 14769fi 14770fi 14771ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14772if test -n "$ac_ct_OTOOL64"; then 14773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14774printf "%s\n" "$ac_ct_OTOOL64" >&6; } 14775else 14776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14777printf "%s\n" "no" >&6; } 14778fi 14779 14780 if test "x$ac_ct_OTOOL64" = x; then 14781 OTOOL64=":" 14782 else 14783 case $cross_compiling:$ac_tool_warned in 14784yes:) 14785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14786printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14787ac_tool_warned=yes ;; 14788esac 14789 OTOOL64=$ac_ct_OTOOL64 14790 fi 14791else 14792 OTOOL64="$ac_cv_prog_OTOOL64" 14793fi 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14822printf %s "checking for -single_module linker flag... " >&6; } 14823if test ${lt_cv_apple_cc_single_mod+y} 14824then : 14825 printf %s "(cached) " >&6 14826else $as_nop 14827 lt_cv_apple_cc_single_mod=no 14828 if test -z "$LT_MULTI_MODULE"; then 14829 # By default we will add the -single_module flag. You can override 14830 # by either setting the environment variable LT_MULTI_MODULE 14831 # non-empty at configure time, or by adding -multi_module to the 14832 # link flags. 14833 rm -rf libconftest.dylib* 14834 echo "int foo(void){return 1;}" > conftest.c 14835 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14836-dynamiclib -Wl,-single_module conftest.c" >&5 14837 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14838 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14839 _lt_result=$? 14840 # If there is a non-empty error log, and "single_module" 14841 # appears in it, assume the flag caused a linker warning 14842 if test -s conftest.err && $GREP single_module conftest.err; then 14843 cat conftest.err >&5 14844 # Otherwise, if the output was created with a 0 exit code from 14845 # the compiler, it worked. 14846 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14847 lt_cv_apple_cc_single_mod=yes 14848 else 14849 cat conftest.err >&5 14850 fi 14851 rm -rf libconftest.dylib* 14852 rm -f conftest.* 14853 fi 14854fi 14855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14856printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 14857 14858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14859printf %s "checking for -exported_symbols_list linker flag... " >&6; } 14860if test ${lt_cv_ld_exported_symbols_list+y} 14861then : 14862 printf %s "(cached) " >&6 14863else $as_nop 14864 lt_cv_ld_exported_symbols_list=no 14865 save_LDFLAGS=$LDFLAGS 14866 echo "_main" > conftest.sym 14867 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14869/* end confdefs.h. */ 14870 14871int 14872main (void) 14873{ 14874 14875 ; 14876 return 0; 14877} 14878_ACEOF 14879if ac_fn_c_try_link "$LINENO" 14880then : 14881 lt_cv_ld_exported_symbols_list=yes 14882else $as_nop 14883 lt_cv_ld_exported_symbols_list=no 14884fi 14885rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14886 conftest$ac_exeext conftest.$ac_ext 14887 LDFLAGS=$save_LDFLAGS 14888 14889fi 14890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14891printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 14892 14893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14894printf %s "checking for -force_load linker flag... " >&6; } 14895if test ${lt_cv_ld_force_load+y} 14896then : 14897 printf %s "(cached) " >&6 14898else $as_nop 14899 lt_cv_ld_force_load=no 14900 cat > conftest.c << _LT_EOF 14901int forced_loaded() { return 2;} 14902_LT_EOF 14903 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14904 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14905 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 14906 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 14907 echo "$RANLIB libconftest.a" >&5 14908 $RANLIB libconftest.a 2>&5 14909 cat > conftest.c << _LT_EOF 14910int main() { return 0;} 14911_LT_EOF 14912 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14913 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14914 _lt_result=$? 14915 if test -s conftest.err && $GREP force_load conftest.err; then 14916 cat conftest.err >&5 14917 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14918 lt_cv_ld_force_load=yes 14919 else 14920 cat conftest.err >&5 14921 fi 14922 rm -f conftest.err libconftest.a conftest conftest.c 14923 rm -rf conftest.dSYM 14924 14925fi 14926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14927printf "%s\n" "$lt_cv_ld_force_load" >&6; } 14928 case $host_os in 14929 rhapsody* | darwin1.[012]) 14930 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14931 darwin1.*) 14932 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14933 darwin*) 14934 case $MACOSX_DEPLOYMENT_TARGET,$host in 14935 10.[012],*|,*powerpc*-darwin[5-8]*) 14936 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14937 *) 14938 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14939 esac 14940 ;; 14941 esac 14942 if test yes = "$lt_cv_apple_cc_single_mod"; then 14943 _lt_dar_single_mod='$single_module' 14944 fi 14945 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14946 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14947 else 14948 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14949 fi 14950 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14951 _lt_dsymutil='~$DSYMUTIL $lib || :' 14952 else 14953 _lt_dsymutil= 14954 fi 14955 ;; 14956 esac 14957 14958# func_munge_path_list VARIABLE PATH 14959# ----------------------------------- 14960# VARIABLE is name of variable containing _space_ separated list of 14961# directories to be munged by the contents of PATH, which is string 14962# having a format: 14963# "DIR[:DIR]:" 14964# string "DIR[ DIR]" will be prepended to VARIABLE 14965# ":DIR[:DIR]" 14966# string "DIR[ DIR]" will be appended to VARIABLE 14967# "DIRP[:DIRP]::[DIRA:]DIRA" 14968# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14969# "DIRA[ DIRA]" will be appended to VARIABLE 14970# "DIR[:DIR]" 14971# VARIABLE will be replaced by "DIR[ DIR]" 14972func_munge_path_list () 14973{ 14974 case x$2 in 14975 x) 14976 ;; 14977 *:) 14978 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14979 ;; 14980 x:*) 14981 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14982 ;; 14983 *::*) 14984 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14985 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14986 ;; 14987 *) 14988 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14989 ;; 14990 esac 14991} 14992 14993ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14994" 14995if test "x$ac_cv_header_dlfcn_h" = xyes 14996then : 14997 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 14998 14999fi 15000 15001 15002 15003 15004 15005# Set options 15006 15007 15008 15009 enable_dlopen=no 15010 15011 15012 enable_win32_dll=no 15013 15014 15015 # Check whether --enable-shared was given. 15016if test ${enable_shared+y} 15017then : 15018 enableval=$enable_shared; p=${PACKAGE-default} 15019 case $enableval in 15020 yes) enable_shared=yes ;; 15021 no) enable_shared=no ;; 15022 *) 15023 enable_shared=no 15024 # Look at the argument we got. We use all the common list separators. 15025 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15026 for pkg in $enableval; do 15027 IFS=$lt_save_ifs 15028 if test "X$pkg" = "X$p"; then 15029 enable_shared=yes 15030 fi 15031 done 15032 IFS=$lt_save_ifs 15033 ;; 15034 esac 15035else $as_nop 15036 enable_shared=yes 15037fi 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049# Check whether --with-pic was given. 15050if test ${with_pic+y} 15051then : 15052 withval=$with_pic; lt_p=${PACKAGE-default} 15053 case $withval in 15054 yes|no) pic_mode=$withval ;; 15055 *) 15056 pic_mode=default 15057 # Look at the argument we got. We use all the common list separators. 15058 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15059 for lt_pkg in $withval; do 15060 IFS=$lt_save_ifs 15061 if test "X$lt_pkg" = "X$lt_p"; then 15062 pic_mode=yes 15063 fi 15064 done 15065 IFS=$lt_save_ifs 15066 ;; 15067 esac 15068else $as_nop 15069 pic_mode=default 15070fi 15071 15072 15073 15074 15075 15076 15077 15078 15079 # Check whether --enable-fast-install was given. 15080if test ${enable_fast_install+y} 15081then : 15082 enableval=$enable_fast_install; p=${PACKAGE-default} 15083 case $enableval in 15084 yes) enable_fast_install=yes ;; 15085 no) enable_fast_install=no ;; 15086 *) 15087 enable_fast_install=no 15088 # Look at the argument we got. We use all the common list separators. 15089 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15090 for pkg in $enableval; do 15091 IFS=$lt_save_ifs 15092 if test "X$pkg" = "X$p"; then 15093 enable_fast_install=yes 15094 fi 15095 done 15096 IFS=$lt_save_ifs 15097 ;; 15098 esac 15099else $as_nop 15100 enable_fast_install=yes 15101fi 15102 15103 15104 15105 15106 15107 15108 15109 15110 shared_archive_member_spec= 15111case $host,$enable_shared in 15112power*-*-aix[5-9]*,yes) 15113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15114printf %s "checking which variant of shared library versioning to provide... " >&6; } 15115 15116# Check whether --with-aix-soname was given. 15117if test ${with_aix_soname+y} 15118then : 15119 withval=$with_aix_soname; case $withval in 15120 aix|svr4|both) 15121 ;; 15122 *) 15123 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15124 ;; 15125 esac 15126 lt_cv_with_aix_soname=$with_aix_soname 15127else $as_nop 15128 if test ${lt_cv_with_aix_soname+y} 15129then : 15130 printf %s "(cached) " >&6 15131else $as_nop 15132 lt_cv_with_aix_soname=aix 15133fi 15134 15135 with_aix_soname=$lt_cv_with_aix_soname 15136fi 15137 15138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15139printf "%s\n" "$with_aix_soname" >&6; } 15140 if test aix != "$with_aix_soname"; then 15141 # For the AIX way of multilib, we name the shared archive member 15142 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15143 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15144 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15145 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15146 if test 64 = "${OBJECT_MODE-32}"; then 15147 shared_archive_member_spec=shr_64 15148 else 15149 shared_archive_member_spec=shr 15150 fi 15151 fi 15152 ;; 15153*) 15154 with_aix_soname=aix 15155 ;; 15156esac 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167# This can be used to rebuild libtool when needed 15168LIBTOOL_DEPS=$ltmain 15169 15170# Always use our own libtool. 15171LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202test -z "$LN_S" && LN_S="ln -s" 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217if test -n "${ZSH_VERSION+set}"; then 15218 setopt NO_GLOB_SUBST 15219fi 15220 15221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15222printf %s "checking for objdir... " >&6; } 15223if test ${lt_cv_objdir+y} 15224then : 15225 printf %s "(cached) " >&6 15226else $as_nop 15227 rm -f .libs 2>/dev/null 15228mkdir .libs 2>/dev/null 15229if test -d .libs; then 15230 lt_cv_objdir=.libs 15231else 15232 # MS-DOS does not allow filenames that begin with a dot. 15233 lt_cv_objdir=_libs 15234fi 15235rmdir .libs 2>/dev/null 15236fi 15237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15238printf "%s\n" "$lt_cv_objdir" >&6; } 15239objdir=$lt_cv_objdir 15240 15241 15242 15243 15244 15245printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15246 15247 15248 15249 15250case $host_os in 15251aix3*) 15252 # AIX sometimes has problems with the GCC collect2 program. For some 15253 # reason, if we set the COLLECT_NAMES environment variable, the problems 15254 # vanish in a puff of smoke. 15255 if test set != "${COLLECT_NAMES+set}"; then 15256 COLLECT_NAMES= 15257 export COLLECT_NAMES 15258 fi 15259 ;; 15260esac 15261 15262# Global variables: 15263ofile=libtool 15264can_build_shared=yes 15265 15266# All known linkers require a '.a' archive for static linking (except MSVC and 15267# ICC, which need '.lib'). 15268libext=a 15269 15270with_gnu_ld=$lt_cv_prog_gnu_ld 15271 15272old_CC=$CC 15273old_CFLAGS=$CFLAGS 15274 15275# Set sane defaults for various variables 15276test -z "$CC" && CC=cc 15277test -z "$LTCC" && LTCC=$CC 15278test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15279test -z "$LD" && LD=ld 15280test -z "$ac_objext" && ac_objext=o 15281 15282func_cc_basename $compiler 15283cc_basename=$func_cc_basename_result 15284 15285 15286# Only perform the check for file, if the check method requires it 15287test -z "$MAGIC_CMD" && MAGIC_CMD=file 15288case $deplibs_check_method in 15289file_magic*) 15290 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15292printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15293if test ${lt_cv_path_MAGIC_CMD+y} 15294then : 15295 printf %s "(cached) " >&6 15296else $as_nop 15297 case $MAGIC_CMD in 15298[\\/*] | ?:[\\/]*) 15299 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15300 ;; 15301*) 15302 lt_save_MAGIC_CMD=$MAGIC_CMD 15303 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15304 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15305 for ac_dir in $ac_dummy; do 15306 IFS=$lt_save_ifs 15307 test -z "$ac_dir" && ac_dir=. 15308 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15309 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15310 if test -n "$file_magic_test_file"; then 15311 case $deplibs_check_method in 15312 "file_magic "*) 15313 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15314 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15315 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15316 $EGREP "$file_magic_regex" > /dev/null; then 15317 : 15318 else 15319 cat <<_LT_EOF 1>&2 15320 15321*** Warning: the command libtool uses to detect shared libraries, 15322*** $file_magic_cmd, produces output that libtool cannot recognize. 15323*** The result is that libtool may fail to recognize shared libraries 15324*** as such. This will affect the creation of libtool libraries that 15325*** depend on shared libraries, but programs linked with such libtool 15326*** libraries will work regardless of this problem. Nevertheless, you 15327*** may want to report the problem to your system manager and/or to 15328*** bug-libtool@gnu.org 15329 15330_LT_EOF 15331 fi ;; 15332 esac 15333 fi 15334 break 15335 fi 15336 done 15337 IFS=$lt_save_ifs 15338 MAGIC_CMD=$lt_save_MAGIC_CMD 15339 ;; 15340esac 15341fi 15342 15343MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15344if test -n "$MAGIC_CMD"; then 15345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15346printf "%s\n" "$MAGIC_CMD" >&6; } 15347else 15348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15349printf "%s\n" "no" >&6; } 15350fi 15351 15352 15353 15354 15355 15356if test -z "$lt_cv_path_MAGIC_CMD"; then 15357 if test -n "$ac_tool_prefix"; then 15358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15359printf %s "checking for file... " >&6; } 15360if test ${lt_cv_path_MAGIC_CMD+y} 15361then : 15362 printf %s "(cached) " >&6 15363else $as_nop 15364 case $MAGIC_CMD in 15365[\\/*] | ?:[\\/]*) 15366 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15367 ;; 15368*) 15369 lt_save_MAGIC_CMD=$MAGIC_CMD 15370 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15371 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15372 for ac_dir in $ac_dummy; do 15373 IFS=$lt_save_ifs 15374 test -z "$ac_dir" && ac_dir=. 15375 if test -f "$ac_dir/file"; then 15376 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15377 if test -n "$file_magic_test_file"; then 15378 case $deplibs_check_method in 15379 "file_magic "*) 15380 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15381 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15382 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15383 $EGREP "$file_magic_regex" > /dev/null; then 15384 : 15385 else 15386 cat <<_LT_EOF 1>&2 15387 15388*** Warning: the command libtool uses to detect shared libraries, 15389*** $file_magic_cmd, produces output that libtool cannot recognize. 15390*** The result is that libtool may fail to recognize shared libraries 15391*** as such. This will affect the creation of libtool libraries that 15392*** depend on shared libraries, but programs linked with such libtool 15393*** libraries will work regardless of this problem. Nevertheless, you 15394*** may want to report the problem to your system manager and/or to 15395*** bug-libtool@gnu.org 15396 15397_LT_EOF 15398 fi ;; 15399 esac 15400 fi 15401 break 15402 fi 15403 done 15404 IFS=$lt_save_ifs 15405 MAGIC_CMD=$lt_save_MAGIC_CMD 15406 ;; 15407esac 15408fi 15409 15410MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15411if test -n "$MAGIC_CMD"; then 15412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15413printf "%s\n" "$MAGIC_CMD" >&6; } 15414else 15415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15416printf "%s\n" "no" >&6; } 15417fi 15418 15419 15420 else 15421 MAGIC_CMD=: 15422 fi 15423fi 15424 15425 fi 15426 ;; 15427esac 15428 15429# Use C for the default configuration in the libtool script 15430 15431lt_save_CC=$CC 15432ac_ext=c 15433ac_cpp='$CPP $CPPFLAGS' 15434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15436ac_compiler_gnu=$ac_cv_c_compiler_gnu 15437 15438 15439# Source file extension for C test sources. 15440ac_ext=c 15441 15442# Object file extension for compiled C test sources. 15443objext=o 15444objext=$objext 15445 15446# Code to be used in simple compile tests 15447lt_simple_compile_test_code="int some_variable = 0;" 15448 15449# Code to be used in simple link tests 15450lt_simple_link_test_code='int main(){return(0);}' 15451 15452 15453 15454 15455 15456 15457 15458# If no C compiler was specified, use CC. 15459LTCC=${LTCC-"$CC"} 15460 15461# If no C compiler flags were specified, use CFLAGS. 15462LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15463 15464# Allow CC to be a program name with arguments. 15465compiler=$CC 15466 15467# Save the default compiler, since it gets overwritten when the other 15468# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15469compiler_DEFAULT=$CC 15470 15471# save warnings/boilerplate of simple test code 15472ac_outfile=conftest.$ac_objext 15473echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15474eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15475_lt_compiler_boilerplate=`cat conftest.err` 15476$RM conftest* 15477 15478ac_outfile=conftest.$ac_objext 15479echo "$lt_simple_link_test_code" >conftest.$ac_ext 15480eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15481_lt_linker_boilerplate=`cat conftest.err` 15482$RM -r conftest* 15483 15484 15485if test -n "$compiler"; then 15486 15487lt_prog_compiler_no_builtin_flag= 15488 15489if test yes = "$GCC"; then 15490 case $cc_basename in 15491 nvcc*) 15492 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15493 *) 15494 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15495 esac 15496 15497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15498printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15499if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15500then : 15501 printf %s "(cached) " >&6 15502else $as_nop 15503 lt_cv_prog_compiler_rtti_exceptions=no 15504 ac_outfile=conftest.$ac_objext 15505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15506 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15507 # Insert the option either (1) after the last *FLAGS variable, or 15508 # (2) before a word containing "conftest.", or (3) at the end. 15509 # Note that $ac_compile itself does not contain backslashes and begins 15510 # with a dollar sign (not a hyphen), so the echo should work correctly. 15511 # The option is referenced via a variable to avoid confusing sed. 15512 lt_compile=`echo "$ac_compile" | $SED \ 15513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15515 -e 's:$: $lt_compiler_flag:'` 15516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15517 (eval "$lt_compile" 2>conftest.err) 15518 ac_status=$? 15519 cat conftest.err >&5 15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15521 if (exit $ac_status) && test -s "$ac_outfile"; then 15522 # The compiler can only warn and ignore the option if not recognized 15523 # So say no if there are warnings other than the usual output. 15524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15526 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15527 lt_cv_prog_compiler_rtti_exceptions=yes 15528 fi 15529 fi 15530 $RM conftest* 15531 15532fi 15533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15534printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15535 15536if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15537 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15538else 15539 : 15540fi 15541 15542fi 15543 15544 15545 15546 15547 15548 15549 lt_prog_compiler_wl= 15550lt_prog_compiler_pic= 15551lt_prog_compiler_static= 15552 15553 15554 if test yes = "$GCC"; then 15555 lt_prog_compiler_wl='-Wl,' 15556 lt_prog_compiler_static='-static' 15557 15558 case $host_os in 15559 aix*) 15560 # All AIX code is PIC. 15561 if test ia64 = "$host_cpu"; then 15562 # AIX 5 now supports IA64 processor 15563 lt_prog_compiler_static='-Bstatic' 15564 fi 15565 lt_prog_compiler_pic='-fPIC' 15566 ;; 15567 15568 amigaos*) 15569 case $host_cpu in 15570 powerpc) 15571 # see comment about AmigaOS4 .so support 15572 lt_prog_compiler_pic='-fPIC' 15573 ;; 15574 m68k) 15575 # FIXME: we need at least 68020 code to build shared libraries, but 15576 # adding the '-m68020' flag to GCC prevents building anything better, 15577 # like '-m68040'. 15578 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15579 ;; 15580 esac 15581 ;; 15582 15583 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15584 # PIC is the default for these OSes. 15585 ;; 15586 15587 mingw* | cygwin* | pw32* | os2* | cegcc*) 15588 # This hack is so that the source file can tell whether it is being 15589 # built for inclusion in a dll (and should export symbols for example). 15590 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15591 # (--disable-auto-import) libraries 15592 lt_prog_compiler_pic='-DDLL_EXPORT' 15593 case $host_os in 15594 os2*) 15595 lt_prog_compiler_static='$wl-static' 15596 ;; 15597 esac 15598 ;; 15599 15600 darwin* | rhapsody*) 15601 # PIC is the default on this platform 15602 # Common symbols not allowed in MH_DYLIB files 15603 lt_prog_compiler_pic='-fno-common' 15604 ;; 15605 15606 haiku*) 15607 # PIC is the default for Haiku. 15608 # The "-static" flag exists, but is broken. 15609 lt_prog_compiler_static= 15610 ;; 15611 15612 hpux*) 15613 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15614 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15615 # sets the default TLS model and affects inlining. 15616 case $host_cpu in 15617 hppa*64*) 15618 # +Z the default 15619 ;; 15620 *) 15621 lt_prog_compiler_pic='-fPIC' 15622 ;; 15623 esac 15624 ;; 15625 15626 interix[3-9]*) 15627 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15628 # Instead, we relocate shared libraries at runtime. 15629 ;; 15630 15631 msdosdjgpp*) 15632 # Just because we use GCC doesn't mean we suddenly get shared libraries 15633 # on systems that don't support them. 15634 lt_prog_compiler_can_build_shared=no 15635 enable_shared=no 15636 ;; 15637 15638 *nto* | *qnx*) 15639 # QNX uses GNU C++, but need to define -shared option too, otherwise 15640 # it will coredump. 15641 lt_prog_compiler_pic='-fPIC -shared' 15642 ;; 15643 15644 sysv4*MP*) 15645 if test -d /usr/nec; then 15646 lt_prog_compiler_pic=-Kconform_pic 15647 fi 15648 ;; 15649 15650 *) 15651 lt_prog_compiler_pic='-fPIC' 15652 ;; 15653 esac 15654 15655 case $cc_basename in 15656 nvcc*) # Cuda Compiler Driver 2.2 15657 lt_prog_compiler_wl='-Xlinker ' 15658 if test -n "$lt_prog_compiler_pic"; then 15659 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15660 fi 15661 ;; 15662 esac 15663 else 15664 # PORTME Check for flag to pass linker flags through the system compiler. 15665 case $host_os in 15666 aix*) 15667 lt_prog_compiler_wl='-Wl,' 15668 if test ia64 = "$host_cpu"; then 15669 # AIX 5 now supports IA64 processor 15670 lt_prog_compiler_static='-Bstatic' 15671 else 15672 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15673 fi 15674 ;; 15675 15676 darwin* | rhapsody*) 15677 # PIC is the default on this platform 15678 # Common symbols not allowed in MH_DYLIB files 15679 lt_prog_compiler_pic='-fno-common' 15680 case $cc_basename in 15681 nagfor*) 15682 # NAG Fortran compiler 15683 lt_prog_compiler_wl='-Wl,-Wl,,' 15684 lt_prog_compiler_pic='-PIC' 15685 lt_prog_compiler_static='-Bstatic' 15686 ;; 15687 esac 15688 ;; 15689 15690 mingw* | cygwin* | pw32* | os2* | cegcc*) 15691 # This hack is so that the source file can tell whether it is being 15692 # built for inclusion in a dll (and should export symbols for example). 15693 lt_prog_compiler_pic='-DDLL_EXPORT' 15694 case $host_os in 15695 os2*) 15696 lt_prog_compiler_static='$wl-static' 15697 ;; 15698 esac 15699 ;; 15700 15701 hpux9* | hpux10* | hpux11*) 15702 lt_prog_compiler_wl='-Wl,' 15703 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15704 # not for PA HP-UX. 15705 case $host_cpu in 15706 hppa*64*|ia64*) 15707 # +Z the default 15708 ;; 15709 *) 15710 lt_prog_compiler_pic='+Z' 15711 ;; 15712 esac 15713 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15714 lt_prog_compiler_static='$wl-a ${wl}archive' 15715 ;; 15716 15717 irix5* | irix6* | nonstopux*) 15718 lt_prog_compiler_wl='-Wl,' 15719 # PIC (with -KPIC) is the default. 15720 lt_prog_compiler_static='-non_shared' 15721 ;; 15722 15723 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15724 case $cc_basename in 15725 # old Intel for x86_64, which still supported -KPIC. 15726 ecc*) 15727 lt_prog_compiler_wl='-Wl,' 15728 lt_prog_compiler_pic='-KPIC' 15729 lt_prog_compiler_static='-static' 15730 ;; 15731 # icc used to be incompatible with GCC. 15732 # ICC 10 doesn't accept -KPIC any more. 15733 icc* | ifort*) 15734 lt_prog_compiler_wl='-Wl,' 15735 lt_prog_compiler_pic='-fPIC' 15736 lt_prog_compiler_static='-static' 15737 ;; 15738 # Lahey Fortran 8.1. 15739 lf95*) 15740 lt_prog_compiler_wl='-Wl,' 15741 lt_prog_compiler_pic='--shared' 15742 lt_prog_compiler_static='--static' 15743 ;; 15744 nagfor*) 15745 # NAG Fortran compiler 15746 lt_prog_compiler_wl='-Wl,-Wl,,' 15747 lt_prog_compiler_pic='-PIC' 15748 lt_prog_compiler_static='-Bstatic' 15749 ;; 15750 tcc*) 15751 # Fabrice Bellard et al's Tiny C Compiler 15752 lt_prog_compiler_wl='-Wl,' 15753 lt_prog_compiler_pic='-fPIC' 15754 lt_prog_compiler_static='-static' 15755 ;; 15756 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15757 # Portland Group compilers (*not* the Pentium gcc compiler, 15758 # which looks to be a dead project) 15759 lt_prog_compiler_wl='-Wl,' 15760 lt_prog_compiler_pic='-fpic' 15761 lt_prog_compiler_static='-Bstatic' 15762 ;; 15763 ccc*) 15764 lt_prog_compiler_wl='-Wl,' 15765 # All Alpha code is PIC. 15766 lt_prog_compiler_static='-non_shared' 15767 ;; 15768 xl* | bgxl* | bgf* | mpixl*) 15769 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15770 lt_prog_compiler_wl='-Wl,' 15771 lt_prog_compiler_pic='-qpic' 15772 lt_prog_compiler_static='-qstaticlink' 15773 ;; 15774 *) 15775 case `$CC -V 2>&1 | $SED 5q` in 15776 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15777 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15778 lt_prog_compiler_pic='-KPIC' 15779 lt_prog_compiler_static='-Bstatic' 15780 lt_prog_compiler_wl='' 15781 ;; 15782 *Sun\ F* | *Sun*Fortran*) 15783 lt_prog_compiler_pic='-KPIC' 15784 lt_prog_compiler_static='-Bstatic' 15785 lt_prog_compiler_wl='-Qoption ld ' 15786 ;; 15787 *Sun\ C*) 15788 # Sun C 5.9 15789 lt_prog_compiler_pic='-KPIC' 15790 lt_prog_compiler_static='-Bstatic' 15791 lt_prog_compiler_wl='-Wl,' 15792 ;; 15793 *Intel*\ [CF]*Compiler*) 15794 lt_prog_compiler_wl='-Wl,' 15795 lt_prog_compiler_pic='-fPIC' 15796 lt_prog_compiler_static='-static' 15797 ;; 15798 *Portland\ Group*) 15799 lt_prog_compiler_wl='-Wl,' 15800 lt_prog_compiler_pic='-fpic' 15801 lt_prog_compiler_static='-Bstatic' 15802 ;; 15803 esac 15804 ;; 15805 esac 15806 ;; 15807 15808 newsos6) 15809 lt_prog_compiler_pic='-KPIC' 15810 lt_prog_compiler_static='-Bstatic' 15811 ;; 15812 15813 *nto* | *qnx*) 15814 # QNX uses GNU C++, but need to define -shared option too, otherwise 15815 # it will coredump. 15816 lt_prog_compiler_pic='-fPIC -shared' 15817 ;; 15818 15819 osf3* | osf4* | osf5*) 15820 lt_prog_compiler_wl='-Wl,' 15821 # All OSF/1 code is PIC. 15822 lt_prog_compiler_static='-non_shared' 15823 ;; 15824 15825 rdos*) 15826 lt_prog_compiler_static='-non_shared' 15827 ;; 15828 15829 solaris*) 15830 lt_prog_compiler_pic='-KPIC' 15831 lt_prog_compiler_static='-Bstatic' 15832 case $cc_basename in 15833 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15834 lt_prog_compiler_wl='-Qoption ld ';; 15835 *) 15836 lt_prog_compiler_wl='-Wl,';; 15837 esac 15838 ;; 15839 15840 sunos4*) 15841 lt_prog_compiler_wl='-Qoption ld ' 15842 lt_prog_compiler_pic='-PIC' 15843 lt_prog_compiler_static='-Bstatic' 15844 ;; 15845 15846 sysv4 | sysv4.2uw2* | sysv4.3*) 15847 lt_prog_compiler_wl='-Wl,' 15848 lt_prog_compiler_pic='-KPIC' 15849 lt_prog_compiler_static='-Bstatic' 15850 ;; 15851 15852 sysv4*MP*) 15853 if test -d /usr/nec; then 15854 lt_prog_compiler_pic='-Kconform_pic' 15855 lt_prog_compiler_static='-Bstatic' 15856 fi 15857 ;; 15858 15859 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15860 lt_prog_compiler_wl='-Wl,' 15861 lt_prog_compiler_pic='-KPIC' 15862 lt_prog_compiler_static='-Bstatic' 15863 ;; 15864 15865 unicos*) 15866 lt_prog_compiler_wl='-Wl,' 15867 lt_prog_compiler_can_build_shared=no 15868 ;; 15869 15870 uts4*) 15871 lt_prog_compiler_pic='-pic' 15872 lt_prog_compiler_static='-Bstatic' 15873 ;; 15874 15875 *) 15876 lt_prog_compiler_can_build_shared=no 15877 ;; 15878 esac 15879 fi 15880 15881case $host_os in 15882 # For platforms that do not support PIC, -DPIC is meaningless: 15883 *djgpp*) 15884 lt_prog_compiler_pic= 15885 ;; 15886 *) 15887 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15888 ;; 15889esac 15890 15891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15892printf %s "checking for $compiler option to produce PIC... " >&6; } 15893if test ${lt_cv_prog_compiler_pic+y} 15894then : 15895 printf %s "(cached) " >&6 15896else $as_nop 15897 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15898fi 15899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15900printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 15901lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15902 15903# 15904# Check to make sure the PIC flag actually works. 15905# 15906if test -n "$lt_prog_compiler_pic"; then 15907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15908printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15909if test ${lt_cv_prog_compiler_pic_works+y} 15910then : 15911 printf %s "(cached) " >&6 15912else $as_nop 15913 lt_cv_prog_compiler_pic_works=no 15914 ac_outfile=conftest.$ac_objext 15915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15916 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15917 # Insert the option either (1) after the last *FLAGS variable, or 15918 # (2) before a word containing "conftest.", or (3) at the end. 15919 # Note that $ac_compile itself does not contain backslashes and begins 15920 # with a dollar sign (not a hyphen), so the echo should work correctly. 15921 # The option is referenced via a variable to avoid confusing sed. 15922 lt_compile=`echo "$ac_compile" | $SED \ 15923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15925 -e 's:$: $lt_compiler_flag:'` 15926 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15927 (eval "$lt_compile" 2>conftest.err) 15928 ac_status=$? 15929 cat conftest.err >&5 15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15931 if (exit $ac_status) && test -s "$ac_outfile"; then 15932 # The compiler can only warn and ignore the option if not recognized 15933 # So say no if there are warnings other than the usual output. 15934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15935 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15936 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15937 lt_cv_prog_compiler_pic_works=yes 15938 fi 15939 fi 15940 $RM conftest* 15941 15942fi 15943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15944printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 15945 15946if test yes = "$lt_cv_prog_compiler_pic_works"; then 15947 case $lt_prog_compiler_pic in 15948 "" | " "*) ;; 15949 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15950 esac 15951else 15952 lt_prog_compiler_pic= 15953 lt_prog_compiler_can_build_shared=no 15954fi 15955 15956fi 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968# 15969# Check to make sure the static flag actually works. 15970# 15971wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15973printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15974if test ${lt_cv_prog_compiler_static_works+y} 15975then : 15976 printf %s "(cached) " >&6 15977else $as_nop 15978 lt_cv_prog_compiler_static_works=no 15979 save_LDFLAGS=$LDFLAGS 15980 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15981 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15982 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15983 # The linker can only warn and ignore the option if not recognized 15984 # So say no if there are warnings 15985 if test -s conftest.err; then 15986 # Append any errors to the config.log. 15987 cat conftest.err 1>&5 15988 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15990 if diff conftest.exp conftest.er2 >/dev/null; then 15991 lt_cv_prog_compiler_static_works=yes 15992 fi 15993 else 15994 lt_cv_prog_compiler_static_works=yes 15995 fi 15996 fi 15997 $RM -r conftest* 15998 LDFLAGS=$save_LDFLAGS 15999 16000fi 16001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16002printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 16003 16004if test yes = "$lt_cv_prog_compiler_static_works"; then 16005 : 16006else 16007 lt_prog_compiler_static= 16008fi 16009 16010 16011 16012 16013 16014 16015 16016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16017printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16018if test ${lt_cv_prog_compiler_c_o+y} 16019then : 16020 printf %s "(cached) " >&6 16021else $as_nop 16022 lt_cv_prog_compiler_c_o=no 16023 $RM -r conftest 2>/dev/null 16024 mkdir conftest 16025 cd conftest 16026 mkdir out 16027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16028 16029 lt_compiler_flag="-o out/conftest2.$ac_objext" 16030 # Insert the option either (1) after the last *FLAGS variable, or 16031 # (2) before a word containing "conftest.", or (3) at the end. 16032 # Note that $ac_compile itself does not contain backslashes and begins 16033 # with a dollar sign (not a hyphen), so the echo should work correctly. 16034 lt_compile=`echo "$ac_compile" | $SED \ 16035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16037 -e 's:$: $lt_compiler_flag:'` 16038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16039 (eval "$lt_compile" 2>out/conftest.err) 16040 ac_status=$? 16041 cat out/conftest.err >&5 16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16043 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16044 then 16045 # The compiler can only warn and ignore the option if not recognized 16046 # So say no if there are warnings 16047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16048 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16049 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16050 lt_cv_prog_compiler_c_o=yes 16051 fi 16052 fi 16053 chmod u+w . 2>&5 16054 $RM conftest* 16055 # SGI C++ compiler will create directory out/ii_files/ for 16056 # template instantiation 16057 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16058 $RM out/* && rmdir out 16059 cd .. 16060 $RM -r conftest 16061 $RM conftest* 16062 16063fi 16064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16065printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16066 16067 16068 16069 16070 16071 16072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16073printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16074if test ${lt_cv_prog_compiler_c_o+y} 16075then : 16076 printf %s "(cached) " >&6 16077else $as_nop 16078 lt_cv_prog_compiler_c_o=no 16079 $RM -r conftest 2>/dev/null 16080 mkdir conftest 16081 cd conftest 16082 mkdir out 16083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16084 16085 lt_compiler_flag="-o out/conftest2.$ac_objext" 16086 # Insert the option either (1) after the last *FLAGS variable, or 16087 # (2) before a word containing "conftest.", or (3) at the end. 16088 # Note that $ac_compile itself does not contain backslashes and begins 16089 # with a dollar sign (not a hyphen), so the echo should work correctly. 16090 lt_compile=`echo "$ac_compile" | $SED \ 16091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16093 -e 's:$: $lt_compiler_flag:'` 16094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16095 (eval "$lt_compile" 2>out/conftest.err) 16096 ac_status=$? 16097 cat out/conftest.err >&5 16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16099 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16100 then 16101 # The compiler can only warn and ignore the option if not recognized 16102 # So say no if there are warnings 16103 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16104 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16105 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16106 lt_cv_prog_compiler_c_o=yes 16107 fi 16108 fi 16109 chmod u+w . 2>&5 16110 $RM conftest* 16111 # SGI C++ compiler will create directory out/ii_files/ for 16112 # template instantiation 16113 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16114 $RM out/* && rmdir out 16115 cd .. 16116 $RM -r conftest 16117 $RM conftest* 16118 16119fi 16120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16121printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16122 16123 16124 16125 16126hard_links=nottested 16127if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16128 # do not overwrite the value of need_locks provided by the user 16129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16130printf %s "checking if we can lock with hard links... " >&6; } 16131 hard_links=yes 16132 $RM conftest* 16133 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16134 touch conftest.a 16135 ln conftest.a conftest.b 2>&5 || hard_links=no 16136 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16138printf "%s\n" "$hard_links" >&6; } 16139 if test no = "$hard_links"; then 16140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16141printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16142 need_locks=warn 16143 fi 16144else 16145 need_locks=no 16146fi 16147 16148 16149 16150 16151 16152 16153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16154printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16155 16156 runpath_var= 16157 allow_undefined_flag= 16158 always_export_symbols=no 16159 archive_cmds= 16160 archive_expsym_cmds= 16161 compiler_needs_object=no 16162 enable_shared_with_static_runtimes=no 16163 export_dynamic_flag_spec= 16164 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16165 hardcode_automatic=no 16166 hardcode_direct=no 16167 hardcode_direct_absolute=no 16168 hardcode_libdir_flag_spec= 16169 hardcode_libdir_separator= 16170 hardcode_minus_L=no 16171 hardcode_shlibpath_var=unsupported 16172 inherit_rpath=no 16173 link_all_deplibs=unknown 16174 module_cmds= 16175 module_expsym_cmds= 16176 old_archive_from_new_cmds= 16177 old_archive_from_expsyms_cmds= 16178 thread_safe_flag_spec= 16179 whole_archive_flag_spec= 16180 # include_expsyms should be a list of space-separated symbols to be *always* 16181 # included in the symbol list 16182 include_expsyms= 16183 # exclude_expsyms can be an extended regexp of symbols to exclude 16184 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16185 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16186 # as well as any symbol that contains 'd'. 16187 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16188 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16189 # platforms (ab)use it in PIC code, but their linkers get confused if 16190 # the symbol is explicitly referenced. Since portable code cannot 16191 # rely on this symbol name, it's probably fine to never include it in 16192 # preloaded symbol tables. 16193 # Exclude shared library initialization/finalization symbols. 16194 extract_expsyms_cmds= 16195 16196 case $host_os in 16197 cygwin* | mingw* | pw32* | cegcc*) 16198 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16199 # When not using gcc, we currently assume that we are using 16200 # Microsoft Visual C++ or Intel C++ Compiler. 16201 if test yes != "$GCC"; then 16202 with_gnu_ld=no 16203 fi 16204 ;; 16205 interix*) 16206 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16207 with_gnu_ld=yes 16208 ;; 16209 openbsd* | bitrig*) 16210 with_gnu_ld=no 16211 ;; 16212 esac 16213 16214 ld_shlibs=yes 16215 16216 # On some targets, GNU ld is compatible enough with the native linker 16217 # that we're better off using the native interface for both. 16218 lt_use_gnu_ld_interface=no 16219 if test yes = "$with_gnu_ld"; then 16220 case $host_os in 16221 aix*) 16222 # The AIX port of GNU ld has always aspired to compatibility 16223 # with the native linker. However, as the warning in the GNU ld 16224 # block says, versions before 2.19.5* couldn't really create working 16225 # shared libraries, regardless of the interface used. 16226 case `$LD -v 2>&1` in 16227 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16228 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16229 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16230 *) 16231 lt_use_gnu_ld_interface=yes 16232 ;; 16233 esac 16234 ;; 16235 *) 16236 lt_use_gnu_ld_interface=yes 16237 ;; 16238 esac 16239 fi 16240 16241 if test yes = "$lt_use_gnu_ld_interface"; then 16242 # If archive_cmds runs LD, not CC, wlarc should be empty 16243 wlarc='$wl' 16244 16245 # Set some defaults for GNU ld with shared library support. These 16246 # are reset later if shared libraries are not supported. Putting them 16247 # here allows them to be overridden if necessary. 16248 runpath_var=LD_RUN_PATH 16249 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16250 export_dynamic_flag_spec='$wl--export-dynamic' 16251 # ancient GNU ld didn't support --whole-archive et. al. 16252 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16253 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16254 else 16255 whole_archive_flag_spec= 16256 fi 16257 supports_anon_versioning=no 16258 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16259 *GNU\ gold*) supports_anon_versioning=yes ;; 16260 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16261 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16262 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16263 *\ 2.11.*) ;; # other 2.11 versions 16264 *) supports_anon_versioning=yes ;; 16265 esac 16266 16267 # See if GNU ld supports shared libraries. 16268 case $host_os in 16269 aix[3-9]*) 16270 # On AIX/PPC, the GNU linker is very broken 16271 if test ia64 != "$host_cpu"; then 16272 ld_shlibs=no 16273 cat <<_LT_EOF 1>&2 16274 16275*** Warning: the GNU linker, at least up to release 2.19, is reported 16276*** to be unable to reliably create shared libraries on AIX. 16277*** Therefore, libtool is disabling shared libraries support. If you 16278*** really care for shared libraries, you may want to install binutils 16279*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16280*** You will then need to restart the configuration process. 16281 16282_LT_EOF 16283 fi 16284 ;; 16285 16286 amigaos*) 16287 case $host_cpu in 16288 powerpc) 16289 # see comment about AmigaOS4 .so support 16290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16291 archive_expsym_cmds='' 16292 ;; 16293 m68k) 16294 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)' 16295 hardcode_libdir_flag_spec='-L$libdir' 16296 hardcode_minus_L=yes 16297 ;; 16298 esac 16299 ;; 16300 16301 beos*) 16302 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16303 allow_undefined_flag=unsupported 16304 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16305 # support --undefined. This deserves some investigation. FIXME 16306 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16307 else 16308 ld_shlibs=no 16309 fi 16310 ;; 16311 16312 cygwin* | mingw* | pw32* | cegcc*) 16313 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16314 # as there is no search path for DLLs. 16315 hardcode_libdir_flag_spec='-L$libdir' 16316 export_dynamic_flag_spec='$wl--export-all-symbols' 16317 allow_undefined_flag=unsupported 16318 always_export_symbols=no 16319 enable_shared_with_static_runtimes=yes 16320 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' 16321 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16322 16323 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16325 # If the export-symbols file already is a .def file, use it as 16326 # is; otherwise, prepend EXPORTS... 16327 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16328 cp $export_symbols $output_objdir/$soname.def; 16329 else 16330 echo EXPORTS > $output_objdir/$soname.def; 16331 cat $export_symbols >> $output_objdir/$soname.def; 16332 fi~ 16333 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16334 else 16335 ld_shlibs=no 16336 fi 16337 ;; 16338 16339 haiku*) 16340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16341 link_all_deplibs=yes 16342 ;; 16343 16344 os2*) 16345 hardcode_libdir_flag_spec='-L$libdir' 16346 hardcode_minus_L=yes 16347 allow_undefined_flag=unsupported 16348 shrext_cmds=.dll 16349 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16350 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16351 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16352 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16353 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16354 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16355 emximp -o $lib $output_objdir/$libname.def' 16356 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16357 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16358 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16359 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16360 prefix_cmds="$SED"~ 16361 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16362 prefix_cmds="$prefix_cmds -e 1d"; 16363 fi~ 16364 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16365 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16366 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16367 emximp -o $lib $output_objdir/$libname.def' 16368 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16369 enable_shared_with_static_runtimes=yes 16370 file_list_spec='@' 16371 ;; 16372 16373 interix[3-9]*) 16374 hardcode_direct=no 16375 hardcode_shlibpath_var=no 16376 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16377 export_dynamic_flag_spec='$wl-E' 16378 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16379 # Instead, shared libraries are loaded at an image base (0x10000000 by 16380 # default) and relocated if they conflict, which is a slow very memory 16381 # consuming and fragmenting process. To avoid this, we pick a random, 16382 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16383 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16384 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16385 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' 16386 ;; 16387 16388 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16389 tmp_diet=no 16390 if test linux-dietlibc = "$host_os"; then 16391 case $cc_basename in 16392 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16393 esac 16394 fi 16395 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16396 && test no = "$tmp_diet" 16397 then 16398 tmp_addflag=' $pic_flag' 16399 tmp_sharedflag='-shared' 16400 case $cc_basename,$host_cpu in 16401 pgcc*) # Portland Group C compiler 16402 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' 16403 tmp_addflag=' $pic_flag' 16404 ;; 16405 pgf77* | pgf90* | pgf95* | pgfortran*) 16406 # Portland Group f77 and f90 compilers 16407 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' 16408 tmp_addflag=' $pic_flag -Mnomain' ;; 16409 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16410 tmp_addflag=' -i_dynamic' ;; 16411 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16412 tmp_addflag=' -i_dynamic -nofor_main' ;; 16413 ifc* | ifort*) # Intel Fortran compiler 16414 tmp_addflag=' -nofor_main' ;; 16415 lf95*) # Lahey Fortran 8.1 16416 whole_archive_flag_spec= 16417 tmp_sharedflag='--shared' ;; 16418 nagfor*) # NAGFOR 5.3 16419 tmp_sharedflag='-Wl,-shared' ;; 16420 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16421 tmp_sharedflag='-qmkshrobj' 16422 tmp_addflag= ;; 16423 nvcc*) # Cuda Compiler Driver 2.2 16424 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' 16425 compiler_needs_object=yes 16426 ;; 16427 esac 16428 case `$CC -V 2>&1 | $SED 5q` in 16429 *Sun\ C*) # Sun C 5.9 16430 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' 16431 compiler_needs_object=yes 16432 tmp_sharedflag='-G' ;; 16433 *Sun\ F*) # Sun Fortran 8.3 16434 tmp_sharedflag='-G' ;; 16435 esac 16436 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16437 16438 if test yes = "$supports_anon_versioning"; then 16439 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16440 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16441 echo "local: *; };" >> $output_objdir/$libname.ver~ 16442 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16443 fi 16444 16445 case $cc_basename in 16446 tcc*) 16447 export_dynamic_flag_spec='-rdynamic' 16448 ;; 16449 xlf* | bgf* | bgxlf* | mpixlf*) 16450 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16451 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16452 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16453 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16454 if test yes = "$supports_anon_versioning"; then 16455 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16456 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16457 echo "local: *; };" >> $output_objdir/$libname.ver~ 16458 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16459 fi 16460 ;; 16461 esac 16462 else 16463 ld_shlibs=no 16464 fi 16465 ;; 16466 16467 netbsd*) 16468 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16469 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16470 wlarc= 16471 else 16472 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16473 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16474 fi 16475 ;; 16476 16477 solaris*) 16478 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16479 ld_shlibs=no 16480 cat <<_LT_EOF 1>&2 16481 16482*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16483*** create shared libraries on Solaris systems. Therefore, libtool 16484*** is disabling shared libraries support. We urge you to upgrade GNU 16485*** binutils to release 2.9.1 or newer. Another option is to modify 16486*** your PATH or compiler configuration so that the native linker is 16487*** used, and then restart. 16488 16489_LT_EOF 16490 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16491 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16492 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16493 else 16494 ld_shlibs=no 16495 fi 16496 ;; 16497 16498 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16499 case `$LD -v 2>&1` in 16500 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16501 ld_shlibs=no 16502 cat <<_LT_EOF 1>&2 16503 16504*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16505*** reliably create shared libraries on SCO systems. Therefore, libtool 16506*** is disabling shared libraries support. We urge you to upgrade GNU 16507*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16508*** your PATH or compiler configuration so that the native linker is 16509*** used, and then restart. 16510 16511_LT_EOF 16512 ;; 16513 *) 16514 # For security reasons, it is highly recommended that you always 16515 # use absolute paths for naming shared libraries, and exclude the 16516 # DT_RUNPATH tag from executables and libraries. But doing so 16517 # requires that you compile everything twice, which is a pain. 16518 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16519 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16521 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16522 else 16523 ld_shlibs=no 16524 fi 16525 ;; 16526 esac 16527 ;; 16528 16529 sunos4*) 16530 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16531 wlarc= 16532 hardcode_direct=yes 16533 hardcode_shlibpath_var=no 16534 ;; 16535 16536 *) 16537 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16538 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16539 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16540 else 16541 ld_shlibs=no 16542 fi 16543 ;; 16544 esac 16545 16546 if test no = "$ld_shlibs"; then 16547 runpath_var= 16548 hardcode_libdir_flag_spec= 16549 export_dynamic_flag_spec= 16550 whole_archive_flag_spec= 16551 fi 16552 else 16553 # PORTME fill in a description of your system's linker (not GNU ld) 16554 case $host_os in 16555 aix3*) 16556 allow_undefined_flag=unsupported 16557 always_export_symbols=yes 16558 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' 16559 # Note: this linker hardcodes the directories in LIBPATH if there 16560 # are no directories specified by -L. 16561 hardcode_minus_L=yes 16562 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16563 # Neither direct hardcoding nor static linking is supported with a 16564 # broken collect2. 16565 hardcode_direct=unsupported 16566 fi 16567 ;; 16568 16569 aix[4-9]*) 16570 if test ia64 = "$host_cpu"; then 16571 # On IA64, the linker does run time linking by default, so we don't 16572 # have to do anything special. 16573 aix_use_runtimelinking=no 16574 exp_sym_flag='-Bexport' 16575 no_entry_flag= 16576 else 16577 # If we're using GNU nm, then we don't want the "-C" option. 16578 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16579 # Without the "-l" option, or with the "-B" option, AIX nm treats 16580 # weak defined symbols like other global defined symbols, whereas 16581 # GNU nm marks them as "W". 16582 # While the 'weak' keyword is ignored in the Export File, we need 16583 # it in the Import File for the 'aix-soname' feature, so we have 16584 # to replace the "-B" option with "-P" for AIX nm. 16585 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16586 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' 16587 else 16588 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' 16589 fi 16590 aix_use_runtimelinking=no 16591 16592 # Test if we are trying to use run time linking or normal 16593 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16594 # have runtime linking enabled, and use it for executables. 16595 # For shared libraries, we enable/disable runtime linking 16596 # depending on the kind of the shared library created - 16597 # when "with_aix_soname,aix_use_runtimelinking" is: 16598 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16599 # "aix,yes" lib.so shared, rtl:yes, for executables 16600 # lib.a static archive 16601 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16602 # lib.a(lib.so.V) shared, rtl:no, for executables 16603 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16604 # lib.a(lib.so.V) shared, rtl:no 16605 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16606 # lib.a static archive 16607 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16608 for ld_flag in $LDFLAGS; do 16609 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16610 aix_use_runtimelinking=yes 16611 break 16612 fi 16613 done 16614 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16615 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16616 # so we don't have lib.a shared libs to link our executables. 16617 # We have to force runtime linking in this case. 16618 aix_use_runtimelinking=yes 16619 LDFLAGS="$LDFLAGS -Wl,-brtl" 16620 fi 16621 ;; 16622 esac 16623 16624 exp_sym_flag='-bexport' 16625 no_entry_flag='-bnoentry' 16626 fi 16627 16628 # When large executables or shared objects are built, AIX ld can 16629 # have problems creating the table of contents. If linking a library 16630 # or program results in "error TOC overflow" add -mminimal-toc to 16631 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16632 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16633 16634 archive_cmds='' 16635 hardcode_direct=yes 16636 hardcode_direct_absolute=yes 16637 hardcode_libdir_separator=':' 16638 link_all_deplibs=yes 16639 file_list_spec='$wl-f,' 16640 case $with_aix_soname,$aix_use_runtimelinking in 16641 aix,*) ;; # traditional, no import file 16642 svr4,* | *,yes) # use import file 16643 # The Import File defines what to hardcode. 16644 hardcode_direct=no 16645 hardcode_direct_absolute=no 16646 ;; 16647 esac 16648 16649 if test yes = "$GCC"; then 16650 case $host_os in aix4.[012]|aix4.[012].*) 16651 # We only want to do this on AIX 4.2 and lower, the check 16652 # below for broken collect2 doesn't work under 4.3+ 16653 collect2name=`$CC -print-prog-name=collect2` 16654 if test -f "$collect2name" && 16655 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16656 then 16657 # We have reworked collect2 16658 : 16659 else 16660 # We have old collect2 16661 hardcode_direct=unsupported 16662 # It fails to find uninstalled libraries when the uninstalled 16663 # path is not listed in the libpath. Setting hardcode_minus_L 16664 # to unsupported forces relinking 16665 hardcode_minus_L=yes 16666 hardcode_libdir_flag_spec='-L$libdir' 16667 hardcode_libdir_separator= 16668 fi 16669 ;; 16670 esac 16671 shared_flag='-shared' 16672 if test yes = "$aix_use_runtimelinking"; then 16673 shared_flag="$shared_flag "'$wl-G' 16674 fi 16675 # Need to ensure runtime linking is disabled for the traditional 16676 # shared library, or the linker may eventually find shared libraries 16677 # /with/ Import File - we do not want to mix them. 16678 shared_flag_aix='-shared' 16679 shared_flag_svr4='-shared $wl-G' 16680 else 16681 # not using gcc 16682 if test ia64 = "$host_cpu"; then 16683 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16684 # chokes on -Wl,-G. The following line is correct: 16685 shared_flag='-G' 16686 else 16687 if test yes = "$aix_use_runtimelinking"; then 16688 shared_flag='$wl-G' 16689 else 16690 shared_flag='$wl-bM:SRE' 16691 fi 16692 shared_flag_aix='$wl-bM:SRE' 16693 shared_flag_svr4='$wl-G' 16694 fi 16695 fi 16696 16697 export_dynamic_flag_spec='$wl-bexpall' 16698 # It seems that -bexpall does not export symbols beginning with 16699 # underscore (_), so it is better to generate a list of symbols to export. 16700 always_export_symbols=yes 16701 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16702 # Warning - without using the other runtime loading flags (-brtl), 16703 # -berok will link without error, but may produce a broken library. 16704 allow_undefined_flag='-berok' 16705 # Determine the default libpath from the value encoded in an 16706 # empty executable. 16707 if test set = "${lt_cv_aix_libpath+set}"; then 16708 aix_libpath=$lt_cv_aix_libpath 16709else 16710 if test ${lt_cv_aix_libpath_+y} 16711then : 16712 printf %s "(cached) " >&6 16713else $as_nop 16714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16715/* end confdefs.h. */ 16716 16717int 16718main (void) 16719{ 16720 16721 ; 16722 return 0; 16723} 16724_ACEOF 16725if ac_fn_c_try_link "$LINENO" 16726then : 16727 16728 lt_aix_libpath_sed=' 16729 /Import File Strings/,/^$/ { 16730 /^0/ { 16731 s/^0 *\([^ ]*\) *$/\1/ 16732 p 16733 } 16734 }' 16735 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16736 # Check for a 64-bit object if we didn't find anything. 16737 if test -z "$lt_cv_aix_libpath_"; then 16738 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16739 fi 16740fi 16741rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16742 conftest$ac_exeext conftest.$ac_ext 16743 if test -z "$lt_cv_aix_libpath_"; then 16744 lt_cv_aix_libpath_=/usr/lib:/lib 16745 fi 16746 16747fi 16748 16749 aix_libpath=$lt_cv_aix_libpath_ 16750fi 16751 16752 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16753 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 16754 else 16755 if test ia64 = "$host_cpu"; then 16756 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16757 allow_undefined_flag="-z nodefs" 16758 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" 16759 else 16760 # Determine the default libpath from the value encoded in an 16761 # empty executable. 16762 if test set = "${lt_cv_aix_libpath+set}"; then 16763 aix_libpath=$lt_cv_aix_libpath 16764else 16765 if test ${lt_cv_aix_libpath_+y} 16766then : 16767 printf %s "(cached) " >&6 16768else $as_nop 16769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16770/* end confdefs.h. */ 16771 16772int 16773main (void) 16774{ 16775 16776 ; 16777 return 0; 16778} 16779_ACEOF 16780if ac_fn_c_try_link "$LINENO" 16781then : 16782 16783 lt_aix_libpath_sed=' 16784 /Import File Strings/,/^$/ { 16785 /^0/ { 16786 s/^0 *\([^ ]*\) *$/\1/ 16787 p 16788 } 16789 }' 16790 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16791 # Check for a 64-bit object if we didn't find anything. 16792 if test -z "$lt_cv_aix_libpath_"; then 16793 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16794 fi 16795fi 16796rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16797 conftest$ac_exeext conftest.$ac_ext 16798 if test -z "$lt_cv_aix_libpath_"; then 16799 lt_cv_aix_libpath_=/usr/lib:/lib 16800 fi 16801 16802fi 16803 16804 aix_libpath=$lt_cv_aix_libpath_ 16805fi 16806 16807 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16808 # Warning - without using the other run time loading flags, 16809 # -berok will link without error, but may produce a broken library. 16810 no_undefined_flag=' $wl-bernotok' 16811 allow_undefined_flag=' $wl-berok' 16812 if test yes = "$with_gnu_ld"; then 16813 # We only use this code for GNU lds that support --whole-archive. 16814 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16815 else 16816 # Exported symbols can be pulled into shared objects from archives 16817 whole_archive_flag_spec='$convenience' 16818 fi 16819 archive_cmds_need_lc=yes 16820 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16821 # -brtl affects multiple linker settings, -berok does not and is overridden later 16822 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16823 if test svr4 != "$with_aix_soname"; then 16824 # This is similar to how AIX traditionally builds its shared libraries. 16825 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' 16826 fi 16827 if test aix != "$with_aix_soname"; then 16828 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' 16829 else 16830 # used by -dlpreopen to get the symbols 16831 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16832 fi 16833 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16834 fi 16835 fi 16836 ;; 16837 16838 amigaos*) 16839 case $host_cpu in 16840 powerpc) 16841 # see comment about AmigaOS4 .so support 16842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16843 archive_expsym_cmds='' 16844 ;; 16845 m68k) 16846 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)' 16847 hardcode_libdir_flag_spec='-L$libdir' 16848 hardcode_minus_L=yes 16849 ;; 16850 esac 16851 ;; 16852 16853 bsdi[45]*) 16854 export_dynamic_flag_spec=-rdynamic 16855 ;; 16856 16857 cygwin* | mingw* | pw32* | cegcc*) 16858 # When not using gcc, we currently assume that we are using 16859 # Microsoft Visual C++ or Intel C++ Compiler. 16860 # hardcode_libdir_flag_spec is actually meaningless, as there is 16861 # no search path for DLLs. 16862 case $cc_basename in 16863 cl* | icl*) 16864 # Native MSVC or ICC 16865 hardcode_libdir_flag_spec=' ' 16866 allow_undefined_flag=unsupported 16867 always_export_symbols=yes 16868 file_list_spec='@' 16869 # Tell ltmain to make .lib files, not .a files. 16870 libext=lib 16871 # Tell ltmain to make .dll files, not .so files. 16872 shrext_cmds=.dll 16873 # FIXME: Setting linknames here is a bad hack. 16874 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16875 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16876 cp "$export_symbols" "$output_objdir/$soname.def"; 16877 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16878 else 16879 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16880 fi~ 16881 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16882 linknames=' 16883 # The linker will not automatically build a static lib if we build a DLL. 16884 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16885 enable_shared_with_static_runtimes=yes 16886 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16887 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16888 # Don't use ranlib 16889 old_postinstall_cmds='chmod 644 $oldlib' 16890 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16891 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16892 case $lt_outputfile in 16893 *.exe|*.EXE) ;; 16894 *) 16895 lt_outputfile=$lt_outputfile.exe 16896 lt_tool_outputfile=$lt_tool_outputfile.exe 16897 ;; 16898 esac~ 16899 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16900 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16901 $RM "$lt_outputfile.manifest"; 16902 fi' 16903 ;; 16904 *) 16905 # Assume MSVC and ICC wrapper 16906 hardcode_libdir_flag_spec=' ' 16907 allow_undefined_flag=unsupported 16908 # Tell ltmain to make .lib files, not .a files. 16909 libext=lib 16910 # Tell ltmain to make .dll files, not .so files. 16911 shrext_cmds=.dll 16912 # FIXME: Setting linknames here is a bad hack. 16913 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16914 # The linker will automatically build a .lib file if we build a DLL. 16915 old_archive_from_new_cmds='true' 16916 # FIXME: Should let the user specify the lib program. 16917 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16918 enable_shared_with_static_runtimes=yes 16919 ;; 16920 esac 16921 ;; 16922 16923 darwin* | rhapsody*) 16924 16925 16926 archive_cmds_need_lc=no 16927 hardcode_direct=no 16928 hardcode_automatic=yes 16929 hardcode_shlibpath_var=unsupported 16930 if test yes = "$lt_cv_ld_force_load"; then 16931 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\"`' 16932 16933 else 16934 whole_archive_flag_spec='' 16935 fi 16936 link_all_deplibs=yes 16937 allow_undefined_flag=$_lt_dar_allow_undefined 16938 case $cc_basename in 16939 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16940 *) _lt_dar_can_shared=$GCC ;; 16941 esac 16942 if test yes = "$_lt_dar_can_shared"; then 16943 output_verbose_link_cmd=func_echo_all 16944 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16945 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16946 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" 16947 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" 16948 16949 else 16950 ld_shlibs=no 16951 fi 16952 16953 ;; 16954 16955 dgux*) 16956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16957 hardcode_libdir_flag_spec='-L$libdir' 16958 hardcode_shlibpath_var=no 16959 ;; 16960 16961 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16962 # support. Future versions do this automatically, but an explicit c++rt0.o 16963 # does not break anything, and helps significantly (at the cost of a little 16964 # extra space). 16965 freebsd2.2*) 16966 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16967 hardcode_libdir_flag_spec='-R$libdir' 16968 hardcode_direct=yes 16969 hardcode_shlibpath_var=no 16970 ;; 16971 16972 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16973 freebsd2.*) 16974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16975 hardcode_direct=yes 16976 hardcode_minus_L=yes 16977 hardcode_shlibpath_var=no 16978 ;; 16979 16980 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16981 freebsd* | dragonfly* | midnightbsd*) 16982 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16983 hardcode_libdir_flag_spec='-R$libdir' 16984 hardcode_direct=yes 16985 hardcode_shlibpath_var=no 16986 ;; 16987 16988 hpux9*) 16989 if test yes = "$GCC"; then 16990 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' 16991 else 16992 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' 16993 fi 16994 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16995 hardcode_libdir_separator=: 16996 hardcode_direct=yes 16997 16998 # hardcode_minus_L: Not really in the search PATH, 16999 # but as the default location of the library. 17000 hardcode_minus_L=yes 17001 export_dynamic_flag_spec='$wl-E' 17002 ;; 17003 17004 hpux10*) 17005 if test yes,no = "$GCC,$with_gnu_ld"; then 17006 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17007 else 17008 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17009 fi 17010 if test no = "$with_gnu_ld"; then 17011 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17012 hardcode_libdir_separator=: 17013 hardcode_direct=yes 17014 hardcode_direct_absolute=yes 17015 export_dynamic_flag_spec='$wl-E' 17016 # hardcode_minus_L: Not really in the search PATH, 17017 # but as the default location of the library. 17018 hardcode_minus_L=yes 17019 fi 17020 ;; 17021 17022 hpux11*) 17023 if test yes,no = "$GCC,$with_gnu_ld"; then 17024 case $host_cpu in 17025 hppa*64*) 17026 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17027 ;; 17028 ia64*) 17029 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17030 ;; 17031 *) 17032 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17033 ;; 17034 esac 17035 else 17036 case $host_cpu in 17037 hppa*64*) 17038 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17039 ;; 17040 ia64*) 17041 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17042 ;; 17043 *) 17044 17045 # Older versions of the 11.00 compiler do not understand -b yet 17046 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17048printf %s "checking if $CC understands -b... " >&6; } 17049if test ${lt_cv_prog_compiler__b+y} 17050then : 17051 printf %s "(cached) " >&6 17052else $as_nop 17053 lt_cv_prog_compiler__b=no 17054 save_LDFLAGS=$LDFLAGS 17055 LDFLAGS="$LDFLAGS -b" 17056 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17057 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17058 # The linker can only warn and ignore the option if not recognized 17059 # So say no if there are warnings 17060 if test -s conftest.err; then 17061 # Append any errors to the config.log. 17062 cat conftest.err 1>&5 17063 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17065 if diff conftest.exp conftest.er2 >/dev/null; then 17066 lt_cv_prog_compiler__b=yes 17067 fi 17068 else 17069 lt_cv_prog_compiler__b=yes 17070 fi 17071 fi 17072 $RM -r conftest* 17073 LDFLAGS=$save_LDFLAGS 17074 17075fi 17076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17077printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17078 17079if test yes = "$lt_cv_prog_compiler__b"; then 17080 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17081else 17082 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17083fi 17084 17085 ;; 17086 esac 17087 fi 17088 if test no = "$with_gnu_ld"; then 17089 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17090 hardcode_libdir_separator=: 17091 17092 case $host_cpu in 17093 hppa*64*|ia64*) 17094 hardcode_direct=no 17095 hardcode_shlibpath_var=no 17096 ;; 17097 *) 17098 hardcode_direct=yes 17099 hardcode_direct_absolute=yes 17100 export_dynamic_flag_spec='$wl-E' 17101 17102 # hardcode_minus_L: Not really in the search PATH, 17103 # but as the default location of the library. 17104 hardcode_minus_L=yes 17105 ;; 17106 esac 17107 fi 17108 ;; 17109 17110 irix5* | irix6* | nonstopux*) 17111 if test yes = "$GCC"; then 17112 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' 17113 # Try to use the -exported_symbol ld option, if it does not 17114 # work, assume that -exports_file does not work either and 17115 # implicitly export all symbols. 17116 # This should be the same for all languages, so no per-tag cache variable. 17117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17118printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17119if test ${lt_cv_irix_exported_symbol+y} 17120then : 17121 printf %s "(cached) " >&6 17122else $as_nop 17123 save_LDFLAGS=$LDFLAGS 17124 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17126/* end confdefs.h. */ 17127int foo (void) { return 0; } 17128_ACEOF 17129if ac_fn_c_try_link "$LINENO" 17130then : 17131 lt_cv_irix_exported_symbol=yes 17132else $as_nop 17133 lt_cv_irix_exported_symbol=no 17134fi 17135rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17136 conftest$ac_exeext conftest.$ac_ext 17137 LDFLAGS=$save_LDFLAGS 17138fi 17139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17140printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17141 if test yes = "$lt_cv_irix_exported_symbol"; then 17142 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' 17143 fi 17144 else 17145 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' 17146 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' 17147 fi 17148 archive_cmds_need_lc='no' 17149 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17150 hardcode_libdir_separator=: 17151 inherit_rpath=yes 17152 link_all_deplibs=yes 17153 ;; 17154 17155 linux*) 17156 case $cc_basename in 17157 tcc*) 17158 # Fabrice Bellard et al's Tiny C Compiler 17159 ld_shlibs=yes 17160 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17161 ;; 17162 esac 17163 ;; 17164 17165 netbsd*) 17166 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17168 else 17169 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17170 fi 17171 hardcode_libdir_flag_spec='-R$libdir' 17172 hardcode_direct=yes 17173 hardcode_shlibpath_var=no 17174 ;; 17175 17176 newsos6) 17177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17178 hardcode_direct=yes 17179 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17180 hardcode_libdir_separator=: 17181 hardcode_shlibpath_var=no 17182 ;; 17183 17184 *nto* | *qnx*) 17185 ;; 17186 17187 openbsd* | bitrig*) 17188 if test -f /usr/libexec/ld.so; then 17189 hardcode_direct=yes 17190 hardcode_shlibpath_var=no 17191 hardcode_direct_absolute=yes 17192 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17193 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17194 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17195 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17196 export_dynamic_flag_spec='$wl-E' 17197 else 17198 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17199 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17200 fi 17201 else 17202 ld_shlibs=no 17203 fi 17204 ;; 17205 17206 os2*) 17207 hardcode_libdir_flag_spec='-L$libdir' 17208 hardcode_minus_L=yes 17209 allow_undefined_flag=unsupported 17210 shrext_cmds=.dll 17211 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17212 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17213 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17214 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17215 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17216 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17217 emximp -o $lib $output_objdir/$libname.def' 17218 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17219 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17220 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17221 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17222 prefix_cmds="$SED"~ 17223 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17224 prefix_cmds="$prefix_cmds -e 1d"; 17225 fi~ 17226 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17227 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17228 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17229 emximp -o $lib $output_objdir/$libname.def' 17230 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17231 enable_shared_with_static_runtimes=yes 17232 file_list_spec='@' 17233 ;; 17234 17235 osf3*) 17236 if test yes = "$GCC"; then 17237 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17238 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' 17239 else 17240 allow_undefined_flag=' -expect_unresolved \*' 17241 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' 17242 fi 17243 archive_cmds_need_lc='no' 17244 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17245 hardcode_libdir_separator=: 17246 ;; 17247 17248 osf4* | osf5*) # as osf3* with the addition of -msym flag 17249 if test yes = "$GCC"; then 17250 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17251 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' 17252 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17253 else 17254 allow_undefined_flag=' -expect_unresolved \*' 17255 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' 17256 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~ 17257 $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' 17258 17259 # Both c and cxx compiler support -rpath directly 17260 hardcode_libdir_flag_spec='-rpath $libdir' 17261 fi 17262 archive_cmds_need_lc='no' 17263 hardcode_libdir_separator=: 17264 ;; 17265 17266 solaris*) 17267 no_undefined_flag=' -z defs' 17268 if test yes = "$GCC"; then 17269 wlarc='$wl' 17270 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17271 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17272 $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' 17273 else 17274 case `$CC -V 2>&1` in 17275 *"Compilers 5.0"*) 17276 wlarc='' 17277 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17278 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17279 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17280 ;; 17281 *) 17282 wlarc='$wl' 17283 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17284 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17285 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17286 ;; 17287 esac 17288 fi 17289 hardcode_libdir_flag_spec='-R$libdir' 17290 hardcode_shlibpath_var=no 17291 case $host_os in 17292 solaris2.[0-5] | solaris2.[0-5].*) ;; 17293 *) 17294 # The compiler driver will combine and reorder linker options, 17295 # but understands '-z linker_flag'. GCC discards it without '$wl', 17296 # but is careful enough not to reorder. 17297 # Supported since Solaris 2.6 (maybe 2.5.1?) 17298 if test yes = "$GCC"; then 17299 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17300 else 17301 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17302 fi 17303 ;; 17304 esac 17305 link_all_deplibs=yes 17306 ;; 17307 17308 sunos4*) 17309 if test sequent = "$host_vendor"; then 17310 # Use $CC to link under sequent, because it throws in some extra .o 17311 # files that make .init and .fini sections work. 17312 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17313 else 17314 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17315 fi 17316 hardcode_libdir_flag_spec='-L$libdir' 17317 hardcode_direct=yes 17318 hardcode_minus_L=yes 17319 hardcode_shlibpath_var=no 17320 ;; 17321 17322 sysv4) 17323 case $host_vendor in 17324 sni) 17325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17326 hardcode_direct=yes # is this really true??? 17327 ;; 17328 siemens) 17329 ## LD is ld it makes a PLAMLIB 17330 ## CC just makes a GrossModule. 17331 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17332 reload_cmds='$CC -r -o $output$reload_objs' 17333 hardcode_direct=no 17334 ;; 17335 motorola) 17336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17337 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17338 ;; 17339 esac 17340 runpath_var='LD_RUN_PATH' 17341 hardcode_shlibpath_var=no 17342 ;; 17343 17344 sysv4.3*) 17345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17346 hardcode_shlibpath_var=no 17347 export_dynamic_flag_spec='-Bexport' 17348 ;; 17349 17350 sysv4*MP*) 17351 if test -d /usr/nec; then 17352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17353 hardcode_shlibpath_var=no 17354 runpath_var=LD_RUN_PATH 17355 hardcode_runpath_var=yes 17356 ld_shlibs=yes 17357 fi 17358 ;; 17359 17360 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17361 no_undefined_flag='$wl-z,text' 17362 archive_cmds_need_lc=no 17363 hardcode_shlibpath_var=no 17364 runpath_var='LD_RUN_PATH' 17365 17366 if test yes = "$GCC"; then 17367 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17368 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17369 else 17370 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17371 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17372 fi 17373 ;; 17374 17375 sysv5* | sco3.2v5* | sco5v6*) 17376 # Note: We CANNOT use -z defs as we might desire, because we do not 17377 # link with -lc, and that would cause any symbols used from libc to 17378 # always be unresolved, which means just about no library would 17379 # ever link correctly. If we're not using GNU ld we use -z text 17380 # though, which does catch some bad symbols but isn't as heavy-handed 17381 # as -z defs. 17382 no_undefined_flag='$wl-z,text' 17383 allow_undefined_flag='$wl-z,nodefs' 17384 archive_cmds_need_lc=no 17385 hardcode_shlibpath_var=no 17386 hardcode_libdir_flag_spec='$wl-R,$libdir' 17387 hardcode_libdir_separator=':' 17388 link_all_deplibs=yes 17389 export_dynamic_flag_spec='$wl-Bexport' 17390 runpath_var='LD_RUN_PATH' 17391 17392 if test yes = "$GCC"; then 17393 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17394 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17395 else 17396 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17397 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17398 fi 17399 ;; 17400 17401 uts4*) 17402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17403 hardcode_libdir_flag_spec='-L$libdir' 17404 hardcode_shlibpath_var=no 17405 ;; 17406 17407 *) 17408 ld_shlibs=no 17409 ;; 17410 esac 17411 17412 if test sni = "$host_vendor"; then 17413 case $host in 17414 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17415 export_dynamic_flag_spec='$wl-Blargedynsym' 17416 ;; 17417 esac 17418 fi 17419 fi 17420 17421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17422printf "%s\n" "$ld_shlibs" >&6; } 17423test no = "$ld_shlibs" && can_build_shared=no 17424 17425with_gnu_ld=$with_gnu_ld 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441# 17442# Do we need to explicitly link libc? 17443# 17444case "x$archive_cmds_need_lc" in 17445x|xyes) 17446 # Assume -lc should be added 17447 archive_cmds_need_lc=yes 17448 17449 if test yes,yes = "$GCC,$enable_shared"; then 17450 case $archive_cmds in 17451 *'~'*) 17452 # FIXME: we may have to deal with multi-command sequences. 17453 ;; 17454 '$CC '*) 17455 # Test whether the compiler implicitly links with -lc since on some 17456 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17457 # to ld, don't add -lc before -lgcc. 17458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17459printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17460if test ${lt_cv_archive_cmds_need_lc+y} 17461then : 17462 printf %s "(cached) " >&6 17463else $as_nop 17464 $RM conftest* 17465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17466 17467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17468 (eval $ac_compile) 2>&5 17469 ac_status=$? 17470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17471 test $ac_status = 0; } 2>conftest.err; then 17472 soname=conftest 17473 lib=conftest 17474 libobjs=conftest.$ac_objext 17475 deplibs= 17476 wl=$lt_prog_compiler_wl 17477 pic_flag=$lt_prog_compiler_pic 17478 compiler_flags=-v 17479 linker_flags=-v 17480 verstring= 17481 output_objdir=. 17482 libname=conftest 17483 lt_save_allow_undefined_flag=$allow_undefined_flag 17484 allow_undefined_flag= 17485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17486 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17487 ac_status=$? 17488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17489 test $ac_status = 0; } 17490 then 17491 lt_cv_archive_cmds_need_lc=no 17492 else 17493 lt_cv_archive_cmds_need_lc=yes 17494 fi 17495 allow_undefined_flag=$lt_save_allow_undefined_flag 17496 else 17497 cat conftest.err 1>&5 17498 fi 17499 $RM conftest* 17500 17501fi 17502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17503printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17504 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17505 ;; 17506 esac 17507 fi 17508 ;; 17509esac 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 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17663printf %s "checking dynamic linker characteristics... " >&6; } 17664 17665if test yes = "$GCC"; then 17666 case $host_os in 17667 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17668 *) lt_awk_arg='/^libraries:/' ;; 17669 esac 17670 case $host_os in 17671 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17672 *) lt_sed_strip_eq='s|=/|/|g' ;; 17673 esac 17674 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17675 case $lt_search_path_spec in 17676 *\;*) 17677 # if the path contains ";" then we assume it to be the separator 17678 # otherwise default to the standard path separator (i.e. ":") - it is 17679 # assumed that no part of a normal pathname contains ";" but that should 17680 # okay in the real world where ";" in dirpaths is itself problematic. 17681 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17682 ;; 17683 *) 17684 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17685 ;; 17686 esac 17687 # Ok, now we have the path, separated by spaces, we can step through it 17688 # and add multilib dir if necessary... 17689 lt_tmp_lt_search_path_spec= 17690 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17691 # ...but if some path component already ends with the multilib dir we assume 17692 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17693 case "$lt_multi_os_dir; $lt_search_path_spec " in 17694 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17695 lt_multi_os_dir= 17696 ;; 17697 esac 17698 for lt_sys_path in $lt_search_path_spec; do 17699 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17700 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17701 elif test -n "$lt_multi_os_dir"; then 17702 test -d "$lt_sys_path" && \ 17703 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17704 fi 17705 done 17706 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17707BEGIN {RS = " "; FS = "/|\n";} { 17708 lt_foo = ""; 17709 lt_count = 0; 17710 for (lt_i = NF; lt_i > 0; lt_i--) { 17711 if ($lt_i != "" && $lt_i != ".") { 17712 if ($lt_i == "..") { 17713 lt_count++; 17714 } else { 17715 if (lt_count == 0) { 17716 lt_foo = "/" $lt_i lt_foo; 17717 } else { 17718 lt_count--; 17719 } 17720 } 17721 } 17722 } 17723 if (lt_foo != "") { lt_freq[lt_foo]++; } 17724 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17725}'` 17726 # AWK program above erroneously prepends '/' to C:/dos/paths 17727 # for these hosts. 17728 case $host_os in 17729 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17730 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17731 esac 17732 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17733else 17734 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17735fi 17736library_names_spec= 17737libname_spec='lib$name' 17738soname_spec= 17739shrext_cmds=.so 17740postinstall_cmds= 17741postuninstall_cmds= 17742finish_cmds= 17743finish_eval= 17744shlibpath_var= 17745shlibpath_overrides_runpath=unknown 17746version_type=none 17747dynamic_linker="$host_os ld.so" 17748sys_lib_dlsearch_path_spec="/lib /usr/lib" 17749need_lib_prefix=unknown 17750hardcode_into_libs=no 17751 17752# when you set need_version to no, make sure it does not cause -set_version 17753# flags to be left without arguments 17754need_version=unknown 17755 17756 17757 17758case $host_os in 17759aix3*) 17760 version_type=linux # correct to gnu/linux during the next big refactor 17761 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17762 shlibpath_var=LIBPATH 17763 17764 # AIX 3 has no versioning support, so we append a major version to the name. 17765 soname_spec='$libname$release$shared_ext$major' 17766 ;; 17767 17768aix[4-9]*) 17769 version_type=linux # correct to gnu/linux during the next big refactor 17770 need_lib_prefix=no 17771 need_version=no 17772 hardcode_into_libs=yes 17773 if test ia64 = "$host_cpu"; then 17774 # AIX 5 supports IA64 17775 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17776 shlibpath_var=LD_LIBRARY_PATH 17777 else 17778 # With GCC up to 2.95.x, collect2 would create an import file 17779 # for dependence libraries. The import file would start with 17780 # the line '#! .'. This would cause the generated library to 17781 # depend on '.', always an invalid library. This was fixed in 17782 # development snapshots of GCC prior to 3.0. 17783 case $host_os in 17784 aix4 | aix4.[01] | aix4.[01].*) 17785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17786 echo ' yes ' 17787 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17788 : 17789 else 17790 can_build_shared=no 17791 fi 17792 ;; 17793 esac 17794 # Using Import Files as archive members, it is possible to support 17795 # filename-based versioning of shared library archives on AIX. While 17796 # this would work for both with and without runtime linking, it will 17797 # prevent static linking of such archives. So we do filename-based 17798 # shared library versioning with .so extension only, which is used 17799 # when both runtime linking and shared linking is enabled. 17800 # Unfortunately, runtime linking may impact performance, so we do 17801 # not want this to be the default eventually. Also, we use the 17802 # versioned .so libs for executables only if there is the -brtl 17803 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17804 # To allow for filename-based versioning support, we need to create 17805 # libNAME.so.V as an archive file, containing: 17806 # *) an Import File, referring to the versioned filename of the 17807 # archive as well as the shared archive member, telling the 17808 # bitwidth (32 or 64) of that shared object, and providing the 17809 # list of exported symbols of that shared object, eventually 17810 # decorated with the 'weak' keyword 17811 # *) the shared object with the F_LOADONLY flag set, to really avoid 17812 # it being seen by the linker. 17813 # At run time we better use the real file rather than another symlink, 17814 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17815 17816 case $with_aix_soname,$aix_use_runtimelinking in 17817 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17818 # soname into executable. Probably we can add versioning support to 17819 # collect2, so additional links can be useful in future. 17820 aix,yes) # traditional libtool 17821 dynamic_linker='AIX unversionable lib.so' 17822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17823 # instead of lib<name>.a to let people know that these are not 17824 # typical AIX shared libraries. 17825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17826 ;; 17827 aix,no) # traditional AIX only 17828 dynamic_linker='AIX lib.a(lib.so.V)' 17829 # We preserve .a as extension for shared libraries through AIX4.2 17830 # and later when we are not doing run time linking. 17831 library_names_spec='$libname$release.a $libname.a' 17832 soname_spec='$libname$release$shared_ext$major' 17833 ;; 17834 svr4,*) # full svr4 only 17835 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17836 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17837 # We do not specify a path in Import Files, so LIBPATH fires. 17838 shlibpath_overrides_runpath=yes 17839 ;; 17840 *,yes) # both, prefer svr4 17841 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17842 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17843 # unpreferred sharedlib libNAME.a needs extra handling 17844 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"' 17845 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"' 17846 # We do not specify a path in Import Files, so LIBPATH fires. 17847 shlibpath_overrides_runpath=yes 17848 ;; 17849 *,no) # both, prefer aix 17850 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17851 library_names_spec='$libname$release.a $libname.a' 17852 soname_spec='$libname$release$shared_ext$major' 17853 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17854 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)' 17855 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"' 17856 ;; 17857 esac 17858 shlibpath_var=LIBPATH 17859 fi 17860 ;; 17861 17862amigaos*) 17863 case $host_cpu in 17864 powerpc) 17865 # Since July 2007 AmigaOS4 officially supports .so libraries. 17866 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17868 ;; 17869 m68k) 17870 library_names_spec='$libname.ixlibrary $libname.a' 17871 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17872 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' 17873 ;; 17874 esac 17875 ;; 17876 17877beos*) 17878 library_names_spec='$libname$shared_ext' 17879 dynamic_linker="$host_os ld.so" 17880 shlibpath_var=LIBRARY_PATH 17881 ;; 17882 17883bsdi[45]*) 17884 version_type=linux # correct to gnu/linux during the next big refactor 17885 need_version=no 17886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17887 soname_spec='$libname$release$shared_ext$major' 17888 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17889 shlibpath_var=LD_LIBRARY_PATH 17890 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17891 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17892 # the default ld.so.conf also contains /usr/contrib/lib and 17893 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17894 # libtool to hard-code these into programs 17895 ;; 17896 17897cygwin* | mingw* | pw32* | cegcc*) 17898 version_type=windows 17899 shrext_cmds=.dll 17900 need_version=no 17901 need_lib_prefix=no 17902 17903 case $GCC,$cc_basename in 17904 yes,*) 17905 # gcc 17906 library_names_spec='$libname.dll.a' 17907 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17908 postinstall_cmds='base_file=`basename \$file`~ 17909 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17910 dldir=$destdir/`dirname \$dlpath`~ 17911 test -d \$dldir || mkdir -p \$dldir~ 17912 $install_prog $dir/$dlname \$dldir/$dlname~ 17913 chmod a+x \$dldir/$dlname~ 17914 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17915 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17916 fi' 17917 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17918 dlpath=$dir/\$dldll~ 17919 $RM \$dlpath' 17920 shlibpath_overrides_runpath=yes 17921 17922 case $host_os in 17923 cygwin*) 17924 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17925 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17926 17927 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17928 ;; 17929 mingw* | cegcc*) 17930 # MinGW DLLs use traditional 'lib' prefix 17931 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17932 ;; 17933 pw32*) 17934 # pw32 DLLs use 'pw' prefix rather than 'lib' 17935 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17936 ;; 17937 esac 17938 dynamic_linker='Win32 ld.exe' 17939 ;; 17940 17941 *,cl* | *,icl*) 17942 # Native MSVC or ICC 17943 libname_spec='$name' 17944 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17945 library_names_spec='$libname.dll.lib' 17946 17947 case $build_os in 17948 mingw*) 17949 sys_lib_search_path_spec= 17950 lt_save_ifs=$IFS 17951 IFS=';' 17952 for lt_path in $LIB 17953 do 17954 IFS=$lt_save_ifs 17955 # Let DOS variable expansion print the short 8.3 style file name. 17956 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17957 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17958 done 17959 IFS=$lt_save_ifs 17960 # Convert to MSYS style. 17961 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17962 ;; 17963 cygwin*) 17964 # Convert to unix form, then to dos form, then back to unix form 17965 # but this time dos style (no spaces!) so that the unix form looks 17966 # like /cygdrive/c/PROGRA~1:/cygdr... 17967 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17968 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17969 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17970 ;; 17971 *) 17972 sys_lib_search_path_spec=$LIB 17973 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17974 # It is most probably a Windows format PATH. 17975 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17976 else 17977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17978 fi 17979 # FIXME: find the short name or the path components, as spaces are 17980 # common. (e.g. "Program Files" -> "PROGRA~1") 17981 ;; 17982 esac 17983 17984 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17985 postinstall_cmds='base_file=`basename \$file`~ 17986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17987 dldir=$destdir/`dirname \$dlpath`~ 17988 test -d \$dldir || mkdir -p \$dldir~ 17989 $install_prog $dir/$dlname \$dldir/$dlname' 17990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17991 dlpath=$dir/\$dldll~ 17992 $RM \$dlpath' 17993 shlibpath_overrides_runpath=yes 17994 dynamic_linker='Win32 link.exe' 17995 ;; 17996 17997 *) 17998 # Assume MSVC and ICC wrapper 17999 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18000 dynamic_linker='Win32 ld.exe' 18001 ;; 18002 esac 18003 # FIXME: first we should search . and the directory the executable is in 18004 shlibpath_var=PATH 18005 ;; 18006 18007darwin* | rhapsody*) 18008 dynamic_linker="$host_os dyld" 18009 version_type=darwin 18010 need_lib_prefix=no 18011 need_version=no 18012 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18013 soname_spec='$libname$release$major$shared_ext' 18014 shlibpath_overrides_runpath=yes 18015 shlibpath_var=DYLD_LIBRARY_PATH 18016 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18017 18018 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18019 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18020 ;; 18021 18022dgux*) 18023 version_type=linux # correct to gnu/linux during the next big refactor 18024 need_lib_prefix=no 18025 need_version=no 18026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18027 soname_spec='$libname$release$shared_ext$major' 18028 shlibpath_var=LD_LIBRARY_PATH 18029 ;; 18030 18031freebsd* | dragonfly* | midnightbsd*) 18032 # DragonFly does not have aout. When/if they implement a new 18033 # versioning mechanism, adjust this. 18034 if test -x /usr/bin/objformat; then 18035 objformat=`/usr/bin/objformat` 18036 else 18037 case $host_os in 18038 freebsd[23].*) objformat=aout ;; 18039 *) objformat=elf ;; 18040 esac 18041 fi 18042 version_type=freebsd-$objformat 18043 case $version_type in 18044 freebsd-elf*) 18045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18046 soname_spec='$libname$release$shared_ext$major' 18047 need_version=no 18048 need_lib_prefix=no 18049 ;; 18050 freebsd-*) 18051 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18052 need_version=yes 18053 ;; 18054 esac 18055 shlibpath_var=LD_LIBRARY_PATH 18056 case $host_os in 18057 freebsd2.*) 18058 shlibpath_overrides_runpath=yes 18059 ;; 18060 freebsd3.[01]* | freebsdelf3.[01]*) 18061 shlibpath_overrides_runpath=yes 18062 hardcode_into_libs=yes 18063 ;; 18064 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18065 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18066 shlibpath_overrides_runpath=no 18067 hardcode_into_libs=yes 18068 ;; 18069 *) # from 4.6 on, and DragonFly 18070 shlibpath_overrides_runpath=yes 18071 hardcode_into_libs=yes 18072 ;; 18073 esac 18074 ;; 18075 18076haiku*) 18077 version_type=linux # correct to gnu/linux during the next big refactor 18078 need_lib_prefix=no 18079 need_version=no 18080 dynamic_linker="$host_os runtime_loader" 18081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18082 soname_spec='$libname$release$shared_ext$major' 18083 shlibpath_var=LIBRARY_PATH 18084 shlibpath_overrides_runpath=no 18085 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18086 hardcode_into_libs=yes 18087 ;; 18088 18089hpux9* | hpux10* | hpux11*) 18090 # Give a soname corresponding to the major version so that dld.sl refuses to 18091 # link against other versions. 18092 version_type=sunos 18093 need_lib_prefix=no 18094 need_version=no 18095 case $host_cpu in 18096 ia64*) 18097 shrext_cmds='.so' 18098 hardcode_into_libs=yes 18099 dynamic_linker="$host_os dld.so" 18100 shlibpath_var=LD_LIBRARY_PATH 18101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18103 soname_spec='$libname$release$shared_ext$major' 18104 if test 32 = "$HPUX_IA64_MODE"; then 18105 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18106 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18107 else 18108 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18109 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18110 fi 18111 ;; 18112 hppa*64*) 18113 shrext_cmds='.sl' 18114 hardcode_into_libs=yes 18115 dynamic_linker="$host_os dld.sl" 18116 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18119 soname_spec='$libname$release$shared_ext$major' 18120 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18122 ;; 18123 *) 18124 shrext_cmds='.sl' 18125 dynamic_linker="$host_os dld.sl" 18126 shlibpath_var=SHLIB_PATH 18127 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18129 soname_spec='$libname$release$shared_ext$major' 18130 ;; 18131 esac 18132 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18133 postinstall_cmds='chmod 555 $lib' 18134 # or fails outright, so override atomically: 18135 install_override_mode=555 18136 ;; 18137 18138interix[3-9]*) 18139 version_type=linux # correct to gnu/linux during the next big refactor 18140 need_lib_prefix=no 18141 need_version=no 18142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18143 soname_spec='$libname$release$shared_ext$major' 18144 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18145 shlibpath_var=LD_LIBRARY_PATH 18146 shlibpath_overrides_runpath=no 18147 hardcode_into_libs=yes 18148 ;; 18149 18150irix5* | irix6* | nonstopux*) 18151 case $host_os in 18152 nonstopux*) version_type=nonstopux ;; 18153 *) 18154 if test yes = "$lt_cv_prog_gnu_ld"; then 18155 version_type=linux # correct to gnu/linux during the next big refactor 18156 else 18157 version_type=irix 18158 fi ;; 18159 esac 18160 need_lib_prefix=no 18161 need_version=no 18162 soname_spec='$libname$release$shared_ext$major' 18163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18164 case $host_os in 18165 irix5* | nonstopux*) 18166 libsuff= shlibsuff= 18167 ;; 18168 *) 18169 case $LD in # libtool.m4 will add one of these switches to LD 18170 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18171 libsuff= shlibsuff= libmagic=32-bit;; 18172 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18173 libsuff=32 shlibsuff=N32 libmagic=N32;; 18174 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18175 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18176 *) libsuff= shlibsuff= libmagic=never-match;; 18177 esac 18178 ;; 18179 esac 18180 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18181 shlibpath_overrides_runpath=no 18182 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18183 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18184 hardcode_into_libs=yes 18185 ;; 18186 18187# No shared lib support for Linux oldld, aout, or coff. 18188linux*oldld* | linux*aout* | linux*coff*) 18189 dynamic_linker=no 18190 ;; 18191 18192linux*android*) 18193 version_type=none # Android doesn't support versioned libraries. 18194 need_lib_prefix=no 18195 need_version=no 18196 library_names_spec='$libname$release$shared_ext' 18197 soname_spec='$libname$release$shared_ext' 18198 finish_cmds= 18199 shlibpath_var=LD_LIBRARY_PATH 18200 shlibpath_overrides_runpath=yes 18201 18202 # This implies no fast_install, which is unacceptable. 18203 # Some rework will be needed to allow for fast_install 18204 # before this can be enabled. 18205 hardcode_into_libs=yes 18206 18207 dynamic_linker='Android linker' 18208 # Don't embed -rpath directories since the linker doesn't support them. 18209 hardcode_libdir_flag_spec='-L$libdir' 18210 ;; 18211 18212# This must be glibc/ELF. 18213linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18214 version_type=linux # correct to gnu/linux during the next big refactor 18215 need_lib_prefix=no 18216 need_version=no 18217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18218 soname_spec='$libname$release$shared_ext$major' 18219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18220 shlibpath_var=LD_LIBRARY_PATH 18221 shlibpath_overrides_runpath=no 18222 18223 # Some binutils ld are patched to set DT_RUNPATH 18224 if test ${lt_cv_shlibpath_overrides_runpath+y} 18225then : 18226 printf %s "(cached) " >&6 18227else $as_nop 18228 lt_cv_shlibpath_overrides_runpath=no 18229 save_LDFLAGS=$LDFLAGS 18230 save_libdir=$libdir 18231 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18232 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18234/* end confdefs.h. */ 18235 18236int 18237main (void) 18238{ 18239 18240 ; 18241 return 0; 18242} 18243_ACEOF 18244if ac_fn_c_try_link "$LINENO" 18245then : 18246 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18247then : 18248 lt_cv_shlibpath_overrides_runpath=yes 18249fi 18250fi 18251rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18252 conftest$ac_exeext conftest.$ac_ext 18253 LDFLAGS=$save_LDFLAGS 18254 libdir=$save_libdir 18255 18256fi 18257 18258 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18259 18260 # This implies no fast_install, which is unacceptable. 18261 # Some rework will be needed to allow for fast_install 18262 # before this can be enabled. 18263 hardcode_into_libs=yes 18264 18265 # Ideally, we could use ldconfig to report *all* directores which are 18266 # searched for libraries, however this is still not possible. Aside from not 18267 # being certain /sbin/ldconfig is available, command 18268 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18269 # even though it is searched at run-time. Try to do the best guess by 18270 # appending ld.so.conf contents (and includes) to the search path. 18271 if test -f /etc/ld.so.conf; then 18272 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' ' '` 18273 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18274 fi 18275 18276 # We used to test for /lib/ld.so.1 and disable shared libraries on 18277 # powerpc, because MkLinux only supported shared libraries with the 18278 # GNU dynamic linker. Since this was broken with cross compilers, 18279 # most powerpc-linux boxes support dynamic linking these days and 18280 # people can always --disable-shared, the test was removed, and we 18281 # assume the GNU/Linux dynamic linker is in use. 18282 dynamic_linker='GNU/Linux ld.so' 18283 ;; 18284 18285netbsd*) 18286 version_type=sunos 18287 need_lib_prefix=no 18288 need_version=no 18289 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18290 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18292 dynamic_linker='NetBSD (a.out) ld.so' 18293 else 18294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18295 soname_spec='$libname$release$shared_ext$major' 18296 dynamic_linker='NetBSD ld.elf_so' 18297 fi 18298 shlibpath_var=LD_LIBRARY_PATH 18299 shlibpath_overrides_runpath=yes 18300 hardcode_into_libs=yes 18301 ;; 18302 18303newsos6) 18304 version_type=linux # correct to gnu/linux during the next big refactor 18305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18306 shlibpath_var=LD_LIBRARY_PATH 18307 shlibpath_overrides_runpath=yes 18308 ;; 18309 18310*nto* | *qnx*) 18311 version_type=qnx 18312 need_lib_prefix=no 18313 need_version=no 18314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18315 soname_spec='$libname$release$shared_ext$major' 18316 shlibpath_var=LD_LIBRARY_PATH 18317 shlibpath_overrides_runpath=no 18318 hardcode_into_libs=yes 18319 dynamic_linker='ldqnx.so' 18320 ;; 18321 18322openbsd* | bitrig*) 18323 version_type=sunos 18324 sys_lib_dlsearch_path_spec=/usr/lib 18325 need_lib_prefix=no 18326 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18327 need_version=no 18328 else 18329 need_version=yes 18330 fi 18331 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18333 shlibpath_var=LD_LIBRARY_PATH 18334 shlibpath_overrides_runpath=yes 18335 ;; 18336 18337os2*) 18338 libname_spec='$name' 18339 version_type=windows 18340 shrext_cmds=.dll 18341 need_version=no 18342 need_lib_prefix=no 18343 # OS/2 can only load a DLL with a base name of 8 characters or less. 18344 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18345 v=$($ECHO $release$versuffix | tr -d .-); 18346 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18347 $ECHO $n$v`$shared_ext' 18348 library_names_spec='${libname}_dll.$libext' 18349 dynamic_linker='OS/2 ld.exe' 18350 shlibpath_var=BEGINLIBPATH 18351 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18353 postinstall_cmds='base_file=`basename \$file`~ 18354 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18355 dldir=$destdir/`dirname \$dlpath`~ 18356 test -d \$dldir || mkdir -p \$dldir~ 18357 $install_prog $dir/$dlname \$dldir/$dlname~ 18358 chmod a+x \$dldir/$dlname~ 18359 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18360 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18361 fi' 18362 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18363 dlpath=$dir/\$dldll~ 18364 $RM \$dlpath' 18365 ;; 18366 18367osf3* | osf4* | osf5*) 18368 version_type=osf 18369 need_lib_prefix=no 18370 need_version=no 18371 soname_spec='$libname$release$shared_ext$major' 18372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18373 shlibpath_var=LD_LIBRARY_PATH 18374 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18376 ;; 18377 18378rdos*) 18379 dynamic_linker=no 18380 ;; 18381 18382solaris*) 18383 version_type=linux # correct to gnu/linux during the next big refactor 18384 need_lib_prefix=no 18385 need_version=no 18386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18387 soname_spec='$libname$release$shared_ext$major' 18388 shlibpath_var=LD_LIBRARY_PATH 18389 shlibpath_overrides_runpath=yes 18390 hardcode_into_libs=yes 18391 # ldd complains unless libraries are executable 18392 postinstall_cmds='chmod +x $lib' 18393 ;; 18394 18395sunos4*) 18396 version_type=sunos 18397 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18398 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18399 shlibpath_var=LD_LIBRARY_PATH 18400 shlibpath_overrides_runpath=yes 18401 if test yes = "$with_gnu_ld"; then 18402 need_lib_prefix=no 18403 fi 18404 need_version=yes 18405 ;; 18406 18407sysv4 | sysv4.3*) 18408 version_type=linux # correct to gnu/linux during the next big refactor 18409 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18410 soname_spec='$libname$release$shared_ext$major' 18411 shlibpath_var=LD_LIBRARY_PATH 18412 case $host_vendor in 18413 sni) 18414 shlibpath_overrides_runpath=no 18415 need_lib_prefix=no 18416 runpath_var=LD_RUN_PATH 18417 ;; 18418 siemens) 18419 need_lib_prefix=no 18420 ;; 18421 motorola) 18422 need_lib_prefix=no 18423 need_version=no 18424 shlibpath_overrides_runpath=no 18425 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18426 ;; 18427 esac 18428 ;; 18429 18430sysv4*MP*) 18431 if test -d /usr/nec; then 18432 version_type=linux # correct to gnu/linux during the next big refactor 18433 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18434 soname_spec='$libname$shared_ext.$major' 18435 shlibpath_var=LD_LIBRARY_PATH 18436 fi 18437 ;; 18438 18439sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18440 version_type=sco 18441 need_lib_prefix=no 18442 need_version=no 18443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18444 soname_spec='$libname$release$shared_ext$major' 18445 shlibpath_var=LD_LIBRARY_PATH 18446 shlibpath_overrides_runpath=yes 18447 hardcode_into_libs=yes 18448 if test yes = "$with_gnu_ld"; then 18449 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18450 else 18451 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18452 case $host_os in 18453 sco3.2v5*) 18454 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18455 ;; 18456 esac 18457 fi 18458 sys_lib_dlsearch_path_spec='/usr/lib' 18459 ;; 18460 18461tpf*) 18462 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18463 version_type=linux # correct to gnu/linux during the next big refactor 18464 need_lib_prefix=no 18465 need_version=no 18466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18467 shlibpath_var=LD_LIBRARY_PATH 18468 shlibpath_overrides_runpath=no 18469 hardcode_into_libs=yes 18470 ;; 18471 18472uts4*) 18473 version_type=linux # correct to gnu/linux during the next big refactor 18474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18475 soname_spec='$libname$release$shared_ext$major' 18476 shlibpath_var=LD_LIBRARY_PATH 18477 ;; 18478 18479*) 18480 dynamic_linker=no 18481 ;; 18482esac 18483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18484printf "%s\n" "$dynamic_linker" >&6; } 18485test no = "$dynamic_linker" && can_build_shared=no 18486 18487variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18488if test yes = "$GCC"; then 18489 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18490fi 18491 18492if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18493 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18494fi 18495 18496if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18497 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18498fi 18499 18500# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18501configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18502 18503# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18504func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18505 18506# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18507configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18606printf %s "checking how to hardcode library paths into programs... " >&6; } 18607hardcode_action= 18608if test -n "$hardcode_libdir_flag_spec" || 18609 test -n "$runpath_var" || 18610 test yes = "$hardcode_automatic"; then 18611 18612 # We can hardcode non-existent directories. 18613 if test no != "$hardcode_direct" && 18614 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18615 # have to relink, otherwise we might link with an installed library 18616 # when we should be linking with a yet-to-be-installed one 18617 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18618 test no != "$hardcode_minus_L"; then 18619 # Linking always hardcodes the temporary library directory. 18620 hardcode_action=relink 18621 else 18622 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18623 hardcode_action=immediate 18624 fi 18625else 18626 # We cannot hardcode anything, or else we can only hardcode existing 18627 # directories. 18628 hardcode_action=unsupported 18629fi 18630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18631printf "%s\n" "$hardcode_action" >&6; } 18632 18633if test relink = "$hardcode_action" || 18634 test yes = "$inherit_rpath"; then 18635 # Fast installation is not supported 18636 enable_fast_install=no 18637elif test yes = "$shlibpath_overrides_runpath" || 18638 test no = "$enable_shared"; then 18639 # Fast installation is not necessary 18640 enable_fast_install=needless 18641fi 18642 18643 18644 18645 18646 18647 18648 if test yes != "$enable_dlopen"; then 18649 enable_dlopen=unknown 18650 enable_dlopen_self=unknown 18651 enable_dlopen_self_static=unknown 18652else 18653 lt_cv_dlopen=no 18654 lt_cv_dlopen_libs= 18655 18656 case $host_os in 18657 beos*) 18658 lt_cv_dlopen=load_add_on 18659 lt_cv_dlopen_libs= 18660 lt_cv_dlopen_self=yes 18661 ;; 18662 18663 mingw* | pw32* | cegcc*) 18664 lt_cv_dlopen=LoadLibrary 18665 lt_cv_dlopen_libs= 18666 ;; 18667 18668 cygwin*) 18669 lt_cv_dlopen=dlopen 18670 lt_cv_dlopen_libs= 18671 ;; 18672 18673 darwin*) 18674 # if libdl is installed we need to link against it 18675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18676printf %s "checking for dlopen in -ldl... " >&6; } 18677if test ${ac_cv_lib_dl_dlopen+y} 18678then : 18679 printf %s "(cached) " >&6 18680else $as_nop 18681 ac_check_lib_save_LIBS=$LIBS 18682LIBS="-ldl $LIBS" 18683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18684/* end confdefs.h. */ 18685 18686/* Override any GCC internal prototype to avoid an error. 18687 Use char because int might match the return type of a GCC 18688 builtin and then its argument prototype would still apply. */ 18689char dlopen (); 18690int 18691main (void) 18692{ 18693return dlopen (); 18694 ; 18695 return 0; 18696} 18697_ACEOF 18698if ac_fn_c_try_link "$LINENO" 18699then : 18700 ac_cv_lib_dl_dlopen=yes 18701else $as_nop 18702 ac_cv_lib_dl_dlopen=no 18703fi 18704rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18705 conftest$ac_exeext conftest.$ac_ext 18706LIBS=$ac_check_lib_save_LIBS 18707fi 18708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18709printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18710if test "x$ac_cv_lib_dl_dlopen" = xyes 18711then : 18712 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18713else $as_nop 18714 18715 lt_cv_dlopen=dyld 18716 lt_cv_dlopen_libs= 18717 lt_cv_dlopen_self=yes 18718 18719fi 18720 18721 ;; 18722 18723 tpf*) 18724 # Don't try to run any link tests for TPF. We know it's impossible 18725 # because TPF is a cross-compiler, and we know how we open DSOs. 18726 lt_cv_dlopen=dlopen 18727 lt_cv_dlopen_libs= 18728 lt_cv_dlopen_self=no 18729 ;; 18730 18731 *) 18732 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18733if test "x$ac_cv_func_shl_load" = xyes 18734then : 18735 lt_cv_dlopen=shl_load 18736else $as_nop 18737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18738printf %s "checking for shl_load in -ldld... " >&6; } 18739if test ${ac_cv_lib_dld_shl_load+y} 18740then : 18741 printf %s "(cached) " >&6 18742else $as_nop 18743 ac_check_lib_save_LIBS=$LIBS 18744LIBS="-ldld $LIBS" 18745cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18746/* end confdefs.h. */ 18747 18748/* Override any GCC internal prototype to avoid an error. 18749 Use char because int might match the return type of a GCC 18750 builtin and then its argument prototype would still apply. */ 18751char shl_load (); 18752int 18753main (void) 18754{ 18755return shl_load (); 18756 ; 18757 return 0; 18758} 18759_ACEOF 18760if ac_fn_c_try_link "$LINENO" 18761then : 18762 ac_cv_lib_dld_shl_load=yes 18763else $as_nop 18764 ac_cv_lib_dld_shl_load=no 18765fi 18766rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18767 conftest$ac_exeext conftest.$ac_ext 18768LIBS=$ac_check_lib_save_LIBS 18769fi 18770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18771printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 18772if test "x$ac_cv_lib_dld_shl_load" = xyes 18773then : 18774 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18775else $as_nop 18776 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18777if test "x$ac_cv_func_dlopen" = xyes 18778then : 18779 lt_cv_dlopen=dlopen 18780else $as_nop 18781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18782printf %s "checking for dlopen in -ldl... " >&6; } 18783if test ${ac_cv_lib_dl_dlopen+y} 18784then : 18785 printf %s "(cached) " >&6 18786else $as_nop 18787 ac_check_lib_save_LIBS=$LIBS 18788LIBS="-ldl $LIBS" 18789cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18790/* end confdefs.h. */ 18791 18792/* Override any GCC internal prototype to avoid an error. 18793 Use char because int might match the return type of a GCC 18794 builtin and then its argument prototype would still apply. */ 18795char dlopen (); 18796int 18797main (void) 18798{ 18799return dlopen (); 18800 ; 18801 return 0; 18802} 18803_ACEOF 18804if ac_fn_c_try_link "$LINENO" 18805then : 18806 ac_cv_lib_dl_dlopen=yes 18807else $as_nop 18808 ac_cv_lib_dl_dlopen=no 18809fi 18810rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18811 conftest$ac_exeext conftest.$ac_ext 18812LIBS=$ac_check_lib_save_LIBS 18813fi 18814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18815printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18816if test "x$ac_cv_lib_dl_dlopen" = xyes 18817then : 18818 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18819else $as_nop 18820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18821printf %s "checking for dlopen in -lsvld... " >&6; } 18822if test ${ac_cv_lib_svld_dlopen+y} 18823then : 18824 printf %s "(cached) " >&6 18825else $as_nop 18826 ac_check_lib_save_LIBS=$LIBS 18827LIBS="-lsvld $LIBS" 18828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18829/* end confdefs.h. */ 18830 18831/* Override any GCC internal prototype to avoid an error. 18832 Use char because int might match the return type of a GCC 18833 builtin and then its argument prototype would still apply. */ 18834char dlopen (); 18835int 18836main (void) 18837{ 18838return dlopen (); 18839 ; 18840 return 0; 18841} 18842_ACEOF 18843if ac_fn_c_try_link "$LINENO" 18844then : 18845 ac_cv_lib_svld_dlopen=yes 18846else $as_nop 18847 ac_cv_lib_svld_dlopen=no 18848fi 18849rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18850 conftest$ac_exeext conftest.$ac_ext 18851LIBS=$ac_check_lib_save_LIBS 18852fi 18853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18854printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 18855if test "x$ac_cv_lib_svld_dlopen" = xyes 18856then : 18857 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18858else $as_nop 18859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18860printf %s "checking for dld_link in -ldld... " >&6; } 18861if test ${ac_cv_lib_dld_dld_link+y} 18862then : 18863 printf %s "(cached) " >&6 18864else $as_nop 18865 ac_check_lib_save_LIBS=$LIBS 18866LIBS="-ldld $LIBS" 18867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18868/* end confdefs.h. */ 18869 18870/* Override any GCC internal prototype to avoid an error. 18871 Use char because int might match the return type of a GCC 18872 builtin and then its argument prototype would still apply. */ 18873char dld_link (); 18874int 18875main (void) 18876{ 18877return dld_link (); 18878 ; 18879 return 0; 18880} 18881_ACEOF 18882if ac_fn_c_try_link "$LINENO" 18883then : 18884 ac_cv_lib_dld_dld_link=yes 18885else $as_nop 18886 ac_cv_lib_dld_dld_link=no 18887fi 18888rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18889 conftest$ac_exeext conftest.$ac_ext 18890LIBS=$ac_check_lib_save_LIBS 18891fi 18892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18893printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 18894if test "x$ac_cv_lib_dld_dld_link" = xyes 18895then : 18896 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18897fi 18898 18899 18900fi 18901 18902 18903fi 18904 18905 18906fi 18907 18908 18909fi 18910 18911 18912fi 18913 18914 ;; 18915 esac 18916 18917 if test no = "$lt_cv_dlopen"; then 18918 enable_dlopen=no 18919 else 18920 enable_dlopen=yes 18921 fi 18922 18923 case $lt_cv_dlopen in 18924 dlopen) 18925 save_CPPFLAGS=$CPPFLAGS 18926 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18927 18928 save_LDFLAGS=$LDFLAGS 18929 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18930 18931 save_LIBS=$LIBS 18932 LIBS="$lt_cv_dlopen_libs $LIBS" 18933 18934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18935printf %s "checking whether a program can dlopen itself... " >&6; } 18936if test ${lt_cv_dlopen_self+y} 18937then : 18938 printf %s "(cached) " >&6 18939else $as_nop 18940 if test yes = "$cross_compiling"; then : 18941 lt_cv_dlopen_self=cross 18942else 18943 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18944 lt_status=$lt_dlunknown 18945 cat > conftest.$ac_ext <<_LT_EOF 18946#line $LINENO "configure" 18947#include "confdefs.h" 18948 18949#if HAVE_DLFCN_H 18950#include <dlfcn.h> 18951#endif 18952 18953#include <stdio.h> 18954 18955#ifdef RTLD_GLOBAL 18956# define LT_DLGLOBAL RTLD_GLOBAL 18957#else 18958# ifdef DL_GLOBAL 18959# define LT_DLGLOBAL DL_GLOBAL 18960# else 18961# define LT_DLGLOBAL 0 18962# endif 18963#endif 18964 18965/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18966 find out it does not work in some platform. */ 18967#ifndef LT_DLLAZY_OR_NOW 18968# ifdef RTLD_LAZY 18969# define LT_DLLAZY_OR_NOW RTLD_LAZY 18970# else 18971# ifdef DL_LAZY 18972# define LT_DLLAZY_OR_NOW DL_LAZY 18973# else 18974# ifdef RTLD_NOW 18975# define LT_DLLAZY_OR_NOW RTLD_NOW 18976# else 18977# ifdef DL_NOW 18978# define LT_DLLAZY_OR_NOW DL_NOW 18979# else 18980# define LT_DLLAZY_OR_NOW 0 18981# endif 18982# endif 18983# endif 18984# endif 18985#endif 18986 18987/* When -fvisibility=hidden is used, assume the code has been annotated 18988 correspondingly for the symbols needed. */ 18989#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18990int fnord () __attribute__((visibility("default"))); 18991#endif 18992 18993int fnord () { return 42; } 18994int main () 18995{ 18996 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18997 int status = $lt_dlunknown; 18998 18999 if (self) 19000 { 19001 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19002 else 19003 { 19004 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19005 else puts (dlerror ()); 19006 } 19007 /* dlclose (self); */ 19008 } 19009 else 19010 puts (dlerror ()); 19011 19012 return status; 19013} 19014_LT_EOF 19015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19016 (eval $ac_link) 2>&5 19017 ac_status=$? 19018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19019 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19020 (./conftest; exit; ) >&5 2>/dev/null 19021 lt_status=$? 19022 case x$lt_status in 19023 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19024 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19025 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19026 esac 19027 else : 19028 # compilation failed 19029 lt_cv_dlopen_self=no 19030 fi 19031fi 19032rm -fr conftest* 19033 19034 19035fi 19036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19037printf "%s\n" "$lt_cv_dlopen_self" >&6; } 19038 19039 if test yes = "$lt_cv_dlopen_self"; then 19040 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19042printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19043if test ${lt_cv_dlopen_self_static+y} 19044then : 19045 printf %s "(cached) " >&6 19046else $as_nop 19047 if test yes = "$cross_compiling"; then : 19048 lt_cv_dlopen_self_static=cross 19049else 19050 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19051 lt_status=$lt_dlunknown 19052 cat > conftest.$ac_ext <<_LT_EOF 19053#line $LINENO "configure" 19054#include "confdefs.h" 19055 19056#if HAVE_DLFCN_H 19057#include <dlfcn.h> 19058#endif 19059 19060#include <stdio.h> 19061 19062#ifdef RTLD_GLOBAL 19063# define LT_DLGLOBAL RTLD_GLOBAL 19064#else 19065# ifdef DL_GLOBAL 19066# define LT_DLGLOBAL DL_GLOBAL 19067# else 19068# define LT_DLGLOBAL 0 19069# endif 19070#endif 19071 19072/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19073 find out it does not work in some platform. */ 19074#ifndef LT_DLLAZY_OR_NOW 19075# ifdef RTLD_LAZY 19076# define LT_DLLAZY_OR_NOW RTLD_LAZY 19077# else 19078# ifdef DL_LAZY 19079# define LT_DLLAZY_OR_NOW DL_LAZY 19080# else 19081# ifdef RTLD_NOW 19082# define LT_DLLAZY_OR_NOW RTLD_NOW 19083# else 19084# ifdef DL_NOW 19085# define LT_DLLAZY_OR_NOW DL_NOW 19086# else 19087# define LT_DLLAZY_OR_NOW 0 19088# endif 19089# endif 19090# endif 19091# endif 19092#endif 19093 19094/* When -fvisibility=hidden is used, assume the code has been annotated 19095 correspondingly for the symbols needed. */ 19096#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19097int fnord () __attribute__((visibility("default"))); 19098#endif 19099 19100int fnord () { return 42; } 19101int main () 19102{ 19103 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19104 int status = $lt_dlunknown; 19105 19106 if (self) 19107 { 19108 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19109 else 19110 { 19111 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19112 else puts (dlerror ()); 19113 } 19114 /* dlclose (self); */ 19115 } 19116 else 19117 puts (dlerror ()); 19118 19119 return status; 19120} 19121_LT_EOF 19122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19123 (eval $ac_link) 2>&5 19124 ac_status=$? 19125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19126 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19127 (./conftest; exit; ) >&5 2>/dev/null 19128 lt_status=$? 19129 case x$lt_status in 19130 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19131 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19132 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19133 esac 19134 else : 19135 # compilation failed 19136 lt_cv_dlopen_self_static=no 19137 fi 19138fi 19139rm -fr conftest* 19140 19141 19142fi 19143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19144printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19145 fi 19146 19147 CPPFLAGS=$save_CPPFLAGS 19148 LDFLAGS=$save_LDFLAGS 19149 LIBS=$save_LIBS 19150 ;; 19151 esac 19152 19153 case $lt_cv_dlopen_self in 19154 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19155 *) enable_dlopen_self=unknown ;; 19156 esac 19157 19158 case $lt_cv_dlopen_self_static in 19159 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19160 *) enable_dlopen_self_static=unknown ;; 19161 esac 19162fi 19163 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180striplib= 19181old_striplib= 19182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19183printf %s "checking whether stripping libraries is possible... " >&6; } 19184if test -z "$STRIP"; then 19185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19186printf "%s\n" "no" >&6; } 19187else 19188 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19189 old_striplib="$STRIP --strip-debug" 19190 striplib="$STRIP --strip-unneeded" 19191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19192printf "%s\n" "yes" >&6; } 19193 else 19194 case $host_os in 19195 darwin*) 19196 # FIXME - insert some real tests, host_os isn't really good enough 19197 striplib="$STRIP -x" 19198 old_striplib="$STRIP -S" 19199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19200printf "%s\n" "yes" >&6; } 19201 ;; 19202 freebsd*) 19203 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 19204 old_striplib="$STRIP --strip-debug" 19205 striplib="$STRIP --strip-unneeded" 19206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19207printf "%s\n" "yes" >&6; } 19208 else 19209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19210printf "%s\n" "no" >&6; } 19211 fi 19212 ;; 19213 *) 19214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19215printf "%s\n" "no" >&6; } 19216 ;; 19217 esac 19218 fi 19219fi 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229 19230 19231 19232 # Report what library types will actually be built 19233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19234printf %s "checking if libtool supports shared libraries... " >&6; } 19235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19236printf "%s\n" "$can_build_shared" >&6; } 19237 19238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19239printf %s "checking whether to build shared libraries... " >&6; } 19240 test no = "$can_build_shared" && enable_shared=no 19241 19242 # On AIX, shared libraries and static libraries use the same namespace, and 19243 # are all built from PIC. 19244 case $host_os in 19245 aix3*) 19246 test yes = "$enable_shared" && enable_static=no 19247 if test -n "$RANLIB"; then 19248 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19249 postinstall_cmds='$RANLIB $lib' 19250 fi 19251 ;; 19252 19253 aix[4-9]*) 19254 if test ia64 != "$host_cpu"; then 19255 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19256 yes,aix,yes) ;; # shared object as lib.so file only 19257 yes,svr4,*) ;; # shared object as lib.so archive member only 19258 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19259 esac 19260 fi 19261 ;; 19262 esac 19263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19264printf "%s\n" "$enable_shared" >&6; } 19265 19266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19267printf %s "checking whether to build static libraries... " >&6; } 19268 # Make sure either enable_shared or enable_static is yes. 19269 test yes = "$enable_shared" || enable_static=yes 19270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19271printf "%s\n" "$enable_static" >&6; } 19272 19273 19274 19275 19276fi 19277ac_ext=c 19278ac_cpp='$CPP $CPPFLAGS' 19279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19281ac_compiler_gnu=$ac_cv_c_compiler_gnu 19282 19283CC=$lt_save_CC 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 ac_config_commands="$ac_config_commands libtool" 19300 19301 19302 19303 19304# Only expand once: 19305 19306 19307 19308 19309 19310# Define a configure option for an alternate module directory 19311 19312# Check whether --with-xorg-module-dir was given. 19313if test ${with_xorg_module_dir+y} 19314then : 19315 withval=$with_xorg_module_dir; moduledir="$withval" 19316else $as_nop 19317 moduledir="$libdir/xorg/modules" 19318fi 19319 19320 19321# Check whether --enable-dri was given. 19322if test ${enable_dri+y} 19323then : 19324 enableval=$enable_dri; DRI="$enableval" 19325else $as_nop 19326 DRI=auto 19327fi 19328 19329# Check whether --enable-exa was given. 19330if test ${enable_exa+y} 19331then : 19332 enableval=$enable_exa; EXA="$enableval" 19333else $as_nop 19334 EXA=yes 19335fi 19336 19337 19338# Store the list of server defined optional extensions in REQUIRED_MODULES 19339 19340 19341 SAVE_CFLAGS="$CFLAGS" 19342 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19344/* end confdefs.h. */ 19345 19346#include "xorg-server.h" 19347#if !defined RANDR 19348#error RANDR not defined 19349#endif 19350 19351int 19352main (void) 19353{ 19354 19355 ; 19356 return 0; 19357} 19358_ACEOF 19359if ac_fn_c_try_compile "$LINENO" 19360then : 19361 _EXT_CHECK=yes 19362else $as_nop 19363 _EXT_CHECK=no 19364fi 19365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19366 CFLAGS="$SAVE_CFLAGS" 19367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19368printf %s "checking if RANDR is defined... " >&6; } 19369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19370printf "%s\n" "$_EXT_CHECK" >&6; } 19371 if test "$_EXT_CHECK" != no; then 19372 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19373 fi 19374 19375 19376 19377 SAVE_CFLAGS="$CFLAGS" 19378 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19380/* end confdefs.h. */ 19381 19382#include "xorg-server.h" 19383#if !defined RENDER 19384#error RENDER not defined 19385#endif 19386 19387int 19388main (void) 19389{ 19390 19391 ; 19392 return 0; 19393} 19394_ACEOF 19395if ac_fn_c_try_compile "$LINENO" 19396then : 19397 _EXT_CHECK=yes 19398else $as_nop 19399 _EXT_CHECK=no 19400fi 19401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19402 CFLAGS="$SAVE_CFLAGS" 19403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19404printf %s "checking if RENDER is defined... " >&6; } 19405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19406printf "%s\n" "$_EXT_CHECK" >&6; } 19407 if test "$_EXT_CHECK" != no; then 19408 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19409 fi 19410 19411 19412 19413 SAVE_CFLAGS="$CFLAGS" 19414 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19416/* end confdefs.h. */ 19417 19418#include "xorg-server.h" 19419#if !defined XV 19420#error XV not defined 19421#endif 19422 19423int 19424main (void) 19425{ 19426 19427 ; 19428 return 0; 19429} 19430_ACEOF 19431if ac_fn_c_try_compile "$LINENO" 19432then : 19433 _EXT_CHECK=yes 19434else $as_nop 19435 _EXT_CHECK=no 19436fi 19437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19438 CFLAGS="$SAVE_CFLAGS" 19439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 19440printf %s "checking if XV is defined... " >&6; } 19441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19442printf "%s\n" "$_EXT_CHECK" >&6; } 19443 if test "$_EXT_CHECK" != no; then 19444 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 19445 fi 19446 19447 19448 19449 SAVE_CFLAGS="$CFLAGS" 19450 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19452/* end confdefs.h. */ 19453 19454#include "xorg-server.h" 19455#if !defined DPMSExtension 19456#error DPMSExtension not defined 19457#endif 19458 19459int 19460main (void) 19461{ 19462 19463 ; 19464 return 0; 19465} 19466_ACEOF 19467if ac_fn_c_try_compile "$LINENO" 19468then : 19469 _EXT_CHECK=yes 19470else $as_nop 19471 _EXT_CHECK=no 19472fi 19473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19474 CFLAGS="$SAVE_CFLAGS" 19475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 19476printf %s "checking if DPMSExtension is defined... " >&6; } 19477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19478printf "%s\n" "$_EXT_CHECK" >&6; } 19479 if test "$_EXT_CHECK" != no; then 19480 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19481 fi 19482 19483 19484# Obtain compiler/linker options for the driver dependencies 19485 19486pkg_failed=no 19487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19488printf %s "checking for XORG... " >&6; } 19489 19490if test -n "$XORG_CFLAGS"; then 19491 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19492 elif test -n "$PKG_CONFIG"; then 19493 if test -n "$PKG_CONFIG" && \ 19494 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19495 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5 19496 ac_status=$? 19497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19498 test $ac_status = 0; }; then 19499 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19500 test "x$?" != "x0" && pkg_failed=yes 19501else 19502 pkg_failed=yes 19503fi 19504 else 19505 pkg_failed=untried 19506fi 19507if test -n "$XORG_LIBS"; then 19508 pkg_cv_XORG_LIBS="$XORG_LIBS" 19509 elif test -n "$PKG_CONFIG"; then 19510 if test -n "$PKG_CONFIG" && \ 19511 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19512 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5 19513 ac_status=$? 19514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19515 test $ac_status = 0; }; then 19516 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19517 test "x$?" != "x0" && pkg_failed=yes 19518else 19519 pkg_failed=yes 19520fi 19521 else 19522 pkg_failed=untried 19523fi 19524 19525 19526 19527if test $pkg_failed = yes; then 19528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19529printf "%s\n" "no" >&6; } 19530 19531if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19532 _pkg_short_errors_supported=yes 19533else 19534 _pkg_short_errors_supported=no 19535fi 19536 if test $_pkg_short_errors_supported = yes; then 19537 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19538 else 19539 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19540 fi 19541 # Put the nasty error message in config.log where it belongs 19542 echo "$XORG_PKG_ERRORS" >&5 19543 19544 as_fn_error $? "Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met: 19545 19546$XORG_PKG_ERRORS 19547 19548Consider adjusting the PKG_CONFIG_PATH environment variable if you 19549installed software in a non-standard prefix. 19550 19551Alternatively, you may set the environment variables XORG_CFLAGS 19552and XORG_LIBS to avoid the need to call pkg-config. 19553See the pkg-config man page for more details." "$LINENO" 5 19554elif test $pkg_failed = untried; then 19555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19556printf "%s\n" "no" >&6; } 19557 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19558printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19559as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19560is in your PATH or set the PKG_CONFIG environment variable to the full 19561path to pkg-config. 19562 19563Alternatively, you may set the environment variables XORG_CFLAGS 19564and XORG_LIBS to avoid the need to call pkg-config. 19565See the pkg-config man page for more details. 19566 19567To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19568See \`config.log' for more details" "$LINENO" 5; } 19569else 19570 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19571 XORG_LIBS=$pkg_cv_XORG_LIBS 19572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19573printf "%s\n" "yes" >&6; } 19574 19575fi 19576sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 19577 19578# Checks for libraries. 19579 19580if test "x$DRI" != xno; then 19581 if test "$cross_compiling" = no; then 19582 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh` 19583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5 19584printf %s "checking for ${sdkdir}/dri.h... " >&6; } 19585if eval test \${$as_ac_File+y} 19586then : 19587 printf %s "(cached) " >&6 19588else $as_nop 19589 test "$cross_compiling" = yes && 19590 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19591if test -r "${sdkdir}/dri.h"; then 19592 eval "$as_ac_File=yes" 19593else 19594 eval "$as_ac_File=no" 19595fi 19596fi 19597eval ac_res=\$$as_ac_File 19598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19599printf "%s\n" "$ac_res" >&6; } 19600if eval test \"x\$"$as_ac_File"\" = x"yes" 19601then : 19602 have_dri_h="yes" 19603else $as_nop 19604 have_dri_h="no" 19605fi 19606 19607 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh` 19608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5 19609printf %s "checking for ${sdkdir}/sarea.h... " >&6; } 19610if eval test \${$as_ac_File+y} 19611then : 19612 printf %s "(cached) " >&6 19613else $as_nop 19614 test "$cross_compiling" = yes && 19615 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19616if test -r "${sdkdir}/sarea.h"; then 19617 eval "$as_ac_File=yes" 19618else 19619 eval "$as_ac_File=no" 19620fi 19621fi 19622eval ac_res=\$$as_ac_File 19623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19624printf "%s\n" "$ac_res" >&6; } 19625if eval test \"x\$"$as_ac_File"\" = x"yes" 19626then : 19627 have_sarea_h="yes" 19628else $as_nop 19629 have_sarea_h="no" 19630fi 19631 19632 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh` 19633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5 19634printf %s "checking for ${sdkdir}/dristruct.h... " >&6; } 19635if eval test \${$as_ac_File+y} 19636then : 19637 printf %s "(cached) " >&6 19638else $as_nop 19639 test "$cross_compiling" = yes && 19640 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19641if test -r "${sdkdir}/dristruct.h"; then 19642 eval "$as_ac_File=yes" 19643else 19644 eval "$as_ac_File=no" 19645fi 19646fi 19647eval ac_res=\$$as_ac_File 19648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19649printf "%s\n" "$ac_res" >&6; } 19650if eval test \"x\$"$as_ac_File"\" = x"yes" 19651then : 19652 have_dristruct_h="yes" 19653else $as_nop 19654 have_dristruct_h="no" 19655fi 19656 19657 else 19658 have_dri_h="yes" 19659 have_sarea_h="yes" 19660 have_dristruct_h="yes" 19661 fi 19662fi 19663 19664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5 19665printf %s "checking whether to include DRI support... " >&6; } 19666if test "x$DRI" = xauto; then 19667 if test "x$have_dri_h" = xyes && \ 19668 test "x$have_sarea_h" = xyes && \ 19669 test "x$have_dristruct_h" = xyes; then 19670 DRI="yes" 19671 else 19672 DRI="no" 19673 fi 19674fi 19675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5 19676printf "%s\n" "$DRI" >&6; } 19677 19678 if test "x$DRI" = xyes; then 19679 DRI_TRUE= 19680 DRI_FALSE='#' 19681else 19682 DRI_TRUE='#' 19683 DRI_FALSE= 19684fi 19685 19686if test "x$DRI" = xyes; then 19687 19688pkg_failed=no 19689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5 19690printf %s "checking for DRI... " >&6; } 19691 19692if test -n "$DRI_CFLAGS"; then 19693 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 19694 elif test -n "$PKG_CONFIG"; then 19695 if test -n "$PKG_CONFIG" && \ 19696 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5 19697 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 19698 ac_status=$? 19699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19700 test $ac_status = 0; }; then 19701 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null` 19702 test "x$?" != "x0" && pkg_failed=yes 19703else 19704 pkg_failed=yes 19705fi 19706 else 19707 pkg_failed=untried 19708fi 19709if test -n "$DRI_LIBS"; then 19710 pkg_cv_DRI_LIBS="$DRI_LIBS" 19711 elif test -n "$PKG_CONFIG"; then 19712 if test -n "$PKG_CONFIG" && \ 19713 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5 19714 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 19715 ac_status=$? 19716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19717 test $ac_status = 0; }; then 19718 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null` 19719 test "x$?" != "x0" && pkg_failed=yes 19720else 19721 pkg_failed=yes 19722fi 19723 else 19724 pkg_failed=untried 19725fi 19726 19727 19728 19729if test $pkg_failed = yes; then 19730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19731printf "%s\n" "no" >&6; } 19732 19733if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19734 _pkg_short_errors_supported=yes 19735else 19736 _pkg_short_errors_supported=no 19737fi 19738 if test $_pkg_short_errors_supported = yes; then 19739 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1` 19740 else 19741 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1` 19742 fi 19743 # Put the nasty error message in config.log where it belongs 19744 echo "$DRI_PKG_ERRORS" >&5 19745 19746 as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met: 19747 19748$DRI_PKG_ERRORS 19749 19750Consider adjusting the PKG_CONFIG_PATH environment variable if you 19751installed software in a non-standard prefix. 19752 19753Alternatively, you may set the environment variables DRI_CFLAGS 19754and DRI_LIBS to avoid the need to call pkg-config. 19755See the pkg-config man page for more details." "$LINENO" 5 19756elif test $pkg_failed = untried; then 19757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19758printf "%s\n" "no" >&6; } 19759 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19760printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19761as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19762is in your PATH or set the PKG_CONFIG environment variable to the full 19763path to pkg-config. 19764 19765Alternatively, you may set the environment variables DRI_CFLAGS 19766and DRI_LIBS to avoid the need to call pkg-config. 19767See the pkg-config man page for more details. 19768 19769To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19770See \`config.log' for more details" "$LINENO" 5; } 19771else 19772 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 19773 DRI_LIBS=$pkg_cv_DRI_LIBS 19774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19775printf "%s\n" "yes" >&6; } 19776 19777fi 19778 19779printf "%s\n" "#define MGADRI 1" >>confdefs.h 19780 19781 19782printf "%s\n" "#define MGADRI_DEVEL 1" >>confdefs.h 19783 19784fi 19785 19786save_CFLAGS="$CFLAGS" 19787CFLAGS="$XORG_CFLAGS" 19788ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 19789" "$ac_c_undeclared_builtin_options" "CFLAGS" 19790if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes 19791then : 19792 XSERVER_LIBPCIACCESS=yes 19793else $as_nop 19794 XSERVER_LIBPCIACCESS=no 19795fi 19796CFLAGS="$save_CFLAGS" 19797 19798save_CFLAGS="$CFLAGS" 19799CFLAGS="$XORG_CFLAGS" 19800ac_fn_check_decl "$LINENO" "xf86ModeBandwidth" "ac_cv_have_decl_xf86ModeBandwidth" "#include <X11/extensions/randr.h> 19801 #include \"xorg-server.h\" 19802 #include \"xf86Modes.h\" 19803" "$ac_c_undeclared_builtin_options" "CFLAGS" 19804if test "x$ac_cv_have_decl_xf86ModeBandwidth" = xyes 19805then : 19806 19807printf "%s\n" "#define HAVE_XF86MODEBANDWIDTH 1" >>confdefs.h 19808 19809fi 19810CFLAGS="$save_CFLAGS" 19811 19812if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19813 19814pkg_failed=no 19815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19816printf %s "checking for PCIACCESS... " >&6; } 19817 19818if test -n "$PCIACCESS_CFLAGS"; then 19819 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19820 elif test -n "$PKG_CONFIG"; then 19821 if test -n "$PKG_CONFIG" && \ 19822 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 19823 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 19824 ac_status=$? 19825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19826 test $ac_status = 0; }; then 19827 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 19828 test "x$?" != "x0" && pkg_failed=yes 19829else 19830 pkg_failed=yes 19831fi 19832 else 19833 pkg_failed=untried 19834fi 19835if test -n "$PCIACCESS_LIBS"; then 19836 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 19837 elif test -n "$PKG_CONFIG"; then 19838 if test -n "$PKG_CONFIG" && \ 19839 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 19840 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 19841 ac_status=$? 19842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19843 test $ac_status = 0; }; then 19844 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 19845 test "x$?" != "x0" && pkg_failed=yes 19846else 19847 pkg_failed=yes 19848fi 19849 else 19850 pkg_failed=untried 19851fi 19852 19853 19854 19855if test $pkg_failed = yes; then 19856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19857printf "%s\n" "no" >&6; } 19858 19859if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19860 _pkg_short_errors_supported=yes 19861else 19862 _pkg_short_errors_supported=no 19863fi 19864 if test $_pkg_short_errors_supported = yes; then 19865 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19866 else 19867 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19868 fi 19869 # Put the nasty error message in config.log where it belongs 19870 echo "$PCIACCESS_PKG_ERRORS" >&5 19871 19872 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 19873 19874$PCIACCESS_PKG_ERRORS 19875 19876Consider adjusting the PKG_CONFIG_PATH environment variable if you 19877installed software in a non-standard prefix. 19878 19879Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19880and PCIACCESS_LIBS to avoid the need to call pkg-config. 19881See the pkg-config man page for more details." "$LINENO" 5 19882elif test $pkg_failed = untried; then 19883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19884printf "%s\n" "no" >&6; } 19885 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19886printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19887as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19888is in your PATH or set the PKG_CONFIG environment variable to the full 19889path to pkg-config. 19890 19891Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19892and PCIACCESS_LIBS to avoid the need to call pkg-config. 19893See the pkg-config man page for more details. 19894 19895To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19896See \`config.log' for more details" "$LINENO" 5; } 19897else 19898 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 19899 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 19900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19901printf "%s\n" "yes" >&6; } 19902 19903fi 19904fi 19905 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19906 XSERVER_LIBPCIACCESS_TRUE= 19907 XSERVER_LIBPCIACCESS_FALSE='#' 19908else 19909 XSERVER_LIBPCIACCESS_TRUE='#' 19910 XSERVER_LIBPCIACCESS_FALSE= 19911fi 19912 19913 19914 19915# Check whether --enable-xaa was given. 19916if test ${enable_xaa+y} 19917then : 19918 enableval=$enable_xaa; XAA="$enableval" 19919else $as_nop 19920 XAA=auto 19921fi 19922 19923if test "x$XAA" != xno; then 19924 save_CFLAGS=$CFLAGS 19925 save_CPPFLAGS=$CPPFLAGS 19926 CFLAGS=$XORG_CFLAGS 19927 CPPFLAGS="$XORG_CFLAGS" 19928 for ac_header in xaa.h 19929do : 19930 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 19931if test "x$ac_cv_header_xaa_h" = xyes 19932then : 19933 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h 19934 XAA=yes 19935else $as_nop 19936 XAA=no 19937fi 19938 19939done 19940 CFLAGS=$save_CFLAGS 19941 CPPFLAGS=$save_CPPFLAGS 19942fi 19943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 19944printf %s "checking whether to include XAA support... " >&6; } 19945 if test "x$XAA" = xyes; then 19946 XAA_TRUE= 19947 XAA_FALSE='#' 19948else 19949 XAA_TRUE='#' 19950 XAA_FALSE= 19951fi 19952 19953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 19954printf "%s\n" "$XAA" >&6; } 19955if test "x$XAA" = xyes; then 19956 19957printf "%s\n" "#define USE_XAA 1" >>confdefs.h 19958 19959fi 19960 19961# Properly handle EXA. 19962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5 19963printf %s "checking whether to enable EXA support... " >&6; } 19964if test "x$EXA" = xyes; then 19965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19966printf "%s\n" "yes" >&6; } 19967 19968 SAVE_CPPFLAGS="$CPPFLAGS" 19969 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19970 for ac_header in exa.h 19971do : 19972 ac_fn_c_check_header_compile "$LINENO" "exa.h" "ac_cv_header_exa_h" "#include \"xorg-server.h\" 19973" 19974if test "x$ac_cv_header_exa_h" = xyes 19975then : 19976 printf "%s\n" "#define HAVE_EXA_H 1" >>confdefs.h 19977 have_exa_h="yes" 19978else $as_nop 19979 have_exa_h="no" 19980fi 19981 19982done 19983 CPPFLAGS="$SAVE_CPPFLAGS" 19984else 19985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19986printf "%s\n" "no" >&6; } 19987fi 19988 19989SAVE_CPPFLAGS="$CPPFLAGS" 19990CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19991if test "x$have_exa_h" = xyes; then 19992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5 19993printf %s "checking whether EXA version is at least 2.0.0... " >&6; } 19994 ac_ext=c 19995ac_cpp='$CPP $CPPFLAGS' 19996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19998ac_compiler_gnu=$ac_cv_c_compiler_gnu 19999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 20000printf %s "checking how to run the C preprocessor... " >&6; } 20001# On Suns, sometimes $CPP names a directory. 20002if test -n "$CPP" && test -d "$CPP"; then 20003 CPP= 20004fi 20005if test -z "$CPP"; then 20006 if test ${ac_cv_prog_CPP+y} 20007then : 20008 printf %s "(cached) " >&6 20009else $as_nop 20010 # Double quotes because $CC needs to be expanded 20011 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 20012 do 20013 ac_preproc_ok=false 20014for ac_c_preproc_warn_flag in '' yes 20015do 20016 # Use a header file that comes with gcc, so configuring glibc 20017 # with a fresh cross-compiler works. 20018 # On the NeXT, cc -E runs the code through the compiler's parser, 20019 # not just through cpp. "Syntax error" is here to catch this case. 20020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20021/* end confdefs.h. */ 20022#include <limits.h> 20023 Syntax error 20024_ACEOF 20025if ac_fn_c_try_cpp "$LINENO" 20026then : 20027 20028else $as_nop 20029 # Broken: fails on valid input. 20030continue 20031fi 20032rm -f conftest.err conftest.i conftest.$ac_ext 20033 20034 # OK, works on sane cases. Now check whether nonexistent headers 20035 # can be detected and how. 20036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20037/* end confdefs.h. */ 20038#include <ac_nonexistent.h> 20039_ACEOF 20040if ac_fn_c_try_cpp "$LINENO" 20041then : 20042 # Broken: success on invalid input. 20043continue 20044else $as_nop 20045 # Passes both tests. 20046ac_preproc_ok=: 20047break 20048fi 20049rm -f conftest.err conftest.i conftest.$ac_ext 20050 20051done 20052# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20053rm -f conftest.i conftest.err conftest.$ac_ext 20054if $ac_preproc_ok 20055then : 20056 break 20057fi 20058 20059 done 20060 ac_cv_prog_CPP=$CPP 20061 20062fi 20063 CPP=$ac_cv_prog_CPP 20064else 20065 ac_cv_prog_CPP=$CPP 20066fi 20067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 20068printf "%s\n" "$CPP" >&6; } 20069ac_preproc_ok=false 20070for ac_c_preproc_warn_flag in '' yes 20071do 20072 # Use a header file that comes with gcc, so configuring glibc 20073 # with a fresh cross-compiler works. 20074 # On the NeXT, cc -E runs the code through the compiler's parser, 20075 # not just through cpp. "Syntax error" is here to catch this case. 20076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20077/* end confdefs.h. */ 20078#include <limits.h> 20079 Syntax error 20080_ACEOF 20081if ac_fn_c_try_cpp "$LINENO" 20082then : 20083 20084else $as_nop 20085 # Broken: fails on valid input. 20086continue 20087fi 20088rm -f conftest.err conftest.i conftest.$ac_ext 20089 20090 # OK, works on sane cases. Now check whether nonexistent headers 20091 # can be detected and how. 20092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20093/* end confdefs.h. */ 20094#include <ac_nonexistent.h> 20095_ACEOF 20096if ac_fn_c_try_cpp "$LINENO" 20097then : 20098 # Broken: success on invalid input. 20099continue 20100else $as_nop 20101 # Passes both tests. 20102ac_preproc_ok=: 20103break 20104fi 20105rm -f conftest.err conftest.i conftest.$ac_ext 20106 20107done 20108# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20109rm -f conftest.i conftest.err conftest.$ac_ext 20110if $ac_preproc_ok 20111then : 20112 20113else $as_nop 20114 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20115printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20116as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 20117See \`config.log' for more details" "$LINENO" 5; } 20118fi 20119 20120ac_ext=c 20121ac_cpp='$CPP $CPPFLAGS' 20122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20124ac_compiler_gnu=$ac_cv_c_compiler_gnu 20125 20126 20127cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20128/* end confdefs.h. */ 20129 20130#include "xorg-server.h" 20131#include "exa.h" 20132#if EXA_VERSION_MAJOR < 2 20133#error OLD EXA! 20134#endif 20135 20136int 20137main (void) 20138{ 20139 20140 ; 20141 return 0; 20142} 20143_ACEOF 20144if ac_fn_c_try_cpp "$LINENO" 20145then : 20146 USE_EXA=yes 20147else $as_nop 20148 USE_EXA=no 20149fi 20150rm -f conftest.err conftest.i conftest.$ac_ext 20151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5 20152printf "%s\n" "$USE_EXA" >&6; } 20153 20154 if test "x$USE_EXA" = xyes; then 20155 20156printf "%s\n" "#define USE_EXA 1" >>confdefs.h 20157 20158 fi 20159fi 20160CPPFLAGS="$SAVE_CPPFLAGS" 20161 20162 if test "x$USE_EXA" = xyes; then 20163 USE_EXA_TRUE= 20164 USE_EXA_FALSE='#' 20165else 20166 USE_EXA_TRUE='#' 20167 USE_EXA_FALSE= 20168fi 20169 20170 20171 20172 20173DRIVER_NAME=mga 20174 20175 20176ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile" 20177 20178cat >confcache <<\_ACEOF 20179# This file is a shell script that caches the results of configure 20180# tests run on this system so they can be shared between configure 20181# scripts and configure runs, see configure's option --config-cache. 20182# It is not useful on other systems. If it contains results you don't 20183# want to keep, you may remove or edit it. 20184# 20185# config.status only pays attention to the cache file if you give it 20186# the --recheck option to rerun configure. 20187# 20188# `ac_cv_env_foo' variables (set or unset) will be overridden when 20189# loading this file, other *unset* `ac_cv_foo' will be assigned the 20190# following values. 20191 20192_ACEOF 20193 20194# The following way of writing the cache mishandles newlines in values, 20195# but we know of no workaround that is simple, portable, and efficient. 20196# So, we kill variables containing newlines. 20197# Ultrix sh set writes to stderr and can't be redirected directly, 20198# and sets the high bit in the cache file unless we assign to the vars. 20199( 20200 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20201 eval ac_val=\$$ac_var 20202 case $ac_val in #( 20203 *${as_nl}*) 20204 case $ac_var in #( 20205 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20206printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20207 esac 20208 case $ac_var in #( 20209 _ | IFS | as_nl) ;; #( 20210 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20211 *) { eval $ac_var=; unset $ac_var;} ;; 20212 esac ;; 20213 esac 20214 done 20215 20216 (set) 2>&1 | 20217 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20218 *${as_nl}ac_space=\ *) 20219 # `set' does not quote correctly, so add quotes: double-quote 20220 # substitution turns \\\\ into \\, and sed turns \\ into \. 20221 sed -n \ 20222 "s/'/'\\\\''/g; 20223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20224 ;; #( 20225 *) 20226 # `set' quotes correctly as required by POSIX, so do not add quotes. 20227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20228 ;; 20229 esac | 20230 sort 20231) | 20232 sed ' 20233 /^ac_cv_env_/b end 20234 t clear 20235 :clear 20236 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20237 t end 20238 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20239 :end' >>confcache 20240if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20241 if test -w "$cache_file"; then 20242 if test "x$cache_file" != "x/dev/null"; then 20243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20244printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20245 if test ! -f "$cache_file" || test -h "$cache_file"; then 20246 cat confcache >"$cache_file" 20247 else 20248 case $cache_file in #( 20249 */* | ?:*) 20250 mv -f confcache "$cache_file"$$ && 20251 mv -f "$cache_file"$$ "$cache_file" ;; #( 20252 *) 20253 mv -f confcache "$cache_file" ;; 20254 esac 20255 fi 20256 fi 20257 else 20258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20259printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20260 fi 20261fi 20262rm -f confcache 20263 20264test "x$prefix" = xNONE && prefix=$ac_default_prefix 20265# Let make expand exec_prefix. 20266test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20267 20268DEFS=-DHAVE_CONFIG_H 20269 20270ac_libobjs= 20271ac_ltlibobjs= 20272U= 20273for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20274 # 1. Remove the extension, and $U if already installed. 20275 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20276 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20277 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20278 # will be set to the directory where LIBOBJS objects are built. 20279 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20280 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20281done 20282LIBOBJS=$ac_libobjs 20283 20284LTLIBOBJS=$ac_ltlibobjs 20285 20286 20287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20288printf %s "checking that generated files are newer than configure... " >&6; } 20289 if test -n "$am_sleep_pid"; then 20290 # Hide warnings about reused PIDs. 20291 wait $am_sleep_pid 2>/dev/null 20292 fi 20293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20294printf "%s\n" "done" >&6; } 20295if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20296 as_fn_error $? "conditional \"AMDEP\" was never defined. 20297Usually this means the macro was only invoked conditionally." "$LINENO" 5 20298fi 20299if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20300 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20301Usually this means the macro was only invoked conditionally." "$LINENO" 5 20302fi 20303 if test -n "$EXEEXT"; then 20304 am__EXEEXT_TRUE= 20305 am__EXEEXT_FALSE='#' 20306else 20307 am__EXEEXT_TRUE='#' 20308 am__EXEEXT_FALSE= 20309fi 20310 20311if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 20312 as_fn_error $? "conditional \"DRI\" was never defined. 20313Usually this means the macro was only invoked conditionally." "$LINENO" 5 20314fi 20315if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 20316 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 20317Usually this means the macro was only invoked conditionally." "$LINENO" 5 20318fi 20319if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 20320 as_fn_error $? "conditional \"XAA\" was never defined. 20321Usually this means the macro was only invoked conditionally." "$LINENO" 5 20322fi 20323if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then 20324 as_fn_error $? "conditional \"USE_EXA\" was never defined. 20325Usually this means the macro was only invoked conditionally." "$LINENO" 5 20326fi 20327 20328: "${CONFIG_STATUS=./config.status}" 20329ac_write_fail=0 20330ac_clean_files_save=$ac_clean_files 20331ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20333printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20334as_write_fail=0 20335cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20336#! $SHELL 20337# Generated by $as_me. 20338# Run this file to recreate the current configuration. 20339# Compiler output produced by configure, useful for debugging 20340# configure, is in config.log if it exists. 20341 20342debug=false 20343ac_cs_recheck=false 20344ac_cs_silent=false 20345 20346SHELL=\${CONFIG_SHELL-$SHELL} 20347export SHELL 20348_ASEOF 20349cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20350## -------------------- ## 20351## M4sh Initialization. ## 20352## -------------------- ## 20353 20354# Be more Bourne compatible 20355DUALCASE=1; export DUALCASE # for MKS sh 20356as_nop=: 20357if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20358then : 20359 emulate sh 20360 NULLCMD=: 20361 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20362 # is contrary to our usage. Disable this feature. 20363 alias -g '${1+"$@"}'='"$@"' 20364 setopt NO_GLOB_SUBST 20365else $as_nop 20366 case `(set -o) 2>/dev/null` in #( 20367 *posix*) : 20368 set -o posix ;; #( 20369 *) : 20370 ;; 20371esac 20372fi 20373 20374 20375 20376# Reset variables that may have inherited troublesome values from 20377# the environment. 20378 20379# IFS needs to be set, to space, tab, and newline, in precisely that order. 20380# (If _AS_PATH_WALK were called with IFS unset, it would have the 20381# side effect of setting IFS to empty, thus disabling word splitting.) 20382# Quoting is to prevent editors from complaining about space-tab. 20383as_nl=' 20384' 20385export as_nl 20386IFS=" "" $as_nl" 20387 20388PS1='$ ' 20389PS2='> ' 20390PS4='+ ' 20391 20392# Ensure predictable behavior from utilities with locale-dependent output. 20393LC_ALL=C 20394export LC_ALL 20395LANGUAGE=C 20396export LANGUAGE 20397 20398# We cannot yet rely on "unset" to work, but we need these variables 20399# to be unset--not just set to an empty or harmless value--now, to 20400# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20401# also avoids known problems related to "unset" and subshell syntax 20402# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20403for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20404do eval test \${$as_var+y} \ 20405 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20406done 20407 20408# Ensure that fds 0, 1, and 2 are open. 20409if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20410if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20411if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20412 20413# The user is always right. 20414if ${PATH_SEPARATOR+false} :; then 20415 PATH_SEPARATOR=: 20416 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20417 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20418 PATH_SEPARATOR=';' 20419 } 20420fi 20421 20422 20423# Find who we are. Look in the path if we contain no directory separator. 20424as_myself= 20425case $0 in #(( 20426 *[\\/]* ) as_myself=$0 ;; 20427 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20428for as_dir in $PATH 20429do 20430 IFS=$as_save_IFS 20431 case $as_dir in #((( 20432 '') as_dir=./ ;; 20433 */) ;; 20434 *) as_dir=$as_dir/ ;; 20435 esac 20436 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20437 done 20438IFS=$as_save_IFS 20439 20440 ;; 20441esac 20442# We did not find ourselves, most probably we were run as `sh COMMAND' 20443# in which case we are not to be found in the path. 20444if test "x$as_myself" = x; then 20445 as_myself=$0 20446fi 20447if test ! -f "$as_myself"; then 20448 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20449 exit 1 20450fi 20451 20452 20453 20454# as_fn_error STATUS ERROR [LINENO LOG_FD] 20455# ---------------------------------------- 20456# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20457# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20458# script with STATUS, using 1 if that was 0. 20459as_fn_error () 20460{ 20461 as_status=$1; test $as_status -eq 0 && as_status=1 20462 if test "$4"; then 20463 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20465 fi 20466 printf "%s\n" "$as_me: error: $2" >&2 20467 as_fn_exit $as_status 20468} # as_fn_error 20469 20470 20471 20472# as_fn_set_status STATUS 20473# ----------------------- 20474# Set $? to STATUS, without forking. 20475as_fn_set_status () 20476{ 20477 return $1 20478} # as_fn_set_status 20479 20480# as_fn_exit STATUS 20481# ----------------- 20482# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20483as_fn_exit () 20484{ 20485 set +e 20486 as_fn_set_status $1 20487 exit $1 20488} # as_fn_exit 20489 20490# as_fn_unset VAR 20491# --------------- 20492# Portably unset VAR. 20493as_fn_unset () 20494{ 20495 { eval $1=; unset $1;} 20496} 20497as_unset=as_fn_unset 20498 20499# as_fn_append VAR VALUE 20500# ---------------------- 20501# Append the text in VALUE to the end of the definition contained in VAR. Take 20502# advantage of any shell optimizations that allow amortized linear growth over 20503# repeated appends, instead of the typical quadratic growth present in naive 20504# implementations. 20505if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20506then : 20507 eval 'as_fn_append () 20508 { 20509 eval $1+=\$2 20510 }' 20511else $as_nop 20512 as_fn_append () 20513 { 20514 eval $1=\$$1\$2 20515 } 20516fi # as_fn_append 20517 20518# as_fn_arith ARG... 20519# ------------------ 20520# Perform arithmetic evaluation on the ARGs, and store the result in the 20521# global $as_val. Take advantage of shells that can avoid forks. The arguments 20522# must be portable across $(()) and expr. 20523if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20524then : 20525 eval 'as_fn_arith () 20526 { 20527 as_val=$(( $* )) 20528 }' 20529else $as_nop 20530 as_fn_arith () 20531 { 20532 as_val=`expr "$@" || test $? -eq 1` 20533 } 20534fi # as_fn_arith 20535 20536 20537if expr a : '\(a\)' >/dev/null 2>&1 && 20538 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20539 as_expr=expr 20540else 20541 as_expr=false 20542fi 20543 20544if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20545 as_basename=basename 20546else 20547 as_basename=false 20548fi 20549 20550if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20551 as_dirname=dirname 20552else 20553 as_dirname=false 20554fi 20555 20556as_me=`$as_basename -- "$0" || 20557$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20558 X"$0" : 'X\(//\)$' \| \ 20559 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20560printf "%s\n" X/"$0" | 20561 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20562 s//\1/ 20563 q 20564 } 20565 /^X\/\(\/\/\)$/{ 20566 s//\1/ 20567 q 20568 } 20569 /^X\/\(\/\).*/{ 20570 s//\1/ 20571 q 20572 } 20573 s/.*/./; q'` 20574 20575# Avoid depending upon Character Ranges. 20576as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20577as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20578as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20579as_cr_digits='0123456789' 20580as_cr_alnum=$as_cr_Letters$as_cr_digits 20581 20582 20583# Determine whether it's possible to make 'echo' print without a newline. 20584# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20585# for compatibility with existing Makefiles. 20586ECHO_C= ECHO_N= ECHO_T= 20587case `echo -n x` in #((((( 20588-n*) 20589 case `echo 'xy\c'` in 20590 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20591 xy) ECHO_C='\c';; 20592 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20593 ECHO_T=' ';; 20594 esac;; 20595*) 20596 ECHO_N='-n';; 20597esac 20598 20599# For backward compatibility with old third-party macros, we provide 20600# the shell variables $as_echo and $as_echo_n. New code should use 20601# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20602as_echo='printf %s\n' 20603as_echo_n='printf %s' 20604 20605rm -f conf$$ conf$$.exe conf$$.file 20606if test -d conf$$.dir; then 20607 rm -f conf$$.dir/conf$$.file 20608else 20609 rm -f conf$$.dir 20610 mkdir conf$$.dir 2>/dev/null 20611fi 20612if (echo >conf$$.file) 2>/dev/null; then 20613 if ln -s conf$$.file conf$$ 2>/dev/null; then 20614 as_ln_s='ln -s' 20615 # ... but there are two gotchas: 20616 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20617 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20618 # In both cases, we have to default to `cp -pR'. 20619 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20620 as_ln_s='cp -pR' 20621 elif ln conf$$.file conf$$ 2>/dev/null; then 20622 as_ln_s=ln 20623 else 20624 as_ln_s='cp -pR' 20625 fi 20626else 20627 as_ln_s='cp -pR' 20628fi 20629rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20630rmdir conf$$.dir 2>/dev/null 20631 20632 20633# as_fn_mkdir_p 20634# ------------- 20635# Create "$as_dir" as a directory, including parents if necessary. 20636as_fn_mkdir_p () 20637{ 20638 20639 case $as_dir in #( 20640 -*) as_dir=./$as_dir;; 20641 esac 20642 test -d "$as_dir" || eval $as_mkdir_p || { 20643 as_dirs= 20644 while :; do 20645 case $as_dir in #( 20646 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20647 *) as_qdir=$as_dir;; 20648 esac 20649 as_dirs="'$as_qdir' $as_dirs" 20650 as_dir=`$as_dirname -- "$as_dir" || 20651$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20652 X"$as_dir" : 'X\(//\)[^/]' \| \ 20653 X"$as_dir" : 'X\(//\)$' \| \ 20654 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20655printf "%s\n" X"$as_dir" | 20656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20657 s//\1/ 20658 q 20659 } 20660 /^X\(\/\/\)[^/].*/{ 20661 s//\1/ 20662 q 20663 } 20664 /^X\(\/\/\)$/{ 20665 s//\1/ 20666 q 20667 } 20668 /^X\(\/\).*/{ 20669 s//\1/ 20670 q 20671 } 20672 s/.*/./; q'` 20673 test -d "$as_dir" && break 20674 done 20675 test -z "$as_dirs" || eval "mkdir $as_dirs" 20676 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20677 20678 20679} # as_fn_mkdir_p 20680if mkdir -p . 2>/dev/null; then 20681 as_mkdir_p='mkdir -p "$as_dir"' 20682else 20683 test -d ./-p && rmdir ./-p 20684 as_mkdir_p=false 20685fi 20686 20687 20688# as_fn_executable_p FILE 20689# ----------------------- 20690# Test if FILE is an executable regular file. 20691as_fn_executable_p () 20692{ 20693 test -f "$1" && test -x "$1" 20694} # as_fn_executable_p 20695as_test_x='test -x' 20696as_executable_p=as_fn_executable_p 20697 20698# Sed expression to map a string onto a valid CPP name. 20699as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20700 20701# Sed expression to map a string onto a valid variable name. 20702as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20703 20704 20705exec 6>&1 20706## ----------------------------------- ## 20707## Main body of $CONFIG_STATUS script. ## 20708## ----------------------------------- ## 20709_ASEOF 20710test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20711 20712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20713# Save the log message, to keep $0 and so on meaningful, and to 20714# report actual input values of CONFIG_FILES etc. instead of their 20715# values after options handling. 20716ac_log=" 20717This file was extended by xf86-video-mga $as_me 2.0.1, which was 20718generated by GNU Autoconf 2.71. Invocation command line was 20719 20720 CONFIG_FILES = $CONFIG_FILES 20721 CONFIG_HEADERS = $CONFIG_HEADERS 20722 CONFIG_LINKS = $CONFIG_LINKS 20723 CONFIG_COMMANDS = $CONFIG_COMMANDS 20724 $ $0 $@ 20725 20726on `(hostname || uname -n) 2>/dev/null | sed 1q` 20727" 20728 20729_ACEOF 20730 20731case $ac_config_files in *" 20732"*) set x $ac_config_files; shift; ac_config_files=$*;; 20733esac 20734 20735case $ac_config_headers in *" 20736"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20737esac 20738 20739 20740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20741# Files that config.status was made for. 20742config_files="$ac_config_files" 20743config_headers="$ac_config_headers" 20744config_commands="$ac_config_commands" 20745 20746_ACEOF 20747 20748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20749ac_cs_usage="\ 20750\`$as_me' instantiates files and other configuration actions 20751from templates according to the current configuration. Unless the files 20752and actions are specified as TAGs, all are instantiated by default. 20753 20754Usage: $0 [OPTION]... [TAG]... 20755 20756 -h, --help print this help, then exit 20757 -V, --version print version number and configuration settings, then exit 20758 --config print configuration, then exit 20759 -q, --quiet, --silent 20760 do not print progress messages 20761 -d, --debug don't remove temporary files 20762 --recheck update $as_me by reconfiguring in the same conditions 20763 --file=FILE[:TEMPLATE] 20764 instantiate the configuration file FILE 20765 --header=FILE[:TEMPLATE] 20766 instantiate the configuration header FILE 20767 20768Configuration files: 20769$config_files 20770 20771Configuration headers: 20772$config_headers 20773 20774Configuration commands: 20775$config_commands 20776 20777Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/issues>." 20778 20779_ACEOF 20780ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20781ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20783ac_cs_config='$ac_cs_config_escaped' 20784ac_cs_version="\\ 20785xf86-video-mga config.status 2.0.1 20786configured by $0, generated by GNU Autoconf 2.71, 20787 with options \\"\$ac_cs_config\\" 20788 20789Copyright (C) 2021 Free Software Foundation, Inc. 20790This config.status script is free software; the Free Software Foundation 20791gives unlimited permission to copy, distribute and modify it." 20792 20793ac_pwd='$ac_pwd' 20794srcdir='$srcdir' 20795INSTALL='$INSTALL' 20796MKDIR_P='$MKDIR_P' 20797AWK='$AWK' 20798test -n "\$AWK" || AWK=awk 20799_ACEOF 20800 20801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20802# The default lists apply if the user does not specify any file. 20803ac_need_defaults=: 20804while test $# != 0 20805do 20806 case $1 in 20807 --*=?*) 20808 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20809 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20810 ac_shift=: 20811 ;; 20812 --*=) 20813 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20814 ac_optarg= 20815 ac_shift=: 20816 ;; 20817 *) 20818 ac_option=$1 20819 ac_optarg=$2 20820 ac_shift=shift 20821 ;; 20822 esac 20823 20824 case $ac_option in 20825 # Handling of the options. 20826 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20827 ac_cs_recheck=: ;; 20828 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20829 printf "%s\n" "$ac_cs_version"; exit ;; 20830 --config | --confi | --conf | --con | --co | --c ) 20831 printf "%s\n" "$ac_cs_config"; exit ;; 20832 --debug | --debu | --deb | --de | --d | -d ) 20833 debug=: ;; 20834 --file | --fil | --fi | --f ) 20835 $ac_shift 20836 case $ac_optarg in 20837 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20838 '') as_fn_error $? "missing file argument" ;; 20839 esac 20840 as_fn_append CONFIG_FILES " '$ac_optarg'" 20841 ac_need_defaults=false;; 20842 --header | --heade | --head | --hea ) 20843 $ac_shift 20844 case $ac_optarg in 20845 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20846 esac 20847 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20848 ac_need_defaults=false;; 20849 --he | --h) 20850 # Conflict between --help and --header 20851 as_fn_error $? "ambiguous option: \`$1' 20852Try \`$0 --help' for more information.";; 20853 --help | --hel | -h ) 20854 printf "%s\n" "$ac_cs_usage"; exit ;; 20855 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20856 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20857 ac_cs_silent=: ;; 20858 20859 # This is an error. 20860 -*) as_fn_error $? "unrecognized option: \`$1' 20861Try \`$0 --help' for more information." ;; 20862 20863 *) as_fn_append ac_config_targets " $1" 20864 ac_need_defaults=false ;; 20865 20866 esac 20867 shift 20868done 20869 20870ac_configure_extra_args= 20871 20872if $ac_cs_silent; then 20873 exec 6>/dev/null 20874 ac_configure_extra_args="$ac_configure_extra_args --silent" 20875fi 20876 20877_ACEOF 20878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20879if \$ac_cs_recheck; then 20880 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20881 shift 20882 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20883 CONFIG_SHELL='$SHELL' 20884 export CONFIG_SHELL 20885 exec "\$@" 20886fi 20887 20888_ACEOF 20889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20890exec 5>>config.log 20891{ 20892 echo 20893 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20894## Running $as_me. ## 20895_ASBOX 20896 printf "%s\n" "$ac_log" 20897} >&5 20898 20899_ACEOF 20900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20901# 20902# INIT-COMMANDS 20903# 20904AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20905 20906 20907# The HP-UX ksh and POSIX shell print the target directory to stdout 20908# if CDPATH is set. 20909(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20910 20911sed_quote_subst='$sed_quote_subst' 20912double_quote_subst='$double_quote_subst' 20913delay_variable_subst='$delay_variable_subst' 20914enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20915macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20916macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20917enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20918pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20919enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20920shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20921SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20922ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20923PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20924host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20925host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20926host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20927build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20928build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20929build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20930SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20931Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20932GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20933EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20934FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20935LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20936NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20937LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20938max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20939ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20940exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20941lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20942lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20943lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20944lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20945lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20946reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20947reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20948FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20949OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20950deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20951file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20952file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20953want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20954DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20955sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20956AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20957lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20958AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20959archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20960STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20961RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20962old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20963old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20964old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20965lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20966CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20967CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20968compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20969GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20970lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20971lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20972lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20973lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20974lt_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"`' 20975lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20976nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20977lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20978lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20979objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20980MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20981lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20982lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20983lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20984lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20985lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20986need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20987MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20988DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20989NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20990LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20991OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20992OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20993libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20994shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20995extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20996archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20997enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20998export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20999whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21000compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21001old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21002old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21003archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21004archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21005module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21006module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21007with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21008allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21009no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21010hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21011hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21012hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21013hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21014hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21015hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21016hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21017inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21018link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21019always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21020export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21021exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21022include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21023prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21024postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21025file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21026variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21027need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21028need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21029version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21030runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21031shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21032shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21033libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21034library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21035soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21036install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21037postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21038postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21039finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21040finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21041hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21042sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21043configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21044configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21045hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21046enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21047enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21048enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21049old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21050striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21051 21052LTCC='$LTCC' 21053LTCFLAGS='$LTCFLAGS' 21054compiler='$compiler_DEFAULT' 21055 21056# A function that is used when there is no print builtin or printf. 21057func_fallback_echo () 21058{ 21059 eval 'cat <<_LTECHO_EOF 21060\$1 21061_LTECHO_EOF' 21062} 21063 21064# Quote evaled strings. 21065for var in SHELL \ 21066ECHO \ 21067PATH_SEPARATOR \ 21068SED \ 21069GREP \ 21070EGREP \ 21071FGREP \ 21072LD \ 21073NM \ 21074LN_S \ 21075lt_SP2NL \ 21076lt_NL2SP \ 21077reload_flag \ 21078FILECMD \ 21079OBJDUMP \ 21080deplibs_check_method \ 21081file_magic_cmd \ 21082file_magic_glob \ 21083want_nocaseglob \ 21084DLLTOOL \ 21085sharedlib_from_linklib_cmd \ 21086AR \ 21087archiver_list_spec \ 21088STRIP \ 21089RANLIB \ 21090CC \ 21091CFLAGS \ 21092compiler \ 21093lt_cv_sys_global_symbol_pipe \ 21094lt_cv_sys_global_symbol_to_cdecl \ 21095lt_cv_sys_global_symbol_to_import \ 21096lt_cv_sys_global_symbol_to_c_name_address \ 21097lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21098lt_cv_nm_interface \ 21099nm_file_list_spec \ 21100lt_cv_truncate_bin \ 21101lt_prog_compiler_no_builtin_flag \ 21102lt_prog_compiler_pic \ 21103lt_prog_compiler_wl \ 21104lt_prog_compiler_static \ 21105lt_cv_prog_compiler_c_o \ 21106need_locks \ 21107MANIFEST_TOOL \ 21108DSYMUTIL \ 21109NMEDIT \ 21110LIPO \ 21111OTOOL \ 21112OTOOL64 \ 21113shrext_cmds \ 21114export_dynamic_flag_spec \ 21115whole_archive_flag_spec \ 21116compiler_needs_object \ 21117with_gnu_ld \ 21118allow_undefined_flag \ 21119no_undefined_flag \ 21120hardcode_libdir_flag_spec \ 21121hardcode_libdir_separator \ 21122exclude_expsyms \ 21123include_expsyms \ 21124file_list_spec \ 21125variables_saved_for_relink \ 21126libname_spec \ 21127library_names_spec \ 21128soname_spec \ 21129install_override_mode \ 21130finish_eval \ 21131old_striplib \ 21132striplib; do 21133 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21134 *[\\\\\\\`\\"\\\$]*) 21135 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21136 ;; 21137 *) 21138 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21139 ;; 21140 esac 21141done 21142 21143# Double-quote double-evaled strings. 21144for var in reload_cmds \ 21145old_postinstall_cmds \ 21146old_postuninstall_cmds \ 21147old_archive_cmds \ 21148extract_expsyms_cmds \ 21149old_archive_from_new_cmds \ 21150old_archive_from_expsyms_cmds \ 21151archive_cmds \ 21152archive_expsym_cmds \ 21153module_cmds \ 21154module_expsym_cmds \ 21155export_symbols_cmds \ 21156prelink_cmds \ 21157postlink_cmds \ 21158postinstall_cmds \ 21159postuninstall_cmds \ 21160finish_cmds \ 21161sys_lib_search_path_spec \ 21162configure_time_dlsearch_path \ 21163configure_time_lt_sys_library_path; do 21164 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21165 *[\\\\\\\`\\"\\\$]*) 21166 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21167 ;; 21168 *) 21169 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21170 ;; 21171 esac 21172done 21173 21174ac_aux_dir='$ac_aux_dir' 21175 21176# See if we are running on zsh, and set the options that allow our 21177# commands through without removal of \ escapes INIT. 21178if test -n "\${ZSH_VERSION+set}"; then 21179 setopt NO_GLOB_SUBST 21180fi 21181 21182 21183 PACKAGE='$PACKAGE' 21184 VERSION='$VERSION' 21185 RM='$RM' 21186 ofile='$ofile' 21187 21188 21189 21190 21191_ACEOF 21192 21193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21194 21195# Handling of arguments. 21196for ac_config_target in $ac_config_targets 21197do 21198 case $ac_config_target in 21199 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21200 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21201 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21202 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21203 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21204 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21205 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 21206 21207 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21208 esac 21209done 21210 21211 21212# If the user did not use the arguments to specify the items to instantiate, 21213# then the envvar interface is used. Set only those that are not. 21214# We use the long form for the default assignment because of an extremely 21215# bizarre bug on SunOS 4.1.3. 21216if $ac_need_defaults; then 21217 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21218 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21219 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21220fi 21221 21222# Have a temporary directory for convenience. Make it in the build tree 21223# simply because there is no reason against having it here, and in addition, 21224# creating and moving files from /tmp can sometimes cause problems. 21225# Hook for its removal unless debugging. 21226# Note that there is a small window in which the directory will not be cleaned: 21227# after its creation but before its name has been assigned to `$tmp'. 21228$debug || 21229{ 21230 tmp= ac_tmp= 21231 trap 'exit_status=$? 21232 : "${ac_tmp:=$tmp}" 21233 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21234' 0 21235 trap 'as_fn_exit 1' 1 2 13 15 21236} 21237# Create a (secure) tmp directory for tmp files. 21238 21239{ 21240 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21241 test -d "$tmp" 21242} || 21243{ 21244 tmp=./conf$$-$RANDOM 21245 (umask 077 && mkdir "$tmp") 21246} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21247ac_tmp=$tmp 21248 21249# Set up the scripts for CONFIG_FILES section. 21250# No need to generate them if there are no CONFIG_FILES. 21251# This happens for instance with `./config.status config.h'. 21252if test -n "$CONFIG_FILES"; then 21253 21254 21255ac_cr=`echo X | tr X '\015'` 21256# On cygwin, bash can eat \r inside `` if the user requested igncr. 21257# But we know of no other shell where ac_cr would be empty at this 21258# point, so we can use a bashism as a fallback. 21259if test "x$ac_cr" = x; then 21260 eval ac_cr=\$\'\\r\' 21261fi 21262ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21263if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21264 ac_cs_awk_cr='\\r' 21265else 21266 ac_cs_awk_cr=$ac_cr 21267fi 21268 21269echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21270_ACEOF 21271 21272 21273{ 21274 echo "cat >conf$$subs.awk <<_ACEOF" && 21275 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21276 echo "_ACEOF" 21277} >conf$$subs.sh || 21278 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21279ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21280ac_delim='%!_!# ' 21281for ac_last_try in false false false false false :; do 21282 . ./conf$$subs.sh || 21283 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21284 21285 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21286 if test $ac_delim_n = $ac_delim_num; then 21287 break 21288 elif $ac_last_try; then 21289 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21290 else 21291 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21292 fi 21293done 21294rm -f conf$$subs.sh 21295 21296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21297cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21298_ACEOF 21299sed -n ' 21300h 21301s/^/S["/; s/!.*/"]=/ 21302p 21303g 21304s/^[^!]*!// 21305:repl 21306t repl 21307s/'"$ac_delim"'$// 21308t delim 21309:nl 21310h 21311s/\(.\{148\}\)..*/\1/ 21312t more1 21313s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21314p 21315n 21316b repl 21317:more1 21318s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21319p 21320g 21321s/.\{148\}// 21322t nl 21323:delim 21324h 21325s/\(.\{148\}\)..*/\1/ 21326t more2 21327s/["\\]/\\&/g; s/^/"/; s/$/"/ 21328p 21329b 21330:more2 21331s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21332p 21333g 21334s/.\{148\}// 21335t delim 21336' <conf$$subs.awk | sed ' 21337/^[^""]/{ 21338 N 21339 s/\n// 21340} 21341' >>$CONFIG_STATUS || ac_write_fail=1 21342rm -f conf$$subs.awk 21343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21344_ACAWK 21345cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21346 for (key in S) S_is_set[key] = 1 21347 FS = "" 21348 21349} 21350{ 21351 line = $ 0 21352 nfields = split(line, field, "@") 21353 substed = 0 21354 len = length(field[1]) 21355 for (i = 2; i < nfields; i++) { 21356 key = field[i] 21357 keylen = length(key) 21358 if (S_is_set[key]) { 21359 value = S[key] 21360 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21361 len += length(value) + length(field[++i]) 21362 substed = 1 21363 } else 21364 len += 1 + keylen 21365 } 21366 21367 print line 21368} 21369 21370_ACAWK 21371_ACEOF 21372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21373if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21374 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21375else 21376 cat 21377fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21378 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21379_ACEOF 21380 21381# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21382# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21383# trailing colons and then remove the whole line if VPATH becomes empty 21384# (actually we leave an empty line to preserve line numbers). 21385if test "x$srcdir" = x.; then 21386 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21387h 21388s/// 21389s/^/:/ 21390s/[ ]*$/:/ 21391s/:\$(srcdir):/:/g 21392s/:\${srcdir}:/:/g 21393s/:@srcdir@:/:/g 21394s/^:*// 21395s/:*$// 21396x 21397s/\(=[ ]*\).*/\1/ 21398G 21399s/\n// 21400s/^[^=]*=[ ]*$// 21401}' 21402fi 21403 21404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21405fi # test -n "$CONFIG_FILES" 21406 21407# Set up the scripts for CONFIG_HEADERS section. 21408# No need to generate them if there are no CONFIG_HEADERS. 21409# This happens for instance with `./config.status Makefile'. 21410if test -n "$CONFIG_HEADERS"; then 21411cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21412BEGIN { 21413_ACEOF 21414 21415# Transform confdefs.h into an awk script `defines.awk', embedded as 21416# here-document in config.status, that substitutes the proper values into 21417# config.h.in to produce config.h. 21418 21419# Create a delimiter string that does not exist in confdefs.h, to ease 21420# handling of long lines. 21421ac_delim='%!_!# ' 21422for ac_last_try in false false :; do 21423 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21424 if test -z "$ac_tt"; then 21425 break 21426 elif $ac_last_try; then 21427 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21428 else 21429 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21430 fi 21431done 21432 21433# For the awk script, D is an array of macro values keyed by name, 21434# likewise P contains macro parameters if any. Preserve backslash 21435# newline sequences. 21436 21437ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21438sed -n ' 21439s/.\{148\}/&'"$ac_delim"'/g 21440t rset 21441:rset 21442s/^[ ]*#[ ]*define[ ][ ]*/ / 21443t def 21444d 21445:def 21446s/\\$// 21447t bsnl 21448s/["\\]/\\&/g 21449s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21450D["\1"]=" \3"/p 21451s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21452d 21453:bsnl 21454s/["\\]/\\&/g 21455s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21456D["\1"]=" \3\\\\\\n"\\/p 21457t cont 21458s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21459t cont 21460d 21461:cont 21462n 21463s/.\{148\}/&'"$ac_delim"'/g 21464t clear 21465:clear 21466s/\\$// 21467t bsnlc 21468s/["\\]/\\&/g; s/^/"/; s/$/"/p 21469d 21470:bsnlc 21471s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21472b cont 21473' <confdefs.h | sed ' 21474s/'"$ac_delim"'/"\\\ 21475"/g' >>$CONFIG_STATUS || ac_write_fail=1 21476 21477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21478 for (key in D) D_is_set[key] = 1 21479 FS = "" 21480} 21481/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21482 line = \$ 0 21483 split(line, arg, " ") 21484 if (arg[1] == "#") { 21485 defundef = arg[2] 21486 mac1 = arg[3] 21487 } else { 21488 defundef = substr(arg[1], 2) 21489 mac1 = arg[2] 21490 } 21491 split(mac1, mac2, "(") #) 21492 macro = mac2[1] 21493 prefix = substr(line, 1, index(line, defundef) - 1) 21494 if (D_is_set[macro]) { 21495 # Preserve the white space surrounding the "#". 21496 print prefix "define", macro P[macro] D[macro] 21497 next 21498 } else { 21499 # Replace #undef with comments. This is necessary, for example, 21500 # in the case of _POSIX_SOURCE, which is predefined and required 21501 # on some systems where configure will not decide to define it. 21502 if (defundef == "undef") { 21503 print "/*", prefix defundef, macro, "*/" 21504 next 21505 } 21506 } 21507} 21508{ print } 21509_ACAWK 21510_ACEOF 21511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21512 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21513fi # test -n "$CONFIG_HEADERS" 21514 21515 21516eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21517shift 21518for ac_tag 21519do 21520 case $ac_tag in 21521 :[FHLC]) ac_mode=$ac_tag; continue;; 21522 esac 21523 case $ac_mode$ac_tag in 21524 :[FHL]*:*);; 21525 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21526 :[FH]-) ac_tag=-:-;; 21527 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21528 esac 21529 ac_save_IFS=$IFS 21530 IFS=: 21531 set x $ac_tag 21532 IFS=$ac_save_IFS 21533 shift 21534 ac_file=$1 21535 shift 21536 21537 case $ac_mode in 21538 :L) ac_source=$1;; 21539 :[FH]) 21540 ac_file_inputs= 21541 for ac_f 21542 do 21543 case $ac_f in 21544 -) ac_f="$ac_tmp/stdin";; 21545 *) # Look for the file first in the build tree, then in the source tree 21546 # (if the path is not absolute). The absolute path cannot be DOS-style, 21547 # because $ac_f cannot contain `:'. 21548 test -f "$ac_f" || 21549 case $ac_f in 21550 [\\/$]*) false;; 21551 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21552 esac || 21553 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21554 esac 21555 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21556 as_fn_append ac_file_inputs " '$ac_f'" 21557 done 21558 21559 # Let's still pretend it is `configure' which instantiates (i.e., don't 21560 # use $as_me), people would be surprised to read: 21561 # /* config.h. Generated by config.status. */ 21562 configure_input='Generated from '` 21563 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21564 `' by configure.' 21565 if test x"$ac_file" != x-; then 21566 configure_input="$ac_file. $configure_input" 21567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21568printf "%s\n" "$as_me: creating $ac_file" >&6;} 21569 fi 21570 # Neutralize special characters interpreted by sed in replacement strings. 21571 case $configure_input in #( 21572 *\&* | *\|* | *\\* ) 21573 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21574 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21575 *) ac_sed_conf_input=$configure_input;; 21576 esac 21577 21578 case $ac_tag in 21579 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21581 esac 21582 ;; 21583 esac 21584 21585 ac_dir=`$as_dirname -- "$ac_file" || 21586$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21587 X"$ac_file" : 'X\(//\)[^/]' \| \ 21588 X"$ac_file" : 'X\(//\)$' \| \ 21589 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21590printf "%s\n" X"$ac_file" | 21591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21592 s//\1/ 21593 q 21594 } 21595 /^X\(\/\/\)[^/].*/{ 21596 s//\1/ 21597 q 21598 } 21599 /^X\(\/\/\)$/{ 21600 s//\1/ 21601 q 21602 } 21603 /^X\(\/\).*/{ 21604 s//\1/ 21605 q 21606 } 21607 s/.*/./; q'` 21608 as_dir="$ac_dir"; as_fn_mkdir_p 21609 ac_builddir=. 21610 21611case "$ac_dir" in 21612.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21613*) 21614 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21615 # A ".." for each directory in $ac_dir_suffix. 21616 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21617 case $ac_top_builddir_sub in 21618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21620 esac ;; 21621esac 21622ac_abs_top_builddir=$ac_pwd 21623ac_abs_builddir=$ac_pwd$ac_dir_suffix 21624# for backward compatibility: 21625ac_top_builddir=$ac_top_build_prefix 21626 21627case $srcdir in 21628 .) # We are building in place. 21629 ac_srcdir=. 21630 ac_top_srcdir=$ac_top_builddir_sub 21631 ac_abs_top_srcdir=$ac_pwd ;; 21632 [\\/]* | ?:[\\/]* ) # Absolute name. 21633 ac_srcdir=$srcdir$ac_dir_suffix; 21634 ac_top_srcdir=$srcdir 21635 ac_abs_top_srcdir=$srcdir ;; 21636 *) # Relative name. 21637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21638 ac_top_srcdir=$ac_top_build_prefix$srcdir 21639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21640esac 21641ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21642 21643 21644 case $ac_mode in 21645 :F) 21646 # 21647 # CONFIG_FILE 21648 # 21649 21650 case $INSTALL in 21651 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21652 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21653 esac 21654 ac_MKDIR_P=$MKDIR_P 21655 case $MKDIR_P in 21656 [\\/$]* | ?:[\\/]* ) ;; 21657 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21658 esac 21659_ACEOF 21660 21661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21662# If the template does not know about datarootdir, expand it. 21663# FIXME: This hack should be removed a few years after 2.60. 21664ac_datarootdir_hack=; ac_datarootdir_seen= 21665ac_sed_dataroot=' 21666/datarootdir/ { 21667 p 21668 q 21669} 21670/@datadir@/p 21671/@docdir@/p 21672/@infodir@/p 21673/@localedir@/p 21674/@mandir@/p' 21675case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21676*datarootdir*) ac_datarootdir_seen=yes;; 21677*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21679printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21680_ACEOF 21681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21682 ac_datarootdir_hack=' 21683 s&@datadir@&$datadir&g 21684 s&@docdir@&$docdir&g 21685 s&@infodir@&$infodir&g 21686 s&@localedir@&$localedir&g 21687 s&@mandir@&$mandir&g 21688 s&\\\${datarootdir}&$datarootdir&g' ;; 21689esac 21690_ACEOF 21691 21692# Neutralize VPATH when `$srcdir' = `.'. 21693# Shell code in configure.ac might set extrasub. 21694# FIXME: do we really want to maintain this feature? 21695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21696ac_sed_extra="$ac_vpsub 21697$extrasub 21698_ACEOF 21699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21700:t 21701/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21702s|@configure_input@|$ac_sed_conf_input|;t t 21703s&@top_builddir@&$ac_top_builddir_sub&;t t 21704s&@top_build_prefix@&$ac_top_build_prefix&;t t 21705s&@srcdir@&$ac_srcdir&;t t 21706s&@abs_srcdir@&$ac_abs_srcdir&;t t 21707s&@top_srcdir@&$ac_top_srcdir&;t t 21708s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21709s&@builddir@&$ac_builddir&;t t 21710s&@abs_builddir@&$ac_abs_builddir&;t t 21711s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21712s&@INSTALL@&$ac_INSTALL&;t t 21713s&@MKDIR_P@&$ac_MKDIR_P&;t t 21714$ac_datarootdir_hack 21715" 21716eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21717 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21718 21719test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21720 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21721 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21722 "$ac_tmp/out"`; test -z "$ac_out"; } && 21723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21724which seems to be undefined. Please make sure it is defined" >&5 21725printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21726which seems to be undefined. Please make sure it is defined" >&2;} 21727 21728 rm -f "$ac_tmp/stdin" 21729 case $ac_file in 21730 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21731 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21732 esac \ 21733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21734 ;; 21735 :H) 21736 # 21737 # CONFIG_HEADER 21738 # 21739 if test x"$ac_file" != x-; then 21740 { 21741 printf "%s\n" "/* $configure_input */" >&1 \ 21742 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21743 } >"$ac_tmp/config.h" \ 21744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21745 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21747printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21748 else 21749 rm -f "$ac_file" 21750 mv "$ac_tmp/config.h" "$ac_file" \ 21751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21752 fi 21753 else 21754 printf "%s\n" "/* $configure_input */" >&1 \ 21755 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21756 || as_fn_error $? "could not create -" "$LINENO" 5 21757 fi 21758# Compute "$ac_file"'s index in $config_headers. 21759_am_arg="$ac_file" 21760_am_stamp_count=1 21761for _am_header in $config_headers :; do 21762 case $_am_header in 21763 $_am_arg | $_am_arg:* ) 21764 break ;; 21765 * ) 21766 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21767 esac 21768done 21769echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21770$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21771 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21772 X"$_am_arg" : 'X\(//\)$' \| \ 21773 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21774printf "%s\n" X"$_am_arg" | 21775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21776 s//\1/ 21777 q 21778 } 21779 /^X\(\/\/\)[^/].*/{ 21780 s//\1/ 21781 q 21782 } 21783 /^X\(\/\/\)$/{ 21784 s//\1/ 21785 q 21786 } 21787 /^X\(\/\).*/{ 21788 s//\1/ 21789 q 21790 } 21791 s/.*/./; q'`/stamp-h$_am_stamp_count 21792 ;; 21793 21794 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21795printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21796 ;; 21797 esac 21798 21799 21800 case $ac_file$ac_mode in 21801 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21802 # Older Autoconf quotes --file arguments for eval, but not when files 21803 # are listed without --file. Let's play safe and only enable the eval 21804 # if we detect the quoting. 21805 # TODO: see whether this extra hack can be removed once we start 21806 # requiring Autoconf 2.70 or later. 21807 case $CONFIG_FILES in #( 21808 *\'*) : 21809 eval set x "$CONFIG_FILES" ;; #( 21810 *) : 21811 set x $CONFIG_FILES ;; #( 21812 *) : 21813 ;; 21814esac 21815 shift 21816 # Used to flag and report bootstrapping failures. 21817 am_rc=0 21818 for am_mf 21819 do 21820 # Strip MF so we end up with the name of the file. 21821 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21822 # Check whether this is an Automake generated Makefile which includes 21823 # dependency-tracking related rules and includes. 21824 # Grep'ing the whole file directly is not great: AIX grep has a line 21825 # limit of 2048, but all sed's we know have understand at least 4000. 21826 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21827 || continue 21828 am_dirpart=`$as_dirname -- "$am_mf" || 21829$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21830 X"$am_mf" : 'X\(//\)[^/]' \| \ 21831 X"$am_mf" : 'X\(//\)$' \| \ 21832 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21833printf "%s\n" X"$am_mf" | 21834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21835 s//\1/ 21836 q 21837 } 21838 /^X\(\/\/\)[^/].*/{ 21839 s//\1/ 21840 q 21841 } 21842 /^X\(\/\/\)$/{ 21843 s//\1/ 21844 q 21845 } 21846 /^X\(\/\).*/{ 21847 s//\1/ 21848 q 21849 } 21850 s/.*/./; q'` 21851 am_filepart=`$as_basename -- "$am_mf" || 21852$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21853 X"$am_mf" : 'X\(//\)$' \| \ 21854 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21855printf "%s\n" X/"$am_mf" | 21856 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21857 s//\1/ 21858 q 21859 } 21860 /^X\/\(\/\/\)$/{ 21861 s//\1/ 21862 q 21863 } 21864 /^X\/\(\/\).*/{ 21865 s//\1/ 21866 q 21867 } 21868 s/.*/./; q'` 21869 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21870 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21871 | $MAKE -f - am--depfiles" >&5 21872 (cd "$am_dirpart" \ 21873 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21874 | $MAKE -f - am--depfiles) >&5 2>&5 21875 ac_status=$? 21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21877 (exit $ac_status); } || am_rc=$? 21878 done 21879 if test $am_rc -ne 0; then 21880 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21881printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21882as_fn_error $? "Something went wrong bootstrapping makefile fragments 21883 for automatic dependency tracking. If GNU make was not used, consider 21884 re-running the configure script with MAKE=\"gmake\" (or whatever is 21885 necessary). You can also try re-running configure with the 21886 '--disable-dependency-tracking' option to at least be able to build 21887 the package (albeit without support for automatic dependency tracking). 21888See \`config.log' for more details" "$LINENO" 5; } 21889 fi 21890 { am_dirpart=; unset am_dirpart;} 21891 { am_filepart=; unset am_filepart;} 21892 { am_mf=; unset am_mf;} 21893 { am_rc=; unset am_rc;} 21894 rm -f conftest-deps.mk 21895} 21896 ;; 21897 "libtool":C) 21898 21899 # See if we are running on zsh, and set the options that allow our 21900 # commands through without removal of \ escapes. 21901 if test -n "${ZSH_VERSION+set}"; then 21902 setopt NO_GLOB_SUBST 21903 fi 21904 21905 cfgfile=${ofile}T 21906 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21907 $RM "$cfgfile" 21908 21909 cat <<_LT_EOF >> "$cfgfile" 21910#! $SHELL 21911# Generated automatically by $as_me ($PACKAGE) $VERSION 21912# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21913# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21914 21915# Provide generalized library-building support services. 21916# Written by Gordon Matzigkeit, 1996 21917 21918# Copyright (C) 2014 Free Software Foundation, Inc. 21919# This is free software; see the source for copying conditions. There is NO 21920# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21921 21922# GNU Libtool is free software; you can redistribute it and/or modify 21923# it under the terms of the GNU General Public License as published by 21924# the Free Software Foundation; either version 2 of of the License, or 21925# (at your option) any later version. 21926# 21927# As a special exception to the GNU General Public License, if you 21928# distribute this file as part of a program or library that is built 21929# using GNU Libtool, you may include this file under the same 21930# distribution terms that you use for the rest of that program. 21931# 21932# GNU Libtool is distributed in the hope that it will be useful, but 21933# WITHOUT ANY WARRANTY; without even the implied warranty of 21934# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21935# GNU General Public License for more details. 21936# 21937# You should have received a copy of the GNU General Public License 21938# along with this program. If not, see <http://www.gnu.org/licenses/>. 21939 21940 21941# The names of the tagged configurations supported by this script. 21942available_tags='' 21943 21944# Configured defaults for sys_lib_dlsearch_path munging. 21945: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21946 21947# ### BEGIN LIBTOOL CONFIG 21948 21949# Whether or not to build static libraries. 21950build_old_libs=$enable_static 21951 21952# Which release of libtool.m4 was used? 21953macro_version=$macro_version 21954macro_revision=$macro_revision 21955 21956# Whether or not to build shared libraries. 21957build_libtool_libs=$enable_shared 21958 21959# What type of objects to build. 21960pic_mode=$pic_mode 21961 21962# Whether or not to optimize for fast installation. 21963fast_install=$enable_fast_install 21964 21965# Shared archive member basename,for filename based shared library versioning on AIX. 21966shared_archive_member_spec=$shared_archive_member_spec 21967 21968# Shell to use when invoking shell scripts. 21969SHELL=$lt_SHELL 21970 21971# An echo program that protects backslashes. 21972ECHO=$lt_ECHO 21973 21974# The PATH separator for the build system. 21975PATH_SEPARATOR=$lt_PATH_SEPARATOR 21976 21977# The host system. 21978host_alias=$host_alias 21979host=$host 21980host_os=$host_os 21981 21982# The build system. 21983build_alias=$build_alias 21984build=$build 21985build_os=$build_os 21986 21987# A sed program that does not truncate output. 21988SED=$lt_SED 21989 21990# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21991Xsed="\$SED -e 1s/^X//" 21992 21993# A grep program that handles long lines. 21994GREP=$lt_GREP 21995 21996# An ERE matcher. 21997EGREP=$lt_EGREP 21998 21999# A literal string matcher. 22000FGREP=$lt_FGREP 22001 22002# A BSD- or MS-compatible name lister. 22003NM=$lt_NM 22004 22005# Whether we need soft or hard links. 22006LN_S=$lt_LN_S 22007 22008# What is the maximum length of a command? 22009max_cmd_len=$max_cmd_len 22010 22011# Object file suffix (normally "o"). 22012objext=$ac_objext 22013 22014# Executable file suffix (normally ""). 22015exeext=$exeext 22016 22017# whether the shell understands "unset". 22018lt_unset=$lt_unset 22019 22020# turn spaces into newlines. 22021SP2NL=$lt_lt_SP2NL 22022 22023# turn newlines into spaces. 22024NL2SP=$lt_lt_NL2SP 22025 22026# convert \$build file names to \$host format. 22027to_host_file_cmd=$lt_cv_to_host_file_cmd 22028 22029# convert \$build files to toolchain format. 22030to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22031 22032# A file(cmd) program that detects file types. 22033FILECMD=$lt_FILECMD 22034 22035# An object symbol dumper. 22036OBJDUMP=$lt_OBJDUMP 22037 22038# Method to check whether dependent libraries are shared objects. 22039deplibs_check_method=$lt_deplibs_check_method 22040 22041# Command to use when deplibs_check_method = "file_magic". 22042file_magic_cmd=$lt_file_magic_cmd 22043 22044# How to find potential files when deplibs_check_method = "file_magic". 22045file_magic_glob=$lt_file_magic_glob 22046 22047# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22048want_nocaseglob=$lt_want_nocaseglob 22049 22050# DLL creation program. 22051DLLTOOL=$lt_DLLTOOL 22052 22053# Command to associate shared and link libraries. 22054sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22055 22056# The archiver. 22057AR=$lt_AR 22058 22059# Flags to create an archive (by configure). 22060lt_ar_flags=$lt_ar_flags 22061 22062# Flags to create an archive. 22063AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22064 22065# How to feed a file listing to the archiver. 22066archiver_list_spec=$lt_archiver_list_spec 22067 22068# A symbol stripping program. 22069STRIP=$lt_STRIP 22070 22071# Commands used to install an old-style archive. 22072RANLIB=$lt_RANLIB 22073old_postinstall_cmds=$lt_old_postinstall_cmds 22074old_postuninstall_cmds=$lt_old_postuninstall_cmds 22075 22076# Whether to use a lock for old archive extraction. 22077lock_old_archive_extraction=$lock_old_archive_extraction 22078 22079# A C compiler. 22080LTCC=$lt_CC 22081 22082# LTCC compiler flags. 22083LTCFLAGS=$lt_CFLAGS 22084 22085# Take the output of nm and produce a listing of raw symbols and C names. 22086global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22087 22088# Transform the output of nm in a proper C declaration. 22089global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22090 22091# Transform the output of nm into a list of symbols to manually relocate. 22092global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22093 22094# Transform the output of nm in a C name address pair. 22095global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22096 22097# Transform the output of nm in a C name address pair when lib prefix is needed. 22098global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22099 22100# The name lister interface. 22101nm_interface=$lt_lt_cv_nm_interface 22102 22103# Specify filename containing input files for \$NM. 22104nm_file_list_spec=$lt_nm_file_list_spec 22105 22106# The root where to search for dependent libraries,and where our libraries should be installed. 22107lt_sysroot=$lt_sysroot 22108 22109# Command to truncate a binary pipe. 22110lt_truncate_bin=$lt_lt_cv_truncate_bin 22111 22112# The name of the directory that contains temporary libtool files. 22113objdir=$objdir 22114 22115# Used to examine libraries when file_magic_cmd begins with "file". 22116MAGIC_CMD=$MAGIC_CMD 22117 22118# Must we lock files when doing compilation? 22119need_locks=$lt_need_locks 22120 22121# Manifest tool. 22122MANIFEST_TOOL=$lt_MANIFEST_TOOL 22123 22124# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22125DSYMUTIL=$lt_DSYMUTIL 22126 22127# Tool to change global to local symbols on Mac OS X. 22128NMEDIT=$lt_NMEDIT 22129 22130# Tool to manipulate fat objects and archives on Mac OS X. 22131LIPO=$lt_LIPO 22132 22133# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22134OTOOL=$lt_OTOOL 22135 22136# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22137OTOOL64=$lt_OTOOL64 22138 22139# Old archive suffix (normally "a"). 22140libext=$libext 22141 22142# Shared library suffix (normally ".so"). 22143shrext_cmds=$lt_shrext_cmds 22144 22145# The commands to extract the exported symbol list from a shared archive. 22146extract_expsyms_cmds=$lt_extract_expsyms_cmds 22147 22148# Variables whose values should be saved in libtool wrapper scripts and 22149# restored at link time. 22150variables_saved_for_relink=$lt_variables_saved_for_relink 22151 22152# Do we need the "lib" prefix for modules? 22153need_lib_prefix=$need_lib_prefix 22154 22155# Do we need a version for libraries? 22156need_version=$need_version 22157 22158# Library versioning type. 22159version_type=$version_type 22160 22161# Shared library runtime path variable. 22162runpath_var=$runpath_var 22163 22164# Shared library path variable. 22165shlibpath_var=$shlibpath_var 22166 22167# Is shlibpath searched before the hard-coded library search path? 22168shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22169 22170# Format of library name prefix. 22171libname_spec=$lt_libname_spec 22172 22173# List of archive names. First name is the real one, the rest are links. 22174# The last name is the one that the linker finds with -lNAME 22175library_names_spec=$lt_library_names_spec 22176 22177# The coded name of the library, if different from the real name. 22178soname_spec=$lt_soname_spec 22179 22180# Permission mode override for installation of shared libraries. 22181install_override_mode=$lt_install_override_mode 22182 22183# Command to use after installation of a shared archive. 22184postinstall_cmds=$lt_postinstall_cmds 22185 22186# Command to use after uninstallation of a shared archive. 22187postuninstall_cmds=$lt_postuninstall_cmds 22188 22189# Commands used to finish a libtool library installation in a directory. 22190finish_cmds=$lt_finish_cmds 22191 22192# As "finish_cmds", except a single script fragment to be evaled but 22193# not shown. 22194finish_eval=$lt_finish_eval 22195 22196# Whether we should hardcode library paths into libraries. 22197hardcode_into_libs=$hardcode_into_libs 22198 22199# Compile-time system search path for libraries. 22200sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22201 22202# Detected run-time system search path for libraries. 22203sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22204 22205# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22206configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22207 22208# Whether dlopen is supported. 22209dlopen_support=$enable_dlopen 22210 22211# Whether dlopen of programs is supported. 22212dlopen_self=$enable_dlopen_self 22213 22214# Whether dlopen of statically linked programs is supported. 22215dlopen_self_static=$enable_dlopen_self_static 22216 22217# Commands to strip libraries. 22218old_striplib=$lt_old_striplib 22219striplib=$lt_striplib 22220 22221 22222# The linker used to build libraries. 22223LD=$lt_LD 22224 22225# How to create reloadable object files. 22226reload_flag=$lt_reload_flag 22227reload_cmds=$lt_reload_cmds 22228 22229# Commands used to build an old-style archive. 22230old_archive_cmds=$lt_old_archive_cmds 22231 22232# A language specific compiler. 22233CC=$lt_compiler 22234 22235# Is the compiler the GNU compiler? 22236with_gcc=$GCC 22237 22238# Compiler flag to turn off builtin functions. 22239no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22240 22241# Additional compiler flags for building library objects. 22242pic_flag=$lt_lt_prog_compiler_pic 22243 22244# How to pass a linker flag through the compiler. 22245wl=$lt_lt_prog_compiler_wl 22246 22247# Compiler flag to prevent dynamic linking. 22248link_static_flag=$lt_lt_prog_compiler_static 22249 22250# Does compiler simultaneously support -c and -o options? 22251compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22252 22253# Whether or not to add -lc for building shared libraries. 22254build_libtool_need_lc=$archive_cmds_need_lc 22255 22256# Whether or not to disallow shared libs when runtime libs are static. 22257allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22258 22259# Compiler flag to allow reflexive dlopens. 22260export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22261 22262# Compiler flag to generate shared objects directly from archives. 22263whole_archive_flag_spec=$lt_whole_archive_flag_spec 22264 22265# Whether the compiler copes with passing no objects directly. 22266compiler_needs_object=$lt_compiler_needs_object 22267 22268# Create an old-style archive from a shared archive. 22269old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22270 22271# Create a temporary old-style archive to link instead of a shared archive. 22272old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22273 22274# Commands used to build a shared archive. 22275archive_cmds=$lt_archive_cmds 22276archive_expsym_cmds=$lt_archive_expsym_cmds 22277 22278# Commands used to build a loadable module if different from building 22279# a shared archive. 22280module_cmds=$lt_module_cmds 22281module_expsym_cmds=$lt_module_expsym_cmds 22282 22283# Whether we are building with GNU ld or not. 22284with_gnu_ld=$lt_with_gnu_ld 22285 22286# Flag that allows shared libraries with undefined symbols to be built. 22287allow_undefined_flag=$lt_allow_undefined_flag 22288 22289# Flag that enforces no undefined symbols. 22290no_undefined_flag=$lt_no_undefined_flag 22291 22292# Flag to hardcode \$libdir into a binary during linking. 22293# This must work even if \$libdir does not exist 22294hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22295 22296# Whether we need a single "-rpath" flag with a separated argument. 22297hardcode_libdir_separator=$lt_hardcode_libdir_separator 22298 22299# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22300# DIR into the resulting binary. 22301hardcode_direct=$hardcode_direct 22302 22303# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22304# DIR into the resulting binary and the resulting library dependency is 22305# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22306# library is relocated. 22307hardcode_direct_absolute=$hardcode_direct_absolute 22308 22309# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22310# into the resulting binary. 22311hardcode_minus_L=$hardcode_minus_L 22312 22313# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22314# into the resulting binary. 22315hardcode_shlibpath_var=$hardcode_shlibpath_var 22316 22317# Set to "yes" if building a shared library automatically hardcodes DIR 22318# into the library and all subsequent libraries and executables linked 22319# against it. 22320hardcode_automatic=$hardcode_automatic 22321 22322# Set to yes if linker adds runtime paths of dependent libraries 22323# to runtime path list. 22324inherit_rpath=$inherit_rpath 22325 22326# Whether libtool must link a program against all its dependency libraries. 22327link_all_deplibs=$link_all_deplibs 22328 22329# Set to "yes" if exported symbols are required. 22330always_export_symbols=$always_export_symbols 22331 22332# The commands to list exported symbols. 22333export_symbols_cmds=$lt_export_symbols_cmds 22334 22335# Symbols that should not be listed in the preloaded symbols. 22336exclude_expsyms=$lt_exclude_expsyms 22337 22338# Symbols that must always be exported. 22339include_expsyms=$lt_include_expsyms 22340 22341# Commands necessary for linking programs (against libraries) with templates. 22342prelink_cmds=$lt_prelink_cmds 22343 22344# Commands necessary for finishing linking programs. 22345postlink_cmds=$lt_postlink_cmds 22346 22347# Specify filename containing input files. 22348file_list_spec=$lt_file_list_spec 22349 22350# How to hardcode a shared library path into an executable. 22351hardcode_action=$hardcode_action 22352 22353# ### END LIBTOOL CONFIG 22354 22355_LT_EOF 22356 22357 cat <<'_LT_EOF' >> "$cfgfile" 22358 22359# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22360 22361# func_munge_path_list VARIABLE PATH 22362# ----------------------------------- 22363# VARIABLE is name of variable containing _space_ separated list of 22364# directories to be munged by the contents of PATH, which is string 22365# having a format: 22366# "DIR[:DIR]:" 22367# string "DIR[ DIR]" will be prepended to VARIABLE 22368# ":DIR[:DIR]" 22369# string "DIR[ DIR]" will be appended to VARIABLE 22370# "DIRP[:DIRP]::[DIRA:]DIRA" 22371# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22372# "DIRA[ DIRA]" will be appended to VARIABLE 22373# "DIR[:DIR]" 22374# VARIABLE will be replaced by "DIR[ DIR]" 22375func_munge_path_list () 22376{ 22377 case x$2 in 22378 x) 22379 ;; 22380 *:) 22381 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22382 ;; 22383 x:*) 22384 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22385 ;; 22386 *::*) 22387 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22388 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22389 ;; 22390 *) 22391 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22392 ;; 22393 esac 22394} 22395 22396 22397# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22398func_cc_basename () 22399{ 22400 for cc_temp in $*""; do 22401 case $cc_temp in 22402 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22403 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22404 \-*) ;; 22405 *) break;; 22406 esac 22407 done 22408 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22409} 22410 22411 22412# ### END FUNCTIONS SHARED WITH CONFIGURE 22413 22414_LT_EOF 22415 22416 case $host_os in 22417 aix3*) 22418 cat <<\_LT_EOF >> "$cfgfile" 22419# AIX sometimes has problems with the GCC collect2 program. For some 22420# reason, if we set the COLLECT_NAMES environment variable, the problems 22421# vanish in a puff of smoke. 22422if test set != "${COLLECT_NAMES+set}"; then 22423 COLLECT_NAMES= 22424 export COLLECT_NAMES 22425fi 22426_LT_EOF 22427 ;; 22428 esac 22429 22430 22431 22432ltmain=$ac_aux_dir/ltmain.sh 22433 22434 22435 # We use sed instead of cat because bash on DJGPP gets confused if 22436 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22437 # text mode, it properly converts lines to CR/LF. This bash problem 22438 # is reportedly fixed, but why not run on old versions too? 22439 $SED '$q' "$ltmain" >> "$cfgfile" \ 22440 || (rm -f "$cfgfile"; exit 1) 22441 22442 mv -f "$cfgfile" "$ofile" || 22443 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22444 chmod +x "$ofile" 22445 22446 ;; 22447 22448 esac 22449done # for ac_tag 22450 22451 22452as_fn_exit 0 22453_ACEOF 22454ac_clean_files=$ac_clean_files_save 22455 22456test $ac_write_fail = 0 || 22457 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22458 22459 22460# configure is writing to config.log, and then calls config.status. 22461# config.status does its own redirection, appending to config.log. 22462# Unfortunately, on DOS this fails, as config.log is still kept open 22463# by configure, so config.status won't be able to write to it; its 22464# output is simply discarded. So we exec the FD to /dev/null, 22465# effectively closing config.log, so it can be properly (re)opened and 22466# appended to by config.status. When coming back to configure, we 22467# need to make the FD available again. 22468if test "$no_create" != yes; then 22469 ac_cs_success=: 22470 ac_config_status_args= 22471 test "$silent" = yes && 22472 ac_config_status_args="$ac_config_status_args --quiet" 22473 exec 5>/dev/null 22474 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22475 exec 5>>config.log 22476 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22477 # would make configure fail if this is the last instruction. 22478 $ac_cs_success || as_fn_exit 1 22479fi 22480if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22482printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22483fi 22484 22485 22486