1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005 Free Software Foundation, Inc.
4
# 2005, 2006 Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
15
[m4_fatal([this file was generated for autoconf 2.61.
16
You have another version of autoconf. If you want to use that,
17
you should regenerate the build system entirely.], [63])])
14
19
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
16
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
21
# serial 51 Debian 1.5.24-1 AC_PROG_LIBTOOL
19
24
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
263
268
# Check for compiler boilerplate output or warnings with
264
269
# the simple compiler test code.
265
270
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
266
[ac_outfile=conftest.$ac_objext
267
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
271
[AC_REQUIRE([LT_AC_PROG_SED])dnl
272
ac_outfile=conftest.$ac_objext
273
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
268
274
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
269
275
_lt_compiler_boilerplate=`cat conftest.err`
276
282
# Check for linker boilerplate output or warnings with
277
283
# the simple link test code.
278
284
AC_DEFUN([_LT_LINKER_BOILERPLATE],
279
[ac_outfile=conftest.$ac_objext
280
printf "$lt_simple_link_test_code" >conftest.$ac_ext
285
[AC_REQUIRE([LT_AC_PROG_SED])dnl
286
ac_outfile=conftest.$ac_objext
287
echo "$lt_simple_link_test_code" >conftest.$ac_ext
281
288
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
282
289
_lt_linker_boilerplate=`cat conftest.err`
293
300
# If we don't find anything, use the default library path according
294
301
# to the aix ld manual.
295
302
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
296
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
297
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
303
[AC_REQUIRE([LT_AC_PROG_SED])dnl
304
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
306
/Import File Strings/,/^$/ {
312
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
299
313
# Check for a 64-bit object if we didn't find anything.
300
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
314
if test -z "$aix_libpath"; then
315
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
302
317
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
303
318
])# _LT_AC_SYS_LIBPATH_AIX
532
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
547
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
548
s390*-*linux*|sparc*-*linux*)
533
549
# Find out which ABI we are using.
534
550
echo 'int i;' > conftest.$ac_ext
535
551
if AC_TRY_EVAL(ac_compile); then
536
552
case `/usr/bin/file conftest.o` in
555
x86_64-*kfreebsd*-gnu)
556
LD="${LD-ld} -m elf_i386_fbsd"
540
559
LD="${LD-ld} -m elf_i386"
623
645
AC_CACHE_CHECK([$1], [$2],
625
647
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
626
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
648
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
627
649
lt_compiler_flag="$3"
628
650
# Insert the option either (1) after the last *FLAGS variable, or
629
651
# (2) before a word containing "conftest.", or (3) at the end.
664
686
# ------------------------------------------------------------
665
687
# Check whether the given compiler option works
666
688
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
667
[AC_CACHE_CHECK([$1], [$2],
689
[AC_REQUIRE([LT_AC_PROG_SED])dnl
690
AC_CACHE_CHECK([$1], [$2],
669
692
save_LDFLAGS="$LDFLAGS"
670
693
LDFLAGS="$LDFLAGS $3"
671
printf "$lt_simple_link_test_code" > conftest.$ac_ext
694
echo "$lt_simple_link_test_code" > conftest.$ac_ext
672
695
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
673
696
# The linker can only warn and ignore the option if not recognized
674
697
# So say no if there are warnings
785
# If test is not a shell built-in, we'll probably end up computing a
786
# maximum length that is only half of the actual maximum length, but
788
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
789
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
808
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
809
if test -n "$lt_cv_sys_max_cmd_len"; then
810
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
811
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
813
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
814
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
790
815
= "XX$teststring") >/dev/null 2>&1 &&
791
new_result=`expr "X$teststring" : ".*" 2>&1` &&
792
lt_cv_sys_max_cmd_len=$new_result &&
793
test $i != 17 # 1/2 MB should be enough
796
teststring=$teststring$teststring
799
# Add a significant safety factor because C++ compilers can tack on massive
800
# amounts of additional arguments before passing them to the linker.
801
# It appears as though 1/2 is a usable value.
802
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
816
new_result=`expr "X$teststring" : ".*" 2>&1` &&
817
lt_cv_sys_max_cmd_len=$new_result &&
818
test $i != 17 # 1/2 MB should be enough
821
teststring=$teststring$teststring
824
# Add a significant safety factor because C++ compilers can tack on massive
825
# amounts of additional arguments before passing them to the linker.
826
# It appears as though 1/2 is a usable value.
827
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1026
1052
# ---------------------------------
1027
1053
# Check to see if options -c and -o are simultaneously supported by compiler
1028
1054
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1029
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1055
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1056
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1030
1057
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1031
1058
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1032
1059
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1205
1234
version_type=none
1206
1235
dynamic_linker="$host_os ld.so"
1207
1236
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1208
1238
if test "$GCC" = yes; then
1209
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1210
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1240
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1241
*) lt_awk_arg="/^libraries:/" ;;
1243
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1244
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1211
1245
# if the path contains ";" then we assume it to be the separator
1212
1246
# otherwise default to the standard path separator (i.e. ":") - it is
1213
1247
# assumed that no part of a normal pathname contains ";" but that should
1214
1248
# okay in the real world where ";" in dirpaths is itself problematic.
1215
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1249
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1217
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1251
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1253
# Ok, now we have the path, separated by spaces, we can step through it
1254
# and add multilib dir if necessary.
1255
lt_tmp_lt_search_path_spec=
1256
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1257
for lt_sys_path in $lt_search_path_spec; do
1258
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1259
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1261
test -d "$lt_sys_path" && \
1262
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1265
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1266
BEGIN {RS=" "; FS="/|\n";} {
1269
for (lt_i = NF; lt_i > 0; lt_i--) {
1270
if ($lt_i != "" && $lt_i != ".") {
1271
if ($lt_i == "..") {
1274
if (lt_count == 0) {
1275
lt_foo="/" $lt_i lt_foo;
1282
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1283
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1285
sys_lib_search_path_spec=`echo $lt_search_path_spec`
1220
1287
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1222
1289
need_lib_prefix=unknown
1223
1290
hardcode_into_libs=no
1375
1442
shlibpath_overrides_runpath=yes
1376
1443
shlibpath_var=DYLD_LIBRARY_PATH
1377
1444
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1378
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1379
if test "$GCC" = yes; then
1380
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1382
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1446
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1384
1447
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1569
1632
# Append ld.so.conf contents to the search path
1570
1633
if test -f /etc/ld.so.conf; then
1571
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1634
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;/^$/d' | tr '\n' ' '`
1572
1635
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2250
2318
# how to check for library dependencies
2251
2319
# -- PORTME fill in with the dynamic library characteristics
2252
2320
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2253
[AC_CACHE_CHECK([how to recognise dependent libraries],
2321
[AC_CACHE_CHECK([how to recognize dependent libraries],
2254
2322
lt_cv_deplibs_check_method,
2255
2323
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2256
2324
lt_cv_file_magic_test_file=
2290
2358
mingw* | pw32*)
2291
2359
# Base MSYS/MinGW do not provide the 'file' command needed by
2292
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
2293
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2294
lt_cv_file_magic_cmd='$OBJDUMP -f'
2360
# func_win32_libid shell function, so use a weaker test based on 'objdump',
2361
# unless we find 'file', for example because we are cross-compiling.
2362
if ( file / ) >/dev/null 2>&1; then
2363
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2364
lt_cv_file_magic_cmd='func_win32_libid'
2366
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2367
lt_cv_file_magic_cmd='$OBJDUMP -f'
2297
2371
darwin* | rhapsody*)
2759
2837
_LT_AC_TAGVAR(objext, $1)=$objext
2761
2839
# Code to be used in simple compile tests
2762
lt_simple_compile_test_code="int some_variable = 0;\n"
2840
lt_simple_compile_test_code="int some_variable = 0;"
2764
2842
# Code to be used in simple link tests
2765
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2843
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2767
2845
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2768
2846
_LT_AC_SYS_COMPILER
3067
3145
case $cc_basename in
3069
3147
output_verbose_link_cmd='echo'
3070
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3148
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3071
3149
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3072
3150
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3073
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3151
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3074
3152
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3343
3419
# dependencies.
3344
3420
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3423
case `$CC -V 2>&1 | sed 5q` in
3426
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3427
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3428
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3429
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3430
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3432
# Not sure whether something based on
3433
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3435
output_verbose_link_cmd='echo'
3437
# Archives containing C++ object files must be created using
3438
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3439
# necessary to make sure instantiated templates are included
3441
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3381
3480
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3384
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3385
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3386
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3387
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3388
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3389
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3390
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3391
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3483
if test -f /usr/libexec/ld.so; then
3484
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3485
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3486
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3487
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3488
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3489
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3490
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3491
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3493
output_verbose_link_cmd='echo'
3495
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3393
output_verbose_link_cmd='echo'
3396
3499
case $cc_basename in
3552
3655
case $host_os in
3553
3656
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3555
# The C++ compiler is used as linker so we must use $wl
3556
# flag to pass the commands to the underlying system
3557
# linker. We must also pass each convience library through
3558
# to the system linker between allextract/defaultextract.
3559
# The C++ compiler will combine linker options so we
3560
# cannot just pass the convience library names through
3658
# The compiler driver will combine and reorder linker options,
3659
# but understands `-z linker_flag'.
3562
3660
# Supported since Solaris 2.6 (maybe 2.5.1?)
3563
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3661
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3566
3664
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3858
3962
_LT_AC_TAGVAR(postdeps,$1)=
3966
case `$CC -V 2>&1 | sed 5q` in
3970
# The more standards-conforming stlport4 library is
3971
# incompatible with the Cstd library. Avoid specifying
3972
# it if it's in CXXFLAGS. Ignore libCrun as
3973
# -library=stlport4 depends on it.
3974
case " $CXX $CXXFLAGS " in
3975
*" -library=stlport4 "*)
3976
solaris_use_stlport4=yes
3979
if test "$solaris_use_stlport4" != yes; then
3980
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3862
3987
case $cc_basename in
3989
# The more standards-conforming stlport4 library is
3990
# incompatible with the Cstd library. Avoid specifying
3991
# it if it's in CXXFLAGS. Ignore libCrun as
3992
# -library=stlport4 depends on it.
3993
case " $CXX $CXXFLAGS " in
3994
*" -library=stlport4 "*)
3995
solaris_use_stlport4=yes
3864
3999
# Adding this requires a known-good setup of shared libraries for
3865
4000
# Sun compiler versions before 5.6, else PIC objects from an old
3866
4001
# archive will be linked into the output, leading to subtle bugs.
3867
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4002
if test "$solaris_use_stlport4" != yes; then
4003
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3913
4050
_LT_AC_TAGVAR(objext, $1)=$objext
3915
4052
# Code to be used in simple compile tests
3916
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4053
lt_simple_compile_test_code="\
3918
4059
# Code to be used in simple link tests
3919
lt_simple_link_test_code=" program t\n end\n"
4060
lt_simple_link_test_code="\
3921
4065
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3922
4066
_LT_AC_SYS_COMPILER
3995
4139
_LT_AC_TAGVAR(objext, $1)=$objext
3997
4141
# Code to be used in simple compile tests
3998
lt_simple_compile_test_code="class foo {}\n"
4142
lt_simple_compile_test_code="class foo {}"
4000
4144
# Code to be used in simple link tests
4001
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4145
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4003
4147
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4004
4148
_LT_AC_SYS_COMPILER
4051
4195
_LT_AC_TAGVAR(objext, $1)=$objext
4053
4197
# Code to be used in simple compile tests
4054
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4198
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4056
4200
# Code to be used in simple link tests
4057
4201
lt_simple_link_test_code="$lt_simple_compile_test_code"
4140
4284
_LT_AC_TAGVAR(module_cmds, $1) \
4141
4285
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4142
4286
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4287
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
4143
4288
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4144
4289
_LT_AC_TAGVAR(include_expsyms, $1); do
4186
4331
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4187
4332
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4189
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4334
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4190
4335
# Free Software Foundation, Inc.
4192
4337
# This file is part of GNU Libtool:
4820
4966
# like `-m68040'.
4821
4967
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4823
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4969
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4824
4970
# PIC is the default for these OSes.
4826
mingw* | os2* | pw32*)
4972
mingw* | cygwin* | os2* | pw32*)
4827
4973
# This hack is so that the source file can tell whether it is being
4828
4974
# built for inclusion in a dll (and should export symbols for example).
4975
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4976
# (--disable-auto-import) libraries
4829
4977
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4831
4979
darwin* | rhapsody*)
5093
5249
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5096
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5252
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5097
5253
# PIC is the default for these OSes.
5100
mingw* | pw32* | os2*)
5256
mingw* | cygwin* | pw32* | os2*)
5101
5257
# This hack is so that the source file can tell whether it is being
5102
5258
# built for inclusion in a dll (and should export symbols for example).
5259
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5260
# (--disable-auto-import) libraries
5103
5261
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5219
5377
# All Alpha code is PIC.
5220
5378
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5381
case `$CC -V 2>&1 | sed 5q` in
5384
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5385
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5386
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5389
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5390
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5391
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5392
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5322
5500
# ------------------------------------
5323
5501
# See if the linker supports building shared libraries.
5324
5502
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5325
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5503
[AC_REQUIRE([LT_AC_PROG_SED])dnl
5504
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5326
5505
ifelse([$1],[CXX],[
5327
5506
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5328
5507
case $host_os in
5481
5660
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5482
5661
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5483
5662
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5484
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5663
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5486
5665
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5487
5666
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5514
5693
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
5517
linux* | k*bsd*-gnu)
5696
gnu* | linux* | k*bsd*-gnu)
5518
5697
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5520
5699
case $cc_basename,$host_cpu in
5532
5711
ifc* | ifort*) # Intel Fortran compiler
5533
5712
tmp_addflag=' -nofor_main' ;;
5535
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5714
case `$CC -V 2>&1 | sed 5q` in
5715
*Sun\ C*) # Sun C 5.9
5716
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5717
tmp_sharedflag='-G' ;;
5718
*Sun\ F*) # Sun Fortran 8.3
5719
tmp_sharedflag='-G' ;;
5721
tmp_sharedflag='-shared' ;;
5723
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5537
5725
if test $supports_anon_versioning = yes; then
5538
5726
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5539
5727
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5540
5728
$echo "local: *; };" >> $output_objdir/$libname.ver~
5541
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5729
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5543
5731
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
5791
5979
# The linker will automatically build a .lib file if we build a DLL.
5792
5980
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5793
5981
# FIXME: Should let the user specify the lib program.
5794
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5982
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5795
5983
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5796
5984
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5833
6021
case $cc_basename in
5835
6023
output_verbose_link_cmd='echo'
5836
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6024
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5837
6025
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5838
6026
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5839
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6027
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5840
6028
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6001
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6002
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6003
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6004
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6005
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6006
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6007
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6189
if test -f /usr/libexec/ld.so; then
6190
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6191
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6192
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6193
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6194
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6195
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6196
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6199
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6200
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6201
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6204
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6205
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6010
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6011
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6012
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6015
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6016
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6210
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6074
6266
case $host_os in
6075
6267
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6077
# The compiler driver will combine linker options so we
6078
# cannot just pass the convience library names through
6079
# without $wl, iff we do not link with $LD.
6080
# Luckily, gcc supports the same syntax we need for Sun Studio.
6269
# The compiler driver will combine and reorder linker options,
6270
# but understands `-z linker_flag'. GCC discards it without `$wl',
6271
# but is careful enough not to reorder.
6081
6272
# Supported since Solaris 2.6 (maybe 2.5.1?)
6084
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6086
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6273
if test "$GCC" = yes; then
6274
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6276
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6089
6280
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6319
6510
[AC_CHECK_TOOL(RC, windres, no)
6514
# Cheap backport of AS_EXECUTABLE_P and required macros
6515
# from Autoconf 2.59; we should not use $as_executable_p directly.
6519
m4_ifndef([_AS_TEST_PREPARE],
6520
[m4_defun([_AS_TEST_PREPARE],
6521
[if test -x / >/dev/null 2>&1; then
6522
as_executable_p='test -x'
6524
as_executable_p='test -f'
6526
])])# _AS_TEST_PREPARE
6530
# Check whether a file is executable.
6531
m4_ifndef([AS_EXECUTABLE_P],
6532
[m4_defun([AS_EXECUTABLE_P],
6533
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6534
$as_executable_p $1[]dnl
6535
])])# AS_EXECUTABLE_P
6322
6537
# NOTE: This macro has been submitted for inclusion into #
6323
6538
# GNU Autoconf as AC_PROG_SED. When it is available in #
6324
6539
# a released version of Autoconf we should remove this #
6584
6802
XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
6585
6803
XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
6586
6804
AC_MSG_CHECKING([if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}])
6587
[XORG_MACROS_version=1.1.0
6805
[XORG_MACROS_version=1.1.5
6588
6806
XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
6589
6807
XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
6590
6808
if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
6653
6871
AC_REQUIRE([AC_CANONICAL_HOST])
6655
6873
if test x$APP_MAN_SUFFIX = x ; then
6657
gnu* | k*bsd*-gnu) APP_MAN_SUFFIX=1x ;;
6658
*) APP_MAN_SUFFIX=1 ;;
6661
6876
if test x$APP_MAN_DIR = x ; then
6663
gnu* | k*bsd*-gnu) APP_MAN_DIR='$(mandir)/man1' ;;
6664
*) APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;;
6877
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
6668
6880
if test x$LIB_MAN_SUFFIX = x ; then
6670
*) LIB_MAN_SUFFIX=3 ;;
6673
6883
if test x$LIB_MAN_DIR = x ; then
6675
*) LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;;
6884
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
6679
6887
if test x$FILE_MAN_SUFFIX = x ; then
6685
6893
if test x$FILE_MAN_DIR = x ; then
6687
gnu* | k*bsd*-gnu) FILE_MAN_DIR='$(mandir)/man5' ;;
6688
*) FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;;
6894
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
6692
# In Imake's linux.cf, the misc man suffix & dir was only changed for
6693
# LinuxDebian, not other Linuxes, so we leave it unchanged here
6694
6897
if test x$MISC_MAN_SUFFIX = x ; then
6695
6898
case $host_os in
6696
6899
solaris*) MISC_MAN_SUFFIX=5 ;;
6700
6903
if test x$MISC_MAN_DIR = x ; then
6702
*) MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;;
6904
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
6706
# In Imake's linux.cf, the driver man suffix & dir was only changed for
6707
# LinuxDebian, not other Linuxes, so we leave it unchanged here
6708
6907
if test x$DRIVER_MAN_SUFFIX = x ; then
6709
6908
case $host_os in
6710
# gnu* | k*bsd*-gnu) DRIVER_MAN_SUFFIX=4x ;;
6711
6909
solaris*) DRIVER_MAN_SUFFIX=7 ;;
6712
6910
*) DRIVER_MAN_SUFFIX=4 ;;
6715
6913
if test x$DRIVER_MAN_DIR = x ; then
6717
# gnu* | k*bsd*-gnu) DRIVER_MAN_DIR='$(mandir)/man4' ;;
6718
*) DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;;
6914
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
6722
6917
if test x$ADMIN_MAN_SUFFIX = x ; then
6753
6948
# Whether or not the necessary tools and files are found can be checked
6754
6949
# with the AM_CONDITIONAL "BUILD_LINUXDOC"
6755
6950
AC_DEFUN([XORG_CHECK_LINUXDOC],[
6757
[$prefix/share/X11/sgml/defs.ent],
6758
[DEFS_ENT_PATH=$prefix/share/X11/sgml],
6951
XORG_SGML_PATH=$prefix/share/sgml
6954
AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
6762
6956
AC_PATH_PROG(LINUXDOC, linuxdoc)
6763
6957
AC_PATH_PROG(PS2PDF, ps2pdf)
6765
6959
AC_MSG_CHECKING([Whether to build documentation])
6767
if test x$DEFS_ENT_PATH != x && test x$LINUXDOC != x ; then
6961
if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
6787
6981
AC_MSG_RESULT([$BUILDPDFDOC])
6789
MAKE_TEXT="SGML_SEARCH_PATH=$DEFS_ENT_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
6790
MAKE_PS="SGML_SEARCH_PATH=$DEFS_ENT_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
6983
MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
6984
MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
6791
6985
MAKE_PDF="$PS2PDF"
6792
MAKE_HTML="SGML_SEARCH_PATH=$DEFS_ENT_PATH $LINUXDOC -B html --split=0"
6986
MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0"
6794
6988
AC_SUBST(MAKE_TEXT)
6795
6989
AC_SUBST(MAKE_PS)
6797
6991
AC_SUBST(MAKE_HTML)
6798
6992
]) # XORG_CHECK_LINUXDOC
6994
# XORG_CHECK_DOCBOOK
6995
# -------------------
6996
# Minimum version: 1.0.0
6998
# Checks for the ability to build output formats from SGML DocBook source.
6999
# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC"
7000
# indicates whether the necessary tools and files are found and, if set,
7001
# $(MAKE_XXX) blah.sgml will produce blah.xxx.
7002
AC_DEFUN([XORG_CHECK_DOCBOOK],[
7003
XORG_SGML_PATH=$prefix/share/sgml
7010
AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
7012
AC_PATH_PROG(DOCBOOKPS, docbook2ps)
7013
AC_PATH_PROG(DOCBOOKPDF, docbook2pdf)
7014
AC_PATH_PROG(DOCBOOKHTML, docbook2html)
7015
AC_PATH_PROG(DOCBOOKTXT, docbook2txt)
7017
AC_MSG_CHECKING([Whether to build text documentation])
7018
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x &&
7019
test x$BUILD_TXTDOC != xno; then
7022
AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes])
7023
AC_MSG_RESULT([$BUILDTXTDOC])
7025
AC_MSG_CHECKING([Whether to build PDF documentation])
7026
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x &&
7027
test x$BUILD_PDFDOC != xno; then
7030
AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
7031
AC_MSG_RESULT([$BUILDPDFDOC])
7033
AC_MSG_CHECKING([Whether to build PostScript documentation])
7034
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x &&
7035
test x$BUILD_PSDOC != xno; then
7038
AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes])
7039
AC_MSG_RESULT([$BUILDPSDOC])
7041
AC_MSG_CHECKING([Whether to build HTML documentation])
7042
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x &&
7043
test x$BUILD_HTMLDOC != xno; then
7046
AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes])
7047
AC_MSG_RESULT([$BUILDHTMLDOC])
7049
MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT"
7050
MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS"
7051
MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF"
7052
MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML"
7058
]) # XORG_CHECK_DOCBOOK
6800
7060
# XORG_CHECK_MALLOC_ZERO
6801
7061
# ----------------------
6802
7062
# Minimum version: 1.0.0
6946
7206
# --------------------
6947
7207
# Adds --with/without-release-string and changes the PACKAGE and
6948
7208
# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If
6949
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged.
7209
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also
7210
# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
6951
7212
AC_DEFUN([XORG_RELEASE_VERSION],[
6952
7213
AC_ARG_WITH(release-version,
6959
7220
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
6960
7221
AC_MSG_NOTICE([Building with package name set to $PACKAGE])
7223
AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
7224
[`echo $PACKAGE_VERSION | cut -d . -f 1`],
7225
[Major version of this package])
7226
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
7227
if test "x$PVM" = "x"; then
7230
AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR],
7232
[Minor version of this package])
7233
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
7234
if test "x$PVP" = "x"; then
7237
AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL],
7239
[Patch version of this package])
6964
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
7242
# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
6966
7244
# This file is free software; the Free Software Foundation
6967
7245
# gives unlimited permission to copy and/or distribute it,
6971
7249
# ----------------------------
6972
7250
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6973
7251
# generated from the m4 files accompanying Automake X.Y.
6974
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
7252
# (This private macro should not be called outside this file.)
7253
AC_DEFUN([AM_AUTOMAKE_VERSION],
7254
[am__api_version='1.10'
7255
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
7256
dnl require some minimum version. Point them to the right macro.
7257
m4_if([$1], [1.10], [],
7258
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
7261
# _AM_AUTOCONF_VERSION(VERSION)
7262
# -----------------------------
7263
# aclocal traces this macro to find the Autoconf version.
7264
# This is a private macro too. Using m4_define simplifies
7265
# the logic in aclocal, which can simply ignore this definition.
7266
m4_define([_AM_AUTOCONF_VERSION], [])
6976
7268
# AM_SET_CURRENT_AUTOMAKE_VERSION
6977
7269
# -------------------------------
6978
# Call AM_AUTOMAKE_VERSION so it can be traced.
7270
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6979
7271
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6980
7272
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6981
[AM_AUTOMAKE_VERSION([1.9.6])])
7273
[AM_AUTOMAKE_VERSION([1.10])dnl
7274
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
6983
7276
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
7036
7329
# AM_CONDITIONAL -*- Autoconf -*-
7038
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
7331
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
7039
7332
# Free Software Foundation, Inc.
7041
7334
# This file is free software; the Free Software Foundation
7042
7335
# gives unlimited permission to copy and/or distribute it,
7043
7336
# with or without modifications, as long as this notice is preserved.
7047
7340
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
7048
7341
# -------------------------------------
7066
7361
Usually this means the macro was only invoked conditionally.]])
7070
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
7364
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7071
7365
# Free Software Foundation, Inc.
7073
7367
# This file is free software; the Free Software Foundation
7074
7368
# gives unlimited permission to copy and/or distribute it,
7075
7369
# with or without modifications, as long as this notice is preserved.
7079
7373
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7080
7374
# written in clear, in which case automake, when reading aclocal.m4,
7102
7396
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
7103
7397
[$1], CXX, [depcc="$CXX" am_compiler_list=],
7104
7398
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
7399
[$1], UPC, [depcc="$UPC" am_compiler_list=],
7105
7400
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
7106
7401
[depcc="$$1" am_compiler_list=])
7244
7541
# some people rename them; so instead we look at the file content.
7245
7542
# Grep'ing the first line is not enough: some people post-process
7246
7543
# each Makefile.in and add a new line on top of each file to say so.
7247
# So let's grep whole file.
7248
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7544
# Grep'ing the whole file is not good either: AIX grep has a line
7545
# limit of 2048, but all sed's we know have understand at least 4000.
7546
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
7249
7547
dirpart=`AS_DIRNAME("$mf")`
7305
7603
# Do all the work for Automake. -*- Autoconf -*-
7307
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7308
# Free Software Foundation, Inc.
7605
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7606
# 2005, 2006 Free Software Foundation, Inc.
7310
7608
# This file is free software; the Free Software Foundation
7311
7609
# gives unlimited permission to copy and/or distribute it,
7328
7626
# arguments mandatory, and then we can depend on a new Autoconf
7329
7627
# release and drop the old call support.
7330
7628
AC_DEFUN([AM_INIT_AUTOMAKE],
7331
[AC_PREREQ([2.58])dnl
7629
[AC_PREREQ([2.60])dnl
7332
7630
dnl Autoconf wants to disallow AM_ names. We explicitly allow
7333
7631
dnl the ones we care about.
7334
7632
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7335
7633
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7336
7634
AC_REQUIRE([AC_PROG_INSTALL])dnl
7337
# test to see if srcdir already configured
7338
if test "`cd $srcdir && pwd`" != "`pwd`" &&
7339
test -f $srcdir/config.status; then
7340
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7635
if test "`cd $srcdir && pwd`" != "`pwd`"; then
7636
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7637
# is not polluted with repeated "-I."
7638
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7639
# test to see if srcdir already configured
7640
if test -f $srcdir/config.status; then
7641
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7343
7645
# test whether we have cygpath
7357
7659
AC_SUBST([PACKAGE], [$1])dnl
7358
7660
AC_SUBST([VERSION], [$2])],
7359
7661
[_AM_SET_OPTIONS([$1])dnl
7662
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
7663
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
7664
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
7360
7665
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7361
7666
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7535
7844
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7537
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7846
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
7538
7847
# Free Software Foundation, Inc.
7540
7849
# This file is free software; the Free Software Foundation
7541
7850
# gives unlimited permission to copy and/or distribute it,
7542
7851
# with or without modifications, as long as this notice is preserved.
7546
7855
# AM_MISSING_PROG(NAME, PROGRAM)
7547
7856
# ------------------------------
7557
7866
# If it does, set am_missing_run to use it, otherwise, to nothing.
7558
7867
AC_DEFUN([AM_MISSING_HAS_RUN],
7559
7868
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7869
AC_REQUIRE_AUX_FILE([missing])dnl
7560
7870
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7561
7871
# Use eval to expand $SHELL
7562
7872
if eval "$MISSING --run true"; then
7570
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
7880
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7572
7882
# This file is free software; the Free Software Foundation
7573
7883
# gives unlimited permission to copy and/or distribute it,
7576
7886
# AM_PROG_MKDIR_P
7577
7887
# ---------------
7578
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7580
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7581
# created by `make install' are always world readable, even if the
7582
# installer happens to have an overly restrictive umask (e.g. 077).
7583
# This was a mistake. There are at least two reasons why we must not
7585
# - it causes special bits like SGID to be ignored,
7586
# - it may be too restrictive (some setups expect 775 directories).
7588
# Do not use -m 0755 and let people choose whatever they expect by
7591
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7592
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7593
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7594
# concurrently, both version can detect that a/ is missing, but only
7595
# one can create it and the other will error out. Consequently we
7596
# restrict ourselves to GNU make (using the --version option ensures
7888
# Check for `mkdir -p'.
7598
7889
AC_DEFUN([AM_PROG_MKDIR_P],
7599
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7600
# We used to keeping the `.' as first argument, in order to
7601
# allow $(mkdir_p) to be used without argument. As in
7602
# $(mkdir_p) $(somedir)
7603
# where $(somedir) is conditionally defined. However this is wrong
7605
# 1. if the package is installed by a user who cannot write `.'
7606
# make install will fail,
7607
# 2. the above comment should most certainly read
7608
# $(mkdir_p) $(DESTDIR)$(somedir)
7609
# so it does not work when $(somedir) is undefined and
7610
# $(DESTDIR) is not.
7611
# To support the latter case, we have to write
7612
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7613
# so the `.' trick is pointless.
7614
mkdir_p='mkdir -p --'
7616
# On NextStep and OpenStep, the `mkdir' command does not
7617
# recognize any option. It will interpret all options as
7618
# directories to create, and then abort because `.' already
7620
for d in ./-p ./--version;
7622
test -d $d && rmdir $d
7624
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7625
if test -f "$ac_aux_dir/mkinstalldirs"; then
7626
mkdir_p='$(mkinstalldirs)'
7628
mkdir_p='$(install_sh) -d'
7631
AC_SUBST([mkdir_p])])
7890
[AC_PREREQ([2.60])dnl
7891
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
7892
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
7893
dnl while keeping a definition of mkdir_p for backward compatibility.
7894
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7895
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7896
dnl Makefile.ins that do not define MKDIR_P, so we do our own
7897
dnl adjustment using top_builddir (which is defined more often than
7899
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7901
[[\\/$]]* | ?:[[\\/]]*) ;;
7902
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7633
7906
# Helper functions for option handling. -*- Autoconf -*-
7740
8013
if test "$cross_compiling" != no; then
7741
8014
AC_CHECK_TOOL([STRIP], [strip], :)
7743
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
8016
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7744
8017
AC_SUBST([INSTALL_STRIP_PROGRAM])])
8019
# Copyright (C) 2006 Free Software Foundation, Inc.
8021
# This file is free software; the Free Software Foundation
8022
# gives unlimited permission to copy and/or distribute it,
8023
# with or without modifications, as long as this notice is preserved.
8025
# _AM_SUBST_NOTMAKE(VARIABLE)
8026
# ---------------------------
8027
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
8028
# This macro is traced by Automake.
8029
AC_DEFUN([_AM_SUBST_NOTMAKE])
7746
8031
# Check how to create a tarball. -*- Autoconf -*-
7748
8033
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.