1 |
786 |
skrzyp |
dnl Process this file with autoconf to produce a configure script.
|
2 |
|
|
dnl ====================================================================
|
3 |
|
|
dnl
|
4 |
|
|
dnl configure.in
|
5 |
|
|
dnl
|
6 |
|
|
dnl ecostest
|
7 |
|
|
dnl
|
8 |
|
|
dnl ====================================================================
|
9 |
|
|
dnl ####ECOSHOSTGPLCOPYRIGHTBEGIN####
|
10 |
|
|
dnl -------------------------------------------
|
11 |
|
|
dnl This file is part of the eCos host tools.
|
12 |
|
|
dnl Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
13 |
|
|
dnl
|
14 |
|
|
dnl This program is free software; you can redistribute it and/or modify
|
15 |
|
|
dnl it under the terms of the GNU General Public License as published by
|
16 |
|
|
dnl the Free Software Foundation; either version 2 or (at your option) any
|
17 |
|
|
dnl later version.
|
18 |
|
|
dnl
|
19 |
|
|
dnl This program is distributed in the hope that it will be useful, but
|
20 |
|
|
dnl WITHOUT ANY WARRANTY; without even the implied warranty of
|
21 |
|
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
22 |
|
|
dnl General Public License for more details.
|
23 |
|
|
dnl
|
24 |
|
|
dnl You should have received a copy of the GNU General Public License
|
25 |
|
|
dnl along with this program; if not, write to the
|
26 |
|
|
dnl Free Software Foundation, Inc., 51 Franklin Street,
|
27 |
|
|
dnl Fifth Floor, Boston, MA 02110-1301, USA.
|
28 |
|
|
dnl -------------------------------------------
|
29 |
|
|
dnl ####ECOSHOSTGPLCOPYRIGHTEND####
|
30 |
|
|
dnl ====================================================================
|
31 |
|
|
dnl#####DESCRIPTIONBEGIN####
|
32 |
|
|
dnl
|
33 |
|
|
dnl Author(s): bartv
|
34 |
|
|
dnl Contact(s): bartv
|
35 |
|
|
dnl Date: 1999/11/09
|
36 |
|
|
dnl Version: 0.01
|
37 |
|
|
dnl
|
38 |
|
|
dnl####DESCRIPTIONEND####
|
39 |
|
|
dnl ====================================================================
|
40 |
|
|
|
41 |
|
|
AC_INIT(permtest.cxx)
|
42 |
|
|
|
43 |
|
|
dnl Pick up the support files from the top-level of the source tree
|
44 |
|
|
AC_CONFIG_AUX_DIR(../../..)
|
45 |
|
|
|
46 |
|
|
AM_INIT_AUTOMAKE(ecostest, 0.1)
|
47 |
|
|
AM_MAINTAINER_MODE
|
48 |
|
|
|
49 |
|
|
dnl Other standard options.
|
50 |
|
|
AC_CANONICAL_HOST
|
51 |
|
|
AC_PROG_CC
|
52 |
|
|
AC_PROG_CXX
|
53 |
|
|
AC_OBJEXT
|
54 |
|
|
AC_EXEEXT
|
55 |
|
|
CYG_AC_PROG_STANDARD_COMPILER_FLAGS
|
56 |
|
|
|
57 |
|
|
dnl ----------------------------------------------------------------------------
|
58 |
|
|
dnl Where can the Tcl library be found?
|
59 |
|
|
dnl There are command-line argument --with-tcl and --with-tcl-version.
|
60 |
|
|
dnl Otherwise assume that there is already a working installation
|
61 |
|
|
dnl in $(PREFIX)
|
62 |
|
|
CYG_AC_PATH_TCL
|
63 |
|
|
|
64 |
|
|
dnl Now for the host-side infrastructure and for libcdl
|
65 |
|
|
dnl The names and paths can just be hardwired, with a minimal
|
66 |
|
|
dnl sanity check. Note that for the infrastructure it is
|
67 |
|
|
dnl necessary to use the build tree for the include path,
|
68 |
|
|
dnl since header files from various places need to be
|
69 |
|
|
dnl gathered together.
|
70 |
|
|
|
71 |
|
|
AC_MSG_CHECKING(for host-side infrastructure)
|
72 |
|
|
cyg_ac_infra_incdir=../../../infra
|
73 |
|
|
cyg_ac_infra_libdir=../../../infra
|
74 |
|
|
cyg_ac_infra_libraries=cyginfra
|
75 |
|
|
if test \! -d ${cyg_ac_infra_incdir} ; then
|
76 |
|
|
AC_MSG_ERROR(unable to locate the infrastructure build directory)
|
77 |
|
|
fi
|
78 |
|
|
AC_SUBST(cyg_ac_infra_incdir)
|
79 |
|
|
AC_SUBST(cyg_ac_infra_libdir)
|
80 |
|
|
AC_SUBST(cyg_ac_infra_libraries)
|
81 |
|
|
AC_MSG_RESULT(-I${cyg_ac_infra_incdir} -L${cyg_ac_infra_libdir} libraries ${cyg_ac_infra_libraries})
|
82 |
|
|
|
83 |
|
|
AC_MSG_CHECKING(for libcdl)
|
84 |
|
|
cyg_ac_cdl_incdir=${srcdir}/../../../libcdl
|
85 |
|
|
cyg_ac_cdl_libdir=../../../libcdl
|
86 |
|
|
cyg_ac_cdl_libraries=cdl
|
87 |
|
|
if test \! -d ${cyg_ac_cdl_incdir} ; then
|
88 |
|
|
AC_MSG_ERROR(unable to locate the libcdl source directory)
|
89 |
|
|
fi
|
90 |
|
|
if test \! -f ${cyg_ac_cdl_incdir}/cdl.hxx ; then
|
91 |
|
|
AC_MSG_ERROR(unable to locate the libcdl header file cdl.hxx)
|
92 |
|
|
fi
|
93 |
|
|
if test \! -d ${cyg_ac_cdl_libdir} ; then
|
94 |
|
|
AC_MSG_ERROR(unable to locate the libcdl build directory)
|
95 |
|
|
fi
|
96 |
|
|
AC_SUBST(cyg_ac_cdl_incdir)
|
97 |
|
|
AC_SUBST(cyg_ac_cdl_libdir)
|
98 |
|
|
AC_SUBST(cyg_ac_cdl_libraries)
|
99 |
|
|
AC_MSG_RESULT(-I${cyg_ac_cdl_incdir} -L${cyg_ac_cdl_libdir} libraries ${cyg_ac_cdl_libraries})
|
100 |
|
|
|
101 |
|
|
AC_MSG_CHECKING(for libutils)
|
102 |
|
|
cyg_ac_utils_incdir=${srcdir}/../../Utils/common
|
103 |
|
|
cyg_ac_utils_libdir=../../Utils/common
|
104 |
|
|
cyg_ac_utils_libraries=utils
|
105 |
|
|
if test \! -d ${cyg_ac_utils_incdir} ; then
|
106 |
|
|
AC_MSG_ERROR(unable to locate the libutils source directory)
|
107 |
|
|
fi
|
108 |
|
|
if test \! -f ${cyg_ac_utils_incdir}/eCosStd.h ; then
|
109 |
|
|
AC_MSG_ERROR(unable to locate the libutils header file ${cyg_ac_utils_incdir}/eCosStd.h)
|
110 |
|
|
fi
|
111 |
|
|
if test \! -d ${cyg_ac_utils_libdir} ; then
|
112 |
|
|
AC_MSG_ERROR(unable to locate the libutils build directory)
|
113 |
|
|
fi
|
114 |
|
|
AC_SUBST(cyg_ac_utils_incdir)
|
115 |
|
|
AC_SUBST(cyg_ac_utils_libdir)
|
116 |
|
|
AC_SUBST(cyg_ac_utils_libraries)
|
117 |
|
|
AC_MSG_RESULT(-I${cyg_ac_utils_incdir} -L${cyg_ac_utils_libdir} libraries ${cyg_ac_utils_libraries})
|
118 |
|
|
|
119 |
|
|
AC_OUTPUT(Makefile)
|