1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xf86-video-sunffb 1.2.3. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sunffb/-/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-sunffb/-/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-sunffb' 624PACKAGE_TARNAME='xf86-video-sunffb' 625PACKAGE_VERSION='1.2.3' 626PACKAGE_STRING='xf86-video-sunffb 1.2.3' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-sunffb/-/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 669SPARC_FALSE 670SPARC_TRUE 671XAA_FALSE 672XAA_TRUE 673HAVE_XEXTPROTO_71_FALSE 674HAVE_XEXTPROTO_71_TRUE 675XEXT_LIBS 676XEXT_CFLAGS 677XORG_LIBS 678XORG_CFLAGS 679am__fastdepCCAS_FALSE 680am__fastdepCCAS_TRUE 681CCASDEPMODE 682CCASFLAGS 683CCAS 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 706MAN_SUBSTS 707XORG_MAN_PAGE 708ADMIN_MAN_DIR 709DRIVER_MAN_DIR 710MISC_MAN_DIR 711FILE_MAN_DIR 712LIB_MAN_DIR 713APP_MAN_DIR 714ADMIN_MAN_SUFFIX 715DRIVER_MAN_SUFFIX 716MISC_MAN_SUFFIX 717FILE_MAN_SUFFIX 718LIB_MAN_SUFFIX 719APP_MAN_SUFFIX 720SED 721host_os 722host_vendor 723host_cpu 724host 725build_os 726build_vendor 727build_cpu 728build 729INSTALL_CMD 730PKG_CONFIG_LIBDIR 731PKG_CONFIG_PATH 732PKG_CONFIG 733CHANGELOG_CMD 734STRICT_CFLAGS 735CWARNFLAGS 736BASE_CFLAGS 737am__fastdepCC_FALSE 738am__fastdepCC_TRUE 739CCDEPMODE 740am__nodep 741AMDEPBACKSLASH 742AMDEP_FALSE 743AMDEP_TRUE 744am__include 745DEPDIR 746OBJEXT 747EXEEXT 748ac_ct_CC 749CPPFLAGS 750LDFLAGS 751CFLAGS 752CC 753MAINT 754MAINTAINER_MODE_FALSE 755MAINTAINER_MODE_TRUE 756AM_BACKSLASH 757AM_DEFAULT_VERBOSITY 758AM_DEFAULT_V 759AM_V 760CSCOPE 761ETAGS 762CTAGS 763am__untar 764am__tar 765AMTAR 766am__leading_dot 767SET_MAKE 768AWK 769mkdir_p 770MKDIR_P 771INSTALL_STRIP_PROGRAM 772STRIP 773install_sh 774MAKEINFO 775AUTOHEADER 776AUTOMAKE 777AUTOCONF 778ACLOCAL 779VERSION 780PACKAGE 781CYGPATH_W 782am__isrc 783INSTALL_DATA 784INSTALL_SCRIPT 785INSTALL_PROGRAM 786target_alias 787host_alias 788build_alias 789LIBS 790ECHO_T 791ECHO_N 792ECHO_C 793DEFS 794mandir 795localedir 796libdir 797psdir 798pdfdir 799dvidir 800htmldir 801infodir 802docdir 803oldincludedir 804includedir 805runstatedir 806localstatedir 807sharedstatedir 808sysconfdir 809datadir 810datarootdir 811libexecdir 812sbindir 813bindir 814program_transform_name 815prefix 816exec_prefix 817PACKAGE_URL 818PACKAGE_BUGREPORT 819PACKAGE_STRING 820PACKAGE_VERSION 821PACKAGE_TARNAME 822PACKAGE_NAME 823PATH_SEPARATOR 824SHELL 825am__quote' 826ac_subst_files='' 827ac_user_opts=' 828enable_option_checking 829enable_silent_rules 830enable_maintainer_mode 831enable_dependency_tracking 832enable_selective_werror 833enable_strict_compilation 834enable_static 835enable_shared 836with_pic 837enable_fast_install 838with_aix_soname 839with_gnu_ld 840with_sysroot 841enable_libtool_lock 842with_xorg_module_dir 843enable_xaa 844' 845 ac_precious_vars='build_alias 846host_alias 847target_alias 848CC 849CFLAGS 850LDFLAGS 851LIBS 852CPPFLAGS 853PKG_CONFIG 854PKG_CONFIG_PATH 855PKG_CONFIG_LIBDIR 856LT_SYS_LIBRARY_PATH 857CCAS 858CCASFLAGS 859XORG_CFLAGS 860XORG_LIBS 861XEXT_CFLAGS 862XEXT_LIBS' 863 864 865# Initialize some variables set by options. 866ac_init_help= 867ac_init_version=false 868ac_unrecognized_opts= 869ac_unrecognized_sep= 870# The variables have the same names as the options, with 871# dashes changed to underlines. 872cache_file=/dev/null 873exec_prefix=NONE 874no_create= 875no_recursion= 876prefix=NONE 877program_prefix=NONE 878program_suffix=NONE 879program_transform_name=s,x,x, 880silent= 881site= 882srcdir= 883verbose= 884x_includes=NONE 885x_libraries=NONE 886 887# Installation directory options. 888# These are left unexpanded so users can "make install exec_prefix=/foo" 889# and all the variables that are supposed to be based on exec_prefix 890# by default will actually change. 891# Use braces instead of parens because sh, perl, etc. also accept them. 892# (The list follows the same order as the GNU Coding Standards.) 893bindir='${exec_prefix}/bin' 894sbindir='${exec_prefix}/sbin' 895libexecdir='${exec_prefix}/libexec' 896datarootdir='${prefix}/share' 897datadir='${datarootdir}' 898sysconfdir='${prefix}/etc' 899sharedstatedir='${prefix}/com' 900localstatedir='${prefix}/var' 901runstatedir='${localstatedir}/run' 902includedir='${prefix}/include' 903oldincludedir='/usr/include' 904docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 905infodir='${datarootdir}/info' 906htmldir='${docdir}' 907dvidir='${docdir}' 908pdfdir='${docdir}' 909psdir='${docdir}' 910libdir='${exec_prefix}/lib' 911localedir='${datarootdir}/locale' 912mandir='${datarootdir}/man' 913 914ac_prev= 915ac_dashdash= 916for ac_option 917do 918 # If the previous option needs an argument, assign it. 919 if test -n "$ac_prev"; then 920 eval $ac_prev=\$ac_option 921 ac_prev= 922 continue 923 fi 924 925 case $ac_option in 926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 927 *=) ac_optarg= ;; 928 *) ac_optarg=yes ;; 929 esac 930 931 case $ac_dashdash$ac_option in 932 --) 933 ac_dashdash=yes ;; 934 935 -bindir | --bindir | --bindi | --bind | --bin | --bi) 936 ac_prev=bindir ;; 937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 938 bindir=$ac_optarg ;; 939 940 -build | --build | --buil | --bui | --bu) 941 ac_prev=build_alias ;; 942 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 943 build_alias=$ac_optarg ;; 944 945 -cache-file | --cache-file | --cache-fil | --cache-fi \ 946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 947 ac_prev=cache_file ;; 948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 950 cache_file=$ac_optarg ;; 951 952 --config-cache | -C) 953 cache_file=config.cache ;; 954 955 -datadir | --datadir | --datadi | --datad) 956 ac_prev=datadir ;; 957 -datadir=* | --datadir=* | --datadi=* | --datad=*) 958 datadir=$ac_optarg ;; 959 960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 961 | --dataroo | --dataro | --datar) 962 ac_prev=datarootdir ;; 963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 965 datarootdir=$ac_optarg ;; 966 967 -disable-* | --disable-*) 968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 969 # Reject names that are not valid shell variable names. 970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 971 as_fn_error $? "invalid feature name: \`$ac_useropt'" 972 ac_useropt_orig=$ac_useropt 973 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 974 case $ac_user_opts in 975 *" 976"enable_$ac_useropt" 977"*) ;; 978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 979 ac_unrecognized_sep=', ';; 980 esac 981 eval enable_$ac_useropt=no ;; 982 983 -docdir | --docdir | --docdi | --doc | --do) 984 ac_prev=docdir ;; 985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 986 docdir=$ac_optarg ;; 987 988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 989 ac_prev=dvidir ;; 990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 991 dvidir=$ac_optarg ;; 992 993 -enable-* | --enable-*) 994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 995 # Reject names that are not valid shell variable names. 996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 997 as_fn_error $? "invalid feature name: \`$ac_useropt'" 998 ac_useropt_orig=$ac_useropt 999 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1000 case $ac_user_opts in 1001 *" 1002"enable_$ac_useropt" 1003"*) ;; 1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1005 ac_unrecognized_sep=', ';; 1006 esac 1007 eval enable_$ac_useropt=\$ac_optarg ;; 1008 1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1011 | --exec | --exe | --ex) 1012 ac_prev=exec_prefix ;; 1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1015 | --exec=* | --exe=* | --ex=*) 1016 exec_prefix=$ac_optarg ;; 1017 1018 -gas | --gas | --ga | --g) 1019 # Obsolete; use --with-gas. 1020 with_gas=yes ;; 1021 1022 -help | --help | --hel | --he | -h) 1023 ac_init_help=long ;; 1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1025 ac_init_help=recursive ;; 1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1027 ac_init_help=short ;; 1028 1029 -host | --host | --hos | --ho) 1030 ac_prev=host_alias ;; 1031 -host=* | --host=* | --hos=* | --ho=*) 1032 host_alias=$ac_optarg ;; 1033 1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1035 ac_prev=htmldir ;; 1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1037 | --ht=*) 1038 htmldir=$ac_optarg ;; 1039 1040 -includedir | --includedir | --includedi | --included | --include \ 1041 | --includ | --inclu | --incl | --inc) 1042 ac_prev=includedir ;; 1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1044 | --includ=* | --inclu=* | --incl=* | --inc=*) 1045 includedir=$ac_optarg ;; 1046 1047 -infodir | --infodir | --infodi | --infod | --info | --inf) 1048 ac_prev=infodir ;; 1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1050 infodir=$ac_optarg ;; 1051 1052 -libdir | --libdir | --libdi | --libd) 1053 ac_prev=libdir ;; 1054 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1055 libdir=$ac_optarg ;; 1056 1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1058 | --libexe | --libex | --libe) 1059 ac_prev=libexecdir ;; 1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1061 | --libexe=* | --libex=* | --libe=*) 1062 libexecdir=$ac_optarg ;; 1063 1064 -localedir | --localedir | --localedi | --localed | --locale) 1065 ac_prev=localedir ;; 1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1067 localedir=$ac_optarg ;; 1068 1069 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1070 | --localstate | --localstat | --localsta | --localst | --locals) 1071 ac_prev=localstatedir ;; 1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1074 localstatedir=$ac_optarg ;; 1075 1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1077 ac_prev=mandir ;; 1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1079 mandir=$ac_optarg ;; 1080 1081 -nfp | --nfp | --nf) 1082 # Obsolete; use --without-fp. 1083 with_fp=no ;; 1084 1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1086 | --no-cr | --no-c | -n) 1087 no_create=yes ;; 1088 1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1091 no_recursion=yes ;; 1092 1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1095 | --oldin | --oldi | --old | --ol | --o) 1096 ac_prev=oldincludedir ;; 1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1100 oldincludedir=$ac_optarg ;; 1101 1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1103 ac_prev=prefix ;; 1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1105 prefix=$ac_optarg ;; 1106 1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1108 | --program-pre | --program-pr | --program-p) 1109 ac_prev=program_prefix ;; 1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1112 program_prefix=$ac_optarg ;; 1113 1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1115 | --program-suf | --program-su | --program-s) 1116 ac_prev=program_suffix ;; 1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1119 program_suffix=$ac_optarg ;; 1120 1121 -program-transform-name | --program-transform-name \ 1122 | --program-transform-nam | --program-transform-na \ 1123 | --program-transform-n | --program-transform- \ 1124 | --program-transform | --program-transfor \ 1125 | --program-transfo | --program-transf \ 1126 | --program-trans | --program-tran \ 1127 | --progr-tra | --program-tr | --program-t) 1128 ac_prev=program_transform_name ;; 1129 -program-transform-name=* | --program-transform-name=* \ 1130 | --program-transform-nam=* | --program-transform-na=* \ 1131 | --program-transform-n=* | --program-transform-=* \ 1132 | --program-transform=* | --program-transfor=* \ 1133 | --program-transfo=* | --program-transf=* \ 1134 | --program-trans=* | --program-tran=* \ 1135 | --progr-tra=* | --program-tr=* | --program-t=*) 1136 program_transform_name=$ac_optarg ;; 1137 1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1139 ac_prev=pdfdir ;; 1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1141 pdfdir=$ac_optarg ;; 1142 1143 -psdir | --psdir | --psdi | --psd | --ps) 1144 ac_prev=psdir ;; 1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1146 psdir=$ac_optarg ;; 1147 1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1149 | -silent | --silent | --silen | --sile | --sil) 1150 silent=yes ;; 1151 1152 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1153 | --runstate | --runstat | --runsta | --runst | --runs \ 1154 | --run | --ru | --r) 1155 ac_prev=runstatedir ;; 1156 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1157 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1158 | --run=* | --ru=* | --r=*) 1159 runstatedir=$ac_optarg ;; 1160 1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1162 ac_prev=sbindir ;; 1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1164 | --sbi=* | --sb=*) 1165 sbindir=$ac_optarg ;; 1166 1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1169 | --sharedst | --shareds | --shared | --share | --shar \ 1170 | --sha | --sh) 1171 ac_prev=sharedstatedir ;; 1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1175 | --sha=* | --sh=*) 1176 sharedstatedir=$ac_optarg ;; 1177 1178 -site | --site | --sit) 1179 ac_prev=site ;; 1180 -site=* | --site=* | --sit=*) 1181 site=$ac_optarg ;; 1182 1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1184 ac_prev=srcdir ;; 1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1186 srcdir=$ac_optarg ;; 1187 1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1189 | --syscon | --sysco | --sysc | --sys | --sy) 1190 ac_prev=sysconfdir ;; 1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1193 sysconfdir=$ac_optarg ;; 1194 1195 -target | --target | --targe | --targ | --tar | --ta | --t) 1196 ac_prev=target_alias ;; 1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1198 target_alias=$ac_optarg ;; 1199 1200 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1201 verbose=yes ;; 1202 1203 -version | --version | --versio | --versi | --vers | -V) 1204 ac_init_version=: ;; 1205 1206 -with-* | --with-*) 1207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1208 # Reject names that are not valid shell variable names. 1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1210 as_fn_error $? "invalid package name: \`$ac_useropt'" 1211 ac_useropt_orig=$ac_useropt 1212 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1213 case $ac_user_opts in 1214 *" 1215"with_$ac_useropt" 1216"*) ;; 1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1218 ac_unrecognized_sep=', ';; 1219 esac 1220 eval with_$ac_useropt=\$ac_optarg ;; 1221 1222 -without-* | --without-*) 1223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1224 # Reject names that are not valid shell variable names. 1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1226 as_fn_error $? "invalid package name: \`$ac_useropt'" 1227 ac_useropt_orig=$ac_useropt 1228 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1229 case $ac_user_opts in 1230 *" 1231"with_$ac_useropt" 1232"*) ;; 1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1234 ac_unrecognized_sep=', ';; 1235 esac 1236 eval with_$ac_useropt=no ;; 1237 1238 --x) 1239 # Obsolete; use --with-x. 1240 with_x=yes ;; 1241 1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1243 | --x-incl | --x-inc | --x-in | --x-i) 1244 ac_prev=x_includes ;; 1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1247 x_includes=$ac_optarg ;; 1248 1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1251 ac_prev=x_libraries ;; 1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1254 x_libraries=$ac_optarg ;; 1255 1256 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1257Try \`$0 --help' for more information" 1258 ;; 1259 1260 *=*) 1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1262 # Reject names that are not valid shell variable names. 1263 case $ac_envvar in #( 1264 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1265 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1266 esac 1267 eval $ac_envvar=\$ac_optarg 1268 export $ac_envvar ;; 1269 1270 *) 1271 # FIXME: should be removed in autoconf 3.0. 1272 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1274 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1275 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1276 ;; 1277 1278 esac 1279done 1280 1281if test -n "$ac_prev"; then 1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1283 as_fn_error $? "missing argument to $ac_option" 1284fi 1285 1286if test -n "$ac_unrecognized_opts"; then 1287 case $enable_option_checking in 1288 no) ;; 1289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1290 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1291 esac 1292fi 1293 1294# Check all directory arguments for consistency. 1295for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1296 datadir sysconfdir sharedstatedir localstatedir includedir \ 1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1298 libdir localedir mandir runstatedir 1299do 1300 eval ac_val=\$$ac_var 1301 # Remove trailing slashes. 1302 case $ac_val in 1303 */ ) 1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1305 eval $ac_var=\$ac_val;; 1306 esac 1307 # Be sure to have absolute directory names. 1308 case $ac_val in 1309 [\\/$]* | ?:[\\/]* ) continue;; 1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1311 esac 1312 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1313done 1314 1315# There might be people who depend on the old broken behavior: `$host' 1316# used to hold the argument of --host etc. 1317# FIXME: To remove some day. 1318build=$build_alias 1319host=$host_alias 1320target=$target_alias 1321 1322# FIXME: To remove some day. 1323if test "x$host_alias" != x; then 1324 if test "x$build_alias" = x; then 1325 cross_compiling=maybe 1326 elif test "x$build_alias" != "x$host_alias"; then 1327 cross_compiling=yes 1328 fi 1329fi 1330 1331ac_tool_prefix= 1332test -n "$host_alias" && ac_tool_prefix=$host_alias- 1333 1334test "$silent" = yes && exec 6>/dev/null 1335 1336 1337ac_pwd=`pwd` && test -n "$ac_pwd" && 1338ac_ls_di=`ls -di .` && 1339ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1340 as_fn_error $? "working directory cannot be determined" 1341test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1342 as_fn_error $? "pwd does not report name of working directory" 1343 1344 1345# Find the source files, if location was not specified. 1346if test -z "$srcdir"; then 1347 ac_srcdir_defaulted=yes 1348 # Try the directory containing this script, then the parent directory. 1349 ac_confdir=`$as_dirname -- "$as_myself" || 1350$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1351 X"$as_myself" : 'X\(//\)[^/]' \| \ 1352 X"$as_myself" : 'X\(//\)$' \| \ 1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1354printf "%s\n" X"$as_myself" | 1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\/\)[^/].*/{ 1360 s//\1/ 1361 q 1362 } 1363 /^X\(\/\/\)$/{ 1364 s//\1/ 1365 q 1366 } 1367 /^X\(\/\).*/{ 1368 s//\1/ 1369 q 1370 } 1371 s/.*/./; q'` 1372 srcdir=$ac_confdir 1373 if test ! -r "$srcdir/$ac_unique_file"; then 1374 srcdir=.. 1375 fi 1376else 1377 ac_srcdir_defaulted=no 1378fi 1379if test ! -r "$srcdir/$ac_unique_file"; then 1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1381 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1382fi 1383ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1384ac_abs_confdir=`( 1385 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1386 pwd)` 1387# When building in place, set srcdir=. 1388if test "$ac_abs_confdir" = "$ac_pwd"; then 1389 srcdir=. 1390fi 1391# Remove unnecessary trailing slashes from srcdir. 1392# Double slashes in file names in object file debugging info 1393# mess up M-x gdb in Emacs. 1394case $srcdir in 1395*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1396esac 1397for ac_var in $ac_precious_vars; do 1398 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1399 eval ac_env_${ac_var}_value=\$${ac_var} 1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1401 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1402done 1403 1404# 1405# Report the --help message. 1406# 1407if test "$ac_init_help" = "long"; then 1408 # Omit some internal or obsolete options to make the list less imposing. 1409 # This message is too long to be a string in the A/UX 3.1 sh. 1410 cat <<_ACEOF 1411\`configure' configures xf86-video-sunffb 1.2.3 to adapt to many kinds of systems. 1412 1413Usage: $0 [OPTION]... [VAR=VALUE]... 1414 1415To assign environment variables (e.g., CC, CFLAGS...), specify them as 1416VAR=VALUE. See below for descriptions of some of the useful variables. 1417 1418Defaults for the options are specified in brackets. 1419 1420Configuration: 1421 -h, --help display this help and exit 1422 --help=short display options specific to this package 1423 --help=recursive display the short help of all the included packages 1424 -V, --version display version information and exit 1425 -q, --quiet, --silent do not print \`checking ...' messages 1426 --cache-file=FILE cache test results in FILE [disabled] 1427 -C, --config-cache alias for \`--cache-file=config.cache' 1428 -n, --no-create do not create output files 1429 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1430 1431Installation directories: 1432 --prefix=PREFIX install architecture-independent files in PREFIX 1433 [$ac_default_prefix] 1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1435 [PREFIX] 1436 1437By default, \`make install' will install all the files in 1438\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1439an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1440for instance \`--prefix=\$HOME'. 1441 1442For better control, use the options below. 1443 1444Fine tuning of the installation directories: 1445 --bindir=DIR user executables [EPREFIX/bin] 1446 --sbindir=DIR system admin executables [EPREFIX/sbin] 1447 --libexecdir=DIR program executables [EPREFIX/libexec] 1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1451 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1452 --libdir=DIR object code libraries [EPREFIX/lib] 1453 --includedir=DIR C header files [PREFIX/include] 1454 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1457 --infodir=DIR info documentation [DATAROOTDIR/info] 1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1459 --mandir=DIR man documentation [DATAROOTDIR/man] 1460 --docdir=DIR documentation root 1461 [DATAROOTDIR/doc/xf86-video-sunffb] 1462 --htmldir=DIR html documentation [DOCDIR] 1463 --dvidir=DIR dvi documentation [DOCDIR] 1464 --pdfdir=DIR pdf documentation [DOCDIR] 1465 --psdir=DIR ps documentation [DOCDIR] 1466_ACEOF 1467 1468 cat <<\_ACEOF 1469 1470Program names: 1471 --program-prefix=PREFIX prepend PREFIX to installed program names 1472 --program-suffix=SUFFIX append SUFFIX to installed program names 1473 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1474 1475System types: 1476 --build=BUILD configure for building on BUILD [guessed] 1477 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1478_ACEOF 1479fi 1480 1481if test -n "$ac_init_help"; then 1482 case $ac_init_help in 1483 short | recursive ) echo "Configuration of xf86-video-sunffb 1.2.3:";; 1484 esac 1485 cat <<\_ACEOF 1486 1487Optional Features: 1488 --disable-option-checking ignore unrecognized --enable/--with options 1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1491 --enable-silent-rules less verbose build output (undo: "make V=1") 1492 --disable-silent-rules verbose build output (undo: "make V=0") 1493 --enable-maintainer-mode 1494 enable make rules and dependencies not useful (and 1495 sometimes confusing) to the casual installer 1496 --enable-dependency-tracking 1497 do not reject slow dependency extractors 1498 --disable-dependency-tracking 1499 speeds up one-time build 1500 --disable-selective-werror 1501 Turn off selective compiler errors. (default: 1502 enabled) 1503 --enable-strict-compilation 1504 Enable all warnings from compiler and make them 1505 errors (default: disabled) 1506 --enable-static[=PKGS] build static libraries [default=no] 1507 --enable-shared[=PKGS] build shared libraries [default=yes] 1508 --enable-fast-install[=PKGS] 1509 optimize for fast installation [default=yes] 1510 --disable-libtool-lock avoid locking (might break parallel builds) 1511 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1512 [default=auto] 1513 1514Optional Packages: 1515 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1516 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1517 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1518 both] 1519 --with-aix-soname=aix|svr4|both 1520 shared library versioning (aka "SONAME") variant to 1521 provide on AIX, [default=aix]. 1522 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1523 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1524 compiler's sysroot if not specified). 1525 --with-xorg-module-dir=DIR 1526 Default xorg module directory 1527 [[default=$libdir/xorg/modules]] 1528 1529Some influential environment variables: 1530 CC C compiler command 1531 CFLAGS C compiler flags 1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1533 nonstandard directory <lib dir> 1534 LIBS libraries to pass to the linker, e.g. -l<library> 1535 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1536 you have headers in a nonstandard directory <include dir> 1537 PKG_CONFIG path to pkg-config utility 1538 PKG_CONFIG_PATH 1539 directories to add to pkg-config's search path 1540 PKG_CONFIG_LIBDIR 1541 path overriding pkg-config's built-in search path 1542 LT_SYS_LIBRARY_PATH 1543 User-defined run-time library search path. 1544 CCAS assembler compiler command (defaults to CC) 1545 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1546 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1547 XORG_LIBS linker flags for XORG, overriding pkg-config 1548 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1549 XEXT_LIBS linker flags for XEXT, overriding pkg-config 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-sunffb/-/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-sunffb configure 1.2.3 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 1864ac_configure_args_raw= 1865for ac_arg 1866do 1867 case $ac_arg in 1868 *\'*) 1869 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1870 esac 1871 as_fn_append ac_configure_args_raw " '$ac_arg'" 1872done 1873 1874case $ac_configure_args_raw in 1875 *$as_nl*) 1876 ac_safe_unquote= ;; 1877 *) 1878 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1879 ac_unsafe_a="$ac_unsafe_z#~" 1880 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1881 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1882esac 1883 1884cat >config.log <<_ACEOF 1885This file contains any messages produced by compilers while 1886running configure, to aid debugging if configure makes a mistake. 1887 1888It was created by xf86-video-sunffb $as_me 1.2.3, which was 1889generated by GNU Autoconf 2.71. Invocation command line was 1890 1891 $ $0$ac_configure_args_raw 1892 1893_ACEOF 1894exec 5>>config.log 1895{ 1896cat <<_ASUNAME 1897## --------- ## 1898## Platform. ## 1899## --------- ## 1900 1901hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1902uname -m = `(uname -m) 2>/dev/null || echo unknown` 1903uname -r = `(uname -r) 2>/dev/null || echo unknown` 1904uname -s = `(uname -s) 2>/dev/null || echo unknown` 1905uname -v = `(uname -v) 2>/dev/null || echo unknown` 1906 1907/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1908/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1909 1910/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1911/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1912/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1913/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1914/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1915/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1916/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1917 1918_ASUNAME 1919 1920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1921for as_dir in $PATH 1922do 1923 IFS=$as_save_IFS 1924 case $as_dir in #((( 1925 '') as_dir=./ ;; 1926 */) ;; 1927 *) as_dir=$as_dir/ ;; 1928 esac 1929 printf "%s\n" "PATH: $as_dir" 1930 done 1931IFS=$as_save_IFS 1932 1933} >&5 1934 1935cat >&5 <<_ACEOF 1936 1937 1938## ----------- ## 1939## Core tests. ## 1940## ----------- ## 1941 1942_ACEOF 1943 1944 1945# Keep a trace of the command line. 1946# Strip out --no-create and --no-recursion so they do not pile up. 1947# Strip out --silent because we don't want to record it for future runs. 1948# Also quote any args containing shell meta-characters. 1949# Make two passes to allow for proper duplicate-argument suppression. 1950ac_configure_args= 1951ac_configure_args0= 1952ac_configure_args1= 1953ac_must_keep_next=false 1954for ac_pass in 1 2 1955do 1956 for ac_arg 1957 do 1958 case $ac_arg in 1959 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1961 | -silent | --silent | --silen | --sile | --sil) 1962 continue ;; 1963 *\'*) 1964 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1965 esac 1966 case $ac_pass in 1967 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1968 2) 1969 as_fn_append ac_configure_args1 " '$ac_arg'" 1970 if test $ac_must_keep_next = true; then 1971 ac_must_keep_next=false # Got value, back to normal. 1972 else 1973 case $ac_arg in 1974 *=* | --config-cache | -C | -disable-* | --disable-* \ 1975 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1976 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1977 | -with-* | --with-* | -without-* | --without-* | --x) 1978 case "$ac_configure_args0 " in 1979 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1980 esac 1981 ;; 1982 -* ) ac_must_keep_next=true ;; 1983 esac 1984 fi 1985 as_fn_append ac_configure_args " '$ac_arg'" 1986 ;; 1987 esac 1988 done 1989done 1990{ ac_configure_args0=; unset ac_configure_args0;} 1991{ ac_configure_args1=; unset ac_configure_args1;} 1992 1993# When interrupted or exit'd, cleanup temporary files, and complete 1994# config.log. We remove comments because anyway the quotes in there 1995# would cause problems or look ugly. 1996# WARNING: Use '\'' to represent an apostrophe within the trap. 1997# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1998trap 'exit_status=$? 1999 # Sanitize IFS. 2000 IFS=" "" $as_nl" 2001 # Save into config.log some information that might help in debugging. 2002 { 2003 echo 2004 2005 printf "%s\n" "## ---------------- ## 2006## Cache variables. ## 2007## ---------------- ##" 2008 echo 2009 # The following way of writing the cache mishandles newlines in values, 2010( 2011 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2012 eval ac_val=\$$ac_var 2013 case $ac_val in #( 2014 *${as_nl}*) 2015 case $ac_var in #( 2016 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2017printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2018 esac 2019 case $ac_var in #( 2020 _ | IFS | as_nl) ;; #( 2021 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2022 *) { eval $ac_var=; unset $ac_var;} ;; 2023 esac ;; 2024 esac 2025 done 2026 (set) 2>&1 | 2027 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2028 *${as_nl}ac_space=\ *) 2029 sed -n \ 2030 "s/'\''/'\''\\\\'\'''\''/g; 2031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2032 ;; #( 2033 *) 2034 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2035 ;; 2036 esac | 2037 sort 2038) 2039 echo 2040 2041 printf "%s\n" "## ----------------- ## 2042## Output variables. ## 2043## ----------------- ##" 2044 echo 2045 for ac_var in $ac_subst_vars 2046 do 2047 eval ac_val=\$$ac_var 2048 case $ac_val in 2049 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2050 esac 2051 printf "%s\n" "$ac_var='\''$ac_val'\''" 2052 done | sort 2053 echo 2054 2055 if test -n "$ac_subst_files"; then 2056 printf "%s\n" "## ------------------- ## 2057## File substitutions. ## 2058## ------------------- ##" 2059 echo 2060 for ac_var in $ac_subst_files 2061 do 2062 eval ac_val=\$$ac_var 2063 case $ac_val in 2064 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2065 esac 2066 printf "%s\n" "$ac_var='\''$ac_val'\''" 2067 done | sort 2068 echo 2069 fi 2070 2071 if test -s confdefs.h; then 2072 printf "%s\n" "## ----------- ## 2073## confdefs.h. ## 2074## ----------- ##" 2075 echo 2076 cat confdefs.h 2077 echo 2078 fi 2079 test "$ac_signal" != 0 && 2080 printf "%s\n" "$as_me: caught signal $ac_signal" 2081 printf "%s\n" "$as_me: exit $exit_status" 2082 } >&5 2083 rm -f core *.core core.conftest.* && 2084 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2085 exit $exit_status 2086' 0 2087for ac_signal in 1 2 13 15; do 2088 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2089done 2090ac_signal=0 2091 2092# confdefs.h avoids OS command line length limits that DEFS can exceed. 2093rm -f -r conftest* confdefs.h 2094 2095printf "%s\n" "/* confdefs.h */" > confdefs.h 2096 2097# Predefined preprocessor variables. 2098 2099printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2100 2101printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2102 2103printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2104 2105printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2106 2107printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2108 2109printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2110 2111 2112# Let the site file select an alternate cache file if it wants to. 2113# Prefer an explicitly selected file to automatically selected ones. 2114if test -n "$CONFIG_SITE"; then 2115 ac_site_files="$CONFIG_SITE" 2116elif test "x$prefix" != xNONE; then 2117 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2118else 2119 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2120fi 2121 2122for ac_site_file in $ac_site_files 2123do 2124 case $ac_site_file in #( 2125 */*) : 2126 ;; #( 2127 *) : 2128 ac_site_file=./$ac_site_file ;; 2129esac 2130 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2132printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2133 sed 's/^/| /' "$ac_site_file" >&5 2134 . "$ac_site_file" \ 2135 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2136printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2137as_fn_error $? "failed to load site script $ac_site_file 2138See \`config.log' for more details" "$LINENO" 5; } 2139 fi 2140done 2141 2142if test -r "$cache_file"; then 2143 # Some versions of bash will fail to source /dev/null (special files 2144 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2145 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2147printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2148 case $cache_file in 2149 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2150 *) . "./$cache_file";; 2151 esac 2152 fi 2153else 2154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2155printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2156 >$cache_file 2157fi 2158 2159# Test code for whether the C compiler supports C89 (global declarations) 2160ac_c_conftest_c89_globals=' 2161/* Does the compiler advertise C89 conformance? 2162 Do not test the value of __STDC__, because some compilers set it to 0 2163 while being otherwise adequately conformant. */ 2164#if !defined __STDC__ 2165# error "Compiler does not advertise C89 conformance" 2166#endif 2167 2168#include <stddef.h> 2169#include <stdarg.h> 2170struct stat; 2171/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2172struct buf { int x; }; 2173struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2174static char *e (p, i) 2175 char **p; 2176 int i; 2177{ 2178 return p[i]; 2179} 2180static char *f (char * (*g) (char **, int), char **p, ...) 2181{ 2182 char *s; 2183 va_list v; 2184 va_start (v,p); 2185 s = g (p, va_arg (v,int)); 2186 va_end (v); 2187 return s; 2188} 2189 2190/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2191 function prototypes and stuff, but not \xHH hex character constants. 2192 These do not provoke an error unfortunately, instead are silently treated 2193 as an "x". The following induces an error, until -std is added to get 2194 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2195 array size at least. It is necessary to write \x00 == 0 to get something 2196 that is true only with -std. */ 2197int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2198 2199/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2200 inside strings and character constants. */ 2201#define FOO(x) '\''x'\'' 2202int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2203 2204int test (int i, double x); 2205struct s1 {int (*f) (int a);}; 2206struct s2 {int (*f) (double a);}; 2207int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2208 int, int);' 2209 2210# Test code for whether the C compiler supports C89 (body of main). 2211ac_c_conftest_c89_main=' 2212ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2213' 2214 2215# Test code for whether the C compiler supports C99 (global declarations) 2216ac_c_conftest_c99_globals=' 2217// Does the compiler advertise C99 conformance? 2218#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2219# error "Compiler does not advertise C99 conformance" 2220#endif 2221 2222#include <stdbool.h> 2223extern int puts (const char *); 2224extern int printf (const char *, ...); 2225extern int dprintf (int, const char *, ...); 2226extern void *malloc (size_t); 2227 2228// Check varargs macros. These examples are taken from C99 6.10.3.5. 2229// dprintf is used instead of fprintf to avoid needing to declare 2230// FILE and stderr. 2231#define debug(...) dprintf (2, __VA_ARGS__) 2232#define showlist(...) puts (#__VA_ARGS__) 2233#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2234static void 2235test_varargs_macros (void) 2236{ 2237 int x = 1234; 2238 int y = 5678; 2239 debug ("Flag"); 2240 debug ("X = %d\n", x); 2241 showlist (The first, second, and third items.); 2242 report (x>y, "x is %d but y is %d", x, y); 2243} 2244 2245// Check long long types. 2246#define BIG64 18446744073709551615ull 2247#define BIG32 4294967295ul 2248#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2249#if !BIG_OK 2250 #error "your preprocessor is broken" 2251#endif 2252#if BIG_OK 2253#else 2254 #error "your preprocessor is broken" 2255#endif 2256static long long int bignum = -9223372036854775807LL; 2257static unsigned long long int ubignum = BIG64; 2258 2259struct incomplete_array 2260{ 2261 int datasize; 2262 double data[]; 2263}; 2264 2265struct named_init { 2266 int number; 2267 const wchar_t *name; 2268 double average; 2269}; 2270 2271typedef const char *ccp; 2272 2273static inline int 2274test_restrict (ccp restrict text) 2275{ 2276 // See if C++-style comments work. 2277 // Iterate through items via the restricted pointer. 2278 // Also check for declarations in for loops. 2279 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2280 continue; 2281 return 0; 2282} 2283 2284// Check varargs and va_copy. 2285static bool 2286test_varargs (const char *format, ...) 2287{ 2288 va_list args; 2289 va_start (args, format); 2290 va_list args_copy; 2291 va_copy (args_copy, args); 2292 2293 const char *str = ""; 2294 int number = 0; 2295 float fnumber = 0; 2296 2297 while (*format) 2298 { 2299 switch (*format++) 2300 { 2301 case '\''s'\'': // string 2302 str = va_arg (args_copy, const char *); 2303 break; 2304 case '\''d'\'': // int 2305 number = va_arg (args_copy, int); 2306 break; 2307 case '\''f'\'': // float 2308 fnumber = va_arg (args_copy, double); 2309 break; 2310 default: 2311 break; 2312 } 2313 } 2314 va_end (args_copy); 2315 va_end (args); 2316 2317 return *str && number && fnumber; 2318} 2319' 2320 2321# Test code for whether the C compiler supports C99 (body of main). 2322ac_c_conftest_c99_main=' 2323 // Check bool. 2324 _Bool success = false; 2325 success |= (argc != 0); 2326 2327 // Check restrict. 2328 if (test_restrict ("String literal") == 0) 2329 success = true; 2330 char *restrict newvar = "Another string"; 2331 2332 // Check varargs. 2333 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2334 test_varargs_macros (); 2335 2336 // Check flexible array members. 2337 struct incomplete_array *ia = 2338 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2339 ia->datasize = 10; 2340 for (int i = 0; i < ia->datasize; ++i) 2341 ia->data[i] = i * 1.234; 2342 2343 // Check named initializers. 2344 struct named_init ni = { 2345 .number = 34, 2346 .name = L"Test wide string", 2347 .average = 543.34343, 2348 }; 2349 2350 ni.number = 58; 2351 2352 int dynamic_array[ni.number]; 2353 dynamic_array[0] = argv[0][0]; 2354 dynamic_array[ni.number - 1] = 543; 2355 2356 // work around unused variable warnings 2357 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2358 || dynamic_array[ni.number - 1] != 543); 2359' 2360 2361# Test code for whether the C compiler supports C11 (global declarations) 2362ac_c_conftest_c11_globals=' 2363// Does the compiler advertise C11 conformance? 2364#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2365# error "Compiler does not advertise C11 conformance" 2366#endif 2367 2368// Check _Alignas. 2369char _Alignas (double) aligned_as_double; 2370char _Alignas (0) no_special_alignment; 2371extern char aligned_as_int; 2372char _Alignas (0) _Alignas (int) aligned_as_int; 2373 2374// Check _Alignof. 2375enum 2376{ 2377 int_alignment = _Alignof (int), 2378 int_array_alignment = _Alignof (int[100]), 2379 char_alignment = _Alignof (char) 2380}; 2381_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2382 2383// Check _Noreturn. 2384int _Noreturn does_not_return (void) { for (;;) continue; } 2385 2386// Check _Static_assert. 2387struct test_static_assert 2388{ 2389 int x; 2390 _Static_assert (sizeof (int) <= sizeof (long int), 2391 "_Static_assert does not work in struct"); 2392 long int y; 2393}; 2394 2395// Check UTF-8 literals. 2396#define u8 syntax error! 2397char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2398 2399// Check duplicate typedefs. 2400typedef long *long_ptr; 2401typedef long int *long_ptr; 2402typedef long_ptr long_ptr; 2403 2404// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2405struct anonymous 2406{ 2407 union { 2408 struct { int i; int j; }; 2409 struct { int k; long int l; } w; 2410 }; 2411 int m; 2412} v1; 2413' 2414 2415# Test code for whether the C compiler supports C11 (body of main). 2416ac_c_conftest_c11_main=' 2417 _Static_assert ((offsetof (struct anonymous, i) 2418 == offsetof (struct anonymous, w.k)), 2419 "Anonymous union alignment botch"); 2420 v1.i = 2; 2421 v1.w.k = 5; 2422 ok |= v1.i != 5; 2423' 2424 2425# Test code for whether the C compiler supports C11 (complete). 2426ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2427${ac_c_conftest_c99_globals} 2428${ac_c_conftest_c11_globals} 2429 2430int 2431main (int argc, char **argv) 2432{ 2433 int ok = 0; 2434 ${ac_c_conftest_c89_main} 2435 ${ac_c_conftest_c99_main} 2436 ${ac_c_conftest_c11_main} 2437 return ok; 2438} 2439" 2440 2441# Test code for whether the C compiler supports C99 (complete). 2442ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2443${ac_c_conftest_c99_globals} 2444 2445int 2446main (int argc, char **argv) 2447{ 2448 int ok = 0; 2449 ${ac_c_conftest_c89_main} 2450 ${ac_c_conftest_c99_main} 2451 return ok; 2452} 2453" 2454 2455# Test code for whether the C compiler supports C89 (complete). 2456ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2457 2458int 2459main (int argc, char **argv) 2460{ 2461 int ok = 0; 2462 ${ac_c_conftest_c89_main} 2463 return ok; 2464} 2465" 2466 2467as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2468as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2469as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2470as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2471as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2472as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2473as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2474as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2475as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2476 2477# Auxiliary files required by this configure script. 2478ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 2479 2480# Locations in which to look for auxiliary files. 2481ac_aux_dir_candidates="${srcdir}/." 2482 2483# Search for a directory containing all of the required auxiliary files, 2484# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2485# If we don't find one directory that contains all the files we need, 2486# we report the set of missing files from the *first* directory in 2487# $ac_aux_dir_candidates and give up. 2488ac_missing_aux_files="" 2489ac_first_candidate=: 2490printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2492as_found=false 2493for as_dir in $ac_aux_dir_candidates 2494do 2495 IFS=$as_save_IFS 2496 case $as_dir in #((( 2497 '') as_dir=./ ;; 2498 */) ;; 2499 *) as_dir=$as_dir/ ;; 2500 esac 2501 as_found=: 2502 2503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2504 ac_aux_dir_found=yes 2505 ac_install_sh= 2506 for ac_aux in $ac_aux_files 2507 do 2508 # As a special case, if "install-sh" is required, that requirement 2509 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2510 # and $ac_install_sh is set appropriately for whichever one is found. 2511 if test x"$ac_aux" = x"install-sh" 2512 then 2513 if test -f "${as_dir}install-sh"; then 2514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2515 ac_install_sh="${as_dir}install-sh -c" 2516 elif test -f "${as_dir}install.sh"; then 2517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2518 ac_install_sh="${as_dir}install.sh -c" 2519 elif test -f "${as_dir}shtool"; then 2520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2521 ac_install_sh="${as_dir}shtool install -c" 2522 else 2523 ac_aux_dir_found=no 2524 if $ac_first_candidate; then 2525 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2526 else 2527 break 2528 fi 2529 fi 2530 else 2531 if test -f "${as_dir}${ac_aux}"; then 2532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2533 else 2534 ac_aux_dir_found=no 2535 if $ac_first_candidate; then 2536 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2537 else 2538 break 2539 fi 2540 fi 2541 fi 2542 done 2543 if test "$ac_aux_dir_found" = yes; then 2544 ac_aux_dir="$as_dir" 2545 break 2546 fi 2547 ac_first_candidate=false 2548 2549 as_found=false 2550done 2551IFS=$as_save_IFS 2552if $as_found 2553then : 2554 2555else $as_nop 2556 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2557fi 2558 2559 2560# These three variables are undocumented and unsupported, 2561# and are intended to be withdrawn in a future Autoconf release. 2562# They can cause serious problems if a builder's source tree is in a directory 2563# whose full name contains unusual characters. 2564if test -f "${ac_aux_dir}config.guess"; then 2565 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2566fi 2567if test -f "${ac_aux_dir}config.sub"; then 2568 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2569fi 2570if test -f "$ac_aux_dir/configure"; then 2571 ac_configure="$SHELL ${ac_aux_dir}configure" 2572fi 2573 2574# Check that the precious variables saved in the cache have kept the same 2575# value. 2576ac_cache_corrupted=false 2577for ac_var in $ac_precious_vars; do 2578 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2579 eval ac_new_set=\$ac_env_${ac_var}_set 2580 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2581 eval ac_new_val=\$ac_env_${ac_var}_value 2582 case $ac_old_set,$ac_new_set in 2583 set,) 2584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2585printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2586 ac_cache_corrupted=: ;; 2587 ,set) 2588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2589printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2590 ac_cache_corrupted=: ;; 2591 ,);; 2592 *) 2593 if test "x$ac_old_val" != "x$ac_new_val"; then 2594 # differences in whitespace do not lead to failure. 2595 ac_old_val_w=`echo x $ac_old_val` 2596 ac_new_val_w=`echo x $ac_new_val` 2597 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2599printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2600 ac_cache_corrupted=: 2601 else 2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2603printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2604 eval $ac_var=\$ac_old_val 2605 fi 2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2607printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2609printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2610 fi;; 2611 esac 2612 # Pass precious variables to config.status. 2613 if test "$ac_new_set" = set; then 2614 case $ac_new_val in 2615 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2616 *) ac_arg=$ac_var=$ac_new_val ;; 2617 esac 2618 case " $ac_configure_args " in 2619 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2620 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2621 esac 2622 fi 2623done 2624if $ac_cache_corrupted; then 2625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2626printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2628printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2629 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2630 and start over" "$LINENO" 5 2631fi 2632## -------------------- ## 2633## Main body of script. ## 2634## -------------------- ## 2635 2636ac_ext=c 2637ac_cpp='$CPP $CPPFLAGS' 2638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2640ac_compiler_gnu=$ac_cv_c_compiler_gnu 2641 2642 2643 2644ac_config_headers="$ac_config_headers config.h" 2645 2646 2647 2648# Initialize Automake 2649am__api_version='1.16' 2650 2651 2652 2653 # Find a good install program. We prefer a C program (faster), 2654# so one script is as good as another. But avoid the broken or 2655# incompatible versions: 2656# SysV /etc/install, /usr/sbin/install 2657# SunOS /usr/etc/install 2658# IRIX /sbin/install 2659# AIX /bin/install 2660# AmigaOS /C/install, which installs bootblocks on floppy discs 2661# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2662# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2663# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2664# OS/2's system install, which has a completely different semantic 2665# ./install, which can be erroneously created by make from ./install.sh. 2666# Reject install programs that cannot install multiple files. 2667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2668printf %s "checking for a BSD-compatible install... " >&6; } 2669if test -z "$INSTALL"; then 2670if test ${ac_cv_path_install+y} 2671then : 2672 printf %s "(cached) " >&6 2673else $as_nop 2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2675for as_dir in $PATH 2676do 2677 IFS=$as_save_IFS 2678 case $as_dir in #((( 2679 '') as_dir=./ ;; 2680 */) ;; 2681 *) as_dir=$as_dir/ ;; 2682 esac 2683 # Account for fact that we put trailing slashes in our PATH walk. 2684case $as_dir in #(( 2685 ./ | /[cC]/* | \ 2686 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2687 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2688 /usr/ucb/* ) ;; 2689 *) 2690 # OSF1 and SCO ODT 3.0 have their own names for install. 2691 # Don't use installbsd from OSF since it installs stuff as root 2692 # by default. 2693 for ac_prog in ginstall scoinst install; do 2694 for ac_exec_ext in '' $ac_executable_extensions; do 2695 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2696 if test $ac_prog = install && 2697 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2698 # AIX install. It has an incompatible calling convention. 2699 : 2700 elif test $ac_prog = install && 2701 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2702 # program-specific install script used by HP pwplus--don't use. 2703 : 2704 else 2705 rm -rf conftest.one conftest.two conftest.dir 2706 echo one > conftest.one 2707 echo two > conftest.two 2708 mkdir conftest.dir 2709 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2710 test -s conftest.one && test -s conftest.two && 2711 test -s conftest.dir/conftest.one && 2712 test -s conftest.dir/conftest.two 2713 then 2714 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2715 break 3 2716 fi 2717 fi 2718 fi 2719 done 2720 done 2721 ;; 2722esac 2723 2724 done 2725IFS=$as_save_IFS 2726 2727rm -rf conftest.one conftest.two conftest.dir 2728 2729fi 2730 if test ${ac_cv_path_install+y}; then 2731 INSTALL=$ac_cv_path_install 2732 else 2733 # As a last resort, use the slow shell script. Don't cache a 2734 # value for INSTALL within a source directory, because that will 2735 # break other packages using the cache if that directory is 2736 # removed, or if the value is a relative name. 2737 INSTALL=$ac_install_sh 2738 fi 2739fi 2740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2741printf "%s\n" "$INSTALL" >&6; } 2742 2743# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2744# It thinks the first close brace ends the variable substitution. 2745test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2746 2747test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2748 2749test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2750 2751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2752printf %s "checking whether build environment is sane... " >&6; } 2753# Reject unsafe characters in $srcdir or the absolute working directory 2754# name. Accept space and tab only in the latter. 2755am_lf=' 2756' 2757case `pwd` in 2758 *[\\\"\#\$\&\'\`$am_lf]*) 2759 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2760esac 2761case $srcdir in 2762 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2763 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2764esac 2765 2766# Do 'set' in a subshell so we don't clobber the current shell's 2767# arguments. Must try -L first in case configure is actually a 2768# symlink; some systems play weird games with the mod time of symlinks 2769# (eg FreeBSD returns the mod time of the symlink's containing 2770# directory). 2771if ( 2772 am_has_slept=no 2773 for am_try in 1 2; do 2774 echo "timestamp, slept: $am_has_slept" > conftest.file 2775 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2776 if test "$*" = "X"; then 2777 # -L didn't work. 2778 set X `ls -t "$srcdir/configure" conftest.file` 2779 fi 2780 if test "$*" != "X $srcdir/configure conftest.file" \ 2781 && test "$*" != "X conftest.file $srcdir/configure"; then 2782 2783 # If neither matched, then we have a broken ls. This can happen 2784 # if, for instance, CONFIG_SHELL is bash and it inherits a 2785 # broken ls alias from the environment. This has actually 2786 # happened. Such a system could not be considered "sane". 2787 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2788 alias in your environment" "$LINENO" 5 2789 fi 2790 if test "$2" = conftest.file || test $am_try -eq 2; then 2791 break 2792 fi 2793 # Just in case. 2794 sleep 1 2795 am_has_slept=yes 2796 done 2797 test "$2" = conftest.file 2798 ) 2799then 2800 # Ok. 2801 : 2802else 2803 as_fn_error $? "newly created file is older than distributed files! 2804Check your system clock" "$LINENO" 5 2805fi 2806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2807printf "%s\n" "yes" >&6; } 2808# If we didn't sleep, we still need to ensure time stamps of config.status and 2809# generated files are strictly newer. 2810am_sleep_pid= 2811if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2812 ( sleep 1 ) & 2813 am_sleep_pid=$! 2814fi 2815 2816rm -f conftest.file 2817 2818test "$program_prefix" != NONE && 2819 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2820# Use a double $ so make ignores it. 2821test "$program_suffix" != NONE && 2822 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2823# Double any \ or $. 2824# By default was `s,x,x', remove it if useless. 2825ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2826program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2827 2828 2829# Expand $ac_aux_dir to an absolute path. 2830am_aux_dir=`cd "$ac_aux_dir" && pwd` 2831 2832 2833 if test x"${MISSING+set}" != xset; then 2834 MISSING="\${SHELL} '$am_aux_dir/missing'" 2835fi 2836# Use eval to expand $SHELL 2837if eval "$MISSING --is-lightweight"; then 2838 am_missing_run="$MISSING " 2839else 2840 am_missing_run= 2841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2842printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2843fi 2844 2845if test x"${install_sh+set}" != xset; then 2846 case $am_aux_dir in 2847 *\ * | *\ *) 2848 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2849 *) 2850 install_sh="\${SHELL} $am_aux_dir/install-sh" 2851 esac 2852fi 2853 2854# Installed binaries are usually stripped using 'strip' when the user 2855# run "make install-strip". However 'strip' might not be the right 2856# tool to use in cross-compilation environments, therefore Automake 2857# will honor the 'STRIP' environment variable to overrule this program. 2858if test "$cross_compiling" != no; then 2859 if test -n "$ac_tool_prefix"; then 2860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2861set dummy ${ac_tool_prefix}strip; ac_word=$2 2862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2863printf %s "checking for $ac_word... " >&6; } 2864if test ${ac_cv_prog_STRIP+y} 2865then : 2866 printf %s "(cached) " >&6 2867else $as_nop 2868 if test -n "$STRIP"; then 2869 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2870else 2871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2872for as_dir in $PATH 2873do 2874 IFS=$as_save_IFS 2875 case $as_dir in #((( 2876 '') as_dir=./ ;; 2877 */) ;; 2878 *) as_dir=$as_dir/ ;; 2879 esac 2880 for ac_exec_ext in '' $ac_executable_extensions; do 2881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2882 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2884 break 2 2885 fi 2886done 2887 done 2888IFS=$as_save_IFS 2889 2890fi 2891fi 2892STRIP=$ac_cv_prog_STRIP 2893if test -n "$STRIP"; then 2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2895printf "%s\n" "$STRIP" >&6; } 2896else 2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2898printf "%s\n" "no" >&6; } 2899fi 2900 2901 2902fi 2903if test -z "$ac_cv_prog_STRIP"; then 2904 ac_ct_STRIP=$STRIP 2905 # Extract the first word of "strip", so it can be a program name with args. 2906set dummy strip; ac_word=$2 2907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2908printf %s "checking for $ac_word... " >&6; } 2909if test ${ac_cv_prog_ac_ct_STRIP+y} 2910then : 2911 printf %s "(cached) " >&6 2912else $as_nop 2913 if test -n "$ac_ct_STRIP"; then 2914 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2915else 2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2917for as_dir in $PATH 2918do 2919 IFS=$as_save_IFS 2920 case $as_dir in #((( 2921 '') as_dir=./ ;; 2922 */) ;; 2923 *) as_dir=$as_dir/ ;; 2924 esac 2925 for ac_exec_ext in '' $ac_executable_extensions; do 2926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2927 ac_cv_prog_ac_ct_STRIP="strip" 2928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2929 break 2 2930 fi 2931done 2932 done 2933IFS=$as_save_IFS 2934 2935fi 2936fi 2937ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2938if test -n "$ac_ct_STRIP"; then 2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2940printf "%s\n" "$ac_ct_STRIP" >&6; } 2941else 2942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2943printf "%s\n" "no" >&6; } 2944fi 2945 2946 if test "x$ac_ct_STRIP" = x; then 2947 STRIP=":" 2948 else 2949 case $cross_compiling:$ac_tool_warned in 2950yes:) 2951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2952printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2953ac_tool_warned=yes ;; 2954esac 2955 STRIP=$ac_ct_STRIP 2956 fi 2957else 2958 STRIP="$ac_cv_prog_STRIP" 2959fi 2960 2961fi 2962INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2963 2964 2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2966printf %s "checking for a race-free mkdir -p... " >&6; } 2967if test -z "$MKDIR_P"; then 2968 if test ${ac_cv_path_mkdir+y} 2969then : 2970 printf %s "(cached) " >&6 2971else $as_nop 2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2973for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2974do 2975 IFS=$as_save_IFS 2976 case $as_dir in #((( 2977 '') as_dir=./ ;; 2978 */) ;; 2979 *) as_dir=$as_dir/ ;; 2980 esac 2981 for ac_prog in mkdir gmkdir; do 2982 for ac_exec_ext in '' $ac_executable_extensions; do 2983 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2984 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2985 'mkdir ('*'coreutils) '* | \ 2986 'BusyBox '* | \ 2987 'mkdir (fileutils) '4.1*) 2988 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2989 break 3;; 2990 esac 2991 done 2992 done 2993 done 2994IFS=$as_save_IFS 2995 2996fi 2997 2998 test -d ./--version && rmdir ./--version 2999 if test ${ac_cv_path_mkdir+y}; then 3000 MKDIR_P="$ac_cv_path_mkdir -p" 3001 else 3002 # As a last resort, use the slow shell script. Don't cache a 3003 # value for MKDIR_P within a source directory, because that will 3004 # break other packages using the cache if that directory is 3005 # removed, or if the value is a relative name. 3006 MKDIR_P="$ac_install_sh -d" 3007 fi 3008fi 3009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3010printf "%s\n" "$MKDIR_P" >&6; } 3011 3012for ac_prog in gawk mawk nawk awk 3013do 3014 # Extract the first word of "$ac_prog", so it can be a program name with args. 3015set dummy $ac_prog; ac_word=$2 3016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3017printf %s "checking for $ac_word... " >&6; } 3018if test ${ac_cv_prog_AWK+y} 3019then : 3020 printf %s "(cached) " >&6 3021else $as_nop 3022 if test -n "$AWK"; then 3023 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3024else 3025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3026for as_dir in $PATH 3027do 3028 IFS=$as_save_IFS 3029 case $as_dir in #((( 3030 '') as_dir=./ ;; 3031 */) ;; 3032 *) as_dir=$as_dir/ ;; 3033 esac 3034 for ac_exec_ext in '' $ac_executable_extensions; do 3035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3036 ac_cv_prog_AWK="$ac_prog" 3037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3038 break 2 3039 fi 3040done 3041 done 3042IFS=$as_save_IFS 3043 3044fi 3045fi 3046AWK=$ac_cv_prog_AWK 3047if test -n "$AWK"; then 3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3049printf "%s\n" "$AWK" >&6; } 3050else 3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3052printf "%s\n" "no" >&6; } 3053fi 3054 3055 3056 test -n "$AWK" && break 3057done 3058 3059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3060printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3061set x ${MAKE-make} 3062ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3063if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3064then : 3065 printf %s "(cached) " >&6 3066else $as_nop 3067 cat >conftest.make <<\_ACEOF 3068SHELL = /bin/sh 3069all: 3070 @echo '@@@%%%=$(MAKE)=@@@%%%' 3071_ACEOF 3072# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3073case `${MAKE-make} -f conftest.make 2>/dev/null` in 3074 *@@@%%%=?*=@@@%%%*) 3075 eval ac_cv_prog_make_${ac_make}_set=yes;; 3076 *) 3077 eval ac_cv_prog_make_${ac_make}_set=no;; 3078esac 3079rm -f conftest.make 3080fi 3081if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3083printf "%s\n" "yes" >&6; } 3084 SET_MAKE= 3085else 3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3087printf "%s\n" "no" >&6; } 3088 SET_MAKE="MAKE=${MAKE-make}" 3089fi 3090 3091rm -rf .tst 2>/dev/null 3092mkdir .tst 2>/dev/null 3093if test -d .tst; then 3094 am__leading_dot=. 3095else 3096 am__leading_dot=_ 3097fi 3098rmdir .tst 2>/dev/null 3099 3100# Check whether --enable-silent-rules was given. 3101if test ${enable_silent_rules+y} 3102then : 3103 enableval=$enable_silent_rules; 3104fi 3105 3106case $enable_silent_rules in # ((( 3107 yes) AM_DEFAULT_VERBOSITY=0;; 3108 no) AM_DEFAULT_VERBOSITY=1;; 3109 *) AM_DEFAULT_VERBOSITY=1;; 3110esac 3111am_make=${MAKE-make} 3112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3113printf %s "checking whether $am_make supports nested variables... " >&6; } 3114if test ${am_cv_make_support_nested_variables+y} 3115then : 3116 printf %s "(cached) " >&6 3117else $as_nop 3118 if printf "%s\n" 'TRUE=$(BAR$(V)) 3119BAR0=false 3120BAR1=true 3121V=1 3122am__doit: 3123 @$(TRUE) 3124.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3125 am_cv_make_support_nested_variables=yes 3126else 3127 am_cv_make_support_nested_variables=no 3128fi 3129fi 3130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3131printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3132if test $am_cv_make_support_nested_variables = yes; then 3133 AM_V='$(V)' 3134 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3135else 3136 AM_V=$AM_DEFAULT_VERBOSITY 3137 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3138fi 3139AM_BACKSLASH='\' 3140 3141if test "`cd $srcdir && pwd`" != "`pwd`"; then 3142 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3143 # is not polluted with repeated "-I." 3144 am__isrc=' -I$(srcdir)' 3145 # test to see if srcdir already configured 3146 if test -f $srcdir/config.status; then 3147 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3148 fi 3149fi 3150 3151# test whether we have cygpath 3152if test -z "$CYGPATH_W"; then 3153 if (cygpath --version) >/dev/null 2>/dev/null; then 3154 CYGPATH_W='cygpath -w' 3155 else 3156 CYGPATH_W=echo 3157 fi 3158fi 3159 3160 3161# Define the identity of the package. 3162 PACKAGE='xf86-video-sunffb' 3163 VERSION='1.2.3' 3164 3165 3166printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3167 3168 3169printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3170 3171# Some tools Automake needs. 3172 3173ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3174 3175 3176AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3177 3178 3179AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3180 3181 3182AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3183 3184 3185MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3186 3187# For better backward compatibility. To be removed once Automake 1.9.x 3188# dies out for good. For more background, see: 3189# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3190# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3191mkdir_p='$(MKDIR_P)' 3192 3193# We need awk for the "check" target (and possibly the TAP driver). The 3194# system "awk" is bad on some platforms. 3195# Always define AMTAR for backward compatibility. Yes, it's still used 3196# in the wild :-( We should find a proper way to deprecate it ... 3197AMTAR='$${TAR-tar}' 3198 3199 3200# We'll loop over all known methods to create a tar archive until one works. 3201_am_tools='gnutar pax cpio none' 3202 3203am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3204 3205 3206 3207 3208 3209# Variables for tags utilities; see am/tags.am 3210if test -z "$CTAGS"; then 3211 CTAGS=ctags 3212fi 3213 3214if test -z "$ETAGS"; then 3215 ETAGS=etags 3216fi 3217 3218if test -z "$CSCOPE"; then 3219 CSCOPE=cscope 3220fi 3221 3222 3223 3224# POSIX will say in a future version that running "rm -f" with no argument 3225# is OK; and we want to be able to make that assumption in our Makefile 3226# recipes. So use an aggressive probe to check that the usage we want is 3227# actually supported "in the wild" to an acceptable degree. 3228# See automake bug#10828. 3229# To make any issue more visible, cause the running configure to be aborted 3230# by default if the 'rm' program in use doesn't match our expectations; the 3231# user can still override this though. 3232if rm -f && rm -fr && rm -rf; then : OK; else 3233 cat >&2 <<'END' 3234Oops! 3235 3236Your 'rm' program seems unable to run without file operands specified 3237on the command line, even when the '-f' option is present. This is contrary 3238to the behaviour of most rm programs out there, and not conforming with 3239the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3240 3241Please tell bug-automake@gnu.org about your system, including the value 3242of your $PATH and any error possibly output before this message. This 3243can help us improve future automake versions. 3244 3245END 3246 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3247 echo 'Configuration will proceed anyway, since you have set the' >&2 3248 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3249 echo >&2 3250 else 3251 cat >&2 <<'END' 3252Aborting the configuration process, to ensure you take notice of the issue. 3253 3254You can download and install GNU coreutils to get an 'rm' implementation 3255that behaves properly: <https://www.gnu.org/software/coreutils/>. 3256 3257If you want to complete the configuration process using your problematic 3258'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3259to "yes", and re-run configure. 3260 3261END 3262 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3263 fi 3264fi 3265 3266 3267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3268printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3269 # Check whether --enable-maintainer-mode was given. 3270if test ${enable_maintainer_mode+y} 3271then : 3272 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3273else $as_nop 3274 USE_MAINTAINER_MODE=no 3275fi 3276 3277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3278printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3279 if test $USE_MAINTAINER_MODE = yes; then 3280 MAINTAINER_MODE_TRUE= 3281 MAINTAINER_MODE_FALSE='#' 3282else 3283 MAINTAINER_MODE_TRUE='#' 3284 MAINTAINER_MODE_FALSE= 3285fi 3286 3287 MAINT=$MAINTAINER_MODE_TRUE 3288 3289 3290 3291# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312DEPDIR="${am__leading_dot}deps" 3313 3314ac_config_commands="$ac_config_commands depfiles" 3315 3316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3317printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3318cat > confinc.mk << 'END' 3319am__doit: 3320 @echo this is the am__doit target >confinc.out 3321.PHONY: am__doit 3322END 3323am__include="#" 3324am__quote= 3325# BSD make does it like this. 3326echo '.include "confinc.mk" # ignored' > confmf.BSD 3327# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3328echo 'include confinc.mk # ignored' > confmf.GNU 3329_am_result=no 3330for s in GNU BSD; do 3331 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3332 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3333 ac_status=$? 3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3335 (exit $ac_status); } 3336 case $?:`cat confinc.out 2>/dev/null` in #( 3337 '0:this is the am__doit target') : 3338 case $s in #( 3339 BSD) : 3340 am__include='.include' am__quote='"' ;; #( 3341 *) : 3342 am__include='include' am__quote='' ;; 3343esac ;; #( 3344 *) : 3345 ;; 3346esac 3347 if test "$am__include" != "#"; then 3348 _am_result="yes ($s style)" 3349 break 3350 fi 3351done 3352rm -f confinc.* confmf.* 3353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3354printf "%s\n" "${_am_result}" >&6; } 3355 3356# Check whether --enable-dependency-tracking was given. 3357if test ${enable_dependency_tracking+y} 3358then : 3359 enableval=$enable_dependency_tracking; 3360fi 3361 3362if test "x$enable_dependency_tracking" != xno; then 3363 am_depcomp="$ac_aux_dir/depcomp" 3364 AMDEPBACKSLASH='\' 3365 am__nodep='_no' 3366fi 3367 if test "x$enable_dependency_tracking" != xno; then 3368 AMDEP_TRUE= 3369 AMDEP_FALSE='#' 3370else 3371 AMDEP_TRUE='#' 3372 AMDEP_FALSE= 3373fi 3374 3375 3376ac_ext=c 3377ac_cpp='$CPP $CPPFLAGS' 3378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3380ac_compiler_gnu=$ac_cv_c_compiler_gnu 3381if test -n "$ac_tool_prefix"; then 3382 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3383set dummy ${ac_tool_prefix}gcc; ac_word=$2 3384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3385printf %s "checking for $ac_word... " >&6; } 3386if test ${ac_cv_prog_CC+y} 3387then : 3388 printf %s "(cached) " >&6 3389else $as_nop 3390 if test -n "$CC"; then 3391 ac_cv_prog_CC="$CC" # Let the user override the test. 3392else 3393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3394for as_dir in $PATH 3395do 3396 IFS=$as_save_IFS 3397 case $as_dir in #((( 3398 '') as_dir=./ ;; 3399 */) ;; 3400 *) as_dir=$as_dir/ ;; 3401 esac 3402 for ac_exec_ext in '' $ac_executable_extensions; do 3403 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3404 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3406 break 2 3407 fi 3408done 3409 done 3410IFS=$as_save_IFS 3411 3412fi 3413fi 3414CC=$ac_cv_prog_CC 3415if test -n "$CC"; then 3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3417printf "%s\n" "$CC" >&6; } 3418else 3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3420printf "%s\n" "no" >&6; } 3421fi 3422 3423 3424fi 3425if test -z "$ac_cv_prog_CC"; then 3426 ac_ct_CC=$CC 3427 # Extract the first word of "gcc", so it can be a program name with args. 3428set dummy gcc; ac_word=$2 3429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3430printf %s "checking for $ac_word... " >&6; } 3431if test ${ac_cv_prog_ac_ct_CC+y} 3432then : 3433 printf %s "(cached) " >&6 3434else $as_nop 3435 if test -n "$ac_ct_CC"; then 3436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3437else 3438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3439for as_dir in $PATH 3440do 3441 IFS=$as_save_IFS 3442 case $as_dir in #((( 3443 '') as_dir=./ ;; 3444 */) ;; 3445 *) as_dir=$as_dir/ ;; 3446 esac 3447 for ac_exec_ext in '' $ac_executable_extensions; do 3448 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3449 ac_cv_prog_ac_ct_CC="gcc" 3450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3451 break 2 3452 fi 3453done 3454 done 3455IFS=$as_save_IFS 3456 3457fi 3458fi 3459ac_ct_CC=$ac_cv_prog_ac_ct_CC 3460if test -n "$ac_ct_CC"; then 3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3462printf "%s\n" "$ac_ct_CC" >&6; } 3463else 3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3465printf "%s\n" "no" >&6; } 3466fi 3467 3468 if test "x$ac_ct_CC" = x; then 3469 CC="" 3470 else 3471 case $cross_compiling:$ac_tool_warned in 3472yes:) 3473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3474printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3475ac_tool_warned=yes ;; 3476esac 3477 CC=$ac_ct_CC 3478 fi 3479else 3480 CC="$ac_cv_prog_CC" 3481fi 3482 3483if test -z "$CC"; then 3484 if test -n "$ac_tool_prefix"; then 3485 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3486set dummy ${ac_tool_prefix}cc; ac_word=$2 3487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3488printf %s "checking for $ac_word... " >&6; } 3489if test ${ac_cv_prog_CC+y} 3490then : 3491 printf %s "(cached) " >&6 3492else $as_nop 3493 if test -n "$CC"; then 3494 ac_cv_prog_CC="$CC" # Let the user override the test. 3495else 3496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3497for as_dir in $PATH 3498do 3499 IFS=$as_save_IFS 3500 case $as_dir in #((( 3501 '') as_dir=./ ;; 3502 */) ;; 3503 *) as_dir=$as_dir/ ;; 3504 esac 3505 for ac_exec_ext in '' $ac_executable_extensions; do 3506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3507 ac_cv_prog_CC="${ac_tool_prefix}cc" 3508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3509 break 2 3510 fi 3511done 3512 done 3513IFS=$as_save_IFS 3514 3515fi 3516fi 3517CC=$ac_cv_prog_CC 3518if test -n "$CC"; then 3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3520printf "%s\n" "$CC" >&6; } 3521else 3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3523printf "%s\n" "no" >&6; } 3524fi 3525 3526 3527 fi 3528fi 3529if test -z "$CC"; then 3530 # Extract the first word of "cc", so it can be a program name with args. 3531set dummy cc; ac_word=$2 3532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3533printf %s "checking for $ac_word... " >&6; } 3534if test ${ac_cv_prog_CC+y} 3535then : 3536 printf %s "(cached) " >&6 3537else $as_nop 3538 if test -n "$CC"; then 3539 ac_cv_prog_CC="$CC" # Let the user override the test. 3540else 3541 ac_prog_rejected=no 3542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3543for as_dir in $PATH 3544do 3545 IFS=$as_save_IFS 3546 case $as_dir in #((( 3547 '') as_dir=./ ;; 3548 */) ;; 3549 *) as_dir=$as_dir/ ;; 3550 esac 3551 for ac_exec_ext in '' $ac_executable_extensions; do 3552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3553 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3554 ac_prog_rejected=yes 3555 continue 3556 fi 3557 ac_cv_prog_CC="cc" 3558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3559 break 2 3560 fi 3561done 3562 done 3563IFS=$as_save_IFS 3564 3565if test $ac_prog_rejected = yes; then 3566 # We found a bogon in the path, so make sure we never use it. 3567 set dummy $ac_cv_prog_CC 3568 shift 3569 if test $# != 0; then 3570 # We chose a different compiler from the bogus one. 3571 # However, it has the same basename, so the bogon will be chosen 3572 # first if we set CC to just the basename; use the full file name. 3573 shift 3574 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3575 fi 3576fi 3577fi 3578fi 3579CC=$ac_cv_prog_CC 3580if test -n "$CC"; then 3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3582printf "%s\n" "$CC" >&6; } 3583else 3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3585printf "%s\n" "no" >&6; } 3586fi 3587 3588 3589fi 3590if test -z "$CC"; then 3591 if test -n "$ac_tool_prefix"; then 3592 for ac_prog in cl.exe 3593 do 3594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3595set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3597printf %s "checking for $ac_word... " >&6; } 3598if test ${ac_cv_prog_CC+y} 3599then : 3600 printf %s "(cached) " >&6 3601else $as_nop 3602 if test -n "$CC"; then 3603 ac_cv_prog_CC="$CC" # Let the user override the test. 3604else 3605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3606for as_dir in $PATH 3607do 3608 IFS=$as_save_IFS 3609 case $as_dir in #((( 3610 '') as_dir=./ ;; 3611 */) ;; 3612 *) as_dir=$as_dir/ ;; 3613 esac 3614 for ac_exec_ext in '' $ac_executable_extensions; do 3615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3616 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3618 break 2 3619 fi 3620done 3621 done 3622IFS=$as_save_IFS 3623 3624fi 3625fi 3626CC=$ac_cv_prog_CC 3627if test -n "$CC"; then 3628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3629printf "%s\n" "$CC" >&6; } 3630else 3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3632printf "%s\n" "no" >&6; } 3633fi 3634 3635 3636 test -n "$CC" && break 3637 done 3638fi 3639if test -z "$CC"; then 3640 ac_ct_CC=$CC 3641 for ac_prog in cl.exe 3642do 3643 # Extract the first word of "$ac_prog", so it can be a program name with args. 3644set dummy $ac_prog; ac_word=$2 3645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3646printf %s "checking for $ac_word... " >&6; } 3647if test ${ac_cv_prog_ac_ct_CC+y} 3648then : 3649 printf %s "(cached) " >&6 3650else $as_nop 3651 if test -n "$ac_ct_CC"; then 3652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3653else 3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3655for as_dir in $PATH 3656do 3657 IFS=$as_save_IFS 3658 case $as_dir in #((( 3659 '') as_dir=./ ;; 3660 */) ;; 3661 *) as_dir=$as_dir/ ;; 3662 esac 3663 for ac_exec_ext in '' $ac_executable_extensions; do 3664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3665 ac_cv_prog_ac_ct_CC="$ac_prog" 3666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3667 break 2 3668 fi 3669done 3670 done 3671IFS=$as_save_IFS 3672 3673fi 3674fi 3675ac_ct_CC=$ac_cv_prog_ac_ct_CC 3676if test -n "$ac_ct_CC"; then 3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3678printf "%s\n" "$ac_ct_CC" >&6; } 3679else 3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3681printf "%s\n" "no" >&6; } 3682fi 3683 3684 3685 test -n "$ac_ct_CC" && break 3686done 3687 3688 if test "x$ac_ct_CC" = x; then 3689 CC="" 3690 else 3691 case $cross_compiling:$ac_tool_warned in 3692yes:) 3693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3694printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3695ac_tool_warned=yes ;; 3696esac 3697 CC=$ac_ct_CC 3698 fi 3699fi 3700 3701fi 3702if test -z "$CC"; then 3703 if test -n "$ac_tool_prefix"; then 3704 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3705set dummy ${ac_tool_prefix}clang; ac_word=$2 3706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3707printf %s "checking for $ac_word... " >&6; } 3708if test ${ac_cv_prog_CC+y} 3709then : 3710 printf %s "(cached) " >&6 3711else $as_nop 3712 if test -n "$CC"; then 3713 ac_cv_prog_CC="$CC" # Let the user override the test. 3714else 3715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3716for as_dir in $PATH 3717do 3718 IFS=$as_save_IFS 3719 case $as_dir in #((( 3720 '') as_dir=./ ;; 3721 */) ;; 3722 *) as_dir=$as_dir/ ;; 3723 esac 3724 for ac_exec_ext in '' $ac_executable_extensions; do 3725 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3726 ac_cv_prog_CC="${ac_tool_prefix}clang" 3727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3728 break 2 3729 fi 3730done 3731 done 3732IFS=$as_save_IFS 3733 3734fi 3735fi 3736CC=$ac_cv_prog_CC 3737if test -n "$CC"; then 3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3739printf "%s\n" "$CC" >&6; } 3740else 3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3742printf "%s\n" "no" >&6; } 3743fi 3744 3745 3746fi 3747if test -z "$ac_cv_prog_CC"; then 3748 ac_ct_CC=$CC 3749 # Extract the first word of "clang", so it can be a program name with args. 3750set dummy clang; ac_word=$2 3751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3752printf %s "checking for $ac_word... " >&6; } 3753if test ${ac_cv_prog_ac_ct_CC+y} 3754then : 3755 printf %s "(cached) " >&6 3756else $as_nop 3757 if test -n "$ac_ct_CC"; then 3758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3759else 3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3761for as_dir in $PATH 3762do 3763 IFS=$as_save_IFS 3764 case $as_dir in #((( 3765 '') as_dir=./ ;; 3766 */) ;; 3767 *) as_dir=$as_dir/ ;; 3768 esac 3769 for ac_exec_ext in '' $ac_executable_extensions; do 3770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3771 ac_cv_prog_ac_ct_CC="clang" 3772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3773 break 2 3774 fi 3775done 3776 done 3777IFS=$as_save_IFS 3778 3779fi 3780fi 3781ac_ct_CC=$ac_cv_prog_ac_ct_CC 3782if test -n "$ac_ct_CC"; then 3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3784printf "%s\n" "$ac_ct_CC" >&6; } 3785else 3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3787printf "%s\n" "no" >&6; } 3788fi 3789 3790 if test "x$ac_ct_CC" = x; then 3791 CC="" 3792 else 3793 case $cross_compiling:$ac_tool_warned in 3794yes:) 3795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3796printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3797ac_tool_warned=yes ;; 3798esac 3799 CC=$ac_ct_CC 3800 fi 3801else 3802 CC="$ac_cv_prog_CC" 3803fi 3804 3805fi 3806 3807 3808test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3809printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3810as_fn_error $? "no acceptable C compiler found in \$PATH 3811See \`config.log' for more details" "$LINENO" 5; } 3812 3813# Provide some information about the compiler. 3814printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3815set X $ac_compile 3816ac_compiler=$2 3817for ac_option in --version -v -V -qversion -version; do 3818 { { ac_try="$ac_compiler $ac_option >&5" 3819case "(($ac_try" in 3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3821 *) ac_try_echo=$ac_try;; 3822esac 3823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3824printf "%s\n" "$ac_try_echo"; } >&5 3825 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3826 ac_status=$? 3827 if test -s conftest.err; then 3828 sed '10a\ 3829... rest of stderr output deleted ... 3830 10q' conftest.err >conftest.er1 3831 cat conftest.er1 >&5 3832 fi 3833 rm -f conftest.er1 conftest.err 3834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3835 test $ac_status = 0; } 3836done 3837 3838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3839/* end confdefs.h. */ 3840 3841int 3842main (void) 3843{ 3844 3845 ; 3846 return 0; 3847} 3848_ACEOF 3849ac_clean_files_save=$ac_clean_files 3850ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3851# Try to create an executable without -o first, disregard a.out. 3852# It will help us diagnose broken compilers, and finding out an intuition 3853# of exeext. 3854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3855printf %s "checking whether the C compiler works... " >&6; } 3856ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3857 3858# The possible output files: 3859ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3860 3861ac_rmfiles= 3862for ac_file in $ac_files 3863do 3864 case $ac_file in 3865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3866 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3867 esac 3868done 3869rm -f $ac_rmfiles 3870 3871if { { ac_try="$ac_link_default" 3872case "(($ac_try" in 3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3874 *) ac_try_echo=$ac_try;; 3875esac 3876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3877printf "%s\n" "$ac_try_echo"; } >&5 3878 (eval "$ac_link_default") 2>&5 3879 ac_status=$? 3880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3881 test $ac_status = 0; } 3882then : 3883 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3884# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3885# in a Makefile. We should not override ac_cv_exeext if it was cached, 3886# so that the user can short-circuit this test for compilers unknown to 3887# Autoconf. 3888for ac_file in $ac_files '' 3889do 3890 test -f "$ac_file" || continue 3891 case $ac_file in 3892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3893 ;; 3894 [ab].out ) 3895 # We found the default executable, but exeext='' is most 3896 # certainly right. 3897 break;; 3898 *.* ) 3899 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3900 then :; else 3901 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3902 fi 3903 # We set ac_cv_exeext here because the later test for it is not 3904 # safe: cross compilers may not add the suffix if given an `-o' 3905 # argument, so we may need to know it at that point already. 3906 # Even if this section looks crufty: it has the advantage of 3907 # actually working. 3908 break;; 3909 * ) 3910 break;; 3911 esac 3912done 3913test "$ac_cv_exeext" = no && ac_cv_exeext= 3914 3915else $as_nop 3916 ac_file='' 3917fi 3918if test -z "$ac_file" 3919then : 3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3921printf "%s\n" "no" >&6; } 3922printf "%s\n" "$as_me: failed program was:" >&5 3923sed 's/^/| /' conftest.$ac_ext >&5 3924 3925{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3926printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3927as_fn_error 77 "C compiler cannot create executables 3928See \`config.log' for more details" "$LINENO" 5; } 3929else $as_nop 3930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3931printf "%s\n" "yes" >&6; } 3932fi 3933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3934printf %s "checking for C compiler default output file name... " >&6; } 3935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3936printf "%s\n" "$ac_file" >&6; } 3937ac_exeext=$ac_cv_exeext 3938 3939rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3940ac_clean_files=$ac_clean_files_save 3941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3942printf %s "checking for suffix of executables... " >&6; } 3943if { { ac_try="$ac_link" 3944case "(($ac_try" in 3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3946 *) ac_try_echo=$ac_try;; 3947esac 3948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3949printf "%s\n" "$ac_try_echo"; } >&5 3950 (eval "$ac_link") 2>&5 3951 ac_status=$? 3952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3953 test $ac_status = 0; } 3954then : 3955 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3956# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3957# work properly (i.e., refer to `conftest.exe'), while it won't with 3958# `rm'. 3959for ac_file in conftest.exe conftest conftest.*; do 3960 test -f "$ac_file" || continue 3961 case $ac_file in 3962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3963 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3964 break;; 3965 * ) break;; 3966 esac 3967done 3968else $as_nop 3969 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3970printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3971as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3972See \`config.log' for more details" "$LINENO" 5; } 3973fi 3974rm -f conftest conftest$ac_cv_exeext 3975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3976printf "%s\n" "$ac_cv_exeext" >&6; } 3977 3978rm -f conftest.$ac_ext 3979EXEEXT=$ac_cv_exeext 3980ac_exeext=$EXEEXT 3981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3982/* end confdefs.h. */ 3983#include <stdio.h> 3984int 3985main (void) 3986{ 3987FILE *f = fopen ("conftest.out", "w"); 3988 return ferror (f) || fclose (f) != 0; 3989 3990 ; 3991 return 0; 3992} 3993_ACEOF 3994ac_clean_files="$ac_clean_files conftest.out" 3995# Check that the compiler produces executables we can run. If not, either 3996# the compiler is broken, or we cross compile. 3997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3998printf %s "checking whether we are cross compiling... " >&6; } 3999if test "$cross_compiling" != yes; then 4000 { { ac_try="$ac_link" 4001case "(($ac_try" in 4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4003 *) ac_try_echo=$ac_try;; 4004esac 4005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4006printf "%s\n" "$ac_try_echo"; } >&5 4007 (eval "$ac_link") 2>&5 4008 ac_status=$? 4009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4010 test $ac_status = 0; } 4011 if { ac_try='./conftest$ac_cv_exeext' 4012 { { case "(($ac_try" in 4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4014 *) ac_try_echo=$ac_try;; 4015esac 4016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4017printf "%s\n" "$ac_try_echo"; } >&5 4018 (eval "$ac_try") 2>&5 4019 ac_status=$? 4020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4021 test $ac_status = 0; }; }; then 4022 cross_compiling=no 4023 else 4024 if test "$cross_compiling" = maybe; then 4025 cross_compiling=yes 4026 else 4027 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4028printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4029as_fn_error 77 "cannot run C compiled programs. 4030If you meant to cross compile, use \`--host'. 4031See \`config.log' for more details" "$LINENO" 5; } 4032 fi 4033 fi 4034fi 4035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4036printf "%s\n" "$cross_compiling" >&6; } 4037 4038rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4039ac_clean_files=$ac_clean_files_save 4040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4041printf %s "checking for suffix of object files... " >&6; } 4042if test ${ac_cv_objext+y} 4043then : 4044 printf %s "(cached) " >&6 4045else $as_nop 4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4047/* end confdefs.h. */ 4048 4049int 4050main (void) 4051{ 4052 4053 ; 4054 return 0; 4055} 4056_ACEOF 4057rm -f conftest.o conftest.obj 4058if { { ac_try="$ac_compile" 4059case "(($ac_try" in 4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4061 *) ac_try_echo=$ac_try;; 4062esac 4063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4064printf "%s\n" "$ac_try_echo"; } >&5 4065 (eval "$ac_compile") 2>&5 4066 ac_status=$? 4067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4068 test $ac_status = 0; } 4069then : 4070 for ac_file in conftest.o conftest.obj conftest.*; do 4071 test -f "$ac_file" || continue; 4072 case $ac_file in 4073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4074 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4075 break;; 4076 esac 4077done 4078else $as_nop 4079 printf "%s\n" "$as_me: failed program was:" >&5 4080sed 's/^/| /' conftest.$ac_ext >&5 4081 4082{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4083printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4084as_fn_error $? "cannot compute suffix of object files: cannot compile 4085See \`config.log' for more details" "$LINENO" 5; } 4086fi 4087rm -f conftest.$ac_cv_objext conftest.$ac_ext 4088fi 4089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4090printf "%s\n" "$ac_cv_objext" >&6; } 4091OBJEXT=$ac_cv_objext 4092ac_objext=$OBJEXT 4093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4094printf %s "checking whether the compiler supports GNU C... " >&6; } 4095if test ${ac_cv_c_compiler_gnu+y} 4096then : 4097 printf %s "(cached) " >&6 4098else $as_nop 4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4100/* end confdefs.h. */ 4101 4102int 4103main (void) 4104{ 4105#ifndef __GNUC__ 4106 choke me 4107#endif 4108 4109 ; 4110 return 0; 4111} 4112_ACEOF 4113if ac_fn_c_try_compile "$LINENO" 4114then : 4115 ac_compiler_gnu=yes 4116else $as_nop 4117 ac_compiler_gnu=no 4118fi 4119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4120ac_cv_c_compiler_gnu=$ac_compiler_gnu 4121 4122fi 4123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4124printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4125ac_compiler_gnu=$ac_cv_c_compiler_gnu 4126 4127if test $ac_compiler_gnu = yes; then 4128 GCC=yes 4129else 4130 GCC= 4131fi 4132ac_test_CFLAGS=${CFLAGS+y} 4133ac_save_CFLAGS=$CFLAGS 4134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4135printf %s "checking whether $CC accepts -g... " >&6; } 4136if test ${ac_cv_prog_cc_g+y} 4137then : 4138 printf %s "(cached) " >&6 4139else $as_nop 4140 ac_save_c_werror_flag=$ac_c_werror_flag 4141 ac_c_werror_flag=yes 4142 ac_cv_prog_cc_g=no 4143 CFLAGS="-g" 4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4145/* end confdefs.h. */ 4146 4147int 4148main (void) 4149{ 4150 4151 ; 4152 return 0; 4153} 4154_ACEOF 4155if ac_fn_c_try_compile "$LINENO" 4156then : 4157 ac_cv_prog_cc_g=yes 4158else $as_nop 4159 CFLAGS="" 4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4161/* end confdefs.h. */ 4162 4163int 4164main (void) 4165{ 4166 4167 ; 4168 return 0; 4169} 4170_ACEOF 4171if ac_fn_c_try_compile "$LINENO" 4172then : 4173 4174else $as_nop 4175 ac_c_werror_flag=$ac_save_c_werror_flag 4176 CFLAGS="-g" 4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4178/* end confdefs.h. */ 4179 4180int 4181main (void) 4182{ 4183 4184 ; 4185 return 0; 4186} 4187_ACEOF 4188if ac_fn_c_try_compile "$LINENO" 4189then : 4190 ac_cv_prog_cc_g=yes 4191fi 4192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4193fi 4194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4195fi 4196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4197 ac_c_werror_flag=$ac_save_c_werror_flag 4198fi 4199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4200printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4201if test $ac_test_CFLAGS; then 4202 CFLAGS=$ac_save_CFLAGS 4203elif test $ac_cv_prog_cc_g = yes; then 4204 if test "$GCC" = yes; then 4205 CFLAGS="-g -O2" 4206 else 4207 CFLAGS="-g" 4208 fi 4209else 4210 if test "$GCC" = yes; then 4211 CFLAGS="-O2" 4212 else 4213 CFLAGS= 4214 fi 4215fi 4216ac_prog_cc_stdc=no 4217if test x$ac_prog_cc_stdc = xno 4218then : 4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4220printf %s "checking for $CC option to enable C11 features... " >&6; } 4221if test ${ac_cv_prog_cc_c11+y} 4222then : 4223 printf %s "(cached) " >&6 4224else $as_nop 4225 ac_cv_prog_cc_c11=no 4226ac_save_CC=$CC 4227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4228/* end confdefs.h. */ 4229$ac_c_conftest_c11_program 4230_ACEOF 4231for ac_arg in '' -std=gnu11 4232do 4233 CC="$ac_save_CC $ac_arg" 4234 if ac_fn_c_try_compile "$LINENO" 4235then : 4236 ac_cv_prog_cc_c11=$ac_arg 4237fi 4238rm -f core conftest.err conftest.$ac_objext conftest.beam 4239 test "x$ac_cv_prog_cc_c11" != "xno" && break 4240done 4241rm -f conftest.$ac_ext 4242CC=$ac_save_CC 4243fi 4244 4245if test "x$ac_cv_prog_cc_c11" = xno 4246then : 4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4248printf "%s\n" "unsupported" >&6; } 4249else $as_nop 4250 if test "x$ac_cv_prog_cc_c11" = x 4251then : 4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4253printf "%s\n" "none needed" >&6; } 4254else $as_nop 4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4256printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4257 CC="$CC $ac_cv_prog_cc_c11" 4258fi 4259 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4260 ac_prog_cc_stdc=c11 4261fi 4262fi 4263if test x$ac_prog_cc_stdc = xno 4264then : 4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4266printf %s "checking for $CC option to enable C99 features... " >&6; } 4267if test ${ac_cv_prog_cc_c99+y} 4268then : 4269 printf %s "(cached) " >&6 4270else $as_nop 4271 ac_cv_prog_cc_c99=no 4272ac_save_CC=$CC 4273cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4274/* end confdefs.h. */ 4275$ac_c_conftest_c99_program 4276_ACEOF 4277for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4278do 4279 CC="$ac_save_CC $ac_arg" 4280 if ac_fn_c_try_compile "$LINENO" 4281then : 4282 ac_cv_prog_cc_c99=$ac_arg 4283fi 4284rm -f core conftest.err conftest.$ac_objext conftest.beam 4285 test "x$ac_cv_prog_cc_c99" != "xno" && break 4286done 4287rm -f conftest.$ac_ext 4288CC=$ac_save_CC 4289fi 4290 4291if test "x$ac_cv_prog_cc_c99" = xno 4292then : 4293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4294printf "%s\n" "unsupported" >&6; } 4295else $as_nop 4296 if test "x$ac_cv_prog_cc_c99" = x 4297then : 4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4299printf "%s\n" "none needed" >&6; } 4300else $as_nop 4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4302printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4303 CC="$CC $ac_cv_prog_cc_c99" 4304fi 4305 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4306 ac_prog_cc_stdc=c99 4307fi 4308fi 4309if test x$ac_prog_cc_stdc = xno 4310then : 4311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4312printf %s "checking for $CC option to enable C89 features... " >&6; } 4313if test ${ac_cv_prog_cc_c89+y} 4314then : 4315 printf %s "(cached) " >&6 4316else $as_nop 4317 ac_cv_prog_cc_c89=no 4318ac_save_CC=$CC 4319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4320/* end confdefs.h. */ 4321$ac_c_conftest_c89_program 4322_ACEOF 4323for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4324do 4325 CC="$ac_save_CC $ac_arg" 4326 if ac_fn_c_try_compile "$LINENO" 4327then : 4328 ac_cv_prog_cc_c89=$ac_arg 4329fi 4330rm -f core conftest.err conftest.$ac_objext conftest.beam 4331 test "x$ac_cv_prog_cc_c89" != "xno" && break 4332done 4333rm -f conftest.$ac_ext 4334CC=$ac_save_CC 4335fi 4336 4337if test "x$ac_cv_prog_cc_c89" = xno 4338then : 4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4340printf "%s\n" "unsupported" >&6; } 4341else $as_nop 4342 if test "x$ac_cv_prog_cc_c89" = x 4343then : 4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4345printf "%s\n" "none needed" >&6; } 4346else $as_nop 4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4348printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4349 CC="$CC $ac_cv_prog_cc_c89" 4350fi 4351 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4352 ac_prog_cc_stdc=c89 4353fi 4354fi 4355 4356ac_ext=c 4357ac_cpp='$CPP $CPPFLAGS' 4358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4360ac_compiler_gnu=$ac_cv_c_compiler_gnu 4361 4362 4363 ac_ext=c 4364ac_cpp='$CPP $CPPFLAGS' 4365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4367ac_compiler_gnu=$ac_cv_c_compiler_gnu 4368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4369printf %s "checking whether $CC understands -c and -o together... " >&6; } 4370if test ${am_cv_prog_cc_c_o+y} 4371then : 4372 printf %s "(cached) " >&6 4373else $as_nop 4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4375/* end confdefs.h. */ 4376 4377int 4378main (void) 4379{ 4380 4381 ; 4382 return 0; 4383} 4384_ACEOF 4385 # Make sure it works both with $CC and with simple cc. 4386 # Following AC_PROG_CC_C_O, we do the test twice because some 4387 # compilers refuse to overwrite an existing .o file with -o, 4388 # though they will create one. 4389 am_cv_prog_cc_c_o=yes 4390 for am_i in 1 2; do 4391 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4392 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4393 ac_status=$? 4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4395 (exit $ac_status); } \ 4396 && test -f conftest2.$ac_objext; then 4397 : OK 4398 else 4399 am_cv_prog_cc_c_o=no 4400 break 4401 fi 4402 done 4403 rm -f core conftest* 4404 unset am_i 4405fi 4406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4407printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4408if test "$am_cv_prog_cc_c_o" != yes; then 4409 # Losing compiler, so override with the script. 4410 # FIXME: It is wrong to rewrite CC. 4411 # But if we don't then we get into trouble of one sort or another. 4412 # A longer-term fix would be to have automake use am__CC in this case, 4413 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4414 CC="$am_aux_dir/compile $CC" 4415fi 4416ac_ext=c 4417ac_cpp='$CPP $CPPFLAGS' 4418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4420ac_compiler_gnu=$ac_cv_c_compiler_gnu 4421 4422 4423depcc="$CC" am_compiler_list= 4424 4425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4426printf %s "checking dependency style of $depcc... " >&6; } 4427if test ${am_cv_CC_dependencies_compiler_type+y} 4428then : 4429 printf %s "(cached) " >&6 4430else $as_nop 4431 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4432 # We make a subdir and do the tests there. Otherwise we can end up 4433 # making bogus files that we don't know about and never remove. For 4434 # instance it was reported that on HP-UX the gcc test will end up 4435 # making a dummy file named 'D' -- because '-MD' means "put the output 4436 # in D". 4437 rm -rf conftest.dir 4438 mkdir conftest.dir 4439 # Copy depcomp to subdir because otherwise we won't find it if we're 4440 # using a relative directory. 4441 cp "$am_depcomp" conftest.dir 4442 cd conftest.dir 4443 # We will build objects and dependencies in a subdirectory because 4444 # it helps to detect inapplicable dependency modes. For instance 4445 # both Tru64's cc and ICC support -MD to output dependencies as a 4446 # side effect of compilation, but ICC will put the dependencies in 4447 # the current directory while Tru64 will put them in the object 4448 # directory. 4449 mkdir sub 4450 4451 am_cv_CC_dependencies_compiler_type=none 4452 if test "$am_compiler_list" = ""; then 4453 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4454 fi 4455 am__universal=false 4456 case " $depcc " in #( 4457 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4458 esac 4459 4460 for depmode in $am_compiler_list; do 4461 # Setup a source with many dependencies, because some compilers 4462 # like to wrap large dependency lists on column 80 (with \), and 4463 # we should not choose a depcomp mode which is confused by this. 4464 # 4465 # We need to recreate these files for each test, as the compiler may 4466 # overwrite some of them when testing with obscure command lines. 4467 # This happens at least with the AIX C compiler. 4468 : > sub/conftest.c 4469 for i in 1 2 3 4 5 6; do 4470 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4471 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4472 # Solaris 10 /bin/sh. 4473 echo '/* dummy */' > sub/conftst$i.h 4474 done 4475 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4476 4477 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4478 # mode. It turns out that the SunPro C++ compiler does not properly 4479 # handle '-M -o', and we need to detect this. Also, some Intel 4480 # versions had trouble with output in subdirs. 4481 am__obj=sub/conftest.${OBJEXT-o} 4482 am__minus_obj="-o $am__obj" 4483 case $depmode in 4484 gcc) 4485 # This depmode causes a compiler race in universal mode. 4486 test "$am__universal" = false || continue 4487 ;; 4488 nosideeffect) 4489 # After this tag, mechanisms are not by side-effect, so they'll 4490 # only be used when explicitly requested. 4491 if test "x$enable_dependency_tracking" = xyes; then 4492 continue 4493 else 4494 break 4495 fi 4496 ;; 4497 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4498 # This compiler won't grok '-c -o', but also, the minuso test has 4499 # not run yet. These depmodes are late enough in the game, and 4500 # so weak that their functioning should not be impacted. 4501 am__obj=conftest.${OBJEXT-o} 4502 am__minus_obj= 4503 ;; 4504 none) break ;; 4505 esac 4506 if depmode=$depmode \ 4507 source=sub/conftest.c object=$am__obj \ 4508 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4509 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4510 >/dev/null 2>conftest.err && 4511 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4512 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4513 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4514 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4515 # icc doesn't choke on unknown options, it will just issue warnings 4516 # or remarks (even with -Werror). So we grep stderr for any message 4517 # that says an option was ignored or not supported. 4518 # When given -MP, icc 7.0 and 7.1 complain thusly: 4519 # icc: Command line warning: ignoring option '-M'; no argument required 4520 # The diagnosis changed in icc 8.0: 4521 # icc: Command line remark: option '-MP' not supported 4522 if (grep 'ignoring option' conftest.err || 4523 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4524 am_cv_CC_dependencies_compiler_type=$depmode 4525 break 4526 fi 4527 fi 4528 done 4529 4530 cd .. 4531 rm -rf conftest.dir 4532else 4533 am_cv_CC_dependencies_compiler_type=none 4534fi 4535 4536fi 4537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4538printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4539CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4540 4541 if 4542 test "x$enable_dependency_tracking" != xno \ 4543 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4544 am__fastdepCC_TRUE= 4545 am__fastdepCC_FALSE='#' 4546else 4547 am__fastdepCC_TRUE='#' 4548 am__fastdepCC_FALSE= 4549fi 4550 4551 4552 4553 4554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4555printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4556if test ${ac_cv_c_undeclared_builtin_options+y} 4557then : 4558 printf %s "(cached) " >&6 4559else $as_nop 4560 ac_save_CFLAGS=$CFLAGS 4561 ac_cv_c_undeclared_builtin_options='cannot detect' 4562 for ac_arg in '' -fno-builtin; do 4563 CFLAGS="$ac_save_CFLAGS $ac_arg" 4564 # This test program should *not* compile successfully. 4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4566/* end confdefs.h. */ 4567 4568int 4569main (void) 4570{ 4571(void) strchr; 4572 ; 4573 return 0; 4574} 4575_ACEOF 4576if ac_fn_c_try_compile "$LINENO" 4577then : 4578 4579else $as_nop 4580 # This test program should compile successfully. 4581 # No library function is consistently available on 4582 # freestanding implementations, so test against a dummy 4583 # declaration. Include always-available headers on the 4584 # off chance that they somehow elicit warnings. 4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4586/* end confdefs.h. */ 4587#include <float.h> 4588#include <limits.h> 4589#include <stdarg.h> 4590#include <stddef.h> 4591extern void ac_decl (int, char *); 4592 4593int 4594main (void) 4595{ 4596(void) ac_decl (0, (char *) 0); 4597 (void) ac_decl; 4598 4599 ; 4600 return 0; 4601} 4602_ACEOF 4603if ac_fn_c_try_compile "$LINENO" 4604then : 4605 if test x"$ac_arg" = x 4606then : 4607 ac_cv_c_undeclared_builtin_options='none needed' 4608else $as_nop 4609 ac_cv_c_undeclared_builtin_options=$ac_arg 4610fi 4611 break 4612fi 4613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4614fi 4615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4616 done 4617 CFLAGS=$ac_save_CFLAGS 4618 4619fi 4620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4621printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4622 case $ac_cv_c_undeclared_builtin_options in #( 4623 'cannot detect') : 4624 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4625printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4626as_fn_error $? "cannot make $CC report undeclared builtins 4627See \`config.log' for more details" "$LINENO" 5; } ;; #( 4628 'none needed') : 4629 ac_c_undeclared_builtin_options='' ;; #( 4630 *) : 4631 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4632esac 4633 4634ac_header= ac_cache= 4635for ac_item in $ac_header_c_list 4636do 4637 if test $ac_cache; then 4638 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4639 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4640 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4641 fi 4642 ac_header= ac_cache= 4643 elif test $ac_header; then 4644 ac_cache=$ac_item 4645 else 4646 ac_header=$ac_item 4647 fi 4648done 4649 4650 4651 4652 4653 4654 4655 4656 4657if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4658then : 4659 4660printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4661 4662fi 4663 4664 4665 4666 4667ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4668if test "x$ac_cv_have_decl___clang__" = xyes 4669then : 4670 CLANGCC="yes" 4671else $as_nop 4672 CLANGCC="no" 4673fi 4674ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4675if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4676then : 4677 INTELCC="yes" 4678else $as_nop 4679 INTELCC="no" 4680fi 4681ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4682if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4683then : 4684 SUNCC="yes" 4685else $as_nop 4686 SUNCC="no" 4687fi 4688 4689 4690 4691 4692 4693 4694 4695 4696if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4697 if test -n "$ac_tool_prefix"; then 4698 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4699set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4701printf %s "checking for $ac_word... " >&6; } 4702if test ${ac_cv_path_PKG_CONFIG+y} 4703then : 4704 printf %s "(cached) " >&6 4705else $as_nop 4706 case $PKG_CONFIG in 4707 [\\/]* | ?:[\\/]*) 4708 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4709 ;; 4710 *) 4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4712for as_dir in $PATH 4713do 4714 IFS=$as_save_IFS 4715 case $as_dir in #((( 4716 '') as_dir=./ ;; 4717 */) ;; 4718 *) as_dir=$as_dir/ ;; 4719 esac 4720 for ac_exec_ext in '' $ac_executable_extensions; do 4721 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4722 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4724 break 2 4725 fi 4726done 4727 done 4728IFS=$as_save_IFS 4729 4730 ;; 4731esac 4732fi 4733PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4734if test -n "$PKG_CONFIG"; then 4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4736printf "%s\n" "$PKG_CONFIG" >&6; } 4737else 4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4739printf "%s\n" "no" >&6; } 4740fi 4741 4742 4743fi 4744if test -z "$ac_cv_path_PKG_CONFIG"; then 4745 ac_pt_PKG_CONFIG=$PKG_CONFIG 4746 # Extract the first word of "pkg-config", so it can be a program name with args. 4747set dummy pkg-config; ac_word=$2 4748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4749printf %s "checking for $ac_word... " >&6; } 4750if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4751then : 4752 printf %s "(cached) " >&6 4753else $as_nop 4754 case $ac_pt_PKG_CONFIG in 4755 [\\/]* | ?:[\\/]*) 4756 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4757 ;; 4758 *) 4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4760for as_dir in $PATH 4761do 4762 IFS=$as_save_IFS 4763 case $as_dir in #((( 4764 '') as_dir=./ ;; 4765 */) ;; 4766 *) as_dir=$as_dir/ ;; 4767 esac 4768 for ac_exec_ext in '' $ac_executable_extensions; do 4769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4770 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4772 break 2 4773 fi 4774done 4775 done 4776IFS=$as_save_IFS 4777 4778 ;; 4779esac 4780fi 4781ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4782if test -n "$ac_pt_PKG_CONFIG"; then 4783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4784printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4785else 4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4787printf "%s\n" "no" >&6; } 4788fi 4789 4790 if test "x$ac_pt_PKG_CONFIG" = x; then 4791 PKG_CONFIG="" 4792 else 4793 case $cross_compiling:$ac_tool_warned in 4794yes:) 4795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4796printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4797ac_tool_warned=yes ;; 4798esac 4799 PKG_CONFIG=$ac_pt_PKG_CONFIG 4800 fi 4801else 4802 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4803fi 4804 4805fi 4806if test -n "$PKG_CONFIG"; then 4807 _pkg_min_version=0.9.0 4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4809printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4810 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4812printf "%s\n" "yes" >&6; } 4813 else 4814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4815printf "%s\n" "no" >&6; } 4816 PKG_CONFIG="" 4817 fi 4818fi 4819 4820 4821 # Make sure we can run config.sub. 4822$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4823 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4824 4825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4826printf %s "checking build system type... " >&6; } 4827if test ${ac_cv_build+y} 4828then : 4829 printf %s "(cached) " >&6 4830else $as_nop 4831 ac_build_alias=$build_alias 4832test "x$ac_build_alias" = x && 4833 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4834test "x$ac_build_alias" = x && 4835 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4836ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4837 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4838 4839fi 4840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4841printf "%s\n" "$ac_cv_build" >&6; } 4842case $ac_cv_build in 4843*-*-*) ;; 4844*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4845esac 4846build=$ac_cv_build 4847ac_save_IFS=$IFS; IFS='-' 4848set x $ac_cv_build 4849shift 4850build_cpu=$1 4851build_vendor=$2 4852shift; shift 4853# Remember, the first character of IFS is used to create $*, 4854# except with old shells: 4855build_os=$* 4856IFS=$ac_save_IFS 4857case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4858 4859 4860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4861printf %s "checking host system type... " >&6; } 4862if test ${ac_cv_host+y} 4863then : 4864 printf %s "(cached) " >&6 4865else $as_nop 4866 if test "x$host_alias" = x; then 4867 ac_cv_host=$ac_cv_build 4868else 4869 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4870 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4871fi 4872 4873fi 4874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4875printf "%s\n" "$ac_cv_host" >&6; } 4876case $ac_cv_host in 4877*-*-*) ;; 4878*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4879esac 4880host=$ac_cv_host 4881ac_save_IFS=$IFS; IFS='-' 4882set x $ac_cv_host 4883shift 4884host_cpu=$1 4885host_vendor=$2 4886shift; shift 4887# Remember, the first character of IFS is used to create $*, 4888# except with old shells: 4889host_os=$* 4890IFS=$ac_save_IFS 4891case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4892 4893 4894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4895printf %s "checking for a sed that does not truncate output... " >&6; } 4896if test ${ac_cv_path_SED+y} 4897then : 4898 printf %s "(cached) " >&6 4899else $as_nop 4900 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4901 for ac_i in 1 2 3 4 5 6 7; do 4902 ac_script="$ac_script$as_nl$ac_script" 4903 done 4904 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4905 { ac_script=; unset ac_script;} 4906 if test -z "$SED"; then 4907 ac_path_SED_found=false 4908 # Loop through the user's path and test for each of PROGNAME-LIST 4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4910for as_dir in $PATH 4911do 4912 IFS=$as_save_IFS 4913 case $as_dir in #((( 4914 '') as_dir=./ ;; 4915 */) ;; 4916 *) as_dir=$as_dir/ ;; 4917 esac 4918 for ac_prog in sed gsed 4919 do 4920 for ac_exec_ext in '' $ac_executable_extensions; do 4921 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4922 as_fn_executable_p "$ac_path_SED" || continue 4923# Check for GNU ac_path_SED and select it if it is found. 4924 # Check for GNU $ac_path_SED 4925case `"$ac_path_SED" --version 2>&1` in 4926*GNU*) 4927 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4928*) 4929 ac_count=0 4930 printf %s 0123456789 >"conftest.in" 4931 while : 4932 do 4933 cat "conftest.in" "conftest.in" >"conftest.tmp" 4934 mv "conftest.tmp" "conftest.in" 4935 cp "conftest.in" "conftest.nl" 4936 printf "%s\n" '' >> "conftest.nl" 4937 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4939 as_fn_arith $ac_count + 1 && ac_count=$as_val 4940 if test $ac_count -gt ${ac_path_SED_max-0}; then 4941 # Best one so far, save it but keep looking for a better one 4942 ac_cv_path_SED="$ac_path_SED" 4943 ac_path_SED_max=$ac_count 4944 fi 4945 # 10*(2^10) chars as input seems more than enough 4946 test $ac_count -gt 10 && break 4947 done 4948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4949esac 4950 4951 $ac_path_SED_found && break 3 4952 done 4953 done 4954 done 4955IFS=$as_save_IFS 4956 if test -z "$ac_cv_path_SED"; then 4957 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4958 fi 4959else 4960 ac_cv_path_SED=$SED 4961fi 4962 4963fi 4964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4965printf "%s\n" "$ac_cv_path_SED" >&6; } 4966 SED="$ac_cv_path_SED" 4967 rm -f conftest.sed 4968 4969 4970 4971 4972 4973 4974# Check whether --enable-selective-werror was given. 4975if test ${enable_selective_werror+y} 4976then : 4977 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4978else $as_nop 4979 SELECTIVE_WERROR=yes 4980fi 4981 4982 4983 4984 4985 4986# -v is too short to test reliably with XORG_TESTSET_CFLAG 4987if test "x$SUNCC" = "xyes"; then 4988 BASE_CFLAGS="-v" 4989else 4990 BASE_CFLAGS="" 4991fi 4992 4993# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007xorg_testset_save_CFLAGS="$CFLAGS" 5008 5009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5012printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5013if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5014then : 5015 printf %s "(cached) " >&6 5016else $as_nop 5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5018/* end confdefs.h. */ 5019int i; 5020_ACEOF 5021if ac_fn_c_try_compile "$LINENO" 5022then : 5023 xorg_cv_cc_flag_unknown_warning_option=yes 5024else $as_nop 5025 xorg_cv_cc_flag_unknown_warning_option=no 5026fi 5027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5028fi 5029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5030printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5032 CFLAGS="$xorg_testset_save_CFLAGS" 5033fi 5034 5035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5038 fi 5039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5041printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5042if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5043then : 5044 printf %s "(cached) " >&6 5045else $as_nop 5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5047/* end confdefs.h. */ 5048int i; 5049_ACEOF 5050if ac_fn_c_try_compile "$LINENO" 5051then : 5052 xorg_cv_cc_flag_unused_command_line_argument=yes 5053else $as_nop 5054 xorg_cv_cc_flag_unused_command_line_argument=no 5055fi 5056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5057fi 5058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5059printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5061 CFLAGS="$xorg_testset_save_CFLAGS" 5062fi 5063 5064found="no" 5065 5066 if test $found = "no" ; then 5067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5069 fi 5070 5071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5073 fi 5074 5075 CFLAGS="$CFLAGS -Wall" 5076 5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5078printf %s "checking if $CC supports -Wall... " >&6; } 5079 cacheid=xorg_cv_cc_flag__Wall 5080 if eval test \${$cacheid+y} 5081then : 5082 printf %s "(cached) " >&6 5083else $as_nop 5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5085/* end confdefs.h. */ 5086int i; 5087int 5088main (void) 5089{ 5090 5091 ; 5092 return 0; 5093} 5094_ACEOF 5095if ac_fn_c_try_link "$LINENO" 5096then : 5097 eval $cacheid=yes 5098else $as_nop 5099 eval $cacheid=no 5100fi 5101rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5102 conftest$ac_exeext conftest.$ac_ext 5103fi 5104 5105 5106 CFLAGS="$xorg_testset_save_CFLAGS" 5107 5108 eval supported=\$$cacheid 5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5110printf "%s\n" "$supported" >&6; } 5111 if test "$supported" = "yes" ; then 5112 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5113 found="yes" 5114 fi 5115 fi 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131xorg_testset_save_CFLAGS="$CFLAGS" 5132 5133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5136printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5137if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5138then : 5139 printf %s "(cached) " >&6 5140else $as_nop 5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5142/* end confdefs.h. */ 5143int i; 5144_ACEOF 5145if ac_fn_c_try_compile "$LINENO" 5146then : 5147 xorg_cv_cc_flag_unknown_warning_option=yes 5148else $as_nop 5149 xorg_cv_cc_flag_unknown_warning_option=no 5150fi 5151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5152fi 5153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5154printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5156 CFLAGS="$xorg_testset_save_CFLAGS" 5157fi 5158 5159if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5162 fi 5163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5165printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5166if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5167then : 5168 printf %s "(cached) " >&6 5169else $as_nop 5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5171/* end confdefs.h. */ 5172int i; 5173_ACEOF 5174if ac_fn_c_try_compile "$LINENO" 5175then : 5176 xorg_cv_cc_flag_unused_command_line_argument=yes 5177else $as_nop 5178 xorg_cv_cc_flag_unused_command_line_argument=no 5179fi 5180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5181fi 5182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5183printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5185 CFLAGS="$xorg_testset_save_CFLAGS" 5186fi 5187 5188found="no" 5189 5190 if test $found = "no" ; then 5191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5193 fi 5194 5195 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5197 fi 5198 5199 CFLAGS="$CFLAGS -Wpointer-arith" 5200 5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5202printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5203 cacheid=xorg_cv_cc_flag__Wpointer_arith 5204 if eval test \${$cacheid+y} 5205then : 5206 printf %s "(cached) " >&6 5207else $as_nop 5208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5209/* end confdefs.h. */ 5210int i; 5211int 5212main (void) 5213{ 5214 5215 ; 5216 return 0; 5217} 5218_ACEOF 5219if ac_fn_c_try_link "$LINENO" 5220then : 5221 eval $cacheid=yes 5222else $as_nop 5223 eval $cacheid=no 5224fi 5225rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5226 conftest$ac_exeext conftest.$ac_ext 5227fi 5228 5229 5230 CFLAGS="$xorg_testset_save_CFLAGS" 5231 5232 eval supported=\$$cacheid 5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5234printf "%s\n" "$supported" >&6; } 5235 if test "$supported" = "yes" ; then 5236 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5237 found="yes" 5238 fi 5239 fi 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255xorg_testset_save_CFLAGS="$CFLAGS" 5256 5257if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5260printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5261if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5262then : 5263 printf %s "(cached) " >&6 5264else $as_nop 5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5266/* end confdefs.h. */ 5267int i; 5268_ACEOF 5269if ac_fn_c_try_compile "$LINENO" 5270then : 5271 xorg_cv_cc_flag_unknown_warning_option=yes 5272else $as_nop 5273 xorg_cv_cc_flag_unknown_warning_option=no 5274fi 5275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5276fi 5277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5278printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5280 CFLAGS="$xorg_testset_save_CFLAGS" 5281fi 5282 5283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5286 fi 5287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5289printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5290if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5291then : 5292 printf %s "(cached) " >&6 5293else $as_nop 5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5295/* end confdefs.h. */ 5296int i; 5297_ACEOF 5298if ac_fn_c_try_compile "$LINENO" 5299then : 5300 xorg_cv_cc_flag_unused_command_line_argument=yes 5301else $as_nop 5302 xorg_cv_cc_flag_unused_command_line_argument=no 5303fi 5304rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5305fi 5306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5307printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5309 CFLAGS="$xorg_testset_save_CFLAGS" 5310fi 5311 5312found="no" 5313 5314 if test $found = "no" ; then 5315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5317 fi 5318 5319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5321 fi 5322 5323 CFLAGS="$CFLAGS -Wmissing-declarations" 5324 5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5326printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5327 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5328 if eval test \${$cacheid+y} 5329then : 5330 printf %s "(cached) " >&6 5331else $as_nop 5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5333/* end confdefs.h. */ 5334int i; 5335int 5336main (void) 5337{ 5338 5339 ; 5340 return 0; 5341} 5342_ACEOF 5343if ac_fn_c_try_link "$LINENO" 5344then : 5345 eval $cacheid=yes 5346else $as_nop 5347 eval $cacheid=no 5348fi 5349rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5350 conftest$ac_exeext conftest.$ac_ext 5351fi 5352 5353 5354 CFLAGS="$xorg_testset_save_CFLAGS" 5355 5356 eval supported=\$$cacheid 5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5358printf "%s\n" "$supported" >&6; } 5359 if test "$supported" = "yes" ; then 5360 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5361 found="yes" 5362 fi 5363 fi 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379xorg_testset_save_CFLAGS="$CFLAGS" 5380 5381if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5384printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5385if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5386then : 5387 printf %s "(cached) " >&6 5388else $as_nop 5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5390/* end confdefs.h. */ 5391int i; 5392_ACEOF 5393if ac_fn_c_try_compile "$LINENO" 5394then : 5395 xorg_cv_cc_flag_unknown_warning_option=yes 5396else $as_nop 5397 xorg_cv_cc_flag_unknown_warning_option=no 5398fi 5399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5400fi 5401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5402printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5404 CFLAGS="$xorg_testset_save_CFLAGS" 5405fi 5406 5407if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5410 fi 5411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5413printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5414if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5415then : 5416 printf %s "(cached) " >&6 5417else $as_nop 5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5419/* end confdefs.h. */ 5420int i; 5421_ACEOF 5422if ac_fn_c_try_compile "$LINENO" 5423then : 5424 xorg_cv_cc_flag_unused_command_line_argument=yes 5425else $as_nop 5426 xorg_cv_cc_flag_unused_command_line_argument=no 5427fi 5428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5429fi 5430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5431printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5433 CFLAGS="$xorg_testset_save_CFLAGS" 5434fi 5435 5436found="no" 5437 5438 if test $found = "no" ; then 5439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5441 fi 5442 5443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5445 fi 5446 5447 CFLAGS="$CFLAGS -Wformat=2" 5448 5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5450printf %s "checking if $CC supports -Wformat=2... " >&6; } 5451 cacheid=xorg_cv_cc_flag__Wformat_2 5452 if eval test \${$cacheid+y} 5453then : 5454 printf %s "(cached) " >&6 5455else $as_nop 5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5457/* end confdefs.h. */ 5458int i; 5459int 5460main (void) 5461{ 5462 5463 ; 5464 return 0; 5465} 5466_ACEOF 5467if ac_fn_c_try_link "$LINENO" 5468then : 5469 eval $cacheid=yes 5470else $as_nop 5471 eval $cacheid=no 5472fi 5473rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5474 conftest$ac_exeext conftest.$ac_ext 5475fi 5476 5477 5478 CFLAGS="$xorg_testset_save_CFLAGS" 5479 5480 eval supported=\$$cacheid 5481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5482printf "%s\n" "$supported" >&6; } 5483 if test "$supported" = "yes" ; then 5484 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5485 found="yes" 5486 fi 5487 fi 5488 5489 if test $found = "no" ; then 5490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5492 fi 5493 5494 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5496 fi 5497 5498 CFLAGS="$CFLAGS -Wformat" 5499 5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5501printf %s "checking if $CC supports -Wformat... " >&6; } 5502 cacheid=xorg_cv_cc_flag__Wformat 5503 if eval test \${$cacheid+y} 5504then : 5505 printf %s "(cached) " >&6 5506else $as_nop 5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5508/* end confdefs.h. */ 5509int i; 5510int 5511main (void) 5512{ 5513 5514 ; 5515 return 0; 5516} 5517_ACEOF 5518if ac_fn_c_try_link "$LINENO" 5519then : 5520 eval $cacheid=yes 5521else $as_nop 5522 eval $cacheid=no 5523fi 5524rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5525 conftest$ac_exeext conftest.$ac_ext 5526fi 5527 5528 5529 CFLAGS="$xorg_testset_save_CFLAGS" 5530 5531 eval supported=\$$cacheid 5532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5533printf "%s\n" "$supported" >&6; } 5534 if test "$supported" = "yes" ; then 5535 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5536 found="yes" 5537 fi 5538 fi 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556xorg_testset_save_CFLAGS="$CFLAGS" 5557 5558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5561printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5562if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5563then : 5564 printf %s "(cached) " >&6 5565else $as_nop 5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5567/* end confdefs.h. */ 5568int i; 5569_ACEOF 5570if ac_fn_c_try_compile "$LINENO" 5571then : 5572 xorg_cv_cc_flag_unknown_warning_option=yes 5573else $as_nop 5574 xorg_cv_cc_flag_unknown_warning_option=no 5575fi 5576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5577fi 5578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5579printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5581 CFLAGS="$xorg_testset_save_CFLAGS" 5582fi 5583 5584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5587 fi 5588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5590printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5591if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5592then : 5593 printf %s "(cached) " >&6 5594else $as_nop 5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5596/* end confdefs.h. */ 5597int i; 5598_ACEOF 5599if ac_fn_c_try_compile "$LINENO" 5600then : 5601 xorg_cv_cc_flag_unused_command_line_argument=yes 5602else $as_nop 5603 xorg_cv_cc_flag_unused_command_line_argument=no 5604fi 5605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5606fi 5607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5608printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5610 CFLAGS="$xorg_testset_save_CFLAGS" 5611fi 5612 5613found="no" 5614 5615 if test $found = "no" ; then 5616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5618 fi 5619 5620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5622 fi 5623 5624 CFLAGS="$CFLAGS -Wstrict-prototypes" 5625 5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5627printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5628 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5629 if eval test \${$cacheid+y} 5630then : 5631 printf %s "(cached) " >&6 5632else $as_nop 5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5634/* end confdefs.h. */ 5635int i; 5636int 5637main (void) 5638{ 5639 5640 ; 5641 return 0; 5642} 5643_ACEOF 5644if ac_fn_c_try_link "$LINENO" 5645then : 5646 eval $cacheid=yes 5647else $as_nop 5648 eval $cacheid=no 5649fi 5650rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5651 conftest$ac_exeext conftest.$ac_ext 5652fi 5653 5654 5655 CFLAGS="$xorg_testset_save_CFLAGS" 5656 5657 eval supported=\$$cacheid 5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5659printf "%s\n" "$supported" >&6; } 5660 if test "$supported" = "yes" ; then 5661 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5662 found="yes" 5663 fi 5664 fi 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680xorg_testset_save_CFLAGS="$CFLAGS" 5681 5682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5685printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5686if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5687then : 5688 printf %s "(cached) " >&6 5689else $as_nop 5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5691/* end confdefs.h. */ 5692int i; 5693_ACEOF 5694if ac_fn_c_try_compile "$LINENO" 5695then : 5696 xorg_cv_cc_flag_unknown_warning_option=yes 5697else $as_nop 5698 xorg_cv_cc_flag_unknown_warning_option=no 5699fi 5700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5701fi 5702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5703printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5704 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5705 CFLAGS="$xorg_testset_save_CFLAGS" 5706fi 5707 5708if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5711 fi 5712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5714printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5715if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5716then : 5717 printf %s "(cached) " >&6 5718else $as_nop 5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5720/* end confdefs.h. */ 5721int i; 5722_ACEOF 5723if ac_fn_c_try_compile "$LINENO" 5724then : 5725 xorg_cv_cc_flag_unused_command_line_argument=yes 5726else $as_nop 5727 xorg_cv_cc_flag_unused_command_line_argument=no 5728fi 5729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5730fi 5731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5732printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5734 CFLAGS="$xorg_testset_save_CFLAGS" 5735fi 5736 5737found="no" 5738 5739 if test $found = "no" ; then 5740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5742 fi 5743 5744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5746 fi 5747 5748 CFLAGS="$CFLAGS -Wmissing-prototypes" 5749 5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5751printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5752 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5753 if eval test \${$cacheid+y} 5754then : 5755 printf %s "(cached) " >&6 5756else $as_nop 5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5758/* end confdefs.h. */ 5759int i; 5760int 5761main (void) 5762{ 5763 5764 ; 5765 return 0; 5766} 5767_ACEOF 5768if ac_fn_c_try_link "$LINENO" 5769then : 5770 eval $cacheid=yes 5771else $as_nop 5772 eval $cacheid=no 5773fi 5774rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5775 conftest$ac_exeext conftest.$ac_ext 5776fi 5777 5778 5779 CFLAGS="$xorg_testset_save_CFLAGS" 5780 5781 eval supported=\$$cacheid 5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5783printf "%s\n" "$supported" >&6; } 5784 if test "$supported" = "yes" ; then 5785 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5786 found="yes" 5787 fi 5788 fi 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804xorg_testset_save_CFLAGS="$CFLAGS" 5805 5806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5809printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5810if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5811then : 5812 printf %s "(cached) " >&6 5813else $as_nop 5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5815/* end confdefs.h. */ 5816int i; 5817_ACEOF 5818if ac_fn_c_try_compile "$LINENO" 5819then : 5820 xorg_cv_cc_flag_unknown_warning_option=yes 5821else $as_nop 5822 xorg_cv_cc_flag_unknown_warning_option=no 5823fi 5824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5825fi 5826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5827printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5829 CFLAGS="$xorg_testset_save_CFLAGS" 5830fi 5831 5832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5835 fi 5836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5838printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5839if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5840then : 5841 printf %s "(cached) " >&6 5842else $as_nop 5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5844/* end confdefs.h. */ 5845int i; 5846_ACEOF 5847if ac_fn_c_try_compile "$LINENO" 5848then : 5849 xorg_cv_cc_flag_unused_command_line_argument=yes 5850else $as_nop 5851 xorg_cv_cc_flag_unused_command_line_argument=no 5852fi 5853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5854fi 5855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5856printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5858 CFLAGS="$xorg_testset_save_CFLAGS" 5859fi 5860 5861found="no" 5862 5863 if test $found = "no" ; then 5864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5866 fi 5867 5868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5870 fi 5871 5872 CFLAGS="$CFLAGS -Wnested-externs" 5873 5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5875printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5876 cacheid=xorg_cv_cc_flag__Wnested_externs 5877 if eval test \${$cacheid+y} 5878then : 5879 printf %s "(cached) " >&6 5880else $as_nop 5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5882/* end confdefs.h. */ 5883int i; 5884int 5885main (void) 5886{ 5887 5888 ; 5889 return 0; 5890} 5891_ACEOF 5892if ac_fn_c_try_link "$LINENO" 5893then : 5894 eval $cacheid=yes 5895else $as_nop 5896 eval $cacheid=no 5897fi 5898rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5899 conftest$ac_exeext conftest.$ac_ext 5900fi 5901 5902 5903 CFLAGS="$xorg_testset_save_CFLAGS" 5904 5905 eval supported=\$$cacheid 5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5907printf "%s\n" "$supported" >&6; } 5908 if test "$supported" = "yes" ; then 5909 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5910 found="yes" 5911 fi 5912 fi 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928xorg_testset_save_CFLAGS="$CFLAGS" 5929 5930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5933printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5934if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5935then : 5936 printf %s "(cached) " >&6 5937else $as_nop 5938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5939/* end confdefs.h. */ 5940int i; 5941_ACEOF 5942if ac_fn_c_try_compile "$LINENO" 5943then : 5944 xorg_cv_cc_flag_unknown_warning_option=yes 5945else $as_nop 5946 xorg_cv_cc_flag_unknown_warning_option=no 5947fi 5948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5949fi 5950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5951printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5953 CFLAGS="$xorg_testset_save_CFLAGS" 5954fi 5955 5956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5959 fi 5960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5962printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5963if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5964then : 5965 printf %s "(cached) " >&6 5966else $as_nop 5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5968/* end confdefs.h. */ 5969int i; 5970_ACEOF 5971if ac_fn_c_try_compile "$LINENO" 5972then : 5973 xorg_cv_cc_flag_unused_command_line_argument=yes 5974else $as_nop 5975 xorg_cv_cc_flag_unused_command_line_argument=no 5976fi 5977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5978fi 5979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5980printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5982 CFLAGS="$xorg_testset_save_CFLAGS" 5983fi 5984 5985found="no" 5986 5987 if test $found = "no" ; then 5988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5990 fi 5991 5992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5994 fi 5995 5996 CFLAGS="$CFLAGS -Wbad-function-cast" 5997 5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5999printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6000 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6001 if eval test \${$cacheid+y} 6002then : 6003 printf %s "(cached) " >&6 6004else $as_nop 6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6006/* end confdefs.h. */ 6007int i; 6008int 6009main (void) 6010{ 6011 6012 ; 6013 return 0; 6014} 6015_ACEOF 6016if ac_fn_c_try_link "$LINENO" 6017then : 6018 eval $cacheid=yes 6019else $as_nop 6020 eval $cacheid=no 6021fi 6022rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6023 conftest$ac_exeext conftest.$ac_ext 6024fi 6025 6026 6027 CFLAGS="$xorg_testset_save_CFLAGS" 6028 6029 eval supported=\$$cacheid 6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6031printf "%s\n" "$supported" >&6; } 6032 if test "$supported" = "yes" ; then 6033 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6034 found="yes" 6035 fi 6036 fi 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052xorg_testset_save_CFLAGS="$CFLAGS" 6053 6054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6057printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6058if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6059then : 6060 printf %s "(cached) " >&6 6061else $as_nop 6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6063/* end confdefs.h. */ 6064int i; 6065_ACEOF 6066if ac_fn_c_try_compile "$LINENO" 6067then : 6068 xorg_cv_cc_flag_unknown_warning_option=yes 6069else $as_nop 6070 xorg_cv_cc_flag_unknown_warning_option=no 6071fi 6072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6073fi 6074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6075printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6077 CFLAGS="$xorg_testset_save_CFLAGS" 6078fi 6079 6080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6083 fi 6084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6086printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6087if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6088then : 6089 printf %s "(cached) " >&6 6090else $as_nop 6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6092/* end confdefs.h. */ 6093int i; 6094_ACEOF 6095if ac_fn_c_try_compile "$LINENO" 6096then : 6097 xorg_cv_cc_flag_unused_command_line_argument=yes 6098else $as_nop 6099 xorg_cv_cc_flag_unused_command_line_argument=no 6100fi 6101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6102fi 6103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6104printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6106 CFLAGS="$xorg_testset_save_CFLAGS" 6107fi 6108 6109found="no" 6110 6111 if test $found = "no" ; then 6112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6114 fi 6115 6116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6118 fi 6119 6120 CFLAGS="$CFLAGS -Wold-style-definition" 6121 6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6123printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6124 cacheid=xorg_cv_cc_flag__Wold_style_definition 6125 if eval test \${$cacheid+y} 6126then : 6127 printf %s "(cached) " >&6 6128else $as_nop 6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6130/* end confdefs.h. */ 6131int i; 6132int 6133main (void) 6134{ 6135 6136 ; 6137 return 0; 6138} 6139_ACEOF 6140if ac_fn_c_try_link "$LINENO" 6141then : 6142 eval $cacheid=yes 6143else $as_nop 6144 eval $cacheid=no 6145fi 6146rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6147 conftest$ac_exeext conftest.$ac_ext 6148fi 6149 6150 6151 CFLAGS="$xorg_testset_save_CFLAGS" 6152 6153 eval supported=\$$cacheid 6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6155printf "%s\n" "$supported" >&6; } 6156 if test "$supported" = "yes" ; then 6157 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6158 found="yes" 6159 fi 6160 fi 6161 6162 if test $found = "no" ; then 6163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6165 fi 6166 6167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6169 fi 6170 6171 CFLAGS="$CFLAGS -fd" 6172 6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6174printf %s "checking if $CC supports -fd... " >&6; } 6175 cacheid=xorg_cv_cc_flag__fd 6176 if eval test \${$cacheid+y} 6177then : 6178 printf %s "(cached) " >&6 6179else $as_nop 6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6181/* end confdefs.h. */ 6182int i; 6183int 6184main (void) 6185{ 6186 6187 ; 6188 return 0; 6189} 6190_ACEOF 6191if ac_fn_c_try_link "$LINENO" 6192then : 6193 eval $cacheid=yes 6194else $as_nop 6195 eval $cacheid=no 6196fi 6197rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6198 conftest$ac_exeext conftest.$ac_ext 6199fi 6200 6201 6202 CFLAGS="$xorg_testset_save_CFLAGS" 6203 6204 eval supported=\$$cacheid 6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6206printf "%s\n" "$supported" >&6; } 6207 if test "$supported" = "yes" ; then 6208 BASE_CFLAGS="$BASE_CFLAGS -fd" 6209 found="yes" 6210 fi 6211 fi 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227xorg_testset_save_CFLAGS="$CFLAGS" 6228 6229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6232printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6233if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6234then : 6235 printf %s "(cached) " >&6 6236else $as_nop 6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6238/* end confdefs.h. */ 6239int i; 6240_ACEOF 6241if ac_fn_c_try_compile "$LINENO" 6242then : 6243 xorg_cv_cc_flag_unknown_warning_option=yes 6244else $as_nop 6245 xorg_cv_cc_flag_unknown_warning_option=no 6246fi 6247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6248fi 6249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6250printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6251 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6252 CFLAGS="$xorg_testset_save_CFLAGS" 6253fi 6254 6255if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6258 fi 6259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6261printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6262if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6263then : 6264 printf %s "(cached) " >&6 6265else $as_nop 6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6267/* end confdefs.h. */ 6268int i; 6269_ACEOF 6270if ac_fn_c_try_compile "$LINENO" 6271then : 6272 xorg_cv_cc_flag_unused_command_line_argument=yes 6273else $as_nop 6274 xorg_cv_cc_flag_unused_command_line_argument=no 6275fi 6276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6277fi 6278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6279printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6281 CFLAGS="$xorg_testset_save_CFLAGS" 6282fi 6283 6284found="no" 6285 6286 if test $found = "no" ; then 6287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6289 fi 6290 6291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6293 fi 6294 6295 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6296 6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6298printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6299 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6300 if eval test \${$cacheid+y} 6301then : 6302 printf %s "(cached) " >&6 6303else $as_nop 6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6305/* end confdefs.h. */ 6306int i; 6307int 6308main (void) 6309{ 6310 6311 ; 6312 return 0; 6313} 6314_ACEOF 6315if ac_fn_c_try_link "$LINENO" 6316then : 6317 eval $cacheid=yes 6318else $as_nop 6319 eval $cacheid=no 6320fi 6321rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6322 conftest$ac_exeext conftest.$ac_ext 6323fi 6324 6325 6326 CFLAGS="$xorg_testset_save_CFLAGS" 6327 6328 eval supported=\$$cacheid 6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6330printf "%s\n" "$supported" >&6; } 6331 if test "$supported" = "yes" ; then 6332 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6333 found="yes" 6334 fi 6335 fi 6336 6337 6338 6339 6340 6341# This chunk adds additional warnings that could catch undesired effects. 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355xorg_testset_save_CFLAGS="$CFLAGS" 6356 6357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6360printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6361if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6362then : 6363 printf %s "(cached) " >&6 6364else $as_nop 6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6366/* end confdefs.h. */ 6367int i; 6368_ACEOF 6369if ac_fn_c_try_compile "$LINENO" 6370then : 6371 xorg_cv_cc_flag_unknown_warning_option=yes 6372else $as_nop 6373 xorg_cv_cc_flag_unknown_warning_option=no 6374fi 6375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6376fi 6377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6378printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6380 CFLAGS="$xorg_testset_save_CFLAGS" 6381fi 6382 6383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6386 fi 6387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6389printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6390if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6391then : 6392 printf %s "(cached) " >&6 6393else $as_nop 6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6395/* end confdefs.h. */ 6396int i; 6397_ACEOF 6398if ac_fn_c_try_compile "$LINENO" 6399then : 6400 xorg_cv_cc_flag_unused_command_line_argument=yes 6401else $as_nop 6402 xorg_cv_cc_flag_unused_command_line_argument=no 6403fi 6404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6405fi 6406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6407printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6409 CFLAGS="$xorg_testset_save_CFLAGS" 6410fi 6411 6412found="no" 6413 6414 if test $found = "no" ; then 6415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6417 fi 6418 6419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6421 fi 6422 6423 CFLAGS="$CFLAGS -Wunused" 6424 6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6426printf %s "checking if $CC supports -Wunused... " >&6; } 6427 cacheid=xorg_cv_cc_flag__Wunused 6428 if eval test \${$cacheid+y} 6429then : 6430 printf %s "(cached) " >&6 6431else $as_nop 6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6433/* end confdefs.h. */ 6434int i; 6435int 6436main (void) 6437{ 6438 6439 ; 6440 return 0; 6441} 6442_ACEOF 6443if ac_fn_c_try_link "$LINENO" 6444then : 6445 eval $cacheid=yes 6446else $as_nop 6447 eval $cacheid=no 6448fi 6449rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6450 conftest$ac_exeext conftest.$ac_ext 6451fi 6452 6453 6454 CFLAGS="$xorg_testset_save_CFLAGS" 6455 6456 eval supported=\$$cacheid 6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6458printf "%s\n" "$supported" >&6; } 6459 if test "$supported" = "yes" ; then 6460 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6461 found="yes" 6462 fi 6463 fi 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479xorg_testset_save_CFLAGS="$CFLAGS" 6480 6481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6484printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6485if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6486then : 6487 printf %s "(cached) " >&6 6488else $as_nop 6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6490/* end confdefs.h. */ 6491int i; 6492_ACEOF 6493if ac_fn_c_try_compile "$LINENO" 6494then : 6495 xorg_cv_cc_flag_unknown_warning_option=yes 6496else $as_nop 6497 xorg_cv_cc_flag_unknown_warning_option=no 6498fi 6499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6500fi 6501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6502printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6504 CFLAGS="$xorg_testset_save_CFLAGS" 6505fi 6506 6507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6510 fi 6511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6513printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6514if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6515then : 6516 printf %s "(cached) " >&6 6517else $as_nop 6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6519/* end confdefs.h. */ 6520int i; 6521_ACEOF 6522if ac_fn_c_try_compile "$LINENO" 6523then : 6524 xorg_cv_cc_flag_unused_command_line_argument=yes 6525else $as_nop 6526 xorg_cv_cc_flag_unused_command_line_argument=no 6527fi 6528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6529fi 6530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6531printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6533 CFLAGS="$xorg_testset_save_CFLAGS" 6534fi 6535 6536found="no" 6537 6538 if test $found = "no" ; then 6539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6541 fi 6542 6543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6545 fi 6546 6547 CFLAGS="$CFLAGS -Wuninitialized" 6548 6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6550printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6551 cacheid=xorg_cv_cc_flag__Wuninitialized 6552 if eval test \${$cacheid+y} 6553then : 6554 printf %s "(cached) " >&6 6555else $as_nop 6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6557/* end confdefs.h. */ 6558int i; 6559int 6560main (void) 6561{ 6562 6563 ; 6564 return 0; 6565} 6566_ACEOF 6567if ac_fn_c_try_link "$LINENO" 6568then : 6569 eval $cacheid=yes 6570else $as_nop 6571 eval $cacheid=no 6572fi 6573rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6574 conftest$ac_exeext conftest.$ac_ext 6575fi 6576 6577 6578 CFLAGS="$xorg_testset_save_CFLAGS" 6579 6580 eval supported=\$$cacheid 6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6582printf "%s\n" "$supported" >&6; } 6583 if test "$supported" = "yes" ; then 6584 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6585 found="yes" 6586 fi 6587 fi 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603xorg_testset_save_CFLAGS="$CFLAGS" 6604 6605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6608printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6609if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6610then : 6611 printf %s "(cached) " >&6 6612else $as_nop 6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6614/* end confdefs.h. */ 6615int i; 6616_ACEOF 6617if ac_fn_c_try_compile "$LINENO" 6618then : 6619 xorg_cv_cc_flag_unknown_warning_option=yes 6620else $as_nop 6621 xorg_cv_cc_flag_unknown_warning_option=no 6622fi 6623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6624fi 6625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6626printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6628 CFLAGS="$xorg_testset_save_CFLAGS" 6629fi 6630 6631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6634 fi 6635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6637printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6638if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6639then : 6640 printf %s "(cached) " >&6 6641else $as_nop 6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6643/* end confdefs.h. */ 6644int i; 6645_ACEOF 6646if ac_fn_c_try_compile "$LINENO" 6647then : 6648 xorg_cv_cc_flag_unused_command_line_argument=yes 6649else $as_nop 6650 xorg_cv_cc_flag_unused_command_line_argument=no 6651fi 6652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6653fi 6654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6655printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6657 CFLAGS="$xorg_testset_save_CFLAGS" 6658fi 6659 6660found="no" 6661 6662 if test $found = "no" ; then 6663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6665 fi 6666 6667 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6669 fi 6670 6671 CFLAGS="$CFLAGS -Wshadow" 6672 6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6674printf %s "checking if $CC supports -Wshadow... " >&6; } 6675 cacheid=xorg_cv_cc_flag__Wshadow 6676 if eval test \${$cacheid+y} 6677then : 6678 printf %s "(cached) " >&6 6679else $as_nop 6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6681/* end confdefs.h. */ 6682int i; 6683int 6684main (void) 6685{ 6686 6687 ; 6688 return 0; 6689} 6690_ACEOF 6691if ac_fn_c_try_link "$LINENO" 6692then : 6693 eval $cacheid=yes 6694else $as_nop 6695 eval $cacheid=no 6696fi 6697rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6698 conftest$ac_exeext conftest.$ac_ext 6699fi 6700 6701 6702 CFLAGS="$xorg_testset_save_CFLAGS" 6703 6704 eval supported=\$$cacheid 6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6706printf "%s\n" "$supported" >&6; } 6707 if test "$supported" = "yes" ; then 6708 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6709 found="yes" 6710 fi 6711 fi 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727xorg_testset_save_CFLAGS="$CFLAGS" 6728 6729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6732printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6733if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6734then : 6735 printf %s "(cached) " >&6 6736else $as_nop 6737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6738/* end confdefs.h. */ 6739int i; 6740_ACEOF 6741if ac_fn_c_try_compile "$LINENO" 6742then : 6743 xorg_cv_cc_flag_unknown_warning_option=yes 6744else $as_nop 6745 xorg_cv_cc_flag_unknown_warning_option=no 6746fi 6747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6748fi 6749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6750printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6752 CFLAGS="$xorg_testset_save_CFLAGS" 6753fi 6754 6755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6758 fi 6759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6761printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6762if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6763then : 6764 printf %s "(cached) " >&6 6765else $as_nop 6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6767/* end confdefs.h. */ 6768int i; 6769_ACEOF 6770if ac_fn_c_try_compile "$LINENO" 6771then : 6772 xorg_cv_cc_flag_unused_command_line_argument=yes 6773else $as_nop 6774 xorg_cv_cc_flag_unused_command_line_argument=no 6775fi 6776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6777fi 6778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6779printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6780 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6781 CFLAGS="$xorg_testset_save_CFLAGS" 6782fi 6783 6784found="no" 6785 6786 if test $found = "no" ; then 6787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6789 fi 6790 6791 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6793 fi 6794 6795 CFLAGS="$CFLAGS -Wmissing-noreturn" 6796 6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6798printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6799 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6800 if eval test \${$cacheid+y} 6801then : 6802 printf %s "(cached) " >&6 6803else $as_nop 6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6805/* end confdefs.h. */ 6806int i; 6807int 6808main (void) 6809{ 6810 6811 ; 6812 return 0; 6813} 6814_ACEOF 6815if ac_fn_c_try_link "$LINENO" 6816then : 6817 eval $cacheid=yes 6818else $as_nop 6819 eval $cacheid=no 6820fi 6821rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6822 conftest$ac_exeext conftest.$ac_ext 6823fi 6824 6825 6826 CFLAGS="$xorg_testset_save_CFLAGS" 6827 6828 eval supported=\$$cacheid 6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6830printf "%s\n" "$supported" >&6; } 6831 if test "$supported" = "yes" ; then 6832 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6833 found="yes" 6834 fi 6835 fi 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851xorg_testset_save_CFLAGS="$CFLAGS" 6852 6853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6856printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6857if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6858then : 6859 printf %s "(cached) " >&6 6860else $as_nop 6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6862/* end confdefs.h. */ 6863int i; 6864_ACEOF 6865if ac_fn_c_try_compile "$LINENO" 6866then : 6867 xorg_cv_cc_flag_unknown_warning_option=yes 6868else $as_nop 6869 xorg_cv_cc_flag_unknown_warning_option=no 6870fi 6871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6872fi 6873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6874printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6876 CFLAGS="$xorg_testset_save_CFLAGS" 6877fi 6878 6879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6882 fi 6883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6885printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6886if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6887then : 6888 printf %s "(cached) " >&6 6889else $as_nop 6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6891/* end confdefs.h. */ 6892int i; 6893_ACEOF 6894if ac_fn_c_try_compile "$LINENO" 6895then : 6896 xorg_cv_cc_flag_unused_command_line_argument=yes 6897else $as_nop 6898 xorg_cv_cc_flag_unused_command_line_argument=no 6899fi 6900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6901fi 6902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6903printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6905 CFLAGS="$xorg_testset_save_CFLAGS" 6906fi 6907 6908found="no" 6909 6910 if test $found = "no" ; then 6911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6913 fi 6914 6915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6917 fi 6918 6919 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6920 6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6922printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6923 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6924 if eval test \${$cacheid+y} 6925then : 6926 printf %s "(cached) " >&6 6927else $as_nop 6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6929/* end confdefs.h. */ 6930int i; 6931int 6932main (void) 6933{ 6934 6935 ; 6936 return 0; 6937} 6938_ACEOF 6939if ac_fn_c_try_link "$LINENO" 6940then : 6941 eval $cacheid=yes 6942else $as_nop 6943 eval $cacheid=no 6944fi 6945rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6946 conftest$ac_exeext conftest.$ac_ext 6947fi 6948 6949 6950 CFLAGS="$xorg_testset_save_CFLAGS" 6951 6952 eval supported=\$$cacheid 6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6954printf "%s\n" "$supported" >&6; } 6955 if test "$supported" = "yes" ; then 6956 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6957 found="yes" 6958 fi 6959 fi 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975xorg_testset_save_CFLAGS="$CFLAGS" 6976 6977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6980printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6981if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6982then : 6983 printf %s "(cached) " >&6 6984else $as_nop 6985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6986/* end confdefs.h. */ 6987int i; 6988_ACEOF 6989if ac_fn_c_try_compile "$LINENO" 6990then : 6991 xorg_cv_cc_flag_unknown_warning_option=yes 6992else $as_nop 6993 xorg_cv_cc_flag_unknown_warning_option=no 6994fi 6995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6996fi 6997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6998printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7000 CFLAGS="$xorg_testset_save_CFLAGS" 7001fi 7002 7003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7006 fi 7007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7009printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7010if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7011then : 7012 printf %s "(cached) " >&6 7013else $as_nop 7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7015/* end confdefs.h. */ 7016int i; 7017_ACEOF 7018if ac_fn_c_try_compile "$LINENO" 7019then : 7020 xorg_cv_cc_flag_unused_command_line_argument=yes 7021else $as_nop 7022 xorg_cv_cc_flag_unused_command_line_argument=no 7023fi 7024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7025fi 7026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7027printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7028 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7029 CFLAGS="$xorg_testset_save_CFLAGS" 7030fi 7031 7032found="no" 7033 7034 if test $found = "no" ; then 7035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7037 fi 7038 7039 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7041 fi 7042 7043 CFLAGS="$CFLAGS -Wredundant-decls" 7044 7045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7046printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7047 cacheid=xorg_cv_cc_flag__Wredundant_decls 7048 if eval test \${$cacheid+y} 7049then : 7050 printf %s "(cached) " >&6 7051else $as_nop 7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7053/* end confdefs.h. */ 7054int i; 7055int 7056main (void) 7057{ 7058 7059 ; 7060 return 0; 7061} 7062_ACEOF 7063if ac_fn_c_try_link "$LINENO" 7064then : 7065 eval $cacheid=yes 7066else $as_nop 7067 eval $cacheid=no 7068fi 7069rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7070 conftest$ac_exeext conftest.$ac_ext 7071fi 7072 7073 7074 CFLAGS="$xorg_testset_save_CFLAGS" 7075 7076 eval supported=\$$cacheid 7077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7078printf "%s\n" "$supported" >&6; } 7079 if test "$supported" = "yes" ; then 7080 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7081 found="yes" 7082 fi 7083 fi 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099xorg_testset_save_CFLAGS="$CFLAGS" 7100 7101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7104printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7105if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7106then : 7107 printf %s "(cached) " >&6 7108else $as_nop 7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7110/* end confdefs.h. */ 7111int i; 7112_ACEOF 7113if ac_fn_c_try_compile "$LINENO" 7114then : 7115 xorg_cv_cc_flag_unknown_warning_option=yes 7116else $as_nop 7117 xorg_cv_cc_flag_unknown_warning_option=no 7118fi 7119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7120fi 7121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7122printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7124 CFLAGS="$xorg_testset_save_CFLAGS" 7125fi 7126 7127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7130 fi 7131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7133printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7134if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7135then : 7136 printf %s "(cached) " >&6 7137else $as_nop 7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7139/* end confdefs.h. */ 7140int i; 7141_ACEOF 7142if ac_fn_c_try_compile "$LINENO" 7143then : 7144 xorg_cv_cc_flag_unused_command_line_argument=yes 7145else $as_nop 7146 xorg_cv_cc_flag_unused_command_line_argument=no 7147fi 7148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7149fi 7150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7151printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7152 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7153 CFLAGS="$xorg_testset_save_CFLAGS" 7154fi 7155 7156found="no" 7157 7158 if test $found = "no" ; then 7159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7161 fi 7162 7163 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7165 fi 7166 7167 CFLAGS="$CFLAGS -Wlogical-op" 7168 7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7170printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7171 cacheid=xorg_cv_cc_flag__Wlogical_op 7172 if eval test \${$cacheid+y} 7173then : 7174 printf %s "(cached) " >&6 7175else $as_nop 7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7177/* end confdefs.h. */ 7178int i; 7179int 7180main (void) 7181{ 7182 7183 ; 7184 return 0; 7185} 7186_ACEOF 7187if ac_fn_c_try_link "$LINENO" 7188then : 7189 eval $cacheid=yes 7190else $as_nop 7191 eval $cacheid=no 7192fi 7193rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7194 conftest$ac_exeext conftest.$ac_ext 7195fi 7196 7197 7198 CFLAGS="$xorg_testset_save_CFLAGS" 7199 7200 eval supported=\$$cacheid 7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7202printf "%s\n" "$supported" >&6; } 7203 if test "$supported" = "yes" ; then 7204 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7205 found="yes" 7206 fi 7207 fi 7208 7209 7210 7211# These are currently disabled because they are noisy. They will be enabled 7212# in the future once the codebase is sufficiently modernized to silence 7213# them. For now, I don't want them to drown out the other warnings. 7214# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7215# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7216# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7217 7218# Turn some warnings into errors, so we don't accidently get successful builds 7219# when there are problems that should be fixed. 7220 7221if test "x$SELECTIVE_WERROR" = "xyes" ; then 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235xorg_testset_save_CFLAGS="$CFLAGS" 7236 7237if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7240printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7241if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7242then : 7243 printf %s "(cached) " >&6 7244else $as_nop 7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7246/* end confdefs.h. */ 7247int i; 7248_ACEOF 7249if ac_fn_c_try_compile "$LINENO" 7250then : 7251 xorg_cv_cc_flag_unknown_warning_option=yes 7252else $as_nop 7253 xorg_cv_cc_flag_unknown_warning_option=no 7254fi 7255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7256fi 7257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7258printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7260 CFLAGS="$xorg_testset_save_CFLAGS" 7261fi 7262 7263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7266 fi 7267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7269printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7270if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7271then : 7272 printf %s "(cached) " >&6 7273else $as_nop 7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7275/* end confdefs.h. */ 7276int i; 7277_ACEOF 7278if ac_fn_c_try_compile "$LINENO" 7279then : 7280 xorg_cv_cc_flag_unused_command_line_argument=yes 7281else $as_nop 7282 xorg_cv_cc_flag_unused_command_line_argument=no 7283fi 7284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7285fi 7286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7287printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7289 CFLAGS="$xorg_testset_save_CFLAGS" 7290fi 7291 7292found="no" 7293 7294 if test $found = "no" ; then 7295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7297 fi 7298 7299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7301 fi 7302 7303 CFLAGS="$CFLAGS -Werror=implicit" 7304 7305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7306printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7307 cacheid=xorg_cv_cc_flag__Werror_implicit 7308 if eval test \${$cacheid+y} 7309then : 7310 printf %s "(cached) " >&6 7311else $as_nop 7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7313/* end confdefs.h. */ 7314int i; 7315int 7316main (void) 7317{ 7318 7319 ; 7320 return 0; 7321} 7322_ACEOF 7323if ac_fn_c_try_link "$LINENO" 7324then : 7325 eval $cacheid=yes 7326else $as_nop 7327 eval $cacheid=no 7328fi 7329rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7330 conftest$ac_exeext conftest.$ac_ext 7331fi 7332 7333 7334 CFLAGS="$xorg_testset_save_CFLAGS" 7335 7336 eval supported=\$$cacheid 7337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7338printf "%s\n" "$supported" >&6; } 7339 if test "$supported" = "yes" ; then 7340 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7341 found="yes" 7342 fi 7343 fi 7344 7345 if test $found = "no" ; then 7346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7348 fi 7349 7350 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7352 fi 7353 7354 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7355 7356 { 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 7357printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7358 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7359 if eval test \${$cacheid+y} 7360then : 7361 printf %s "(cached) " >&6 7362else $as_nop 7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7364/* end confdefs.h. */ 7365int i; 7366int 7367main (void) 7368{ 7369 7370 ; 7371 return 0; 7372} 7373_ACEOF 7374if ac_fn_c_try_link "$LINENO" 7375then : 7376 eval $cacheid=yes 7377else $as_nop 7378 eval $cacheid=no 7379fi 7380rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7381 conftest$ac_exeext conftest.$ac_ext 7382fi 7383 7384 7385 CFLAGS="$xorg_testset_save_CFLAGS" 7386 7387 eval supported=\$$cacheid 7388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7389printf "%s\n" "$supported" >&6; } 7390 if test "$supported" = "yes" ; then 7391 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7392 found="yes" 7393 fi 7394 fi 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410xorg_testset_save_CFLAGS="$CFLAGS" 7411 7412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7415printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7416if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7417then : 7418 printf %s "(cached) " >&6 7419else $as_nop 7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7421/* end confdefs.h. */ 7422int i; 7423_ACEOF 7424if ac_fn_c_try_compile "$LINENO" 7425then : 7426 xorg_cv_cc_flag_unknown_warning_option=yes 7427else $as_nop 7428 xorg_cv_cc_flag_unknown_warning_option=no 7429fi 7430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7431fi 7432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7433printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7434 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7435 CFLAGS="$xorg_testset_save_CFLAGS" 7436fi 7437 7438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7441 fi 7442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7444printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7445if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7446then : 7447 printf %s "(cached) " >&6 7448else $as_nop 7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7450/* end confdefs.h. */ 7451int i; 7452_ACEOF 7453if ac_fn_c_try_compile "$LINENO" 7454then : 7455 xorg_cv_cc_flag_unused_command_line_argument=yes 7456else $as_nop 7457 xorg_cv_cc_flag_unused_command_line_argument=no 7458fi 7459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7460fi 7461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7462printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7464 CFLAGS="$xorg_testset_save_CFLAGS" 7465fi 7466 7467found="no" 7468 7469 if test $found = "no" ; then 7470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7472 fi 7473 7474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7476 fi 7477 7478 CFLAGS="$CFLAGS -Werror=nonnull" 7479 7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7481printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7482 cacheid=xorg_cv_cc_flag__Werror_nonnull 7483 if eval test \${$cacheid+y} 7484then : 7485 printf %s "(cached) " >&6 7486else $as_nop 7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7488/* end confdefs.h. */ 7489int i; 7490int 7491main (void) 7492{ 7493 7494 ; 7495 return 0; 7496} 7497_ACEOF 7498if ac_fn_c_try_link "$LINENO" 7499then : 7500 eval $cacheid=yes 7501else $as_nop 7502 eval $cacheid=no 7503fi 7504rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7505 conftest$ac_exeext conftest.$ac_ext 7506fi 7507 7508 7509 CFLAGS="$xorg_testset_save_CFLAGS" 7510 7511 eval supported=\$$cacheid 7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7513printf "%s\n" "$supported" >&6; } 7514 if test "$supported" = "yes" ; then 7515 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7516 found="yes" 7517 fi 7518 fi 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534xorg_testset_save_CFLAGS="$CFLAGS" 7535 7536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7539printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7540if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7541then : 7542 printf %s "(cached) " >&6 7543else $as_nop 7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7545/* end confdefs.h. */ 7546int i; 7547_ACEOF 7548if ac_fn_c_try_compile "$LINENO" 7549then : 7550 xorg_cv_cc_flag_unknown_warning_option=yes 7551else $as_nop 7552 xorg_cv_cc_flag_unknown_warning_option=no 7553fi 7554rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7555fi 7556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7557printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7559 CFLAGS="$xorg_testset_save_CFLAGS" 7560fi 7561 7562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7565 fi 7566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7568printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7569if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7570then : 7571 printf %s "(cached) " >&6 7572else $as_nop 7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7574/* end confdefs.h. */ 7575int i; 7576_ACEOF 7577if ac_fn_c_try_compile "$LINENO" 7578then : 7579 xorg_cv_cc_flag_unused_command_line_argument=yes 7580else $as_nop 7581 xorg_cv_cc_flag_unused_command_line_argument=no 7582fi 7583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7584fi 7585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7586printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7587 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7588 CFLAGS="$xorg_testset_save_CFLAGS" 7589fi 7590 7591found="no" 7592 7593 if test $found = "no" ; then 7594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7596 fi 7597 7598 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7600 fi 7601 7602 CFLAGS="$CFLAGS -Werror=init-self" 7603 7604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7605printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7606 cacheid=xorg_cv_cc_flag__Werror_init_self 7607 if eval test \${$cacheid+y} 7608then : 7609 printf %s "(cached) " >&6 7610else $as_nop 7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7612/* end confdefs.h. */ 7613int i; 7614int 7615main (void) 7616{ 7617 7618 ; 7619 return 0; 7620} 7621_ACEOF 7622if ac_fn_c_try_link "$LINENO" 7623then : 7624 eval $cacheid=yes 7625else $as_nop 7626 eval $cacheid=no 7627fi 7628rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7629 conftest$ac_exeext conftest.$ac_ext 7630fi 7631 7632 7633 CFLAGS="$xorg_testset_save_CFLAGS" 7634 7635 eval supported=\$$cacheid 7636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7637printf "%s\n" "$supported" >&6; } 7638 if test "$supported" = "yes" ; then 7639 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7640 found="yes" 7641 fi 7642 fi 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658xorg_testset_save_CFLAGS="$CFLAGS" 7659 7660if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7663printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7664if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7665then : 7666 printf %s "(cached) " >&6 7667else $as_nop 7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7669/* end confdefs.h. */ 7670int i; 7671_ACEOF 7672if ac_fn_c_try_compile "$LINENO" 7673then : 7674 xorg_cv_cc_flag_unknown_warning_option=yes 7675else $as_nop 7676 xorg_cv_cc_flag_unknown_warning_option=no 7677fi 7678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7679fi 7680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7681printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7683 CFLAGS="$xorg_testset_save_CFLAGS" 7684fi 7685 7686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7689 fi 7690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7692printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7693if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7694then : 7695 printf %s "(cached) " >&6 7696else $as_nop 7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7698/* end confdefs.h. */ 7699int i; 7700_ACEOF 7701if ac_fn_c_try_compile "$LINENO" 7702then : 7703 xorg_cv_cc_flag_unused_command_line_argument=yes 7704else $as_nop 7705 xorg_cv_cc_flag_unused_command_line_argument=no 7706fi 7707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7708fi 7709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7710printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7711 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7712 CFLAGS="$xorg_testset_save_CFLAGS" 7713fi 7714 7715found="no" 7716 7717 if test $found = "no" ; then 7718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7720 fi 7721 7722 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7724 fi 7725 7726 CFLAGS="$CFLAGS -Werror=main" 7727 7728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7729printf %s "checking if $CC supports -Werror=main... " >&6; } 7730 cacheid=xorg_cv_cc_flag__Werror_main 7731 if eval test \${$cacheid+y} 7732then : 7733 printf %s "(cached) " >&6 7734else $as_nop 7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7736/* end confdefs.h. */ 7737int i; 7738int 7739main (void) 7740{ 7741 7742 ; 7743 return 0; 7744} 7745_ACEOF 7746if ac_fn_c_try_link "$LINENO" 7747then : 7748 eval $cacheid=yes 7749else $as_nop 7750 eval $cacheid=no 7751fi 7752rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7753 conftest$ac_exeext conftest.$ac_ext 7754fi 7755 7756 7757 CFLAGS="$xorg_testset_save_CFLAGS" 7758 7759 eval supported=\$$cacheid 7760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7761printf "%s\n" "$supported" >&6; } 7762 if test "$supported" = "yes" ; then 7763 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7764 found="yes" 7765 fi 7766 fi 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782xorg_testset_save_CFLAGS="$CFLAGS" 7783 7784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7787printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7788if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7789then : 7790 printf %s "(cached) " >&6 7791else $as_nop 7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7793/* end confdefs.h. */ 7794int i; 7795_ACEOF 7796if ac_fn_c_try_compile "$LINENO" 7797then : 7798 xorg_cv_cc_flag_unknown_warning_option=yes 7799else $as_nop 7800 xorg_cv_cc_flag_unknown_warning_option=no 7801fi 7802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7803fi 7804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7805printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7806 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7807 CFLAGS="$xorg_testset_save_CFLAGS" 7808fi 7809 7810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7813 fi 7814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7816printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7817if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7818then : 7819 printf %s "(cached) " >&6 7820else $as_nop 7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7822/* end confdefs.h. */ 7823int i; 7824_ACEOF 7825if ac_fn_c_try_compile "$LINENO" 7826then : 7827 xorg_cv_cc_flag_unused_command_line_argument=yes 7828else $as_nop 7829 xorg_cv_cc_flag_unused_command_line_argument=no 7830fi 7831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7832fi 7833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7834printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7835 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7836 CFLAGS="$xorg_testset_save_CFLAGS" 7837fi 7838 7839found="no" 7840 7841 if test $found = "no" ; then 7842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7844 fi 7845 7846 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7848 fi 7849 7850 CFLAGS="$CFLAGS -Werror=missing-braces" 7851 7852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7853printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7854 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7855 if eval test \${$cacheid+y} 7856then : 7857 printf %s "(cached) " >&6 7858else $as_nop 7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7860/* end confdefs.h. */ 7861int i; 7862int 7863main (void) 7864{ 7865 7866 ; 7867 return 0; 7868} 7869_ACEOF 7870if ac_fn_c_try_link "$LINENO" 7871then : 7872 eval $cacheid=yes 7873else $as_nop 7874 eval $cacheid=no 7875fi 7876rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7877 conftest$ac_exeext conftest.$ac_ext 7878fi 7879 7880 7881 CFLAGS="$xorg_testset_save_CFLAGS" 7882 7883 eval supported=\$$cacheid 7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7885printf "%s\n" "$supported" >&6; } 7886 if test "$supported" = "yes" ; then 7887 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7888 found="yes" 7889 fi 7890 fi 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906xorg_testset_save_CFLAGS="$CFLAGS" 7907 7908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7911printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7912if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7913then : 7914 printf %s "(cached) " >&6 7915else $as_nop 7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7917/* end confdefs.h. */ 7918int i; 7919_ACEOF 7920if ac_fn_c_try_compile "$LINENO" 7921then : 7922 xorg_cv_cc_flag_unknown_warning_option=yes 7923else $as_nop 7924 xorg_cv_cc_flag_unknown_warning_option=no 7925fi 7926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7927fi 7928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7929printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7930 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7931 CFLAGS="$xorg_testset_save_CFLAGS" 7932fi 7933 7934if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7937 fi 7938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7940printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7941if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7942then : 7943 printf %s "(cached) " >&6 7944else $as_nop 7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7946/* end confdefs.h. */ 7947int i; 7948_ACEOF 7949if ac_fn_c_try_compile "$LINENO" 7950then : 7951 xorg_cv_cc_flag_unused_command_line_argument=yes 7952else $as_nop 7953 xorg_cv_cc_flag_unused_command_line_argument=no 7954fi 7955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7956fi 7957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7958printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7960 CFLAGS="$xorg_testset_save_CFLAGS" 7961fi 7962 7963found="no" 7964 7965 if test $found = "no" ; then 7966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7968 fi 7969 7970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7972 fi 7973 7974 CFLAGS="$CFLAGS -Werror=sequence-point" 7975 7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7977printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7978 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7979 if eval test \${$cacheid+y} 7980then : 7981 printf %s "(cached) " >&6 7982else $as_nop 7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7984/* end confdefs.h. */ 7985int i; 7986int 7987main (void) 7988{ 7989 7990 ; 7991 return 0; 7992} 7993_ACEOF 7994if ac_fn_c_try_link "$LINENO" 7995then : 7996 eval $cacheid=yes 7997else $as_nop 7998 eval $cacheid=no 7999fi 8000rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8001 conftest$ac_exeext conftest.$ac_ext 8002fi 8003 8004 8005 CFLAGS="$xorg_testset_save_CFLAGS" 8006 8007 eval supported=\$$cacheid 8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8009printf "%s\n" "$supported" >&6; } 8010 if test "$supported" = "yes" ; then 8011 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8012 found="yes" 8013 fi 8014 fi 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030xorg_testset_save_CFLAGS="$CFLAGS" 8031 8032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8035printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8036if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8037then : 8038 printf %s "(cached) " >&6 8039else $as_nop 8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8041/* end confdefs.h. */ 8042int i; 8043_ACEOF 8044if ac_fn_c_try_compile "$LINENO" 8045then : 8046 xorg_cv_cc_flag_unknown_warning_option=yes 8047else $as_nop 8048 xorg_cv_cc_flag_unknown_warning_option=no 8049fi 8050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8051fi 8052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8053printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8055 CFLAGS="$xorg_testset_save_CFLAGS" 8056fi 8057 8058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8061 fi 8062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8064printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8065if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8066then : 8067 printf %s "(cached) " >&6 8068else $as_nop 8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8070/* end confdefs.h. */ 8071int i; 8072_ACEOF 8073if ac_fn_c_try_compile "$LINENO" 8074then : 8075 xorg_cv_cc_flag_unused_command_line_argument=yes 8076else $as_nop 8077 xorg_cv_cc_flag_unused_command_line_argument=no 8078fi 8079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8080fi 8081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8082printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8084 CFLAGS="$xorg_testset_save_CFLAGS" 8085fi 8086 8087found="no" 8088 8089 if test $found = "no" ; then 8090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8092 fi 8093 8094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8096 fi 8097 8098 CFLAGS="$CFLAGS -Werror=return-type" 8099 8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8101printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8102 cacheid=xorg_cv_cc_flag__Werror_return_type 8103 if eval test \${$cacheid+y} 8104then : 8105 printf %s "(cached) " >&6 8106else $as_nop 8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8108/* end confdefs.h. */ 8109int i; 8110int 8111main (void) 8112{ 8113 8114 ; 8115 return 0; 8116} 8117_ACEOF 8118if ac_fn_c_try_link "$LINENO" 8119then : 8120 eval $cacheid=yes 8121else $as_nop 8122 eval $cacheid=no 8123fi 8124rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8125 conftest$ac_exeext conftest.$ac_ext 8126fi 8127 8128 8129 CFLAGS="$xorg_testset_save_CFLAGS" 8130 8131 eval supported=\$$cacheid 8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8133printf "%s\n" "$supported" >&6; } 8134 if test "$supported" = "yes" ; then 8135 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8136 found="yes" 8137 fi 8138 fi 8139 8140 if test $found = "no" ; then 8141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8143 fi 8144 8145 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8147 fi 8148 8149 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8150 8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8152printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8153 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8154 if eval test \${$cacheid+y} 8155then : 8156 printf %s "(cached) " >&6 8157else $as_nop 8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8159/* end confdefs.h. */ 8160int i; 8161int 8162main (void) 8163{ 8164 8165 ; 8166 return 0; 8167} 8168_ACEOF 8169if ac_fn_c_try_link "$LINENO" 8170then : 8171 eval $cacheid=yes 8172else $as_nop 8173 eval $cacheid=no 8174fi 8175rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8176 conftest$ac_exeext conftest.$ac_ext 8177fi 8178 8179 8180 CFLAGS="$xorg_testset_save_CFLAGS" 8181 8182 eval supported=\$$cacheid 8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8184printf "%s\n" "$supported" >&6; } 8185 if test "$supported" = "yes" ; then 8186 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8187 found="yes" 8188 fi 8189 fi 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205xorg_testset_save_CFLAGS="$CFLAGS" 8206 8207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8210printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8211if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8212then : 8213 printf %s "(cached) " >&6 8214else $as_nop 8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8216/* end confdefs.h. */ 8217int i; 8218_ACEOF 8219if ac_fn_c_try_compile "$LINENO" 8220then : 8221 xorg_cv_cc_flag_unknown_warning_option=yes 8222else $as_nop 8223 xorg_cv_cc_flag_unknown_warning_option=no 8224fi 8225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8226fi 8227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8228printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8230 CFLAGS="$xorg_testset_save_CFLAGS" 8231fi 8232 8233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8236 fi 8237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8239printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8240if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8241then : 8242 printf %s "(cached) " >&6 8243else $as_nop 8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8245/* end confdefs.h. */ 8246int i; 8247_ACEOF 8248if ac_fn_c_try_compile "$LINENO" 8249then : 8250 xorg_cv_cc_flag_unused_command_line_argument=yes 8251else $as_nop 8252 xorg_cv_cc_flag_unused_command_line_argument=no 8253fi 8254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8255fi 8256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8257printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8259 CFLAGS="$xorg_testset_save_CFLAGS" 8260fi 8261 8262found="no" 8263 8264 if test $found = "no" ; then 8265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8267 fi 8268 8269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8271 fi 8272 8273 CFLAGS="$CFLAGS -Werror=trigraphs" 8274 8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8276printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8277 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8278 if eval test \${$cacheid+y} 8279then : 8280 printf %s "(cached) " >&6 8281else $as_nop 8282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8283/* end confdefs.h. */ 8284int i; 8285int 8286main (void) 8287{ 8288 8289 ; 8290 return 0; 8291} 8292_ACEOF 8293if ac_fn_c_try_link "$LINENO" 8294then : 8295 eval $cacheid=yes 8296else $as_nop 8297 eval $cacheid=no 8298fi 8299rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8300 conftest$ac_exeext conftest.$ac_ext 8301fi 8302 8303 8304 CFLAGS="$xorg_testset_save_CFLAGS" 8305 8306 eval supported=\$$cacheid 8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8308printf "%s\n" "$supported" >&6; } 8309 if test "$supported" = "yes" ; then 8310 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8311 found="yes" 8312 fi 8313 fi 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329xorg_testset_save_CFLAGS="$CFLAGS" 8330 8331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8334printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8335if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8336then : 8337 printf %s "(cached) " >&6 8338else $as_nop 8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8340/* end confdefs.h. */ 8341int i; 8342_ACEOF 8343if ac_fn_c_try_compile "$LINENO" 8344then : 8345 xorg_cv_cc_flag_unknown_warning_option=yes 8346else $as_nop 8347 xorg_cv_cc_flag_unknown_warning_option=no 8348fi 8349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8350fi 8351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8352printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8354 CFLAGS="$xorg_testset_save_CFLAGS" 8355fi 8356 8357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8360 fi 8361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8363printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8364if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8365then : 8366 printf %s "(cached) " >&6 8367else $as_nop 8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8369/* end confdefs.h. */ 8370int i; 8371_ACEOF 8372if ac_fn_c_try_compile "$LINENO" 8373then : 8374 xorg_cv_cc_flag_unused_command_line_argument=yes 8375else $as_nop 8376 xorg_cv_cc_flag_unused_command_line_argument=no 8377fi 8378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8379fi 8380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8381printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8383 CFLAGS="$xorg_testset_save_CFLAGS" 8384fi 8385 8386found="no" 8387 8388 if test $found = "no" ; then 8389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8391 fi 8392 8393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8395 fi 8396 8397 CFLAGS="$CFLAGS -Werror=array-bounds" 8398 8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8400printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8401 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8402 if eval test \${$cacheid+y} 8403then : 8404 printf %s "(cached) " >&6 8405else $as_nop 8406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8407/* end confdefs.h. */ 8408int i; 8409int 8410main (void) 8411{ 8412 8413 ; 8414 return 0; 8415} 8416_ACEOF 8417if ac_fn_c_try_link "$LINENO" 8418then : 8419 eval $cacheid=yes 8420else $as_nop 8421 eval $cacheid=no 8422fi 8423rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8424 conftest$ac_exeext conftest.$ac_ext 8425fi 8426 8427 8428 CFLAGS="$xorg_testset_save_CFLAGS" 8429 8430 eval supported=\$$cacheid 8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8432printf "%s\n" "$supported" >&6; } 8433 if test "$supported" = "yes" ; then 8434 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8435 found="yes" 8436 fi 8437 fi 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453xorg_testset_save_CFLAGS="$CFLAGS" 8454 8455if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8458printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8459if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8460then : 8461 printf %s "(cached) " >&6 8462else $as_nop 8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8464/* end confdefs.h. */ 8465int i; 8466_ACEOF 8467if ac_fn_c_try_compile "$LINENO" 8468then : 8469 xorg_cv_cc_flag_unknown_warning_option=yes 8470else $as_nop 8471 xorg_cv_cc_flag_unknown_warning_option=no 8472fi 8473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8474fi 8475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8476printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8478 CFLAGS="$xorg_testset_save_CFLAGS" 8479fi 8480 8481if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8484 fi 8485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8487printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8488if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8489then : 8490 printf %s "(cached) " >&6 8491else $as_nop 8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8493/* end confdefs.h. */ 8494int i; 8495_ACEOF 8496if ac_fn_c_try_compile "$LINENO" 8497then : 8498 xorg_cv_cc_flag_unused_command_line_argument=yes 8499else $as_nop 8500 xorg_cv_cc_flag_unused_command_line_argument=no 8501fi 8502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8503fi 8504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8505printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8507 CFLAGS="$xorg_testset_save_CFLAGS" 8508fi 8509 8510found="no" 8511 8512 if test $found = "no" ; then 8513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8515 fi 8516 8517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8519 fi 8520 8521 CFLAGS="$CFLAGS -Werror=write-strings" 8522 8523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8524printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8525 cacheid=xorg_cv_cc_flag__Werror_write_strings 8526 if eval test \${$cacheid+y} 8527then : 8528 printf %s "(cached) " >&6 8529else $as_nop 8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8531/* end confdefs.h. */ 8532int i; 8533int 8534main (void) 8535{ 8536 8537 ; 8538 return 0; 8539} 8540_ACEOF 8541if ac_fn_c_try_link "$LINENO" 8542then : 8543 eval $cacheid=yes 8544else $as_nop 8545 eval $cacheid=no 8546fi 8547rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8548 conftest$ac_exeext conftest.$ac_ext 8549fi 8550 8551 8552 CFLAGS="$xorg_testset_save_CFLAGS" 8553 8554 eval supported=\$$cacheid 8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8556printf "%s\n" "$supported" >&6; } 8557 if test "$supported" = "yes" ; then 8558 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8559 found="yes" 8560 fi 8561 fi 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577xorg_testset_save_CFLAGS="$CFLAGS" 8578 8579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8582printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8583if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8584then : 8585 printf %s "(cached) " >&6 8586else $as_nop 8587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8588/* end confdefs.h. */ 8589int i; 8590_ACEOF 8591if ac_fn_c_try_compile "$LINENO" 8592then : 8593 xorg_cv_cc_flag_unknown_warning_option=yes 8594else $as_nop 8595 xorg_cv_cc_flag_unknown_warning_option=no 8596fi 8597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8598fi 8599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8600printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8602 CFLAGS="$xorg_testset_save_CFLAGS" 8603fi 8604 8605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8608 fi 8609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8611printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8612if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8613then : 8614 printf %s "(cached) " >&6 8615else $as_nop 8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8617/* end confdefs.h. */ 8618int i; 8619_ACEOF 8620if ac_fn_c_try_compile "$LINENO" 8621then : 8622 xorg_cv_cc_flag_unused_command_line_argument=yes 8623else $as_nop 8624 xorg_cv_cc_flag_unused_command_line_argument=no 8625fi 8626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8627fi 8628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8629printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8631 CFLAGS="$xorg_testset_save_CFLAGS" 8632fi 8633 8634found="no" 8635 8636 if test $found = "no" ; then 8637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8639 fi 8640 8641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8643 fi 8644 8645 CFLAGS="$CFLAGS -Werror=address" 8646 8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8648printf %s "checking if $CC supports -Werror=address... " >&6; } 8649 cacheid=xorg_cv_cc_flag__Werror_address 8650 if eval test \${$cacheid+y} 8651then : 8652 printf %s "(cached) " >&6 8653else $as_nop 8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8655/* end confdefs.h. */ 8656int i; 8657int 8658main (void) 8659{ 8660 8661 ; 8662 return 0; 8663} 8664_ACEOF 8665if ac_fn_c_try_link "$LINENO" 8666then : 8667 eval $cacheid=yes 8668else $as_nop 8669 eval $cacheid=no 8670fi 8671rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8672 conftest$ac_exeext conftest.$ac_ext 8673fi 8674 8675 8676 CFLAGS="$xorg_testset_save_CFLAGS" 8677 8678 eval supported=\$$cacheid 8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8680printf "%s\n" "$supported" >&6; } 8681 if test "$supported" = "yes" ; then 8682 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8683 found="yes" 8684 fi 8685 fi 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701xorg_testset_save_CFLAGS="$CFLAGS" 8702 8703if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8706printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8707if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8708then : 8709 printf %s "(cached) " >&6 8710else $as_nop 8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8712/* end confdefs.h. */ 8713int i; 8714_ACEOF 8715if ac_fn_c_try_compile "$LINENO" 8716then : 8717 xorg_cv_cc_flag_unknown_warning_option=yes 8718else $as_nop 8719 xorg_cv_cc_flag_unknown_warning_option=no 8720fi 8721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8722fi 8723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8724printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8726 CFLAGS="$xorg_testset_save_CFLAGS" 8727fi 8728 8729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8732 fi 8733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8735printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8736if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8737then : 8738 printf %s "(cached) " >&6 8739else $as_nop 8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8741/* end confdefs.h. */ 8742int i; 8743_ACEOF 8744if ac_fn_c_try_compile "$LINENO" 8745then : 8746 xorg_cv_cc_flag_unused_command_line_argument=yes 8747else $as_nop 8748 xorg_cv_cc_flag_unused_command_line_argument=no 8749fi 8750rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8751fi 8752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8753printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8755 CFLAGS="$xorg_testset_save_CFLAGS" 8756fi 8757 8758found="no" 8759 8760 if test $found = "no" ; then 8761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8763 fi 8764 8765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8767 fi 8768 8769 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8770 8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8772printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8773 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8774 if eval test \${$cacheid+y} 8775then : 8776 printf %s "(cached) " >&6 8777else $as_nop 8778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8779/* end confdefs.h. */ 8780int i; 8781int 8782main (void) 8783{ 8784 8785 ; 8786 return 0; 8787} 8788_ACEOF 8789if ac_fn_c_try_link "$LINENO" 8790then : 8791 eval $cacheid=yes 8792else $as_nop 8793 eval $cacheid=no 8794fi 8795rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8796 conftest$ac_exeext conftest.$ac_ext 8797fi 8798 8799 8800 CFLAGS="$xorg_testset_save_CFLAGS" 8801 8802 eval supported=\$$cacheid 8803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8804printf "%s\n" "$supported" >&6; } 8805 if test "$supported" = "yes" ; then 8806 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8807 found="yes" 8808 fi 8809 fi 8810 8811 if test $found = "no" ; then 8812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8814 fi 8815 8816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8818 fi 8819 8820 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8821 8822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8823printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8824 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8825 if eval test \${$cacheid+y} 8826then : 8827 printf %s "(cached) " >&6 8828else $as_nop 8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8830/* end confdefs.h. */ 8831int i; 8832int 8833main (void) 8834{ 8835 8836 ; 8837 return 0; 8838} 8839_ACEOF 8840if ac_fn_c_try_link "$LINENO" 8841then : 8842 eval $cacheid=yes 8843else $as_nop 8844 eval $cacheid=no 8845fi 8846rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8847 conftest$ac_exeext conftest.$ac_ext 8848fi 8849 8850 8851 CFLAGS="$xorg_testset_save_CFLAGS" 8852 8853 eval supported=\$$cacheid 8854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8855printf "%s\n" "$supported" >&6; } 8856 if test "$supported" = "yes" ; then 8857 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8858 found="yes" 8859 fi 8860 fi 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876xorg_testset_save_CFLAGS="$CFLAGS" 8877 8878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8881printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8882if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8883then : 8884 printf %s "(cached) " >&6 8885else $as_nop 8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8887/* end confdefs.h. */ 8888int i; 8889_ACEOF 8890if ac_fn_c_try_compile "$LINENO" 8891then : 8892 xorg_cv_cc_flag_unknown_warning_option=yes 8893else $as_nop 8894 xorg_cv_cc_flag_unknown_warning_option=no 8895fi 8896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8897fi 8898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8899printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8901 CFLAGS="$xorg_testset_save_CFLAGS" 8902fi 8903 8904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8907 fi 8908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8910printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8911if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8912then : 8913 printf %s "(cached) " >&6 8914else $as_nop 8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8916/* end confdefs.h. */ 8917int i; 8918_ACEOF 8919if ac_fn_c_try_compile "$LINENO" 8920then : 8921 xorg_cv_cc_flag_unused_command_line_argument=yes 8922else $as_nop 8923 xorg_cv_cc_flag_unused_command_line_argument=no 8924fi 8925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8926fi 8927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8928printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8930 CFLAGS="$xorg_testset_save_CFLAGS" 8931fi 8932 8933found="no" 8934 8935 if test $found = "no" ; then 8936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8938 fi 8939 8940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8942 fi 8943 8944 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8945 8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8947printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8948 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8949 if eval test \${$cacheid+y} 8950then : 8951 printf %s "(cached) " >&6 8952else $as_nop 8953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8954/* end confdefs.h. */ 8955int i; 8956int 8957main (void) 8958{ 8959 8960 ; 8961 return 0; 8962} 8963_ACEOF 8964if ac_fn_c_try_link "$LINENO" 8965then : 8966 eval $cacheid=yes 8967else $as_nop 8968 eval $cacheid=no 8969fi 8970rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8971 conftest$ac_exeext conftest.$ac_ext 8972fi 8973 8974 8975 CFLAGS="$xorg_testset_save_CFLAGS" 8976 8977 eval supported=\$$cacheid 8978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8979printf "%s\n" "$supported" >&6; } 8980 if test "$supported" = "yes" ; then 8981 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8982 found="yes" 8983 fi 8984 fi 8985 8986 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8987else 8988{ 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 8989printf "%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;} 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003xorg_testset_save_CFLAGS="$CFLAGS" 9004 9005if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9008printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9009if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9010then : 9011 printf %s "(cached) " >&6 9012else $as_nop 9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9014/* end confdefs.h. */ 9015int i; 9016_ACEOF 9017if ac_fn_c_try_compile "$LINENO" 9018then : 9019 xorg_cv_cc_flag_unknown_warning_option=yes 9020else $as_nop 9021 xorg_cv_cc_flag_unknown_warning_option=no 9022fi 9023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9024fi 9025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9026printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9027 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9028 CFLAGS="$xorg_testset_save_CFLAGS" 9029fi 9030 9031if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9034 fi 9035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9037printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9038if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9039then : 9040 printf %s "(cached) " >&6 9041else $as_nop 9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9043/* end confdefs.h. */ 9044int i; 9045_ACEOF 9046if ac_fn_c_try_compile "$LINENO" 9047then : 9048 xorg_cv_cc_flag_unused_command_line_argument=yes 9049else $as_nop 9050 xorg_cv_cc_flag_unused_command_line_argument=no 9051fi 9052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9053fi 9054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9055printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9057 CFLAGS="$xorg_testset_save_CFLAGS" 9058fi 9059 9060found="no" 9061 9062 if test $found = "no" ; then 9063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9065 fi 9066 9067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9069 fi 9070 9071 CFLAGS="$CFLAGS -Wimplicit" 9072 9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9074printf %s "checking if $CC supports -Wimplicit... " >&6; } 9075 cacheid=xorg_cv_cc_flag__Wimplicit 9076 if eval test \${$cacheid+y} 9077then : 9078 printf %s "(cached) " >&6 9079else $as_nop 9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9081/* end confdefs.h. */ 9082int i; 9083int 9084main (void) 9085{ 9086 9087 ; 9088 return 0; 9089} 9090_ACEOF 9091if ac_fn_c_try_link "$LINENO" 9092then : 9093 eval $cacheid=yes 9094else $as_nop 9095 eval $cacheid=no 9096fi 9097rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9098 conftest$ac_exeext conftest.$ac_ext 9099fi 9100 9101 9102 CFLAGS="$xorg_testset_save_CFLAGS" 9103 9104 eval supported=\$$cacheid 9105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9106printf "%s\n" "$supported" >&6; } 9107 if test "$supported" = "yes" ; then 9108 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9109 found="yes" 9110 fi 9111 fi 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127xorg_testset_save_CFLAGS="$CFLAGS" 9128 9129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9132printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9133if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9134then : 9135 printf %s "(cached) " >&6 9136else $as_nop 9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9138/* end confdefs.h. */ 9139int i; 9140_ACEOF 9141if ac_fn_c_try_compile "$LINENO" 9142then : 9143 xorg_cv_cc_flag_unknown_warning_option=yes 9144else $as_nop 9145 xorg_cv_cc_flag_unknown_warning_option=no 9146fi 9147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9148fi 9149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9150printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9151 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9152 CFLAGS="$xorg_testset_save_CFLAGS" 9153fi 9154 9155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9158 fi 9159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9161printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9162if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9163then : 9164 printf %s "(cached) " >&6 9165else $as_nop 9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9167/* end confdefs.h. */ 9168int i; 9169_ACEOF 9170if ac_fn_c_try_compile "$LINENO" 9171then : 9172 xorg_cv_cc_flag_unused_command_line_argument=yes 9173else $as_nop 9174 xorg_cv_cc_flag_unused_command_line_argument=no 9175fi 9176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9177fi 9178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9179printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9180 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9181 CFLAGS="$xorg_testset_save_CFLAGS" 9182fi 9183 9184found="no" 9185 9186 if test $found = "no" ; then 9187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9189 fi 9190 9191 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9193 fi 9194 9195 CFLAGS="$CFLAGS -Wnonnull" 9196 9197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9198printf %s "checking if $CC supports -Wnonnull... " >&6; } 9199 cacheid=xorg_cv_cc_flag__Wnonnull 9200 if eval test \${$cacheid+y} 9201then : 9202 printf %s "(cached) " >&6 9203else $as_nop 9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9205/* end confdefs.h. */ 9206int i; 9207int 9208main (void) 9209{ 9210 9211 ; 9212 return 0; 9213} 9214_ACEOF 9215if ac_fn_c_try_link "$LINENO" 9216then : 9217 eval $cacheid=yes 9218else $as_nop 9219 eval $cacheid=no 9220fi 9221rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9222 conftest$ac_exeext conftest.$ac_ext 9223fi 9224 9225 9226 CFLAGS="$xorg_testset_save_CFLAGS" 9227 9228 eval supported=\$$cacheid 9229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9230printf "%s\n" "$supported" >&6; } 9231 if test "$supported" = "yes" ; then 9232 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9233 found="yes" 9234 fi 9235 fi 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251xorg_testset_save_CFLAGS="$CFLAGS" 9252 9253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9256printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9257if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9258then : 9259 printf %s "(cached) " >&6 9260else $as_nop 9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9262/* end confdefs.h. */ 9263int i; 9264_ACEOF 9265if ac_fn_c_try_compile "$LINENO" 9266then : 9267 xorg_cv_cc_flag_unknown_warning_option=yes 9268else $as_nop 9269 xorg_cv_cc_flag_unknown_warning_option=no 9270fi 9271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9272fi 9273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9274printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9276 CFLAGS="$xorg_testset_save_CFLAGS" 9277fi 9278 9279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9282 fi 9283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9285printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9286if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9287then : 9288 printf %s "(cached) " >&6 9289else $as_nop 9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9291/* end confdefs.h. */ 9292int i; 9293_ACEOF 9294if ac_fn_c_try_compile "$LINENO" 9295then : 9296 xorg_cv_cc_flag_unused_command_line_argument=yes 9297else $as_nop 9298 xorg_cv_cc_flag_unused_command_line_argument=no 9299fi 9300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9301fi 9302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9303printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9305 CFLAGS="$xorg_testset_save_CFLAGS" 9306fi 9307 9308found="no" 9309 9310 if test $found = "no" ; then 9311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9313 fi 9314 9315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9317 fi 9318 9319 CFLAGS="$CFLAGS -Winit-self" 9320 9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9322printf %s "checking if $CC supports -Winit-self... " >&6; } 9323 cacheid=xorg_cv_cc_flag__Winit_self 9324 if eval test \${$cacheid+y} 9325then : 9326 printf %s "(cached) " >&6 9327else $as_nop 9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9329/* end confdefs.h. */ 9330int i; 9331int 9332main (void) 9333{ 9334 9335 ; 9336 return 0; 9337} 9338_ACEOF 9339if ac_fn_c_try_link "$LINENO" 9340then : 9341 eval $cacheid=yes 9342else $as_nop 9343 eval $cacheid=no 9344fi 9345rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9346 conftest$ac_exeext conftest.$ac_ext 9347fi 9348 9349 9350 CFLAGS="$xorg_testset_save_CFLAGS" 9351 9352 eval supported=\$$cacheid 9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9354printf "%s\n" "$supported" >&6; } 9355 if test "$supported" = "yes" ; then 9356 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9357 found="yes" 9358 fi 9359 fi 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375xorg_testset_save_CFLAGS="$CFLAGS" 9376 9377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9380printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9381if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9382then : 9383 printf %s "(cached) " >&6 9384else $as_nop 9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9386/* end confdefs.h. */ 9387int i; 9388_ACEOF 9389if ac_fn_c_try_compile "$LINENO" 9390then : 9391 xorg_cv_cc_flag_unknown_warning_option=yes 9392else $as_nop 9393 xorg_cv_cc_flag_unknown_warning_option=no 9394fi 9395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9396fi 9397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9398printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9400 CFLAGS="$xorg_testset_save_CFLAGS" 9401fi 9402 9403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9406 fi 9407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9409printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9410if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9411then : 9412 printf %s "(cached) " >&6 9413else $as_nop 9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9415/* end confdefs.h. */ 9416int i; 9417_ACEOF 9418if ac_fn_c_try_compile "$LINENO" 9419then : 9420 xorg_cv_cc_flag_unused_command_line_argument=yes 9421else $as_nop 9422 xorg_cv_cc_flag_unused_command_line_argument=no 9423fi 9424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9425fi 9426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9427printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9429 CFLAGS="$xorg_testset_save_CFLAGS" 9430fi 9431 9432found="no" 9433 9434 if test $found = "no" ; then 9435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9437 fi 9438 9439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9441 fi 9442 9443 CFLAGS="$CFLAGS -Wmain" 9444 9445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9446printf %s "checking if $CC supports -Wmain... " >&6; } 9447 cacheid=xorg_cv_cc_flag__Wmain 9448 if eval test \${$cacheid+y} 9449then : 9450 printf %s "(cached) " >&6 9451else $as_nop 9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9453/* end confdefs.h. */ 9454int i; 9455int 9456main (void) 9457{ 9458 9459 ; 9460 return 0; 9461} 9462_ACEOF 9463if ac_fn_c_try_link "$LINENO" 9464then : 9465 eval $cacheid=yes 9466else $as_nop 9467 eval $cacheid=no 9468fi 9469rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9470 conftest$ac_exeext conftest.$ac_ext 9471fi 9472 9473 9474 CFLAGS="$xorg_testset_save_CFLAGS" 9475 9476 eval supported=\$$cacheid 9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9478printf "%s\n" "$supported" >&6; } 9479 if test "$supported" = "yes" ; then 9480 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9481 found="yes" 9482 fi 9483 fi 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499xorg_testset_save_CFLAGS="$CFLAGS" 9500 9501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9504printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9505if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9506then : 9507 printf %s "(cached) " >&6 9508else $as_nop 9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9510/* end confdefs.h. */ 9511int i; 9512_ACEOF 9513if ac_fn_c_try_compile "$LINENO" 9514then : 9515 xorg_cv_cc_flag_unknown_warning_option=yes 9516else $as_nop 9517 xorg_cv_cc_flag_unknown_warning_option=no 9518fi 9519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9520fi 9521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9522printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9524 CFLAGS="$xorg_testset_save_CFLAGS" 9525fi 9526 9527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9530 fi 9531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9533printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9534if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9535then : 9536 printf %s "(cached) " >&6 9537else $as_nop 9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9539/* end confdefs.h. */ 9540int i; 9541_ACEOF 9542if ac_fn_c_try_compile "$LINENO" 9543then : 9544 xorg_cv_cc_flag_unused_command_line_argument=yes 9545else $as_nop 9546 xorg_cv_cc_flag_unused_command_line_argument=no 9547fi 9548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9549fi 9550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9551printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9553 CFLAGS="$xorg_testset_save_CFLAGS" 9554fi 9555 9556found="no" 9557 9558 if test $found = "no" ; then 9559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9561 fi 9562 9563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9565 fi 9566 9567 CFLAGS="$CFLAGS -Wmissing-braces" 9568 9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9570printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9571 cacheid=xorg_cv_cc_flag__Wmissing_braces 9572 if eval test \${$cacheid+y} 9573then : 9574 printf %s "(cached) " >&6 9575else $as_nop 9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9577/* end confdefs.h. */ 9578int i; 9579int 9580main (void) 9581{ 9582 9583 ; 9584 return 0; 9585} 9586_ACEOF 9587if ac_fn_c_try_link "$LINENO" 9588then : 9589 eval $cacheid=yes 9590else $as_nop 9591 eval $cacheid=no 9592fi 9593rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9594 conftest$ac_exeext conftest.$ac_ext 9595fi 9596 9597 9598 CFLAGS="$xorg_testset_save_CFLAGS" 9599 9600 eval supported=\$$cacheid 9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9602printf "%s\n" "$supported" >&6; } 9603 if test "$supported" = "yes" ; then 9604 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9605 found="yes" 9606 fi 9607 fi 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623xorg_testset_save_CFLAGS="$CFLAGS" 9624 9625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9628printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9629if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9630then : 9631 printf %s "(cached) " >&6 9632else $as_nop 9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9634/* end confdefs.h. */ 9635int i; 9636_ACEOF 9637if ac_fn_c_try_compile "$LINENO" 9638then : 9639 xorg_cv_cc_flag_unknown_warning_option=yes 9640else $as_nop 9641 xorg_cv_cc_flag_unknown_warning_option=no 9642fi 9643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9644fi 9645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9646printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9648 CFLAGS="$xorg_testset_save_CFLAGS" 9649fi 9650 9651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9654 fi 9655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9657printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9658if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9659then : 9660 printf %s "(cached) " >&6 9661else $as_nop 9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9663/* end confdefs.h. */ 9664int i; 9665_ACEOF 9666if ac_fn_c_try_compile "$LINENO" 9667then : 9668 xorg_cv_cc_flag_unused_command_line_argument=yes 9669else $as_nop 9670 xorg_cv_cc_flag_unused_command_line_argument=no 9671fi 9672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9673fi 9674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9675printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9677 CFLAGS="$xorg_testset_save_CFLAGS" 9678fi 9679 9680found="no" 9681 9682 if test $found = "no" ; then 9683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9685 fi 9686 9687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9689 fi 9690 9691 CFLAGS="$CFLAGS -Wsequence-point" 9692 9693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9694printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9695 cacheid=xorg_cv_cc_flag__Wsequence_point 9696 if eval test \${$cacheid+y} 9697then : 9698 printf %s "(cached) " >&6 9699else $as_nop 9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9701/* end confdefs.h. */ 9702int i; 9703int 9704main (void) 9705{ 9706 9707 ; 9708 return 0; 9709} 9710_ACEOF 9711if ac_fn_c_try_link "$LINENO" 9712then : 9713 eval $cacheid=yes 9714else $as_nop 9715 eval $cacheid=no 9716fi 9717rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9718 conftest$ac_exeext conftest.$ac_ext 9719fi 9720 9721 9722 CFLAGS="$xorg_testset_save_CFLAGS" 9723 9724 eval supported=\$$cacheid 9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9726printf "%s\n" "$supported" >&6; } 9727 if test "$supported" = "yes" ; then 9728 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9729 found="yes" 9730 fi 9731 fi 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747xorg_testset_save_CFLAGS="$CFLAGS" 9748 9749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9752printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9753if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9754then : 9755 printf %s "(cached) " >&6 9756else $as_nop 9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9758/* end confdefs.h. */ 9759int i; 9760_ACEOF 9761if ac_fn_c_try_compile "$LINENO" 9762then : 9763 xorg_cv_cc_flag_unknown_warning_option=yes 9764else $as_nop 9765 xorg_cv_cc_flag_unknown_warning_option=no 9766fi 9767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9768fi 9769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9770printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9772 CFLAGS="$xorg_testset_save_CFLAGS" 9773fi 9774 9775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9778 fi 9779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9781printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9782if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9783then : 9784 printf %s "(cached) " >&6 9785else $as_nop 9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9787/* end confdefs.h. */ 9788int i; 9789_ACEOF 9790if ac_fn_c_try_compile "$LINENO" 9791then : 9792 xorg_cv_cc_flag_unused_command_line_argument=yes 9793else $as_nop 9794 xorg_cv_cc_flag_unused_command_line_argument=no 9795fi 9796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9797fi 9798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9799printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9801 CFLAGS="$xorg_testset_save_CFLAGS" 9802fi 9803 9804found="no" 9805 9806 if test $found = "no" ; then 9807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9809 fi 9810 9811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9813 fi 9814 9815 CFLAGS="$CFLAGS -Wreturn-type" 9816 9817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9818printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9819 cacheid=xorg_cv_cc_flag__Wreturn_type 9820 if eval test \${$cacheid+y} 9821then : 9822 printf %s "(cached) " >&6 9823else $as_nop 9824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9825/* end confdefs.h. */ 9826int i; 9827int 9828main (void) 9829{ 9830 9831 ; 9832 return 0; 9833} 9834_ACEOF 9835if ac_fn_c_try_link "$LINENO" 9836then : 9837 eval $cacheid=yes 9838else $as_nop 9839 eval $cacheid=no 9840fi 9841rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9842 conftest$ac_exeext conftest.$ac_ext 9843fi 9844 9845 9846 CFLAGS="$xorg_testset_save_CFLAGS" 9847 9848 eval supported=\$$cacheid 9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9850printf "%s\n" "$supported" >&6; } 9851 if test "$supported" = "yes" ; then 9852 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9853 found="yes" 9854 fi 9855 fi 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871xorg_testset_save_CFLAGS="$CFLAGS" 9872 9873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9876printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9877if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9878then : 9879 printf %s "(cached) " >&6 9880else $as_nop 9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9882/* end confdefs.h. */ 9883int i; 9884_ACEOF 9885if ac_fn_c_try_compile "$LINENO" 9886then : 9887 xorg_cv_cc_flag_unknown_warning_option=yes 9888else $as_nop 9889 xorg_cv_cc_flag_unknown_warning_option=no 9890fi 9891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9892fi 9893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9894printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9896 CFLAGS="$xorg_testset_save_CFLAGS" 9897fi 9898 9899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9902 fi 9903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9905printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9906if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9907then : 9908 printf %s "(cached) " >&6 9909else $as_nop 9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9911/* end confdefs.h. */ 9912int i; 9913_ACEOF 9914if ac_fn_c_try_compile "$LINENO" 9915then : 9916 xorg_cv_cc_flag_unused_command_line_argument=yes 9917else $as_nop 9918 xorg_cv_cc_flag_unused_command_line_argument=no 9919fi 9920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9921fi 9922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9923printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9925 CFLAGS="$xorg_testset_save_CFLAGS" 9926fi 9927 9928found="no" 9929 9930 if test $found = "no" ; then 9931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9933 fi 9934 9935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9937 fi 9938 9939 CFLAGS="$CFLAGS -Wtrigraphs" 9940 9941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9942printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9943 cacheid=xorg_cv_cc_flag__Wtrigraphs 9944 if eval test \${$cacheid+y} 9945then : 9946 printf %s "(cached) " >&6 9947else $as_nop 9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9949/* end confdefs.h. */ 9950int i; 9951int 9952main (void) 9953{ 9954 9955 ; 9956 return 0; 9957} 9958_ACEOF 9959if ac_fn_c_try_link "$LINENO" 9960then : 9961 eval $cacheid=yes 9962else $as_nop 9963 eval $cacheid=no 9964fi 9965rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9966 conftest$ac_exeext conftest.$ac_ext 9967fi 9968 9969 9970 CFLAGS="$xorg_testset_save_CFLAGS" 9971 9972 eval supported=\$$cacheid 9973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9974printf "%s\n" "$supported" >&6; } 9975 if test "$supported" = "yes" ; then 9976 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9977 found="yes" 9978 fi 9979 fi 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995xorg_testset_save_CFLAGS="$CFLAGS" 9996 9997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10000printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10001if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10002then : 10003 printf %s "(cached) " >&6 10004else $as_nop 10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10006/* end confdefs.h. */ 10007int i; 10008_ACEOF 10009if ac_fn_c_try_compile "$LINENO" 10010then : 10011 xorg_cv_cc_flag_unknown_warning_option=yes 10012else $as_nop 10013 xorg_cv_cc_flag_unknown_warning_option=no 10014fi 10015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10016fi 10017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10018printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10020 CFLAGS="$xorg_testset_save_CFLAGS" 10021fi 10022 10023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10026 fi 10027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10029printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10030if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10031then : 10032 printf %s "(cached) " >&6 10033else $as_nop 10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10035/* end confdefs.h. */ 10036int i; 10037_ACEOF 10038if ac_fn_c_try_compile "$LINENO" 10039then : 10040 xorg_cv_cc_flag_unused_command_line_argument=yes 10041else $as_nop 10042 xorg_cv_cc_flag_unused_command_line_argument=no 10043fi 10044rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10045fi 10046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10047printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10049 CFLAGS="$xorg_testset_save_CFLAGS" 10050fi 10051 10052found="no" 10053 10054 if test $found = "no" ; then 10055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10057 fi 10058 10059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10061 fi 10062 10063 CFLAGS="$CFLAGS -Warray-bounds" 10064 10065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10066printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10067 cacheid=xorg_cv_cc_flag__Warray_bounds 10068 if eval test \${$cacheid+y} 10069then : 10070 printf %s "(cached) " >&6 10071else $as_nop 10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10073/* end confdefs.h. */ 10074int i; 10075int 10076main (void) 10077{ 10078 10079 ; 10080 return 0; 10081} 10082_ACEOF 10083if ac_fn_c_try_link "$LINENO" 10084then : 10085 eval $cacheid=yes 10086else $as_nop 10087 eval $cacheid=no 10088fi 10089rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10090 conftest$ac_exeext conftest.$ac_ext 10091fi 10092 10093 10094 CFLAGS="$xorg_testset_save_CFLAGS" 10095 10096 eval supported=\$$cacheid 10097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10098printf "%s\n" "$supported" >&6; } 10099 if test "$supported" = "yes" ; then 10100 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10101 found="yes" 10102 fi 10103 fi 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119xorg_testset_save_CFLAGS="$CFLAGS" 10120 10121if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10124printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10125if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10126then : 10127 printf %s "(cached) " >&6 10128else $as_nop 10129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10130/* end confdefs.h. */ 10131int i; 10132_ACEOF 10133if ac_fn_c_try_compile "$LINENO" 10134then : 10135 xorg_cv_cc_flag_unknown_warning_option=yes 10136else $as_nop 10137 xorg_cv_cc_flag_unknown_warning_option=no 10138fi 10139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10140fi 10141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10142printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10143 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10144 CFLAGS="$xorg_testset_save_CFLAGS" 10145fi 10146 10147if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10150 fi 10151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10153printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10154if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10155then : 10156 printf %s "(cached) " >&6 10157else $as_nop 10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10159/* end confdefs.h. */ 10160int i; 10161_ACEOF 10162if ac_fn_c_try_compile "$LINENO" 10163then : 10164 xorg_cv_cc_flag_unused_command_line_argument=yes 10165else $as_nop 10166 xorg_cv_cc_flag_unused_command_line_argument=no 10167fi 10168rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10169fi 10170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10171printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10172 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10173 CFLAGS="$xorg_testset_save_CFLAGS" 10174fi 10175 10176found="no" 10177 10178 if test $found = "no" ; then 10179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10181 fi 10182 10183 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10185 fi 10186 10187 CFLAGS="$CFLAGS -Wwrite-strings" 10188 10189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10190printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10191 cacheid=xorg_cv_cc_flag__Wwrite_strings 10192 if eval test \${$cacheid+y} 10193then : 10194 printf %s "(cached) " >&6 10195else $as_nop 10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10197/* end confdefs.h. */ 10198int i; 10199int 10200main (void) 10201{ 10202 10203 ; 10204 return 0; 10205} 10206_ACEOF 10207if ac_fn_c_try_link "$LINENO" 10208then : 10209 eval $cacheid=yes 10210else $as_nop 10211 eval $cacheid=no 10212fi 10213rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10214 conftest$ac_exeext conftest.$ac_ext 10215fi 10216 10217 10218 CFLAGS="$xorg_testset_save_CFLAGS" 10219 10220 eval supported=\$$cacheid 10221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10222printf "%s\n" "$supported" >&6; } 10223 if test "$supported" = "yes" ; then 10224 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10225 found="yes" 10226 fi 10227 fi 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243xorg_testset_save_CFLAGS="$CFLAGS" 10244 10245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10248printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10249if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10250then : 10251 printf %s "(cached) " >&6 10252else $as_nop 10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10254/* end confdefs.h. */ 10255int i; 10256_ACEOF 10257if ac_fn_c_try_compile "$LINENO" 10258then : 10259 xorg_cv_cc_flag_unknown_warning_option=yes 10260else $as_nop 10261 xorg_cv_cc_flag_unknown_warning_option=no 10262fi 10263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10264fi 10265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10266printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10268 CFLAGS="$xorg_testset_save_CFLAGS" 10269fi 10270 10271if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10274 fi 10275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10277printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10278if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10279then : 10280 printf %s "(cached) " >&6 10281else $as_nop 10282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10283/* end confdefs.h. */ 10284int i; 10285_ACEOF 10286if ac_fn_c_try_compile "$LINENO" 10287then : 10288 xorg_cv_cc_flag_unused_command_line_argument=yes 10289else $as_nop 10290 xorg_cv_cc_flag_unused_command_line_argument=no 10291fi 10292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10293fi 10294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10295printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10297 CFLAGS="$xorg_testset_save_CFLAGS" 10298fi 10299 10300found="no" 10301 10302 if test $found = "no" ; then 10303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10305 fi 10306 10307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10309 fi 10310 10311 CFLAGS="$CFLAGS -Waddress" 10312 10313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10314printf %s "checking if $CC supports -Waddress... " >&6; } 10315 cacheid=xorg_cv_cc_flag__Waddress 10316 if eval test \${$cacheid+y} 10317then : 10318 printf %s "(cached) " >&6 10319else $as_nop 10320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10321/* end confdefs.h. */ 10322int i; 10323int 10324main (void) 10325{ 10326 10327 ; 10328 return 0; 10329} 10330_ACEOF 10331if ac_fn_c_try_link "$LINENO" 10332then : 10333 eval $cacheid=yes 10334else $as_nop 10335 eval $cacheid=no 10336fi 10337rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10338 conftest$ac_exeext conftest.$ac_ext 10339fi 10340 10341 10342 CFLAGS="$xorg_testset_save_CFLAGS" 10343 10344 eval supported=\$$cacheid 10345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10346printf "%s\n" "$supported" >&6; } 10347 if test "$supported" = "yes" ; then 10348 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10349 found="yes" 10350 fi 10351 fi 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367xorg_testset_save_CFLAGS="$CFLAGS" 10368 10369if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10372printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10373if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10374then : 10375 printf %s "(cached) " >&6 10376else $as_nop 10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10378/* end confdefs.h. */ 10379int i; 10380_ACEOF 10381if ac_fn_c_try_compile "$LINENO" 10382then : 10383 xorg_cv_cc_flag_unknown_warning_option=yes 10384else $as_nop 10385 xorg_cv_cc_flag_unknown_warning_option=no 10386fi 10387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10388fi 10389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10390printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10392 CFLAGS="$xorg_testset_save_CFLAGS" 10393fi 10394 10395if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10398 fi 10399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10401printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10402if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10403then : 10404 printf %s "(cached) " >&6 10405else $as_nop 10406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10407/* end confdefs.h. */ 10408int i; 10409_ACEOF 10410if ac_fn_c_try_compile "$LINENO" 10411then : 10412 xorg_cv_cc_flag_unused_command_line_argument=yes 10413else $as_nop 10414 xorg_cv_cc_flag_unused_command_line_argument=no 10415fi 10416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10417fi 10418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10419printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10421 CFLAGS="$xorg_testset_save_CFLAGS" 10422fi 10423 10424found="no" 10425 10426 if test $found = "no" ; then 10427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10429 fi 10430 10431 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10433 fi 10434 10435 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10436 10437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10438printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10439 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10440 if eval test \${$cacheid+y} 10441then : 10442 printf %s "(cached) " >&6 10443else $as_nop 10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10445/* end confdefs.h. */ 10446int i; 10447int 10448main (void) 10449{ 10450 10451 ; 10452 return 0; 10453} 10454_ACEOF 10455if ac_fn_c_try_link "$LINENO" 10456then : 10457 eval $cacheid=yes 10458else $as_nop 10459 eval $cacheid=no 10460fi 10461rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10462 conftest$ac_exeext conftest.$ac_ext 10463fi 10464 10465 10466 CFLAGS="$xorg_testset_save_CFLAGS" 10467 10468 eval supported=\$$cacheid 10469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10470printf "%s\n" "$supported" >&6; } 10471 if test "$supported" = "yes" ; then 10472 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10473 found="yes" 10474 fi 10475 fi 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491xorg_testset_save_CFLAGS="$CFLAGS" 10492 10493if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10496printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10497if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10498then : 10499 printf %s "(cached) " >&6 10500else $as_nop 10501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10502/* end confdefs.h. */ 10503int i; 10504_ACEOF 10505if ac_fn_c_try_compile "$LINENO" 10506then : 10507 xorg_cv_cc_flag_unknown_warning_option=yes 10508else $as_nop 10509 xorg_cv_cc_flag_unknown_warning_option=no 10510fi 10511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10512fi 10513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10514printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10516 CFLAGS="$xorg_testset_save_CFLAGS" 10517fi 10518 10519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10522 fi 10523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10525printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10526if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10527then : 10528 printf %s "(cached) " >&6 10529else $as_nop 10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10531/* end confdefs.h. */ 10532int i; 10533_ACEOF 10534if ac_fn_c_try_compile "$LINENO" 10535then : 10536 xorg_cv_cc_flag_unused_command_line_argument=yes 10537else $as_nop 10538 xorg_cv_cc_flag_unused_command_line_argument=no 10539fi 10540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10541fi 10542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10543printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10544 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10545 CFLAGS="$xorg_testset_save_CFLAGS" 10546fi 10547 10548found="no" 10549 10550 if test $found = "no" ; then 10551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10553 fi 10554 10555 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10557 fi 10558 10559 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10560 10561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10562printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10563 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10564 if eval test \${$cacheid+y} 10565then : 10566 printf %s "(cached) " >&6 10567else $as_nop 10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10569/* end confdefs.h. */ 10570int i; 10571int 10572main (void) 10573{ 10574 10575 ; 10576 return 0; 10577} 10578_ACEOF 10579if ac_fn_c_try_link "$LINENO" 10580then : 10581 eval $cacheid=yes 10582else $as_nop 10583 eval $cacheid=no 10584fi 10585rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10586 conftest$ac_exeext conftest.$ac_ext 10587fi 10588 10589 10590 CFLAGS="$xorg_testset_save_CFLAGS" 10591 10592 eval supported=\$$cacheid 10593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10594printf "%s\n" "$supported" >&6; } 10595 if test "$supported" = "yes" ; then 10596 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10597 found="yes" 10598 fi 10599 fi 10600 10601 10602fi 10603 10604 10605 10606 10607 10608 10609 10610 CWARNFLAGS="$BASE_CFLAGS" 10611 if test "x$GCC" = xyes ; then 10612 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10613 fi 10614 10615 10616 10617 10618 10619 10620 10621 10622# Check whether --enable-strict-compilation was given. 10623if test ${enable_strict_compilation+y} 10624then : 10625 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10626else $as_nop 10627 STRICT_COMPILE=no 10628fi 10629 10630 10631 10632 10633 10634 10635STRICT_CFLAGS="" 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649xorg_testset_save_CFLAGS="$CFLAGS" 10650 10651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10654printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10655if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10656then : 10657 printf %s "(cached) " >&6 10658else $as_nop 10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10660/* end confdefs.h. */ 10661int i; 10662_ACEOF 10663if ac_fn_c_try_compile "$LINENO" 10664then : 10665 xorg_cv_cc_flag_unknown_warning_option=yes 10666else $as_nop 10667 xorg_cv_cc_flag_unknown_warning_option=no 10668fi 10669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10670fi 10671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10672printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10674 CFLAGS="$xorg_testset_save_CFLAGS" 10675fi 10676 10677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10680 fi 10681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10683printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10684if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10685then : 10686 printf %s "(cached) " >&6 10687else $as_nop 10688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10689/* end confdefs.h. */ 10690int i; 10691_ACEOF 10692if ac_fn_c_try_compile "$LINENO" 10693then : 10694 xorg_cv_cc_flag_unused_command_line_argument=yes 10695else $as_nop 10696 xorg_cv_cc_flag_unused_command_line_argument=no 10697fi 10698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10699fi 10700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10701printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10703 CFLAGS="$xorg_testset_save_CFLAGS" 10704fi 10705 10706found="no" 10707 10708 if test $found = "no" ; then 10709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10711 fi 10712 10713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10715 fi 10716 10717 CFLAGS="$CFLAGS -pedantic" 10718 10719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10720printf %s "checking if $CC supports -pedantic... " >&6; } 10721 cacheid=xorg_cv_cc_flag__pedantic 10722 if eval test \${$cacheid+y} 10723then : 10724 printf %s "(cached) " >&6 10725else $as_nop 10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10727/* end confdefs.h. */ 10728int i; 10729int 10730main (void) 10731{ 10732 10733 ; 10734 return 0; 10735} 10736_ACEOF 10737if ac_fn_c_try_link "$LINENO" 10738then : 10739 eval $cacheid=yes 10740else $as_nop 10741 eval $cacheid=no 10742fi 10743rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10744 conftest$ac_exeext conftest.$ac_ext 10745fi 10746 10747 10748 CFLAGS="$xorg_testset_save_CFLAGS" 10749 10750 eval supported=\$$cacheid 10751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10752printf "%s\n" "$supported" >&6; } 10753 if test "$supported" = "yes" ; then 10754 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10755 found="yes" 10756 fi 10757 fi 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773xorg_testset_save_CFLAGS="$CFLAGS" 10774 10775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10778printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10779if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10780then : 10781 printf %s "(cached) " >&6 10782else $as_nop 10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10784/* end confdefs.h. */ 10785int i; 10786_ACEOF 10787if ac_fn_c_try_compile "$LINENO" 10788then : 10789 xorg_cv_cc_flag_unknown_warning_option=yes 10790else $as_nop 10791 xorg_cv_cc_flag_unknown_warning_option=no 10792fi 10793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10794fi 10795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10796printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10798 CFLAGS="$xorg_testset_save_CFLAGS" 10799fi 10800 10801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10804 fi 10805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10807printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10808if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10809then : 10810 printf %s "(cached) " >&6 10811else $as_nop 10812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10813/* end confdefs.h. */ 10814int i; 10815_ACEOF 10816if ac_fn_c_try_compile "$LINENO" 10817then : 10818 xorg_cv_cc_flag_unused_command_line_argument=yes 10819else $as_nop 10820 xorg_cv_cc_flag_unused_command_line_argument=no 10821fi 10822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10823fi 10824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10825printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10827 CFLAGS="$xorg_testset_save_CFLAGS" 10828fi 10829 10830found="no" 10831 10832 if test $found = "no" ; then 10833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10835 fi 10836 10837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10839 fi 10840 10841 CFLAGS="$CFLAGS -Werror" 10842 10843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10844printf %s "checking if $CC supports -Werror... " >&6; } 10845 cacheid=xorg_cv_cc_flag__Werror 10846 if eval test \${$cacheid+y} 10847then : 10848 printf %s "(cached) " >&6 10849else $as_nop 10850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10851/* end confdefs.h. */ 10852int i; 10853int 10854main (void) 10855{ 10856 10857 ; 10858 return 0; 10859} 10860_ACEOF 10861if ac_fn_c_try_link "$LINENO" 10862then : 10863 eval $cacheid=yes 10864else $as_nop 10865 eval $cacheid=no 10866fi 10867rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10868 conftest$ac_exeext conftest.$ac_ext 10869fi 10870 10871 10872 CFLAGS="$xorg_testset_save_CFLAGS" 10873 10874 eval supported=\$$cacheid 10875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10876printf "%s\n" "$supported" >&6; } 10877 if test "$supported" = "yes" ; then 10878 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10879 found="yes" 10880 fi 10881 fi 10882 10883 if test $found = "no" ; then 10884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10886 fi 10887 10888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10890 fi 10891 10892 CFLAGS="$CFLAGS -errwarn" 10893 10894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10895printf %s "checking if $CC supports -errwarn... " >&6; } 10896 cacheid=xorg_cv_cc_flag__errwarn 10897 if eval test \${$cacheid+y} 10898then : 10899 printf %s "(cached) " >&6 10900else $as_nop 10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10902/* end confdefs.h. */ 10903int i; 10904int 10905main (void) 10906{ 10907 10908 ; 10909 return 0; 10910} 10911_ACEOF 10912if ac_fn_c_try_link "$LINENO" 10913then : 10914 eval $cacheid=yes 10915else $as_nop 10916 eval $cacheid=no 10917fi 10918rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10919 conftest$ac_exeext conftest.$ac_ext 10920fi 10921 10922 10923 CFLAGS="$xorg_testset_save_CFLAGS" 10924 10925 eval supported=\$$cacheid 10926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10927printf "%s\n" "$supported" >&6; } 10928 if test "$supported" = "yes" ; then 10929 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10930 found="yes" 10931 fi 10932 fi 10933 10934 10935 10936# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10937# activate it with -Werror, so we add it here explicitly. 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951xorg_testset_save_CFLAGS="$CFLAGS" 10952 10953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10956printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10957if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10958then : 10959 printf %s "(cached) " >&6 10960else $as_nop 10961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10962/* end confdefs.h. */ 10963int i; 10964_ACEOF 10965if ac_fn_c_try_compile "$LINENO" 10966then : 10967 xorg_cv_cc_flag_unknown_warning_option=yes 10968else $as_nop 10969 xorg_cv_cc_flag_unknown_warning_option=no 10970fi 10971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10972fi 10973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10974printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10976 CFLAGS="$xorg_testset_save_CFLAGS" 10977fi 10978 10979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10982 fi 10983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10985printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10986if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10987then : 10988 printf %s "(cached) " >&6 10989else $as_nop 10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10991/* end confdefs.h. */ 10992int i; 10993_ACEOF 10994if ac_fn_c_try_compile "$LINENO" 10995then : 10996 xorg_cv_cc_flag_unused_command_line_argument=yes 10997else $as_nop 10998 xorg_cv_cc_flag_unused_command_line_argument=no 10999fi 11000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11001fi 11002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11003printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11005 CFLAGS="$xorg_testset_save_CFLAGS" 11006fi 11007 11008found="no" 11009 11010 if test $found = "no" ; then 11011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11013 fi 11014 11015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11017 fi 11018 11019 CFLAGS="$CFLAGS -Werror=attributes" 11020 11021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11022printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11023 cacheid=xorg_cv_cc_flag__Werror_attributes 11024 if eval test \${$cacheid+y} 11025then : 11026 printf %s "(cached) " >&6 11027else $as_nop 11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11029/* end confdefs.h. */ 11030int i; 11031int 11032main (void) 11033{ 11034 11035 ; 11036 return 0; 11037} 11038_ACEOF 11039if ac_fn_c_try_link "$LINENO" 11040then : 11041 eval $cacheid=yes 11042else $as_nop 11043 eval $cacheid=no 11044fi 11045rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11046 conftest$ac_exeext conftest.$ac_ext 11047fi 11048 11049 11050 CFLAGS="$xorg_testset_save_CFLAGS" 11051 11052 eval supported=\$$cacheid 11053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11054printf "%s\n" "$supported" >&6; } 11055 if test "$supported" = "yes" ; then 11056 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11057 found="yes" 11058 fi 11059 fi 11060 11061 11062 11063if test "x$STRICT_COMPILE" = "xyes"; then 11064 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11065 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11066fi 11067 11068 11069 11070 11071 11072 11073cat >>confdefs.h <<_ACEOF 11074#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11075_ACEOF 11076 11077 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11078 if test "x$PVM" = "x"; then 11079 PVM="0" 11080 fi 11081 11082printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11083 11084 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11085 if test "x$PVP" = "x"; then 11086 PVP="0" 11087 fi 11088 11089printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11090 11091 11092 11093CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11094mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11095|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11096touch \$(top_srcdir)/ChangeLog; \ 11097echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11098 11099 11100 11101 11102macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11103INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11104mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11105|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11106touch \$(top_srcdir)/INSTALL; \ 11107echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11108 11109 11110 11111 11112 11113 11114case $host_os in 11115 solaris*) 11116 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11117 # check for a man page file found in later versions that use 11118 # traditional section numbers instead 11119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11120printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11121if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11122then : 11123 printf %s "(cached) " >&6 11124else $as_nop 11125 test "$cross_compiling" = yes && 11126 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11127if test -r "/usr/share/man/man7/attributes.7"; then 11128 ac_cv_file__usr_share_man_man7_attributes_7=yes 11129else 11130 ac_cv_file__usr_share_man_man7_attributes_7=no 11131fi 11132fi 11133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11134printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11135if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11136then : 11137 SYSV_MAN_SECTIONS=false 11138else $as_nop 11139 SYSV_MAN_SECTIONS=true 11140fi 11141 11142 ;; 11143 *) SYSV_MAN_SECTIONS=false ;; 11144esac 11145 11146if test x$APP_MAN_SUFFIX = x ; then 11147 APP_MAN_SUFFIX=1 11148fi 11149if test x$APP_MAN_DIR = x ; then 11150 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11151fi 11152 11153if test x$LIB_MAN_SUFFIX = x ; then 11154 LIB_MAN_SUFFIX=3 11155fi 11156if test x$LIB_MAN_DIR = x ; then 11157 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11158fi 11159 11160if test x$FILE_MAN_SUFFIX = x ; then 11161 case $SYSV_MAN_SECTIONS in 11162 true) FILE_MAN_SUFFIX=4 ;; 11163 *) FILE_MAN_SUFFIX=5 ;; 11164 esac 11165fi 11166if test x$FILE_MAN_DIR = x ; then 11167 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11168fi 11169 11170if test x$MISC_MAN_SUFFIX = x ; then 11171 case $SYSV_MAN_SECTIONS in 11172 true) MISC_MAN_SUFFIX=5 ;; 11173 *) MISC_MAN_SUFFIX=7 ;; 11174 esac 11175fi 11176if test x$MISC_MAN_DIR = x ; then 11177 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11178fi 11179 11180if test x$DRIVER_MAN_SUFFIX = x ; then 11181 case $SYSV_MAN_SECTIONS in 11182 true) DRIVER_MAN_SUFFIX=7 ;; 11183 *) DRIVER_MAN_SUFFIX=4 ;; 11184 esac 11185fi 11186if test x$DRIVER_MAN_DIR = x ; then 11187 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11188fi 11189 11190if test x$ADMIN_MAN_SUFFIX = x ; then 11191 case $SYSV_MAN_SECTIONS in 11192 true) ADMIN_MAN_SUFFIX=1m ;; 11193 *) ADMIN_MAN_SUFFIX=8 ;; 11194 esac 11195fi 11196if test x$ADMIN_MAN_DIR = x ; then 11197 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11198fi 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214XORG_MAN_PAGE="X Version 11" 11215 11216MAN_SUBSTS="\ 11217 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11218 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11219 -e 's|__xservername__|Xorg|g' \ 11220 -e 's|__xconfigfile__|xorg.conf|g' \ 11221 -e 's|__projectroot__|\$(prefix)|g' \ 11222 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11223 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11224 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11225 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11226 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11227 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11228 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11229 11230 11231 11232# Check whether --enable-silent-rules was given. 11233if test ${enable_silent_rules+y} 11234then : 11235 enableval=$enable_silent_rules; 11236fi 11237 11238case $enable_silent_rules in # ((( 11239 yes) AM_DEFAULT_VERBOSITY=0;; 11240 no) AM_DEFAULT_VERBOSITY=1;; 11241 *) AM_DEFAULT_VERBOSITY=0;; 11242esac 11243am_make=${MAKE-make} 11244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11245printf %s "checking whether $am_make supports nested variables... " >&6; } 11246if test ${am_cv_make_support_nested_variables+y} 11247then : 11248 printf %s "(cached) " >&6 11249else $as_nop 11250 if printf "%s\n" 'TRUE=$(BAR$(V)) 11251BAR0=false 11252BAR1=true 11253V=1 11254am__doit: 11255 @$(TRUE) 11256.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11257 am_cv_make_support_nested_variables=yes 11258else 11259 am_cv_make_support_nested_variables=no 11260fi 11261fi 11262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11263printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11264if test $am_cv_make_support_nested_variables = yes; then 11265 AM_V='$(V)' 11266 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11267else 11268 AM_V=$AM_DEFAULT_VERBOSITY 11269 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11270fi 11271AM_BACKSLASH='\' 11272 11273 11274 11275# Initialize libtool 11276# Check whether --enable-static was given. 11277if test ${enable_static+y} 11278then : 11279 enableval=$enable_static; p=${PACKAGE-default} 11280 case $enableval in 11281 yes) enable_static=yes ;; 11282 no) enable_static=no ;; 11283 *) 11284 enable_static=no 11285 # Look at the argument we got. We use all the common list separators. 11286 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11287 for pkg in $enableval; do 11288 IFS=$lt_save_ifs 11289 if test "X$pkg" = "X$p"; then 11290 enable_static=yes 11291 fi 11292 done 11293 IFS=$lt_save_ifs 11294 ;; 11295 esac 11296else $as_nop 11297 enable_static=no 11298fi 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308case `pwd` in 11309 *\ * | *\ *) 11310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11311printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11312esac 11313 11314 11315 11316macro_version='2.4.7' 11317macro_revision='2.4.7' 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332ltmain=$ac_aux_dir/ltmain.sh 11333 11334# Backslashify metacharacters that are still active within 11335# double-quoted strings. 11336sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11337 11338# Same as above, but do not quote variable references. 11339double_quote_subst='s/\(["`\\]\)/\\\1/g' 11340 11341# Sed substitution to delay expansion of an escaped shell variable in a 11342# double_quote_subst'ed string. 11343delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11344 11345# Sed substitution to delay expansion of an escaped single quote. 11346delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11347 11348# Sed substitution to avoid accidental globbing in evaled expressions 11349no_glob_subst='s/\*/\\\*/g' 11350 11351ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11352ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11353ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11354 11355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11356printf %s "checking how to print strings... " >&6; } 11357# Test print first, because it will be a builtin if present. 11358if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11359 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11360 ECHO='print -r --' 11361elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11362 ECHO='printf %s\n' 11363else 11364 # Use this function as a fallback that always works. 11365 func_fallback_echo () 11366 { 11367 eval 'cat <<_LTECHO_EOF 11368$1 11369_LTECHO_EOF' 11370 } 11371 ECHO='func_fallback_echo' 11372fi 11373 11374# func_echo_all arg... 11375# Invoke $ECHO with all args, space-separated. 11376func_echo_all () 11377{ 11378 $ECHO "" 11379} 11380 11381case $ECHO in 11382 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11383printf "%s\n" "printf" >&6; } ;; 11384 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11385printf "%s\n" "print -r" >&6; } ;; 11386 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11387printf "%s\n" "cat" >&6; } ;; 11388esac 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11404printf %s "checking for a sed that does not truncate output... " >&6; } 11405if test ${ac_cv_path_SED+y} 11406then : 11407 printf %s "(cached) " >&6 11408else $as_nop 11409 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11410 for ac_i in 1 2 3 4 5 6 7; do 11411 ac_script="$ac_script$as_nl$ac_script" 11412 done 11413 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11414 { ac_script=; unset ac_script;} 11415 if test -z "$SED"; then 11416 ac_path_SED_found=false 11417 # Loop through the user's path and test for each of PROGNAME-LIST 11418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11419for as_dir in $PATH 11420do 11421 IFS=$as_save_IFS 11422 case $as_dir in #((( 11423 '') as_dir=./ ;; 11424 */) ;; 11425 *) as_dir=$as_dir/ ;; 11426 esac 11427 for ac_prog in sed gsed 11428 do 11429 for ac_exec_ext in '' $ac_executable_extensions; do 11430 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11431 as_fn_executable_p "$ac_path_SED" || continue 11432# Check for GNU ac_path_SED and select it if it is found. 11433 # Check for GNU $ac_path_SED 11434case `"$ac_path_SED" --version 2>&1` in 11435*GNU*) 11436 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11437*) 11438 ac_count=0 11439 printf %s 0123456789 >"conftest.in" 11440 while : 11441 do 11442 cat "conftest.in" "conftest.in" >"conftest.tmp" 11443 mv "conftest.tmp" "conftest.in" 11444 cp "conftest.in" "conftest.nl" 11445 printf "%s\n" '' >> "conftest.nl" 11446 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11447 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11448 as_fn_arith $ac_count + 1 && ac_count=$as_val 11449 if test $ac_count -gt ${ac_path_SED_max-0}; then 11450 # Best one so far, save it but keep looking for a better one 11451 ac_cv_path_SED="$ac_path_SED" 11452 ac_path_SED_max=$ac_count 11453 fi 11454 # 10*(2^10) chars as input seems more than enough 11455 test $ac_count -gt 10 && break 11456 done 11457 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11458esac 11459 11460 $ac_path_SED_found && break 3 11461 done 11462 done 11463 done 11464IFS=$as_save_IFS 11465 if test -z "$ac_cv_path_SED"; then 11466 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11467 fi 11468else 11469 ac_cv_path_SED=$SED 11470fi 11471 11472fi 11473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11474printf "%s\n" "$ac_cv_path_SED" >&6; } 11475 SED="$ac_cv_path_SED" 11476 rm -f conftest.sed 11477 11478test -z "$SED" && SED=sed 11479Xsed="$SED -e 1s/^X//" 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11492printf %s "checking for grep that handles long lines and -e... " >&6; } 11493if test ${ac_cv_path_GREP+y} 11494then : 11495 printf %s "(cached) " >&6 11496else $as_nop 11497 if test -z "$GREP"; then 11498 ac_path_GREP_found=false 11499 # Loop through the user's path and test for each of PROGNAME-LIST 11500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11501for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11502do 11503 IFS=$as_save_IFS 11504 case $as_dir in #((( 11505 '') as_dir=./ ;; 11506 */) ;; 11507 *) as_dir=$as_dir/ ;; 11508 esac 11509 for ac_prog in grep ggrep 11510 do 11511 for ac_exec_ext in '' $ac_executable_extensions; do 11512 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11513 as_fn_executable_p "$ac_path_GREP" || continue 11514# Check for GNU ac_path_GREP and select it if it is found. 11515 # Check for GNU $ac_path_GREP 11516case `"$ac_path_GREP" --version 2>&1` in 11517*GNU*) 11518 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11519*) 11520 ac_count=0 11521 printf %s 0123456789 >"conftest.in" 11522 while : 11523 do 11524 cat "conftest.in" "conftest.in" >"conftest.tmp" 11525 mv "conftest.tmp" "conftest.in" 11526 cp "conftest.in" "conftest.nl" 11527 printf "%s\n" 'GREP' >> "conftest.nl" 11528 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11529 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11530 as_fn_arith $ac_count + 1 && ac_count=$as_val 11531 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11532 # Best one so far, save it but keep looking for a better one 11533 ac_cv_path_GREP="$ac_path_GREP" 11534 ac_path_GREP_max=$ac_count 11535 fi 11536 # 10*(2^10) chars as input seems more than enough 11537 test $ac_count -gt 10 && break 11538 done 11539 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11540esac 11541 11542 $ac_path_GREP_found && break 3 11543 done 11544 done 11545 done 11546IFS=$as_save_IFS 11547 if test -z "$ac_cv_path_GREP"; then 11548 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11549 fi 11550else 11551 ac_cv_path_GREP=$GREP 11552fi 11553 11554fi 11555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11556printf "%s\n" "$ac_cv_path_GREP" >&6; } 11557 GREP="$ac_cv_path_GREP" 11558 11559 11560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11561printf %s "checking for egrep... " >&6; } 11562if test ${ac_cv_path_EGREP+y} 11563then : 11564 printf %s "(cached) " >&6 11565else $as_nop 11566 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11567 then ac_cv_path_EGREP="$GREP -E" 11568 else 11569 if test -z "$EGREP"; then 11570 ac_path_EGREP_found=false 11571 # Loop through the user's path and test for each of PROGNAME-LIST 11572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11573for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11574do 11575 IFS=$as_save_IFS 11576 case $as_dir in #((( 11577 '') as_dir=./ ;; 11578 */) ;; 11579 *) as_dir=$as_dir/ ;; 11580 esac 11581 for ac_prog in egrep 11582 do 11583 for ac_exec_ext in '' $ac_executable_extensions; do 11584 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11585 as_fn_executable_p "$ac_path_EGREP" || continue 11586# Check for GNU ac_path_EGREP and select it if it is found. 11587 # Check for GNU $ac_path_EGREP 11588case `"$ac_path_EGREP" --version 2>&1` in 11589*GNU*) 11590 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11591*) 11592 ac_count=0 11593 printf %s 0123456789 >"conftest.in" 11594 while : 11595 do 11596 cat "conftest.in" "conftest.in" >"conftest.tmp" 11597 mv "conftest.tmp" "conftest.in" 11598 cp "conftest.in" "conftest.nl" 11599 printf "%s\n" 'EGREP' >> "conftest.nl" 11600 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11602 as_fn_arith $ac_count + 1 && ac_count=$as_val 11603 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11604 # Best one so far, save it but keep looking for a better one 11605 ac_cv_path_EGREP="$ac_path_EGREP" 11606 ac_path_EGREP_max=$ac_count 11607 fi 11608 # 10*(2^10) chars as input seems more than enough 11609 test $ac_count -gt 10 && break 11610 done 11611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11612esac 11613 11614 $ac_path_EGREP_found && break 3 11615 done 11616 done 11617 done 11618IFS=$as_save_IFS 11619 if test -z "$ac_cv_path_EGREP"; then 11620 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11621 fi 11622else 11623 ac_cv_path_EGREP=$EGREP 11624fi 11625 11626 fi 11627fi 11628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11629printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11630 EGREP="$ac_cv_path_EGREP" 11631 11632 11633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11634printf %s "checking for fgrep... " >&6; } 11635if test ${ac_cv_path_FGREP+y} 11636then : 11637 printf %s "(cached) " >&6 11638else $as_nop 11639 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11640 then ac_cv_path_FGREP="$GREP -F" 11641 else 11642 if test -z "$FGREP"; then 11643 ac_path_FGREP_found=false 11644 # Loop through the user's path and test for each of PROGNAME-LIST 11645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11646for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11647do 11648 IFS=$as_save_IFS 11649 case $as_dir in #((( 11650 '') as_dir=./ ;; 11651 */) ;; 11652 *) as_dir=$as_dir/ ;; 11653 esac 11654 for ac_prog in fgrep 11655 do 11656 for ac_exec_ext in '' $ac_executable_extensions; do 11657 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11658 as_fn_executable_p "$ac_path_FGREP" || continue 11659# Check for GNU ac_path_FGREP and select it if it is found. 11660 # Check for GNU $ac_path_FGREP 11661case `"$ac_path_FGREP" --version 2>&1` in 11662*GNU*) 11663 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11664*) 11665 ac_count=0 11666 printf %s 0123456789 >"conftest.in" 11667 while : 11668 do 11669 cat "conftest.in" "conftest.in" >"conftest.tmp" 11670 mv "conftest.tmp" "conftest.in" 11671 cp "conftest.in" "conftest.nl" 11672 printf "%s\n" 'FGREP' >> "conftest.nl" 11673 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11674 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11675 as_fn_arith $ac_count + 1 && ac_count=$as_val 11676 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11677 # Best one so far, save it but keep looking for a better one 11678 ac_cv_path_FGREP="$ac_path_FGREP" 11679 ac_path_FGREP_max=$ac_count 11680 fi 11681 # 10*(2^10) chars as input seems more than enough 11682 test $ac_count -gt 10 && break 11683 done 11684 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11685esac 11686 11687 $ac_path_FGREP_found && break 3 11688 done 11689 done 11690 done 11691IFS=$as_save_IFS 11692 if test -z "$ac_cv_path_FGREP"; then 11693 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11694 fi 11695else 11696 ac_cv_path_FGREP=$FGREP 11697fi 11698 11699 fi 11700fi 11701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11702printf "%s\n" "$ac_cv_path_FGREP" >&6; } 11703 FGREP="$ac_cv_path_FGREP" 11704 11705 11706test -z "$GREP" && GREP=grep 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726# Check whether --with-gnu-ld was given. 11727if test ${with_gnu_ld+y} 11728then : 11729 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11730else $as_nop 11731 with_gnu_ld=no 11732fi 11733 11734ac_prog=ld 11735if test yes = "$GCC"; then 11736 # Check if gcc -print-prog-name=ld gives a path. 11737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11738printf %s "checking for ld used by $CC... " >&6; } 11739 case $host in 11740 *-*-mingw*) 11741 # gcc leaves a trailing carriage return, which upsets mingw 11742 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11743 *) 11744 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11745 esac 11746 case $ac_prog in 11747 # Accept absolute paths. 11748 [\\/]* | ?:[\\/]*) 11749 re_direlt='/[^/][^/]*/\.\./' 11750 # Canonicalize the pathname of ld 11751 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11752 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11753 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11754 done 11755 test -z "$LD" && LD=$ac_prog 11756 ;; 11757 "") 11758 # If it fails, then pretend we aren't using GCC. 11759 ac_prog=ld 11760 ;; 11761 *) 11762 # If it is relative, then search for the first ld in PATH. 11763 with_gnu_ld=unknown 11764 ;; 11765 esac 11766elif test yes = "$with_gnu_ld"; then 11767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11768printf %s "checking for GNU ld... " >&6; } 11769else 11770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11771printf %s "checking for non-GNU ld... " >&6; } 11772fi 11773if test ${lt_cv_path_LD+y} 11774then : 11775 printf %s "(cached) " >&6 11776else $as_nop 11777 if test -z "$LD"; then 11778 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11779 for ac_dir in $PATH; do 11780 IFS=$lt_save_ifs 11781 test -z "$ac_dir" && ac_dir=. 11782 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11783 lt_cv_path_LD=$ac_dir/$ac_prog 11784 # Check to see if the program is GNU ld. I'd rather use --version, 11785 # but apparently some variants of GNU ld only accept -v. 11786 # Break only if it was the GNU/non-GNU ld that we prefer. 11787 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11788 *GNU* | *'with BFD'*) 11789 test no != "$with_gnu_ld" && break 11790 ;; 11791 *) 11792 test yes != "$with_gnu_ld" && break 11793 ;; 11794 esac 11795 fi 11796 done 11797 IFS=$lt_save_ifs 11798else 11799 lt_cv_path_LD=$LD # Let the user override the test with a path. 11800fi 11801fi 11802 11803LD=$lt_cv_path_LD 11804if test -n "$LD"; then 11805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11806printf "%s\n" "$LD" >&6; } 11807else 11808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11809printf "%s\n" "no" >&6; } 11810fi 11811test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11813printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 11814if test ${lt_cv_prog_gnu_ld+y} 11815then : 11816 printf %s "(cached) " >&6 11817else $as_nop 11818 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11819case `$LD -v 2>&1 </dev/null` in 11820*GNU* | *'with BFD'*) 11821 lt_cv_prog_gnu_ld=yes 11822 ;; 11823*) 11824 lt_cv_prog_gnu_ld=no 11825 ;; 11826esac 11827fi 11828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11829printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 11830with_gnu_ld=$lt_cv_prog_gnu_ld 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11841printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11842if test ${lt_cv_path_NM+y} 11843then : 11844 printf %s "(cached) " >&6 11845else $as_nop 11846 if test -n "$NM"; then 11847 # Let the user override the test. 11848 lt_cv_path_NM=$NM 11849else 11850 lt_nm_to_check=${ac_tool_prefix}nm 11851 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11852 lt_nm_to_check="$lt_nm_to_check nm" 11853 fi 11854 for lt_tmp_nm in $lt_nm_to_check; do 11855 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11856 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11857 IFS=$lt_save_ifs 11858 test -z "$ac_dir" && ac_dir=. 11859 tmp_nm=$ac_dir/$lt_tmp_nm 11860 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11861 # Check to see if the nm accepts a BSD-compat flag. 11862 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11863 # nm: unknown option "B" ignored 11864 # Tru64's nm complains that /dev/null is an invalid object file 11865 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11866 case $build_os in 11867 mingw*) lt_bad_file=conftest.nm/nofile ;; 11868 *) lt_bad_file=/dev/null ;; 11869 esac 11870 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 11871 *$lt_bad_file* | *'Invalid file or object type'*) 11872 lt_cv_path_NM="$tmp_nm -B" 11873 break 2 11874 ;; 11875 *) 11876 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 11877 */dev/null*) 11878 lt_cv_path_NM="$tmp_nm -p" 11879 break 2 11880 ;; 11881 *) 11882 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11883 continue # so that we can try to find one that supports BSD flags 11884 ;; 11885 esac 11886 ;; 11887 esac 11888 fi 11889 done 11890 IFS=$lt_save_ifs 11891 done 11892 : ${lt_cv_path_NM=no} 11893fi 11894fi 11895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11896printf "%s\n" "$lt_cv_path_NM" >&6; } 11897if test no != "$lt_cv_path_NM"; then 11898 NM=$lt_cv_path_NM 11899else 11900 # Didn't find any BSD compatible name lister, look for dumpbin. 11901 if test -n "$DUMPBIN"; then : 11902 # Let the user override the test. 11903 else 11904 if test -n "$ac_tool_prefix"; then 11905 for ac_prog in dumpbin "link -dump" 11906 do 11907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11908set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11910printf %s "checking for $ac_word... " >&6; } 11911if test ${ac_cv_prog_DUMPBIN+y} 11912then : 11913 printf %s "(cached) " >&6 11914else $as_nop 11915 if test -n "$DUMPBIN"; then 11916 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11917else 11918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11919for as_dir in $PATH 11920do 11921 IFS=$as_save_IFS 11922 case $as_dir in #((( 11923 '') as_dir=./ ;; 11924 */) ;; 11925 *) as_dir=$as_dir/ ;; 11926 esac 11927 for ac_exec_ext in '' $ac_executable_extensions; do 11928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11929 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11931 break 2 11932 fi 11933done 11934 done 11935IFS=$as_save_IFS 11936 11937fi 11938fi 11939DUMPBIN=$ac_cv_prog_DUMPBIN 11940if test -n "$DUMPBIN"; then 11941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11942printf "%s\n" "$DUMPBIN" >&6; } 11943else 11944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11945printf "%s\n" "no" >&6; } 11946fi 11947 11948 11949 test -n "$DUMPBIN" && break 11950 done 11951fi 11952if test -z "$DUMPBIN"; then 11953 ac_ct_DUMPBIN=$DUMPBIN 11954 for ac_prog in dumpbin "link -dump" 11955do 11956 # Extract the first word of "$ac_prog", so it can be a program name with args. 11957set dummy $ac_prog; ac_word=$2 11958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11959printf %s "checking for $ac_word... " >&6; } 11960if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 11961then : 11962 printf %s "(cached) " >&6 11963else $as_nop 11964 if test -n "$ac_ct_DUMPBIN"; then 11965 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11966else 11967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11968for as_dir in $PATH 11969do 11970 IFS=$as_save_IFS 11971 case $as_dir in #((( 11972 '') as_dir=./ ;; 11973 */) ;; 11974 *) as_dir=$as_dir/ ;; 11975 esac 11976 for ac_exec_ext in '' $ac_executable_extensions; do 11977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11978 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11980 break 2 11981 fi 11982done 11983 done 11984IFS=$as_save_IFS 11985 11986fi 11987fi 11988ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11989if test -n "$ac_ct_DUMPBIN"; then 11990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11991printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 11992else 11993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11994printf "%s\n" "no" >&6; } 11995fi 11996 11997 11998 test -n "$ac_ct_DUMPBIN" && break 11999done 12000 12001 if test "x$ac_ct_DUMPBIN" = x; then 12002 DUMPBIN=":" 12003 else 12004 case $cross_compiling:$ac_tool_warned in 12005yes:) 12006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12007printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12008ac_tool_warned=yes ;; 12009esac 12010 DUMPBIN=$ac_ct_DUMPBIN 12011 fi 12012fi 12013 12014 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 12015 *COFF*) 12016 DUMPBIN="$DUMPBIN -symbols -headers" 12017 ;; 12018 *) 12019 DUMPBIN=: 12020 ;; 12021 esac 12022 fi 12023 12024 if test : != "$DUMPBIN"; then 12025 NM=$DUMPBIN 12026 fi 12027fi 12028test -z "$NM" && NM=nm 12029 12030 12031 12032 12033 12034 12035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12036printf %s "checking the name lister ($NM) interface... " >&6; } 12037if test ${lt_cv_nm_interface+y} 12038then : 12039 printf %s "(cached) " >&6 12040else $as_nop 12041 lt_cv_nm_interface="BSD nm" 12042 echo "int some_variable = 0;" > conftest.$ac_ext 12043 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12044 (eval "$ac_compile" 2>conftest.err) 12045 cat conftest.err >&5 12046 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12047 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12048 cat conftest.err >&5 12049 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12050 cat conftest.out >&5 12051 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12052 lt_cv_nm_interface="MS dumpbin" 12053 fi 12054 rm -f conftest* 12055fi 12056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12057printf "%s\n" "$lt_cv_nm_interface" >&6; } 12058 12059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12060printf %s "checking whether ln -s works... " >&6; } 12061LN_S=$as_ln_s 12062if test "$LN_S" = "ln -s"; then 12063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12064printf "%s\n" "yes" >&6; } 12065else 12066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12067printf "%s\n" "no, using $LN_S" >&6; } 12068fi 12069 12070# find the maximum length of command line arguments 12071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12072printf %s "checking the maximum length of command line arguments... " >&6; } 12073if test ${lt_cv_sys_max_cmd_len+y} 12074then : 12075 printf %s "(cached) " >&6 12076else $as_nop 12077 i=0 12078 teststring=ABCD 12079 12080 case $build_os in 12081 msdosdjgpp*) 12082 # On DJGPP, this test can blow up pretty badly due to problems in libc 12083 # (any single argument exceeding 2000 bytes causes a buffer overrun 12084 # during glob expansion). Even if it were fixed, the result of this 12085 # check would be larger than it should be. 12086 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12087 ;; 12088 12089 gnu*) 12090 # Under GNU Hurd, this test is not required because there is 12091 # no limit to the length of command line arguments. 12092 # Libtool will interpret -1 as no limit whatsoever 12093 lt_cv_sys_max_cmd_len=-1; 12094 ;; 12095 12096 cygwin* | mingw* | cegcc*) 12097 # On Win9x/ME, this test blows up -- it succeeds, but takes 12098 # about 5 minutes as the teststring grows exponentially. 12099 # Worse, since 9x/ME are not pre-emptively multitasking, 12100 # you end up with a "frozen" computer, even though with patience 12101 # the test eventually succeeds (with a max line length of 256k). 12102 # Instead, let's just punt: use the minimum linelength reported by 12103 # all of the supported platforms: 8192 (on NT/2K/XP). 12104 lt_cv_sys_max_cmd_len=8192; 12105 ;; 12106 12107 mint*) 12108 # On MiNT this can take a long time and run out of memory. 12109 lt_cv_sys_max_cmd_len=8192; 12110 ;; 12111 12112 amigaos*) 12113 # On AmigaOS with pdksh, this test takes hours, literally. 12114 # So we just punt and use a minimum line length of 8192. 12115 lt_cv_sys_max_cmd_len=8192; 12116 ;; 12117 12118 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12119 # This has been around since 386BSD, at least. Likely further. 12120 if test -x /sbin/sysctl; then 12121 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12122 elif test -x /usr/sbin/sysctl; then 12123 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12124 else 12125 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12126 fi 12127 # And add a safety zone 12128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12130 ;; 12131 12132 interix*) 12133 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12134 lt_cv_sys_max_cmd_len=196608 12135 ;; 12136 12137 os2*) 12138 # The test takes a long time on OS/2. 12139 lt_cv_sys_max_cmd_len=8192 12140 ;; 12141 12142 osf*) 12143 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12144 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12145 # nice to cause kernel panics so lets avoid the loop below. 12146 # First set a reasonable default. 12147 lt_cv_sys_max_cmd_len=16384 12148 # 12149 if test -x /sbin/sysconfig; then 12150 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12151 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12152 esac 12153 fi 12154 ;; 12155 sco3.2v5*) 12156 lt_cv_sys_max_cmd_len=102400 12157 ;; 12158 sysv5* | sco5v6* | sysv4.2uw2*) 12159 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12160 if test -n "$kargmax"; then 12161 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12162 else 12163 lt_cv_sys_max_cmd_len=32768 12164 fi 12165 ;; 12166 *) 12167 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12168 if test -n "$lt_cv_sys_max_cmd_len" && \ 12169 test undefined != "$lt_cv_sys_max_cmd_len"; then 12170 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12172 else 12173 # Make teststring a little bigger before we do anything with it. 12174 # a 1K string should be a reasonable start. 12175 for i in 1 2 3 4 5 6 7 8; do 12176 teststring=$teststring$teststring 12177 done 12178 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12179 # If test is not a shell built-in, we'll probably end up computing a 12180 # maximum length that is only half of the actual maximum length, but 12181 # we can't tell. 12182 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12183 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12184 test 17 != "$i" # 1/2 MB should be enough 12185 do 12186 i=`expr $i + 1` 12187 teststring=$teststring$teststring 12188 done 12189 # Only check the string length outside the loop. 12190 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12191 teststring= 12192 # Add a significant safety factor because C++ compilers can tack on 12193 # massive amounts of additional arguments before passing them to the 12194 # linker. It appears as though 1/2 is a usable value. 12195 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12196 fi 12197 ;; 12198 esac 12199 12200fi 12201 12202if test -n "$lt_cv_sys_max_cmd_len"; then 12203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12204printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12205else 12206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12207printf "%s\n" "none" >&6; } 12208fi 12209max_cmd_len=$lt_cv_sys_max_cmd_len 12210 12211 12212 12213 12214 12215 12216: ${CP="cp -f"} 12217: ${MV="mv -f"} 12218: ${RM="rm -f"} 12219 12220if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12221 lt_unset=unset 12222else 12223 lt_unset=false 12224fi 12225 12226 12227 12228 12229 12230# test EBCDIC or ASCII 12231case `echo X|tr X '\101'` in 12232 A) # ASCII based system 12233 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12234 lt_SP2NL='tr \040 \012' 12235 lt_NL2SP='tr \015\012 \040\040' 12236 ;; 12237 *) # EBCDIC based system 12238 lt_SP2NL='tr \100 \n' 12239 lt_NL2SP='tr \r\n \100\100' 12240 ;; 12241esac 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12252printf %s "checking how to convert $build file names to $host format... " >&6; } 12253if test ${lt_cv_to_host_file_cmd+y} 12254then : 12255 printf %s "(cached) " >&6 12256else $as_nop 12257 case $host in 12258 *-*-mingw* ) 12259 case $build in 12260 *-*-mingw* ) # actually msys 12261 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12262 ;; 12263 *-*-cygwin* ) 12264 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12265 ;; 12266 * ) # otherwise, assume *nix 12267 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12268 ;; 12269 esac 12270 ;; 12271 *-*-cygwin* ) 12272 case $build in 12273 *-*-mingw* ) # actually msys 12274 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12275 ;; 12276 *-*-cygwin* ) 12277 lt_cv_to_host_file_cmd=func_convert_file_noop 12278 ;; 12279 * ) # otherwise, assume *nix 12280 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12281 ;; 12282 esac 12283 ;; 12284 * ) # unhandled hosts (and "normal" native builds) 12285 lt_cv_to_host_file_cmd=func_convert_file_noop 12286 ;; 12287esac 12288 12289fi 12290 12291to_host_file_cmd=$lt_cv_to_host_file_cmd 12292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12293printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12294 12295 12296 12297 12298 12299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12300printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12301if test ${lt_cv_to_tool_file_cmd+y} 12302then : 12303 printf %s "(cached) " >&6 12304else $as_nop 12305 #assume ordinary cross tools, or native build. 12306lt_cv_to_tool_file_cmd=func_convert_file_noop 12307case $host in 12308 *-*-mingw* ) 12309 case $build in 12310 *-*-mingw* ) # actually msys 12311 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12312 ;; 12313 esac 12314 ;; 12315esac 12316 12317fi 12318 12319to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12321printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12322 12323 12324 12325 12326 12327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12328printf %s "checking for $LD option to reload object files... " >&6; } 12329if test ${lt_cv_ld_reload_flag+y} 12330then : 12331 printf %s "(cached) " >&6 12332else $as_nop 12333 lt_cv_ld_reload_flag='-r' 12334fi 12335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12336printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12337reload_flag=$lt_cv_ld_reload_flag 12338case $reload_flag in 12339"" | " "*) ;; 12340*) reload_flag=" $reload_flag" ;; 12341esac 12342reload_cmds='$LD$reload_flag -o $output$reload_objs' 12343case $host_os in 12344 cygwin* | mingw* | pw32* | cegcc*) 12345 if test yes != "$GCC"; then 12346 reload_cmds=false 12347 fi 12348 ;; 12349 darwin*) 12350 if test yes = "$GCC"; then 12351 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12352 else 12353 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12354 fi 12355 ;; 12356esac 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366if test -n "$ac_tool_prefix"; then 12367 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 12368set dummy ${ac_tool_prefix}file; ac_word=$2 12369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12370printf %s "checking for $ac_word... " >&6; } 12371if test ${ac_cv_prog_FILECMD+y} 12372then : 12373 printf %s "(cached) " >&6 12374else $as_nop 12375 if test -n "$FILECMD"; then 12376 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12377else 12378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12379for as_dir in $PATH 12380do 12381 IFS=$as_save_IFS 12382 case $as_dir in #((( 12383 '') as_dir=./ ;; 12384 */) ;; 12385 *) as_dir=$as_dir/ ;; 12386 esac 12387 for ac_exec_ext in '' $ac_executable_extensions; do 12388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12389 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 12390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12391 break 2 12392 fi 12393done 12394 done 12395IFS=$as_save_IFS 12396 12397fi 12398fi 12399FILECMD=$ac_cv_prog_FILECMD 12400if test -n "$FILECMD"; then 12401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12402printf "%s\n" "$FILECMD" >&6; } 12403else 12404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12405printf "%s\n" "no" >&6; } 12406fi 12407 12408 12409fi 12410if test -z "$ac_cv_prog_FILECMD"; then 12411 ac_ct_FILECMD=$FILECMD 12412 # Extract the first word of "file", so it can be a program name with args. 12413set dummy file; ac_word=$2 12414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12415printf %s "checking for $ac_word... " >&6; } 12416if test ${ac_cv_prog_ac_ct_FILECMD+y} 12417then : 12418 printf %s "(cached) " >&6 12419else $as_nop 12420 if test -n "$ac_ct_FILECMD"; then 12421 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 12422else 12423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12424for as_dir in $PATH 12425do 12426 IFS=$as_save_IFS 12427 case $as_dir in #((( 12428 '') as_dir=./ ;; 12429 */) ;; 12430 *) as_dir=$as_dir/ ;; 12431 esac 12432 for ac_exec_ext in '' $ac_executable_extensions; do 12433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12434 ac_cv_prog_ac_ct_FILECMD="file" 12435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12436 break 2 12437 fi 12438done 12439 done 12440IFS=$as_save_IFS 12441 12442fi 12443fi 12444ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 12445if test -n "$ac_ct_FILECMD"; then 12446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 12447printf "%s\n" "$ac_ct_FILECMD" >&6; } 12448else 12449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12450printf "%s\n" "no" >&6; } 12451fi 12452 12453 if test "x$ac_ct_FILECMD" = x; then 12454 FILECMD=":" 12455 else 12456 case $cross_compiling:$ac_tool_warned in 12457yes:) 12458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12459printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12460ac_tool_warned=yes ;; 12461esac 12462 FILECMD=$ac_ct_FILECMD 12463 fi 12464else 12465 FILECMD="$ac_cv_prog_FILECMD" 12466fi 12467 12468 12469 12470 12471 12472 12473 12474if test -n "$ac_tool_prefix"; then 12475 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12476set dummy ${ac_tool_prefix}objdump; ac_word=$2 12477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12478printf %s "checking for $ac_word... " >&6; } 12479if test ${ac_cv_prog_OBJDUMP+y} 12480then : 12481 printf %s "(cached) " >&6 12482else $as_nop 12483 if test -n "$OBJDUMP"; then 12484 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12485else 12486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12487for as_dir in $PATH 12488do 12489 IFS=$as_save_IFS 12490 case $as_dir in #((( 12491 '') as_dir=./ ;; 12492 */) ;; 12493 *) as_dir=$as_dir/ ;; 12494 esac 12495 for ac_exec_ext in '' $ac_executable_extensions; do 12496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12497 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12499 break 2 12500 fi 12501done 12502 done 12503IFS=$as_save_IFS 12504 12505fi 12506fi 12507OBJDUMP=$ac_cv_prog_OBJDUMP 12508if test -n "$OBJDUMP"; then 12509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12510printf "%s\n" "$OBJDUMP" >&6; } 12511else 12512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12513printf "%s\n" "no" >&6; } 12514fi 12515 12516 12517fi 12518if test -z "$ac_cv_prog_OBJDUMP"; then 12519 ac_ct_OBJDUMP=$OBJDUMP 12520 # Extract the first word of "objdump", so it can be a program name with args. 12521set dummy objdump; ac_word=$2 12522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12523printf %s "checking for $ac_word... " >&6; } 12524if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12525then : 12526 printf %s "(cached) " >&6 12527else $as_nop 12528 if test -n "$ac_ct_OBJDUMP"; then 12529 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12530else 12531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12532for as_dir in $PATH 12533do 12534 IFS=$as_save_IFS 12535 case $as_dir in #((( 12536 '') as_dir=./ ;; 12537 */) ;; 12538 *) as_dir=$as_dir/ ;; 12539 esac 12540 for ac_exec_ext in '' $ac_executable_extensions; do 12541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12542 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12544 break 2 12545 fi 12546done 12547 done 12548IFS=$as_save_IFS 12549 12550fi 12551fi 12552ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12553if test -n "$ac_ct_OBJDUMP"; then 12554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12555printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12556else 12557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12558printf "%s\n" "no" >&6; } 12559fi 12560 12561 if test "x$ac_ct_OBJDUMP" = x; then 12562 OBJDUMP="false" 12563 else 12564 case $cross_compiling:$ac_tool_warned in 12565yes:) 12566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12567printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12568ac_tool_warned=yes ;; 12569esac 12570 OBJDUMP=$ac_ct_OBJDUMP 12571 fi 12572else 12573 OBJDUMP="$ac_cv_prog_OBJDUMP" 12574fi 12575 12576test -z "$OBJDUMP" && OBJDUMP=objdump 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12587printf %s "checking how to recognize dependent libraries... " >&6; } 12588if test ${lt_cv_deplibs_check_method+y} 12589then : 12590 printf %s "(cached) " >&6 12591else $as_nop 12592 lt_cv_file_magic_cmd='$MAGIC_CMD' 12593lt_cv_file_magic_test_file= 12594lt_cv_deplibs_check_method='unknown' 12595# Need to set the preceding variable on all platforms that support 12596# interlibrary dependencies. 12597# 'none' -- dependencies not supported. 12598# 'unknown' -- same as none, but documents that we really don't know. 12599# 'pass_all' -- all dependencies passed with no checks. 12600# 'test_compile' -- check by making test program. 12601# 'file_magic [[regex]]' -- check by looking for files in library path 12602# that responds to the $file_magic_cmd with a given extended regex. 12603# If you have 'file' or equivalent on your system and you're not sure 12604# whether 'pass_all' will *always* work, you probably want this one. 12605 12606case $host_os in 12607aix[4-9]*) 12608 lt_cv_deplibs_check_method=pass_all 12609 ;; 12610 12611beos*) 12612 lt_cv_deplibs_check_method=pass_all 12613 ;; 12614 12615bsdi[45]*) 12616 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12617 lt_cv_file_magic_cmd='$FILECMD -L' 12618 lt_cv_file_magic_test_file=/shlib/libc.so 12619 ;; 12620 12621cygwin*) 12622 # func_win32_libid is a shell function defined in ltmain.sh 12623 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12624 lt_cv_file_magic_cmd='func_win32_libid' 12625 ;; 12626 12627mingw* | pw32*) 12628 # Base MSYS/MinGW do not provide the 'file' command needed by 12629 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12630 # unless we find 'file', for example because we are cross-compiling. 12631 if ( file / ) >/dev/null 2>&1; then 12632 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12633 lt_cv_file_magic_cmd='func_win32_libid' 12634 else 12635 # Keep this pattern in sync with the one in func_win32_libid. 12636 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12637 lt_cv_file_magic_cmd='$OBJDUMP -f' 12638 fi 12639 ;; 12640 12641cegcc*) 12642 # use the weaker test based on 'objdump'. See mingw*. 12643 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12644 lt_cv_file_magic_cmd='$OBJDUMP -f' 12645 ;; 12646 12647darwin* | rhapsody*) 12648 lt_cv_deplibs_check_method=pass_all 12649 ;; 12650 12651freebsd* | dragonfly* | midnightbsd*) 12652 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12653 case $host_cpu in 12654 i*86 ) 12655 # Not sure whether the presence of OpenBSD here was a mistake. 12656 # Let's accept both of them until this is cleared up. 12657 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12658 lt_cv_file_magic_cmd=$FILECMD 12659 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12660 ;; 12661 esac 12662 else 12663 lt_cv_deplibs_check_method=pass_all 12664 fi 12665 ;; 12666 12667haiku*) 12668 lt_cv_deplibs_check_method=pass_all 12669 ;; 12670 12671hpux10.20* | hpux11*) 12672 lt_cv_file_magic_cmd=$FILECMD 12673 case $host_cpu in 12674 ia64*) 12675 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12676 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12677 ;; 12678 hppa*64*) 12679 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]' 12680 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12681 ;; 12682 *) 12683 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12684 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12685 ;; 12686 esac 12687 ;; 12688 12689interix[3-9]*) 12690 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12692 ;; 12693 12694irix5* | irix6* | nonstopux*) 12695 case $LD in 12696 *-32|*"-32 ") libmagic=32-bit;; 12697 *-n32|*"-n32 ") libmagic=N32;; 12698 *-64|*"-64 ") libmagic=64-bit;; 12699 *) libmagic=never-match;; 12700 esac 12701 lt_cv_deplibs_check_method=pass_all 12702 ;; 12703 12704# This must be glibc/ELF. 12705linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12706 lt_cv_deplibs_check_method=pass_all 12707 ;; 12708 12709netbsd*) 12710 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12712 else 12713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12714 fi 12715 ;; 12716 12717newos6*) 12718 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12719 lt_cv_file_magic_cmd=$FILECMD 12720 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12721 ;; 12722 12723*nto* | *qnx*) 12724 lt_cv_deplibs_check_method=pass_all 12725 ;; 12726 12727openbsd* | bitrig*) 12728 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12730 else 12731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12732 fi 12733 ;; 12734 12735osf3* | osf4* | osf5*) 12736 lt_cv_deplibs_check_method=pass_all 12737 ;; 12738 12739rdos*) 12740 lt_cv_deplibs_check_method=pass_all 12741 ;; 12742 12743solaris*) 12744 lt_cv_deplibs_check_method=pass_all 12745 ;; 12746 12747sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12748 lt_cv_deplibs_check_method=pass_all 12749 ;; 12750 12751sysv4 | sysv4.3*) 12752 case $host_vendor in 12753 motorola) 12754 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]' 12755 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12756 ;; 12757 ncr) 12758 lt_cv_deplibs_check_method=pass_all 12759 ;; 12760 sequent) 12761 lt_cv_file_magic_cmd='/bin/file' 12762 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12763 ;; 12764 sni) 12765 lt_cv_file_magic_cmd='/bin/file' 12766 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12767 lt_cv_file_magic_test_file=/lib/libc.so 12768 ;; 12769 siemens) 12770 lt_cv_deplibs_check_method=pass_all 12771 ;; 12772 pc) 12773 lt_cv_deplibs_check_method=pass_all 12774 ;; 12775 esac 12776 ;; 12777 12778tpf*) 12779 lt_cv_deplibs_check_method=pass_all 12780 ;; 12781os2*) 12782 lt_cv_deplibs_check_method=pass_all 12783 ;; 12784esac 12785 12786fi 12787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12788printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 12789 12790file_magic_glob= 12791want_nocaseglob=no 12792if test "$build" = "$host"; then 12793 case $host_os in 12794 mingw* | pw32*) 12795 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12796 want_nocaseglob=yes 12797 else 12798 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12799 fi 12800 ;; 12801 esac 12802fi 12803 12804file_magic_cmd=$lt_cv_file_magic_cmd 12805deplibs_check_method=$lt_cv_deplibs_check_method 12806test -z "$deplibs_check_method" && deplibs_check_method=unknown 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829if test -n "$ac_tool_prefix"; then 12830 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12831set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12833printf %s "checking for $ac_word... " >&6; } 12834if test ${ac_cv_prog_DLLTOOL+y} 12835then : 12836 printf %s "(cached) " >&6 12837else $as_nop 12838 if test -n "$DLLTOOL"; then 12839 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12840else 12841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12842for as_dir in $PATH 12843do 12844 IFS=$as_save_IFS 12845 case $as_dir in #((( 12846 '') as_dir=./ ;; 12847 */) ;; 12848 *) as_dir=$as_dir/ ;; 12849 esac 12850 for ac_exec_ext in '' $ac_executable_extensions; do 12851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12852 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12854 break 2 12855 fi 12856done 12857 done 12858IFS=$as_save_IFS 12859 12860fi 12861fi 12862DLLTOOL=$ac_cv_prog_DLLTOOL 12863if test -n "$DLLTOOL"; then 12864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12865printf "%s\n" "$DLLTOOL" >&6; } 12866else 12867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12868printf "%s\n" "no" >&6; } 12869fi 12870 12871 12872fi 12873if test -z "$ac_cv_prog_DLLTOOL"; then 12874 ac_ct_DLLTOOL=$DLLTOOL 12875 # Extract the first word of "dlltool", so it can be a program name with args. 12876set dummy dlltool; ac_word=$2 12877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12878printf %s "checking for $ac_word... " >&6; } 12879if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 12880then : 12881 printf %s "(cached) " >&6 12882else $as_nop 12883 if test -n "$ac_ct_DLLTOOL"; then 12884 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12885else 12886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12887for as_dir in $PATH 12888do 12889 IFS=$as_save_IFS 12890 case $as_dir in #((( 12891 '') as_dir=./ ;; 12892 */) ;; 12893 *) as_dir=$as_dir/ ;; 12894 esac 12895 for ac_exec_ext in '' $ac_executable_extensions; do 12896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12897 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12899 break 2 12900 fi 12901done 12902 done 12903IFS=$as_save_IFS 12904 12905fi 12906fi 12907ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12908if test -n "$ac_ct_DLLTOOL"; then 12909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12910printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 12911else 12912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12913printf "%s\n" "no" >&6; } 12914fi 12915 12916 if test "x$ac_ct_DLLTOOL" = x; then 12917 DLLTOOL="false" 12918 else 12919 case $cross_compiling:$ac_tool_warned in 12920yes:) 12921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12922printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12923ac_tool_warned=yes ;; 12924esac 12925 DLLTOOL=$ac_ct_DLLTOOL 12926 fi 12927else 12928 DLLTOOL="$ac_cv_prog_DLLTOOL" 12929fi 12930 12931test -z "$DLLTOOL" && DLLTOOL=dlltool 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12943printf %s "checking how to associate runtime and link libraries... " >&6; } 12944if test ${lt_cv_sharedlib_from_linklib_cmd+y} 12945then : 12946 printf %s "(cached) " >&6 12947else $as_nop 12948 lt_cv_sharedlib_from_linklib_cmd='unknown' 12949 12950case $host_os in 12951cygwin* | mingw* | pw32* | cegcc*) 12952 # two different shell functions defined in ltmain.sh; 12953 # decide which one to use based on capabilities of $DLLTOOL 12954 case `$DLLTOOL --help 2>&1` in 12955 *--identify-strict*) 12956 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12957 ;; 12958 *) 12959 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12960 ;; 12961 esac 12962 ;; 12963*) 12964 # fallback: assume linklib IS sharedlib 12965 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12966 ;; 12967esac 12968 12969fi 12970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12971printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12972sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12973test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12974 12975 12976 12977 12978 12979 12980 12981if test -n "$ac_tool_prefix"; then 12982 for ac_prog in ar 12983 do 12984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12985set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12987printf %s "checking for $ac_word... " >&6; } 12988if test ${ac_cv_prog_AR+y} 12989then : 12990 printf %s "(cached) " >&6 12991else $as_nop 12992 if test -n "$AR"; then 12993 ac_cv_prog_AR="$AR" # Let the user override the test. 12994else 12995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12996for as_dir in $PATH 12997do 12998 IFS=$as_save_IFS 12999 case $as_dir in #((( 13000 '') as_dir=./ ;; 13001 */) ;; 13002 *) as_dir=$as_dir/ ;; 13003 esac 13004 for ac_exec_ext in '' $ac_executable_extensions; do 13005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13006 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13008 break 2 13009 fi 13010done 13011 done 13012IFS=$as_save_IFS 13013 13014fi 13015fi 13016AR=$ac_cv_prog_AR 13017if test -n "$AR"; then 13018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13019printf "%s\n" "$AR" >&6; } 13020else 13021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13022printf "%s\n" "no" >&6; } 13023fi 13024 13025 13026 test -n "$AR" && break 13027 done 13028fi 13029if test -z "$AR"; then 13030 ac_ct_AR=$AR 13031 for ac_prog in ar 13032do 13033 # Extract the first word of "$ac_prog", so it can be a program name with args. 13034set dummy $ac_prog; ac_word=$2 13035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13036printf %s "checking for $ac_word... " >&6; } 13037if test ${ac_cv_prog_ac_ct_AR+y} 13038then : 13039 printf %s "(cached) " >&6 13040else $as_nop 13041 if test -n "$ac_ct_AR"; then 13042 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13043else 13044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13045for as_dir in $PATH 13046do 13047 IFS=$as_save_IFS 13048 case $as_dir in #((( 13049 '') as_dir=./ ;; 13050 */) ;; 13051 *) as_dir=$as_dir/ ;; 13052 esac 13053 for ac_exec_ext in '' $ac_executable_extensions; do 13054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13055 ac_cv_prog_ac_ct_AR="$ac_prog" 13056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13057 break 2 13058 fi 13059done 13060 done 13061IFS=$as_save_IFS 13062 13063fi 13064fi 13065ac_ct_AR=$ac_cv_prog_ac_ct_AR 13066if test -n "$ac_ct_AR"; then 13067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13068printf "%s\n" "$ac_ct_AR" >&6; } 13069else 13070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13071printf "%s\n" "no" >&6; } 13072fi 13073 13074 13075 test -n "$ac_ct_AR" && break 13076done 13077 13078 if test "x$ac_ct_AR" = x; then 13079 AR="false" 13080 else 13081 case $cross_compiling:$ac_tool_warned in 13082yes:) 13083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13084printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13085ac_tool_warned=yes ;; 13086esac 13087 AR=$ac_ct_AR 13088 fi 13089fi 13090 13091: ${AR=ar} 13092 13093 13094 13095 13096 13097 13098# Use ARFLAGS variable as AR's operation code to sync the variable naming with 13099# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13100# higher priority because thats what people were doing historically (setting 13101# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13102# variable obsoleted/removed. 13103 13104test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13105lt_ar_flags=$AR_FLAGS 13106 13107 13108 13109 13110 13111 13112# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13113# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13114 13115 13116 13117 13118 13119 13120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13121printf %s "checking for archiver @FILE support... " >&6; } 13122if test ${lt_cv_ar_at_file+y} 13123then : 13124 printf %s "(cached) " >&6 13125else $as_nop 13126 lt_cv_ar_at_file=no 13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13128/* end confdefs.h. */ 13129 13130int 13131main (void) 13132{ 13133 13134 ; 13135 return 0; 13136} 13137_ACEOF 13138if ac_fn_c_try_compile "$LINENO" 13139then : 13140 echo conftest.$ac_objext > conftest.lst 13141 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13143 (eval $lt_ar_try) 2>&5 13144 ac_status=$? 13145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13146 test $ac_status = 0; } 13147 if test 0 -eq "$ac_status"; then 13148 # Ensure the archiver fails upon bogus file names. 13149 rm -f conftest.$ac_objext libconftest.a 13150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13151 (eval $lt_ar_try) 2>&5 13152 ac_status=$? 13153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13154 test $ac_status = 0; } 13155 if test 0 -ne "$ac_status"; then 13156 lt_cv_ar_at_file=@ 13157 fi 13158 fi 13159 rm -f conftest.* libconftest.a 13160 13161fi 13162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13163 13164fi 13165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13166printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13167 13168if test no = "$lt_cv_ar_at_file"; then 13169 archiver_list_spec= 13170else 13171 archiver_list_spec=$lt_cv_ar_at_file 13172fi 13173 13174 13175 13176 13177 13178 13179 13180if test -n "$ac_tool_prefix"; then 13181 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13182set dummy ${ac_tool_prefix}strip; ac_word=$2 13183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13184printf %s "checking for $ac_word... " >&6; } 13185if test ${ac_cv_prog_STRIP+y} 13186then : 13187 printf %s "(cached) " >&6 13188else $as_nop 13189 if test -n "$STRIP"; then 13190 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13191else 13192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13193for as_dir in $PATH 13194do 13195 IFS=$as_save_IFS 13196 case $as_dir in #((( 13197 '') as_dir=./ ;; 13198 */) ;; 13199 *) as_dir=$as_dir/ ;; 13200 esac 13201 for ac_exec_ext in '' $ac_executable_extensions; do 13202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13203 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13205 break 2 13206 fi 13207done 13208 done 13209IFS=$as_save_IFS 13210 13211fi 13212fi 13213STRIP=$ac_cv_prog_STRIP 13214if test -n "$STRIP"; then 13215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13216printf "%s\n" "$STRIP" >&6; } 13217else 13218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13219printf "%s\n" "no" >&6; } 13220fi 13221 13222 13223fi 13224if test -z "$ac_cv_prog_STRIP"; then 13225 ac_ct_STRIP=$STRIP 13226 # Extract the first word of "strip", so it can be a program name with args. 13227set dummy strip; ac_word=$2 13228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13229printf %s "checking for $ac_word... " >&6; } 13230if test ${ac_cv_prog_ac_ct_STRIP+y} 13231then : 13232 printf %s "(cached) " >&6 13233else $as_nop 13234 if test -n "$ac_ct_STRIP"; then 13235 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13236else 13237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13238for as_dir in $PATH 13239do 13240 IFS=$as_save_IFS 13241 case $as_dir in #((( 13242 '') as_dir=./ ;; 13243 */) ;; 13244 *) as_dir=$as_dir/ ;; 13245 esac 13246 for ac_exec_ext in '' $ac_executable_extensions; do 13247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13248 ac_cv_prog_ac_ct_STRIP="strip" 13249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13250 break 2 13251 fi 13252done 13253 done 13254IFS=$as_save_IFS 13255 13256fi 13257fi 13258ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13259if test -n "$ac_ct_STRIP"; then 13260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13261printf "%s\n" "$ac_ct_STRIP" >&6; } 13262else 13263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13264printf "%s\n" "no" >&6; } 13265fi 13266 13267 if test "x$ac_ct_STRIP" = x; then 13268 STRIP=":" 13269 else 13270 case $cross_compiling:$ac_tool_warned in 13271yes:) 13272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13273printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13274ac_tool_warned=yes ;; 13275esac 13276 STRIP=$ac_ct_STRIP 13277 fi 13278else 13279 STRIP="$ac_cv_prog_STRIP" 13280fi 13281 13282test -z "$STRIP" && STRIP=: 13283 13284 13285 13286 13287 13288 13289if test -n "$ac_tool_prefix"; then 13290 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13291set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13293printf %s "checking for $ac_word... " >&6; } 13294if test ${ac_cv_prog_RANLIB+y} 13295then : 13296 printf %s "(cached) " >&6 13297else $as_nop 13298 if test -n "$RANLIB"; then 13299 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13300else 13301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13302for as_dir in $PATH 13303do 13304 IFS=$as_save_IFS 13305 case $as_dir in #((( 13306 '') as_dir=./ ;; 13307 */) ;; 13308 *) as_dir=$as_dir/ ;; 13309 esac 13310 for ac_exec_ext in '' $ac_executable_extensions; do 13311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13312 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13314 break 2 13315 fi 13316done 13317 done 13318IFS=$as_save_IFS 13319 13320fi 13321fi 13322RANLIB=$ac_cv_prog_RANLIB 13323if test -n "$RANLIB"; then 13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13325printf "%s\n" "$RANLIB" >&6; } 13326else 13327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13328printf "%s\n" "no" >&6; } 13329fi 13330 13331 13332fi 13333if test -z "$ac_cv_prog_RANLIB"; then 13334 ac_ct_RANLIB=$RANLIB 13335 # Extract the first word of "ranlib", so it can be a program name with args. 13336set dummy ranlib; ac_word=$2 13337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13338printf %s "checking for $ac_word... " >&6; } 13339if test ${ac_cv_prog_ac_ct_RANLIB+y} 13340then : 13341 printf %s "(cached) " >&6 13342else $as_nop 13343 if test -n "$ac_ct_RANLIB"; then 13344 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13345else 13346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13347for as_dir in $PATH 13348do 13349 IFS=$as_save_IFS 13350 case $as_dir in #((( 13351 '') as_dir=./ ;; 13352 */) ;; 13353 *) as_dir=$as_dir/ ;; 13354 esac 13355 for ac_exec_ext in '' $ac_executable_extensions; do 13356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13357 ac_cv_prog_ac_ct_RANLIB="ranlib" 13358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13359 break 2 13360 fi 13361done 13362 done 13363IFS=$as_save_IFS 13364 13365fi 13366fi 13367ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13368if test -n "$ac_ct_RANLIB"; then 13369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13370printf "%s\n" "$ac_ct_RANLIB" >&6; } 13371else 13372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13373printf "%s\n" "no" >&6; } 13374fi 13375 13376 if test "x$ac_ct_RANLIB" = x; then 13377 RANLIB=":" 13378 else 13379 case $cross_compiling:$ac_tool_warned in 13380yes:) 13381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13382printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13383ac_tool_warned=yes ;; 13384esac 13385 RANLIB=$ac_ct_RANLIB 13386 fi 13387else 13388 RANLIB="$ac_cv_prog_RANLIB" 13389fi 13390 13391test -z "$RANLIB" && RANLIB=: 13392 13393 13394 13395 13396 13397 13398# Determine commands to create old-style static archives. 13399old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13400old_postinstall_cmds='chmod 644 $oldlib' 13401old_postuninstall_cmds= 13402 13403if test -n "$RANLIB"; then 13404 case $host_os in 13405 bitrig* | openbsd*) 13406 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13407 ;; 13408 *) 13409 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13410 ;; 13411 esac 13412 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13413fi 13414 13415case $host_os in 13416 darwin*) 13417 lock_old_archive_extraction=yes ;; 13418 *) 13419 lock_old_archive_extraction=no ;; 13420esac 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460# If no C compiler was specified, use CC. 13461LTCC=${LTCC-"$CC"} 13462 13463# If no C compiler flags were specified, use CFLAGS. 13464LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13465 13466# Allow CC to be a program name with arguments. 13467compiler=$CC 13468 13469 13470# Check for command to grab the raw symbol name followed by C symbol from nm. 13471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13472printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13473if test ${lt_cv_sys_global_symbol_pipe+y} 13474then : 13475 printf %s "(cached) " >&6 13476else $as_nop 13477 13478# These are sane defaults that work on at least a few old systems. 13479# [They come from Ultrix. What could be older than Ultrix?!! ;)] 13480 13481# Character class describing NM global symbol codes. 13482symcode='[BCDEGRST]' 13483 13484# Regexp to match symbols that can be accessed directly from C. 13485sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13486 13487# Define system-specific variables. 13488case $host_os in 13489aix*) 13490 symcode='[BCDT]' 13491 ;; 13492cygwin* | mingw* | pw32* | cegcc*) 13493 symcode='[ABCDGISTW]' 13494 ;; 13495hpux*) 13496 if test ia64 = "$host_cpu"; then 13497 symcode='[ABCDEGRST]' 13498 fi 13499 ;; 13500irix* | nonstopux*) 13501 symcode='[BCDEGRST]' 13502 ;; 13503osf*) 13504 symcode='[BCDEGQRST]' 13505 ;; 13506solaris*) 13507 symcode='[BDRT]' 13508 ;; 13509sco3.2v5*) 13510 symcode='[DT]' 13511 ;; 13512sysv4.2uw2*) 13513 symcode='[DT]' 13514 ;; 13515sysv5* | sco5v6* | unixware* | OpenUNIX*) 13516 symcode='[ABDT]' 13517 ;; 13518sysv4) 13519 symcode='[DFNSTU]' 13520 ;; 13521esac 13522 13523# If we're using GNU nm, then use its standard symbol codes. 13524case `$NM -V 2>&1` in 13525*GNU* | *'with BFD'*) 13526 symcode='[ABCDGIRSTW]' ;; 13527esac 13528 13529if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13530 # Gets list of data symbols to import. 13531 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13532 # Adjust the below global symbol transforms to fixup imported variables. 13533 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13534 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13535 lt_c_name_lib_hook="\ 13536 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13537 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13538else 13539 # Disable hooks by default. 13540 lt_cv_sys_global_symbol_to_import= 13541 lt_cdecl_hook= 13542 lt_c_name_hook= 13543 lt_c_name_lib_hook= 13544fi 13545 13546# Transform an extracted symbol line into a proper C declaration. 13547# Some systems (esp. on ia64) link data and code symbols differently, 13548# so use this general approach. 13549lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13550$lt_cdecl_hook\ 13551" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13552" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13553 13554# Transform an extracted symbol line into symbol name and symbol address 13555lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13556$lt_c_name_hook\ 13557" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13558" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13559 13560# Transform an extracted symbol line into symbol name with lib prefix and 13561# symbol address. 13562lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13563$lt_c_name_lib_hook\ 13564" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13565" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13566" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13567 13568# Handle CRLF in mingw tool chain 13569opt_cr= 13570case $build_os in 13571mingw*) 13572 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13573 ;; 13574esac 13575 13576# Try without a prefix underscore, then with it. 13577for ac_symprfx in "" "_"; do 13578 13579 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13580 symxfrm="\\1 $ac_symprfx\\2 \\2" 13581 13582 # Write the raw and C identifiers. 13583 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13584 # Fake it for dumpbin and say T for any non-static function, 13585 # D for any global variable and I for any imported variable. 13586 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13587 # which start with @ or ?. 13588 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13589" {last_section=section; section=\$ 3};"\ 13590" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13591" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13592" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13593" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13594" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13595" \$ 0!~/External *\|/{next};"\ 13596" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13597" {if(hide[section]) next};"\ 13598" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13599" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13600" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13601" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13602" ' prfx=^$ac_symprfx" 13603 else 13604 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13605 fi 13606 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13607 13608 # Check to see that the pipe works correctly. 13609 pipe_works=no 13610 13611 rm -f conftest* 13612 cat > conftest.$ac_ext <<_LT_EOF 13613#ifdef __cplusplus 13614extern "C" { 13615#endif 13616char nm_test_var; 13617void nm_test_func(void); 13618void nm_test_func(void){} 13619#ifdef __cplusplus 13620} 13621#endif 13622int main(){nm_test_var='a';nm_test_func();return(0);} 13623_LT_EOF 13624 13625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13626 (eval $ac_compile) 2>&5 13627 ac_status=$? 13628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13629 test $ac_status = 0; }; then 13630 # Now try to grab the symbols. 13631 nlist=conftest.nm 13632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13633 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13634 ac_status=$? 13635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13636 test $ac_status = 0; } && test -s "$nlist"; then 13637 # Try sorting and uniquifying the output. 13638 if sort "$nlist" | uniq > "$nlist"T; then 13639 mv -f "$nlist"T "$nlist" 13640 else 13641 rm -f "$nlist"T 13642 fi 13643 13644 # Make sure that we snagged all the symbols we need. 13645 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13646 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13647 cat <<_LT_EOF > conftest.$ac_ext 13648/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13649#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13650/* DATA imports from DLLs on WIN32 can't be const, because runtime 13651 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13652# define LT_DLSYM_CONST 13653#elif defined __osf__ 13654/* This system does not cope well with relocations in const data. */ 13655# define LT_DLSYM_CONST 13656#else 13657# define LT_DLSYM_CONST const 13658#endif 13659 13660#ifdef __cplusplus 13661extern "C" { 13662#endif 13663 13664_LT_EOF 13665 # Now generate the symbol file. 13666 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13667 13668 cat <<_LT_EOF >> conftest.$ac_ext 13669 13670/* The mapping between symbol names and symbols. */ 13671LT_DLSYM_CONST struct { 13672 const char *name; 13673 void *address; 13674} 13675lt__PROGRAM__LTX_preloaded_symbols[] = 13676{ 13677 { "@PROGRAM@", (void *) 0 }, 13678_LT_EOF 13679 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13680 cat <<\_LT_EOF >> conftest.$ac_ext 13681 {0, (void *) 0} 13682}; 13683 13684/* This works around a problem in FreeBSD linker */ 13685#ifdef FREEBSD_WORKAROUND 13686static const void *lt_preloaded_setup() { 13687 return lt__PROGRAM__LTX_preloaded_symbols; 13688} 13689#endif 13690 13691#ifdef __cplusplus 13692} 13693#endif 13694_LT_EOF 13695 # Now try linking the two files. 13696 mv conftest.$ac_objext conftstm.$ac_objext 13697 lt_globsym_save_LIBS=$LIBS 13698 lt_globsym_save_CFLAGS=$CFLAGS 13699 LIBS=conftstm.$ac_objext 13700 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13702 (eval $ac_link) 2>&5 13703 ac_status=$? 13704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13705 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13706 pipe_works=yes 13707 fi 13708 LIBS=$lt_globsym_save_LIBS 13709 CFLAGS=$lt_globsym_save_CFLAGS 13710 else 13711 echo "cannot find nm_test_func in $nlist" >&5 13712 fi 13713 else 13714 echo "cannot find nm_test_var in $nlist" >&5 13715 fi 13716 else 13717 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13718 fi 13719 else 13720 echo "$progname: failed program was:" >&5 13721 cat conftest.$ac_ext >&5 13722 fi 13723 rm -rf conftest* conftst* 13724 13725 # Do not use the global_symbol_pipe unless it works. 13726 if test yes = "$pipe_works"; then 13727 break 13728 else 13729 lt_cv_sys_global_symbol_pipe= 13730 fi 13731done 13732 13733fi 13734 13735if test -z "$lt_cv_sys_global_symbol_pipe"; then 13736 lt_cv_sys_global_symbol_to_cdecl= 13737fi 13738if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13740printf "%s\n" "failed" >&6; } 13741else 13742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13743printf "%s\n" "ok" >&6; } 13744fi 13745 13746# Response file support. 13747if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13748 nm_file_list_spec='@' 13749elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13750 nm_file_list_spec='@' 13751fi 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13790printf %s "checking for sysroot... " >&6; } 13791 13792# Check whether --with-sysroot was given. 13793if test ${with_sysroot+y} 13794then : 13795 withval=$with_sysroot; 13796else $as_nop 13797 with_sysroot=no 13798fi 13799 13800 13801lt_sysroot= 13802case $with_sysroot in #( 13803 yes) 13804 if test yes = "$GCC"; then 13805 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13806 fi 13807 ;; #( 13808 /*) 13809 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 13810 ;; #( 13811 no|'') 13812 ;; #( 13813 *) 13814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13815printf "%s\n" "$with_sysroot" >&6; } 13816 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13817 ;; 13818esac 13819 13820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13821printf "%s\n" "${lt_sysroot:-no}" >&6; } 13822 13823 13824 13825 13826 13827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13828printf %s "checking for a working dd... " >&6; } 13829if test ${ac_cv_path_lt_DD+y} 13830then : 13831 printf %s "(cached) " >&6 13832else $as_nop 13833 printf 0123456789abcdef0123456789abcdef >conftest.i 13834cat conftest.i conftest.i >conftest2.i 13835: ${lt_DD:=$DD} 13836if test -z "$lt_DD"; then 13837 ac_path_lt_DD_found=false 13838 # Loop through the user's path and test for each of PROGNAME-LIST 13839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13840for as_dir in $PATH 13841do 13842 IFS=$as_save_IFS 13843 case $as_dir in #((( 13844 '') as_dir=./ ;; 13845 */) ;; 13846 *) as_dir=$as_dir/ ;; 13847 esac 13848 for ac_prog in dd 13849 do 13850 for ac_exec_ext in '' $ac_executable_extensions; do 13851 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 13852 as_fn_executable_p "$ac_path_lt_DD" || continue 13853if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13854 cmp -s conftest.i conftest.out \ 13855 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13856fi 13857 $ac_path_lt_DD_found && break 3 13858 done 13859 done 13860 done 13861IFS=$as_save_IFS 13862 if test -z "$ac_cv_path_lt_DD"; then 13863 : 13864 fi 13865else 13866 ac_cv_path_lt_DD=$lt_DD 13867fi 13868 13869rm -f conftest.i conftest2.i conftest.out 13870fi 13871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13872printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 13873 13874 13875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13876printf %s "checking how to truncate binary pipes... " >&6; } 13877if test ${lt_cv_truncate_bin+y} 13878then : 13879 printf %s "(cached) " >&6 13880else $as_nop 13881 printf 0123456789abcdef0123456789abcdef >conftest.i 13882cat conftest.i conftest.i >conftest2.i 13883lt_cv_truncate_bin= 13884if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13885 cmp -s conftest.i conftest.out \ 13886 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13887fi 13888rm -f conftest.i conftest2.i conftest.out 13889test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13890fi 13891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13892printf "%s\n" "$lt_cv_truncate_bin" >&6; } 13893 13894 13895 13896 13897 13898 13899 13900# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13901func_cc_basename () 13902{ 13903 for cc_temp in $*""; do 13904 case $cc_temp in 13905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13907 \-*) ;; 13908 *) break;; 13909 esac 13910 done 13911 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13912} 13913 13914# Check whether --enable-libtool-lock was given. 13915if test ${enable_libtool_lock+y} 13916then : 13917 enableval=$enable_libtool_lock; 13918fi 13919 13920test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13921 13922# Some flags need to be propagated to the compiler or linker for good 13923# libtool support. 13924case $host in 13925ia64-*-hpux*) 13926 # Find out what ABI is being produced by ac_compile, and set mode 13927 # options accordingly. 13928 echo 'int i;' > conftest.$ac_ext 13929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13930 (eval $ac_compile) 2>&5 13931 ac_status=$? 13932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13933 test $ac_status = 0; }; then 13934 case `$FILECMD conftest.$ac_objext` in 13935 *ELF-32*) 13936 HPUX_IA64_MODE=32 13937 ;; 13938 *ELF-64*) 13939 HPUX_IA64_MODE=64 13940 ;; 13941 esac 13942 fi 13943 rm -rf conftest* 13944 ;; 13945*-*-irix6*) 13946 # Find out what ABI is being produced by ac_compile, and set linker 13947 # options accordingly. 13948 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13950 (eval $ac_compile) 2>&5 13951 ac_status=$? 13952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13953 test $ac_status = 0; }; then 13954 if test yes = "$lt_cv_prog_gnu_ld"; then 13955 case `$FILECMD conftest.$ac_objext` in 13956 *32-bit*) 13957 LD="${LD-ld} -melf32bsmip" 13958 ;; 13959 *N32*) 13960 LD="${LD-ld} -melf32bmipn32" 13961 ;; 13962 *64-bit*) 13963 LD="${LD-ld} -melf64bmip" 13964 ;; 13965 esac 13966 else 13967 case `$FILECMD conftest.$ac_objext` in 13968 *32-bit*) 13969 LD="${LD-ld} -32" 13970 ;; 13971 *N32*) 13972 LD="${LD-ld} -n32" 13973 ;; 13974 *64-bit*) 13975 LD="${LD-ld} -64" 13976 ;; 13977 esac 13978 fi 13979 fi 13980 rm -rf conftest* 13981 ;; 13982 13983mips64*-*linux*) 13984 # Find out what ABI is being produced by ac_compile, and set linker 13985 # options accordingly. 13986 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13988 (eval $ac_compile) 2>&5 13989 ac_status=$? 13990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13991 test $ac_status = 0; }; then 13992 emul=elf 13993 case `$FILECMD conftest.$ac_objext` in 13994 *32-bit*) 13995 emul="${emul}32" 13996 ;; 13997 *64-bit*) 13998 emul="${emul}64" 13999 ;; 14000 esac 14001 case `$FILECMD conftest.$ac_objext` in 14002 *MSB*) 14003 emul="${emul}btsmip" 14004 ;; 14005 *LSB*) 14006 emul="${emul}ltsmip" 14007 ;; 14008 esac 14009 case `$FILECMD conftest.$ac_objext` in 14010 *N32*) 14011 emul="${emul}n32" 14012 ;; 14013 esac 14014 LD="${LD-ld} -m $emul" 14015 fi 14016 rm -rf conftest* 14017 ;; 14018 14019x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14020s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14021 # Find out what ABI is being produced by ac_compile, and set linker 14022 # options accordingly. Note that the listed cases only cover the 14023 # situations where additional linker options are needed (such as when 14024 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14025 # vice versa); the common cases where no linker options are needed do 14026 # not appear in the list. 14027 echo 'int i;' > conftest.$ac_ext 14028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14029 (eval $ac_compile) 2>&5 14030 ac_status=$? 14031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14032 test $ac_status = 0; }; then 14033 case `$FILECMD conftest.o` in 14034 *32-bit*) 14035 case $host in 14036 x86_64-*kfreebsd*-gnu) 14037 LD="${LD-ld} -m elf_i386_fbsd" 14038 ;; 14039 x86_64-*linux*) 14040 case `$FILECMD conftest.o` in 14041 *x86-64*) 14042 LD="${LD-ld} -m elf32_x86_64" 14043 ;; 14044 *) 14045 LD="${LD-ld} -m elf_i386" 14046 ;; 14047 esac 14048 ;; 14049 powerpc64le-*linux*) 14050 LD="${LD-ld} -m elf32lppclinux" 14051 ;; 14052 powerpc64-*linux*) 14053 LD="${LD-ld} -m elf32ppclinux" 14054 ;; 14055 s390x-*linux*) 14056 LD="${LD-ld} -m elf_s390" 14057 ;; 14058 sparc64-*linux*) 14059 LD="${LD-ld} -m elf32_sparc" 14060 ;; 14061 esac 14062 ;; 14063 *64-bit*) 14064 case $host in 14065 x86_64-*kfreebsd*-gnu) 14066 LD="${LD-ld} -m elf_x86_64_fbsd" 14067 ;; 14068 x86_64-*linux*) 14069 LD="${LD-ld} -m elf_x86_64" 14070 ;; 14071 powerpcle-*linux*) 14072 LD="${LD-ld} -m elf64lppc" 14073 ;; 14074 powerpc-*linux*) 14075 LD="${LD-ld} -m elf64ppc" 14076 ;; 14077 s390*-*linux*|s390*-*tpf*) 14078 LD="${LD-ld} -m elf64_s390" 14079 ;; 14080 sparc*-*linux*) 14081 LD="${LD-ld} -m elf64_sparc" 14082 ;; 14083 esac 14084 ;; 14085 esac 14086 fi 14087 rm -rf conftest* 14088 ;; 14089 14090*-*-sco3.2v5*) 14091 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14092 SAVE_CFLAGS=$CFLAGS 14093 CFLAGS="$CFLAGS -belf" 14094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14095printf %s "checking whether the C compiler needs -belf... " >&6; } 14096if test ${lt_cv_cc_needs_belf+y} 14097then : 14098 printf %s "(cached) " >&6 14099else $as_nop 14100 ac_ext=c 14101ac_cpp='$CPP $CPPFLAGS' 14102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14104ac_compiler_gnu=$ac_cv_c_compiler_gnu 14105 14106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14107/* end confdefs.h. */ 14108 14109int 14110main (void) 14111{ 14112 14113 ; 14114 return 0; 14115} 14116_ACEOF 14117if ac_fn_c_try_link "$LINENO" 14118then : 14119 lt_cv_cc_needs_belf=yes 14120else $as_nop 14121 lt_cv_cc_needs_belf=no 14122fi 14123rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14124 conftest$ac_exeext conftest.$ac_ext 14125 ac_ext=c 14126ac_cpp='$CPP $CPPFLAGS' 14127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14129ac_compiler_gnu=$ac_cv_c_compiler_gnu 14130 14131fi 14132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14133printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14134 if test yes != "$lt_cv_cc_needs_belf"; then 14135 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14136 CFLAGS=$SAVE_CFLAGS 14137 fi 14138 ;; 14139*-*solaris*) 14140 # Find out what ABI is being produced by ac_compile, and set linker 14141 # options accordingly. 14142 echo 'int i;' > conftest.$ac_ext 14143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14144 (eval $ac_compile) 2>&5 14145 ac_status=$? 14146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14147 test $ac_status = 0; }; then 14148 case `$FILECMD conftest.o` in 14149 *64-bit*) 14150 case $lt_cv_prog_gnu_ld in 14151 yes*) 14152 case $host in 14153 i?86-*-solaris*|x86_64-*-solaris*) 14154 LD="${LD-ld} -m elf_x86_64" 14155 ;; 14156 sparc*-*-solaris*) 14157 LD="${LD-ld} -m elf64_sparc" 14158 ;; 14159 esac 14160 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14161 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14162 LD=${LD-ld}_sol2 14163 fi 14164 ;; 14165 *) 14166 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14167 LD="${LD-ld} -64" 14168 fi 14169 ;; 14170 esac 14171 ;; 14172 esac 14173 fi 14174 rm -rf conftest* 14175 ;; 14176esac 14177 14178need_locks=$enable_libtool_lock 14179 14180if test -n "$ac_tool_prefix"; then 14181 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14182set dummy ${ac_tool_prefix}mt; ac_word=$2 14183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14184printf %s "checking for $ac_word... " >&6; } 14185if test ${ac_cv_prog_MANIFEST_TOOL+y} 14186then : 14187 printf %s "(cached) " >&6 14188else $as_nop 14189 if test -n "$MANIFEST_TOOL"; then 14190 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14191else 14192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14193for as_dir in $PATH 14194do 14195 IFS=$as_save_IFS 14196 case $as_dir in #((( 14197 '') as_dir=./ ;; 14198 */) ;; 14199 *) as_dir=$as_dir/ ;; 14200 esac 14201 for ac_exec_ext in '' $ac_executable_extensions; do 14202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14203 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14205 break 2 14206 fi 14207done 14208 done 14209IFS=$as_save_IFS 14210 14211fi 14212fi 14213MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14214if test -n "$MANIFEST_TOOL"; then 14215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14216printf "%s\n" "$MANIFEST_TOOL" >&6; } 14217else 14218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14219printf "%s\n" "no" >&6; } 14220fi 14221 14222 14223fi 14224if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14225 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14226 # Extract the first word of "mt", so it can be a program name with args. 14227set dummy mt; ac_word=$2 14228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14229printf %s "checking for $ac_word... " >&6; } 14230if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14231then : 14232 printf %s "(cached) " >&6 14233else $as_nop 14234 if test -n "$ac_ct_MANIFEST_TOOL"; then 14235 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14236else 14237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14238for as_dir in $PATH 14239do 14240 IFS=$as_save_IFS 14241 case $as_dir in #((( 14242 '') as_dir=./ ;; 14243 */) ;; 14244 *) as_dir=$as_dir/ ;; 14245 esac 14246 for ac_exec_ext in '' $ac_executable_extensions; do 14247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14248 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14250 break 2 14251 fi 14252done 14253 done 14254IFS=$as_save_IFS 14255 14256fi 14257fi 14258ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14259if test -n "$ac_ct_MANIFEST_TOOL"; then 14260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14261printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14262else 14263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14264printf "%s\n" "no" >&6; } 14265fi 14266 14267 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14268 MANIFEST_TOOL=":" 14269 else 14270 case $cross_compiling:$ac_tool_warned in 14271yes:) 14272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14273printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14274ac_tool_warned=yes ;; 14275esac 14276 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14277 fi 14278else 14279 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14280fi 14281 14282test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14284printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14285if test ${lt_cv_path_mainfest_tool+y} 14286then : 14287 printf %s "(cached) " >&6 14288else $as_nop 14289 lt_cv_path_mainfest_tool=no 14290 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14291 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14292 cat conftest.err >&5 14293 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14294 lt_cv_path_mainfest_tool=yes 14295 fi 14296 rm -f conftest* 14297fi 14298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14299printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14300if test yes != "$lt_cv_path_mainfest_tool"; then 14301 MANIFEST_TOOL=: 14302fi 14303 14304 14305 14306 14307 14308 14309 case $host_os in 14310 rhapsody* | darwin*) 14311 if test -n "$ac_tool_prefix"; then 14312 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14313set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14315printf %s "checking for $ac_word... " >&6; } 14316if test ${ac_cv_prog_DSYMUTIL+y} 14317then : 14318 printf %s "(cached) " >&6 14319else $as_nop 14320 if test -n "$DSYMUTIL"; then 14321 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14322else 14323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14324for as_dir in $PATH 14325do 14326 IFS=$as_save_IFS 14327 case $as_dir in #((( 14328 '') as_dir=./ ;; 14329 */) ;; 14330 *) as_dir=$as_dir/ ;; 14331 esac 14332 for ac_exec_ext in '' $ac_executable_extensions; do 14333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14334 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14336 break 2 14337 fi 14338done 14339 done 14340IFS=$as_save_IFS 14341 14342fi 14343fi 14344DSYMUTIL=$ac_cv_prog_DSYMUTIL 14345if test -n "$DSYMUTIL"; then 14346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14347printf "%s\n" "$DSYMUTIL" >&6; } 14348else 14349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14350printf "%s\n" "no" >&6; } 14351fi 14352 14353 14354fi 14355if test -z "$ac_cv_prog_DSYMUTIL"; then 14356 ac_ct_DSYMUTIL=$DSYMUTIL 14357 # Extract the first word of "dsymutil", so it can be a program name with args. 14358set dummy dsymutil; ac_word=$2 14359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14360printf %s "checking for $ac_word... " >&6; } 14361if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14362then : 14363 printf %s "(cached) " >&6 14364else $as_nop 14365 if test -n "$ac_ct_DSYMUTIL"; then 14366 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14367else 14368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14369for as_dir in $PATH 14370do 14371 IFS=$as_save_IFS 14372 case $as_dir in #((( 14373 '') as_dir=./ ;; 14374 */) ;; 14375 *) as_dir=$as_dir/ ;; 14376 esac 14377 for ac_exec_ext in '' $ac_executable_extensions; do 14378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14379 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14381 break 2 14382 fi 14383done 14384 done 14385IFS=$as_save_IFS 14386 14387fi 14388fi 14389ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14390if test -n "$ac_ct_DSYMUTIL"; then 14391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14392printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14393else 14394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14395printf "%s\n" "no" >&6; } 14396fi 14397 14398 if test "x$ac_ct_DSYMUTIL" = x; then 14399 DSYMUTIL=":" 14400 else 14401 case $cross_compiling:$ac_tool_warned in 14402yes:) 14403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14404printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14405ac_tool_warned=yes ;; 14406esac 14407 DSYMUTIL=$ac_ct_DSYMUTIL 14408 fi 14409else 14410 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14411fi 14412 14413 if test -n "$ac_tool_prefix"; then 14414 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14415set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14417printf %s "checking for $ac_word... " >&6; } 14418if test ${ac_cv_prog_NMEDIT+y} 14419then : 14420 printf %s "(cached) " >&6 14421else $as_nop 14422 if test -n "$NMEDIT"; then 14423 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14424else 14425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14426for as_dir in $PATH 14427do 14428 IFS=$as_save_IFS 14429 case $as_dir in #((( 14430 '') as_dir=./ ;; 14431 */) ;; 14432 *) as_dir=$as_dir/ ;; 14433 esac 14434 for ac_exec_ext in '' $ac_executable_extensions; do 14435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14436 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14438 break 2 14439 fi 14440done 14441 done 14442IFS=$as_save_IFS 14443 14444fi 14445fi 14446NMEDIT=$ac_cv_prog_NMEDIT 14447if test -n "$NMEDIT"; then 14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14449printf "%s\n" "$NMEDIT" >&6; } 14450else 14451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14452printf "%s\n" "no" >&6; } 14453fi 14454 14455 14456fi 14457if test -z "$ac_cv_prog_NMEDIT"; then 14458 ac_ct_NMEDIT=$NMEDIT 14459 # Extract the first word of "nmedit", so it can be a program name with args. 14460set dummy nmedit; ac_word=$2 14461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14462printf %s "checking for $ac_word... " >&6; } 14463if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14464then : 14465 printf %s "(cached) " >&6 14466else $as_nop 14467 if test -n "$ac_ct_NMEDIT"; then 14468 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14469else 14470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14471for as_dir in $PATH 14472do 14473 IFS=$as_save_IFS 14474 case $as_dir in #((( 14475 '') as_dir=./ ;; 14476 */) ;; 14477 *) as_dir=$as_dir/ ;; 14478 esac 14479 for ac_exec_ext in '' $ac_executable_extensions; do 14480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14481 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14483 break 2 14484 fi 14485done 14486 done 14487IFS=$as_save_IFS 14488 14489fi 14490fi 14491ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14492if test -n "$ac_ct_NMEDIT"; then 14493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14494printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14495else 14496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14497printf "%s\n" "no" >&6; } 14498fi 14499 14500 if test "x$ac_ct_NMEDIT" = x; then 14501 NMEDIT=":" 14502 else 14503 case $cross_compiling:$ac_tool_warned in 14504yes:) 14505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14506printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14507ac_tool_warned=yes ;; 14508esac 14509 NMEDIT=$ac_ct_NMEDIT 14510 fi 14511else 14512 NMEDIT="$ac_cv_prog_NMEDIT" 14513fi 14514 14515 if test -n "$ac_tool_prefix"; then 14516 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14517set dummy ${ac_tool_prefix}lipo; ac_word=$2 14518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14519printf %s "checking for $ac_word... " >&6; } 14520if test ${ac_cv_prog_LIPO+y} 14521then : 14522 printf %s "(cached) " >&6 14523else $as_nop 14524 if test -n "$LIPO"; then 14525 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14526else 14527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14528for as_dir in $PATH 14529do 14530 IFS=$as_save_IFS 14531 case $as_dir in #((( 14532 '') as_dir=./ ;; 14533 */) ;; 14534 *) as_dir=$as_dir/ ;; 14535 esac 14536 for ac_exec_ext in '' $ac_executable_extensions; do 14537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14538 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14540 break 2 14541 fi 14542done 14543 done 14544IFS=$as_save_IFS 14545 14546fi 14547fi 14548LIPO=$ac_cv_prog_LIPO 14549if test -n "$LIPO"; then 14550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14551printf "%s\n" "$LIPO" >&6; } 14552else 14553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14554printf "%s\n" "no" >&6; } 14555fi 14556 14557 14558fi 14559if test -z "$ac_cv_prog_LIPO"; then 14560 ac_ct_LIPO=$LIPO 14561 # Extract the first word of "lipo", so it can be a program name with args. 14562set dummy lipo; ac_word=$2 14563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14564printf %s "checking for $ac_word... " >&6; } 14565if test ${ac_cv_prog_ac_ct_LIPO+y} 14566then : 14567 printf %s "(cached) " >&6 14568else $as_nop 14569 if test -n "$ac_ct_LIPO"; then 14570 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14571else 14572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14573for as_dir in $PATH 14574do 14575 IFS=$as_save_IFS 14576 case $as_dir in #((( 14577 '') as_dir=./ ;; 14578 */) ;; 14579 *) as_dir=$as_dir/ ;; 14580 esac 14581 for ac_exec_ext in '' $ac_executable_extensions; do 14582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14583 ac_cv_prog_ac_ct_LIPO="lipo" 14584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14585 break 2 14586 fi 14587done 14588 done 14589IFS=$as_save_IFS 14590 14591fi 14592fi 14593ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14594if test -n "$ac_ct_LIPO"; then 14595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14596printf "%s\n" "$ac_ct_LIPO" >&6; } 14597else 14598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14599printf "%s\n" "no" >&6; } 14600fi 14601 14602 if test "x$ac_ct_LIPO" = x; then 14603 LIPO=":" 14604 else 14605 case $cross_compiling:$ac_tool_warned in 14606yes:) 14607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14608printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14609ac_tool_warned=yes ;; 14610esac 14611 LIPO=$ac_ct_LIPO 14612 fi 14613else 14614 LIPO="$ac_cv_prog_LIPO" 14615fi 14616 14617 if test -n "$ac_tool_prefix"; then 14618 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14619set dummy ${ac_tool_prefix}otool; ac_word=$2 14620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14621printf %s "checking for $ac_word... " >&6; } 14622if test ${ac_cv_prog_OTOOL+y} 14623then : 14624 printf %s "(cached) " >&6 14625else $as_nop 14626 if test -n "$OTOOL"; then 14627 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14628else 14629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14630for as_dir in $PATH 14631do 14632 IFS=$as_save_IFS 14633 case $as_dir in #((( 14634 '') as_dir=./ ;; 14635 */) ;; 14636 *) as_dir=$as_dir/ ;; 14637 esac 14638 for ac_exec_ext in '' $ac_executable_extensions; do 14639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14640 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14642 break 2 14643 fi 14644done 14645 done 14646IFS=$as_save_IFS 14647 14648fi 14649fi 14650OTOOL=$ac_cv_prog_OTOOL 14651if test -n "$OTOOL"; then 14652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14653printf "%s\n" "$OTOOL" >&6; } 14654else 14655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14656printf "%s\n" "no" >&6; } 14657fi 14658 14659 14660fi 14661if test -z "$ac_cv_prog_OTOOL"; then 14662 ac_ct_OTOOL=$OTOOL 14663 # Extract the first word of "otool", so it can be a program name with args. 14664set dummy otool; ac_word=$2 14665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14666printf %s "checking for $ac_word... " >&6; } 14667if test ${ac_cv_prog_ac_ct_OTOOL+y} 14668then : 14669 printf %s "(cached) " >&6 14670else $as_nop 14671 if test -n "$ac_ct_OTOOL"; then 14672 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14673else 14674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14675for as_dir in $PATH 14676do 14677 IFS=$as_save_IFS 14678 case $as_dir in #((( 14679 '') as_dir=./ ;; 14680 */) ;; 14681 *) as_dir=$as_dir/ ;; 14682 esac 14683 for ac_exec_ext in '' $ac_executable_extensions; do 14684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14685 ac_cv_prog_ac_ct_OTOOL="otool" 14686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14687 break 2 14688 fi 14689done 14690 done 14691IFS=$as_save_IFS 14692 14693fi 14694fi 14695ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14696if test -n "$ac_ct_OTOOL"; then 14697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14698printf "%s\n" "$ac_ct_OTOOL" >&6; } 14699else 14700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14701printf "%s\n" "no" >&6; } 14702fi 14703 14704 if test "x$ac_ct_OTOOL" = x; then 14705 OTOOL=":" 14706 else 14707 case $cross_compiling:$ac_tool_warned in 14708yes:) 14709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14710printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14711ac_tool_warned=yes ;; 14712esac 14713 OTOOL=$ac_ct_OTOOL 14714 fi 14715else 14716 OTOOL="$ac_cv_prog_OTOOL" 14717fi 14718 14719 if test -n "$ac_tool_prefix"; then 14720 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14721set dummy ${ac_tool_prefix}otool64; ac_word=$2 14722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14723printf %s "checking for $ac_word... " >&6; } 14724if test ${ac_cv_prog_OTOOL64+y} 14725then : 14726 printf %s "(cached) " >&6 14727else $as_nop 14728 if test -n "$OTOOL64"; then 14729 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14730else 14731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14732for as_dir in $PATH 14733do 14734 IFS=$as_save_IFS 14735 case $as_dir in #((( 14736 '') as_dir=./ ;; 14737 */) ;; 14738 *) as_dir=$as_dir/ ;; 14739 esac 14740 for ac_exec_ext in '' $ac_executable_extensions; do 14741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14742 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14744 break 2 14745 fi 14746done 14747 done 14748IFS=$as_save_IFS 14749 14750fi 14751fi 14752OTOOL64=$ac_cv_prog_OTOOL64 14753if test -n "$OTOOL64"; then 14754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14755printf "%s\n" "$OTOOL64" >&6; } 14756else 14757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14758printf "%s\n" "no" >&6; } 14759fi 14760 14761 14762fi 14763if test -z "$ac_cv_prog_OTOOL64"; then 14764 ac_ct_OTOOL64=$OTOOL64 14765 # Extract the first word of "otool64", so it can be a program name with args. 14766set dummy otool64; ac_word=$2 14767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14768printf %s "checking for $ac_word... " >&6; } 14769if test ${ac_cv_prog_ac_ct_OTOOL64+y} 14770then : 14771 printf %s "(cached) " >&6 14772else $as_nop 14773 if test -n "$ac_ct_OTOOL64"; then 14774 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14775else 14776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14777for as_dir in $PATH 14778do 14779 IFS=$as_save_IFS 14780 case $as_dir in #((( 14781 '') as_dir=./ ;; 14782 */) ;; 14783 *) as_dir=$as_dir/ ;; 14784 esac 14785 for ac_exec_ext in '' $ac_executable_extensions; do 14786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14787 ac_cv_prog_ac_ct_OTOOL64="otool64" 14788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14789 break 2 14790 fi 14791done 14792 done 14793IFS=$as_save_IFS 14794 14795fi 14796fi 14797ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14798if test -n "$ac_ct_OTOOL64"; then 14799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14800printf "%s\n" "$ac_ct_OTOOL64" >&6; } 14801else 14802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14803printf "%s\n" "no" >&6; } 14804fi 14805 14806 if test "x$ac_ct_OTOOL64" = x; then 14807 OTOOL64=":" 14808 else 14809 case $cross_compiling:$ac_tool_warned in 14810yes:) 14811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14812printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14813ac_tool_warned=yes ;; 14814esac 14815 OTOOL64=$ac_ct_OTOOL64 14816 fi 14817else 14818 OTOOL64="$ac_cv_prog_OTOOL64" 14819fi 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14848printf %s "checking for -single_module linker flag... " >&6; } 14849if test ${lt_cv_apple_cc_single_mod+y} 14850then : 14851 printf %s "(cached) " >&6 14852else $as_nop 14853 lt_cv_apple_cc_single_mod=no 14854 if test -z "$LT_MULTI_MODULE"; then 14855 # By default we will add the -single_module flag. You can override 14856 # by either setting the environment variable LT_MULTI_MODULE 14857 # non-empty at configure time, or by adding -multi_module to the 14858 # link flags. 14859 rm -rf libconftest.dylib* 14860 echo "int foo(void){return 1;}" > conftest.c 14861 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14862-dynamiclib -Wl,-single_module conftest.c" >&5 14863 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14864 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14865 _lt_result=$? 14866 # If there is a non-empty error log, and "single_module" 14867 # appears in it, assume the flag caused a linker warning 14868 if test -s conftest.err && $GREP single_module conftest.err; then 14869 cat conftest.err >&5 14870 # Otherwise, if the output was created with a 0 exit code from 14871 # the compiler, it worked. 14872 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14873 lt_cv_apple_cc_single_mod=yes 14874 else 14875 cat conftest.err >&5 14876 fi 14877 rm -rf libconftest.dylib* 14878 rm -f conftest.* 14879 fi 14880fi 14881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14882printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 14883 14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14885printf %s "checking for -exported_symbols_list linker flag... " >&6; } 14886if test ${lt_cv_ld_exported_symbols_list+y} 14887then : 14888 printf %s "(cached) " >&6 14889else $as_nop 14890 lt_cv_ld_exported_symbols_list=no 14891 save_LDFLAGS=$LDFLAGS 14892 echo "_main" > conftest.sym 14893 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14895/* end confdefs.h. */ 14896 14897int 14898main (void) 14899{ 14900 14901 ; 14902 return 0; 14903} 14904_ACEOF 14905if ac_fn_c_try_link "$LINENO" 14906then : 14907 lt_cv_ld_exported_symbols_list=yes 14908else $as_nop 14909 lt_cv_ld_exported_symbols_list=no 14910fi 14911rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14912 conftest$ac_exeext conftest.$ac_ext 14913 LDFLAGS=$save_LDFLAGS 14914 14915fi 14916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14917printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 14918 14919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14920printf %s "checking for -force_load linker flag... " >&6; } 14921if test ${lt_cv_ld_force_load+y} 14922then : 14923 printf %s "(cached) " >&6 14924else $as_nop 14925 lt_cv_ld_force_load=no 14926 cat > conftest.c << _LT_EOF 14927int forced_loaded() { return 2;} 14928_LT_EOF 14929 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14930 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14931 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 14932 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 14933 echo "$RANLIB libconftest.a" >&5 14934 $RANLIB libconftest.a 2>&5 14935 cat > conftest.c << _LT_EOF 14936int main() { return 0;} 14937_LT_EOF 14938 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14939 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14940 _lt_result=$? 14941 if test -s conftest.err && $GREP force_load conftest.err; then 14942 cat conftest.err >&5 14943 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14944 lt_cv_ld_force_load=yes 14945 else 14946 cat conftest.err >&5 14947 fi 14948 rm -f conftest.err libconftest.a conftest conftest.c 14949 rm -rf conftest.dSYM 14950 14951fi 14952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14953printf "%s\n" "$lt_cv_ld_force_load" >&6; } 14954 case $host_os in 14955 rhapsody* | darwin1.[012]) 14956 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14957 darwin1.*) 14958 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14959 darwin*) 14960 case $MACOSX_DEPLOYMENT_TARGET,$host in 14961 10.[012],*|,*powerpc*-darwin[5-8]*) 14962 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14963 *) 14964 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14965 esac 14966 ;; 14967 esac 14968 if test yes = "$lt_cv_apple_cc_single_mod"; then 14969 _lt_dar_single_mod='$single_module' 14970 fi 14971 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14972 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14973 else 14974 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14975 fi 14976 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14977 _lt_dsymutil='~$DSYMUTIL $lib || :' 14978 else 14979 _lt_dsymutil= 14980 fi 14981 ;; 14982 esac 14983 14984# func_munge_path_list VARIABLE PATH 14985# ----------------------------------- 14986# VARIABLE is name of variable containing _space_ separated list of 14987# directories to be munged by the contents of PATH, which is string 14988# having a format: 14989# "DIR[:DIR]:" 14990# string "DIR[ DIR]" will be prepended to VARIABLE 14991# ":DIR[:DIR]" 14992# string "DIR[ DIR]" will be appended to VARIABLE 14993# "DIRP[:DIRP]::[DIRA:]DIRA" 14994# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14995# "DIRA[ DIRA]" will be appended to VARIABLE 14996# "DIR[:DIR]" 14997# VARIABLE will be replaced by "DIR[ DIR]" 14998func_munge_path_list () 14999{ 15000 case x$2 in 15001 x) 15002 ;; 15003 *:) 15004 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15005 ;; 15006 x:*) 15007 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15008 ;; 15009 *::*) 15010 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15011 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15012 ;; 15013 *) 15014 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15015 ;; 15016 esac 15017} 15018 15019ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15020" 15021if test "x$ac_cv_header_dlfcn_h" = xyes 15022then : 15023 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 15024 15025fi 15026 15027 15028 15029 15030 15031# Set options 15032 15033 15034 15035 enable_dlopen=no 15036 15037 15038 enable_win32_dll=no 15039 15040 15041 # Check whether --enable-shared was given. 15042if test ${enable_shared+y} 15043then : 15044 enableval=$enable_shared; p=${PACKAGE-default} 15045 case $enableval in 15046 yes) enable_shared=yes ;; 15047 no) enable_shared=no ;; 15048 *) 15049 enable_shared=no 15050 # Look at the argument we got. We use all the common list separators. 15051 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15052 for pkg in $enableval; do 15053 IFS=$lt_save_ifs 15054 if test "X$pkg" = "X$p"; then 15055 enable_shared=yes 15056 fi 15057 done 15058 IFS=$lt_save_ifs 15059 ;; 15060 esac 15061else $as_nop 15062 enable_shared=yes 15063fi 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075# Check whether --with-pic was given. 15076if test ${with_pic+y} 15077then : 15078 withval=$with_pic; lt_p=${PACKAGE-default} 15079 case $withval in 15080 yes|no) pic_mode=$withval ;; 15081 *) 15082 pic_mode=default 15083 # Look at the argument we got. We use all the common list separators. 15084 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15085 for lt_pkg in $withval; do 15086 IFS=$lt_save_ifs 15087 if test "X$lt_pkg" = "X$lt_p"; then 15088 pic_mode=yes 15089 fi 15090 done 15091 IFS=$lt_save_ifs 15092 ;; 15093 esac 15094else $as_nop 15095 pic_mode=default 15096fi 15097 15098 15099 15100 15101 15102 15103 15104 15105 # Check whether --enable-fast-install was given. 15106if test ${enable_fast_install+y} 15107then : 15108 enableval=$enable_fast_install; p=${PACKAGE-default} 15109 case $enableval in 15110 yes) enable_fast_install=yes ;; 15111 no) enable_fast_install=no ;; 15112 *) 15113 enable_fast_install=no 15114 # Look at the argument we got. We use all the common list separators. 15115 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15116 for pkg in $enableval; do 15117 IFS=$lt_save_ifs 15118 if test "X$pkg" = "X$p"; then 15119 enable_fast_install=yes 15120 fi 15121 done 15122 IFS=$lt_save_ifs 15123 ;; 15124 esac 15125else $as_nop 15126 enable_fast_install=yes 15127fi 15128 15129 15130 15131 15132 15133 15134 15135 15136 shared_archive_member_spec= 15137case $host,$enable_shared in 15138power*-*-aix[5-9]*,yes) 15139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15140printf %s "checking which variant of shared library versioning to provide... " >&6; } 15141 15142# Check whether --with-aix-soname was given. 15143if test ${with_aix_soname+y} 15144then : 15145 withval=$with_aix_soname; case $withval in 15146 aix|svr4|both) 15147 ;; 15148 *) 15149 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15150 ;; 15151 esac 15152 lt_cv_with_aix_soname=$with_aix_soname 15153else $as_nop 15154 if test ${lt_cv_with_aix_soname+y} 15155then : 15156 printf %s "(cached) " >&6 15157else $as_nop 15158 lt_cv_with_aix_soname=aix 15159fi 15160 15161 with_aix_soname=$lt_cv_with_aix_soname 15162fi 15163 15164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15165printf "%s\n" "$with_aix_soname" >&6; } 15166 if test aix != "$with_aix_soname"; then 15167 # For the AIX way of multilib, we name the shared archive member 15168 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15169 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15170 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15171 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15172 if test 64 = "${OBJECT_MODE-32}"; then 15173 shared_archive_member_spec=shr_64 15174 else 15175 shared_archive_member_spec=shr 15176 fi 15177 fi 15178 ;; 15179*) 15180 with_aix_soname=aix 15181 ;; 15182esac 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193# This can be used to rebuild libtool when needed 15194LIBTOOL_DEPS=$ltmain 15195 15196# Always use our own libtool. 15197LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228test -z "$LN_S" && LN_S="ln -s" 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243if test -n "${ZSH_VERSION+set}"; then 15244 setopt NO_GLOB_SUBST 15245fi 15246 15247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15248printf %s "checking for objdir... " >&6; } 15249if test ${lt_cv_objdir+y} 15250then : 15251 printf %s "(cached) " >&6 15252else $as_nop 15253 rm -f .libs 2>/dev/null 15254mkdir .libs 2>/dev/null 15255if test -d .libs; then 15256 lt_cv_objdir=.libs 15257else 15258 # MS-DOS does not allow filenames that begin with a dot. 15259 lt_cv_objdir=_libs 15260fi 15261rmdir .libs 2>/dev/null 15262fi 15263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15264printf "%s\n" "$lt_cv_objdir" >&6; } 15265objdir=$lt_cv_objdir 15266 15267 15268 15269 15270 15271printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15272 15273 15274 15275 15276case $host_os in 15277aix3*) 15278 # AIX sometimes has problems with the GCC collect2 program. For some 15279 # reason, if we set the COLLECT_NAMES environment variable, the problems 15280 # vanish in a puff of smoke. 15281 if test set != "${COLLECT_NAMES+set}"; then 15282 COLLECT_NAMES= 15283 export COLLECT_NAMES 15284 fi 15285 ;; 15286esac 15287 15288# Global variables: 15289ofile=libtool 15290can_build_shared=yes 15291 15292# All known linkers require a '.a' archive for static linking (except MSVC and 15293# ICC, which need '.lib'). 15294libext=a 15295 15296with_gnu_ld=$lt_cv_prog_gnu_ld 15297 15298old_CC=$CC 15299old_CFLAGS=$CFLAGS 15300 15301# Set sane defaults for various variables 15302test -z "$CC" && CC=cc 15303test -z "$LTCC" && LTCC=$CC 15304test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15305test -z "$LD" && LD=ld 15306test -z "$ac_objext" && ac_objext=o 15307 15308func_cc_basename $compiler 15309cc_basename=$func_cc_basename_result 15310 15311 15312# Only perform the check for file, if the check method requires it 15313test -z "$MAGIC_CMD" && MAGIC_CMD=file 15314case $deplibs_check_method in 15315file_magic*) 15316 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15318printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15319if test ${lt_cv_path_MAGIC_CMD+y} 15320then : 15321 printf %s "(cached) " >&6 15322else $as_nop 15323 case $MAGIC_CMD in 15324[\\/*] | ?:[\\/]*) 15325 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15326 ;; 15327*) 15328 lt_save_MAGIC_CMD=$MAGIC_CMD 15329 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15330 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15331 for ac_dir in $ac_dummy; do 15332 IFS=$lt_save_ifs 15333 test -z "$ac_dir" && ac_dir=. 15334 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15335 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15336 if test -n "$file_magic_test_file"; then 15337 case $deplibs_check_method in 15338 "file_magic "*) 15339 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15340 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15341 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15342 $EGREP "$file_magic_regex" > /dev/null; then 15343 : 15344 else 15345 cat <<_LT_EOF 1>&2 15346 15347*** Warning: the command libtool uses to detect shared libraries, 15348*** $file_magic_cmd, produces output that libtool cannot recognize. 15349*** The result is that libtool may fail to recognize shared libraries 15350*** as such. This will affect the creation of libtool libraries that 15351*** depend on shared libraries, but programs linked with such libtool 15352*** libraries will work regardless of this problem. Nevertheless, you 15353*** may want to report the problem to your system manager and/or to 15354*** bug-libtool@gnu.org 15355 15356_LT_EOF 15357 fi ;; 15358 esac 15359 fi 15360 break 15361 fi 15362 done 15363 IFS=$lt_save_ifs 15364 MAGIC_CMD=$lt_save_MAGIC_CMD 15365 ;; 15366esac 15367fi 15368 15369MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15370if test -n "$MAGIC_CMD"; then 15371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15372printf "%s\n" "$MAGIC_CMD" >&6; } 15373else 15374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15375printf "%s\n" "no" >&6; } 15376fi 15377 15378 15379 15380 15381 15382if test -z "$lt_cv_path_MAGIC_CMD"; then 15383 if test -n "$ac_tool_prefix"; then 15384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15385printf %s "checking for file... " >&6; } 15386if test ${lt_cv_path_MAGIC_CMD+y} 15387then : 15388 printf %s "(cached) " >&6 15389else $as_nop 15390 case $MAGIC_CMD in 15391[\\/*] | ?:[\\/]*) 15392 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15393 ;; 15394*) 15395 lt_save_MAGIC_CMD=$MAGIC_CMD 15396 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15397 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15398 for ac_dir in $ac_dummy; do 15399 IFS=$lt_save_ifs 15400 test -z "$ac_dir" && ac_dir=. 15401 if test -f "$ac_dir/file"; then 15402 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15403 if test -n "$file_magic_test_file"; then 15404 case $deplibs_check_method in 15405 "file_magic "*) 15406 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15407 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15408 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15409 $EGREP "$file_magic_regex" > /dev/null; then 15410 : 15411 else 15412 cat <<_LT_EOF 1>&2 15413 15414*** Warning: the command libtool uses to detect shared libraries, 15415*** $file_magic_cmd, produces output that libtool cannot recognize. 15416*** The result is that libtool may fail to recognize shared libraries 15417*** as such. This will affect the creation of libtool libraries that 15418*** depend on shared libraries, but programs linked with such libtool 15419*** libraries will work regardless of this problem. Nevertheless, you 15420*** may want to report the problem to your system manager and/or to 15421*** bug-libtool@gnu.org 15422 15423_LT_EOF 15424 fi ;; 15425 esac 15426 fi 15427 break 15428 fi 15429 done 15430 IFS=$lt_save_ifs 15431 MAGIC_CMD=$lt_save_MAGIC_CMD 15432 ;; 15433esac 15434fi 15435 15436MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15437if test -n "$MAGIC_CMD"; then 15438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15439printf "%s\n" "$MAGIC_CMD" >&6; } 15440else 15441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15442printf "%s\n" "no" >&6; } 15443fi 15444 15445 15446 else 15447 MAGIC_CMD=: 15448 fi 15449fi 15450 15451 fi 15452 ;; 15453esac 15454 15455# Use C for the default configuration in the libtool script 15456 15457lt_save_CC=$CC 15458ac_ext=c 15459ac_cpp='$CPP $CPPFLAGS' 15460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15462ac_compiler_gnu=$ac_cv_c_compiler_gnu 15463 15464 15465# Source file extension for C test sources. 15466ac_ext=c 15467 15468# Object file extension for compiled C test sources. 15469objext=o 15470objext=$objext 15471 15472# Code to be used in simple compile tests 15473lt_simple_compile_test_code="int some_variable = 0;" 15474 15475# Code to be used in simple link tests 15476lt_simple_link_test_code='int main(){return(0);}' 15477 15478 15479 15480 15481 15482 15483 15484# If no C compiler was specified, use CC. 15485LTCC=${LTCC-"$CC"} 15486 15487# If no C compiler flags were specified, use CFLAGS. 15488LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15489 15490# Allow CC to be a program name with arguments. 15491compiler=$CC 15492 15493# Save the default compiler, since it gets overwritten when the other 15494# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15495compiler_DEFAULT=$CC 15496 15497# save warnings/boilerplate of simple test code 15498ac_outfile=conftest.$ac_objext 15499echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15500eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15501_lt_compiler_boilerplate=`cat conftest.err` 15502$RM conftest* 15503 15504ac_outfile=conftest.$ac_objext 15505echo "$lt_simple_link_test_code" >conftest.$ac_ext 15506eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15507_lt_linker_boilerplate=`cat conftest.err` 15508$RM -r conftest* 15509 15510 15511if test -n "$compiler"; then 15512 15513lt_prog_compiler_no_builtin_flag= 15514 15515if test yes = "$GCC"; then 15516 case $cc_basename in 15517 nvcc*) 15518 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15519 *) 15520 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15521 esac 15522 15523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15524printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15525if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15526then : 15527 printf %s "(cached) " >&6 15528else $as_nop 15529 lt_cv_prog_compiler_rtti_exceptions=no 15530 ac_outfile=conftest.$ac_objext 15531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15532 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15533 # Insert the option either (1) after the last *FLAGS variable, or 15534 # (2) before a word containing "conftest.", or (3) at the end. 15535 # Note that $ac_compile itself does not contain backslashes and begins 15536 # with a dollar sign (not a hyphen), so the echo should work correctly. 15537 # The option is referenced via a variable to avoid confusing sed. 15538 lt_compile=`echo "$ac_compile" | $SED \ 15539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15541 -e 's:$: $lt_compiler_flag:'` 15542 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15543 (eval "$lt_compile" 2>conftest.err) 15544 ac_status=$? 15545 cat conftest.err >&5 15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15547 if (exit $ac_status) && test -s "$ac_outfile"; then 15548 # The compiler can only warn and ignore the option if not recognized 15549 # So say no if there are warnings other than the usual output. 15550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15552 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15553 lt_cv_prog_compiler_rtti_exceptions=yes 15554 fi 15555 fi 15556 $RM conftest* 15557 15558fi 15559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15560printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15561 15562if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15563 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15564else 15565 : 15566fi 15567 15568fi 15569 15570 15571 15572 15573 15574 15575 lt_prog_compiler_wl= 15576lt_prog_compiler_pic= 15577lt_prog_compiler_static= 15578 15579 15580 if test yes = "$GCC"; then 15581 lt_prog_compiler_wl='-Wl,' 15582 lt_prog_compiler_static='-static' 15583 15584 case $host_os in 15585 aix*) 15586 # All AIX code is PIC. 15587 if test ia64 = "$host_cpu"; then 15588 # AIX 5 now supports IA64 processor 15589 lt_prog_compiler_static='-Bstatic' 15590 fi 15591 lt_prog_compiler_pic='-fPIC' 15592 ;; 15593 15594 amigaos*) 15595 case $host_cpu in 15596 powerpc) 15597 # see comment about AmigaOS4 .so support 15598 lt_prog_compiler_pic='-fPIC' 15599 ;; 15600 m68k) 15601 # FIXME: we need at least 68020 code to build shared libraries, but 15602 # adding the '-m68020' flag to GCC prevents building anything better, 15603 # like '-m68040'. 15604 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15605 ;; 15606 esac 15607 ;; 15608 15609 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15610 # PIC is the default for these OSes. 15611 ;; 15612 15613 mingw* | cygwin* | pw32* | os2* | cegcc*) 15614 # This hack is so that the source file can tell whether it is being 15615 # built for inclusion in a dll (and should export symbols for example). 15616 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15617 # (--disable-auto-import) libraries 15618 lt_prog_compiler_pic='-DDLL_EXPORT' 15619 case $host_os in 15620 os2*) 15621 lt_prog_compiler_static='$wl-static' 15622 ;; 15623 esac 15624 ;; 15625 15626 darwin* | rhapsody*) 15627 # PIC is the default on this platform 15628 # Common symbols not allowed in MH_DYLIB files 15629 lt_prog_compiler_pic='-fno-common' 15630 ;; 15631 15632 haiku*) 15633 # PIC is the default for Haiku. 15634 # The "-static" flag exists, but is broken. 15635 lt_prog_compiler_static= 15636 ;; 15637 15638 hpux*) 15639 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15640 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15641 # sets the default TLS model and affects inlining. 15642 case $host_cpu in 15643 hppa*64*) 15644 # +Z the default 15645 ;; 15646 *) 15647 lt_prog_compiler_pic='-fPIC' 15648 ;; 15649 esac 15650 ;; 15651 15652 interix[3-9]*) 15653 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15654 # Instead, we relocate shared libraries at runtime. 15655 ;; 15656 15657 msdosdjgpp*) 15658 # Just because we use GCC doesn't mean we suddenly get shared libraries 15659 # on systems that don't support them. 15660 lt_prog_compiler_can_build_shared=no 15661 enable_shared=no 15662 ;; 15663 15664 *nto* | *qnx*) 15665 # QNX uses GNU C++, but need to define -shared option too, otherwise 15666 # it will coredump. 15667 lt_prog_compiler_pic='-fPIC -shared' 15668 ;; 15669 15670 sysv4*MP*) 15671 if test -d /usr/nec; then 15672 lt_prog_compiler_pic=-Kconform_pic 15673 fi 15674 ;; 15675 15676 *) 15677 lt_prog_compiler_pic='-fPIC' 15678 ;; 15679 esac 15680 15681 case $cc_basename in 15682 nvcc*) # Cuda Compiler Driver 2.2 15683 lt_prog_compiler_wl='-Xlinker ' 15684 if test -n "$lt_prog_compiler_pic"; then 15685 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15686 fi 15687 ;; 15688 esac 15689 else 15690 # PORTME Check for flag to pass linker flags through the system compiler. 15691 case $host_os in 15692 aix*) 15693 lt_prog_compiler_wl='-Wl,' 15694 if test ia64 = "$host_cpu"; then 15695 # AIX 5 now supports IA64 processor 15696 lt_prog_compiler_static='-Bstatic' 15697 else 15698 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15699 fi 15700 ;; 15701 15702 darwin* | rhapsody*) 15703 # PIC is the default on this platform 15704 # Common symbols not allowed in MH_DYLIB files 15705 lt_prog_compiler_pic='-fno-common' 15706 case $cc_basename in 15707 nagfor*) 15708 # NAG Fortran compiler 15709 lt_prog_compiler_wl='-Wl,-Wl,,' 15710 lt_prog_compiler_pic='-PIC' 15711 lt_prog_compiler_static='-Bstatic' 15712 ;; 15713 esac 15714 ;; 15715 15716 mingw* | cygwin* | pw32* | os2* | cegcc*) 15717 # This hack is so that the source file can tell whether it is being 15718 # built for inclusion in a dll (and should export symbols for example). 15719 lt_prog_compiler_pic='-DDLL_EXPORT' 15720 case $host_os in 15721 os2*) 15722 lt_prog_compiler_static='$wl-static' 15723 ;; 15724 esac 15725 ;; 15726 15727 hpux9* | hpux10* | hpux11*) 15728 lt_prog_compiler_wl='-Wl,' 15729 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15730 # not for PA HP-UX. 15731 case $host_cpu in 15732 hppa*64*|ia64*) 15733 # +Z the default 15734 ;; 15735 *) 15736 lt_prog_compiler_pic='+Z' 15737 ;; 15738 esac 15739 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15740 lt_prog_compiler_static='$wl-a ${wl}archive' 15741 ;; 15742 15743 irix5* | irix6* | nonstopux*) 15744 lt_prog_compiler_wl='-Wl,' 15745 # PIC (with -KPIC) is the default. 15746 lt_prog_compiler_static='-non_shared' 15747 ;; 15748 15749 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15750 case $cc_basename in 15751 # old Intel for x86_64, which still supported -KPIC. 15752 ecc*) 15753 lt_prog_compiler_wl='-Wl,' 15754 lt_prog_compiler_pic='-KPIC' 15755 lt_prog_compiler_static='-static' 15756 ;; 15757 # icc used to be incompatible with GCC. 15758 # ICC 10 doesn't accept -KPIC any more. 15759 icc* | ifort*) 15760 lt_prog_compiler_wl='-Wl,' 15761 lt_prog_compiler_pic='-fPIC' 15762 lt_prog_compiler_static='-static' 15763 ;; 15764 # Lahey Fortran 8.1. 15765 lf95*) 15766 lt_prog_compiler_wl='-Wl,' 15767 lt_prog_compiler_pic='--shared' 15768 lt_prog_compiler_static='--static' 15769 ;; 15770 nagfor*) 15771 # NAG Fortran compiler 15772 lt_prog_compiler_wl='-Wl,-Wl,,' 15773 lt_prog_compiler_pic='-PIC' 15774 lt_prog_compiler_static='-Bstatic' 15775 ;; 15776 tcc*) 15777 # Fabrice Bellard et al's Tiny C Compiler 15778 lt_prog_compiler_wl='-Wl,' 15779 lt_prog_compiler_pic='-fPIC' 15780 lt_prog_compiler_static='-static' 15781 ;; 15782 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15783 # Portland Group compilers (*not* the Pentium gcc compiler, 15784 # which looks to be a dead project) 15785 lt_prog_compiler_wl='-Wl,' 15786 lt_prog_compiler_pic='-fpic' 15787 lt_prog_compiler_static='-Bstatic' 15788 ;; 15789 ccc*) 15790 lt_prog_compiler_wl='-Wl,' 15791 # All Alpha code is PIC. 15792 lt_prog_compiler_static='-non_shared' 15793 ;; 15794 xl* | bgxl* | bgf* | mpixl*) 15795 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15796 lt_prog_compiler_wl='-Wl,' 15797 lt_prog_compiler_pic='-qpic' 15798 lt_prog_compiler_static='-qstaticlink' 15799 ;; 15800 *) 15801 case `$CC -V 2>&1 | $SED 5q` in 15802 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15803 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15804 lt_prog_compiler_pic='-KPIC' 15805 lt_prog_compiler_static='-Bstatic' 15806 lt_prog_compiler_wl='' 15807 ;; 15808 *Sun\ F* | *Sun*Fortran*) 15809 lt_prog_compiler_pic='-KPIC' 15810 lt_prog_compiler_static='-Bstatic' 15811 lt_prog_compiler_wl='-Qoption ld ' 15812 ;; 15813 *Sun\ C*) 15814 # Sun C 5.9 15815 lt_prog_compiler_pic='-KPIC' 15816 lt_prog_compiler_static='-Bstatic' 15817 lt_prog_compiler_wl='-Wl,' 15818 ;; 15819 *Intel*\ [CF]*Compiler*) 15820 lt_prog_compiler_wl='-Wl,' 15821 lt_prog_compiler_pic='-fPIC' 15822 lt_prog_compiler_static='-static' 15823 ;; 15824 *Portland\ Group*) 15825 lt_prog_compiler_wl='-Wl,' 15826 lt_prog_compiler_pic='-fpic' 15827 lt_prog_compiler_static='-Bstatic' 15828 ;; 15829 esac 15830 ;; 15831 esac 15832 ;; 15833 15834 newsos6) 15835 lt_prog_compiler_pic='-KPIC' 15836 lt_prog_compiler_static='-Bstatic' 15837 ;; 15838 15839 *nto* | *qnx*) 15840 # QNX uses GNU C++, but need to define -shared option too, otherwise 15841 # it will coredump. 15842 lt_prog_compiler_pic='-fPIC -shared' 15843 ;; 15844 15845 osf3* | osf4* | osf5*) 15846 lt_prog_compiler_wl='-Wl,' 15847 # All OSF/1 code is PIC. 15848 lt_prog_compiler_static='-non_shared' 15849 ;; 15850 15851 rdos*) 15852 lt_prog_compiler_static='-non_shared' 15853 ;; 15854 15855 solaris*) 15856 lt_prog_compiler_pic='-KPIC' 15857 lt_prog_compiler_static='-Bstatic' 15858 case $cc_basename in 15859 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15860 lt_prog_compiler_wl='-Qoption ld ';; 15861 *) 15862 lt_prog_compiler_wl='-Wl,';; 15863 esac 15864 ;; 15865 15866 sunos4*) 15867 lt_prog_compiler_wl='-Qoption ld ' 15868 lt_prog_compiler_pic='-PIC' 15869 lt_prog_compiler_static='-Bstatic' 15870 ;; 15871 15872 sysv4 | sysv4.2uw2* | sysv4.3*) 15873 lt_prog_compiler_wl='-Wl,' 15874 lt_prog_compiler_pic='-KPIC' 15875 lt_prog_compiler_static='-Bstatic' 15876 ;; 15877 15878 sysv4*MP*) 15879 if test -d /usr/nec; then 15880 lt_prog_compiler_pic='-Kconform_pic' 15881 lt_prog_compiler_static='-Bstatic' 15882 fi 15883 ;; 15884 15885 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15886 lt_prog_compiler_wl='-Wl,' 15887 lt_prog_compiler_pic='-KPIC' 15888 lt_prog_compiler_static='-Bstatic' 15889 ;; 15890 15891 unicos*) 15892 lt_prog_compiler_wl='-Wl,' 15893 lt_prog_compiler_can_build_shared=no 15894 ;; 15895 15896 uts4*) 15897 lt_prog_compiler_pic='-pic' 15898 lt_prog_compiler_static='-Bstatic' 15899 ;; 15900 15901 *) 15902 lt_prog_compiler_can_build_shared=no 15903 ;; 15904 esac 15905 fi 15906 15907case $host_os in 15908 # For platforms that do not support PIC, -DPIC is meaningless: 15909 *djgpp*) 15910 lt_prog_compiler_pic= 15911 ;; 15912 *) 15913 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15914 ;; 15915esac 15916 15917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15918printf %s "checking for $compiler option to produce PIC... " >&6; } 15919if test ${lt_cv_prog_compiler_pic+y} 15920then : 15921 printf %s "(cached) " >&6 15922else $as_nop 15923 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15924fi 15925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15926printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 15927lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15928 15929# 15930# Check to make sure the PIC flag actually works. 15931# 15932if test -n "$lt_prog_compiler_pic"; then 15933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15934printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15935if test ${lt_cv_prog_compiler_pic_works+y} 15936then : 15937 printf %s "(cached) " >&6 15938else $as_nop 15939 lt_cv_prog_compiler_pic_works=no 15940 ac_outfile=conftest.$ac_objext 15941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15942 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15943 # Insert the option either (1) after the last *FLAGS variable, or 15944 # (2) before a word containing "conftest.", or (3) at the end. 15945 # Note that $ac_compile itself does not contain backslashes and begins 15946 # with a dollar sign (not a hyphen), so the echo should work correctly. 15947 # The option is referenced via a variable to avoid confusing sed. 15948 lt_compile=`echo "$ac_compile" | $SED \ 15949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15951 -e 's:$: $lt_compiler_flag:'` 15952 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15953 (eval "$lt_compile" 2>conftest.err) 15954 ac_status=$? 15955 cat conftest.err >&5 15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15957 if (exit $ac_status) && test -s "$ac_outfile"; then 15958 # The compiler can only warn and ignore the option if not recognized 15959 # So say no if there are warnings other than the usual output. 15960 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15962 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15963 lt_cv_prog_compiler_pic_works=yes 15964 fi 15965 fi 15966 $RM conftest* 15967 15968fi 15969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15970printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 15971 15972if test yes = "$lt_cv_prog_compiler_pic_works"; then 15973 case $lt_prog_compiler_pic in 15974 "" | " "*) ;; 15975 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15976 esac 15977else 15978 lt_prog_compiler_pic= 15979 lt_prog_compiler_can_build_shared=no 15980fi 15981 15982fi 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994# 15995# Check to make sure the static flag actually works. 15996# 15997wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15999printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16000if test ${lt_cv_prog_compiler_static_works+y} 16001then : 16002 printf %s "(cached) " >&6 16003else $as_nop 16004 lt_cv_prog_compiler_static_works=no 16005 save_LDFLAGS=$LDFLAGS 16006 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16007 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16008 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16009 # The linker can only warn and ignore the option if not recognized 16010 # So say no if there are warnings 16011 if test -s conftest.err; then 16012 # Append any errors to the config.log. 16013 cat conftest.err 1>&5 16014 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16016 if diff conftest.exp conftest.er2 >/dev/null; then 16017 lt_cv_prog_compiler_static_works=yes 16018 fi 16019 else 16020 lt_cv_prog_compiler_static_works=yes 16021 fi 16022 fi 16023 $RM -r conftest* 16024 LDFLAGS=$save_LDFLAGS 16025 16026fi 16027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16028printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 16029 16030if test yes = "$lt_cv_prog_compiler_static_works"; then 16031 : 16032else 16033 lt_prog_compiler_static= 16034fi 16035 16036 16037 16038 16039 16040 16041 16042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16043printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16044if test ${lt_cv_prog_compiler_c_o+y} 16045then : 16046 printf %s "(cached) " >&6 16047else $as_nop 16048 lt_cv_prog_compiler_c_o=no 16049 $RM -r conftest 2>/dev/null 16050 mkdir conftest 16051 cd conftest 16052 mkdir out 16053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16054 16055 lt_compiler_flag="-o out/conftest2.$ac_objext" 16056 # Insert the option either (1) after the last *FLAGS variable, or 16057 # (2) before a word containing "conftest.", or (3) at the end. 16058 # Note that $ac_compile itself does not contain backslashes and begins 16059 # with a dollar sign (not a hyphen), so the echo should work correctly. 16060 lt_compile=`echo "$ac_compile" | $SED \ 16061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16063 -e 's:$: $lt_compiler_flag:'` 16064 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16065 (eval "$lt_compile" 2>out/conftest.err) 16066 ac_status=$? 16067 cat out/conftest.err >&5 16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16069 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16070 then 16071 # The compiler can only warn and ignore the option if not recognized 16072 # So say no if there are warnings 16073 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16074 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16075 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16076 lt_cv_prog_compiler_c_o=yes 16077 fi 16078 fi 16079 chmod u+w . 2>&5 16080 $RM conftest* 16081 # SGI C++ compiler will create directory out/ii_files/ for 16082 # template instantiation 16083 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16084 $RM out/* && rmdir out 16085 cd .. 16086 $RM -r conftest 16087 $RM conftest* 16088 16089fi 16090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16091printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16092 16093 16094 16095 16096 16097 16098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16099printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16100if test ${lt_cv_prog_compiler_c_o+y} 16101then : 16102 printf %s "(cached) " >&6 16103else $as_nop 16104 lt_cv_prog_compiler_c_o=no 16105 $RM -r conftest 2>/dev/null 16106 mkdir conftest 16107 cd conftest 16108 mkdir out 16109 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16110 16111 lt_compiler_flag="-o out/conftest2.$ac_objext" 16112 # Insert the option either (1) after the last *FLAGS variable, or 16113 # (2) before a word containing "conftest.", or (3) at the end. 16114 # Note that $ac_compile itself does not contain backslashes and begins 16115 # with a dollar sign (not a hyphen), so the echo should work correctly. 16116 lt_compile=`echo "$ac_compile" | $SED \ 16117 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16119 -e 's:$: $lt_compiler_flag:'` 16120 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16121 (eval "$lt_compile" 2>out/conftest.err) 16122 ac_status=$? 16123 cat out/conftest.err >&5 16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16125 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16126 then 16127 # The compiler can only warn and ignore the option if not recognized 16128 # So say no if there are warnings 16129 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16130 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16131 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16132 lt_cv_prog_compiler_c_o=yes 16133 fi 16134 fi 16135 chmod u+w . 2>&5 16136 $RM conftest* 16137 # SGI C++ compiler will create directory out/ii_files/ for 16138 # template instantiation 16139 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16140 $RM out/* && rmdir out 16141 cd .. 16142 $RM -r conftest 16143 $RM conftest* 16144 16145fi 16146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16147printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16148 16149 16150 16151 16152hard_links=nottested 16153if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16154 # do not overwrite the value of need_locks provided by the user 16155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16156printf %s "checking if we can lock with hard links... " >&6; } 16157 hard_links=yes 16158 $RM conftest* 16159 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16160 touch conftest.a 16161 ln conftest.a conftest.b 2>&5 || hard_links=no 16162 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16164printf "%s\n" "$hard_links" >&6; } 16165 if test no = "$hard_links"; then 16166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16167printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16168 need_locks=warn 16169 fi 16170else 16171 need_locks=no 16172fi 16173 16174 16175 16176 16177 16178 16179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16180printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16181 16182 runpath_var= 16183 allow_undefined_flag= 16184 always_export_symbols=no 16185 archive_cmds= 16186 archive_expsym_cmds= 16187 compiler_needs_object=no 16188 enable_shared_with_static_runtimes=no 16189 export_dynamic_flag_spec= 16190 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16191 hardcode_automatic=no 16192 hardcode_direct=no 16193 hardcode_direct_absolute=no 16194 hardcode_libdir_flag_spec= 16195 hardcode_libdir_separator= 16196 hardcode_minus_L=no 16197 hardcode_shlibpath_var=unsupported 16198 inherit_rpath=no 16199 link_all_deplibs=unknown 16200 module_cmds= 16201 module_expsym_cmds= 16202 old_archive_from_new_cmds= 16203 old_archive_from_expsyms_cmds= 16204 thread_safe_flag_spec= 16205 whole_archive_flag_spec= 16206 # include_expsyms should be a list of space-separated symbols to be *always* 16207 # included in the symbol list 16208 include_expsyms= 16209 # exclude_expsyms can be an extended regexp of symbols to exclude 16210 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16211 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16212 # as well as any symbol that contains 'd'. 16213 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16214 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16215 # platforms (ab)use it in PIC code, but their linkers get confused if 16216 # the symbol is explicitly referenced. Since portable code cannot 16217 # rely on this symbol name, it's probably fine to never include it in 16218 # preloaded symbol tables. 16219 # Exclude shared library initialization/finalization symbols. 16220 extract_expsyms_cmds= 16221 16222 case $host_os in 16223 cygwin* | mingw* | pw32* | cegcc*) 16224 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16225 # When not using gcc, we currently assume that we are using 16226 # Microsoft Visual C++ or Intel C++ Compiler. 16227 if test yes != "$GCC"; then 16228 with_gnu_ld=no 16229 fi 16230 ;; 16231 interix*) 16232 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16233 with_gnu_ld=yes 16234 ;; 16235 openbsd* | bitrig*) 16236 with_gnu_ld=no 16237 ;; 16238 esac 16239 16240 ld_shlibs=yes 16241 16242 # On some targets, GNU ld is compatible enough with the native linker 16243 # that we're better off using the native interface for both. 16244 lt_use_gnu_ld_interface=no 16245 if test yes = "$with_gnu_ld"; then 16246 case $host_os in 16247 aix*) 16248 # The AIX port of GNU ld has always aspired to compatibility 16249 # with the native linker. However, as the warning in the GNU ld 16250 # block says, versions before 2.19.5* couldn't really create working 16251 # shared libraries, regardless of the interface used. 16252 case `$LD -v 2>&1` in 16253 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16254 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16255 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16256 *) 16257 lt_use_gnu_ld_interface=yes 16258 ;; 16259 esac 16260 ;; 16261 *) 16262 lt_use_gnu_ld_interface=yes 16263 ;; 16264 esac 16265 fi 16266 16267 if test yes = "$lt_use_gnu_ld_interface"; then 16268 # If archive_cmds runs LD, not CC, wlarc should be empty 16269 wlarc='$wl' 16270 16271 # Set some defaults for GNU ld with shared library support. These 16272 # are reset later if shared libraries are not supported. Putting them 16273 # here allows them to be overridden if necessary. 16274 runpath_var=LD_RUN_PATH 16275 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16276 export_dynamic_flag_spec='$wl--export-dynamic' 16277 # ancient GNU ld didn't support --whole-archive et. al. 16278 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16279 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16280 else 16281 whole_archive_flag_spec= 16282 fi 16283 supports_anon_versioning=no 16284 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16285 *GNU\ gold*) supports_anon_versioning=yes ;; 16286 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16287 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16288 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16289 *\ 2.11.*) ;; # other 2.11 versions 16290 *) supports_anon_versioning=yes ;; 16291 esac 16292 16293 # See if GNU ld supports shared libraries. 16294 case $host_os in 16295 aix[3-9]*) 16296 # On AIX/PPC, the GNU linker is very broken 16297 if test ia64 != "$host_cpu"; then 16298 ld_shlibs=no 16299 cat <<_LT_EOF 1>&2 16300 16301*** Warning: the GNU linker, at least up to release 2.19, is reported 16302*** to be unable to reliably create shared libraries on AIX. 16303*** Therefore, libtool is disabling shared libraries support. If you 16304*** really care for shared libraries, you may want to install binutils 16305*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16306*** You will then need to restart the configuration process. 16307 16308_LT_EOF 16309 fi 16310 ;; 16311 16312 amigaos*) 16313 case $host_cpu in 16314 powerpc) 16315 # see comment about AmigaOS4 .so support 16316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16317 archive_expsym_cmds='' 16318 ;; 16319 m68k) 16320 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)' 16321 hardcode_libdir_flag_spec='-L$libdir' 16322 hardcode_minus_L=yes 16323 ;; 16324 esac 16325 ;; 16326 16327 beos*) 16328 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16329 allow_undefined_flag=unsupported 16330 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16331 # support --undefined. This deserves some investigation. FIXME 16332 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16333 else 16334 ld_shlibs=no 16335 fi 16336 ;; 16337 16338 cygwin* | mingw* | pw32* | cegcc*) 16339 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16340 # as there is no search path for DLLs. 16341 hardcode_libdir_flag_spec='-L$libdir' 16342 export_dynamic_flag_spec='$wl--export-all-symbols' 16343 allow_undefined_flag=unsupported 16344 always_export_symbols=no 16345 enable_shared_with_static_runtimes=yes 16346 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' 16347 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16348 16349 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16351 # If the export-symbols file already is a .def file, use it as 16352 # is; otherwise, prepend EXPORTS... 16353 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16354 cp $export_symbols $output_objdir/$soname.def; 16355 else 16356 echo EXPORTS > $output_objdir/$soname.def; 16357 cat $export_symbols >> $output_objdir/$soname.def; 16358 fi~ 16359 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16360 else 16361 ld_shlibs=no 16362 fi 16363 ;; 16364 16365 haiku*) 16366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16367 link_all_deplibs=yes 16368 ;; 16369 16370 os2*) 16371 hardcode_libdir_flag_spec='-L$libdir' 16372 hardcode_minus_L=yes 16373 allow_undefined_flag=unsupported 16374 shrext_cmds=.dll 16375 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16376 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16377 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16378 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16379 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16380 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16381 emximp -o $lib $output_objdir/$libname.def' 16382 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16383 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16384 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16385 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16386 prefix_cmds="$SED"~ 16387 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16388 prefix_cmds="$prefix_cmds -e 1d"; 16389 fi~ 16390 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16391 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16392 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16393 emximp -o $lib $output_objdir/$libname.def' 16394 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16395 enable_shared_with_static_runtimes=yes 16396 file_list_spec='@' 16397 ;; 16398 16399 interix[3-9]*) 16400 hardcode_direct=no 16401 hardcode_shlibpath_var=no 16402 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16403 export_dynamic_flag_spec='$wl-E' 16404 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16405 # Instead, shared libraries are loaded at an image base (0x10000000 by 16406 # default) and relocated if they conflict, which is a slow very memory 16407 # consuming and fragmenting process. To avoid this, we pick a random, 16408 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16409 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16410 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16411 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' 16412 ;; 16413 16414 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16415 tmp_diet=no 16416 if test linux-dietlibc = "$host_os"; then 16417 case $cc_basename in 16418 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16419 esac 16420 fi 16421 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16422 && test no = "$tmp_diet" 16423 then 16424 tmp_addflag=' $pic_flag' 16425 tmp_sharedflag='-shared' 16426 case $cc_basename,$host_cpu in 16427 pgcc*) # Portland Group C compiler 16428 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' 16429 tmp_addflag=' $pic_flag' 16430 ;; 16431 pgf77* | pgf90* | pgf95* | pgfortran*) 16432 # Portland Group f77 and f90 compilers 16433 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' 16434 tmp_addflag=' $pic_flag -Mnomain' ;; 16435 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16436 tmp_addflag=' -i_dynamic' ;; 16437 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16438 tmp_addflag=' -i_dynamic -nofor_main' ;; 16439 ifc* | ifort*) # Intel Fortran compiler 16440 tmp_addflag=' -nofor_main' ;; 16441 lf95*) # Lahey Fortran 8.1 16442 whole_archive_flag_spec= 16443 tmp_sharedflag='--shared' ;; 16444 nagfor*) # NAGFOR 5.3 16445 tmp_sharedflag='-Wl,-shared' ;; 16446 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16447 tmp_sharedflag='-qmkshrobj' 16448 tmp_addflag= ;; 16449 nvcc*) # Cuda Compiler Driver 2.2 16450 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' 16451 compiler_needs_object=yes 16452 ;; 16453 esac 16454 case `$CC -V 2>&1 | $SED 5q` in 16455 *Sun\ C*) # Sun C 5.9 16456 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' 16457 compiler_needs_object=yes 16458 tmp_sharedflag='-G' ;; 16459 *Sun\ F*) # Sun Fortran 8.3 16460 tmp_sharedflag='-G' ;; 16461 esac 16462 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16463 16464 if test yes = "$supports_anon_versioning"; then 16465 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16466 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16467 echo "local: *; };" >> $output_objdir/$libname.ver~ 16468 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16469 fi 16470 16471 case $cc_basename in 16472 tcc*) 16473 export_dynamic_flag_spec='-rdynamic' 16474 ;; 16475 xlf* | bgf* | bgxlf* | mpixlf*) 16476 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16477 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16478 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16479 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16480 if test yes = "$supports_anon_versioning"; then 16481 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16482 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16483 echo "local: *; };" >> $output_objdir/$libname.ver~ 16484 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16485 fi 16486 ;; 16487 esac 16488 else 16489 ld_shlibs=no 16490 fi 16491 ;; 16492 16493 netbsd*) 16494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16495 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16496 wlarc= 16497 else 16498 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16499 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16500 fi 16501 ;; 16502 16503 solaris*) 16504 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16505 ld_shlibs=no 16506 cat <<_LT_EOF 1>&2 16507 16508*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16509*** create shared libraries on Solaris systems. Therefore, libtool 16510*** is disabling shared libraries support. We urge you to upgrade GNU 16511*** binutils to release 2.9.1 or newer. Another option is to modify 16512*** your PATH or compiler configuration so that the native linker is 16513*** used, and then restart. 16514 16515_LT_EOF 16516 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16517 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16518 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16519 else 16520 ld_shlibs=no 16521 fi 16522 ;; 16523 16524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16525 case `$LD -v 2>&1` in 16526 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16527 ld_shlibs=no 16528 cat <<_LT_EOF 1>&2 16529 16530*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16531*** reliably create shared libraries on SCO systems. Therefore, libtool 16532*** is disabling shared libraries support. We urge you to upgrade GNU 16533*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16534*** your PATH or compiler configuration so that the native linker is 16535*** used, and then restart. 16536 16537_LT_EOF 16538 ;; 16539 *) 16540 # For security reasons, it is highly recommended that you always 16541 # use absolute paths for naming shared libraries, and exclude the 16542 # DT_RUNPATH tag from executables and libraries. But doing so 16543 # requires that you compile everything twice, which is a pain. 16544 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16545 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16547 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16548 else 16549 ld_shlibs=no 16550 fi 16551 ;; 16552 esac 16553 ;; 16554 16555 sunos4*) 16556 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16557 wlarc= 16558 hardcode_direct=yes 16559 hardcode_shlibpath_var=no 16560 ;; 16561 16562 *) 16563 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16565 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16566 else 16567 ld_shlibs=no 16568 fi 16569 ;; 16570 esac 16571 16572 if test no = "$ld_shlibs"; then 16573 runpath_var= 16574 hardcode_libdir_flag_spec= 16575 export_dynamic_flag_spec= 16576 whole_archive_flag_spec= 16577 fi 16578 else 16579 # PORTME fill in a description of your system's linker (not GNU ld) 16580 case $host_os in 16581 aix3*) 16582 allow_undefined_flag=unsupported 16583 always_export_symbols=yes 16584 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' 16585 # Note: this linker hardcodes the directories in LIBPATH if there 16586 # are no directories specified by -L. 16587 hardcode_minus_L=yes 16588 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16589 # Neither direct hardcoding nor static linking is supported with a 16590 # broken collect2. 16591 hardcode_direct=unsupported 16592 fi 16593 ;; 16594 16595 aix[4-9]*) 16596 if test ia64 = "$host_cpu"; then 16597 # On IA64, the linker does run time linking by default, so we don't 16598 # have to do anything special. 16599 aix_use_runtimelinking=no 16600 exp_sym_flag='-Bexport' 16601 no_entry_flag= 16602 else 16603 # If we're using GNU nm, then we don't want the "-C" option. 16604 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16605 # Without the "-l" option, or with the "-B" option, AIX nm treats 16606 # weak defined symbols like other global defined symbols, whereas 16607 # GNU nm marks them as "W". 16608 # While the 'weak' keyword is ignored in the Export File, we need 16609 # it in the Import File for the 'aix-soname' feature, so we have 16610 # to replace the "-B" option with "-P" for AIX nm. 16611 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16612 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' 16613 else 16614 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' 16615 fi 16616 aix_use_runtimelinking=no 16617 16618 # Test if we are trying to use run time linking or normal 16619 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16620 # have runtime linking enabled, and use it for executables. 16621 # For shared libraries, we enable/disable runtime linking 16622 # depending on the kind of the shared library created - 16623 # when "with_aix_soname,aix_use_runtimelinking" is: 16624 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16625 # "aix,yes" lib.so shared, rtl:yes, for executables 16626 # lib.a static archive 16627 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16628 # lib.a(lib.so.V) shared, rtl:no, for executables 16629 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16630 # lib.a(lib.so.V) shared, rtl:no 16631 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16632 # lib.a static archive 16633 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16634 for ld_flag in $LDFLAGS; do 16635 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16636 aix_use_runtimelinking=yes 16637 break 16638 fi 16639 done 16640 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16641 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16642 # so we don't have lib.a shared libs to link our executables. 16643 # We have to force runtime linking in this case. 16644 aix_use_runtimelinking=yes 16645 LDFLAGS="$LDFLAGS -Wl,-brtl" 16646 fi 16647 ;; 16648 esac 16649 16650 exp_sym_flag='-bexport' 16651 no_entry_flag='-bnoentry' 16652 fi 16653 16654 # When large executables or shared objects are built, AIX ld can 16655 # have problems creating the table of contents. If linking a library 16656 # or program results in "error TOC overflow" add -mminimal-toc to 16657 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16658 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16659 16660 archive_cmds='' 16661 hardcode_direct=yes 16662 hardcode_direct_absolute=yes 16663 hardcode_libdir_separator=':' 16664 link_all_deplibs=yes 16665 file_list_spec='$wl-f,' 16666 case $with_aix_soname,$aix_use_runtimelinking in 16667 aix,*) ;; # traditional, no import file 16668 svr4,* | *,yes) # use import file 16669 # The Import File defines what to hardcode. 16670 hardcode_direct=no 16671 hardcode_direct_absolute=no 16672 ;; 16673 esac 16674 16675 if test yes = "$GCC"; then 16676 case $host_os in aix4.[012]|aix4.[012].*) 16677 # We only want to do this on AIX 4.2 and lower, the check 16678 # below for broken collect2 doesn't work under 4.3+ 16679 collect2name=`$CC -print-prog-name=collect2` 16680 if test -f "$collect2name" && 16681 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16682 then 16683 # We have reworked collect2 16684 : 16685 else 16686 # We have old collect2 16687 hardcode_direct=unsupported 16688 # It fails to find uninstalled libraries when the uninstalled 16689 # path is not listed in the libpath. Setting hardcode_minus_L 16690 # to unsupported forces relinking 16691 hardcode_minus_L=yes 16692 hardcode_libdir_flag_spec='-L$libdir' 16693 hardcode_libdir_separator= 16694 fi 16695 ;; 16696 esac 16697 shared_flag='-shared' 16698 if test yes = "$aix_use_runtimelinking"; then 16699 shared_flag="$shared_flag "'$wl-G' 16700 fi 16701 # Need to ensure runtime linking is disabled for the traditional 16702 # shared library, or the linker may eventually find shared libraries 16703 # /with/ Import File - we do not want to mix them. 16704 shared_flag_aix='-shared' 16705 shared_flag_svr4='-shared $wl-G' 16706 else 16707 # not using gcc 16708 if test ia64 = "$host_cpu"; then 16709 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16710 # chokes on -Wl,-G. The following line is correct: 16711 shared_flag='-G' 16712 else 16713 if test yes = "$aix_use_runtimelinking"; then 16714 shared_flag='$wl-G' 16715 else 16716 shared_flag='$wl-bM:SRE' 16717 fi 16718 shared_flag_aix='$wl-bM:SRE' 16719 shared_flag_svr4='$wl-G' 16720 fi 16721 fi 16722 16723 export_dynamic_flag_spec='$wl-bexpall' 16724 # It seems that -bexpall does not export symbols beginning with 16725 # underscore (_), so it is better to generate a list of symbols to export. 16726 always_export_symbols=yes 16727 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16728 # Warning - without using the other runtime loading flags (-brtl), 16729 # -berok will link without error, but may produce a broken library. 16730 allow_undefined_flag='-berok' 16731 # Determine the default libpath from the value encoded in an 16732 # empty executable. 16733 if test set = "${lt_cv_aix_libpath+set}"; then 16734 aix_libpath=$lt_cv_aix_libpath 16735else 16736 if test ${lt_cv_aix_libpath_+y} 16737then : 16738 printf %s "(cached) " >&6 16739else $as_nop 16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16741/* end confdefs.h. */ 16742 16743int 16744main (void) 16745{ 16746 16747 ; 16748 return 0; 16749} 16750_ACEOF 16751if ac_fn_c_try_link "$LINENO" 16752then : 16753 16754 lt_aix_libpath_sed=' 16755 /Import File Strings/,/^$/ { 16756 /^0/ { 16757 s/^0 *\([^ ]*\) *$/\1/ 16758 p 16759 } 16760 }' 16761 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16762 # Check for a 64-bit object if we didn't find anything. 16763 if test -z "$lt_cv_aix_libpath_"; then 16764 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16765 fi 16766fi 16767rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16768 conftest$ac_exeext conftest.$ac_ext 16769 if test -z "$lt_cv_aix_libpath_"; then 16770 lt_cv_aix_libpath_=/usr/lib:/lib 16771 fi 16772 16773fi 16774 16775 aix_libpath=$lt_cv_aix_libpath_ 16776fi 16777 16778 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16779 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 16780 else 16781 if test ia64 = "$host_cpu"; then 16782 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16783 allow_undefined_flag="-z nodefs" 16784 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" 16785 else 16786 # Determine the default libpath from the value encoded in an 16787 # empty executable. 16788 if test set = "${lt_cv_aix_libpath+set}"; then 16789 aix_libpath=$lt_cv_aix_libpath 16790else 16791 if test ${lt_cv_aix_libpath_+y} 16792then : 16793 printf %s "(cached) " >&6 16794else $as_nop 16795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16796/* end confdefs.h. */ 16797 16798int 16799main (void) 16800{ 16801 16802 ; 16803 return 0; 16804} 16805_ACEOF 16806if ac_fn_c_try_link "$LINENO" 16807then : 16808 16809 lt_aix_libpath_sed=' 16810 /Import File Strings/,/^$/ { 16811 /^0/ { 16812 s/^0 *\([^ ]*\) *$/\1/ 16813 p 16814 } 16815 }' 16816 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16817 # Check for a 64-bit object if we didn't find anything. 16818 if test -z "$lt_cv_aix_libpath_"; then 16819 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16820 fi 16821fi 16822rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16823 conftest$ac_exeext conftest.$ac_ext 16824 if test -z "$lt_cv_aix_libpath_"; then 16825 lt_cv_aix_libpath_=/usr/lib:/lib 16826 fi 16827 16828fi 16829 16830 aix_libpath=$lt_cv_aix_libpath_ 16831fi 16832 16833 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16834 # Warning - without using the other run time loading flags, 16835 # -berok will link without error, but may produce a broken library. 16836 no_undefined_flag=' $wl-bernotok' 16837 allow_undefined_flag=' $wl-berok' 16838 if test yes = "$with_gnu_ld"; then 16839 # We only use this code for GNU lds that support --whole-archive. 16840 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16841 else 16842 # Exported symbols can be pulled into shared objects from archives 16843 whole_archive_flag_spec='$convenience' 16844 fi 16845 archive_cmds_need_lc=yes 16846 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16847 # -brtl affects multiple linker settings, -berok does not and is overridden later 16848 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16849 if test svr4 != "$with_aix_soname"; then 16850 # This is similar to how AIX traditionally builds its shared libraries. 16851 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' 16852 fi 16853 if test aix != "$with_aix_soname"; then 16854 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' 16855 else 16856 # used by -dlpreopen to get the symbols 16857 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16858 fi 16859 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16860 fi 16861 fi 16862 ;; 16863 16864 amigaos*) 16865 case $host_cpu in 16866 powerpc) 16867 # see comment about AmigaOS4 .so support 16868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16869 archive_expsym_cmds='' 16870 ;; 16871 m68k) 16872 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)' 16873 hardcode_libdir_flag_spec='-L$libdir' 16874 hardcode_minus_L=yes 16875 ;; 16876 esac 16877 ;; 16878 16879 bsdi[45]*) 16880 export_dynamic_flag_spec=-rdynamic 16881 ;; 16882 16883 cygwin* | mingw* | pw32* | cegcc*) 16884 # When not using gcc, we currently assume that we are using 16885 # Microsoft Visual C++ or Intel C++ Compiler. 16886 # hardcode_libdir_flag_spec is actually meaningless, as there is 16887 # no search path for DLLs. 16888 case $cc_basename in 16889 cl* | icl*) 16890 # Native MSVC or ICC 16891 hardcode_libdir_flag_spec=' ' 16892 allow_undefined_flag=unsupported 16893 always_export_symbols=yes 16894 file_list_spec='@' 16895 # Tell ltmain to make .lib files, not .a files. 16896 libext=lib 16897 # Tell ltmain to make .dll files, not .so files. 16898 shrext_cmds=.dll 16899 # FIXME: Setting linknames here is a bad hack. 16900 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16901 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16902 cp "$export_symbols" "$output_objdir/$soname.def"; 16903 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16904 else 16905 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16906 fi~ 16907 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16908 linknames=' 16909 # The linker will not automatically build a static lib if we build a DLL. 16910 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16911 enable_shared_with_static_runtimes=yes 16912 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16913 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16914 # Don't use ranlib 16915 old_postinstall_cmds='chmod 644 $oldlib' 16916 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16917 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16918 case $lt_outputfile in 16919 *.exe|*.EXE) ;; 16920 *) 16921 lt_outputfile=$lt_outputfile.exe 16922 lt_tool_outputfile=$lt_tool_outputfile.exe 16923 ;; 16924 esac~ 16925 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16926 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16927 $RM "$lt_outputfile.manifest"; 16928 fi' 16929 ;; 16930 *) 16931 # Assume MSVC and ICC wrapper 16932 hardcode_libdir_flag_spec=' ' 16933 allow_undefined_flag=unsupported 16934 # Tell ltmain to make .lib files, not .a files. 16935 libext=lib 16936 # Tell ltmain to make .dll files, not .so files. 16937 shrext_cmds=.dll 16938 # FIXME: Setting linknames here is a bad hack. 16939 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16940 # The linker will automatically build a .lib file if we build a DLL. 16941 old_archive_from_new_cmds='true' 16942 # FIXME: Should let the user specify the lib program. 16943 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16944 enable_shared_with_static_runtimes=yes 16945 ;; 16946 esac 16947 ;; 16948 16949 darwin* | rhapsody*) 16950 16951 16952 archive_cmds_need_lc=no 16953 hardcode_direct=no 16954 hardcode_automatic=yes 16955 hardcode_shlibpath_var=unsupported 16956 if test yes = "$lt_cv_ld_force_load"; then 16957 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\"`' 16958 16959 else 16960 whole_archive_flag_spec='' 16961 fi 16962 link_all_deplibs=yes 16963 allow_undefined_flag=$_lt_dar_allow_undefined 16964 case $cc_basename in 16965 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16966 *) _lt_dar_can_shared=$GCC ;; 16967 esac 16968 if test yes = "$_lt_dar_can_shared"; then 16969 output_verbose_link_cmd=func_echo_all 16970 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16971 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16972 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" 16973 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" 16974 16975 else 16976 ld_shlibs=no 16977 fi 16978 16979 ;; 16980 16981 dgux*) 16982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16983 hardcode_libdir_flag_spec='-L$libdir' 16984 hardcode_shlibpath_var=no 16985 ;; 16986 16987 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16988 # support. Future versions do this automatically, but an explicit c++rt0.o 16989 # does not break anything, and helps significantly (at the cost of a little 16990 # extra space). 16991 freebsd2.2*) 16992 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16993 hardcode_libdir_flag_spec='-R$libdir' 16994 hardcode_direct=yes 16995 hardcode_shlibpath_var=no 16996 ;; 16997 16998 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16999 freebsd2.*) 17000 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17001 hardcode_direct=yes 17002 hardcode_minus_L=yes 17003 hardcode_shlibpath_var=no 17004 ;; 17005 17006 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17007 freebsd* | dragonfly* | midnightbsd*) 17008 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17009 hardcode_libdir_flag_spec='-R$libdir' 17010 hardcode_direct=yes 17011 hardcode_shlibpath_var=no 17012 ;; 17013 17014 hpux9*) 17015 if test yes = "$GCC"; then 17016 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' 17017 else 17018 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' 17019 fi 17020 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17021 hardcode_libdir_separator=: 17022 hardcode_direct=yes 17023 17024 # hardcode_minus_L: Not really in the search PATH, 17025 # but as the default location of the library. 17026 hardcode_minus_L=yes 17027 export_dynamic_flag_spec='$wl-E' 17028 ;; 17029 17030 hpux10*) 17031 if test yes,no = "$GCC,$with_gnu_ld"; then 17032 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17033 else 17034 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17035 fi 17036 if test no = "$with_gnu_ld"; then 17037 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17038 hardcode_libdir_separator=: 17039 hardcode_direct=yes 17040 hardcode_direct_absolute=yes 17041 export_dynamic_flag_spec='$wl-E' 17042 # hardcode_minus_L: Not really in the search PATH, 17043 # but as the default location of the library. 17044 hardcode_minus_L=yes 17045 fi 17046 ;; 17047 17048 hpux11*) 17049 if test yes,no = "$GCC,$with_gnu_ld"; then 17050 case $host_cpu in 17051 hppa*64*) 17052 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17053 ;; 17054 ia64*) 17055 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17056 ;; 17057 *) 17058 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17059 ;; 17060 esac 17061 else 17062 case $host_cpu in 17063 hppa*64*) 17064 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17065 ;; 17066 ia64*) 17067 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17068 ;; 17069 *) 17070 17071 # Older versions of the 11.00 compiler do not understand -b yet 17072 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17074printf %s "checking if $CC understands -b... " >&6; } 17075if test ${lt_cv_prog_compiler__b+y} 17076then : 17077 printf %s "(cached) " >&6 17078else $as_nop 17079 lt_cv_prog_compiler__b=no 17080 save_LDFLAGS=$LDFLAGS 17081 LDFLAGS="$LDFLAGS -b" 17082 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17083 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17084 # The linker can only warn and ignore the option if not recognized 17085 # So say no if there are warnings 17086 if test -s conftest.err; then 17087 # Append any errors to the config.log. 17088 cat conftest.err 1>&5 17089 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17091 if diff conftest.exp conftest.er2 >/dev/null; then 17092 lt_cv_prog_compiler__b=yes 17093 fi 17094 else 17095 lt_cv_prog_compiler__b=yes 17096 fi 17097 fi 17098 $RM -r conftest* 17099 LDFLAGS=$save_LDFLAGS 17100 17101fi 17102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17103printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17104 17105if test yes = "$lt_cv_prog_compiler__b"; then 17106 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17107else 17108 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17109fi 17110 17111 ;; 17112 esac 17113 fi 17114 if test no = "$with_gnu_ld"; then 17115 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17116 hardcode_libdir_separator=: 17117 17118 case $host_cpu in 17119 hppa*64*|ia64*) 17120 hardcode_direct=no 17121 hardcode_shlibpath_var=no 17122 ;; 17123 *) 17124 hardcode_direct=yes 17125 hardcode_direct_absolute=yes 17126 export_dynamic_flag_spec='$wl-E' 17127 17128 # hardcode_minus_L: Not really in the search PATH, 17129 # but as the default location of the library. 17130 hardcode_minus_L=yes 17131 ;; 17132 esac 17133 fi 17134 ;; 17135 17136 irix5* | irix6* | nonstopux*) 17137 if test yes = "$GCC"; then 17138 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' 17139 # Try to use the -exported_symbol ld option, if it does not 17140 # work, assume that -exports_file does not work either and 17141 # implicitly export all symbols. 17142 # This should be the same for all languages, so no per-tag cache variable. 17143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17144printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17145if test ${lt_cv_irix_exported_symbol+y} 17146then : 17147 printf %s "(cached) " >&6 17148else $as_nop 17149 save_LDFLAGS=$LDFLAGS 17150 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17152/* end confdefs.h. */ 17153int foo (void) { return 0; } 17154_ACEOF 17155if ac_fn_c_try_link "$LINENO" 17156then : 17157 lt_cv_irix_exported_symbol=yes 17158else $as_nop 17159 lt_cv_irix_exported_symbol=no 17160fi 17161rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17162 conftest$ac_exeext conftest.$ac_ext 17163 LDFLAGS=$save_LDFLAGS 17164fi 17165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17166printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17167 if test yes = "$lt_cv_irix_exported_symbol"; then 17168 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' 17169 fi 17170 else 17171 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' 17172 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' 17173 fi 17174 archive_cmds_need_lc='no' 17175 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17176 hardcode_libdir_separator=: 17177 inherit_rpath=yes 17178 link_all_deplibs=yes 17179 ;; 17180 17181 linux*) 17182 case $cc_basename in 17183 tcc*) 17184 # Fabrice Bellard et al's Tiny C Compiler 17185 ld_shlibs=yes 17186 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17187 ;; 17188 esac 17189 ;; 17190 17191 netbsd*) 17192 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17193 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17194 else 17195 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17196 fi 17197 hardcode_libdir_flag_spec='-R$libdir' 17198 hardcode_direct=yes 17199 hardcode_shlibpath_var=no 17200 ;; 17201 17202 newsos6) 17203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17204 hardcode_direct=yes 17205 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17206 hardcode_libdir_separator=: 17207 hardcode_shlibpath_var=no 17208 ;; 17209 17210 *nto* | *qnx*) 17211 ;; 17212 17213 openbsd* | bitrig*) 17214 if test -f /usr/libexec/ld.so; then 17215 hardcode_direct=yes 17216 hardcode_shlibpath_var=no 17217 hardcode_direct_absolute=yes 17218 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17219 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17220 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17221 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17222 export_dynamic_flag_spec='$wl-E' 17223 else 17224 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17225 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17226 fi 17227 else 17228 ld_shlibs=no 17229 fi 17230 ;; 17231 17232 os2*) 17233 hardcode_libdir_flag_spec='-L$libdir' 17234 hardcode_minus_L=yes 17235 allow_undefined_flag=unsupported 17236 shrext_cmds=.dll 17237 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17238 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17239 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17240 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17241 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17242 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17243 emximp -o $lib $output_objdir/$libname.def' 17244 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17245 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17246 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17247 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17248 prefix_cmds="$SED"~ 17249 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17250 prefix_cmds="$prefix_cmds -e 1d"; 17251 fi~ 17252 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17253 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17254 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17255 emximp -o $lib $output_objdir/$libname.def' 17256 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17257 enable_shared_with_static_runtimes=yes 17258 file_list_spec='@' 17259 ;; 17260 17261 osf3*) 17262 if test yes = "$GCC"; then 17263 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17264 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' 17265 else 17266 allow_undefined_flag=' -expect_unresolved \*' 17267 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' 17268 fi 17269 archive_cmds_need_lc='no' 17270 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17271 hardcode_libdir_separator=: 17272 ;; 17273 17274 osf4* | osf5*) # as osf3* with the addition of -msym flag 17275 if test yes = "$GCC"; then 17276 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17277 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' 17278 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17279 else 17280 allow_undefined_flag=' -expect_unresolved \*' 17281 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' 17282 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~ 17283 $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' 17284 17285 # Both c and cxx compiler support -rpath directly 17286 hardcode_libdir_flag_spec='-rpath $libdir' 17287 fi 17288 archive_cmds_need_lc='no' 17289 hardcode_libdir_separator=: 17290 ;; 17291 17292 solaris*) 17293 no_undefined_flag=' -z defs' 17294 if test yes = "$GCC"; then 17295 wlarc='$wl' 17296 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17297 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17298 $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' 17299 else 17300 case `$CC -V 2>&1` in 17301 *"Compilers 5.0"*) 17302 wlarc='' 17303 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17304 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17305 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17306 ;; 17307 *) 17308 wlarc='$wl' 17309 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17310 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17311 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17312 ;; 17313 esac 17314 fi 17315 hardcode_libdir_flag_spec='-R$libdir' 17316 hardcode_shlibpath_var=no 17317 case $host_os in 17318 solaris2.[0-5] | solaris2.[0-5].*) ;; 17319 *) 17320 # The compiler driver will combine and reorder linker options, 17321 # but understands '-z linker_flag'. GCC discards it without '$wl', 17322 # but is careful enough not to reorder. 17323 # Supported since Solaris 2.6 (maybe 2.5.1?) 17324 if test yes = "$GCC"; then 17325 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17326 else 17327 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17328 fi 17329 ;; 17330 esac 17331 link_all_deplibs=yes 17332 ;; 17333 17334 sunos4*) 17335 if test sequent = "$host_vendor"; then 17336 # Use $CC to link under sequent, because it throws in some extra .o 17337 # files that make .init and .fini sections work. 17338 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17339 else 17340 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17341 fi 17342 hardcode_libdir_flag_spec='-L$libdir' 17343 hardcode_direct=yes 17344 hardcode_minus_L=yes 17345 hardcode_shlibpath_var=no 17346 ;; 17347 17348 sysv4) 17349 case $host_vendor in 17350 sni) 17351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17352 hardcode_direct=yes # is this really true??? 17353 ;; 17354 siemens) 17355 ## LD is ld it makes a PLAMLIB 17356 ## CC just makes a GrossModule. 17357 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17358 reload_cmds='$CC -r -o $output$reload_objs' 17359 hardcode_direct=no 17360 ;; 17361 motorola) 17362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17363 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17364 ;; 17365 esac 17366 runpath_var='LD_RUN_PATH' 17367 hardcode_shlibpath_var=no 17368 ;; 17369 17370 sysv4.3*) 17371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17372 hardcode_shlibpath_var=no 17373 export_dynamic_flag_spec='-Bexport' 17374 ;; 17375 17376 sysv4*MP*) 17377 if test -d /usr/nec; then 17378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17379 hardcode_shlibpath_var=no 17380 runpath_var=LD_RUN_PATH 17381 hardcode_runpath_var=yes 17382 ld_shlibs=yes 17383 fi 17384 ;; 17385 17386 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17387 no_undefined_flag='$wl-z,text' 17388 archive_cmds_need_lc=no 17389 hardcode_shlibpath_var=no 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 sysv5* | sco3.2v5* | sco5v6*) 17402 # Note: We CANNOT use -z defs as we might desire, because we do not 17403 # link with -lc, and that would cause any symbols used from libc to 17404 # always be unresolved, which means just about no library would 17405 # ever link correctly. If we're not using GNU ld we use -z text 17406 # though, which does catch some bad symbols but isn't as heavy-handed 17407 # as -z defs. 17408 no_undefined_flag='$wl-z,text' 17409 allow_undefined_flag='$wl-z,nodefs' 17410 archive_cmds_need_lc=no 17411 hardcode_shlibpath_var=no 17412 hardcode_libdir_flag_spec='$wl-R,$libdir' 17413 hardcode_libdir_separator=':' 17414 link_all_deplibs=yes 17415 export_dynamic_flag_spec='$wl-Bexport' 17416 runpath_var='LD_RUN_PATH' 17417 17418 if test yes = "$GCC"; then 17419 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17420 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17421 else 17422 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17423 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17424 fi 17425 ;; 17426 17427 uts4*) 17428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17429 hardcode_libdir_flag_spec='-L$libdir' 17430 hardcode_shlibpath_var=no 17431 ;; 17432 17433 *) 17434 ld_shlibs=no 17435 ;; 17436 esac 17437 17438 if test sni = "$host_vendor"; then 17439 case $host in 17440 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17441 export_dynamic_flag_spec='$wl-Blargedynsym' 17442 ;; 17443 esac 17444 fi 17445 fi 17446 17447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17448printf "%s\n" "$ld_shlibs" >&6; } 17449test no = "$ld_shlibs" && can_build_shared=no 17450 17451with_gnu_ld=$with_gnu_ld 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467# 17468# Do we need to explicitly link libc? 17469# 17470case "x$archive_cmds_need_lc" in 17471x|xyes) 17472 # Assume -lc should be added 17473 archive_cmds_need_lc=yes 17474 17475 if test yes,yes = "$GCC,$enable_shared"; then 17476 case $archive_cmds in 17477 *'~'*) 17478 # FIXME: we may have to deal with multi-command sequences. 17479 ;; 17480 '$CC '*) 17481 # Test whether the compiler implicitly links with -lc since on some 17482 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17483 # to ld, don't add -lc before -lgcc. 17484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17485printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17486if test ${lt_cv_archive_cmds_need_lc+y} 17487then : 17488 printf %s "(cached) " >&6 17489else $as_nop 17490 $RM conftest* 17491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17492 17493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17494 (eval $ac_compile) 2>&5 17495 ac_status=$? 17496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17497 test $ac_status = 0; } 2>conftest.err; then 17498 soname=conftest 17499 lib=conftest 17500 libobjs=conftest.$ac_objext 17501 deplibs= 17502 wl=$lt_prog_compiler_wl 17503 pic_flag=$lt_prog_compiler_pic 17504 compiler_flags=-v 17505 linker_flags=-v 17506 verstring= 17507 output_objdir=. 17508 libname=conftest 17509 lt_save_allow_undefined_flag=$allow_undefined_flag 17510 allow_undefined_flag= 17511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17512 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17513 ac_status=$? 17514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17515 test $ac_status = 0; } 17516 then 17517 lt_cv_archive_cmds_need_lc=no 17518 else 17519 lt_cv_archive_cmds_need_lc=yes 17520 fi 17521 allow_undefined_flag=$lt_save_allow_undefined_flag 17522 else 17523 cat conftest.err 1>&5 17524 fi 17525 $RM conftest* 17526 17527fi 17528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17529printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17530 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17531 ;; 17532 esac 17533 fi 17534 ;; 17535esac 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 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17689printf %s "checking dynamic linker characteristics... " >&6; } 17690 17691if test yes = "$GCC"; then 17692 case $host_os in 17693 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17694 *) lt_awk_arg='/^libraries:/' ;; 17695 esac 17696 case $host_os in 17697 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17698 *) lt_sed_strip_eq='s|=/|/|g' ;; 17699 esac 17700 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17701 case $lt_search_path_spec in 17702 *\;*) 17703 # if the path contains ";" then we assume it to be the separator 17704 # otherwise default to the standard path separator (i.e. ":") - it is 17705 # assumed that no part of a normal pathname contains ";" but that should 17706 # okay in the real world where ";" in dirpaths is itself problematic. 17707 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17708 ;; 17709 *) 17710 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17711 ;; 17712 esac 17713 # Ok, now we have the path, separated by spaces, we can step through it 17714 # and add multilib dir if necessary... 17715 lt_tmp_lt_search_path_spec= 17716 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17717 # ...but if some path component already ends with the multilib dir we assume 17718 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17719 case "$lt_multi_os_dir; $lt_search_path_spec " in 17720 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17721 lt_multi_os_dir= 17722 ;; 17723 esac 17724 for lt_sys_path in $lt_search_path_spec; do 17725 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17726 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17727 elif test -n "$lt_multi_os_dir"; then 17728 test -d "$lt_sys_path" && \ 17729 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17730 fi 17731 done 17732 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17733BEGIN {RS = " "; FS = "/|\n";} { 17734 lt_foo = ""; 17735 lt_count = 0; 17736 for (lt_i = NF; lt_i > 0; lt_i--) { 17737 if ($lt_i != "" && $lt_i != ".") { 17738 if ($lt_i == "..") { 17739 lt_count++; 17740 } else { 17741 if (lt_count == 0) { 17742 lt_foo = "/" $lt_i lt_foo; 17743 } else { 17744 lt_count--; 17745 } 17746 } 17747 } 17748 } 17749 if (lt_foo != "") { lt_freq[lt_foo]++; } 17750 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17751}'` 17752 # AWK program above erroneously prepends '/' to C:/dos/paths 17753 # for these hosts. 17754 case $host_os in 17755 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17756 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17757 esac 17758 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17759else 17760 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17761fi 17762library_names_spec= 17763libname_spec='lib$name' 17764soname_spec= 17765shrext_cmds=.so 17766postinstall_cmds= 17767postuninstall_cmds= 17768finish_cmds= 17769finish_eval= 17770shlibpath_var= 17771shlibpath_overrides_runpath=unknown 17772version_type=none 17773dynamic_linker="$host_os ld.so" 17774sys_lib_dlsearch_path_spec="/lib /usr/lib" 17775need_lib_prefix=unknown 17776hardcode_into_libs=no 17777 17778# when you set need_version to no, make sure it does not cause -set_version 17779# flags to be left without arguments 17780need_version=unknown 17781 17782 17783 17784case $host_os in 17785aix3*) 17786 version_type=linux # correct to gnu/linux during the next big refactor 17787 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17788 shlibpath_var=LIBPATH 17789 17790 # AIX 3 has no versioning support, so we append a major version to the name. 17791 soname_spec='$libname$release$shared_ext$major' 17792 ;; 17793 17794aix[4-9]*) 17795 version_type=linux # correct to gnu/linux during the next big refactor 17796 need_lib_prefix=no 17797 need_version=no 17798 hardcode_into_libs=yes 17799 if test ia64 = "$host_cpu"; then 17800 # AIX 5 supports IA64 17801 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17802 shlibpath_var=LD_LIBRARY_PATH 17803 else 17804 # With GCC up to 2.95.x, collect2 would create an import file 17805 # for dependence libraries. The import file would start with 17806 # the line '#! .'. This would cause the generated library to 17807 # depend on '.', always an invalid library. This was fixed in 17808 # development snapshots of GCC prior to 3.0. 17809 case $host_os in 17810 aix4 | aix4.[01] | aix4.[01].*) 17811 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17812 echo ' yes ' 17813 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17814 : 17815 else 17816 can_build_shared=no 17817 fi 17818 ;; 17819 esac 17820 # Using Import Files as archive members, it is possible to support 17821 # filename-based versioning of shared library archives on AIX. While 17822 # this would work for both with and without runtime linking, it will 17823 # prevent static linking of such archives. So we do filename-based 17824 # shared library versioning with .so extension only, which is used 17825 # when both runtime linking and shared linking is enabled. 17826 # Unfortunately, runtime linking may impact performance, so we do 17827 # not want this to be the default eventually. Also, we use the 17828 # versioned .so libs for executables only if there is the -brtl 17829 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17830 # To allow for filename-based versioning support, we need to create 17831 # libNAME.so.V as an archive file, containing: 17832 # *) an Import File, referring to the versioned filename of the 17833 # archive as well as the shared archive member, telling the 17834 # bitwidth (32 or 64) of that shared object, and providing the 17835 # list of exported symbols of that shared object, eventually 17836 # decorated with the 'weak' keyword 17837 # *) the shared object with the F_LOADONLY flag set, to really avoid 17838 # it being seen by the linker. 17839 # At run time we better use the real file rather than another symlink, 17840 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17841 17842 case $with_aix_soname,$aix_use_runtimelinking in 17843 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17844 # soname into executable. Probably we can add versioning support to 17845 # collect2, so additional links can be useful in future. 17846 aix,yes) # traditional libtool 17847 dynamic_linker='AIX unversionable lib.so' 17848 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17849 # instead of lib<name>.a to let people know that these are not 17850 # typical AIX shared libraries. 17851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17852 ;; 17853 aix,no) # traditional AIX only 17854 dynamic_linker='AIX lib.a(lib.so.V)' 17855 # We preserve .a as extension for shared libraries through AIX4.2 17856 # and later when we are not doing run time linking. 17857 library_names_spec='$libname$release.a $libname.a' 17858 soname_spec='$libname$release$shared_ext$major' 17859 ;; 17860 svr4,*) # full svr4 only 17861 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17862 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17863 # We do not specify a path in Import Files, so LIBPATH fires. 17864 shlibpath_overrides_runpath=yes 17865 ;; 17866 *,yes) # both, prefer svr4 17867 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17868 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17869 # unpreferred sharedlib libNAME.a needs extra handling 17870 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"' 17871 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"' 17872 # We do not specify a path in Import Files, so LIBPATH fires. 17873 shlibpath_overrides_runpath=yes 17874 ;; 17875 *,no) # both, prefer aix 17876 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17877 library_names_spec='$libname$release.a $libname.a' 17878 soname_spec='$libname$release$shared_ext$major' 17879 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17880 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)' 17881 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"' 17882 ;; 17883 esac 17884 shlibpath_var=LIBPATH 17885 fi 17886 ;; 17887 17888amigaos*) 17889 case $host_cpu in 17890 powerpc) 17891 # Since July 2007 AmigaOS4 officially supports .so libraries. 17892 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17894 ;; 17895 m68k) 17896 library_names_spec='$libname.ixlibrary $libname.a' 17897 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17898 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' 17899 ;; 17900 esac 17901 ;; 17902 17903beos*) 17904 library_names_spec='$libname$shared_ext' 17905 dynamic_linker="$host_os ld.so" 17906 shlibpath_var=LIBRARY_PATH 17907 ;; 17908 17909bsdi[45]*) 17910 version_type=linux # correct to gnu/linux during the next big refactor 17911 need_version=no 17912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17913 soname_spec='$libname$release$shared_ext$major' 17914 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17915 shlibpath_var=LD_LIBRARY_PATH 17916 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17917 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17918 # the default ld.so.conf also contains /usr/contrib/lib and 17919 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17920 # libtool to hard-code these into programs 17921 ;; 17922 17923cygwin* | mingw* | pw32* | cegcc*) 17924 version_type=windows 17925 shrext_cmds=.dll 17926 need_version=no 17927 need_lib_prefix=no 17928 17929 case $GCC,$cc_basename in 17930 yes,*) 17931 # gcc 17932 library_names_spec='$libname.dll.a' 17933 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17934 postinstall_cmds='base_file=`basename \$file`~ 17935 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17936 dldir=$destdir/`dirname \$dlpath`~ 17937 test -d \$dldir || mkdir -p \$dldir~ 17938 $install_prog $dir/$dlname \$dldir/$dlname~ 17939 chmod a+x \$dldir/$dlname~ 17940 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17941 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17942 fi' 17943 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17944 dlpath=$dir/\$dldll~ 17945 $RM \$dlpath' 17946 shlibpath_overrides_runpath=yes 17947 17948 case $host_os in 17949 cygwin*) 17950 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17951 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17952 17953 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17954 ;; 17955 mingw* | cegcc*) 17956 # MinGW DLLs use traditional 'lib' prefix 17957 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17958 ;; 17959 pw32*) 17960 # pw32 DLLs use 'pw' prefix rather than 'lib' 17961 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17962 ;; 17963 esac 17964 dynamic_linker='Win32 ld.exe' 17965 ;; 17966 17967 *,cl* | *,icl*) 17968 # Native MSVC or ICC 17969 libname_spec='$name' 17970 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17971 library_names_spec='$libname.dll.lib' 17972 17973 case $build_os in 17974 mingw*) 17975 sys_lib_search_path_spec= 17976 lt_save_ifs=$IFS 17977 IFS=';' 17978 for lt_path in $LIB 17979 do 17980 IFS=$lt_save_ifs 17981 # Let DOS variable expansion print the short 8.3 style file name. 17982 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17983 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17984 done 17985 IFS=$lt_save_ifs 17986 # Convert to MSYS style. 17987 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17988 ;; 17989 cygwin*) 17990 # Convert to unix form, then to dos form, then back to unix form 17991 # but this time dos style (no spaces!) so that the unix form looks 17992 # like /cygdrive/c/PROGRA~1:/cygdr... 17993 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17994 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17995 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17996 ;; 17997 *) 17998 sys_lib_search_path_spec=$LIB 17999 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18000 # It is most probably a Windows format PATH. 18001 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18002 else 18003 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18004 fi 18005 # FIXME: find the short name or the path components, as spaces are 18006 # common. (e.g. "Program Files" -> "PROGRA~1") 18007 ;; 18008 esac 18009 18010 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18011 postinstall_cmds='base_file=`basename \$file`~ 18012 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18013 dldir=$destdir/`dirname \$dlpath`~ 18014 test -d \$dldir || mkdir -p \$dldir~ 18015 $install_prog $dir/$dlname \$dldir/$dlname' 18016 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18017 dlpath=$dir/\$dldll~ 18018 $RM \$dlpath' 18019 shlibpath_overrides_runpath=yes 18020 dynamic_linker='Win32 link.exe' 18021 ;; 18022 18023 *) 18024 # Assume MSVC and ICC wrapper 18025 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18026 dynamic_linker='Win32 ld.exe' 18027 ;; 18028 esac 18029 # FIXME: first we should search . and the directory the executable is in 18030 shlibpath_var=PATH 18031 ;; 18032 18033darwin* | rhapsody*) 18034 dynamic_linker="$host_os dyld" 18035 version_type=darwin 18036 need_lib_prefix=no 18037 need_version=no 18038 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18039 soname_spec='$libname$release$major$shared_ext' 18040 shlibpath_overrides_runpath=yes 18041 shlibpath_var=DYLD_LIBRARY_PATH 18042 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18043 18044 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18045 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18046 ;; 18047 18048dgux*) 18049 version_type=linux # correct to gnu/linux during the next big refactor 18050 need_lib_prefix=no 18051 need_version=no 18052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18053 soname_spec='$libname$release$shared_ext$major' 18054 shlibpath_var=LD_LIBRARY_PATH 18055 ;; 18056 18057freebsd* | dragonfly* | midnightbsd*) 18058 # DragonFly does not have aout. When/if they implement a new 18059 # versioning mechanism, adjust this. 18060 if test -x /usr/bin/objformat; then 18061 objformat=`/usr/bin/objformat` 18062 else 18063 case $host_os in 18064 freebsd[23].*) objformat=aout ;; 18065 *) objformat=elf ;; 18066 esac 18067 fi 18068 version_type=freebsd-$objformat 18069 case $version_type in 18070 freebsd-elf*) 18071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18072 soname_spec='$libname$release$shared_ext$major' 18073 need_version=no 18074 need_lib_prefix=no 18075 ;; 18076 freebsd-*) 18077 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18078 need_version=yes 18079 ;; 18080 esac 18081 shlibpath_var=LD_LIBRARY_PATH 18082 case $host_os in 18083 freebsd2.*) 18084 shlibpath_overrides_runpath=yes 18085 ;; 18086 freebsd3.[01]* | freebsdelf3.[01]*) 18087 shlibpath_overrides_runpath=yes 18088 hardcode_into_libs=yes 18089 ;; 18090 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18091 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18092 shlibpath_overrides_runpath=no 18093 hardcode_into_libs=yes 18094 ;; 18095 *) # from 4.6 on, and DragonFly 18096 shlibpath_overrides_runpath=yes 18097 hardcode_into_libs=yes 18098 ;; 18099 esac 18100 ;; 18101 18102haiku*) 18103 version_type=linux # correct to gnu/linux during the next big refactor 18104 need_lib_prefix=no 18105 need_version=no 18106 dynamic_linker="$host_os runtime_loader" 18107 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18108 soname_spec='$libname$release$shared_ext$major' 18109 shlibpath_var=LIBRARY_PATH 18110 shlibpath_overrides_runpath=no 18111 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18112 hardcode_into_libs=yes 18113 ;; 18114 18115hpux9* | hpux10* | hpux11*) 18116 # Give a soname corresponding to the major version so that dld.sl refuses to 18117 # link against other versions. 18118 version_type=sunos 18119 need_lib_prefix=no 18120 need_version=no 18121 case $host_cpu in 18122 ia64*) 18123 shrext_cmds='.so' 18124 hardcode_into_libs=yes 18125 dynamic_linker="$host_os dld.so" 18126 shlibpath_var=LD_LIBRARY_PATH 18127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 if test 32 = "$HPUX_IA64_MODE"; then 18131 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18132 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18133 else 18134 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18135 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18136 fi 18137 ;; 18138 hppa*64*) 18139 shrext_cmds='.sl' 18140 hardcode_into_libs=yes 18141 dynamic_linker="$host_os dld.sl" 18142 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18143 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18145 soname_spec='$libname$release$shared_ext$major' 18146 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18147 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18148 ;; 18149 *) 18150 shrext_cmds='.sl' 18151 dynamic_linker="$host_os dld.sl" 18152 shlibpath_var=SHLIB_PATH 18153 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18155 soname_spec='$libname$release$shared_ext$major' 18156 ;; 18157 esac 18158 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18159 postinstall_cmds='chmod 555 $lib' 18160 # or fails outright, so override atomically: 18161 install_override_mode=555 18162 ;; 18163 18164interix[3-9]*) 18165 version_type=linux # correct to gnu/linux during the next big refactor 18166 need_lib_prefix=no 18167 need_version=no 18168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18169 soname_spec='$libname$release$shared_ext$major' 18170 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18171 shlibpath_var=LD_LIBRARY_PATH 18172 shlibpath_overrides_runpath=no 18173 hardcode_into_libs=yes 18174 ;; 18175 18176irix5* | irix6* | nonstopux*) 18177 case $host_os in 18178 nonstopux*) version_type=nonstopux ;; 18179 *) 18180 if test yes = "$lt_cv_prog_gnu_ld"; then 18181 version_type=linux # correct to gnu/linux during the next big refactor 18182 else 18183 version_type=irix 18184 fi ;; 18185 esac 18186 need_lib_prefix=no 18187 need_version=no 18188 soname_spec='$libname$release$shared_ext$major' 18189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18190 case $host_os in 18191 irix5* | nonstopux*) 18192 libsuff= shlibsuff= 18193 ;; 18194 *) 18195 case $LD in # libtool.m4 will add one of these switches to LD 18196 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18197 libsuff= shlibsuff= libmagic=32-bit;; 18198 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18199 libsuff=32 shlibsuff=N32 libmagic=N32;; 18200 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18201 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18202 *) libsuff= shlibsuff= libmagic=never-match;; 18203 esac 18204 ;; 18205 esac 18206 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18207 shlibpath_overrides_runpath=no 18208 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18209 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18210 hardcode_into_libs=yes 18211 ;; 18212 18213# No shared lib support for Linux oldld, aout, or coff. 18214linux*oldld* | linux*aout* | linux*coff*) 18215 dynamic_linker=no 18216 ;; 18217 18218linux*android*) 18219 version_type=none # Android doesn't support versioned libraries. 18220 need_lib_prefix=no 18221 need_version=no 18222 library_names_spec='$libname$release$shared_ext' 18223 soname_spec='$libname$release$shared_ext' 18224 finish_cmds= 18225 shlibpath_var=LD_LIBRARY_PATH 18226 shlibpath_overrides_runpath=yes 18227 18228 # This implies no fast_install, which is unacceptable. 18229 # Some rework will be needed to allow for fast_install 18230 # before this can be enabled. 18231 hardcode_into_libs=yes 18232 18233 dynamic_linker='Android linker' 18234 # Don't embed -rpath directories since the linker doesn't support them. 18235 hardcode_libdir_flag_spec='-L$libdir' 18236 ;; 18237 18238# This must be glibc/ELF. 18239linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18240 version_type=linux # correct to gnu/linux during the next big refactor 18241 need_lib_prefix=no 18242 need_version=no 18243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18244 soname_spec='$libname$release$shared_ext$major' 18245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18246 shlibpath_var=LD_LIBRARY_PATH 18247 shlibpath_overrides_runpath=no 18248 18249 # Some binutils ld are patched to set DT_RUNPATH 18250 if test ${lt_cv_shlibpath_overrides_runpath+y} 18251then : 18252 printf %s "(cached) " >&6 18253else $as_nop 18254 lt_cv_shlibpath_overrides_runpath=no 18255 save_LDFLAGS=$LDFLAGS 18256 save_libdir=$libdir 18257 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18258 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18260/* end confdefs.h. */ 18261 18262int 18263main (void) 18264{ 18265 18266 ; 18267 return 0; 18268} 18269_ACEOF 18270if ac_fn_c_try_link "$LINENO" 18271then : 18272 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18273then : 18274 lt_cv_shlibpath_overrides_runpath=yes 18275fi 18276fi 18277rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18278 conftest$ac_exeext conftest.$ac_ext 18279 LDFLAGS=$save_LDFLAGS 18280 libdir=$save_libdir 18281 18282fi 18283 18284 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18285 18286 # This implies no fast_install, which is unacceptable. 18287 # Some rework will be needed to allow for fast_install 18288 # before this can be enabled. 18289 hardcode_into_libs=yes 18290 18291 # Ideally, we could use ldconfig to report *all* directores which are 18292 # searched for libraries, however this is still not possible. Aside from not 18293 # being certain /sbin/ldconfig is available, command 18294 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18295 # even though it is searched at run-time. Try to do the best guess by 18296 # appending ld.so.conf contents (and includes) to the search path. 18297 if test -f /etc/ld.so.conf; then 18298 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' ' '` 18299 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18300 fi 18301 18302 # We used to test for /lib/ld.so.1 and disable shared libraries on 18303 # powerpc, because MkLinux only supported shared libraries with the 18304 # GNU dynamic linker. Since this was broken with cross compilers, 18305 # most powerpc-linux boxes support dynamic linking these days and 18306 # people can always --disable-shared, the test was removed, and we 18307 # assume the GNU/Linux dynamic linker is in use. 18308 dynamic_linker='GNU/Linux ld.so' 18309 ;; 18310 18311netbsd*) 18312 version_type=sunos 18313 need_lib_prefix=no 18314 need_version=no 18315 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18316 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18318 dynamic_linker='NetBSD (a.out) ld.so' 18319 else 18320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18321 soname_spec='$libname$release$shared_ext$major' 18322 dynamic_linker='NetBSD ld.elf_so' 18323 fi 18324 shlibpath_var=LD_LIBRARY_PATH 18325 shlibpath_overrides_runpath=yes 18326 hardcode_into_libs=yes 18327 ;; 18328 18329newsos6) 18330 version_type=linux # correct to gnu/linux during the next big refactor 18331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18332 shlibpath_var=LD_LIBRARY_PATH 18333 shlibpath_overrides_runpath=yes 18334 ;; 18335 18336*nto* | *qnx*) 18337 version_type=qnx 18338 need_lib_prefix=no 18339 need_version=no 18340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18341 soname_spec='$libname$release$shared_ext$major' 18342 shlibpath_var=LD_LIBRARY_PATH 18343 shlibpath_overrides_runpath=no 18344 hardcode_into_libs=yes 18345 dynamic_linker='ldqnx.so' 18346 ;; 18347 18348openbsd* | bitrig*) 18349 version_type=sunos 18350 sys_lib_dlsearch_path_spec=/usr/lib 18351 need_lib_prefix=no 18352 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18353 need_version=no 18354 else 18355 need_version=yes 18356 fi 18357 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18359 shlibpath_var=LD_LIBRARY_PATH 18360 shlibpath_overrides_runpath=yes 18361 ;; 18362 18363os2*) 18364 libname_spec='$name' 18365 version_type=windows 18366 shrext_cmds=.dll 18367 need_version=no 18368 need_lib_prefix=no 18369 # OS/2 can only load a DLL with a base name of 8 characters or less. 18370 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18371 v=$($ECHO $release$versuffix | tr -d .-); 18372 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18373 $ECHO $n$v`$shared_ext' 18374 library_names_spec='${libname}_dll.$libext' 18375 dynamic_linker='OS/2 ld.exe' 18376 shlibpath_var=BEGINLIBPATH 18377 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18379 postinstall_cmds='base_file=`basename \$file`~ 18380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18381 dldir=$destdir/`dirname \$dlpath`~ 18382 test -d \$dldir || mkdir -p \$dldir~ 18383 $install_prog $dir/$dlname \$dldir/$dlname~ 18384 chmod a+x \$dldir/$dlname~ 18385 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18386 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18387 fi' 18388 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18389 dlpath=$dir/\$dldll~ 18390 $RM \$dlpath' 18391 ;; 18392 18393osf3* | osf4* | osf5*) 18394 version_type=osf 18395 need_lib_prefix=no 18396 need_version=no 18397 soname_spec='$libname$release$shared_ext$major' 18398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18399 shlibpath_var=LD_LIBRARY_PATH 18400 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18401 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18402 ;; 18403 18404rdos*) 18405 dynamic_linker=no 18406 ;; 18407 18408solaris*) 18409 version_type=linux # correct to gnu/linux during the next big refactor 18410 need_lib_prefix=no 18411 need_version=no 18412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18413 soname_spec='$libname$release$shared_ext$major' 18414 shlibpath_var=LD_LIBRARY_PATH 18415 shlibpath_overrides_runpath=yes 18416 hardcode_into_libs=yes 18417 # ldd complains unless libraries are executable 18418 postinstall_cmds='chmod +x $lib' 18419 ;; 18420 18421sunos4*) 18422 version_type=sunos 18423 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18424 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18425 shlibpath_var=LD_LIBRARY_PATH 18426 shlibpath_overrides_runpath=yes 18427 if test yes = "$with_gnu_ld"; then 18428 need_lib_prefix=no 18429 fi 18430 need_version=yes 18431 ;; 18432 18433sysv4 | sysv4.3*) 18434 version_type=linux # correct to gnu/linux during the next big refactor 18435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18436 soname_spec='$libname$release$shared_ext$major' 18437 shlibpath_var=LD_LIBRARY_PATH 18438 case $host_vendor in 18439 sni) 18440 shlibpath_overrides_runpath=no 18441 need_lib_prefix=no 18442 runpath_var=LD_RUN_PATH 18443 ;; 18444 siemens) 18445 need_lib_prefix=no 18446 ;; 18447 motorola) 18448 need_lib_prefix=no 18449 need_version=no 18450 shlibpath_overrides_runpath=no 18451 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18452 ;; 18453 esac 18454 ;; 18455 18456sysv4*MP*) 18457 if test -d /usr/nec; then 18458 version_type=linux # correct to gnu/linux during the next big refactor 18459 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18460 soname_spec='$libname$shared_ext.$major' 18461 shlibpath_var=LD_LIBRARY_PATH 18462 fi 18463 ;; 18464 18465sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18466 version_type=sco 18467 need_lib_prefix=no 18468 need_version=no 18469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18470 soname_spec='$libname$release$shared_ext$major' 18471 shlibpath_var=LD_LIBRARY_PATH 18472 shlibpath_overrides_runpath=yes 18473 hardcode_into_libs=yes 18474 if test yes = "$with_gnu_ld"; then 18475 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18476 else 18477 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18478 case $host_os in 18479 sco3.2v5*) 18480 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18481 ;; 18482 esac 18483 fi 18484 sys_lib_dlsearch_path_spec='/usr/lib' 18485 ;; 18486 18487tpf*) 18488 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18489 version_type=linux # correct to gnu/linux during the next big refactor 18490 need_lib_prefix=no 18491 need_version=no 18492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18493 shlibpath_var=LD_LIBRARY_PATH 18494 shlibpath_overrides_runpath=no 18495 hardcode_into_libs=yes 18496 ;; 18497 18498uts4*) 18499 version_type=linux # correct to gnu/linux during the next big refactor 18500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18501 soname_spec='$libname$release$shared_ext$major' 18502 shlibpath_var=LD_LIBRARY_PATH 18503 ;; 18504 18505*) 18506 dynamic_linker=no 18507 ;; 18508esac 18509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18510printf "%s\n" "$dynamic_linker" >&6; } 18511test no = "$dynamic_linker" && can_build_shared=no 18512 18513variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18514if test yes = "$GCC"; then 18515 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18516fi 18517 18518if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18519 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18520fi 18521 18522if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18523 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18524fi 18525 18526# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18527configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18528 18529# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18530func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18531 18532# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18533configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629 18630 18631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18632printf %s "checking how to hardcode library paths into programs... " >&6; } 18633hardcode_action= 18634if test -n "$hardcode_libdir_flag_spec" || 18635 test -n "$runpath_var" || 18636 test yes = "$hardcode_automatic"; then 18637 18638 # We can hardcode non-existent directories. 18639 if test no != "$hardcode_direct" && 18640 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18641 # have to relink, otherwise we might link with an installed library 18642 # when we should be linking with a yet-to-be-installed one 18643 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18644 test no != "$hardcode_minus_L"; then 18645 # Linking always hardcodes the temporary library directory. 18646 hardcode_action=relink 18647 else 18648 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18649 hardcode_action=immediate 18650 fi 18651else 18652 # We cannot hardcode anything, or else we can only hardcode existing 18653 # directories. 18654 hardcode_action=unsupported 18655fi 18656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18657printf "%s\n" "$hardcode_action" >&6; } 18658 18659if test relink = "$hardcode_action" || 18660 test yes = "$inherit_rpath"; then 18661 # Fast installation is not supported 18662 enable_fast_install=no 18663elif test yes = "$shlibpath_overrides_runpath" || 18664 test no = "$enable_shared"; then 18665 # Fast installation is not necessary 18666 enable_fast_install=needless 18667fi 18668 18669 18670 18671 18672 18673 18674 if test yes != "$enable_dlopen"; then 18675 enable_dlopen=unknown 18676 enable_dlopen_self=unknown 18677 enable_dlopen_self_static=unknown 18678else 18679 lt_cv_dlopen=no 18680 lt_cv_dlopen_libs= 18681 18682 case $host_os in 18683 beos*) 18684 lt_cv_dlopen=load_add_on 18685 lt_cv_dlopen_libs= 18686 lt_cv_dlopen_self=yes 18687 ;; 18688 18689 mingw* | pw32* | cegcc*) 18690 lt_cv_dlopen=LoadLibrary 18691 lt_cv_dlopen_libs= 18692 ;; 18693 18694 cygwin*) 18695 lt_cv_dlopen=dlopen 18696 lt_cv_dlopen_libs= 18697 ;; 18698 18699 darwin*) 18700 # if libdl is installed we need to link against it 18701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18702printf %s "checking for dlopen in -ldl... " >&6; } 18703if test ${ac_cv_lib_dl_dlopen+y} 18704then : 18705 printf %s "(cached) " >&6 18706else $as_nop 18707 ac_check_lib_save_LIBS=$LIBS 18708LIBS="-ldl $LIBS" 18709cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18710/* end confdefs.h. */ 18711 18712/* Override any GCC internal prototype to avoid an error. 18713 Use char because int might match the return type of a GCC 18714 builtin and then its argument prototype would still apply. */ 18715char dlopen (); 18716int 18717main (void) 18718{ 18719return dlopen (); 18720 ; 18721 return 0; 18722} 18723_ACEOF 18724if ac_fn_c_try_link "$LINENO" 18725then : 18726 ac_cv_lib_dl_dlopen=yes 18727else $as_nop 18728 ac_cv_lib_dl_dlopen=no 18729fi 18730rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18731 conftest$ac_exeext conftest.$ac_ext 18732LIBS=$ac_check_lib_save_LIBS 18733fi 18734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18735printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18736if test "x$ac_cv_lib_dl_dlopen" = xyes 18737then : 18738 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18739else $as_nop 18740 18741 lt_cv_dlopen=dyld 18742 lt_cv_dlopen_libs= 18743 lt_cv_dlopen_self=yes 18744 18745fi 18746 18747 ;; 18748 18749 tpf*) 18750 # Don't try to run any link tests for TPF. We know it's impossible 18751 # because TPF is a cross-compiler, and we know how we open DSOs. 18752 lt_cv_dlopen=dlopen 18753 lt_cv_dlopen_libs= 18754 lt_cv_dlopen_self=no 18755 ;; 18756 18757 *) 18758 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18759if test "x$ac_cv_func_shl_load" = xyes 18760then : 18761 lt_cv_dlopen=shl_load 18762else $as_nop 18763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18764printf %s "checking for shl_load in -ldld... " >&6; } 18765if test ${ac_cv_lib_dld_shl_load+y} 18766then : 18767 printf %s "(cached) " >&6 18768else $as_nop 18769 ac_check_lib_save_LIBS=$LIBS 18770LIBS="-ldld $LIBS" 18771cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18772/* end confdefs.h. */ 18773 18774/* Override any GCC internal prototype to avoid an error. 18775 Use char because int might match the return type of a GCC 18776 builtin and then its argument prototype would still apply. */ 18777char shl_load (); 18778int 18779main (void) 18780{ 18781return shl_load (); 18782 ; 18783 return 0; 18784} 18785_ACEOF 18786if ac_fn_c_try_link "$LINENO" 18787then : 18788 ac_cv_lib_dld_shl_load=yes 18789else $as_nop 18790 ac_cv_lib_dld_shl_load=no 18791fi 18792rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18793 conftest$ac_exeext conftest.$ac_ext 18794LIBS=$ac_check_lib_save_LIBS 18795fi 18796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18797printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 18798if test "x$ac_cv_lib_dld_shl_load" = xyes 18799then : 18800 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18801else $as_nop 18802 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18803if test "x$ac_cv_func_dlopen" = xyes 18804then : 18805 lt_cv_dlopen=dlopen 18806else $as_nop 18807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18808printf %s "checking for dlopen in -ldl... " >&6; } 18809if test ${ac_cv_lib_dl_dlopen+y} 18810then : 18811 printf %s "(cached) " >&6 18812else $as_nop 18813 ac_check_lib_save_LIBS=$LIBS 18814LIBS="-ldl $LIBS" 18815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18816/* end confdefs.h. */ 18817 18818/* Override any GCC internal prototype to avoid an error. 18819 Use char because int might match the return type of a GCC 18820 builtin and then its argument prototype would still apply. */ 18821char dlopen (); 18822int 18823main (void) 18824{ 18825return dlopen (); 18826 ; 18827 return 0; 18828} 18829_ACEOF 18830if ac_fn_c_try_link "$LINENO" 18831then : 18832 ac_cv_lib_dl_dlopen=yes 18833else $as_nop 18834 ac_cv_lib_dl_dlopen=no 18835fi 18836rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18837 conftest$ac_exeext conftest.$ac_ext 18838LIBS=$ac_check_lib_save_LIBS 18839fi 18840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18841printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18842if test "x$ac_cv_lib_dl_dlopen" = xyes 18843then : 18844 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18845else $as_nop 18846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18847printf %s "checking for dlopen in -lsvld... " >&6; } 18848if test ${ac_cv_lib_svld_dlopen+y} 18849then : 18850 printf %s "(cached) " >&6 18851else $as_nop 18852 ac_check_lib_save_LIBS=$LIBS 18853LIBS="-lsvld $LIBS" 18854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18855/* end confdefs.h. */ 18856 18857/* Override any GCC internal prototype to avoid an error. 18858 Use char because int might match the return type of a GCC 18859 builtin and then its argument prototype would still apply. */ 18860char dlopen (); 18861int 18862main (void) 18863{ 18864return dlopen (); 18865 ; 18866 return 0; 18867} 18868_ACEOF 18869if ac_fn_c_try_link "$LINENO" 18870then : 18871 ac_cv_lib_svld_dlopen=yes 18872else $as_nop 18873 ac_cv_lib_svld_dlopen=no 18874fi 18875rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18876 conftest$ac_exeext conftest.$ac_ext 18877LIBS=$ac_check_lib_save_LIBS 18878fi 18879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18880printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 18881if test "x$ac_cv_lib_svld_dlopen" = xyes 18882then : 18883 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18884else $as_nop 18885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18886printf %s "checking for dld_link in -ldld... " >&6; } 18887if test ${ac_cv_lib_dld_dld_link+y} 18888then : 18889 printf %s "(cached) " >&6 18890else $as_nop 18891 ac_check_lib_save_LIBS=$LIBS 18892LIBS="-ldld $LIBS" 18893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18894/* end confdefs.h. */ 18895 18896/* Override any GCC internal prototype to avoid an error. 18897 Use char because int might match the return type of a GCC 18898 builtin and then its argument prototype would still apply. */ 18899char dld_link (); 18900int 18901main (void) 18902{ 18903return dld_link (); 18904 ; 18905 return 0; 18906} 18907_ACEOF 18908if ac_fn_c_try_link "$LINENO" 18909then : 18910 ac_cv_lib_dld_dld_link=yes 18911else $as_nop 18912 ac_cv_lib_dld_dld_link=no 18913fi 18914rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18915 conftest$ac_exeext conftest.$ac_ext 18916LIBS=$ac_check_lib_save_LIBS 18917fi 18918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18919printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 18920if test "x$ac_cv_lib_dld_dld_link" = xyes 18921then : 18922 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18923fi 18924 18925 18926fi 18927 18928 18929fi 18930 18931 18932fi 18933 18934 18935fi 18936 18937 18938fi 18939 18940 ;; 18941 esac 18942 18943 if test no = "$lt_cv_dlopen"; then 18944 enable_dlopen=no 18945 else 18946 enable_dlopen=yes 18947 fi 18948 18949 case $lt_cv_dlopen in 18950 dlopen) 18951 save_CPPFLAGS=$CPPFLAGS 18952 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18953 18954 save_LDFLAGS=$LDFLAGS 18955 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18956 18957 save_LIBS=$LIBS 18958 LIBS="$lt_cv_dlopen_libs $LIBS" 18959 18960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18961printf %s "checking whether a program can dlopen itself... " >&6; } 18962if test ${lt_cv_dlopen_self+y} 18963then : 18964 printf %s "(cached) " >&6 18965else $as_nop 18966 if test yes = "$cross_compiling"; then : 18967 lt_cv_dlopen_self=cross 18968else 18969 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18970 lt_status=$lt_dlunknown 18971 cat > conftest.$ac_ext <<_LT_EOF 18972#line $LINENO "configure" 18973#include "confdefs.h" 18974 18975#if HAVE_DLFCN_H 18976#include <dlfcn.h> 18977#endif 18978 18979#include <stdio.h> 18980 18981#ifdef RTLD_GLOBAL 18982# define LT_DLGLOBAL RTLD_GLOBAL 18983#else 18984# ifdef DL_GLOBAL 18985# define LT_DLGLOBAL DL_GLOBAL 18986# else 18987# define LT_DLGLOBAL 0 18988# endif 18989#endif 18990 18991/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18992 find out it does not work in some platform. */ 18993#ifndef LT_DLLAZY_OR_NOW 18994# ifdef RTLD_LAZY 18995# define LT_DLLAZY_OR_NOW RTLD_LAZY 18996# else 18997# ifdef DL_LAZY 18998# define LT_DLLAZY_OR_NOW DL_LAZY 18999# else 19000# ifdef RTLD_NOW 19001# define LT_DLLAZY_OR_NOW RTLD_NOW 19002# else 19003# ifdef DL_NOW 19004# define LT_DLLAZY_OR_NOW DL_NOW 19005# else 19006# define LT_DLLAZY_OR_NOW 0 19007# endif 19008# endif 19009# endif 19010# endif 19011#endif 19012 19013/* When -fvisibility=hidden is used, assume the code has been annotated 19014 correspondingly for the symbols needed. */ 19015#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19016int fnord () __attribute__((visibility("default"))); 19017#endif 19018 19019int fnord () { return 42; } 19020int main () 19021{ 19022 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19023 int status = $lt_dlunknown; 19024 19025 if (self) 19026 { 19027 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19028 else 19029 { 19030 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19031 else puts (dlerror ()); 19032 } 19033 /* dlclose (self); */ 19034 } 19035 else 19036 puts (dlerror ()); 19037 19038 return status; 19039} 19040_LT_EOF 19041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19042 (eval $ac_link) 2>&5 19043 ac_status=$? 19044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19045 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19046 (./conftest; exit; ) >&5 2>/dev/null 19047 lt_status=$? 19048 case x$lt_status in 19049 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19050 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19051 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19052 esac 19053 else : 19054 # compilation failed 19055 lt_cv_dlopen_self=no 19056 fi 19057fi 19058rm -fr conftest* 19059 19060 19061fi 19062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19063printf "%s\n" "$lt_cv_dlopen_self" >&6; } 19064 19065 if test yes = "$lt_cv_dlopen_self"; then 19066 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19068printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19069if test ${lt_cv_dlopen_self_static+y} 19070then : 19071 printf %s "(cached) " >&6 19072else $as_nop 19073 if test yes = "$cross_compiling"; then : 19074 lt_cv_dlopen_self_static=cross 19075else 19076 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19077 lt_status=$lt_dlunknown 19078 cat > conftest.$ac_ext <<_LT_EOF 19079#line $LINENO "configure" 19080#include "confdefs.h" 19081 19082#if HAVE_DLFCN_H 19083#include <dlfcn.h> 19084#endif 19085 19086#include <stdio.h> 19087 19088#ifdef RTLD_GLOBAL 19089# define LT_DLGLOBAL RTLD_GLOBAL 19090#else 19091# ifdef DL_GLOBAL 19092# define LT_DLGLOBAL DL_GLOBAL 19093# else 19094# define LT_DLGLOBAL 0 19095# endif 19096#endif 19097 19098/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19099 find out it does not work in some platform. */ 19100#ifndef LT_DLLAZY_OR_NOW 19101# ifdef RTLD_LAZY 19102# define LT_DLLAZY_OR_NOW RTLD_LAZY 19103# else 19104# ifdef DL_LAZY 19105# define LT_DLLAZY_OR_NOW DL_LAZY 19106# else 19107# ifdef RTLD_NOW 19108# define LT_DLLAZY_OR_NOW RTLD_NOW 19109# else 19110# ifdef DL_NOW 19111# define LT_DLLAZY_OR_NOW DL_NOW 19112# else 19113# define LT_DLLAZY_OR_NOW 0 19114# endif 19115# endif 19116# endif 19117# endif 19118#endif 19119 19120/* When -fvisibility=hidden is used, assume the code has been annotated 19121 correspondingly for the symbols needed. */ 19122#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19123int fnord () __attribute__((visibility("default"))); 19124#endif 19125 19126int fnord () { return 42; } 19127int main () 19128{ 19129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19130 int status = $lt_dlunknown; 19131 19132 if (self) 19133 { 19134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19135 else 19136 { 19137 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19138 else puts (dlerror ()); 19139 } 19140 /* dlclose (self); */ 19141 } 19142 else 19143 puts (dlerror ()); 19144 19145 return status; 19146} 19147_LT_EOF 19148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19149 (eval $ac_link) 2>&5 19150 ac_status=$? 19151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19152 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19153 (./conftest; exit; ) >&5 2>/dev/null 19154 lt_status=$? 19155 case x$lt_status in 19156 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19157 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19158 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19159 esac 19160 else : 19161 # compilation failed 19162 lt_cv_dlopen_self_static=no 19163 fi 19164fi 19165rm -fr conftest* 19166 19167 19168fi 19169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19170printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19171 fi 19172 19173 CPPFLAGS=$save_CPPFLAGS 19174 LDFLAGS=$save_LDFLAGS 19175 LIBS=$save_LIBS 19176 ;; 19177 esac 19178 19179 case $lt_cv_dlopen_self in 19180 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19181 *) enable_dlopen_self=unknown ;; 19182 esac 19183 19184 case $lt_cv_dlopen_self_static in 19185 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19186 *) enable_dlopen_self_static=unknown ;; 19187 esac 19188fi 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201 19202 19203 19204 19205 19206striplib= 19207old_striplib= 19208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19209printf %s "checking whether stripping libraries is possible... " >&6; } 19210if test -z "$STRIP"; then 19211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19212printf "%s\n" "no" >&6; } 19213else 19214 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19215 old_striplib="$STRIP --strip-debug" 19216 striplib="$STRIP --strip-unneeded" 19217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19218printf "%s\n" "yes" >&6; } 19219 else 19220 case $host_os in 19221 darwin*) 19222 # FIXME - insert some real tests, host_os isn't really good enough 19223 striplib="$STRIP -x" 19224 old_striplib="$STRIP -S" 19225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19226printf "%s\n" "yes" >&6; } 19227 ;; 19228 freebsd*) 19229 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 19230 old_striplib="$STRIP --strip-debug" 19231 striplib="$STRIP --strip-unneeded" 19232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19233printf "%s\n" "yes" >&6; } 19234 else 19235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19236printf "%s\n" "no" >&6; } 19237 fi 19238 ;; 19239 *) 19240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19241printf "%s\n" "no" >&6; } 19242 ;; 19243 esac 19244 fi 19245fi 19246 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 # Report what library types will actually be built 19259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19260printf %s "checking if libtool supports shared libraries... " >&6; } 19261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19262printf "%s\n" "$can_build_shared" >&6; } 19263 19264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19265printf %s "checking whether to build shared libraries... " >&6; } 19266 test no = "$can_build_shared" && enable_shared=no 19267 19268 # On AIX, shared libraries and static libraries use the same namespace, and 19269 # are all built from PIC. 19270 case $host_os in 19271 aix3*) 19272 test yes = "$enable_shared" && enable_static=no 19273 if test -n "$RANLIB"; then 19274 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19275 postinstall_cmds='$RANLIB $lib' 19276 fi 19277 ;; 19278 19279 aix[4-9]*) 19280 if test ia64 != "$host_cpu"; then 19281 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19282 yes,aix,yes) ;; # shared object as lib.so file only 19283 yes,svr4,*) ;; # shared object as lib.so archive member only 19284 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19285 esac 19286 fi 19287 ;; 19288 esac 19289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19290printf "%s\n" "$enable_shared" >&6; } 19291 19292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19293printf %s "checking whether to build static libraries... " >&6; } 19294 # Make sure either enable_shared or enable_static is yes. 19295 test yes = "$enable_shared" || enable_static=yes 19296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19297printf "%s\n" "$enable_static" >&6; } 19298 19299 19300 19301 19302fi 19303ac_ext=c 19304ac_cpp='$CPP $CPPFLAGS' 19305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19307ac_compiler_gnu=$ac_cv_c_compiler_gnu 19308 19309CC=$lt_save_CC 19310 19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 ac_config_commands="$ac_config_commands libtool" 19326 19327 19328 19329 19330# Only expand once: 19331 19332 19333case $host_cpu in 19334 sparc*) 19335 CCASFLAGS="-x assembler-with-cpp -Wa,-Av9a" 19336 SPARC=yes 19337esac 19338# By default we simply use the C compiler to build assembly code. 19339 19340test "${CCAS+set}" = set || CCAS=$CC 19341test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 19342 19343 19344 19345depcc="$CCAS" am_compiler_list= 19346 19347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 19348printf %s "checking dependency style of $depcc... " >&6; } 19349if test ${am_cv_CCAS_dependencies_compiler_type+y} 19350then : 19351 printf %s "(cached) " >&6 19352else $as_nop 19353 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19354 # We make a subdir and do the tests there. Otherwise we can end up 19355 # making bogus files that we don't know about and never remove. For 19356 # instance it was reported that on HP-UX the gcc test will end up 19357 # making a dummy file named 'D' -- because '-MD' means "put the output 19358 # in D". 19359 rm -rf conftest.dir 19360 mkdir conftest.dir 19361 # Copy depcomp to subdir because otherwise we won't find it if we're 19362 # using a relative directory. 19363 cp "$am_depcomp" conftest.dir 19364 cd conftest.dir 19365 # We will build objects and dependencies in a subdirectory because 19366 # it helps to detect inapplicable dependency modes. For instance 19367 # both Tru64's cc and ICC support -MD to output dependencies as a 19368 # side effect of compilation, but ICC will put the dependencies in 19369 # the current directory while Tru64 will put them in the object 19370 # directory. 19371 mkdir sub 19372 19373 am_cv_CCAS_dependencies_compiler_type=none 19374 if test "$am_compiler_list" = ""; then 19375 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 19376 fi 19377 am__universal=false 19378 19379 19380 for depmode in $am_compiler_list; do 19381 # Setup a source with many dependencies, because some compilers 19382 # like to wrap large dependency lists on column 80 (with \), and 19383 # we should not choose a depcomp mode which is confused by this. 19384 # 19385 # We need to recreate these files for each test, as the compiler may 19386 # overwrite some of them when testing with obscure command lines. 19387 # This happens at least with the AIX C compiler. 19388 : > sub/conftest.c 19389 for i in 1 2 3 4 5 6; do 19390 echo '#include "conftst'$i'.h"' >> sub/conftest.c 19391 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 19392 # Solaris 10 /bin/sh. 19393 echo '/* dummy */' > sub/conftst$i.h 19394 done 19395 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 19396 19397 # We check with '-c' and '-o' for the sake of the "dashmstdout" 19398 # mode. It turns out that the SunPro C++ compiler does not properly 19399 # handle '-M -o', and we need to detect this. Also, some Intel 19400 # versions had trouble with output in subdirs. 19401 am__obj=sub/conftest.${OBJEXT-o} 19402 am__minus_obj="-o $am__obj" 19403 case $depmode in 19404 gcc) 19405 # This depmode causes a compiler race in universal mode. 19406 test "$am__universal" = false || continue 19407 ;; 19408 nosideeffect) 19409 # After this tag, mechanisms are not by side-effect, so they'll 19410 # only be used when explicitly requested. 19411 if test "x$enable_dependency_tracking" = xyes; then 19412 continue 19413 else 19414 break 19415 fi 19416 ;; 19417 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 19418 # This compiler won't grok '-c -o', but also, the minuso test has 19419 # not run yet. These depmodes are late enough in the game, and 19420 # so weak that their functioning should not be impacted. 19421 am__obj=conftest.${OBJEXT-o} 19422 am__minus_obj= 19423 ;; 19424 none) break ;; 19425 esac 19426 if depmode=$depmode \ 19427 source=sub/conftest.c object=$am__obj \ 19428 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 19429 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 19430 >/dev/null 2>conftest.err && 19431 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 19432 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 19433 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 19434 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 19435 # icc doesn't choke on unknown options, it will just issue warnings 19436 # or remarks (even with -Werror). So we grep stderr for any message 19437 # that says an option was ignored or not supported. 19438 # When given -MP, icc 7.0 and 7.1 complain thusly: 19439 # icc: Command line warning: ignoring option '-M'; no argument required 19440 # The diagnosis changed in icc 8.0: 19441 # icc: Command line remark: option '-MP' not supported 19442 if (grep 'ignoring option' conftest.err || 19443 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 19444 am_cv_CCAS_dependencies_compiler_type=$depmode 19445 break 19446 fi 19447 fi 19448 done 19449 19450 cd .. 19451 rm -rf conftest.dir 19452else 19453 am_cv_CCAS_dependencies_compiler_type=none 19454fi 19455 19456fi 19457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 19458printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; } 19459CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 19460 19461 if 19462 test "x$enable_dependency_tracking" != xno \ 19463 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 19464 am__fastdepCCAS_TRUE= 19465 am__fastdepCCAS_FALSE='#' 19466else 19467 am__fastdepCCAS_TRUE='#' 19468 am__fastdepCCAS_FALSE= 19469fi 19470 19471 19472 19473 19474 19475# Define a configure option for an alternate module directory 19476 19477# Check whether --with-xorg-module-dir was given. 19478if test ${with_xorg_module_dir+y} 19479then : 19480 withval=$with_xorg_module_dir; moduledir="$withval" 19481else $as_nop 19482 moduledir="$libdir/xorg/modules" 19483fi 19484 19485 19486# Store the list of server defined optional extensions in REQUIRED_MODULES 19487 19488 19489 SAVE_CFLAGS="$CFLAGS" 19490 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19492/* end confdefs.h. */ 19493 19494#include "xorg-server.h" 19495#if !defined RANDR 19496#error RANDR not defined 19497#endif 19498 19499int 19500main (void) 19501{ 19502 19503 ; 19504 return 0; 19505} 19506_ACEOF 19507if ac_fn_c_try_compile "$LINENO" 19508then : 19509 _EXT_CHECK=yes 19510else $as_nop 19511 _EXT_CHECK=no 19512fi 19513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19514 CFLAGS="$SAVE_CFLAGS" 19515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19516printf %s "checking if RANDR is defined... " >&6; } 19517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19518printf "%s\n" "$_EXT_CHECK" >&6; } 19519 if test "$_EXT_CHECK" != no; then 19520 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19521 fi 19522 19523 19524 19525 SAVE_CFLAGS="$CFLAGS" 19526 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19528/* end confdefs.h. */ 19529 19530#include "xorg-server.h" 19531#if !defined RENDER 19532#error RENDER not defined 19533#endif 19534 19535int 19536main (void) 19537{ 19538 19539 ; 19540 return 0; 19541} 19542_ACEOF 19543if ac_fn_c_try_compile "$LINENO" 19544then : 19545 _EXT_CHECK=yes 19546else $as_nop 19547 _EXT_CHECK=no 19548fi 19549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19550 CFLAGS="$SAVE_CFLAGS" 19551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19552printf %s "checking if RENDER is defined... " >&6; } 19553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19554printf "%s\n" "$_EXT_CHECK" >&6; } 19555 if test "$_EXT_CHECK" != no; then 19556 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19557 fi 19558 19559 19560 19561 SAVE_CFLAGS="$CFLAGS" 19562 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19564/* end confdefs.h. */ 19565 19566#include "xorg-server.h" 19567#if !defined DPMSExtension 19568#error DPMSExtension not defined 19569#endif 19570 19571int 19572main (void) 19573{ 19574 19575 ; 19576 return 0; 19577} 19578_ACEOF 19579if ac_fn_c_try_compile "$LINENO" 19580then : 19581 _EXT_CHECK=yes 19582else $as_nop 19583 _EXT_CHECK=no 19584fi 19585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19586 CFLAGS="$SAVE_CFLAGS" 19587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 19588printf %s "checking if DPMSExtension is defined... " >&6; } 19589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19590printf "%s\n" "$_EXT_CHECK" >&6; } 19591 if test "$_EXT_CHECK" != no; then 19592 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19593 fi 19594 19595 19596# Obtain compiler/linker options for the driver dependencies 19597 19598pkg_failed=no 19599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19600printf %s "checking for XORG... " >&6; } 19601 19602if test -n "$XORG_CFLAGS"; then 19603 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19604 elif test -n "$PKG_CONFIG"; then 19605 if test -n "$PKG_CONFIG" && \ 19606 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19607 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 19608 ac_status=$? 19609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19610 test $ac_status = 0; }; then 19611 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19612 test "x$?" != "x0" && pkg_failed=yes 19613else 19614 pkg_failed=yes 19615fi 19616 else 19617 pkg_failed=untried 19618fi 19619if test -n "$XORG_LIBS"; then 19620 pkg_cv_XORG_LIBS="$XORG_LIBS" 19621 elif test -n "$PKG_CONFIG"; then 19622 if test -n "$PKG_CONFIG" && \ 19623 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19624 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 19625 ac_status=$? 19626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19627 test $ac_status = 0; }; then 19628 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19629 test "x$?" != "x0" && pkg_failed=yes 19630else 19631 pkg_failed=yes 19632fi 19633 else 19634 pkg_failed=untried 19635fi 19636 19637 19638 19639if test $pkg_failed = yes; then 19640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19641printf "%s\n" "no" >&6; } 19642 19643if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19644 _pkg_short_errors_supported=yes 19645else 19646 _pkg_short_errors_supported=no 19647fi 19648 if test $_pkg_short_errors_supported = yes; then 19649 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19650 else 19651 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19652 fi 19653 # Put the nasty error message in config.log where it belongs 19654 echo "$XORG_PKG_ERRORS" >&5 19655 19656 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 19657 19658$XORG_PKG_ERRORS 19659 19660Consider adjusting the PKG_CONFIG_PATH environment variable if you 19661installed software in a non-standard prefix. 19662 19663Alternatively, you may set the environment variables XORG_CFLAGS 19664and XORG_LIBS to avoid the need to call pkg-config. 19665See the pkg-config man page for more details." "$LINENO" 5 19666elif test $pkg_failed = untried; then 19667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19668printf "%s\n" "no" >&6; } 19669 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19670printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19671as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19672is in your PATH or set the PKG_CONFIG environment variable to the full 19673path to pkg-config. 19674 19675Alternatively, you may set the environment variables XORG_CFLAGS 19676and XORG_LIBS to avoid the need to call pkg-config. 19677See the pkg-config man page for more details. 19678 19679To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19680See \`config.log' for more details" "$LINENO" 5; } 19681else 19682 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19683 XORG_LIBS=$pkg_cv_XORG_LIBS 19684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19685printf "%s\n" "yes" >&6; } 19686 19687fi 19688 19689pkg_failed=no 19690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 19691printf %s "checking for XEXT... " >&6; } 19692 19693if test -n "$XEXT_CFLAGS"; then 19694 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 19695 elif test -n "$PKG_CONFIG"; then 19696 if test -n "$PKG_CONFIG" && \ 19697 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19698 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19699 ac_status=$? 19700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19701 test $ac_status = 0; }; then 19702 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 19703 test "x$?" != "x0" && pkg_failed=yes 19704else 19705 pkg_failed=yes 19706fi 19707 else 19708 pkg_failed=untried 19709fi 19710if test -n "$XEXT_LIBS"; then 19711 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 19712 elif test -n "$PKG_CONFIG"; then 19713 if test -n "$PKG_CONFIG" && \ 19714 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19715 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19716 ac_status=$? 19717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19718 test $ac_status = 0; }; then 19719 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 19720 test "x$?" != "x0" && pkg_failed=yes 19721else 19722 pkg_failed=yes 19723fi 19724 else 19725 pkg_failed=untried 19726fi 19727 19728 19729 19730if test $pkg_failed = yes; then 19731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19732printf "%s\n" "no" >&6; } 19733 19734if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19735 _pkg_short_errors_supported=yes 19736else 19737 _pkg_short_errors_supported=no 19738fi 19739 if test $_pkg_short_errors_supported = yes; then 19740 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19741 else 19742 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19743 fi 19744 # Put the nasty error message in config.log where it belongs 19745 echo "$XEXT_PKG_ERRORS" >&5 19746 19747 HAVE_XEXTPROTO_71="no" 19748elif test $pkg_failed = untried; then 19749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19750printf "%s\n" "no" >&6; } 19751 HAVE_XEXTPROTO_71="no" 19752else 19753 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 19754 XEXT_LIBS=$pkg_cv_XEXT_LIBS 19755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19756printf "%s\n" "yes" >&6; } 19757 HAVE_XEXTPROTO_71="yes"; 19758printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 19759 19760fi 19761 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 19762 HAVE_XEXTPROTO_71_TRUE= 19763 HAVE_XEXTPROTO_71_FALSE='#' 19764else 19765 HAVE_XEXTPROTO_71_TRUE='#' 19766 HAVE_XEXTPROTO_71_FALSE= 19767fi 19768 19769 19770# Checks for libraries. 19771 19772# Check whether --enable-xaa was given. 19773if test ${enable_xaa+y} 19774then : 19775 enableval=$enable_xaa; XAA="$enableval" 19776else $as_nop 19777 XAA=auto 19778fi 19779 19780if test "x$XAA" != xno; then 19781 save_CFLAGS=$CFLAGS 19782 save_CPPFLAGS=$CPPFLAGS 19783 CFLAGS=$XORG_CFLAGS 19784 CPPFLAGS="$XORG_CFLAGS" 19785 for ac_header in xaa.h 19786do : 19787 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 19788if test "x$ac_cv_header_xaa_h" = xyes 19789then : 19790 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h 19791 XAA=yes 19792else $as_nop 19793 XAA=no 19794fi 19795 19796done 19797 CFLAGS=$save_CFLAGS 19798 CPPFLAGS=$save_CPPFLAGS 19799fi 19800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 19801printf %s "checking whether to include XAA support... " >&6; } 19802 if test "x$XAA" = xyes; then 19803 XAA_TRUE= 19804 XAA_FALSE='#' 19805else 19806 XAA_TRUE='#' 19807 XAA_FALSE= 19808fi 19809 19810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 19811printf "%s\n" "$XAA" >&6; } 19812 19813 if test x$SPARC = xyes; then 19814 SPARC_TRUE= 19815 SPARC_FALSE='#' 19816else 19817 SPARC_TRUE='#' 19818 SPARC_FALSE= 19819fi 19820 19821 19822 19823 19824DRIVER_NAME=sunffb 19825 19826 19827ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 19828 19829cat >confcache <<\_ACEOF 19830# This file is a shell script that caches the results of configure 19831# tests run on this system so they can be shared between configure 19832# scripts and configure runs, see configure's option --config-cache. 19833# It is not useful on other systems. If it contains results you don't 19834# want to keep, you may remove or edit it. 19835# 19836# config.status only pays attention to the cache file if you give it 19837# the --recheck option to rerun configure. 19838# 19839# `ac_cv_env_foo' variables (set or unset) will be overridden when 19840# loading this file, other *unset* `ac_cv_foo' will be assigned the 19841# following values. 19842 19843_ACEOF 19844 19845# The following way of writing the cache mishandles newlines in values, 19846# but we know of no workaround that is simple, portable, and efficient. 19847# So, we kill variables containing newlines. 19848# Ultrix sh set writes to stderr and can't be redirected directly, 19849# and sets the high bit in the cache file unless we assign to the vars. 19850( 19851 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19852 eval ac_val=\$$ac_var 19853 case $ac_val in #( 19854 *${as_nl}*) 19855 case $ac_var in #( 19856 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19857printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19858 esac 19859 case $ac_var in #( 19860 _ | IFS | as_nl) ;; #( 19861 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19862 *) { eval $ac_var=; unset $ac_var;} ;; 19863 esac ;; 19864 esac 19865 done 19866 19867 (set) 2>&1 | 19868 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19869 *${as_nl}ac_space=\ *) 19870 # `set' does not quote correctly, so add quotes: double-quote 19871 # substitution turns \\\\ into \\, and sed turns \\ into \. 19872 sed -n \ 19873 "s/'/'\\\\''/g; 19874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19875 ;; #( 19876 *) 19877 # `set' quotes correctly as required by POSIX, so do not add quotes. 19878 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19879 ;; 19880 esac | 19881 sort 19882) | 19883 sed ' 19884 /^ac_cv_env_/b end 19885 t clear 19886 :clear 19887 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19888 t end 19889 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19890 :end' >>confcache 19891if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19892 if test -w "$cache_file"; then 19893 if test "x$cache_file" != "x/dev/null"; then 19894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19895printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19896 if test ! -f "$cache_file" || test -h "$cache_file"; then 19897 cat confcache >"$cache_file" 19898 else 19899 case $cache_file in #( 19900 */* | ?:*) 19901 mv -f confcache "$cache_file"$$ && 19902 mv -f "$cache_file"$$ "$cache_file" ;; #( 19903 *) 19904 mv -f confcache "$cache_file" ;; 19905 esac 19906 fi 19907 fi 19908 else 19909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19910printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19911 fi 19912fi 19913rm -f confcache 19914 19915test "x$prefix" = xNONE && prefix=$ac_default_prefix 19916# Let make expand exec_prefix. 19917test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19918 19919DEFS=-DHAVE_CONFIG_H 19920 19921ac_libobjs= 19922ac_ltlibobjs= 19923U= 19924for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19925 # 1. Remove the extension, and $U if already installed. 19926 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19927 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19928 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19929 # will be set to the directory where LIBOBJS objects are built. 19930 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19931 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19932done 19933LIBOBJS=$ac_libobjs 19934 19935LTLIBOBJS=$ac_ltlibobjs 19936 19937 19938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19939printf %s "checking that generated files are newer than configure... " >&6; } 19940 if test -n "$am_sleep_pid"; then 19941 # Hide warnings about reused PIDs. 19942 wait $am_sleep_pid 2>/dev/null 19943 fi 19944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19945printf "%s\n" "done" >&6; } 19946 if test -n "$EXEEXT"; then 19947 am__EXEEXT_TRUE= 19948 am__EXEEXT_FALSE='#' 19949else 19950 am__EXEEXT_TRUE='#' 19951 am__EXEEXT_FALSE= 19952fi 19953 19954if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19955 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19956Usually this means the macro was only invoked conditionally." "$LINENO" 5 19957fi 19958if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19959 as_fn_error $? "conditional \"AMDEP\" was never defined. 19960Usually this means the macro was only invoked conditionally." "$LINENO" 5 19961fi 19962if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19963 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19964Usually this means the macro was only invoked conditionally." "$LINENO" 5 19965fi 19966if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 19967 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 19968Usually this means the macro was only invoked conditionally." "$LINENO" 5 19969fi 19970if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 19971 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 19972Usually this means the macro was only invoked conditionally." "$LINENO" 5 19973fi 19974if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 19975 as_fn_error $? "conditional \"XAA\" was never defined. 19976Usually this means the macro was only invoked conditionally." "$LINENO" 5 19977fi 19978if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then 19979 as_fn_error $? "conditional \"SPARC\" was never defined. 19980Usually this means the macro was only invoked conditionally." "$LINENO" 5 19981fi 19982 19983: "${CONFIG_STATUS=./config.status}" 19984ac_write_fail=0 19985ac_clean_files_save=$ac_clean_files 19986ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19988printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19989as_write_fail=0 19990cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19991#! $SHELL 19992# Generated by $as_me. 19993# Run this file to recreate the current configuration. 19994# Compiler output produced by configure, useful for debugging 19995# configure, is in config.log if it exists. 19996 19997debug=false 19998ac_cs_recheck=false 19999ac_cs_silent=false 20000 20001SHELL=\${CONFIG_SHELL-$SHELL} 20002export SHELL 20003_ASEOF 20004cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20005## -------------------- ## 20006## M4sh Initialization. ## 20007## -------------------- ## 20008 20009# Be more Bourne compatible 20010DUALCASE=1; export DUALCASE # for MKS sh 20011as_nop=: 20012if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20013then : 20014 emulate sh 20015 NULLCMD=: 20016 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20017 # is contrary to our usage. Disable this feature. 20018 alias -g '${1+"$@"}'='"$@"' 20019 setopt NO_GLOB_SUBST 20020else $as_nop 20021 case `(set -o) 2>/dev/null` in #( 20022 *posix*) : 20023 set -o posix ;; #( 20024 *) : 20025 ;; 20026esac 20027fi 20028 20029 20030 20031# Reset variables that may have inherited troublesome values from 20032# the environment. 20033 20034# IFS needs to be set, to space, tab, and newline, in precisely that order. 20035# (If _AS_PATH_WALK were called with IFS unset, it would have the 20036# side effect of setting IFS to empty, thus disabling word splitting.) 20037# Quoting is to prevent editors from complaining about space-tab. 20038as_nl=' 20039' 20040export as_nl 20041IFS=" "" $as_nl" 20042 20043PS1='$ ' 20044PS2='> ' 20045PS4='+ ' 20046 20047# Ensure predictable behavior from utilities with locale-dependent output. 20048LC_ALL=C 20049export LC_ALL 20050LANGUAGE=C 20051export LANGUAGE 20052 20053# We cannot yet rely on "unset" to work, but we need these variables 20054# to be unset--not just set to an empty or harmless value--now, to 20055# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20056# also avoids known problems related to "unset" and subshell syntax 20057# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20058for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20059do eval test \${$as_var+y} \ 20060 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20061done 20062 20063# Ensure that fds 0, 1, and 2 are open. 20064if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20065if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20066if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20067 20068# The user is always right. 20069if ${PATH_SEPARATOR+false} :; then 20070 PATH_SEPARATOR=: 20071 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20072 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20073 PATH_SEPARATOR=';' 20074 } 20075fi 20076 20077 20078# Find who we are. Look in the path if we contain no directory separator. 20079as_myself= 20080case $0 in #(( 20081 *[\\/]* ) as_myself=$0 ;; 20082 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20083for as_dir in $PATH 20084do 20085 IFS=$as_save_IFS 20086 case $as_dir in #((( 20087 '') as_dir=./ ;; 20088 */) ;; 20089 *) as_dir=$as_dir/ ;; 20090 esac 20091 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20092 done 20093IFS=$as_save_IFS 20094 20095 ;; 20096esac 20097# We did not find ourselves, most probably we were run as `sh COMMAND' 20098# in which case we are not to be found in the path. 20099if test "x$as_myself" = x; then 20100 as_myself=$0 20101fi 20102if test ! -f "$as_myself"; then 20103 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20104 exit 1 20105fi 20106 20107 20108 20109# as_fn_error STATUS ERROR [LINENO LOG_FD] 20110# ---------------------------------------- 20111# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20112# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20113# script with STATUS, using 1 if that was 0. 20114as_fn_error () 20115{ 20116 as_status=$1; test $as_status -eq 0 && as_status=1 20117 if test "$4"; then 20118 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20120 fi 20121 printf "%s\n" "$as_me: error: $2" >&2 20122 as_fn_exit $as_status 20123} # as_fn_error 20124 20125 20126 20127# as_fn_set_status STATUS 20128# ----------------------- 20129# Set $? to STATUS, without forking. 20130as_fn_set_status () 20131{ 20132 return $1 20133} # as_fn_set_status 20134 20135# as_fn_exit STATUS 20136# ----------------- 20137# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20138as_fn_exit () 20139{ 20140 set +e 20141 as_fn_set_status $1 20142 exit $1 20143} # as_fn_exit 20144 20145# as_fn_unset VAR 20146# --------------- 20147# Portably unset VAR. 20148as_fn_unset () 20149{ 20150 { eval $1=; unset $1;} 20151} 20152as_unset=as_fn_unset 20153 20154# as_fn_append VAR VALUE 20155# ---------------------- 20156# Append the text in VALUE to the end of the definition contained in VAR. Take 20157# advantage of any shell optimizations that allow amortized linear growth over 20158# repeated appends, instead of the typical quadratic growth present in naive 20159# implementations. 20160if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20161then : 20162 eval 'as_fn_append () 20163 { 20164 eval $1+=\$2 20165 }' 20166else $as_nop 20167 as_fn_append () 20168 { 20169 eval $1=\$$1\$2 20170 } 20171fi # as_fn_append 20172 20173# as_fn_arith ARG... 20174# ------------------ 20175# Perform arithmetic evaluation on the ARGs, and store the result in the 20176# global $as_val. Take advantage of shells that can avoid forks. The arguments 20177# must be portable across $(()) and expr. 20178if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20179then : 20180 eval 'as_fn_arith () 20181 { 20182 as_val=$(( $* )) 20183 }' 20184else $as_nop 20185 as_fn_arith () 20186 { 20187 as_val=`expr "$@" || test $? -eq 1` 20188 } 20189fi # as_fn_arith 20190 20191 20192if expr a : '\(a\)' >/dev/null 2>&1 && 20193 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20194 as_expr=expr 20195else 20196 as_expr=false 20197fi 20198 20199if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20200 as_basename=basename 20201else 20202 as_basename=false 20203fi 20204 20205if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20206 as_dirname=dirname 20207else 20208 as_dirname=false 20209fi 20210 20211as_me=`$as_basename -- "$0" || 20212$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20213 X"$0" : 'X\(//\)$' \| \ 20214 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20215printf "%s\n" X/"$0" | 20216 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20217 s//\1/ 20218 q 20219 } 20220 /^X\/\(\/\/\)$/{ 20221 s//\1/ 20222 q 20223 } 20224 /^X\/\(\/\).*/{ 20225 s//\1/ 20226 q 20227 } 20228 s/.*/./; q'` 20229 20230# Avoid depending upon Character Ranges. 20231as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20232as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20233as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20234as_cr_digits='0123456789' 20235as_cr_alnum=$as_cr_Letters$as_cr_digits 20236 20237 20238# Determine whether it's possible to make 'echo' print without a newline. 20239# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20240# for compatibility with existing Makefiles. 20241ECHO_C= ECHO_N= ECHO_T= 20242case `echo -n x` in #((((( 20243-n*) 20244 case `echo 'xy\c'` in 20245 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20246 xy) ECHO_C='\c';; 20247 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20248 ECHO_T=' ';; 20249 esac;; 20250*) 20251 ECHO_N='-n';; 20252esac 20253 20254# For backward compatibility with old third-party macros, we provide 20255# the shell variables $as_echo and $as_echo_n. New code should use 20256# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20257as_echo='printf %s\n' 20258as_echo_n='printf %s' 20259 20260rm -f conf$$ conf$$.exe conf$$.file 20261if test -d conf$$.dir; then 20262 rm -f conf$$.dir/conf$$.file 20263else 20264 rm -f conf$$.dir 20265 mkdir conf$$.dir 2>/dev/null 20266fi 20267if (echo >conf$$.file) 2>/dev/null; then 20268 if ln -s conf$$.file conf$$ 2>/dev/null; then 20269 as_ln_s='ln -s' 20270 # ... but there are two gotchas: 20271 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20272 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20273 # In both cases, we have to default to `cp -pR'. 20274 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20275 as_ln_s='cp -pR' 20276 elif ln conf$$.file conf$$ 2>/dev/null; then 20277 as_ln_s=ln 20278 else 20279 as_ln_s='cp -pR' 20280 fi 20281else 20282 as_ln_s='cp -pR' 20283fi 20284rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20285rmdir conf$$.dir 2>/dev/null 20286 20287 20288# as_fn_mkdir_p 20289# ------------- 20290# Create "$as_dir" as a directory, including parents if necessary. 20291as_fn_mkdir_p () 20292{ 20293 20294 case $as_dir in #( 20295 -*) as_dir=./$as_dir;; 20296 esac 20297 test -d "$as_dir" || eval $as_mkdir_p || { 20298 as_dirs= 20299 while :; do 20300 case $as_dir in #( 20301 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20302 *) as_qdir=$as_dir;; 20303 esac 20304 as_dirs="'$as_qdir' $as_dirs" 20305 as_dir=`$as_dirname -- "$as_dir" || 20306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20307 X"$as_dir" : 'X\(//\)[^/]' \| \ 20308 X"$as_dir" : 'X\(//\)$' \| \ 20309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20310printf "%s\n" X"$as_dir" | 20311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20312 s//\1/ 20313 q 20314 } 20315 /^X\(\/\/\)[^/].*/{ 20316 s//\1/ 20317 q 20318 } 20319 /^X\(\/\/\)$/{ 20320 s//\1/ 20321 q 20322 } 20323 /^X\(\/\).*/{ 20324 s//\1/ 20325 q 20326 } 20327 s/.*/./; q'` 20328 test -d "$as_dir" && break 20329 done 20330 test -z "$as_dirs" || eval "mkdir $as_dirs" 20331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20332 20333 20334} # as_fn_mkdir_p 20335if mkdir -p . 2>/dev/null; then 20336 as_mkdir_p='mkdir -p "$as_dir"' 20337else 20338 test -d ./-p && rmdir ./-p 20339 as_mkdir_p=false 20340fi 20341 20342 20343# as_fn_executable_p FILE 20344# ----------------------- 20345# Test if FILE is an executable regular file. 20346as_fn_executable_p () 20347{ 20348 test -f "$1" && test -x "$1" 20349} # as_fn_executable_p 20350as_test_x='test -x' 20351as_executable_p=as_fn_executable_p 20352 20353# Sed expression to map a string onto a valid CPP name. 20354as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20355 20356# Sed expression to map a string onto a valid variable name. 20357as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20358 20359 20360exec 6>&1 20361## ----------------------------------- ## 20362## Main body of $CONFIG_STATUS script. ## 20363## ----------------------------------- ## 20364_ASEOF 20365test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20366 20367cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20368# Save the log message, to keep $0 and so on meaningful, and to 20369# report actual input values of CONFIG_FILES etc. instead of their 20370# values after options handling. 20371ac_log=" 20372This file was extended by xf86-video-sunffb $as_me 1.2.3, which was 20373generated by GNU Autoconf 2.71. Invocation command line was 20374 20375 CONFIG_FILES = $CONFIG_FILES 20376 CONFIG_HEADERS = $CONFIG_HEADERS 20377 CONFIG_LINKS = $CONFIG_LINKS 20378 CONFIG_COMMANDS = $CONFIG_COMMANDS 20379 $ $0 $@ 20380 20381on `(hostname || uname -n) 2>/dev/null | sed 1q` 20382" 20383 20384_ACEOF 20385 20386case $ac_config_files in *" 20387"*) set x $ac_config_files; shift; ac_config_files=$*;; 20388esac 20389 20390case $ac_config_headers in *" 20391"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20392esac 20393 20394 20395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20396# Files that config.status was made for. 20397config_files="$ac_config_files" 20398config_headers="$ac_config_headers" 20399config_commands="$ac_config_commands" 20400 20401_ACEOF 20402 20403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20404ac_cs_usage="\ 20405\`$as_me' instantiates files and other configuration actions 20406from templates according to the current configuration. Unless the files 20407and actions are specified as TAGs, all are instantiated by default. 20408 20409Usage: $0 [OPTION]... [TAG]... 20410 20411 -h, --help print this help, then exit 20412 -V, --version print version number and configuration settings, then exit 20413 --config print configuration, then exit 20414 -q, --quiet, --silent 20415 do not print progress messages 20416 -d, --debug don't remove temporary files 20417 --recheck update $as_me by reconfiguring in the same conditions 20418 --file=FILE[:TEMPLATE] 20419 instantiate the configuration file FILE 20420 --header=FILE[:TEMPLATE] 20421 instantiate the configuration header FILE 20422 20423Configuration files: 20424$config_files 20425 20426Configuration headers: 20427$config_headers 20428 20429Configuration commands: 20430$config_commands 20431 20432Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sunffb/-/issues>." 20433 20434_ACEOF 20435ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20436ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20437cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20438ac_cs_config='$ac_cs_config_escaped' 20439ac_cs_version="\\ 20440xf86-video-sunffb config.status 1.2.3 20441configured by $0, generated by GNU Autoconf 2.71, 20442 with options \\"\$ac_cs_config\\" 20443 20444Copyright (C) 2021 Free Software Foundation, Inc. 20445This config.status script is free software; the Free Software Foundation 20446gives unlimited permission to copy, distribute and modify it." 20447 20448ac_pwd='$ac_pwd' 20449srcdir='$srcdir' 20450INSTALL='$INSTALL' 20451MKDIR_P='$MKDIR_P' 20452AWK='$AWK' 20453test -n "\$AWK" || AWK=awk 20454_ACEOF 20455 20456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20457# The default lists apply if the user does not specify any file. 20458ac_need_defaults=: 20459while test $# != 0 20460do 20461 case $1 in 20462 --*=?*) 20463 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20464 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20465 ac_shift=: 20466 ;; 20467 --*=) 20468 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20469 ac_optarg= 20470 ac_shift=: 20471 ;; 20472 *) 20473 ac_option=$1 20474 ac_optarg=$2 20475 ac_shift=shift 20476 ;; 20477 esac 20478 20479 case $ac_option in 20480 # Handling of the options. 20481 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20482 ac_cs_recheck=: ;; 20483 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20484 printf "%s\n" "$ac_cs_version"; exit ;; 20485 --config | --confi | --conf | --con | --co | --c ) 20486 printf "%s\n" "$ac_cs_config"; exit ;; 20487 --debug | --debu | --deb | --de | --d | -d ) 20488 debug=: ;; 20489 --file | --fil | --fi | --f ) 20490 $ac_shift 20491 case $ac_optarg in 20492 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20493 '') as_fn_error $? "missing file argument" ;; 20494 esac 20495 as_fn_append CONFIG_FILES " '$ac_optarg'" 20496 ac_need_defaults=false;; 20497 --header | --heade | --head | --hea ) 20498 $ac_shift 20499 case $ac_optarg in 20500 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20501 esac 20502 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20503 ac_need_defaults=false;; 20504 --he | --h) 20505 # Conflict between --help and --header 20506 as_fn_error $? "ambiguous option: \`$1' 20507Try \`$0 --help' for more information.";; 20508 --help | --hel | -h ) 20509 printf "%s\n" "$ac_cs_usage"; exit ;; 20510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20511 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20512 ac_cs_silent=: ;; 20513 20514 # This is an error. 20515 -*) as_fn_error $? "unrecognized option: \`$1' 20516Try \`$0 --help' for more information." ;; 20517 20518 *) as_fn_append ac_config_targets " $1" 20519 ac_need_defaults=false ;; 20520 20521 esac 20522 shift 20523done 20524 20525ac_configure_extra_args= 20526 20527if $ac_cs_silent; then 20528 exec 6>/dev/null 20529 ac_configure_extra_args="$ac_configure_extra_args --silent" 20530fi 20531 20532_ACEOF 20533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20534if \$ac_cs_recheck; then 20535 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20536 shift 20537 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20538 CONFIG_SHELL='$SHELL' 20539 export CONFIG_SHELL 20540 exec "\$@" 20541fi 20542 20543_ACEOF 20544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20545exec 5>>config.log 20546{ 20547 echo 20548 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20549## Running $as_me. ## 20550_ASBOX 20551 printf "%s\n" "$ac_log" 20552} >&5 20553 20554_ACEOF 20555cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20556# 20557# INIT-COMMANDS 20558# 20559AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20560 20561 20562# The HP-UX ksh and POSIX shell print the target directory to stdout 20563# if CDPATH is set. 20564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20565 20566sed_quote_subst='$sed_quote_subst' 20567double_quote_subst='$double_quote_subst' 20568delay_variable_subst='$delay_variable_subst' 20569enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20570macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20571macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20572enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20573pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20574enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20575shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20576SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20577ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20578PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20579host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20580host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20581host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20582build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20583build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20584build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20585SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20586Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20587GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20588EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20589FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20590LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20591NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20592LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20593max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20594ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20595exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20596lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20597lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20598lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20599lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20600lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20601reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20602reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20603FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20604OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20605deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20606file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20607file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20608want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20609DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20610sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20611AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20612lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20613AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20614archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20615STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20616RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20617old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20618old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20619old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20620lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20621CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20622CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20623compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20624GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20625lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20626lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20627lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20628lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20629lt_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"`' 20630lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20631nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20632lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20633lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20634objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20635MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20636lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20637lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20638lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20639lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20640lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20641need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20642MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20643DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20644NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20645LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20646OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20647OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20648libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20649shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20650extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20651archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20652enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20653export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20654whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20655compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20656old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20657old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20658archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20659archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20660module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20661module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20662with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20663allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20664no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20665hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20666hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20667hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20668hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20669hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20670hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20671hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20672inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20673link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20674always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20675export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20676exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20677include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20678prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20679postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20680file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20681variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20682need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20683need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20684version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20685runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20686shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20687shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20688libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20689library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20690soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20691install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20692postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20693postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20694finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20695finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20696hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20697sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20698configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20699configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20700hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20701enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20702enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20703enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20704old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20705striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20706 20707LTCC='$LTCC' 20708LTCFLAGS='$LTCFLAGS' 20709compiler='$compiler_DEFAULT' 20710 20711# A function that is used when there is no print builtin or printf. 20712func_fallback_echo () 20713{ 20714 eval 'cat <<_LTECHO_EOF 20715\$1 20716_LTECHO_EOF' 20717} 20718 20719# Quote evaled strings. 20720for var in SHELL \ 20721ECHO \ 20722PATH_SEPARATOR \ 20723SED \ 20724GREP \ 20725EGREP \ 20726FGREP \ 20727LD \ 20728NM \ 20729LN_S \ 20730lt_SP2NL \ 20731lt_NL2SP \ 20732reload_flag \ 20733FILECMD \ 20734OBJDUMP \ 20735deplibs_check_method \ 20736file_magic_cmd \ 20737file_magic_glob \ 20738want_nocaseglob \ 20739DLLTOOL \ 20740sharedlib_from_linklib_cmd \ 20741AR \ 20742archiver_list_spec \ 20743STRIP \ 20744RANLIB \ 20745CC \ 20746CFLAGS \ 20747compiler \ 20748lt_cv_sys_global_symbol_pipe \ 20749lt_cv_sys_global_symbol_to_cdecl \ 20750lt_cv_sys_global_symbol_to_import \ 20751lt_cv_sys_global_symbol_to_c_name_address \ 20752lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20753lt_cv_nm_interface \ 20754nm_file_list_spec \ 20755lt_cv_truncate_bin \ 20756lt_prog_compiler_no_builtin_flag \ 20757lt_prog_compiler_pic \ 20758lt_prog_compiler_wl \ 20759lt_prog_compiler_static \ 20760lt_cv_prog_compiler_c_o \ 20761need_locks \ 20762MANIFEST_TOOL \ 20763DSYMUTIL \ 20764NMEDIT \ 20765LIPO \ 20766OTOOL \ 20767OTOOL64 \ 20768shrext_cmds \ 20769export_dynamic_flag_spec \ 20770whole_archive_flag_spec \ 20771compiler_needs_object \ 20772with_gnu_ld \ 20773allow_undefined_flag \ 20774no_undefined_flag \ 20775hardcode_libdir_flag_spec \ 20776hardcode_libdir_separator \ 20777exclude_expsyms \ 20778include_expsyms \ 20779file_list_spec \ 20780variables_saved_for_relink \ 20781libname_spec \ 20782library_names_spec \ 20783soname_spec \ 20784install_override_mode \ 20785finish_eval \ 20786old_striplib \ 20787striplib; do 20788 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20789 *[\\\\\\\`\\"\\\$]*) 20790 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20791 ;; 20792 *) 20793 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20794 ;; 20795 esac 20796done 20797 20798# Double-quote double-evaled strings. 20799for var in reload_cmds \ 20800old_postinstall_cmds \ 20801old_postuninstall_cmds \ 20802old_archive_cmds \ 20803extract_expsyms_cmds \ 20804old_archive_from_new_cmds \ 20805old_archive_from_expsyms_cmds \ 20806archive_cmds \ 20807archive_expsym_cmds \ 20808module_cmds \ 20809module_expsym_cmds \ 20810export_symbols_cmds \ 20811prelink_cmds \ 20812postlink_cmds \ 20813postinstall_cmds \ 20814postuninstall_cmds \ 20815finish_cmds \ 20816sys_lib_search_path_spec \ 20817configure_time_dlsearch_path \ 20818configure_time_lt_sys_library_path; do 20819 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20820 *[\\\\\\\`\\"\\\$]*) 20821 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20822 ;; 20823 *) 20824 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20825 ;; 20826 esac 20827done 20828 20829ac_aux_dir='$ac_aux_dir' 20830 20831# See if we are running on zsh, and set the options that allow our 20832# commands through without removal of \ escapes INIT. 20833if test -n "\${ZSH_VERSION+set}"; then 20834 setopt NO_GLOB_SUBST 20835fi 20836 20837 20838 PACKAGE='$PACKAGE' 20839 VERSION='$VERSION' 20840 RM='$RM' 20841 ofile='$ofile' 20842 20843 20844 20845 20846_ACEOF 20847 20848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20849 20850# Handling of arguments. 20851for ac_config_target in $ac_config_targets 20852do 20853 case $ac_config_target in 20854 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20855 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20856 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20857 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20858 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20859 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20860 20861 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20862 esac 20863done 20864 20865 20866# If the user did not use the arguments to specify the items to instantiate, 20867# then the envvar interface is used. Set only those that are not. 20868# We use the long form for the default assignment because of an extremely 20869# bizarre bug on SunOS 4.1.3. 20870if $ac_need_defaults; then 20871 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20872 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20873 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20874fi 20875 20876# Have a temporary directory for convenience. Make it in the build tree 20877# simply because there is no reason against having it here, and in addition, 20878# creating and moving files from /tmp can sometimes cause problems. 20879# Hook for its removal unless debugging. 20880# Note that there is a small window in which the directory will not be cleaned: 20881# after its creation but before its name has been assigned to `$tmp'. 20882$debug || 20883{ 20884 tmp= ac_tmp= 20885 trap 'exit_status=$? 20886 : "${ac_tmp:=$tmp}" 20887 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20888' 0 20889 trap 'as_fn_exit 1' 1 2 13 15 20890} 20891# Create a (secure) tmp directory for tmp files. 20892 20893{ 20894 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20895 test -d "$tmp" 20896} || 20897{ 20898 tmp=./conf$$-$RANDOM 20899 (umask 077 && mkdir "$tmp") 20900} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20901ac_tmp=$tmp 20902 20903# Set up the scripts for CONFIG_FILES section. 20904# No need to generate them if there are no CONFIG_FILES. 20905# This happens for instance with `./config.status config.h'. 20906if test -n "$CONFIG_FILES"; then 20907 20908 20909ac_cr=`echo X | tr X '\015'` 20910# On cygwin, bash can eat \r inside `` if the user requested igncr. 20911# But we know of no other shell where ac_cr would be empty at this 20912# point, so we can use a bashism as a fallback. 20913if test "x$ac_cr" = x; then 20914 eval ac_cr=\$\'\\r\' 20915fi 20916ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20917if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20918 ac_cs_awk_cr='\\r' 20919else 20920 ac_cs_awk_cr=$ac_cr 20921fi 20922 20923echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20924_ACEOF 20925 20926 20927{ 20928 echo "cat >conf$$subs.awk <<_ACEOF" && 20929 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20930 echo "_ACEOF" 20931} >conf$$subs.sh || 20932 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20933ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20934ac_delim='%!_!# ' 20935for ac_last_try in false false false false false :; do 20936 . ./conf$$subs.sh || 20937 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20938 20939 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20940 if test $ac_delim_n = $ac_delim_num; then 20941 break 20942 elif $ac_last_try; then 20943 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20944 else 20945 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20946 fi 20947done 20948rm -f conf$$subs.sh 20949 20950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20951cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20952_ACEOF 20953sed -n ' 20954h 20955s/^/S["/; s/!.*/"]=/ 20956p 20957g 20958s/^[^!]*!// 20959:repl 20960t repl 20961s/'"$ac_delim"'$// 20962t delim 20963:nl 20964h 20965s/\(.\{148\}\)..*/\1/ 20966t more1 20967s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20968p 20969n 20970b repl 20971:more1 20972s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20973p 20974g 20975s/.\{148\}// 20976t nl 20977:delim 20978h 20979s/\(.\{148\}\)..*/\1/ 20980t more2 20981s/["\\]/\\&/g; s/^/"/; s/$/"/ 20982p 20983b 20984:more2 20985s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20986p 20987g 20988s/.\{148\}// 20989t delim 20990' <conf$$subs.awk | sed ' 20991/^[^""]/{ 20992 N 20993 s/\n// 20994} 20995' >>$CONFIG_STATUS || ac_write_fail=1 20996rm -f conf$$subs.awk 20997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20998_ACAWK 20999cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21000 for (key in S) S_is_set[key] = 1 21001 FS = "" 21002 21003} 21004{ 21005 line = $ 0 21006 nfields = split(line, field, "@") 21007 substed = 0 21008 len = length(field[1]) 21009 for (i = 2; i < nfields; i++) { 21010 key = field[i] 21011 keylen = length(key) 21012 if (S_is_set[key]) { 21013 value = S[key] 21014 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21015 len += length(value) + length(field[++i]) 21016 substed = 1 21017 } else 21018 len += 1 + keylen 21019 } 21020 21021 print line 21022} 21023 21024_ACAWK 21025_ACEOF 21026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21027if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21028 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21029else 21030 cat 21031fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21032 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21033_ACEOF 21034 21035# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21036# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21037# trailing colons and then remove the whole line if VPATH becomes empty 21038# (actually we leave an empty line to preserve line numbers). 21039if test "x$srcdir" = x.; then 21040 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21041h 21042s/// 21043s/^/:/ 21044s/[ ]*$/:/ 21045s/:\$(srcdir):/:/g 21046s/:\${srcdir}:/:/g 21047s/:@srcdir@:/:/g 21048s/^:*// 21049s/:*$// 21050x 21051s/\(=[ ]*\).*/\1/ 21052G 21053s/\n// 21054s/^[^=]*=[ ]*$// 21055}' 21056fi 21057 21058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21059fi # test -n "$CONFIG_FILES" 21060 21061# Set up the scripts for CONFIG_HEADERS section. 21062# No need to generate them if there are no CONFIG_HEADERS. 21063# This happens for instance with `./config.status Makefile'. 21064if test -n "$CONFIG_HEADERS"; then 21065cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21066BEGIN { 21067_ACEOF 21068 21069# Transform confdefs.h into an awk script `defines.awk', embedded as 21070# here-document in config.status, that substitutes the proper values into 21071# config.h.in to produce config.h. 21072 21073# Create a delimiter string that does not exist in confdefs.h, to ease 21074# handling of long lines. 21075ac_delim='%!_!# ' 21076for ac_last_try in false false :; do 21077 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21078 if test -z "$ac_tt"; then 21079 break 21080 elif $ac_last_try; then 21081 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21082 else 21083 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21084 fi 21085done 21086 21087# For the awk script, D is an array of macro values keyed by name, 21088# likewise P contains macro parameters if any. Preserve backslash 21089# newline sequences. 21090 21091ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21092sed -n ' 21093s/.\{148\}/&'"$ac_delim"'/g 21094t rset 21095:rset 21096s/^[ ]*#[ ]*define[ ][ ]*/ / 21097t def 21098d 21099:def 21100s/\\$// 21101t bsnl 21102s/["\\]/\\&/g 21103s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21104D["\1"]=" \3"/p 21105s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21106d 21107:bsnl 21108s/["\\]/\\&/g 21109s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21110D["\1"]=" \3\\\\\\n"\\/p 21111t cont 21112s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21113t cont 21114d 21115:cont 21116n 21117s/.\{148\}/&'"$ac_delim"'/g 21118t clear 21119:clear 21120s/\\$// 21121t bsnlc 21122s/["\\]/\\&/g; s/^/"/; s/$/"/p 21123d 21124:bsnlc 21125s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21126b cont 21127' <confdefs.h | sed ' 21128s/'"$ac_delim"'/"\\\ 21129"/g' >>$CONFIG_STATUS || ac_write_fail=1 21130 21131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21132 for (key in D) D_is_set[key] = 1 21133 FS = "" 21134} 21135/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21136 line = \$ 0 21137 split(line, arg, " ") 21138 if (arg[1] == "#") { 21139 defundef = arg[2] 21140 mac1 = arg[3] 21141 } else { 21142 defundef = substr(arg[1], 2) 21143 mac1 = arg[2] 21144 } 21145 split(mac1, mac2, "(") #) 21146 macro = mac2[1] 21147 prefix = substr(line, 1, index(line, defundef) - 1) 21148 if (D_is_set[macro]) { 21149 # Preserve the white space surrounding the "#". 21150 print prefix "define", macro P[macro] D[macro] 21151 next 21152 } else { 21153 # Replace #undef with comments. This is necessary, for example, 21154 # in the case of _POSIX_SOURCE, which is predefined and required 21155 # on some systems where configure will not decide to define it. 21156 if (defundef == "undef") { 21157 print "/*", prefix defundef, macro, "*/" 21158 next 21159 } 21160 } 21161} 21162{ print } 21163_ACAWK 21164_ACEOF 21165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21166 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21167fi # test -n "$CONFIG_HEADERS" 21168 21169 21170eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21171shift 21172for ac_tag 21173do 21174 case $ac_tag in 21175 :[FHLC]) ac_mode=$ac_tag; continue;; 21176 esac 21177 case $ac_mode$ac_tag in 21178 :[FHL]*:*);; 21179 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21180 :[FH]-) ac_tag=-:-;; 21181 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21182 esac 21183 ac_save_IFS=$IFS 21184 IFS=: 21185 set x $ac_tag 21186 IFS=$ac_save_IFS 21187 shift 21188 ac_file=$1 21189 shift 21190 21191 case $ac_mode in 21192 :L) ac_source=$1;; 21193 :[FH]) 21194 ac_file_inputs= 21195 for ac_f 21196 do 21197 case $ac_f in 21198 -) ac_f="$ac_tmp/stdin";; 21199 *) # Look for the file first in the build tree, then in the source tree 21200 # (if the path is not absolute). The absolute path cannot be DOS-style, 21201 # because $ac_f cannot contain `:'. 21202 test -f "$ac_f" || 21203 case $ac_f in 21204 [\\/$]*) false;; 21205 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21206 esac || 21207 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21208 esac 21209 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21210 as_fn_append ac_file_inputs " '$ac_f'" 21211 done 21212 21213 # Let's still pretend it is `configure' which instantiates (i.e., don't 21214 # use $as_me), people would be surprised to read: 21215 # /* config.h. Generated by config.status. */ 21216 configure_input='Generated from '` 21217 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21218 `' by configure.' 21219 if test x"$ac_file" != x-; then 21220 configure_input="$ac_file. $configure_input" 21221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21222printf "%s\n" "$as_me: creating $ac_file" >&6;} 21223 fi 21224 # Neutralize special characters interpreted by sed in replacement strings. 21225 case $configure_input in #( 21226 *\&* | *\|* | *\\* ) 21227 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21228 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21229 *) ac_sed_conf_input=$configure_input;; 21230 esac 21231 21232 case $ac_tag in 21233 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21234 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21235 esac 21236 ;; 21237 esac 21238 21239 ac_dir=`$as_dirname -- "$ac_file" || 21240$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21241 X"$ac_file" : 'X\(//\)[^/]' \| \ 21242 X"$ac_file" : 'X\(//\)$' \| \ 21243 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21244printf "%s\n" X"$ac_file" | 21245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21246 s//\1/ 21247 q 21248 } 21249 /^X\(\/\/\)[^/].*/{ 21250 s//\1/ 21251 q 21252 } 21253 /^X\(\/\/\)$/{ 21254 s//\1/ 21255 q 21256 } 21257 /^X\(\/\).*/{ 21258 s//\1/ 21259 q 21260 } 21261 s/.*/./; q'` 21262 as_dir="$ac_dir"; as_fn_mkdir_p 21263 ac_builddir=. 21264 21265case "$ac_dir" in 21266.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21267*) 21268 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21269 # A ".." for each directory in $ac_dir_suffix. 21270 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21271 case $ac_top_builddir_sub in 21272 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21273 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21274 esac ;; 21275esac 21276ac_abs_top_builddir=$ac_pwd 21277ac_abs_builddir=$ac_pwd$ac_dir_suffix 21278# for backward compatibility: 21279ac_top_builddir=$ac_top_build_prefix 21280 21281case $srcdir in 21282 .) # We are building in place. 21283 ac_srcdir=. 21284 ac_top_srcdir=$ac_top_builddir_sub 21285 ac_abs_top_srcdir=$ac_pwd ;; 21286 [\\/]* | ?:[\\/]* ) # Absolute name. 21287 ac_srcdir=$srcdir$ac_dir_suffix; 21288 ac_top_srcdir=$srcdir 21289 ac_abs_top_srcdir=$srcdir ;; 21290 *) # Relative name. 21291 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21292 ac_top_srcdir=$ac_top_build_prefix$srcdir 21293 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21294esac 21295ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21296 21297 21298 case $ac_mode in 21299 :F) 21300 # 21301 # CONFIG_FILE 21302 # 21303 21304 case $INSTALL in 21305 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21306 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21307 esac 21308 ac_MKDIR_P=$MKDIR_P 21309 case $MKDIR_P in 21310 [\\/$]* | ?:[\\/]* ) ;; 21311 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21312 esac 21313_ACEOF 21314 21315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21316# If the template does not know about datarootdir, expand it. 21317# FIXME: This hack should be removed a few years after 2.60. 21318ac_datarootdir_hack=; ac_datarootdir_seen= 21319ac_sed_dataroot=' 21320/datarootdir/ { 21321 p 21322 q 21323} 21324/@datadir@/p 21325/@docdir@/p 21326/@infodir@/p 21327/@localedir@/p 21328/@mandir@/p' 21329case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21330*datarootdir*) ac_datarootdir_seen=yes;; 21331*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21333printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21334_ACEOF 21335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21336 ac_datarootdir_hack=' 21337 s&@datadir@&$datadir&g 21338 s&@docdir@&$docdir&g 21339 s&@infodir@&$infodir&g 21340 s&@localedir@&$localedir&g 21341 s&@mandir@&$mandir&g 21342 s&\\\${datarootdir}&$datarootdir&g' ;; 21343esac 21344_ACEOF 21345 21346# Neutralize VPATH when `$srcdir' = `.'. 21347# Shell code in configure.ac might set extrasub. 21348# FIXME: do we really want to maintain this feature? 21349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21350ac_sed_extra="$ac_vpsub 21351$extrasub 21352_ACEOF 21353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21354:t 21355/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21356s|@configure_input@|$ac_sed_conf_input|;t t 21357s&@top_builddir@&$ac_top_builddir_sub&;t t 21358s&@top_build_prefix@&$ac_top_build_prefix&;t t 21359s&@srcdir@&$ac_srcdir&;t t 21360s&@abs_srcdir@&$ac_abs_srcdir&;t t 21361s&@top_srcdir@&$ac_top_srcdir&;t t 21362s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21363s&@builddir@&$ac_builddir&;t t 21364s&@abs_builddir@&$ac_abs_builddir&;t t 21365s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21366s&@INSTALL@&$ac_INSTALL&;t t 21367s&@MKDIR_P@&$ac_MKDIR_P&;t t 21368$ac_datarootdir_hack 21369" 21370eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21371 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21372 21373test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21374 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21375 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21376 "$ac_tmp/out"`; test -z "$ac_out"; } && 21377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21378which seems to be undefined. Please make sure it is defined" >&5 21379printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21380which seems to be undefined. Please make sure it is defined" >&2;} 21381 21382 rm -f "$ac_tmp/stdin" 21383 case $ac_file in 21384 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21385 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21386 esac \ 21387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21388 ;; 21389 :H) 21390 # 21391 # CONFIG_HEADER 21392 # 21393 if test x"$ac_file" != x-; then 21394 { 21395 printf "%s\n" "/* $configure_input */" >&1 \ 21396 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21397 } >"$ac_tmp/config.h" \ 21398 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21399 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21401printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21402 else 21403 rm -f "$ac_file" 21404 mv "$ac_tmp/config.h" "$ac_file" \ 21405 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21406 fi 21407 else 21408 printf "%s\n" "/* $configure_input */" >&1 \ 21409 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21410 || as_fn_error $? "could not create -" "$LINENO" 5 21411 fi 21412# Compute "$ac_file"'s index in $config_headers. 21413_am_arg="$ac_file" 21414_am_stamp_count=1 21415for _am_header in $config_headers :; do 21416 case $_am_header in 21417 $_am_arg | $_am_arg:* ) 21418 break ;; 21419 * ) 21420 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21421 esac 21422done 21423echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21424$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21425 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21426 X"$_am_arg" : 'X\(//\)$' \| \ 21427 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21428printf "%s\n" X"$_am_arg" | 21429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21430 s//\1/ 21431 q 21432 } 21433 /^X\(\/\/\)[^/].*/{ 21434 s//\1/ 21435 q 21436 } 21437 /^X\(\/\/\)$/{ 21438 s//\1/ 21439 q 21440 } 21441 /^X\(\/\).*/{ 21442 s//\1/ 21443 q 21444 } 21445 s/.*/./; q'`/stamp-h$_am_stamp_count 21446 ;; 21447 21448 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21449printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21450 ;; 21451 esac 21452 21453 21454 case $ac_file$ac_mode in 21455 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21456 # Older Autoconf quotes --file arguments for eval, but not when files 21457 # are listed without --file. Let's play safe and only enable the eval 21458 # if we detect the quoting. 21459 # TODO: see whether this extra hack can be removed once we start 21460 # requiring Autoconf 2.70 or later. 21461 case $CONFIG_FILES in #( 21462 *\'*) : 21463 eval set x "$CONFIG_FILES" ;; #( 21464 *) : 21465 set x $CONFIG_FILES ;; #( 21466 *) : 21467 ;; 21468esac 21469 shift 21470 # Used to flag and report bootstrapping failures. 21471 am_rc=0 21472 for am_mf 21473 do 21474 # Strip MF so we end up with the name of the file. 21475 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21476 # Check whether this is an Automake generated Makefile which includes 21477 # dependency-tracking related rules and includes. 21478 # Grep'ing the whole file directly is not great: AIX grep has a line 21479 # limit of 2048, but all sed's we know have understand at least 4000. 21480 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21481 || continue 21482 am_dirpart=`$as_dirname -- "$am_mf" || 21483$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21484 X"$am_mf" : 'X\(//\)[^/]' \| \ 21485 X"$am_mf" : 'X\(//\)$' \| \ 21486 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21487printf "%s\n" X"$am_mf" | 21488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21489 s//\1/ 21490 q 21491 } 21492 /^X\(\/\/\)[^/].*/{ 21493 s//\1/ 21494 q 21495 } 21496 /^X\(\/\/\)$/{ 21497 s//\1/ 21498 q 21499 } 21500 /^X\(\/\).*/{ 21501 s//\1/ 21502 q 21503 } 21504 s/.*/./; q'` 21505 am_filepart=`$as_basename -- "$am_mf" || 21506$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21507 X"$am_mf" : 'X\(//\)$' \| \ 21508 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21509printf "%s\n" X/"$am_mf" | 21510 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21511 s//\1/ 21512 q 21513 } 21514 /^X\/\(\/\/\)$/{ 21515 s//\1/ 21516 q 21517 } 21518 /^X\/\(\/\).*/{ 21519 s//\1/ 21520 q 21521 } 21522 s/.*/./; q'` 21523 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21524 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21525 | $MAKE -f - am--depfiles" >&5 21526 (cd "$am_dirpart" \ 21527 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21528 | $MAKE -f - am--depfiles) >&5 2>&5 21529 ac_status=$? 21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21531 (exit $ac_status); } || am_rc=$? 21532 done 21533 if test $am_rc -ne 0; then 21534 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21535printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21536as_fn_error $? "Something went wrong bootstrapping makefile fragments 21537 for automatic dependency tracking. If GNU make was not used, consider 21538 re-running the configure script with MAKE=\"gmake\" (or whatever is 21539 necessary). You can also try re-running configure with the 21540 '--disable-dependency-tracking' option to at least be able to build 21541 the package (albeit without support for automatic dependency tracking). 21542See \`config.log' for more details" "$LINENO" 5; } 21543 fi 21544 { am_dirpart=; unset am_dirpart;} 21545 { am_filepart=; unset am_filepart;} 21546 { am_mf=; unset am_mf;} 21547 { am_rc=; unset am_rc;} 21548 rm -f conftest-deps.mk 21549} 21550 ;; 21551 "libtool":C) 21552 21553 # See if we are running on zsh, and set the options that allow our 21554 # commands through without removal of \ escapes. 21555 if test -n "${ZSH_VERSION+set}"; then 21556 setopt NO_GLOB_SUBST 21557 fi 21558 21559 cfgfile=${ofile}T 21560 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21561 $RM "$cfgfile" 21562 21563 cat <<_LT_EOF >> "$cfgfile" 21564#! $SHELL 21565# Generated automatically by $as_me ($PACKAGE) $VERSION 21566# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21567# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21568 21569# Provide generalized library-building support services. 21570# Written by Gordon Matzigkeit, 1996 21571 21572# Copyright (C) 2014 Free Software Foundation, Inc. 21573# This is free software; see the source for copying conditions. There is NO 21574# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21575 21576# GNU Libtool is free software; you can redistribute it and/or modify 21577# it under the terms of the GNU General Public License as published by 21578# the Free Software Foundation; either version 2 of of the License, or 21579# (at your option) any later version. 21580# 21581# As a special exception to the GNU General Public License, if you 21582# distribute this file as part of a program or library that is built 21583# using GNU Libtool, you may include this file under the same 21584# distribution terms that you use for the rest of that program. 21585# 21586# GNU Libtool is distributed in the hope that it will be useful, but 21587# WITHOUT ANY WARRANTY; without even the implied warranty of 21588# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21589# GNU General Public License for more details. 21590# 21591# You should have received a copy of the GNU General Public License 21592# along with this program. If not, see <http://www.gnu.org/licenses/>. 21593 21594 21595# The names of the tagged configurations supported by this script. 21596available_tags='' 21597 21598# Configured defaults for sys_lib_dlsearch_path munging. 21599: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21600 21601# ### BEGIN LIBTOOL CONFIG 21602 21603# Whether or not to build static libraries. 21604build_old_libs=$enable_static 21605 21606# Which release of libtool.m4 was used? 21607macro_version=$macro_version 21608macro_revision=$macro_revision 21609 21610# Whether or not to build shared libraries. 21611build_libtool_libs=$enable_shared 21612 21613# What type of objects to build. 21614pic_mode=$pic_mode 21615 21616# Whether or not to optimize for fast installation. 21617fast_install=$enable_fast_install 21618 21619# Shared archive member basename,for filename based shared library versioning on AIX. 21620shared_archive_member_spec=$shared_archive_member_spec 21621 21622# Shell to use when invoking shell scripts. 21623SHELL=$lt_SHELL 21624 21625# An echo program that protects backslashes. 21626ECHO=$lt_ECHO 21627 21628# The PATH separator for the build system. 21629PATH_SEPARATOR=$lt_PATH_SEPARATOR 21630 21631# The host system. 21632host_alias=$host_alias 21633host=$host 21634host_os=$host_os 21635 21636# The build system. 21637build_alias=$build_alias 21638build=$build 21639build_os=$build_os 21640 21641# A sed program that does not truncate output. 21642SED=$lt_SED 21643 21644# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21645Xsed="\$SED -e 1s/^X//" 21646 21647# A grep program that handles long lines. 21648GREP=$lt_GREP 21649 21650# An ERE matcher. 21651EGREP=$lt_EGREP 21652 21653# A literal string matcher. 21654FGREP=$lt_FGREP 21655 21656# A BSD- or MS-compatible name lister. 21657NM=$lt_NM 21658 21659# Whether we need soft or hard links. 21660LN_S=$lt_LN_S 21661 21662# What is the maximum length of a command? 21663max_cmd_len=$max_cmd_len 21664 21665# Object file suffix (normally "o"). 21666objext=$ac_objext 21667 21668# Executable file suffix (normally ""). 21669exeext=$exeext 21670 21671# whether the shell understands "unset". 21672lt_unset=$lt_unset 21673 21674# turn spaces into newlines. 21675SP2NL=$lt_lt_SP2NL 21676 21677# turn newlines into spaces. 21678NL2SP=$lt_lt_NL2SP 21679 21680# convert \$build file names to \$host format. 21681to_host_file_cmd=$lt_cv_to_host_file_cmd 21682 21683# convert \$build files to toolchain format. 21684to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21685 21686# A file(cmd) program that detects file types. 21687FILECMD=$lt_FILECMD 21688 21689# An object symbol dumper. 21690OBJDUMP=$lt_OBJDUMP 21691 21692# Method to check whether dependent libraries are shared objects. 21693deplibs_check_method=$lt_deplibs_check_method 21694 21695# Command to use when deplibs_check_method = "file_magic". 21696file_magic_cmd=$lt_file_magic_cmd 21697 21698# How to find potential files when deplibs_check_method = "file_magic". 21699file_magic_glob=$lt_file_magic_glob 21700 21701# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21702want_nocaseglob=$lt_want_nocaseglob 21703 21704# DLL creation program. 21705DLLTOOL=$lt_DLLTOOL 21706 21707# Command to associate shared and link libraries. 21708sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21709 21710# The archiver. 21711AR=$lt_AR 21712 21713# Flags to create an archive (by configure). 21714lt_ar_flags=$lt_ar_flags 21715 21716# Flags to create an archive. 21717AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21718 21719# How to feed a file listing to the archiver. 21720archiver_list_spec=$lt_archiver_list_spec 21721 21722# A symbol stripping program. 21723STRIP=$lt_STRIP 21724 21725# Commands used to install an old-style archive. 21726RANLIB=$lt_RANLIB 21727old_postinstall_cmds=$lt_old_postinstall_cmds 21728old_postuninstall_cmds=$lt_old_postuninstall_cmds 21729 21730# Whether to use a lock for old archive extraction. 21731lock_old_archive_extraction=$lock_old_archive_extraction 21732 21733# A C compiler. 21734LTCC=$lt_CC 21735 21736# LTCC compiler flags. 21737LTCFLAGS=$lt_CFLAGS 21738 21739# Take the output of nm and produce a listing of raw symbols and C names. 21740global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21741 21742# Transform the output of nm in a proper C declaration. 21743global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21744 21745# Transform the output of nm into a list of symbols to manually relocate. 21746global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21747 21748# Transform the output of nm in a C name address pair. 21749global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21750 21751# Transform the output of nm in a C name address pair when lib prefix is needed. 21752global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21753 21754# The name lister interface. 21755nm_interface=$lt_lt_cv_nm_interface 21756 21757# Specify filename containing input files for \$NM. 21758nm_file_list_spec=$lt_nm_file_list_spec 21759 21760# The root where to search for dependent libraries,and where our libraries should be installed. 21761lt_sysroot=$lt_sysroot 21762 21763# Command to truncate a binary pipe. 21764lt_truncate_bin=$lt_lt_cv_truncate_bin 21765 21766# The name of the directory that contains temporary libtool files. 21767objdir=$objdir 21768 21769# Used to examine libraries when file_magic_cmd begins with "file". 21770MAGIC_CMD=$MAGIC_CMD 21771 21772# Must we lock files when doing compilation? 21773need_locks=$lt_need_locks 21774 21775# Manifest tool. 21776MANIFEST_TOOL=$lt_MANIFEST_TOOL 21777 21778# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21779DSYMUTIL=$lt_DSYMUTIL 21780 21781# Tool to change global to local symbols on Mac OS X. 21782NMEDIT=$lt_NMEDIT 21783 21784# Tool to manipulate fat objects and archives on Mac OS X. 21785LIPO=$lt_LIPO 21786 21787# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21788OTOOL=$lt_OTOOL 21789 21790# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21791OTOOL64=$lt_OTOOL64 21792 21793# Old archive suffix (normally "a"). 21794libext=$libext 21795 21796# Shared library suffix (normally ".so"). 21797shrext_cmds=$lt_shrext_cmds 21798 21799# The commands to extract the exported symbol list from a shared archive. 21800extract_expsyms_cmds=$lt_extract_expsyms_cmds 21801 21802# Variables whose values should be saved in libtool wrapper scripts and 21803# restored at link time. 21804variables_saved_for_relink=$lt_variables_saved_for_relink 21805 21806# Do we need the "lib" prefix for modules? 21807need_lib_prefix=$need_lib_prefix 21808 21809# Do we need a version for libraries? 21810need_version=$need_version 21811 21812# Library versioning type. 21813version_type=$version_type 21814 21815# Shared library runtime path variable. 21816runpath_var=$runpath_var 21817 21818# Shared library path variable. 21819shlibpath_var=$shlibpath_var 21820 21821# Is shlibpath searched before the hard-coded library search path? 21822shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21823 21824# Format of library name prefix. 21825libname_spec=$lt_libname_spec 21826 21827# List of archive names. First name is the real one, the rest are links. 21828# The last name is the one that the linker finds with -lNAME 21829library_names_spec=$lt_library_names_spec 21830 21831# The coded name of the library, if different from the real name. 21832soname_spec=$lt_soname_spec 21833 21834# Permission mode override for installation of shared libraries. 21835install_override_mode=$lt_install_override_mode 21836 21837# Command to use after installation of a shared archive. 21838postinstall_cmds=$lt_postinstall_cmds 21839 21840# Command to use after uninstallation of a shared archive. 21841postuninstall_cmds=$lt_postuninstall_cmds 21842 21843# Commands used to finish a libtool library installation in a directory. 21844finish_cmds=$lt_finish_cmds 21845 21846# As "finish_cmds", except a single script fragment to be evaled but 21847# not shown. 21848finish_eval=$lt_finish_eval 21849 21850# Whether we should hardcode library paths into libraries. 21851hardcode_into_libs=$hardcode_into_libs 21852 21853# Compile-time system search path for libraries. 21854sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21855 21856# Detected run-time system search path for libraries. 21857sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21858 21859# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21860configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21861 21862# Whether dlopen is supported. 21863dlopen_support=$enable_dlopen 21864 21865# Whether dlopen of programs is supported. 21866dlopen_self=$enable_dlopen_self 21867 21868# Whether dlopen of statically linked programs is supported. 21869dlopen_self_static=$enable_dlopen_self_static 21870 21871# Commands to strip libraries. 21872old_striplib=$lt_old_striplib 21873striplib=$lt_striplib 21874 21875 21876# The linker used to build libraries. 21877LD=$lt_LD 21878 21879# How to create reloadable object files. 21880reload_flag=$lt_reload_flag 21881reload_cmds=$lt_reload_cmds 21882 21883# Commands used to build an old-style archive. 21884old_archive_cmds=$lt_old_archive_cmds 21885 21886# A language specific compiler. 21887CC=$lt_compiler 21888 21889# Is the compiler the GNU compiler? 21890with_gcc=$GCC 21891 21892# Compiler flag to turn off builtin functions. 21893no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21894 21895# Additional compiler flags for building library objects. 21896pic_flag=$lt_lt_prog_compiler_pic 21897 21898# How to pass a linker flag through the compiler. 21899wl=$lt_lt_prog_compiler_wl 21900 21901# Compiler flag to prevent dynamic linking. 21902link_static_flag=$lt_lt_prog_compiler_static 21903 21904# Does compiler simultaneously support -c and -o options? 21905compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21906 21907# Whether or not to add -lc for building shared libraries. 21908build_libtool_need_lc=$archive_cmds_need_lc 21909 21910# Whether or not to disallow shared libs when runtime libs are static. 21911allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21912 21913# Compiler flag to allow reflexive dlopens. 21914export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21915 21916# Compiler flag to generate shared objects directly from archives. 21917whole_archive_flag_spec=$lt_whole_archive_flag_spec 21918 21919# Whether the compiler copes with passing no objects directly. 21920compiler_needs_object=$lt_compiler_needs_object 21921 21922# Create an old-style archive from a shared archive. 21923old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21924 21925# Create a temporary old-style archive to link instead of a shared archive. 21926old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21927 21928# Commands used to build a shared archive. 21929archive_cmds=$lt_archive_cmds 21930archive_expsym_cmds=$lt_archive_expsym_cmds 21931 21932# Commands used to build a loadable module if different from building 21933# a shared archive. 21934module_cmds=$lt_module_cmds 21935module_expsym_cmds=$lt_module_expsym_cmds 21936 21937# Whether we are building with GNU ld or not. 21938with_gnu_ld=$lt_with_gnu_ld 21939 21940# Flag that allows shared libraries with undefined symbols to be built. 21941allow_undefined_flag=$lt_allow_undefined_flag 21942 21943# Flag that enforces no undefined symbols. 21944no_undefined_flag=$lt_no_undefined_flag 21945 21946# Flag to hardcode \$libdir into a binary during linking. 21947# This must work even if \$libdir does not exist 21948hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21949 21950# Whether we need a single "-rpath" flag with a separated argument. 21951hardcode_libdir_separator=$lt_hardcode_libdir_separator 21952 21953# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21954# DIR into the resulting binary. 21955hardcode_direct=$hardcode_direct 21956 21957# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21958# DIR into the resulting binary and the resulting library dependency is 21959# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21960# library is relocated. 21961hardcode_direct_absolute=$hardcode_direct_absolute 21962 21963# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21964# into the resulting binary. 21965hardcode_minus_L=$hardcode_minus_L 21966 21967# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21968# into the resulting binary. 21969hardcode_shlibpath_var=$hardcode_shlibpath_var 21970 21971# Set to "yes" if building a shared library automatically hardcodes DIR 21972# into the library and all subsequent libraries and executables linked 21973# against it. 21974hardcode_automatic=$hardcode_automatic 21975 21976# Set to yes if linker adds runtime paths of dependent libraries 21977# to runtime path list. 21978inherit_rpath=$inherit_rpath 21979 21980# Whether libtool must link a program against all its dependency libraries. 21981link_all_deplibs=$link_all_deplibs 21982 21983# Set to "yes" if exported symbols are required. 21984always_export_symbols=$always_export_symbols 21985 21986# The commands to list exported symbols. 21987export_symbols_cmds=$lt_export_symbols_cmds 21988 21989# Symbols that should not be listed in the preloaded symbols. 21990exclude_expsyms=$lt_exclude_expsyms 21991 21992# Symbols that must always be exported. 21993include_expsyms=$lt_include_expsyms 21994 21995# Commands necessary for linking programs (against libraries) with templates. 21996prelink_cmds=$lt_prelink_cmds 21997 21998# Commands necessary for finishing linking programs. 21999postlink_cmds=$lt_postlink_cmds 22000 22001# Specify filename containing input files. 22002file_list_spec=$lt_file_list_spec 22003 22004# How to hardcode a shared library path into an executable. 22005hardcode_action=$hardcode_action 22006 22007# ### END LIBTOOL CONFIG 22008 22009_LT_EOF 22010 22011 cat <<'_LT_EOF' >> "$cfgfile" 22012 22013# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22014 22015# func_munge_path_list VARIABLE PATH 22016# ----------------------------------- 22017# VARIABLE is name of variable containing _space_ separated list of 22018# directories to be munged by the contents of PATH, which is string 22019# having a format: 22020# "DIR[:DIR]:" 22021# string "DIR[ DIR]" will be prepended to VARIABLE 22022# ":DIR[:DIR]" 22023# string "DIR[ DIR]" will be appended to VARIABLE 22024# "DIRP[:DIRP]::[DIRA:]DIRA" 22025# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22026# "DIRA[ DIRA]" will be appended to VARIABLE 22027# "DIR[:DIR]" 22028# VARIABLE will be replaced by "DIR[ DIR]" 22029func_munge_path_list () 22030{ 22031 case x$2 in 22032 x) 22033 ;; 22034 *:) 22035 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22036 ;; 22037 x:*) 22038 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22039 ;; 22040 *::*) 22041 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22042 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22043 ;; 22044 *) 22045 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22046 ;; 22047 esac 22048} 22049 22050 22051# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22052func_cc_basename () 22053{ 22054 for cc_temp in $*""; do 22055 case $cc_temp in 22056 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22057 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22058 \-*) ;; 22059 *) break;; 22060 esac 22061 done 22062 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22063} 22064 22065 22066# ### END FUNCTIONS SHARED WITH CONFIGURE 22067 22068_LT_EOF 22069 22070 case $host_os in 22071 aix3*) 22072 cat <<\_LT_EOF >> "$cfgfile" 22073# AIX sometimes has problems with the GCC collect2 program. For some 22074# reason, if we set the COLLECT_NAMES environment variable, the problems 22075# vanish in a puff of smoke. 22076if test set != "${COLLECT_NAMES+set}"; then 22077 COLLECT_NAMES= 22078 export COLLECT_NAMES 22079fi 22080_LT_EOF 22081 ;; 22082 esac 22083 22084 22085 22086ltmain=$ac_aux_dir/ltmain.sh 22087 22088 22089 # We use sed instead of cat because bash on DJGPP gets confused if 22090 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22091 # text mode, it properly converts lines to CR/LF. This bash problem 22092 # is reportedly fixed, but why not run on old versions too? 22093 $SED '$q' "$ltmain" >> "$cfgfile" \ 22094 || (rm -f "$cfgfile"; exit 1) 22095 22096 mv -f "$cfgfile" "$ofile" || 22097 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22098 chmod +x "$ofile" 22099 22100 ;; 22101 22102 esac 22103done # for ac_tag 22104 22105 22106as_fn_exit 0 22107_ACEOF 22108ac_clean_files=$ac_clean_files_save 22109 22110test $ac_write_fail = 0 || 22111 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22112 22113 22114# configure is writing to config.log, and then calls config.status. 22115# config.status does its own redirection, appending to config.log. 22116# Unfortunately, on DOS this fails, as config.log is still kept open 22117# by configure, so config.status won't be able to write to it; its 22118# output is simply discarded. So we exec the FD to /dev/null, 22119# effectively closing config.log, so it can be properly (re)opened and 22120# appended to by config.status. When coming back to configure, we 22121# need to make the FD available again. 22122if test "$no_create" != yes; then 22123 ac_cs_success=: 22124 ac_config_status_args= 22125 test "$silent" = yes && 22126 ac_config_status_args="$ac_config_status_args --quiet" 22127 exec 5>/dev/null 22128 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22129 exec 5>>config.log 22130 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22131 # would make configure fail if this is the last instruction. 22132 $ac_cs_success || as_fn_exit 1 22133fi 22134if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22136printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22137fi 22138 22139 22140