-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
29 lines (21 loc) · 928 Bytes
/
configure.ac
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
# Process this file with autoconf to produce a configure script.
AC_INIT([pkgconfig-sys-stubs],[1.0],[[email protected]])
AC_CONFIG_SRCDIR([darwin/zlib.pc])
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_PROG_SED
AC_PREFIX_PROGRAM([pkg-config])
AC_MSG_CHECKING([prefix])
AC_MSG_RESULT([$prefix])
AC_MSG_CHECKING([for stubs matching host])
host_osname=$(echo ${host_os} | $SED -e 's/@<:@0-9.@:>@*$//')
host_osmajor=$(echo ${host_os} | $SED -e 's/@<:@.@:>@@<:@0-9.@:>@*$//')
STUBS=''
test -d ${srcdir}/${host_osname} && STUBS="$STUBS ${srcdir}/${host_osname}"
test -d ${srcdir}/${host_osname}/${host_cpu} && STUBS="$STUBS ${srcdir}/${host_osname}/${host_cpu}"
test -d ${srcdir}/${host_osmajor} && STUBS="$STUBS ${srcdir}/${host_osmajor}"
test -d ${srcdir}/${host_osmajor}/${host_cpu} && STUBS="$STUBS ${srcdir}/${host_osmajor}/{host_cpu}"
AC_MSG_RESULT([$STUBS])
AC_SUBST([STUBS])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT