diff options
-rw-r--r-- | hurd/configure.ac | 11 | ||||
-rwxr-xr-x | hurd/install-headers.in | 22 |
2 files changed, 33 insertions, 0 deletions
diff --git a/hurd/configure.ac b/hurd/configure.ac new file mode 100644 index 00000000..bb6d7439 --- /dev/null +++ b/hurd/configure.ac @@ -0,0 +1,11 @@ +dnl Run through autoconf to create a configure script for install-headers. +AC_REVISION([$CVSid$]) +AC_PREREQ(2.53)dnl dnl Minimum Autoconf version required. +AC_INIT([GNU Hurd], [bootstrap installation of header files]) +AC_CONFIG_SRCDIR([hurd_types.h]) +AC_CONFIG_AUX_DIR([..]) + +AC_PROG_INSTALL + +AC_CONFIG_FILES([install-headers]) +AC_OUTPUT diff --git a/hurd/install-headers.in b/hurd/install-headers.in new file mode 100755 index 00000000..99d35833 --- /dev/null +++ b/hurd/install-headers.in @@ -0,0 +1,22 @@ +#!/bin/sh -e +# @configure_input@ +# +# This is a trivial script for those who aren't comfortable typing: +# cp hurd/*.h hurd/*.defs /usr/local/i686-gnu/include/hurd/ +# by themselves. That is, it copies the essential Hurd header files +# into $(includedir) before you attempt to build the Hurd itself. +# In addition to installing Mach headers, this is sufficient to bootstrap +# an empty cross-compilation environment such that glibc can be compiled. + +srcdir=@srcdir@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +includedir=@includedir@ + +INSTALL="@INSTALL@" +INSTALL_DATA="@INSTALL_DATA@" + +${srcdir}/../mkinstalldirs ${includedir}/hurd +for file in `cd ${srcdir}; echo *.h *.defs`; do + ${INSTALL_DATA} ${file} ${includedir}/hurd/${file} +done |