Mercurial > hg > octave-lyh
comparison configure.in @ 8792:bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
author | Benjamin Lindner <lindnerb@users.sourceforge.net> |
---|---|
date | Wed, 18 Feb 2009 00:55:32 -0500 |
parents | d3382daaf4d2 |
children | 8b7e448d989c |
comparison
equal
deleted
inserted
replaced
8791:d943e26d30e2 | 8792:bbb3fa6778f3 |
---|---|
1578 strnicmp strptime strsignal symlink tempnam tgamma tgammaf trunc umask \ | 1578 strnicmp strptime strsignal symlink tempnam tgamma tgammaf trunc umask \ |
1579 uname unlink usleep utime vfprintf vsprintf vsnprintf waitpid \ | 1579 uname unlink usleep utime vfprintf vsprintf vsnprintf waitpid \ |
1580 _chmod _snprintf x_utime _utime32) | 1580 _chmod _snprintf x_utime _utime32) |
1581 | 1581 |
1582 case "$canonical_host_type" in | 1582 case "$canonical_host_type" in |
1583 *-*-mingw*) | |
1584 ## MinGW does not provide a mkstemp function. However, it provides | |
1585 ## the mkstemps function in libiberty. | |
1586 AC_MSG_CHECKING(for mkstemps in libiberty) | |
1587 save_LIBS="$LIBS" | |
1588 LIBS="-liberty $LIBS" | |
1589 AC_LINK_IFELSE([ | |
1590 AC_LANG_PROGRAM([[int mkstemps (char *pattern, int suffix_len);]], | |
1591 [[mkstemps ("XXXXXX", 0);]] | |
1592 )], | |
1593 [AC_MSG_RESULT(yes) | |
1594 HAVE_MKSTEMPS=yes | |
1595 AC_DEFINE(HAVE_MKSTEMPS, 1, [Define if mkstemps is available in libiberty.]) | |
1596 ], | |
1597 [AC_MSG_RESULT(no) | |
1598 HAVE_MKSTEMPS=no | |
1599 LIBS="$save_LIBS" | |
1600 ]) | |
1601 ;; | |
1602 esac | |
1603 | |
1604 case "$canonical_host_type" in | |
1583 *-*-msdosmsvc) | 1605 *-*-msdosmsvc) |
1584 ## The %T format specifier for strftime is reportedly broken, | 1606 ## The %T format specifier for strftime is reportedly broken, |
1585 ## so use our version. We could use an actual configure test | 1607 ## so use our version. We could use an actual configure test |
1586 ## for this. | 1608 ## for this. |
1587 ;; | 1609 ;; |