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
|
LIB_PREFIX="@LIB_PREFIX@"
LIB_SUFFIX="@LIB_SUFFIX@"
LDFLAGS="@NOIXEMUL@ @ALLOW_MULTIPLE_DEFINITION@"
LDFLAGS="$LDFLAGS @WEAK_NSFOUNDATIONVERSIONNUMBER@"
LDFLAGS_REEXPORT="@LDFLAGS_REEXPORT@"
LDFLAGS_RPATH="@LDFLAGS_RPATH@"
LIBS="-L${libdir} -lobjfw @RUNTIME_LIBS@ @LIBS@"
PLUGIN_CFLAGS="@PLUGIN_CFLAGS@"
PLUGIN_LDFLAGS="@PLUGIN_LDFLAGS@"
PLUGIN_SUFFIX="@PLUGIN_SUFFIX@"
PROG_SUFFIX="@EXEEXT@"
STATIC_LIBS="${libdir}/libobjfw.a @LIBS@"
VERSION="@PACKAGE_VERSION@"
show_help() {
cat <<__EOF__
objfw-config: Available arguments are:
--all Outputs all flags + libs
--arc Outputs the required OBJCFLAGS to use ARC
--cflags Outputs the required CFLAGS
--cppflags Outputs the required CPPFLAGS
--cxxflags Outputs the required CXXFLAGS
--objc Outputs the OBJC used to compile ObjFW
--objcflags Outputs the required OBJCFLAGS
--ldflags Outputs the required LDFLAGS
--reexport Outputs LDFLAGS to reexport ObjFW
--rpath Outputs LDFLAGS for using rpath
--libs Outputs the required LIBS
--lib-cflags Outputs CFLAGS for building a library
--lib-ldflags Outputs LDFLAGS for building a library
--lib-prefix Outputs the prefix for libraries
--lib-suffix Outputs the suffix for libraries
--prog-suffix Outputs the suffix for binaries
--static-libs Outputs the required LIBS to link ObjFW statically
--version Outputs the installed version
__EOF__
exit $1
}
test -z "$1" && show_help 1
while test -n "$1"; do
|
>
>
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
LIB_PREFIX="@LIB_PREFIX@"
LIB_SUFFIX="@LIB_SUFFIX@"
LDFLAGS="@NOIXEMUL@ @ALLOW_MULTIPLE_DEFINITION@"
LDFLAGS="$LDFLAGS @WEAK_NSFOUNDATIONVERSIONNUMBER@"
LDFLAGS_REEXPORT="@LDFLAGS_REEXPORT@"
LDFLAGS_RPATH="@LDFLAGS_RPATH@"
LIBS="-L${libdir} -lobjfw @RUNTIME_LIBS@ @LIBS@"
FRAMEWORK_LIBS="-F${prefix}/Library/Frameworks -framework ObjFW"
FRAMEWORK_LIBS="$FRAMEWORK_LIBS @RUNTIME_LIBS@ @LIBS@"
PLUGIN_CFLAGS="@PLUGIN_CFLAGS@"
PLUGIN_LDFLAGS="@PLUGIN_LDFLAGS@"
PLUGIN_SUFFIX="@PLUGIN_SUFFIX@"
PROG_SUFFIX="@EXEEXT@"
STATIC_LIBS="${libdir}/libobjfw.a @LIBS@"
VERSION="@PACKAGE_VERSION@"
show_help() {
cat <<__EOF__
objfw-config: Available arguments are:
--all Outputs all flags + libs
--arc Outputs the required OBJCFLAGS to use ARC
--cflags Outputs the required CFLAGS
--cppflags Outputs the required CPPFLAGS
--cxxflags Outputs the required CXXFLAGS
--framework-libs Outputs the required LIBS, preferring frameworks
--objc Outputs the OBJC used to compile ObjFW
--objcflags Outputs the required OBJCFLAGS
--ldflags Outputs the required LDFLAGS
--reexport Outputs LDFLAGS to reexport ObjFW
--rpath Outputs LDFLAGS for using rpath
--libs Outputs the required LIBS
--lib-cflags Outputs CFLAGS for building a library
--lib-ldflags Outputs LDFLAGS for building a library
--lib-prefix Outputs the prefix for libraries
--lib-suffix Outputs the suffix for libraries
--prog-suffix Outputs the suffix for binaries
--static-libs Outputs the required LIBS to link ObjFW statically
--version Outputs the installed version
__EOF__
exit $1
}
test -z "$1" && show_help 1
while test -n "$1"; do
|
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
;;
--cppflags)
printf "%s" "$CPPFLAGS"
;;
--cxxflags)
printf "%s" "$CXXFLAGS"
;;
--objc)
printf "%s" "$OBJC"
;;
--objcflags)
printf "%s" "$OBJCFLAGS"
;;
--libs)
|
>
>
>
|
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
;;
--cppflags)
printf "%s" "$CPPFLAGS"
;;
--cxxflags)
printf "%s" "$CXXFLAGS"
;;
--framework-libs)
printf "%s" "$FRAMEWORK_LIBS"
;;
--objc)
printf "%s" "$OBJC"
;;
--objcflags)
printf "%s" "$OBJCFLAGS"
;;
--libs)
|