summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorGlenn Maynard <g_sf@zewt.org>2003-09-04 09:52:39 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-09-04 09:52:39 +0000
commit5e4639e2002d0a19d4278f9ff4ed11f1bdace33b (patch)
treee5b3e7300e2474c4bdd84a31f9c3ca6dab2b967e /configure
parenta17236c53cd3ffe1d4eceb3be82b39001c006b3f (diff)
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
Originally committed as revision 2204 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure b/configure
index f253754274..81d2d4510b 100755
--- a/configure
+++ b/configure
@@ -574,6 +574,16 @@ if $cc -o $TMPE $TMPC 2> /dev/null ; then
strptime=yes
fi
+cat > $TMPC << EOF
+#include <time.h>
+int main( void ) { localtime_r(NULL, NULL); }
+EOF
+
+localtime_r=no
+if $cc -o $TMPE $TMPC 2> /dev/null ; then
+ localtime_r=yes
+fi
+
if test "$zlib" = "yes"; then
# check for zlib - mmu_man
cat > $TMPC << EOF
@@ -920,6 +930,11 @@ if test "$strptime" = "yes" ; then
else
echo "BUILD_STRPTIME=yes" >> config.mak
fi
+if test "$localtime_r" = "yes" ; then
+ echo "#define HAVE_LOCALTIME_R 1" >> $TMPH
+else
+ echo "BUILD_LOCALTIME_R=yes" >> config.mak
+fi
if test "$imlib2" = "yes" ; then
echo "HAVE_IMLIB2=yes" >> config.mak
fi