author | Sam Lantinga <slouken@libsdl.org> |
Sat, 21 Aug 2004 04:20:00 +0000 | |
changeset 939 | c7c04f811994 |
parent 886 | 05c551e5bc64 |
child 947 | 3bb035750537 |
permissions | -rw-r--r-- |
0 | 1 |
# Local macros for the SDL configure.in script |
2 |
||
3 |
dnl Function to link an architecture specific file |
|
4 |
dnl LINK_ARCH_SRC(source_dir, arch, source_file) |
|
794
a5defa3b93e1
Updated for the latest version of automake
Sam Lantinga <slouken@libsdl.org>
parents:
730
diff
changeset
|
5 |
AC_DEFUN([COPY_ARCH_SRC], |
0 | 6 |
[ |
7 |
old="$srcdir/$1/$2/$3" |
|
723
1e8865a3e127
Files now copied to build directory instead of source directory while configuring
Patrice Mandin <patmandin@gmail.com>
parents:
1
diff
changeset
|
8 |
new="$1/$3" |
1e8865a3e127
Files now copied to build directory instead of source directory while configuring
Patrice Mandin <patmandin@gmail.com>
parents:
1
diff
changeset
|
9 |
if test ! -d $1; then |
1e8865a3e127
Files now copied to build directory instead of source directory while configuring
Patrice Mandin <patmandin@gmail.com>
parents:
1
diff
changeset
|
10 |
echo "Creating directory $1" |
1e8865a3e127
Files now copied to build directory instead of source directory while configuring
Patrice Mandin <patmandin@gmail.com>
parents:
1
diff
changeset
|
11 |
mkdir -p $1 |
1e8865a3e127
Files now copied to build directory instead of source directory while configuring
Patrice Mandin <patmandin@gmail.com>
parents:
1
diff
changeset
|
12 |
fi |
1e8865a3e127
Files now copied to build directory instead of source directory while configuring
Patrice Mandin <patmandin@gmail.com>
parents:
1
diff
changeset
|
13 |
echo "Copying $old -> $new" |
0 | 14 |
cat >$new <<__EOF__ |
15 |
/* WARNING: This file was automatically generated! |
|
16 |
* Original: $old |
|
17 |
*/ |
|
18 |
__EOF__ |
|
19 |
cat >>$new <$old |
|
20 |
]) |
|
21 |
||
22 |
# |
|
939
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
23 |
# --- alsa.m4 --- |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
24 |
# |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
25 |
dnl Configure Paths for Alsa |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
26 |
dnl Some modifications by Richard Boulton <richard-alsa@tartarus.org> |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
27 |
dnl Christopher Lansdown <lansdoct@cs.alfred.edu> |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
28 |
dnl Jaroslav Kysela <perex@suse.cz> |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
29 |
dnl Last modification: alsa.m4,v 1.22 2002/05/27 11:14:20 tiwai Exp |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
30 |
dnl AM_PATH_ALSA([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
31 |
dnl Test for libasound, and define ALSA_CFLAGS and ALSA_LIBS as appropriate. |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
32 |
dnl enables arguments --with-alsa-prefix= |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
33 |
dnl --with-alsa-enc-prefix= |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
34 |
dnl --disable-alsatest (this has no effect, as yet) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
35 |
dnl |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
36 |
dnl For backwards compatibility, if ACTION_IF_NOT_FOUND is not specified, |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
37 |
dnl and the alsa libraries are not found, a fatal AC_MSG_ERROR() will result. |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
38 |
dnl |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
39 |
AC_DEFUN(AM_PATH_ALSA, |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
40 |
[dnl Save the original CFLAGS, LDFLAGS, and LIBS |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
41 |
alsa_save_CFLAGS="$CFLAGS" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
42 |
alsa_save_LDFLAGS="$LDFLAGS" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
43 |
alsa_save_LIBS="$LIBS" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
44 |
alsa_found=yes |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
45 |
|
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
46 |
dnl |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
47 |
dnl Get the cflags and libraries for alsa |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
48 |
dnl |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
49 |
AC_ARG_WITH(alsa-prefix, |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
50 |
[ --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)], |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
51 |
[alsa_prefix="$withval"], [alsa_prefix=""]) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
52 |
|
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
53 |
AC_ARG_WITH(alsa-inc-prefix, |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
54 |
[ --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)], |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
55 |
[alsa_inc_prefix="$withval"], [alsa_inc_prefix=""]) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
56 |
|
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
57 |
dnl FIXME: this is not yet implemented |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
58 |
AC_ARG_ENABLE(alsatest, |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
59 |
[ --disable-alsatest Do not try to compile and run a test Alsa program], |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
60 |
[enable_alsatest=no], |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
61 |
[enable_alsatest=yes]) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
62 |
|
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
63 |
dnl Add any special include directories |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
64 |
AC_MSG_CHECKING(for ALSA CFLAGS) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
65 |
if test "$alsa_inc_prefix" != "" ; then |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
66 |
ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
67 |
CFLAGS="$CFLAGS -I$alsa_inc_prefix" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
68 |
fi |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
69 |
AC_MSG_RESULT($ALSA_CFLAGS) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
70 |
|
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
71 |
dnl add any special lib dirs |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
72 |
AC_MSG_CHECKING(for ALSA LDFLAGS) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
73 |
if test "$alsa_prefix" != "" ; then |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
74 |
ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
75 |
LDFLAGS="$LDFLAGS $ALSA_LIBS" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
76 |
fi |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
77 |
|
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
78 |
dnl add the alsa library |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
79 |
ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
80 |
LIBS=`echo $LIBS | sed 's/-lm//'` |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
81 |
LIBS=`echo $LIBS | sed 's/-ldl//'` |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
82 |
LIBS=`echo $LIBS | sed 's/-lpthread//'` |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
83 |
LIBS=`echo $LIBS | sed 's/ //'` |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
84 |
LIBS="$ALSA_LIBS $LIBS" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
85 |
AC_MSG_RESULT($ALSA_LIBS) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
86 |
|
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
87 |
dnl Check for a working version of libasound that is of the right version. |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
88 |
min_alsa_version=ifelse([$1], ,0.1.1,$1) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
89 |
AC_MSG_CHECKING(for libasound headers version >= $min_alsa_version) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
90 |
no_alsa="" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
91 |
alsa_min_major_version=`echo $min_alsa_version | \ |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
92 |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
93 |
alsa_min_minor_version=`echo $min_alsa_version | \ |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
94 |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
95 |
alsa_min_micro_version=`echo $min_alsa_version | \ |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
96 |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
97 |
|
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
98 |
AC_LANG_SAVE |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
99 |
AC_LANG_C |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
100 |
AC_TRY_COMPILE([ |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
101 |
#include <alsa/asoundlib.h> |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
102 |
], [ |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
103 |
/* ensure backward compatibility */ |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
104 |
#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
105 |
#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
106 |
#endif |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
107 |
#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
108 |
#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
109 |
#endif |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
110 |
#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
111 |
#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
112 |
#endif |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
113 |
|
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
114 |
# if(SND_LIB_MAJOR > $alsa_min_major_version) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
115 |
exit(0); |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
116 |
# else |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
117 |
# if(SND_LIB_MAJOR < $alsa_min_major_version) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
118 |
# error not present |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
119 |
# endif |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
120 |
|
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
121 |
# if(SND_LIB_MINOR > $alsa_min_minor_version) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
122 |
exit(0); |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
123 |
# else |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
124 |
# if(SND_LIB_MINOR < $alsa_min_minor_version) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
125 |
# error not present |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
126 |
# endif |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
127 |
|
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
128 |
# if(SND_LIB_SUBMINOR < $alsa_min_micro_version) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
129 |
# error not present |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
130 |
# endif |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
131 |
# endif |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
132 |
# endif |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
133 |
exit(0); |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
134 |
], |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
135 |
[AC_MSG_RESULT(found.)], |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
136 |
[AC_MSG_RESULT(not present.) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
137 |
ifelse([$3], , [AC_MSG_ERROR(Sufficiently new version of libasound not found.)]) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
138 |
alsa_found=no] |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
139 |
) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
140 |
AC_LANG_RESTORE |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
141 |
|
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
142 |
dnl Now that we know that we have the right version, let's see if we have the library and not just the headers. |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
143 |
AC_CHECK_LIB([asound], [snd_ctl_open],, |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
144 |
[ifelse([$3], , [AC_MSG_ERROR(No linkable libasound was found.)]) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
145 |
alsa_found=no] |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
146 |
) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
147 |
|
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
148 |
CFLAGS="$alsa_save_CFLAGS" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
149 |
LDFLAGS="$alsa_save_LDFLAGS" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
150 |
LIBS="$alsa_save_LIBS" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
151 |
if test "x$alsa_found" = "xyes" ; then |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
152 |
ifelse([$2], , :, [$2]) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
153 |
else |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
154 |
ifelse([$3], , :, [$3]) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
155 |
CFLAGS="$alsa_save_CFLAGS" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
156 |
LDFLAGS="$alsa_save_LDFLAGS" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
157 |
LIBS="$alsa_save_LIBS" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
158 |
ALSA_CFLAGS="" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
159 |
ALSA_LIBS="" |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
160 |
fi |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
161 |
|
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
162 |
dnl That should be it. Now just export out symbols: |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
163 |
AC_SUBST(ALSA_CFLAGS) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
164 |
AC_SUBST(ALSA_LIBS) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
165 |
]) |
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
166 |
|
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
167 |
|
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
168 |
|
c7c04f811994
Date: Tue, 01 Jun 2004 15:27:44 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
169 |
# |
0 | 170 |
# --- esd.m4 --- |
171 |
# |
|
172 |
# Configure paths for ESD |
|
173 |
# Manish Singh 98-9-30 |
|
174 |
# stolen back from Frank Belew |
|
175 |
# stolen from Manish Singh |
|
176 |
# Shamelessly stolen from Owen Taylor |
|
177 |
||
178 |
dnl AM_PATH_ESD([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) |
|
179 |
dnl Test for ESD, and define ESD_CFLAGS and ESD_LIBS |
|
180 |
dnl |
|
794
a5defa3b93e1
Updated for the latest version of automake
Sam Lantinga <slouken@libsdl.org>
parents:
730
diff
changeset
|
181 |
AC_DEFUN([AM_PATH_ESD], |
0 | 182 |
[dnl |
183 |
dnl Get the cflags and libraries from the esd-config script |
|
184 |
dnl |
|
185 |
AC_ARG_WITH(esd-prefix,[ --with-esd-prefix=PFX Prefix where ESD is installed (optional)], |
|
186 |
esd_prefix="$withval", esd_prefix="") |
|
187 |
AC_ARG_WITH(esd-exec-prefix,[ --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)], |
|
188 |
esd_exec_prefix="$withval", esd_exec_prefix="") |
|
189 |
AC_ARG_ENABLE(esdtest, [ --disable-esdtest Do not try to compile and run a test ESD program], |
|
190 |
, enable_esdtest=yes) |
|
191 |
||
192 |
if test x$esd_exec_prefix != x ; then |
|
193 |
esd_args="$esd_args --exec-prefix=$esd_exec_prefix" |
|
194 |
if test x${ESD_CONFIG+set} != xset ; then |
|
195 |
ESD_CONFIG=$esd_exec_prefix/bin/esd-config |
|
196 |
fi |
|
197 |
fi |
|
198 |
if test x$esd_prefix != x ; then |
|
199 |
esd_args="$esd_args --prefix=$esd_prefix" |
|
200 |
if test x${ESD_CONFIG+set} != xset ; then |
|
201 |
ESD_CONFIG=$esd_prefix/bin/esd-config |
|
202 |
fi |
|
203 |
fi |
|
204 |
||
205 |
AC_PATH_PROG(ESD_CONFIG, esd-config, no) |
|
206 |
min_esd_version=ifelse([$1], ,0.2.7,$1) |
|
207 |
AC_MSG_CHECKING(for ESD - version >= $min_esd_version) |
|
208 |
no_esd="" |
|
209 |
if test "$ESD_CONFIG" = "no" ; then |
|
210 |
no_esd=yes |
|
211 |
else |
|
212 |
ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags` |
|
213 |
ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs` |
|
214 |
||
215 |
esd_major_version=`$ESD_CONFIG $esd_args --version | \ |
|
216 |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` |
|
217 |
esd_minor_version=`$ESD_CONFIG $esd_args --version | \ |
|
218 |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` |
|
219 |
esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \ |
|
220 |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` |
|
221 |
if test "x$enable_esdtest" = "xyes" ; then |
|
222 |
ac_save_CFLAGS="$CFLAGS" |
|
223 |
ac_save_LIBS="$LIBS" |
|
224 |
CFLAGS="$CFLAGS $ESD_CFLAGS" |
|
225 |
LIBS="$LIBS $ESD_LIBS" |
|
226 |
dnl |
|
227 |
dnl Now check if the installed ESD is sufficiently new. (Also sanity |
|
228 |
dnl checks the results of esd-config to some extent |
|
229 |
dnl |
|
230 |
rm -f conf.esdtest |
|
231 |
AC_TRY_RUN([ |
|
232 |
#include <stdio.h> |
|
233 |
#include <stdlib.h> |
|
234 |
#include <string.h> |
|
235 |
#include <esd.h> |
|
236 |
||
237 |
char* |
|
238 |
my_strdup (char *str) |
|
239 |
{ |
|
240 |
char *new_str; |
|
241 |
||
242 |
if (str) |
|
243 |
{ |
|
244 |
new_str = malloc ((strlen (str) + 1) * sizeof(char)); |
|
245 |
strcpy (new_str, str); |
|
246 |
} |
|
247 |
else |
|
248 |
new_str = NULL; |
|
249 |
||
250 |
return new_str; |
|
251 |
} |
|
252 |
||
253 |
int main () |
|
254 |
{ |
|
255 |
int major, minor, micro; |
|
256 |
char *tmp_version; |
|
257 |
||
258 |
system ("touch conf.esdtest"); |
|
259 |
||
260 |
/* HP/UX 9 (%@#!) writes to sscanf strings */ |
|
261 |
tmp_version = my_strdup("$min_esd_version"); |
|
262 |
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
|
263 |
printf("%s, bad version string\n", "$min_esd_version"); |
|
264 |
exit(1); |
|
265 |
} |
|
266 |
||
267 |
if (($esd_major_version > major) || |
|
268 |
(($esd_major_version == major) && ($esd_minor_version > minor)) || |
|
269 |
(($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro))) |
|
270 |
{ |
|
271 |
return 0; |
|
272 |
} |
|
273 |
else |
|
274 |
{ |
|
275 |
printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version); |
|
276 |
printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro); |
|
277 |
printf("*** best to upgrade to the required version.\n"); |
|
278 |
printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n"); |
|
279 |
printf("*** to point to the correct copy of esd-config, and remove the file\n"); |
|
280 |
printf("*** config.cache before re-running configure\n"); |
|
281 |
return 1; |
|
282 |
} |
|
283 |
} |
|
284 |
||
285 |
],, no_esd=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) |
|
286 |
CFLAGS="$ac_save_CFLAGS" |
|
287 |
LIBS="$ac_save_LIBS" |
|
288 |
fi |
|
289 |
fi |
|
290 |
if test "x$no_esd" = x ; then |
|
291 |
AC_MSG_RESULT(yes) |
|
292 |
ifelse([$2], , :, [$2]) |
|
293 |
else |
|
294 |
AC_MSG_RESULT(no) |
|
295 |
if test "$ESD_CONFIG" = "no" ; then |
|
296 |
echo "*** The esd-config script installed by ESD could not be found" |
|
297 |
echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in" |
|
298 |
echo "*** your path, or set the ESD_CONFIG environment variable to the" |
|
299 |
echo "*** full path to esd-config." |
|
300 |
else |
|
301 |
if test -f conf.esdtest ; then |
|
302 |
: |
|
303 |
else |
|
304 |
echo "*** Could not run ESD test program, checking why..." |
|
305 |
CFLAGS="$CFLAGS $ESD_CFLAGS" |
|
306 |
LIBS="$LIBS $ESD_LIBS" |
|
307 |
AC_TRY_LINK([ |
|
308 |
#include <stdio.h> |
|
309 |
#include <esd.h> |
|
310 |
], [ return 0; ], |
|
311 |
[ echo "*** The test program compiled, but did not run. This usually means" |
|
312 |
echo "*** that the run-time linker is not finding ESD or finding the wrong" |
|
313 |
echo "*** version of ESD. If it is not finding ESD, you'll need to set your" |
|
314 |
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
|
315 |
echo "*** to the installed location Also, make sure you have run ldconfig if that" |
|
316 |
echo "*** is required on your system" |
|
317 |
echo "***" |
|
318 |
echo "*** If you have an old version installed, it is best to remove it, although" |
|
319 |
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], |
|
320 |
[ echo "*** The test program failed to compile or link. See the file config.log for the" |
|
321 |
echo "*** exact error that occured. This usually means ESD was incorrectly installed" |
|
322 |
echo "*** or that you have moved ESD since it was installed. In the latter case, you" |
|
323 |
echo "*** may want to edit the esd-config script: $ESD_CONFIG" ]) |
|
324 |
CFLAGS="$ac_save_CFLAGS" |
|
325 |
LIBS="$ac_save_LIBS" |
|
326 |
fi |
|
327 |
fi |
|
328 |
ESD_CFLAGS="" |
|
329 |
ESD_LIBS="" |
|
330 |
ifelse([$3], , :, [$3]) |
|
331 |
fi |
|
332 |
AC_SUBST(ESD_CFLAGS) |
|
333 |
AC_SUBST(ESD_LIBS) |
|
334 |
rm -f conf.esdtest |
|
335 |
]) |
|
336 |
||
729
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
337 |
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
338 |
## Copyright 1996, 1997, 1998, 1999, 2000, 2001 |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
339 |
## Free Software Foundation, Inc. |
0 | 340 |
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
341 |
## |
|
342 |
## This program is free software; you can redistribute it and/or modify |
|
343 |
## it under the terms of the GNU General Public License as published by |
|
344 |
## the Free Software Foundation; either version 2 of the License, or |
|
345 |
## (at your option) any later version. |
|
346 |
## |
|
347 |
## This program is distributed in the hope that it will be useful, but |
|
348 |
## WITHOUT ANY WARRANTY; without even the implied warranty of |
|
349 |
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
350 |
## General Public License for more details. |
|
351 |
## |
|
352 |
## You should have received a copy of the GNU General Public License |
|
353 |
## along with this program; if not, write to the Free Software |
|
354 |
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
355 |
## |
|
356 |
## As a special exception to the GNU General Public License, if you |
|
357 |
## distribute this file as part of a program that contains a |
|
358 |
## configuration script generated by Autoconf, you may include it under |
|
359 |
## the same distribution terms that you use for the rest of that program. |
|
360 |
||
729
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
361 |
# serial 47 AC_PROG_LIBTOOL |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
362 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
363 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
364 |
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
365 |
# ----------------------------------------------------------- |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
366 |
# If this macro is not defined by Autoconf, define it here. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
367 |
m4_ifdef([AC_PROVIDE_IFELSE], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
368 |
[], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
369 |
[m4_define([AC_PROVIDE_IFELSE], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
370 |
[m4_ifdef([AC_PROVIDE_$1], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
371 |
[$2], [$3])])]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
372 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
373 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
374 |
# AC_PROG_LIBTOOL |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
375 |
# --------------- |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
376 |
AC_DEFUN([AC_PROG_LIBTOOL], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
377 |
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
378 |
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
379 |
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
380 |
AC_PROVIDE_IFELSE([AC_PROG_CXX], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
381 |
[AC_LIBTOOL_CXX], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
382 |
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
383 |
])]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
384 |
dnl And a similar setup for Fortran 77 support |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
385 |
AC_PROVIDE_IFELSE([AC_PROG_F77], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
386 |
[AC_LIBTOOL_F77], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
387 |
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
388 |
])]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
389 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
390 |
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
391 |
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
392 |
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
393 |
AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
394 |
[AC_LIBTOOL_GCJ], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
395 |
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
396 |
[AC_LIBTOOL_GCJ], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
397 |
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
398 |
[AC_LIBTOOL_GCJ], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
399 |
[ifdef([AC_PROG_GCJ], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
400 |
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
401 |
ifdef([A][M_PROG_GCJ], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
402 |
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
403 |
ifdef([LT_AC_PROG_GCJ], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
404 |
[define([LT_AC_PROG_GCJ], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
405 |
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
406 |
])])# AC_PROG_LIBTOOL |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
407 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
408 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
409 |
# _AC_PROG_LIBTOOL |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
410 |
# ---------------- |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
411 |
AC_DEFUN([_AC_PROG_LIBTOOL], |
0 | 412 |
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl |
729
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
413 |
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
414 |
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
415 |
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl |
0 | 416 |
|
417 |
# This can be used to rebuild libtool when needed |
|
729
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
418 |
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
0 | 419 |
|
420 |
# Always use our own libtool. |
|
421 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
|
422 |
AC_SUBST(LIBTOOL)dnl |
|
423 |
||
729
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
424 |
# Prevent multiple expansion |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
425 |
define([AC_PROG_LIBTOOL], []) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
426 |
])# _AC_PROG_LIBTOOL |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
427 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
428 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
429 |
# AC_LIBTOOL_SETUP |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
430 |
# ---------------- |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
431 |
AC_DEFUN([AC_LIBTOOL_SETUP], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
432 |
[AC_PREREQ(2.50)dnl |
0 | 433 |
AC_REQUIRE([AC_ENABLE_SHARED])dnl |
434 |
AC_REQUIRE([AC_ENABLE_STATIC])dnl |
|
435 |
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl |
|
436 |
AC_REQUIRE([AC_CANONICAL_HOST])dnl |
|
437 |
AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
|
438 |
AC_REQUIRE([AC_PROG_CC])dnl |
|
439 |
AC_REQUIRE([AC_PROG_LD])dnl |
|
729
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
440 |
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl |
0 | 441 |
AC_REQUIRE([AC_PROG_NM])dnl |
729
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
442 |
|
0 | 443 |
AC_REQUIRE([AC_PROG_LN_S])dnl |
729
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
444 |
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
445 |
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
446 |
AC_REQUIRE([AC_OBJEXT])dnl |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
447 |
AC_REQUIRE([AC_EXEEXT])dnl |
0 | 448 |
dnl |
449 |
||
729
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
450 |
AC_LIBTOOL_SYS_MAX_CMD_LEN |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
451 |
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
452 |
AC_LIBTOOL_OBJDIR |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
453 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
454 |
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
455 |
_LT_AC_PROG_ECHO_BACKSLASH |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
456 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
457 |
case $host_os in |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
458 |
aix3*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
459 |
# AIX sometimes has problems with the GCC collect2 program. For some |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
460 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
461 |
# vanish in a puff of smoke. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
462 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
463 |
COLLECT_NAMES= |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
464 |
export COLLECT_NAMES |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
465 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
466 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
467 |
esac |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
468 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
469 |
# Sed substitution that helps us do robust quoting. It backslashifies |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
470 |
# metacharacters that are still active within double-quoted strings. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
471 |
Xsed='sed -e s/^X//' |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
472 |
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
473 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
474 |
# Same as above, but do not quote variable references. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
475 |
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
476 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
477 |
# Sed substitution to delay expansion of an escaped shell variable in a |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
478 |
# double_quote_subst'ed string. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
479 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
480 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
481 |
# Sed substitution to avoid accidental globbing in evaled expressions |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
482 |
no_glob_subst='s/\*/\\\*/g' |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
483 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
484 |
# Constants: |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
485 |
rm="rm -f" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
486 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
487 |
# Global variables: |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
488 |
default_ofile=libtool |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
489 |
can_build_shared=yes |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
490 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
491 |
# All known linkers require a `.a' archive for static linking (except M$VC, |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
492 |
# which needs '.lib'). |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
493 |
libext=a |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
494 |
ltmain="$ac_aux_dir/ltmain.sh" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
495 |
ofile="$default_ofile" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
496 |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
497 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
498 |
AC_CHECK_TOOL(AR, ar, false) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
499 |
AC_CHECK_TOOL(RANLIB, ranlib, :) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
500 |
AC_CHECK_TOOL(STRIP, strip, :) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
501 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
502 |
old_CC="$CC" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
503 |
old_CFLAGS="$CFLAGS" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
504 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
505 |
# Set sane defaults for various variables |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
506 |
test -z "$AR" && AR=ar |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
507 |
test -z "$AR_FLAGS" && AR_FLAGS=cru |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
508 |
test -z "$AS" && AS=as |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
509 |
test -z "$CC" && CC=cc |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
510 |
test -z "$LTCC" && LTCC=$CC |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
511 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
512 |
test -z "$LD" && LD=ld |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
513 |
test -z "$LN_S" && LN_S="ln -s" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
514 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
515 |
test -z "$NM" && NM=nm |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
516 |
test -z "$SED" && SED=sed |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
517 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
518 |
test -z "$RANLIB" && RANLIB=: |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
519 |
test -z "$STRIP" && STRIP=: |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
520 |
test -z "$ac_objext" && ac_objext=o |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
521 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
522 |
# Determine commands to create old-style static archives. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
523 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
524 |
old_postinstall_cmds='chmod 644 $oldlib' |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
525 |
old_postuninstall_cmds= |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
526 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
527 |
if test -n "$RANLIB"; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
528 |
case $host_os in |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
529 |
openbsd*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
530 |
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
531 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
532 |
*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
533 |
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
534 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
535 |
esac |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
536 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
537 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
538 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
539 |
# Only perform the check for file, if the check method requires it |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
540 |
case $deplibs_check_method in |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
541 |
file_magic*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
542 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
543 |
AC_PATH_MAGIC |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
544 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
545 |
;; |
0 | 546 |
esac |
547 |
||
729
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
548 |
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
549 |
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
550 |
enable_win32_dll=yes, enable_win32_dll=no) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
551 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
552 |
AC_ARG_ENABLE([libtool-lock], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
553 |
[AC_HELP_STRING([--disable-libtool-lock], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
554 |
[avoid locking (might break parallel builds)])]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
555 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
556 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
557 |
AC_ARG_WITH([pic], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
558 |
[AC_HELP_STRING([--with-pic], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
559 |
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
560 |
[pic_mode="$withval"], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
561 |
[pic_mode=default]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
562 |
test -z "$pic_mode" && pic_mode=default |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
563 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
564 |
# Use C for the default configuration in the libtool script |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
565 |
tagname= |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
566 |
AC_LIBTOOL_LANG_C_CONFIG |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
567 |
_LT_AC_TAGCONFIG |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
568 |
])# AC_LIBTOOL_SETUP |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
569 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
570 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
571 |
# _LT_AC_SYS_COMPILER |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
572 |
# ------------------- |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
573 |
AC_DEFUN([_LT_AC_SYS_COMPILER], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
574 |
[AC_REQUIRE([AC_PROG_CC])dnl |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
575 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
576 |
# If no C compiler was specified, use CC. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
577 |
LTCC=${LTCC-"$CC"} |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
578 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
579 |
# Allow CC to be a program name with arguments. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
580 |
compiler=$CC |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
581 |
])# _LT_AC_SYS_COMPILER |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
582 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
583 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
584 |
# _LT_AC_SYS_LIBPATH_AIX |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
585 |
# ---------------------- |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
586 |
# Links a minimal program and checks the executable |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
587 |
# for the system default hardcoded library path. In most cases, |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
588 |
# this is /usr/lib:/lib, but when the MPI compilers are used |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
589 |
# the location of the communication and MPI libs are included too. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
590 |
# If we don't find anything, use the default library path according |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
591 |
# to the aix ld manual. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
592 |
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
593 |
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
594 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
595 |
}'` |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
596 |
# Check for a 64-bit object if we didn't find anything. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
597 |
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; } |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
598 |
}'`; fi],[]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
599 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
600 |
])# _LT_AC_SYS_LIBPATH_AIX |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
601 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
602 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
603 |
# _LT_AC_SHELL_INIT(ARG) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
604 |
# ---------------------- |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
605 |
AC_DEFUN([_LT_AC_SHELL_INIT], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
606 |
[ifdef([AC_DIVERSION_NOTICE], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
607 |
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
608 |
[AC_DIVERT_PUSH(NOTICE)]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
609 |
$1 |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
610 |
AC_DIVERT_POP |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
611 |
])# _LT_AC_SHELL_INIT |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
612 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
613 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
614 |
# _LT_AC_PROG_ECHO_BACKSLASH |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
615 |
# -------------------------- |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
616 |
# Add some code to the start of the generated configure script which |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
617 |
# will find an echo command which doesn't interpret backslashes. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
618 |
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
619 |
[_LT_AC_SHELL_INIT([ |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
620 |
# Check that we are running under the correct shell. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
621 |
SHELL=${CONFIG_SHELL-/bin/sh} |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
622 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
623 |
case X$ECHO in |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
624 |
X*--fallback-echo) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
625 |
# Remove one level of quotation (which was required for Make). |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
626 |
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
627 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
628 |
esac |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
629 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
630 |
echo=${ECHO-echo} |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
631 |
if test "X[$]1" = X--no-reexec; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
632 |
# Discard the --no-reexec flag, and continue. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
633 |
shift |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
634 |
elif test "X[$]1" = X--fallback-echo; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
635 |
# Avoid inline document here, it may be left over |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
636 |
: |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
637 |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
638 |
# Yippee, $echo works! |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
639 |
: |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
640 |
else |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
641 |
# Restart under the correct shell. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
642 |
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
643 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
644 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
645 |
if test "X[$]1" = X--fallback-echo; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
646 |
# used as fallback echo |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
647 |
shift |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
648 |
cat <<EOF |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
649 |
[$]* |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
650 |
EOF |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
651 |
exit 0 |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
652 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
653 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
654 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
655 |
# if CDPATH is set. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
656 |
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
657 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
658 |
if test -z "$ECHO"; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
659 |
if test "X${echo_test_string+set}" != Xset; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
660 |
# find a string as large as possible, as long as the shell can cope with it |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
661 |
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
662 |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
663 |
if (echo_test_string="`eval $cmd`") 2>/dev/null && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
664 |
echo_test_string="`eval $cmd`" && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
665 |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
666 |
then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
667 |
break |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
668 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
669 |
done |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
670 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
671 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
672 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
673 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
674 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
675 |
: |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
676 |
else |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
677 |
# The Solaris, AIX, and Digital Unix default echo programs unquote |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
678 |
# backslashes. This makes it impossible to quote backslashes using |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
679 |
# echo "$something" | sed 's/\\/\\\\/g' |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
680 |
# |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
681 |
# So, first we look for a working echo in the user's PATH. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
682 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
683 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
684 |
for dir in $PATH /usr/ucb; do |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
685 |
IFS="$lt_save_ifs" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
686 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
687 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
688 |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
689 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
690 |
echo="$dir/echo" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
691 |
break |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
692 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
693 |
done |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
694 |
IFS="$lt_save_ifs" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
695 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
696 |
if test "X$echo" = Xecho; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
697 |
# We didn't find a better echo, so look for alternatives. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
698 |
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
699 |
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
700 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
701 |
# This shell has a builtin print -r that does the trick. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
702 |
echo='print -r' |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
703 |
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
704 |
test "X$CONFIG_SHELL" != X/bin/ksh; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
705 |
# If we have ksh, try running configure again with it. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
706 |
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
707 |
export ORIGINAL_CONFIG_SHELL |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
708 |
CONFIG_SHELL=/bin/ksh |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
709 |
export CONFIG_SHELL |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
710 |
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
711 |
else |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
712 |
# Try using printf. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
713 |
echo='printf %s\n' |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
714 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
715 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
716 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
717 |
# Cool, printf works |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
718 |
: |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
719 |
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
720 |
test "X$echo_testing_string" = 'X\t' && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
721 |
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
722 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
723 |
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
724 |
export CONFIG_SHELL |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
725 |
SHELL="$CONFIG_SHELL" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
726 |
export SHELL |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
727 |
echo="$CONFIG_SHELL [$]0 --fallback-echo" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
728 |
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
729 |
test "X$echo_testing_string" = 'X\t' && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
730 |
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
731 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
732 |
echo="$CONFIG_SHELL [$]0 --fallback-echo" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
733 |
else |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
734 |
# maybe with a smaller string... |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
735 |
prev=: |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
736 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
737 |
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
738 |
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
739 |
then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
740 |
break |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
741 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
742 |
prev="$cmd" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
743 |
done |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
744 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
745 |
if test "$prev" != 'sed 50q "[$]0"'; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
746 |
echo_test_string=`eval $prev` |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
747 |
export echo_test_string |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
748 |
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
749 |
else |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
750 |
# Oops. We lost completely, so just stick with echo. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
751 |
echo=echo |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
752 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
753 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
754 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
755 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
756 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
757 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
758 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
759 |
# Copy echo and quote the copy suitably for passing to libtool from |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
760 |
# the Makefile, instead of quoting the original, which is used later. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
761 |
ECHO=$echo |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
762 |
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
763 |
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
764 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
765 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
766 |
AC_SUBST(ECHO) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
767 |
])])# _LT_AC_PROG_ECHO_BACKSLASH |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
768 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
769 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
770 |
# _LT_AC_LOCK |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
771 |
# ----------- |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
772 |
AC_DEFUN([_LT_AC_LOCK], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
773 |
[AC_ARG_ENABLE([libtool-lock], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
774 |
[AC_HELP_STRING([--disable-libtool-lock], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
775 |
[avoid locking (might break parallel builds)])]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
776 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
0 | 777 |
|
778 |
# Some flags need to be propagated to the compiler or linker for good |
|
779 |
# libtool support. |
|
729
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
780 |
case $host in |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
781 |
ia64-*-hpux*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
782 |
# Find out which ABI we are using. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
783 |
echo 'int i;' > conftest.$ac_ext |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
784 |
if AC_TRY_EVAL(ac_compile); then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
785 |
case `/usr/bin/file conftest.$ac_objext` in |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
786 |
*ELF-32*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
787 |
HPUX_IA64_MODE="32" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
788 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
789 |
*ELF-64*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
790 |
HPUX_IA64_MODE="64" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
791 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
792 |
esac |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
793 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
794 |
rm -rf conftest* |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
795 |
;; |
0 | 796 |
*-*-irix6*) |
797 |
# Find out which ABI we are using. |
|
798 |
echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
|
799 |
if AC_TRY_EVAL(ac_compile); then |
|
729
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
800 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
801 |
case `/usr/bin/file conftest.$ac_objext` in |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
802 |
*32-bit*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
803 |
LD="${LD-ld} -melf32bsmip" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
804 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
805 |
*N32*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
806 |
LD="${LD-ld} -melf32bmipn32" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
807 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
808 |
*64-bit*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
809 |
LD="${LD-ld} -melf64bmip" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
810 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
811 |
esac |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
812 |
else |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
813 |
case `/usr/bin/file conftest.$ac_objext` in |
0 | 814 |
*32-bit*) |
815 |
LD="${LD-ld} -32" |
|
816 |
;; |
|
817 |
*N32*) |
|
818 |
LD="${LD-ld} -n32" |
|
819 |
;; |
|
820 |
*64-bit*) |
|
821 |
LD="${LD-ld} -64" |
|
822 |
;; |
|
823 |
esac |
|
729
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
824 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
825 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
826 |
rm -rf conftest* |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
827 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
828 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
829 |
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
830 |
# Find out which ABI we are using. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
831 |
echo 'int i;' > conftest.$ac_ext |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
832 |
if AC_TRY_EVAL(ac_compile); then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
833 |
case "`/usr/bin/file conftest.o`" in |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
834 |
*32-bit*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
835 |
case $host in |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
836 |
x86_64-*linux*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
837 |
LD="${LD-ld} -m elf_i386" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
838 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
839 |
ppc64-*linux*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
840 |
LD="${LD-ld} -m elf32ppclinux" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
841 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
842 |
s390x-*linux*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
843 |
LD="${LD-ld} -m elf_s390" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
844 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
845 |
sparc64-*linux*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
846 |
LD="${LD-ld} -m elf32_sparc" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
847 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
848 |
esac |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
849 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
850 |
*64-bit*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
851 |
case $host in |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
852 |
x86_64-*linux*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
853 |
LD="${LD-ld} -m elf_x86_64" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
854 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
855 |
ppc*-*linux*|powerpc*-*linux*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
856 |
LD="${LD-ld} -m elf64ppc" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
857 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
858 |
s390*-*linux*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
859 |
LD="${LD-ld} -m elf64_s390" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
860 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
861 |
sparc*-*linux*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
862 |
LD="${LD-ld} -m elf64_sparc" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
863 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
864 |
esac |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
865 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
866 |
esac |
0 | 867 |
fi |
868 |
rm -rf conftest* |
|
869 |
;; |
|
870 |
||
871 |
*-*-sco3.2v5*) |
|
872 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
|
873 |
SAVE_CFLAGS="$CFLAGS" |
|
874 |
CFLAGS="$CFLAGS -belf" |
|
875 |
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
|
729
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
876 |
[AC_LANG_PUSH(C) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
877 |
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
878 |
AC_LANG_POP]) |
0 | 879 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
880 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
881 |
CFLAGS="$SAVE_CFLAGS" |
|
882 |
fi |
|
883 |
;; |
|
729
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
884 |
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
885 |
[*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
0 | 886 |
AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
887 |
AC_CHECK_TOOL(AS, as, false) |
|
888 |
AC_CHECK_TOOL(OBJDUMP, objdump, false) |
|
889 |
;; |
|
729
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
890 |
]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
891 |
esac |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
892 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
893 |
need_locks="$enable_libtool_lock" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
894 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
895 |
])# _LT_AC_LOCK |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
896 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
897 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
898 |
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
899 |
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
900 |
# ---------------------------------------------------------------- |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
901 |
# Check whether the given compiler option works |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
902 |
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
903 |
[AC_CACHE_CHECK([$1], [$2], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
904 |
[$2=no |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
905 |
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
906 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
907 |
lt_compiler_flag="$3" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
908 |
# Insert the option either (1) after the last *FLAGS variable, or |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
909 |
# (2) before a word containing "conftest.", or (3) at the end. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
910 |
# Note that $ac_compile itself does not contain backslashes and begins |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
911 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
912 |
# The option is referenced via a variable to avoid confusing sed. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
913 |
lt_compile=`echo "$ac_compile" | $SED \ |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
914 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
915 |
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
916 |
-e 's:$: $lt_compiler_flag:'` |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
917 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
918 |
(eval "$lt_compile" 2>conftest.err) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
919 |
ac_status=$? |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
920 |
cat conftest.err >&AS_MESSAGE_LOG_FD |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
921 |
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
922 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
923 |
# The compiler can only warn and ignore the option if not recognized |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
924 |
# So say no if there are warnings |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
925 |
if test ! -s conftest.err; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
926 |
$2=yes |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
927 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
928 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
929 |
$rm conftest* |
0 | 930 |
]) |
729
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
931 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
932 |
if test x"[$]$2" = xyes; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
933 |
ifelse([$5], , :, [$5]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
934 |
else |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
935 |
ifelse([$6], , :, [$6]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
936 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
937 |
])# AC_LIBTOOL_COMPILER_OPTION |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
938 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
939 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
940 |
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
941 |
# [ACTION-SUCCESS], [ACTION-FAILURE]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
942 |
# ------------------------------------------------------------ |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
943 |
# Check whether the given compiler option works |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
944 |
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
945 |
[AC_CACHE_CHECK([$1], [$2], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
946 |
[$2=no |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
947 |
save_LDFLAGS="$LDFLAGS" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
948 |
LDFLAGS="$LDFLAGS $3" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
949 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
950 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
951 |
# The compiler can only warn and ignore the option if not recognized |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
952 |
# So say no if there are warnings |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
953 |
if test -s conftest.err; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
954 |
# Append any errors to the config.log. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
955 |
cat conftest.err 1>&AS_MESSAGE_LOG_FD |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
956 |
else |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
957 |
$2=yes |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
958 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
959 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
960 |
$rm conftest* |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
961 |
LDFLAGS="$save_LDFLAGS" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
962 |
]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
963 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
964 |
if test x"[$]$2" = xyes; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
965 |
ifelse([$4], , :, [$4]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
966 |
else |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
967 |
ifelse([$5], , :, [$5]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
968 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
969 |
])# AC_LIBTOOL_LINKER_OPTION |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
970 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
971 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
972 |
# AC_LIBTOOL_SYS_MAX_CMD_LEN |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
973 |
# -------------------------- |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
974 |
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
975 |
[# find the maximum length of command line arguments |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
976 |
AC_MSG_CHECKING([the maximum length of command line arguments]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
977 |
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
978 |
i=0 |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
979 |
testring="ABCD" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
980 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
981 |
case $build_os in |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
982 |
msdosdjgpp*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
983 |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
984 |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
985 |
# during glob expansion). Even if it were fixed, the result of this |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
986 |
# check would be larger than it should be. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
987 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
988 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
989 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
990 |
gnu*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
991 |
# Under GNU Hurd, this test is not required because there is |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
992 |
# no limit to the length of command line arguments. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
993 |
# Libtool will interpret -1 as no limit whatsoever |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
994 |
lt_cv_sys_max_cmd_len=-1; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
995 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
996 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
997 |
cygwin* | mingw*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
998 |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
999 |
# about 5 minutes as the teststring grows exponentially. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1000 |
# Worse, since 9x/ME are not pre-emptively multitasking, |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1001 |
# you end up with a "frozen" computer, even though with patience |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1002 |
# the test eventually succeeds (with a max line length of 256k). |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1003 |
# Instead, let's just punt: use the minimum linelength reported by |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1004 |
# all of the supported platforms: 8192 (on NT/2K/XP). |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1005 |
lt_cv_sys_max_cmd_len=8192; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1006 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1007 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1008 |
*) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1009 |
# If test is not a shell built-in, we'll probably end up computing a |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1010 |
# maximum length that is only half of the actual maximum length, but |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1011 |
# we can't tell. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1012 |
while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \ |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1013 |
= "XX$testring") >/dev/null 2>&1 && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1014 |
new_result=`expr "X$testring" : ".*" 2>&1` && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1015 |
lt_cv_sys_max_cmd_len=$new_result && |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1016 |
test $i != 17 # 1/2 MB should be enough |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1017 |
do |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1018 |
i=`expr $i + 1` |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1019 |
testring=$testring$testring |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1020 |
done |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1021 |
testring= |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1022 |
# Add a significant safety factor because C++ compilers can tack on massive |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1023 |
# amounts of additional arguments before passing them to the linker. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1024 |
# It appears as though 1/2 is a usable value. |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1025 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1026 |
;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1027 |
esac |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1028 |
]) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1029 |
if test -n $lt_cv_sys_max_cmd_len ; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1030 |
AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1031 |
else |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1032 |
AC_MSG_RESULT(none) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1033 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1034 |
])# AC_LIBTOOL_SYS_MAX_CMD_LEN |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1035 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1036 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1037 |
# _LT_AC_CHECK_DLFCN |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1038 |
# -------------------- |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1039 |
AC_DEFUN([_LT_AC_CHECK_DLFCN], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1040 |
[AC_CHECK_HEADERS(dlfcn.h)dnl |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1041 |
])# _LT_AC_CHECK_DLFCN |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1042 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1043 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1044 |
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1045 |
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1046 |
# ------------------------------------------------------------------ |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1047 |
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1048 |
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1049 |
if test "$cross_compiling" = yes; then : |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1050 |
[$4] |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1051 |
else |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1052 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1053 |
lt_status=$lt_dlunknown |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1054 |
cat > conftest.$ac_ext <<EOF |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1055 |
[#line __oline__ "configure" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1056 |
#include "confdefs.h" |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1057 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1058 |
#if HAVE_DLFCN_H |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1059 |
#include <dlfcn.h> |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1060 |
#endif |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1061 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1062 |
#include <stdio.h> |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1063 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1064 |
#ifdef RTLD_GLOBAL |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1065 |
# define LT_DLGLOBAL RTLD_GLOBAL |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1066 |
#else |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1067 |
# ifdef DL_GLOBAL |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1068 |
# define LT_DLGLOBAL DL_GLOBAL |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1069 |
# else |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1070 |
# define LT_DLGLOBAL 0 |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1071 |
# endif |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1072 |
#endif |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1073 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1074 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1075 |
find out it does not work in some platform. */ |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1076 |
#ifndef LT_DLLAZY_OR_NOW |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1077 |
# ifdef RTLD_LAZY |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1078 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1079 |
# else |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1080 |
# ifdef DL_LAZY |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1081 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1082 |
# else |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1083 |
# ifdef RTLD_NOW |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1084 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1085 |
# else |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1086 |
# ifdef DL_NOW |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1087 |
# define LT_DLLAZY_OR_NOW DL_NOW |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1088 |
# else |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1089 |
# define LT_DLLAZY_OR_NOW 0 |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1090 |
# endif |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1091 |
# endif |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1092 |
# endif |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1093 |
# endif |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1094 |
#endif |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1095 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1096 |
#ifdef __cplusplus |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1097 |
extern "C" void exit (int); |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1098 |
#endif |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1099 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1100 |
void fnord() { int i=42;} |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1101 |
int main () |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1102 |
{ |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1103 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1104 |
int status = $lt_dlunknown; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1105 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1106 |
if (self) |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1107 |
{ |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1108 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1109 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1110 |
/* dlclose (self); */ |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1111 |
} |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1112 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1113 |
exit (status); |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1114 |
}] |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1115 |
EOF |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1116 |
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1117 |
(./conftest; exit; ) 2>/dev/null |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1118 |
lt_status=$? |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1119 |
case x$lt_status in |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1120 |
x$lt_dlno_uscore) $1 ;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1121 |
x$lt_dlneed_uscore) $2 ;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1122 |
x$lt_unknown|x*) $3 ;; |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1123 |
esac |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1124 |
else : |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1125 |
# compilation failed |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1126 |
$3 |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1127 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1128 |
fi |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1129 |
rm -fr conftest* |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1130 |
])# _LT_AC_TRY_DLOPEN_SELF |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1131 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1132 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1133 |
# AC_LIBTOOL_DLOPEN_SELF |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1134 |
# ------------------- |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1135 |
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1136 |
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1137 |
if test "x$enable_dlopen" != xyes; then |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1138 |
enable_dlopen=unknown |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1139 |
enable_dlopen_self=unknown |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1140 |
enable_dlopen_self_static=unknown |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1141 |
else |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1142 |
lt_cv_dlopen=no |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1143 |
lt_cv_dlopen_libs= |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1144 |
|
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.org>
parents:
723
diff
changeset
|
1145 |
case $host_os in |
dac996d69abb
Updated libtool support so Mingw32 builds work.
Sam Lantinga <slouken@libsdl.or |