1903
1953
# ----------------
1904
1954
# Minimum version: 1.1.0
1906
# Sets up flags for source checkers such as lint and sparse if --with-lint
1907
# is specified. (Use --with-lint=sparse for sparse.)
1908
# Sets $LINT to name of source checker passed with --with-lint (default: lint)
1909
# Sets $LINT_FLAGS to flags to pass to source checker
1910
# Sets LINT automake conditional if enabled (default: disabled)
1956
# This macro enables the use of a tool that flags some suspicious and
1957
# non-portable constructs (likely to be bugs) in C language source code.
1958
# It will attempt to locate the tool and use appropriate options.
1959
# There are various lint type tools on different platforms.
1961
# Interface to module:
1962
# LINT: returns the path to the tool found on the platform
1963
# or the value set to LINT on the configure cmd line
1964
# also an Automake conditional
1965
# LINT_FLAGS: an Automake variable with appropriate flags
1967
# --with-lint: 'yes' user instructs the module to use lint
1968
# 'no' user instructs the module not to use lint (default)
1970
# If the user sets the value of LINT, AC_PATH_PROG skips testing the path.
1971
# If the user sets the value of LINT_FLAGS, they are used verbatim.
1912
1973
AC_DEFUN([XORG_WITH_LINT],[
1914
# Allow checking code with lint, sparse, etc.
1975
AC_ARG_VAR([LINT], [Path to a lint-style command])
1976
AC_ARG_VAR([LINT_FLAGS], [Flags for the lint-style command])
1915
1977
AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint],
1916
1978
[Use a lint-style source code checker (default: disabled)])],
1917
1979
[use_lint=$withval], [use_lint=no])
1918
if test "x$use_lint" = "xyes" ; then
1981
# Obtain platform specific info like program name and options
1982
# The lint program on FreeBSD and NetBSD is different from the one on Solaris
1984
*linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
1986
lint_options="-badflag"
1988
*freebsd* | *netbsd*)
1990
lint_options="-u -b"
1994
lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
1998
# Test for the presence of the program (either guessed by the code or spelled out by the user)
1999
if test "x$use_lint" = x"yes" ; then
2000
AC_PATH_PROG([LINT], [$lint_name])
2001
if test "x$LINT" = "x"; then
2002
AC_MSG_ERROR([--with-lint=yes specified but lint-style tool not found in PATH])
2004
elif test "x$use_lint" = x"no" ; then
2005
if test "x$LINT" != "x"; then
2006
AC_MSG_WARN([ignoring LINT environment variable since --with-lint=no was specified])
1923
if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
1928
LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
1936
AC_SUBST(LINT_FLAGS)
1937
AM_CONDITIONAL(LINT, [test x$LINT != xno])
2009
AC_MSG_ERROR([--with-lint expects 'yes' or 'no'. Use LINT variable to specify path.])
2012
# User supplied flags override default flags
2013
if test "x$LINT_FLAGS" != "x"; then
2014
lint_options=$LINT_FLAGS
2017
AC_SUBST([LINT_FLAGS],[$lint_options])
2018
AM_CONDITIONAL(LINT, [test "x$LINT" != x])
1939
2020
]) # XORG_WITH_LINT
1945
2026
# Sets up flags for building lint libraries for checking programs that call
1946
2027
# functions in the library.
1947
# Disabled by default, enable with --enable-lint-library
1949
# @LINTLIB@ - name of lint library file to make
1950
# MAKE_LINT_LIB - automake conditional
2029
# Interface to module:
2030
# LINTLIB - Automake variable with the name of lint library file to make
2031
# MAKE_LINT_LIB - Automake conditional
2033
# --enable-lint-library: - 'yes' user instructs the module to created a lint library
2034
# - 'no' user instructs the module not to create a lint library (default)
1953
2036
AC_DEFUN([XORG_LINT_LIBRARY],[
1954
2037
AC_REQUIRE([XORG_WITH_LINT])
1955
# Build lint "library" for more indepth checks of programs calling this library
1956
2038
AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library],
1957
2039
[Create lint library (default: disabled)])],
1958
2040
[make_lint_lib=$enableval], [make_lint_lib=no])
1959
if test "x$make_lint_lib" != "xno" ; then
1960
if test "x$LINT" = "xno" ; then
1961
AC_MSG_ERROR([Cannot make lint library without --with-lint])
1963
if test "x$make_lint_lib" = "xyes" ; then
1966
LINTLIB=$make_lint_lib
2042
if test "x$make_lint_lib" = x"yes" ; then
2044
if test "x$LINT" = "x"; then
2045
AC_MSG_ERROR([Cannot make lint library without --with-lint])
2047
elif test "x$make_lint_lib" != x"no" ; then
2048
AC_MSG_ERROR([--enable-lint-library expects 'yes' or 'no'.])
1969
2051
AC_SUBST(LINTLIB)
1970
2052
AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno])
2835
# Fix-up fallback echo if it was mangled by the above quoting rules.
2837
*'\\\[$]0 --fallback-echo"')dnl "
2838
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
2842
2925
_LT_OUTPUT_LIBTOOL_INIT
2928
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2929
# ------------------------------------
2930
# Generate a child script FILE with all initialization necessary to
2931
# reuse the environment learned by the parent script, and make the
2932
# file executable. If COMMENT is supplied, it is inserted after the
2933
# `#!' sequence but before initialization text begins. After this
2934
# macro, additional text can be appended to FILE to form the body of
2935
# the child script. The macro ends with non-zero status if the
2936
# file could not be fully written (such as if the disk is full).
2937
m4_ifdef([AS_INIT_GENERATED],
2938
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
2939
[m4_defun([_LT_GENERATED_FILE_INIT],
2940
[m4_require([AS_PREPARE])]dnl
2941
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
2943
cat >$1 <<_ASEOF || lt_write_fail=1
2945
# Generated by $as_me.
2947
SHELL=\${CONFIG_SHELL-$SHELL}
2950
cat >>$1 <<\_ASEOF || lt_write_fail=1
2953
exec AS_MESSAGE_FD>&1
2955
test $lt_write_fail = 0 && chmod +x $1[]dnl
2956
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
3330
3462
# _LT_SHELL_INIT(ARG)
3331
3463
# -------------------
3332
3464
m4_define([_LT_SHELL_INIT],
3333
[ifdef([AC_DIVERSION_NOTICE],
3334
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
3335
[AC_DIVERT_PUSH(NOTICE)])
3465
[m4_divert_text([M4SH-INIT], [$1
3466
])])# _LT_SHELL_INIT
3341
3470
# _LT_PROG_ECHO_BACKSLASH
3342
3471
# -----------------------
3343
# Add some code to the start of the generated configure script which
3344
# will find an echo command which doesn't interpret backslashes.
3472
# Find how we can fake an echo command that does not interpret backslash.
3473
# In particular, with Autoconf 2.60 or later we add some code to the start
3474
# of the generated configure script which will find a shell with a builtin
3475
# printf (which we can use as an echo command).
3345
3476
m4_defun([_LT_PROG_ECHO_BACKSLASH],
3347
# Check that we are running under the correct shell.
3348
SHELL=${CONFIG_SHELL-/bin/sh}
3352
# Remove one level of quotation (which was required for Make).
3353
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
3477
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3478
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3479
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3481
AC_MSG_CHECKING([how to print strings])
3482
# Test print first, because it will be a builtin if present.
3483
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3484
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3486
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3489
# Use this function as a fallback that always works.
3490
func_fallback_echo ()
3492
eval 'cat <<_LTECHO_EOF
3496
ECHO='func_fallback_echo'
3499
# func_echo_all arg...
3500
# Invoke $ECHO with all args, space-separated.
3507
printf*) AC_MSG_RESULT([printf]) ;;
3508
print*) AC_MSG_RESULT([print -r]) ;;
3509
*) AC_MSG_RESULT([cat]) ;;
3357
ECHO=${lt_ECHO-echo}
3358
if test "X[$]1" = X--no-reexec; then
3359
# Discard the --no-reexec flag, and continue.
3361
elif test "X[$]1" = X--fallback-echo; then
3362
# Avoid inline document here, it may be left over
3364
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
3365
# Yippee, $ECHO works!
3368
# Restart under the correct shell.
3369
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
3372
if test "X[$]1" = X--fallback-echo; then
3373
# used as fallback echo
3381
# The HP-UX ksh and POSIX shell print the target directory to stdout
3383
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3385
if test -z "$lt_ECHO"; then
3386
if test "X${echo_test_string+set}" != Xset; then
3387
# find a string as large as possible, as long as the shell can cope with it
3388
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
3389
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
3390
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
3391
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
3398
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
3399
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
3400
test "X$echo_testing_string" = "X$echo_test_string"; then
3403
# The Solaris, AIX, and Digital Unix default echo programs unquote
3404
# backslashes. This makes it impossible to quote backslashes using
3405
# echo "$something" | sed 's/\\/\\\\/g'
3407
# So, first we look for a working echo in the user's PATH.
3409
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3410
for dir in $PATH /usr/ucb; do
3412
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
3413
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
3414
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
3415
test "X$echo_testing_string" = "X$echo_test_string"; then
3422
if test "X$ECHO" = Xecho; then
3423
# We didn't find a better echo, so look for alternatives.
3424
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
3425
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
3426
test "X$echo_testing_string" = "X$echo_test_string"; then
3427
# This shell has a builtin print -r that does the trick.
3429
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
3430
test "X$CONFIG_SHELL" != X/bin/ksh; then
3431
# If we have ksh, try running configure again with it.
3432
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3433
export ORIGINAL_CONFIG_SHELL
3434
CONFIG_SHELL=/bin/ksh
3436
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
3440
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
3441
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
3442
test "X$echo_testing_string" = "X$echo_test_string"; then
3443
# Cool, printf works
3445
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
3446
test "X$echo_testing_string" = 'X\t' &&
3447
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3448
test "X$echo_testing_string" = "X$echo_test_string"; then
3449
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
3451
SHELL="$CONFIG_SHELL"
3453
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
3454
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
3455
test "X$echo_testing_string" = 'X\t' &&
3456
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3457
test "X$echo_testing_string" = "X$echo_test_string"; then
3458
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
3460
# maybe with a smaller string...
3463
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
3464
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
3471
if test "$prev" != 'sed 50q "[$]0"'; then
3472
echo_test_string=`eval $prev`
3473
export echo_test_string
3474
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
3476
# Oops. We lost completely, so just stick with echo.
3485
# Copy echo and quote the copy suitably for passing to libtool from
3486
# the Makefile, instead of quoting the original, which is used later.
3488
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
3489
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
3512
m4_ifdef([_AS_DETECT_SUGGESTED],
3513
[_AS_DETECT_SUGGESTED([
3514
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
3515
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3516
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3517
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3518
PATH=/empty FPATH=/empty; export PATH FPATH
3519
test "X`printf %s $ECHO`" = "X$ECHO" \
3520
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
3494
3522
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
3495
_LT_DECL([], [ECHO], [1],
3496
[An echo program that does not interpret backslashes])
3523
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
3497
3524
])# _LT_PROG_ECHO_BACKSLASH
4334
4386
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
4335
4387
*) lt_awk_arg="/^libraries:/" ;;
4337
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4338
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
4390
mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
4391
*) lt_sed_strip_eq="s,=/,/,g" ;;
4393
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
4394
case $lt_search_path_spec in
4339
4396
# if the path contains ";" then we assume it to be the separator
4340
4397
# otherwise default to the standard path separator (i.e. ":") - it is
4341
4398
# assumed that no part of a normal pathname contains ";" but that should
4342
4399
# okay in the real world where ";" in dirpaths is itself problematic.
4343
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
4345
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4400
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
4403
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
4347
4406
# Ok, now we have the path, separated by spaces, we can step through it
4348
4407
# and add multilib dir if necessary.
4349
4408
lt_tmp_lt_search_path_spec=
4743
4812
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4744
4813
shlibpath_var=LD_LIBRARY_PATH
4745
4814
shlibpath_overrides_runpath=no
4746
4816
# Some binutils ld are patched to set DT_RUNPATH
4747
save_LDFLAGS=$LDFLAGS
4749
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
4750
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
4751
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
4752
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
4753
[shlibpath_overrides_runpath=yes])])
4754
LDFLAGS=$save_LDFLAGS
4817
AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
4818
[lt_cv_shlibpath_overrides_runpath=no
4819
save_LDFLAGS=$LDFLAGS
4821
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
4822
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
4823
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
4824
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
4825
[lt_cv_shlibpath_overrides_runpath=yes])])
4826
LDFLAGS=$save_LDFLAGS
4829
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
4757
4831
# This implies no fast_install, which is unacceptable.
4758
4832
# Some rework will be needed to allow for fast_install
6299
6418
# All Alpha code is PIC.
6300
6419
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6303
# IBM XL C 8.0/Fortran 10.1 on PPC
6421
xl* | bgxl* | bgf* | mpixl*)
6422
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
6304
6423
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6305
6424
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
6306
6425
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
6309
6428
case `$CC -V 2>&1 | sed 5q` in
6429
*Sun\ F* | *Sun*Fortran*)
6430
# Sun Fortran 8.3 passes all unrecognized flags to the linker
6431
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6432
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6433
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
6312
6437
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6313
6438
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6314
6439
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6317
# Sun Fortran 8.3 passes all unrecognized flags to the linker
6318
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6319
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6320
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
7110
7284
irix5* | irix6* | nonstopux*)
7111
7285
if test "$GCC" = yes; then
7112
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7286
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $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'
7113
7287
# Try to use the -exported_symbol ld option, if it does not
7114
7288
# work, assume that -exports_file does not work either and
7115
7289
# implicitly export all symbols.
7116
7290
save_LDFLAGS="$LDFLAGS"
7117
7291
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7118
7292
AC_LINK_IFELSE(int foo(void) {},
7119
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7293
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $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'
7121
7295
LDFLAGS="$save_LDFLAGS"
7123
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7124
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7297
_LT_TAGVAR(archive_cmds, $1)='$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'
7298
_LT_TAGVAR(archive_expsym_cmds, $1)='$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'
7126
7300
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
7127
7301
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7183
7357
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7184
7358
_LT_TAGVAR(hardcode_minus_L, $1)=yes
7185
7359
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7186
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7360
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7187
7361
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7191
7365
if test "$GCC" = yes; then
7192
7366
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7193
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7367
_LT_TAGVAR(archive_cmds, $1)='$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'
7195
7369
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7196
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7370
_LT_TAGVAR(archive_cmds, $1)='$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'
7198
7372
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
7199
7373
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7203
7377
osf4* | osf5*) # as osf3* with the addition of -msym flag
7204
7378
if test "$GCC" = yes; then
7205
7379
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7206
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7380
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_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'
7207
7381
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7209
7383
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7210
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7384
_LT_TAGVAR(archive_cmds, $1)='$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'
7211
7385
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7212
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7386
$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'
7214
7388
# Both c and cxx compiler support -rpath directly
7215
7389
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7400
7574
# Test whether the compiler implicitly links with -lc since on some
7401
7575
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7402
7576
# to ld, don't add -lc before -lgcc.
7403
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7405
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7577
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
7578
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
7580
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7407
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7410
libobjs=conftest.$ac_objext
7412
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
7413
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7419
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
7420
_LT_TAGVAR(allow_undefined_flag, $1)=
7421
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7423
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7425
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7427
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7429
cat conftest.err 1>&5
7432
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
7582
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7585
libobjs=conftest.$ac_objext
7587
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
7588
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7594
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
7595
_LT_TAGVAR(allow_undefined_flag, $1)=
7596
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7598
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7600
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7602
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7604
cat conftest.err 1>&5
7608
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
8181
8354
pgCC* | pgcpp*)
8182
8355
# Portland Group C++ compiler
8183
8356
case `$CC -V` in
8184
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
8357
*pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
8185
8358
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
8186
8359
rm -rf $tpldir~
8187
8360
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
8188
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
8361
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
8189
8362
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
8190
8363
rm -rf $tpldir~
8191
8364
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
8192
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
8365
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
8193
8366
$RANLIB $oldlib'
8194
8367
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
8195
8368
rm -rf $tpldir~
8196
8369
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8197
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
8370
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
8198
8371
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
8199
8372
rm -rf $tpldir~
8200
8373
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8201
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
8374
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
8203
*) # Version 6 will use weak symbols
8376
*) # Version 6 and above use weak symbols
8204
8377
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
8205
8378
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10134
10285
# Generated from ltversion.in.
10136
# serial 3017 ltversion.m4
10287
# serial 3175 ltversion.m4
10137
10288
# This file is part of GNU Libtool
10139
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
10140
m4_define([LT_PACKAGE_REVISION], [1.3017])
10290
m4_define([LT_PACKAGE_VERSION], [2.2.10])
10291
m4_define([LT_PACKAGE_REVISION], [1.3175])
10142
10293
AC_DEFUN([LTVERSION_VERSION],
10143
[macro_version='2.2.6b'
10144
macro_revision='1.3017'
10294
[macro_version='2.2.10'
10295
macro_revision='1.3175'
10145
10296
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
10146
10297
_LT_DECL(, macro_revision, 0)
10149
10300
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
10151
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
10302
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
10152
10303
# Written by Scott James Remnant, 2004.
10154
10305
# This file is free software; the Free Software Foundation gives
10155
10306
# unlimited permission to copy and/or distribute it, with or without
10156
10307
# modifications, as long as this notice is preserved.
10158
# serial 4 lt~obsolete.m4
10309
# serial 5 lt~obsolete.m4
10160
10311
# These exist entirely to fool aclocal when bootstrapping libtool.