configure.ac (1ea818f0) configure.ac (e6e5b0b8)
1dnl * *************************************************************
2dnl *
3dnl * Licensed to the Apache Software Foundation (ASF) under one
4dnl * or more contributor license agreements. See the NOTICE file
5dnl * distributed with this work for additional information
6dnl * regarding copyright ownership. The ASF licenses this file
7dnl * to you under the Apache License, Version 2.0 (the
8dnl * "License"); you may not use this file except in compliance

--- 1944 unchanged lines hidden (view full) ---

1953 AC_MSG_RESULT([checked (perl $_perl_version)])
1954else
1955 AC_MSG_ERROR([Perl not found, install version 5 of Perl])
1956fi
1957AC_SUBST(PERL)
1958
1959dnl ===================================================================
1960dnl Testing for required Perl modules
1dnl * *************************************************************
2dnl *
3dnl * Licensed to the Apache Software Foundation (ASF) under one
4dnl * or more contributor license agreements. See the NOTICE file
5dnl * distributed with this work for additional information
6dnl * regarding copyright ownership. The ASF licenses this file
7dnl * to you under the Apache License, Version 2.0 (the
8dnl * "License"); you may not use this file except in compliance

--- 1944 unchanged lines hidden (view full) ---

1953 AC_MSG_RESULT([checked (perl $_perl_version)])
1954else
1955 AC_MSG_ERROR([Perl not found, install version 5 of Perl])
1956fi
1957AC_SUBST(PERL)
1958
1959dnl ===================================================================
1960dnl Testing for required Perl modules
1961dnl The list of required Perl modules is documented here:
1962dnl http://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements
1961dnl ===================================================================
1962AC_MSG_CHECKING([for required Perl modules])
1963dnl ===================================================================
1964AC_MSG_CHECKING([for required Perl modules])
1963if `$PERL -e 'use Archive::Zip; use LWP::UserAgent;'`; then
1965if `$PERL -e 'use Archive::Zip; use LWP::UserAgent; use XML::Parser;'>/dev/null 2>&1`; then
1964 AC_MSG_RESULT([all modules found])
1965else
1966 AC_MSG_RESULT([all modules found])
1967else
1966 AC_MSG_ERROR([Failed to find some modules])
1968 # Find out which modules are missing.
1969 missing_perl_modules=
1970 if ! `$PERL -e 'use Archive::Zip;'>/dev/null 2>&1`; then
1971 missing_perl_modules=Archive::Zip
1972 fi
1973 if ! `$PERL -e 'use LWP::UserAgent;'>/dev/null 2>&1`; then
1974 missing_perl_modules="$missing_perl_modules LWP::UserAgent"
1975 fi
1976 if ! `$PERL -e 'use XML::Parser;'>/dev/null 2>&1`; then
1977 missing_perl_modules="$missing_perl_modules XML::Parser"
1978 fi
1979 AC_MSG_ERROR([
1980 The missing Perl modules are: $missing_perl_modules
1981 Install them as superuser/administrator with "cpan -i $missing_perl_modules"])
1967fi
1968
1969dnl ===================================================================
1970dnl Check which Microsoft C/C++ or MinGW compiler is used for WINNT
1971dnl ===================================================================
1972if test "$_os" = "WINNT"; then
1973 if test "$WITH_MINGWIN" != "yes"; then
1974 AC_MSG_CHECKING([for friendly registry keys])

--- 5518 unchanged lines hidden ---
1982fi
1983
1984dnl ===================================================================
1985dnl Check which Microsoft C/C++ or MinGW compiler is used for WINNT
1986dnl ===================================================================
1987if test "$_os" = "WINNT"; then
1988 if test "$WITH_MINGWIN" != "yes"; then
1989 AC_MSG_CHECKING([for friendly registry keys])

--- 5518 unchanged lines hidden ---