forked from videolan/vlc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rémi Denis-Courmont
committed
Jul 21, 2010
1 parent
27e4465
commit 830fd6f
Showing
34 changed files
with
984 additions
and
636 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Output a system dependent set of variables, describing how to set the | ||
# run time search path of shared libraries in an executable. | ||
# | ||
# Copyright 1996-2007 Free Software Foundation, Inc. | ||
# Copyright 1996-2010 Free Software Foundation, Inc. | ||
# Taken from GNU libtool, 2001 | ||
# Originally by Gordon Matzigkeit <[email protected]>, 1996 | ||
# | ||
|
@@ -47,7 +47,7 @@ for cc_temp in $CC""; do | |
done | ||
cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` | ||
|
||
# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. | ||
# Code taken from libtool.m4's _LT_COMPILER_PIC. | ||
|
||
wl= | ||
if test "$GCC" = yes; then | ||
|
@@ -64,7 +64,7 @@ else | |
;; | ||
esac | ||
;; | ||
mingw* | cygwin* | pw32* | os2*) | ||
mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
;; | ||
hpux9* | hpux10* | hpux11*) | ||
wl='-Wl,' | ||
|
@@ -76,7 +76,13 @@ else | |
;; | ||
linux* | k*bsd*-gnu) | ||
case $cc_basename in | ||
icc* | ecc*) | ||
ecc*) | ||
wl='-Wl,' | ||
;; | ||
icc* | ifort*) | ||
wl='-Wl,' | ||
;; | ||
lf95*) | ||
wl='-Wl,' | ||
;; | ||
pgcc | pgf77 | pgf90) | ||
|
@@ -124,15 +130,15 @@ else | |
esac | ||
fi | ||
|
||
# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. | ||
# Code taken from libtool.m4's _LT_LINKER_SHLIBS. | ||
|
||
hardcode_libdir_flag_spec= | ||
hardcode_libdir_separator= | ||
hardcode_direct=no | ||
hardcode_minus_L=no | ||
|
||
case "$host_os" in | ||
cygwin* | mingw* | pw32*) | ||
cygwin* | mingw* | pw32* | cegcc*) | ||
# FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
# When not using gcc, we currently assume that we are using | ||
# Microsoft Visual C++. | ||
|
@@ -158,7 +164,7 @@ if test "$with_gnu_ld" = yes; then | |
# option of GNU ld is called -rpath, not --rpath. | ||
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
case "$host_os" in | ||
aix3* | aix4* | aix5*) | ||
aix[3-9]*) | ||
# On AIX/PPC, the GNU linker is very broken | ||
if test "$host_cpu" != ia64; then | ||
ld_shlibs=no | ||
|
@@ -182,7 +188,7 @@ if test "$with_gnu_ld" = yes; then | |
ld_shlibs=no | ||
fi | ||
;; | ||
cygwin* | mingw* | pw32*) | ||
cygwin* | mingw* | pw32* | cegcc*) | ||
# hardcode_libdir_flag_spec is actually meaningless, as there is | ||
# no search path for DLLs. | ||
hardcode_libdir_flag_spec='-L$libdir' | ||
|
@@ -254,7 +260,7 @@ else | |
hardcode_direct=unsupported | ||
fi | ||
;; | ||
aix4* | aix5*) | ||
aix[4-9]*) | ||
if test "$host_cpu" = ia64; then | ||
# On IA64, the linker does run time linking by default, so we don't | ||
# have to do anything special. | ||
|
@@ -264,7 +270,7 @@ else | |
# Test if we are trying to use run time linking or normal | ||
# AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
# need to do runtime linking. | ||
case $host_os in aix4.[23]|aix4.[23].*|aix5*) | ||
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | ||
for ld_flag in $LDFLAGS; do | ||
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
aix_use_runtimelinking=yes | ||
|
@@ -326,7 +332,7 @@ else | |
;; | ||
bsdi[45]*) | ||
;; | ||
cygwin* | mingw* | pw32*) | ||
cygwin* | mingw* | pw32* | cegcc*) | ||
# When not using gcc, we currently assume that we are using | ||
# Microsoft Visual C++. | ||
# hardcode_libdir_flag_spec is actually meaningless, as there is | ||
|
@@ -494,7 +500,7 @@ else | |
fi | ||
|
||
# Check dynamic linker characteristics | ||
# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. | ||
# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. | ||
# Unlike libtool.m4, here we don't care about _all_ names of the library, but | ||
# only about the one the linker finds when passed -lNAME. This is the last | ||
# element of library_names_spec in libtool.m4, or possibly two of them if the | ||
|
@@ -505,7 +511,7 @@ case "$host_os" in | |
aix3*) | ||
library_names_spec='$libname.a' | ||
;; | ||
aix4* | aix5*) | ||
aix[4-9]*) | ||
library_names_spec='$libname$shrext' | ||
;; | ||
amigaos*) | ||
|
@@ -517,7 +523,7 @@ case "$host_os" in | |
bsdi[45]*) | ||
library_names_spec='$libname$shrext' | ||
;; | ||
cygwin* | mingw* | pw32*) | ||
cygwin* | mingw* | pw32* | cegcc*) | ||
shrext=.dll | ||
library_names_spec='$libname.dll.a $libname.lib' | ||
;; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# fcntl-o.m4 serial 1 | ||
dnl Copyright (C) 2006, 2009-2010 Free Software Foundation, Inc. | ||
dnl This file is free software; the Free Software Foundation | ||
dnl gives unlimited permission to copy and/or distribute it, | ||
dnl with or without modifications, as long as this notice is preserved. | ||
|
||
dnl Written by Paul Eggert. | ||
|
||
# Test whether the flags O_NOATIME and O_NOFOLLOW actually work. | ||
# Define HAVE_WORKING_O_NOATIME to 1 if O_NOATIME works, or to 0 otherwise. | ||
# Define HAVE_WORKING_O_NOFOLLOW to 1 if O_NOFOLLOW works, or to 0 otherwise. | ||
AC_DEFUN([gl_FCNTL_O_FLAGS], | ||
[ | ||
dnl Persuade glibc <fcntl.h> to define O_NOATIME and O_NOFOLLOW. | ||
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) | ||
AC_CACHE_CHECK([for working fcntl.h], [gl_cv_header_working_fcntl_h], | ||
[AC_RUN_IFELSE( | ||
[AC_LANG_PROGRAM( | ||
[[#include <sys/types.h> | ||
#include <sys/stat.h> | ||
#include <unistd.h> | ||
#include <fcntl.h> | ||
#ifndef O_NOATIME | ||
#define O_NOATIME 0 | ||
#endif | ||
#ifndef O_NOFOLLOW | ||
#define O_NOFOLLOW 0 | ||
#endif | ||
static int const constants[] = | ||
{ | ||
O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, | ||
O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY | ||
}; | ||
]], | ||
[[ | ||
int status = !constants; | ||
{ | ||
static char const sym[] = "conftest.sym"; | ||
if (symlink (".", sym) != 0 | ||
|| close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0) | ||
status |= 32; | ||
unlink (sym); | ||
} | ||
{ | ||
static char const file[] = "confdefs.h"; | ||
int fd = open (file, O_RDONLY | O_NOATIME); | ||
char c; | ||
struct stat st0, st1; | ||
if (fd < 0 | ||
|| fstat (fd, &st0) != 0 | ||
|| sleep (1) != 0 | ||
|| read (fd, &c, 1) != 1 | ||
|| close (fd) != 0 | ||
|| stat (file, &st1) != 0 | ||
|| st0.st_atime != st1.st_atime) | ||
status |= 64; | ||
} | ||
return status;]])], | ||
[gl_cv_header_working_fcntl_h=yes], | ||
[case $? in #( | ||
32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( | ||
64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( | ||
96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( | ||
*) gl_cv_header_working_fcntl_h='no';; | ||
esac], | ||
[gl_cv_header_working_fcntl_h=cross-compiling])]) | ||
case $gl_cv_header_working_fcntl_h in #( | ||
*O_NOATIME* | no | cross-compiling) ac_val=0;; #( | ||
*) ac_val=1;; | ||
esac | ||
AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOATIME], [$ac_val], | ||
[Define to 1 if O_NOATIME works.]) | ||
case $gl_cv_header_working_fcntl_h in #( | ||
*O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( | ||
*) ac_val=1;; | ||
esac | ||
AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOFOLLOW], [$ac_val], | ||
[Define to 1 if O_NOFOLLOW works.]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# gettext.m4 serial 60 (gettext-0.17) | ||
dnl Copyright (C) 1995-2007 Free Software Foundation, Inc. | ||
# gettext.m4 serial 63 (gettext-0.18) | ||
dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. | ||
dnl This file is free software; the Free Software Foundation | ||
dnl gives unlimited permission to copy and/or distribute it, | ||
dnl with or without modifications, as long as this notice is preserved. | ||
|
@@ -15,7 +15,7 @@ dnl They are *not* in the public domain. | |
|
||
dnl Authors: | ||
dnl Ulrich Drepper <[email protected]>, 1995-2000. | ||
dnl Bruno Haible <[email protected]>, 2000-2006. | ||
dnl Bruno Haible <[email protected]>, 2000-2006, 2008-2010. | ||
|
||
dnl Macro to add for using GNU gettext. | ||
|
||
|
@@ -60,6 +60,8 @@ AC_DEFUN([AM_GNU_GETTEXT], | |
ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , | ||
[errprint([ERROR: invalid first argument to AM_GNU_GETTEXT | ||
])])])])]) | ||
ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], | ||
[AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])]) | ||
ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , | ||
[errprint([ERROR: invalid second argument to AM_GNU_GETTEXT | ||
])])])]) | ||
|
@@ -123,11 +125,11 @@ AC_DEFUN([AM_GNU_GETTEXT], | |
gt_use_preinstalled_gnugettext=no | ||
ifelse(gt_included_intl, yes, [ | ||
AC_MSG_CHECKING([whether included gettext is requested]) | ||
AC_ARG_WITH(included-gettext, | ||
AC_ARG_WITH([included-gettext], | ||
[ --with-included-gettext use the GNU gettext library included here], | ||
nls_cv_force_use_gnu_gettext=$withval, | ||
nls_cv_force_use_gnu_gettext=no) | ||
AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) | ||
AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) | ||
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | ||
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | ||
|
@@ -267,7 +269,7 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a | |
if test "$gt_use_preinstalled_gnugettext" = "yes" \ | ||
|| test "$nls_cv_use_gnu_gettext" = "yes"; then | ||
AC_DEFINE(ENABLE_NLS, 1, | ||
AC_DEFINE([ENABLE_NLS], [1], | ||
[Define to 1 if translation of program messages to the user's native language | ||
is requested.]) | ||
else | ||
|
@@ -301,9 +303,9 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a | |
fi | ||
dnl For backward compatibility. Some packages may be using this. | ||
AC_DEFINE(HAVE_GETTEXT, 1, | ||
AC_DEFINE([HAVE_GETTEXT], [1], | ||
[Define if the GNU gettext() function is already present or preinstalled.]) | ||
AC_DEFINE(HAVE_DCGETTEXT, 1, | ||
AC_DEFINE([HAVE_DCGETTEXT], [1], | ||
[Define if the GNU dcgettext() function is already present or preinstalled.]) | ||
fi | ||
|
@@ -319,46 +321,46 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a | |
fi | ||
dnl Make all variables we use known to autoconf. | ||
AC_SUBST(BUILD_INCLUDED_LIBINTL) | ||
AC_SUBST(USE_INCLUDED_LIBINTL) | ||
AC_SUBST(CATOBJEXT) | ||
AC_SUBST([BUILD_INCLUDED_LIBINTL]) | ||
AC_SUBST([USE_INCLUDED_LIBINTL]) | ||
AC_SUBST([CATOBJEXT]) | ||
dnl For backward compatibility. Some configure.ins may be using this. | ||
nls_cv_header_intl= | ||
nls_cv_header_libgt= | ||
dnl For backward compatibility. Some Makefiles may be using this. | ||
DATADIRNAME=share | ||
AC_SUBST(DATADIRNAME) | ||
AC_SUBST([DATADIRNAME]) | ||
dnl For backward compatibility. Some Makefiles may be using this. | ||
INSTOBJEXT=.mo | ||
AC_SUBST(INSTOBJEXT) | ||
AC_SUBST([INSTOBJEXT]) | ||
dnl For backward compatibility. Some Makefiles may be using this. | ||
GENCAT=gencat | ||
AC_SUBST(GENCAT) | ||
AC_SUBST([GENCAT]) | ||
dnl For backward compatibility. Some Makefiles may be using this. | ||
INTLOBJS= | ||
if test "$USE_INCLUDED_LIBINTL" = yes; then | ||
INTLOBJS="\$(GETTOBJS)" | ||
fi | ||
AC_SUBST(INTLOBJS) | ||
AC_SUBST([INTLOBJS]) | ||
dnl Enable libtool support if the surrounding package wishes it. | ||
INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix | ||
AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) | ||
AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX]) | ||
]) | ||
dnl For backward compatibility. Some Makefiles may be using this. | ||
INTLLIBS="$LIBINTL" | ||
AC_SUBST(INTLLIBS) | ||
AC_SUBST([INTLLIBS]) | ||
dnl Make all documented variables known to autoconf. | ||
AC_SUBST(LIBINTL) | ||
AC_SUBST(LTLIBINTL) | ||
AC_SUBST(POSUB) | ||
AC_SUBST([LIBINTL]) | ||
AC_SUBST([LTLIBINTL]) | ||
AC_SUBST([POSUB]) | ||
]) | ||
|
||
|
||
|
Oops, something went wrong.