Use default system file if none found for uname
This commit is contained in:
parent
fc1c14caae
commit
6fd41e77a5
26
src/configure
vendored
26
src/configure
vendored
@ -1862,17 +1862,23 @@ ac_config_headers="$ac_config_headers common/autoconfig.h"
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
sys=`uname`
|
sys=`uname | tr / _`
|
||||||
if test -f mk/$sys ; then
|
|
||||||
(cd mk; rm -f sysconf; ln -s $sys sysconf)
|
if test ! -f mk/$sys ; then
|
||||||
else
|
{ $as_echo "$as_me:$LINENO:
|
||||||
cat <<EOF
|
No system configuration file found in mk/ for uname = '$sys'.
|
||||||
No system configuration file found in mk/ for '$sys'. Maybe you
|
Trying with Default file.
|
||||||
could try to write one, starting from one of the existing files, they
|
If the build fails, you'll need to write a configuration file, starting
|
||||||
are really simple.
|
from one of the existing ones." >&5
|
||||||
EOF
|
$as_echo "$as_me:
|
||||||
exit 1
|
No system configuration file found in mk/ for uname = '$sys'.
|
||||||
|
Trying with Default file.
|
||||||
|
If the build fails, you'll need to write a configuration file, starting
|
||||||
|
from one of the existing ones." >&6;}
|
||||||
|
|
||||||
|
sys=Default
|
||||||
fi
|
fi
|
||||||
|
(cd mk; rm -f sysconf; ln -s $sys sysconf)
|
||||||
|
|
||||||
ac_ext=c
|
ac_ext=c
|
||||||
ac_cpp='$CPP $CPPFLAGS'
|
ac_cpp='$CPP $CPPFLAGS'
|
||||||
|
|||||||
@ -3,17 +3,18 @@ AC_CONFIG_HEADERS([common/autoconfig.h])
|
|||||||
AC_PREREQ(2.53)
|
AC_PREREQ(2.53)
|
||||||
AC_CONFIG_SRCDIR(index/recollindex.cpp)
|
AC_CONFIG_SRCDIR(index/recollindex.cpp)
|
||||||
|
|
||||||
sys=`uname`
|
sys=`uname | tr / _`
|
||||||
if test -f mk/$sys ; then
|
|
||||||
(cd mk; rm -f sysconf; ln -s $sys sysconf)
|
if test ! -f mk/$sys ; then
|
||||||
else
|
AC_MSG_NOTICE([
|
||||||
cat <<EOF
|
No system configuration file found in mk/ for uname = '$sys'.
|
||||||
No system configuration file found in mk/ for '$sys'. Maybe you
|
Trying with Default file.
|
||||||
could try to write one, starting from one of the existing files, they
|
If the build fails, you'll need to write a configuration file, starting
|
||||||
are really simple.
|
from one of the existing ones.])
|
||||||
EOF
|
|
||||||
exit 1
|
sys=Default
|
||||||
fi
|
fi
|
||||||
|
(cd mk; rm -f sysconf; ln -s $sys sysconf)
|
||||||
|
|
||||||
AC_CHECK_HEADERS(sys/mount.h sys/statfs.h sys/statvfs.h sys/vfs.h)
|
AC_CHECK_HEADERS(sys/mount.h sys/statfs.h sys/statvfs.h sys/vfs.h)
|
||||||
|
|
||||||
|
|||||||
8
src/mk/Default
Normal file
8
src/mk/Default
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
include $(depth)/mk/commondefs
|
||||||
|
include $(depth)/mk/localdefs
|
||||||
|
|
||||||
|
ALL_CXXFLAGS = $(CXXFLAGS) $(COMMONCXXFLAGS) $(LOCALCXXFLAGS) \
|
||||||
|
-D_GNU_SOURCE
|
||||||
|
|
||||||
|
LIBSYS = -lpthread -ldl
|
||||||
Loading…
x
Reference in New Issue
Block a user