-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
180 lines (159 loc) · 4.59 KB
/
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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
dnl# -*- Autoconf -*-
dnl# Process this file with autoconf to produce a configure script.
AC_INIT([xfsdump],[3.0.6],[])
AC_CONFIG_SRCDIR([common/main.c])
AC_PREREQ([2.69.185-b502e])
AC_CONFIG_AUX_DIR([.])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADER([include/config.h])
AC_PREFIX_DEFAULT([/usr])
# Checks for programs.
AC_PROG_CC
if test "x${CPP}" = "x"; then
test -z "${CPP}" || unset CPP
AC_PROG_CPP
else
test -n "${CPP}" && export CPP
fi
AC_PROG_INSTALL
AC_PROG_MAKE_SET
if test "x${AR}" = "x"; then
test -z "${AR}" || unset AR
AC_CHECK_TOOLS([AR],[ar gar])dnl
## might want to switch around these checks...
if test "x${ac_cv_prog_AR}" = "x"; then
test -z "${ac_cv_prog_AR}" || unset ac_cv_prog_AR
m4_ifdef([AC_PROG_AR],[
AC_PROG_AR
],[
test -x "`which ar`" && echo "first ar in path is `which ar`"
])
fi
else
test -n "${AR}" && export AR
fi
AC_DEFUN([AC_REQUIRE_RANLIB],[
AC_REQUIRE([AC_PROG_RANLIB])dnl
])
if test "x${RANLIB}" = "x"; then
test -z "${RANLIB}" && test -z "${ac_cv_prog_ac_ct_RANLIB}"
AC_REQUIRE_RANLIB
else
test -n "${RANLIB}" && export RANLIB
AC_SUBST([RANLIB])
fi
LT_INIT
LT_LANG([C])dnl
# flags that can be passed to this configure script:
AC_ARG_ENABLE([shared],
[AS_HELP_STRING([--enable-shared=[yes/no]],
[Enable use of shared libraries [default=yes]])],[],
[enable_shared=yes])
AC_SUBST([enable_shared])dnl
AC_ARG_ENABLE([gettext],
[AS_HELP_STRING([--enable-gettext=[yes/no]],
[Enable alternate language support [default=yes]])],[],
[enable_gettext=yes])
AC_SUBST([enable_gettext])dnl
AC_ARG_ENABLE([lib64],
[AS_HELP_STRING([--enable-lib64=[yes/no]],
[Enable lib64 support [default=yes]])],[],
[enable_lib64=yes])
AC_SUBST([enable_lib64])dnl
#
# If the user specified a libdir ending in lib64 do not append another
# 64 to the library names.
#
base_libdir=`basename "$libdir"`
case ${base_libdir} in
lib64)
enable_lib64=no
esac
#
# Some important tools should be installed into the root partitions.
#
# Check whether exec_prefix=/usr: and install them to /sbin in that
# case. If the user choses a different prefix assume he just wants
# a local install for testing and not a system install.
#
case ${exec_prefix}:${prefix} in
NONE:NONE | NONE:/usr | /usr:*)
root_sbindir='/sbin'
root_libdir="/${base_libdir}"
;;
*)
root_sbindir="${sbindir}"
root_libdir="${libdir}"
;;
esac
AC_SUBST([root_sbindir])dnl
AC_SUBST([root_libdir])dnl
# Find localized files
LOCALIZED_FILES=""
for lfile in `find ${srcdir} -name '*.c' -type f || exit 1`; do
LOCALIZED_FILES="${LOCALIZED_FILES} \$(TOPDIR)/$lfile"
done
AC_SUBST([LOCALIZED_FILES])dnl
# Checks for header files.
AC_HEADER_MAJOR
AC_CHECK_HEADERS([fcntl.h malloc.h malloc/malloc.h mntent.h stdint.h stdio.h \
sys/file.h sys/ioctl.h sys/param.h sys/socket.h \
sys/statvfs.h termios.h unistd.h utime.h])dnl
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
AC_C_INLINE
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_CHECK_MEMBERS([struct stat.st_rdev])
AC_TYPE_UINT64_T
# Checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_CHOWN
AC_FUNC_FORK
AC_FUNC_GETMNTENT
AC_FUNC_LSTAT dnl# also checks whether it "_FOLLOWS_SLASHED_SYMLINK"
AC_FUNC_MALLOC
AC_FUNC_MKTIME
AC_FUNC_MMAP
AC_FUNC_REALLOC
AC_CHECK_FUNCS([atexit bzero fdatasync ftruncate getcwd gethostname lchown \
memmove memset mkdir munmap realpath rmdir select setlocale \
socket strcasecmp strchr strcspn strdup strerror strtol \
strtoull utime])dnl
if test "x${ac_cv_func_alarm}" = "x"; then
test -z "${ac_cv_func_alarm}" || unset ac_cv_func_alarm
AC_CHECK_FUNCS([alarm])
fi
if test "x${ac_cv_func_getmntent}" = "x"; then
test -z "${ac_cv_func_getmntent}" || unset ac_cv_func_getmntent
AC_CHECK_FUNCS([getmntent])
fi
if test "x${ac_cv_func_getpagesize}" = "x"; then
test -z "${ac_cv_func_getpagesize}" || unset ac_cv_func_getpagesize
AC_CHECK_FUNCS([getpagesize])
fi
# Packages:
AC_PACKAGE_GLOBALS([xfsdump])
AC_PACKAGE_UTILITIES([xfsdump])
AC_MULTILIB([$enable_lib64])
AC_PACKAGE_NEED_UUID_H
AC_PACKAGE_NEED_UUIDCOMPARE
AC_PACKAGE_NEED_PTHREAD_H
AC_PACKAGE_NEED_PTHREADMUTEXINIT
AC_PACKAGE_NEED_NCURSES_H
AC_PACKAGE_WANT_WORKING_LIBNCURSES
AC_PACKAGE_NEED_XFS_XFS_H
AC_PACKAGE_NEED_XFS_HANDLE_H
AC_PACKAGE_NEED_OPEN_BY_FSHANDLE
AC_PACKAGE_NEED_ATTRIBUTES_H
AC_PACKAGE_NEED_ATTRIBUTES_MACROS
AC_PACKAGE_NEED_ATTRGET_LIBATTR
AC_MANUAL_FORMAT
# Output.
AC_CONFIG_FILES([include/builddefs])
AC_OUTPUT