diff options
author | Josh Blum <josh@joshknows.com> | 2011-01-18 01:00:15 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-01-18 01:00:15 -0800 |
commit | 05cc02cec03507c47846a668c92e6dcc4ba2e71e (patch) | |
tree | 8576c0c9977400aaaf26470766b6e9c9c3e83ce3 /gr-howto-write-a-block/config/mkstemp.m4 | |
parent | 31bbbec88b19230eb37b197d7623c3671e57837e (diff) |
cleanup mkdir usage with boost filesystem:
Replaced copy/pasted code and MKDIR_TAKES_ONE_ARG #ifdefs
with portable boost filesystem path and directory creation.
Gets the correct home directory on windows systems: APPDATA.
Replaces large amounts of copypasta with single lines of code.
Removes MKDIR_TAKES_ONE_ARG configuration checks from m4 files.
Adds boost filesystem and system library as build dependencies.
Diffstat (limited to 'gr-howto-write-a-block/config/mkstemp.m4')
-rw-r--r-- | gr-howto-write-a-block/config/mkstemp.m4 | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/gr-howto-write-a-block/config/mkstemp.m4 b/gr-howto-write-a-block/config/mkstemp.m4 index 4af0f0a9b7..2d1fbee9b3 100644 --- a/gr-howto-write-a-block/config/mkstemp.m4 +++ b/gr-howto-write-a-block/config/mkstemp.m4 @@ -75,15 +75,4 @@ AC_DEFUN([jm_PREREQ_TEMPNAME], AC_CHECK_FUNCS(__secure_getenv gettimeofday lstat) AC_CHECK_DECLS_ONCE(getenv) # AC_REQUIRE([jm_AC_TYPE_UINTMAX_T]) - - dnl Under Win32, mkdir prototype in io.h has only one arg - AC_MSG_CHECKING(whether mkdir accepts only one arg) - AC_TRY_COMPILE([#include <sys/types.h> - #include <sys/stat.h> - #include <fcntl.h>], [ - mkdir("") - ], [ AC_MSG_RESULT(yes) - AC_DEFINE(MKDIR_TAKES_ONE_ARG,[],[Define if mkdir accepts only one arg]) ], - [ AC_MSG_RESULT(no) - ]) ]) |