@@ -15,12 +15,18 @@ V_LIB_AGE=0
1515VF_LIB_CURRENT=0
1616VF_LIB_REVISION=0
1717VF_LIB_AGE=0
18+ VE_LIB_CURRENT=0
19+ VE_LIB_REVISION=0
20+ VE_LIB_AGE=0
1821AC_SUBST(V_LIB_CURRENT)
1922AC_SUBST(V_LIB_REVISION)
2023AC_SUBST(V_LIB_AGE)
2124AC_SUBST(VF_LIB_CURRENT)
2225AC_SUBST(VF_LIB_REVISION)
2326AC_SUBST(VF_LIB_AGE)
27+ AC_SUBST(VE_LIB_CURRENT)
28+ AC_SUBST(VE_LIB_REVISION)
29+ AC_SUBST(VE_LIB_AGE)
2430
2531dnl --------------------------------------------------
2632dnl Check for programs
@@ -34,12 +40,6 @@ CFLAGS="$cflags_save"
3440
3541AM_PROG_LIBTOOL
3642
37- dnl --------------------------------------------------
38- dnl Additional arguments
39- dnl --------------------------------------------------
40-
41- AC_ARG_WITH(ogg, [ --with-ogg=DIR Set where the Ogg library is located])
42-
4343dnl --------------------------------------------------
4444dnl Set build flags based on environment
4545dnl --------------------------------------------------
7373 *86-*-linux*)
7474 DEBUG="-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
7575 CFLAGS="-O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char"
76- # PROFILE="-Wall -W -pg -O20 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
77- PROFILE="-Wall -W -pg -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline -static"
76+ # PROFILE="-Wall -W -pg -g - O20 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
77+ PROFILE="-Wall -W -pg -g - O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline -static"
7878
7979 # glibc < 2.1.3 has a serious FP bug in the math inline header
8080 # that will cripple Vorbis. Look to see if the magic FP stack
@@ -130,116 +130,6 @@ else
130130 esac
131131fi
132132
133- AC_HEADER_STDC
134-
135- AC_CHECK_LIB(pthread, pthread_create, pthread_lib="-lpthread")
136-
137- dnl This seems to be the only way to make autoconf only *sometimes* configure
138- dnl a subdirectory with AC_CONFIG_SUBDIRS. "__noconf" is assumed to not
139- dnl exist as a directory, so configure won't try to recursively enter it, unless
140- dnl the shell variable $dummy is reset to an existing directory inside the
141- dnl if clause.
142-
143- dummy="__noconf"
144-
145- # check macro modified from Jon Shiring's to compensate for autoconf's lagging
146- # behind the times on type madness
147-
148- AC_MSG_CHECKING(for int16_t)
149- AC_CACHE_VAL(has_int16_t,
150- [AC_TRY_RUN([
151- #ifdef __BEOS__
152- #include <inttypes.h>
153- #endif
154- #include <sys/types.h>
155- int16_t foo;
156- int main() {return 0;}
157- ],
158- has_int16_t=yes,
159- has_int16_t=no,
160- has_int16_t=no
161- )])
162- AC_MSG_RESULT($has_int16_t)
163-
164- AC_MSG_CHECKING(for int32_t)
165- AC_CACHE_VAL(has_int32_t,
166- [AC_TRY_RUN([
167- #ifdef __BEOS__
168- #include <inttypes.h>
169- #endif
170- #include <sys/types.h>
171- int32_t foo;
172- int main() {return 0;}
173- ],
174- has_int32_t=yes,
175- has_int32_t=no,
176- has_int32_t=no
177- )])
178- AC_MSG_RESULT($has_int32_t)
179-
180- AC_MSG_CHECKING(for uint32_t)
181- AC_CACHE_VAL(has_uint32_t,
182- [AC_TRY_RUN([
183- #ifdef __BEOS__
184- #include <inttypes.h>
185- #endif
186- #include <sys/types.h>
187- uint32_t foo;
188- int main() {return 0;}
189- ],
190- has_uint32_t=yes,
191- has_uint32_t=no,
192- has_uint32_t=no
193- )])
194- AC_MSG_RESULT($has_uint32_t)
195-
196- AC_MSG_CHECKING(for u_int32_t)
197- AC_CACHE_VAL(has_u_int32_t,
198- [AC_TRY_RUN([
199- #ifdef __BEOS__
200- #include <inttypes.h>
201- #endif
202- #include <sys/types.h>
203- u_int32_t foo;
204- int main() {return 0;}
205- ],
206- has_u_int32_t=yes,
207- has_u_int32_t=no,
208- has_u_int32_t=no
209- )])
210- AC_MSG_RESULT($has_u_int32_t)
211-
212- AC_MSG_CHECKING(for int64_t)
213- AC_CACHE_VAL(has_int64_t,
214- [AC_TRY_RUN([
215- #ifdef __BEOS__
216- #include <inttypes.h>
217- #endif
218- #include <sys/types.h>
219- int64_t foo;
220- int main() {return 0;}
221- ],
222- has_int64_t=yes,
223- has_int64_t=no,
224- has_int64_t=no
225- )])
226- AC_MSG_RESULT($has_int64_t)
227-
228- AC_CHECK_SIZEOF(short)
229- AC_CHECK_SIZEOF(int)
230- AC_CHECK_SIZEOF(long)
231- AC_CHECK_SIZEOF(long long)
232-
233-
234- if test x$has_int16_t = "xyes" ; then
235- SIZE16="int16_t"
236- else
237- case 2 in
238- $ac_cv_sizeof_short) SIZE16="short";;
239- $ac_cv_sizeof_int) SIZE16="int";;
240- esac
241- fi
242-
243133dnl --------------------------------------------------
244134dnl Check for headers
245135dnl --------------------------------------------------
@@ -259,11 +149,7 @@ dnl --------------------------------------------------
259149AC_CHECK_LIB(m, cos, LIBS="-lm", LIBS="")
260150AC_CHECK_LIB(pthread, pthread_create, pthread_lib="-lpthread", :)
261151
262- dnl Check for libogg
263- if test -n $with_ogg; then
264- CFLAGS="$CFLAGS -I$with_ogg/include -L$with_ogg/lib"
265- fi
266- AC_CHECK_LIB(ogg, oggpack_read, LIBS="$LIBS -logg", AC_MSG_ERROR([You must have libogg to compile vorbis!!!]))
152+ AM_PATH_OGG(have_ogg=yes, have_ogg=no)
267153
268154dnl --------------------------------------------------
269155dnl Check for library functions
@@ -280,4 +166,4 @@ AC_SUBST(DEBUG)
280166AC_SUBST(PROFILE)
281167AC_SUBST(pthread_lib)
282168
283- AC_OUTPUT(Makefile lib/Makefile doc/Makefile include/ Makefile include/vorbis/ Makefile include/vorbis/book /Makefile examples/Makefile)
169+ AC_OUTPUT(Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile doc/Makefile doc/vorbisfile/ Makefile include/Makefile include/vorbis/Makefile examples/Makefile)
0 commit comments