]>
Commit | Line | Data |
---|---|---|
54e8f4a8 | 1 | AC_INIT([xfsprogs], [4.5.0], [xfs@oss.sgi.com]) |
86b99f0a | 2 | AC_PREREQ(2.50) |
07c561fe AG |
3 | AC_CONFIG_AUX_DIR([.]) |
4 | AC_CONFIG_MACRO_DIR([m4]) | |
f474cd4f | 5 | AC_CONFIG_SRCDIR([include/libxfs.h]) |
9440d84d | 6 | AC_CONFIG_HEADER(include/platform_defs.h) |
521902a9 | 7 | AC_PREFIX_DEFAULT(/usr) |
9440d84d | 8 | |
07c561fe AG |
9 | AC_PROG_LIBTOOL |
10 | ||
e14913c1 TT |
11 | AC_PROG_CC |
12 | if test $cross_compiling = no; then | |
13 | BUILD_CC="$CC" | |
14 | AC_SUBST(BUILD_CC) | |
15 | else | |
16 | AC_CHECK_PROGS(BUILD_CC, gcc cc) | |
17 | fi | |
18 | ||
534b0bfd | 19 | AC_ARG_ENABLE(shared, |
dfc13ce1 | 20 | [ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],, |
d5dca43b NS |
21 | enable_shared=yes) |
22 | AC_SUBST(enable_shared) | |
23 | ||
16c44ed2 NS |
24 | AC_ARG_ENABLE(gettext, |
25 | [ --enable-gettext=[yes/no] Enable alternate language support [default=yes]],, | |
26 | enable_gettext=yes) | |
27 | AC_SUBST(enable_gettext) | |
28 | ||
6635d6ab JT |
29 | AC_ARG_ENABLE(blkid, |
30 | [ --enable-blkid=[yes/no] Enable use of block device id library [default=yes]],, | |
31 | enable_blkid=yes) | |
32 | AC_SUBST(enable_blkid) | |
33 | ||
e246ba5f | 34 | AC_ARG_ENABLE(readline, |
16c44ed2 | 35 | [ --enable-readline=[yes/no] Enable readline command editing [default=no]], |
541a1d4f | 36 | test $enable_readline = yes && libreadline="-lreadline", |
e246ba5f | 37 | enable_readline=no) |
e246ba5f NS |
38 | AC_SUBST(libreadline) |
39 | AC_SUBST(enable_readline) | |
40 | ||
d4b9ebda | 41 | AC_ARG_ENABLE(editline, |
16c44ed2 | 42 | [ --enable-editline=[yes/no] Enable editline command editing [default=no]], |
541a1d4f | 43 | test $enable_editline = yes && libeditline="-ledit", |
d4b9ebda | 44 | enable_editline=no) |
d4b9ebda NS |
45 | AC_SUBST(libeditline) |
46 | AC_SUBST(enable_editline) | |
47 | ||
541a1d4f NS |
48 | AC_ARG_ENABLE(termcap, |
49 | [ --enable-termcap=[yes/no] Enable terminal capabilities library [default=no]], | |
50 | test $enable_termcap = yes && libtermcap="-ltermcap",) | |
51 | AC_SUBST(libtermcap) | |
52 | ||
e4da9941 | 53 | |
82805b60 | 54 | AC_ARG_ENABLE(lib64, |
595e27db CH |
55 | [ --enable-lib64=[yes/no] Enable lib64 support [default=yes]],, |
56 | enable_lib64=yes) | |
82805b60 TS |
57 | AC_SUBST(enable_lib64) |
58 | ||
0caa2bae JK |
59 | librt="-lrt" |
60 | AC_SUBST(librt) | |
61 | ||
595e27db CH |
62 | # |
63 | # If the user specified a libdir ending in lib64 do not append another | |
64 | # 64 to the library names. | |
65 | # | |
66 | base_libdir=`basename "$libdir"` | |
67 | case $base_libdir in | |
68 | lib64) | |
69 | enable_lib64=no | |
70 | esac | |
71 | ||
72 | # | |
73 | # Some important tools should be installed into the root partitions. | |
74 | # | |
75 | # Check whether exec_prefix=/usr: and install them to /sbin in that | |
76 | # case. If the user choses a different prefix assume he just wants | |
77 | # a local install for testing and not a system install. | |
78 | # | |
79 | case $exec_prefix:$prefix in | |
80 | NONE:NONE | NONE:/usr | /usr:*) | |
81 | root_sbindir='/sbin' | |
595e27db | 82 | root_libdir="/${base_libdir}" |
2ccb8cf0 CH |
83 | ;; |
84 | *) | |
85 | root_sbindir="${sbindir}" | |
86 | root_libdir="${libdir}" | |
87 | ;; | |
595e27db CH |
88 | esac |
89 | ||
2ccb8cf0 CH |
90 | AC_SUBST([root_sbindir]) |
91 | AC_SUBST([root_libdir]) | |
92 | ||
d9ee1c4c AE |
93 | # Find localized files. Don't descend into any "dot directories" |
94 | # (like .git or .pc from quilt). Strangely, the "-print" argument | |
95 | # to "find" is required, to avoid including such directories in the | |
96 | # list. | |
8c053393 | 97 | LOCALIZED_FILES="" |
d9ee1c4c | 98 | for lfile in `find ${srcdir} -path './.??*' -prune -o -name '*.c' -type f -print || exit 1`; do |
8c053393 AM |
99 | LOCALIZED_FILES="$LOCALIZED_FILES \$(TOPDIR)/$lfile" |
100 | done | |
101 | AC_SUBST(LOCALIZED_FILES) | |
102 | ||
16c44ed2 NS |
103 | AC_PACKAGE_GLOBALS(xfsprogs) |
104 | AC_PACKAGE_UTILITIES(xfsprogs) | |
82805b60 | 105 | AC_MULTILIB($enable_lib64) |
93d9f139 | 106 | |
0686de0f | 107 | AC_PACKAGE_NEED_UUID_H |
7b9d2be9 | 108 | AC_PACKAGE_NEED_UUIDCOMPARE |
fc49813f | 109 | |
949c0f10 NS |
110 | AC_PACKAGE_NEED_PTHREAD_H |
111 | AC_PACKAGE_NEED_PTHREADMUTEXINIT | |
112 | ||
0bba1a49 NS |
113 | AC_HAVE_FADVISE |
114 | AC_HAVE_MADVISE | |
115 | AC_HAVE_MINCORE | |
116 | AC_HAVE_SENDFILE | |
cfe6e3f0 NS |
117 | AC_HAVE_GETMNTENT |
118 | AC_HAVE_GETMNTINFO | |
c0b5232a | 119 | AC_HAVE_FALLOCATE |
8f0e0912 | 120 | AC_HAVE_FIEMAP |
197d5828 ES |
121 | AC_HAVE_PREADV |
122 | AC_HAVE_SYNC_FILE_RANGE | |
5ae294ea | 123 | AC_HAVE_MNTENT |
5121281b | 124 | AC_HAVE_FLS |
3bc05641 | 125 | AC_HAVE_READDIR |
c14c7b79 | 126 | AC_HAVE_FSETXATTR |
a49984b3 | 127 | AC_HAVE_MREMAP |
0bba1a49 | 128 | |
6635d6ab JT |
129 | if test "$enable_blkid" = yes; then |
130 | AC_HAVE_BLKID_TOPO | |
131 | fi | |
132 | ||
865f1075 JE |
133 | AC_CHECK_SIZEOF([long]) |
134 | AC_CHECK_SIZEOF([char *]) | |
cd960ece | 135 | AC_TYPE_UMODE_T |
16c44ed2 | 136 | AC_MANUAL_FORMAT |
fc49813f | 137 | |
f474cd4f JE |
138 | AC_CONFIG_FILES([include/builddefs]) |
139 | AC_OUTPUT |