Add MOZILLA_VERSION to mozilla-config.h.

Bug #189462 r=dougt
This commit is contained in:
seawood%netscape.com 2003-01-22 04:23:27 +00:00
Родитель acd5cfb16e
Коммит aa257f9290
2 изменённых файлов: 43 добавлений и 28 удалений

37
configure поставляемый
Просмотреть файл

@ -4709,7 +4709,7 @@ else
DSO_LDOPTS='-shared -h $@'
DSO_CFLAGS=''
DSO_PIC_CFLAGS='-KPIC'
_DEFINES_CFLAGS='$(ACDEFINES) -DMOZILLA_CLIENT'
_DEFINES_CFLAGS='$(ACDEFINES) -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT'
fi
if test "$GNU_CXX"; then
@ -4723,7 +4723,7 @@ if test "$GNU_CXX"; then
_DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -include $(DEPTH)/mozilla-config.h'
_USE_CPP_INCLUDE_FLAG=1
else
_DEFINES_CXXFLAGS='-DMOZILLA_CLIENT $(ACDEFINES)'
_DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -D_MOZILLA_CONFIG_H_ $(ACDEFINES)'
fi
MKSHLIB_FORCE_ALL=
@ -13307,8 +13307,8 @@ if test "$_cpp_md_flag"; then
else
COMPILER_DEPEND=
_USE_CPP_INCLUDE_FLAG=
_DEFINES_CFLAGS='$(ACDEFINES) -DMOZILLA_CLIENT'
_DEFINES_CXXFLAGS='$(ACDEFINES) -DMOZILLA_CLIENT'
_DEFINES_CFLAGS='$(ACDEFINES) -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT'
_DEFINES_CXXFLAGS='$(ACDEFINES) -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT'
fi
fi # MOZ_AUTO_DEPS
MDDEPDIR='.deps'
@ -14931,6 +14931,24 @@ for lib_arg in $NSPR_LIBS $TK_LIBS; do
done
my_srcdir=$srcdir
case "$target_os" in
msvc*|mksnt*|cygwin*|mingw*)
my_srcdir=`cygpath -w ${srcdir} | sed 's|\\\\|/|g'`
my_perl=$_WIN32_PERL
;;
*)
my_perl=$PERL
;;
esac
MOZILLA_VERSION=`$my_perl $my_srcdir/config/milestone.pl -topsrcdir $my_srcdir`
cat >> confdefs.h <<EOF
#define MOZILLA_VERSION "$MOZILLA_VERSION"
EOF
# Save the defines header file before autoconf removes it.
# (Do not add AC_DEFINE calls after this line.)
@ -14968,21 +14986,12 @@ EOF
. ${srcdir}/allmakefiles.sh
my_srcdir=$srcdir
case "$target_os" in
msvc*|mksnt*|cygwin*|mingw*)
my_srcdir=`cygpath -w ${srcdir} | sed 's|\\\\|/|g'`
MAKEFILES=`echo $MAKEFILES | sed -e 's|/cygdrive/\(.\)/|\1:/|g'`
my_perl=$_WIN32_PERL
;;
*)
my_perl=$PERL
;;
esac
MOZILLA_VERSION=`$my_perl $my_srcdir/config/milestone.pl -topsrcdir $my_srcdir`
echo $MAKEFILES | $my_perl $my_srcdir/build/autoconf/acoutput-fast.pl > conftest.sh
. ./conftest.sh
rm conftest.sh
@ -15427,8 +15436,8 @@ s%@ASM_SUFFIX@%$ASM_SUFFIX%g
s%@USE_N32@%$USE_N32%g
s%@MOZ_MOVEMAIL@%$MOZ_MOVEMAIL%g
s%@LIBS_PATH@%$LIBS_PATH%g
s%@MOZ_DEFINES@%$MOZ_DEFINES%g
s%@MOZILLA_VERSION@%$MOZILLA_VERSION%g
s%@MOZ_DEFINES@%$MOZ_DEFINES%g
CEOF
EOF

Просмотреть файл

@ -667,7 +667,7 @@ else
DSO_LDOPTS='-shared -h $@'
DSO_CFLAGS=''
DSO_PIC_CFLAGS='-KPIC'
_DEFINES_CFLAGS='$(ACDEFINES) -DMOZILLA_CLIENT'
_DEFINES_CFLAGS='$(ACDEFINES) -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT'
fi
if test "$GNU_CXX"; then
@ -682,7 +682,7 @@ if test "$GNU_CXX"; then
_DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -include $(DEPTH)/mozilla-config.h'
_USE_CPP_INCLUDE_FLAG=1
else
_DEFINES_CXXFLAGS='-DMOZILLA_CLIENT $(ACDEFINES)'
_DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -D_MOZILLA_CONFIG_H_ $(ACDEFINES)'
fi
dnl gcc can come with its own linker so it is better to use the pass-thru calls
@ -4368,8 +4368,8 @@ if test "$_cpp_md_flag"; then
else
COMPILER_DEPEND=
_USE_CPP_INCLUDE_FLAG=
_DEFINES_CFLAGS='$(ACDEFINES) -DMOZILLA_CLIENT'
_DEFINES_CXXFLAGS='$(ACDEFINES) -DMOZILLA_CLIENT'
_DEFINES_CFLAGS='$(ACDEFINES) -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT'
_DEFINES_CXXFLAGS='$(ACDEFINES) -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT'
fi
fi # MOZ_AUTO_DEPS
MDDEPDIR='.deps'
@ -4957,6 +4957,22 @@ for lib_arg in $NSPR_LIBS $TK_LIBS; do
done
AC_SUBST(LIBS_PATH)
my_srcdir=$srcdir
case "$target_os" in
msvc*|mksnt*|cygwin*|mingw*)
my_srcdir=`cygpath -w ${srcdir} | sed 's|\\\\|/|g'`
my_perl=$_WIN32_PERL
;;
*)
my_perl=$PERL
;;
esac
dnl Get mozilla version from central milestone file
MOZILLA_VERSION=`$my_perl $my_srcdir/config/milestone.pl -topsrcdir $my_srcdir`
AC_DEFINE_UNQUOTED(MOZILLA_VERSION,"$MOZILLA_VERSION")
AC_SUBST(MOZILLA_VERSION)
dnl Spit out some output
dnl ========================================================
@ -5010,22 +5026,12 @@ dnl This does not change the $MAKEFILES variable.
dnl
dnl OpenVMS gets a line overflow on the long eval command, so use a temp file.
dnl
my_srcdir=$srcdir
case "$target_os" in
msvc*|mksnt*|cygwin*|mingw*)
my_srcdir=`cygpath -w ${srcdir} | sed 's|\\\\|/|g'`
MAKEFILES=`echo $MAKEFILES | sed -e 's|/cygdrive/\(.\)/|\1:/|g'`
my_perl=$_WIN32_PERL
;;
*)
my_perl=$PERL
;;
esac
dnl Get mozilla version from central milestone file
MOZILLA_VERSION=`$my_perl $my_srcdir/config/milestone.pl -topsrcdir $my_srcdir`
AC_SUBST(MOZILLA_VERSION)
echo $MAKEFILES | $my_perl $my_srcdir/build/autoconf/acoutput-fast.pl > conftest.sh
. ./conftest.sh
rm conftest.sh