blob: 563f46426f26f3485cee4babc10da39980ac5fb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
diff -ruN a/configure.ac b/configure.ac
--- a/configure.ac 2012-03-29 21:44:28.000000000 +0200
+++ b/configure.ac 2020-02-09 18:27:31.599127781 +0100
@@ -728,82 +728,9 @@
if test "x$with_faad2" != "xno"; then
-OLD_CFLAGS=$CFLAGS
-OLD_LIBS=$LIBS
-
CFLAGS="$CFLAGS"
LIBS="$LIBS -lfaad -lm"
-AC_MSG_CHECKING(for neaacdec.h usability for faad2)
-
-
-AC_TRY_RUN([
- #include <neaacdec.h>
- #include <stdio.h>
- main()
- {
- int faad_major;
- int faad_minor;
- faacDecHandle dec;
-
- if(sscanf(FAAD2_VERSION, "%d.%d", &faad_major, &faad_minor) < 2)
- return -1;
- dec = faacDecOpen();
- if(!dec)
- return -1;
- return 0;
- }
- ],
- [
- # program could be run
- have_faad2="true"
- AC_MSG_RESULT(yes)
- FAAD2_CFLAGS=$CFLAGS
- FAAD2_LIBS=$LIBS
- AC_DEFINE(HAVE_NEAACDEC_H)
- ],
- # program could not be run
- AC_MSG_RESULT(no)
-)
-
-if test "x$have_faad2" != "xtrue"; then
-
-AC_MSG_CHECKING(for faad.h usability for faad2)
-
-AC_TRY_RUN([
- #include <faad.h>
- #include <stdio.h>
- main()
- {
- int faad_major;
- int faad_minor;
- faacDecHandle dec;
-
- if(sscanf(FAAD2_VERSION, "%d.%d", &faad_major, &faad_minor) < 2)
- return -1;
- dec = faacDecOpen();
- if(!dec)
- return -1;
- return 0;
- }
- ],
- [
- # program could be run
- have_faad2="true"
- AC_MSG_RESULT(yes)
- FAAD2_CFLAGS=$CFLAGS
- FAAD2_LIBS=$LIBS
-
-
- ],
- # program could not be run
- AC_MSG_RESULT(no)
-)
-
-fi
-
-CFLAGS=$OLD_CFLAGS
-LIBS=$OLD_LIBS
fi
|