configure.in
1.56 KB
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
AC_INIT([Makefile.in])
AC_PROG_INSTALL
AC_CANONICAL_SYSTEM
if test -d ${srcdir}/spu ; then
configdirs="spu"
fi
case "${target}" in
sparclite-*-*)
if test -d ${srcdir}/sparclite ; then
configdirs="$configdirs sparclite"
fi
;;
*mips*-*-pe* | *sh*-*-pe* | *arm*-*-wince | *arm*-wince-pe* )
if test -d ${srcdir}/wince ; then
configdirs="$configdirs wince"
fi
;;
esac
all_subdirs=""
install_subdirs=""
mostlyclean_subdirs=""
clean_subdirs=""
distclean_subdirs=""
maintainer_clean_subdirs=""
for dir in $configdirs ; do
all_subdirs="${all_subdirs} all-$dir"
install_subdirs="${install_subdirs} install-$dir"
mostlyclean_subdirs="${mostlyclean_subdirs} mostlyclean-$dir"
clean_subdirs="${clean_subdirs} clean-$dir"
distclean_subdirs="${distclean_subdirs} distclean-$dir"
maintainer_clean_subdirs="${maintainer_clean_subdirs} maintainer-clean-$dir"
done
AC_SUBST([all_subdirs])
AC_SUBST([install_subdirs])
AC_SUBST([mostlyclean_subdirs])
AC_SUBST([clean_subdirs])
AC_SUBST([distclean_subdirs])
AC_SUBST([maintainer_clean_subdirs])
case "${srcdir}" in
[[\\/]]* | ?:[[\\/]]* ) # Absolute
abs_srcdir=${srcdir}
;;
*)
abs_srcdir="../${srcdir}"
;;
esac
AC_SUBST([abs_srcdir])
case "${cache_file}" in
[[\\/]]* | ?:[[\\/]]* ) # Absolute
abs_cache_file=${cache_file}
;;
*)
abs_cache_file="../${cache_file}"
;;
esac
subconfigure_args=${ac_configure_args}
subconfigure_args="${subconfigure_args} --cache-file=${abs_cache_file} --srcdir=${abs_srcdir}"
AC_SUBST([subconfigure_args])
AC_OUTPUT([Makefile])