missing project/build files
[client-tools.git] / src / external / ours / library / localizationArchive / configure.in
blob34851a9bc922bd881c805391fe753ad5c282ab1a
1 # Process this file with autoconf to produce a configure script.
2 AC_INIT(localizationArchive, 1.0.0, swoprogrammers@soe.sony.com)
3 AC_CONFIG_AUX_DIR(config)
5 # AC_DISABLE_STATIC
6 AM_INIT_AUTOMAKE
8 AC_ARG_ENABLE([debug], AC_HELP_STRING([--enable-debug\[=yes\|no\] ], [defines _DEBUG and enables debugging features]), AC_DEFINE(_DEBUG) CXXFLAGS="$CXXFLAGS -g", CXXFLAGS="$CXXFLAGS -O2")
10 # todo -  when using gcc-3, pick more optimizations for use
11 AC_ARG_ENABLE([optimized], AC_HELP_STRING([--enable-optimized\[=yes\|no\] ], [enables optimizations]), CXXFLAGS="$CXXFLAGS -O2", [])
13 # Checks for programs.
14 AC_PROG_CXX
15 AC_PROG_CC
16 AC_PROG_MAKE_SET
17 AC_PROG_CPP
18 AC_PROG_LIBTOOL
20 # Checks for libraries.
22 # Checks for header files.
23 AC_DEFUN([REQUIRE_PACKAGE], [if ! test $$3; then AC_ARG_WITH([$1], AC_HELP_STRING([--with-$1=path/to/$1], [where to find $1]), AC_SUBST($3, $withval), AC_SUBST($3, $2)) AC_CHECK_FILE($4, [], AC_MSG_ERROR([$1 is required but was not found in $$3])) fi])
25 REQUIRE_PACKAGE(stlport, [`pwd`/../../../3rd/library/stlport453], stlport_dir, [$stlport_dir/stlport/algorithm]) AC_SUBST(stlport_dir)
26 REQUIRE_PACKAGE(localization, [`pwd`/../localization], localization_dir, [$localization_dir/include/FirstLocalization.h]) AC_SUBST(localization_dir)
27 REQUIRE_PACKAGE(unicode, [`pwd`/../unicode], unicode_dir, [$unicode_dir/include/Unicode.h]) AC_SUBST(unicode_dir)
28 REQUIRE_PACKAGE(archive, [`pwd`/../archive], archive_dir, [$archive_dir/include/Archive/Archive.h]) AC_SUBST(archive_dir)
31 # Checks for typedefs, structures, and compiler characteristics.
32 AC_TYPE_SIZE_T
34 # Checks for library functions.
35 AC_HEADER_STDC
36 AC_CHECK_FUNCS([strncasecmp])
38 AC_OUTPUT(Makefile \
39         src/Makefile \
40         src/shared/Makefile)