Mercurial > octave-nkf
comparison configure.ac @ 15412:9128fa93fb21
configure.ac: Eliminate unnecessary unistd.h replacement for MSVC targets.
* configure.ac: Eliminate unnecessary unistd.h replacement for MSVC targets.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 18 Sep 2012 10:55:59 -0700 |
parents | ad2c3902b826 |
children | cabe2fa4566c |
comparison
equal
deleted
inserted
replaced
15411:598aa97253e2 | 15412:9128fa93fb21 |
---|---|
1795 | 1795 |
1796 ### Checks for header files. | 1796 ### Checks for header files. |
1797 | 1797 |
1798 AC_HEADER_DIRENT | 1798 AC_HEADER_DIRENT |
1799 AC_HEADER_SYS_WAIT | 1799 AC_HEADER_SYS_WAIT |
1800 | |
1801 dnl FIXME: We should probably only generate this file if it is missing. | |
1802 ### Produce unistd.h for MSVC target, this simplifies changes in | |
1803 ### Octave source tree and avoid problems with lex-generated code. | |
1804 case $canonical_host_type in | |
1805 *-*-msdosmsvc) | |
1806 AC_MSG_NOTICE([Generating replacement for <unistd.h> for MSVC]) | |
1807 cat << \EOF > unistd.h | |
1808 /* File generated by configure script. */ | |
1809 #include <direct.h> | |
1810 #include <io.h> | |
1811 #include <process.h> | |
1812 EOF | |
1813 CPPFLAGS="-I. $CPPFLAGS" | |
1814 ;; | |
1815 esac | |
1816 | 1800 |
1817 ## C headers | 1801 ## C headers |
1818 | 1802 |
1819 dnl Use multiple AC_CHECKs to avoid line continuations '\' in list | 1803 dnl Use multiple AC_CHECKs to avoid line continuations '\' in list |
1820 AC_CHECK_HEADERS([curses.h direct.h dlfcn.h floatingpoint.h grp.h]) | 1804 AC_CHECK_HEADERS([curses.h direct.h dlfcn.h floatingpoint.h grp.h]) |