Package list ibutils / c3ebda3
Imported Upstream version 1.2-OFED-1.4.2 Ana Guerrero López 7 years ago
490 changed file(s) with 561955 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
(New empty file)
0 #--
1 # Copyright (c) 2004 Mellanox Technologies LTD. All rights reserved.
2 #
3 # This software is available to you under a choice of one of two
4 # licenses. You may choose to be licensed under the terms of the GNU
5 # General Public License (GPL) Version 2, available from the file
6 # COPYING in the main directory of this source tree, or the
7 # OpenIB.org BSD license below:
8 #
9 # Redistribution and use in source and binary forms, with or
10 # without modification, are permitted provided that the following
11 # conditions are met:
12 #
13 # - Redistributions of source code must retain the above
14 # copyright notice, this list of conditions and the following
15 # disclaimer.
16 #
17 # - Redistributions in binary form must reproduce the above
18 # copyright notice, this list of conditions and the following
19 # disclaimer in the documentation and/or other materials
20 # provided with the distribution.
21 #
22 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
26 # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
27 # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
28 # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29 # SOFTWARE.
30 #
31 # $Id$
32 #--
(New empty file)
0 Installation Instructions
1 *************************
2
3 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004 Free
4 Software Foundation, Inc.
5
6 This file is free documentation; the Free Software Foundation gives
7 unlimited permission to copy, distribute and modify it.
8
9 Basic Installation
10 ==================
11
12 These are generic installation instructions.
13
14 The `configure' shell script attempts to guess correct values for
15 various system-dependent variables used during compilation. It uses
16 those values to create a `Makefile' in each directory of the package.
17 It may also create one or more `.h' files containing system-dependent
18 definitions. Finally, it creates a shell script `config.status' that
19 you can run in the future to recreate the current configuration, and a
20 file `config.log' containing compiler output (useful mainly for
21 debugging `configure').
22
23 It can also use an optional file (typically called `config.cache'
24 and enabled with `--cache-file=config.cache' or simply `-C') that saves
25 the results of its tests to speed up reconfiguring. (Caching is
26 disabled by default to prevent problems with accidental use of stale
27 cache files.)
28
29 If you need to do unusual things to compile the package, please try
30 to figure out how `configure' could check whether to do them, and mail
31 diffs or instructions to the address given in the `README' so they can
32 be considered for the next release. If you are using the cache, and at
33 some point `config.cache' contains results you don't want to keep, you
34 may remove or edit it.
35
36 The file `configure.ac' (or `configure.in') is used to create
37 `configure' by a program called `autoconf'. You only need
38 `configure.ac' if you want to change it or regenerate `configure' using
39 a newer version of `autoconf'.
40
41 The simplest way to compile this package is:
42
43 1. `cd' to the directory containing the package's source code and type
44 `./configure' to configure the package for your system. If you're
45 using `csh' on an old version of System V, you might need to type
46 `sh ./configure' instead to prevent `csh' from trying to execute
47 `configure' itself.
48
49 Running `configure' takes awhile. While running, it prints some
50 messages telling which features it is checking for.
51
52 2. Type `make' to compile the package.
53
54 3. Optionally, type `make check' to run any self-tests that come with
55 the package.
56
57 4. Type `make install' to install the programs and any data files and
58 documentation.
59
60 5. You can remove the program binaries and object files from the
61 source code directory by typing `make clean'. To also remove the
62 files that `configure' created (so you can compile the package for
63 a different kind of computer), type `make distclean'. There is
64 also a `make maintainer-clean' target, but that is intended mainly
65 for the package's developers. If you use it, you may have to get
66 all sorts of other programs in order to regenerate files that came
67 with the distribution.
68
69 Compilers and Options
70 =====================
71
72 Some systems require unusual options for compilation or linking that the
73 `configure' script does not know about. Run `./configure --help' for
74 details on some of the pertinent environment variables.
75
76 You can give `configure' initial values for configuration parameters
77 by setting variables in the command line or in the environment. Here
78 is an example:
79
80 ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
81
82 *Note Defining Variables::, for more details.
83
84 Compiling For Multiple Architectures
85 ====================================
86
87 You can compile the package for more than one kind of computer at the
88 same time, by placing the object files for each architecture in their
89 own directory. To do this, you must use a version of `make' that
90 supports the `VPATH' variable, such as GNU `make'. `cd' to the
91 directory where you want the object files and executables to go and run
92 the `configure' script. `configure' automatically checks for the
93 source code in the directory that `configure' is in and in `..'.
94
95 If you have to use a `make' that does not support the `VPATH'
96 variable, you have to compile the package for one architecture at a
97 time in the source code directory. After you have installed the
98 package for one architecture, use `make distclean' before reconfiguring
99 for another architecture.
100
101 Installation Names
102 ==================
103
104 By default, `make install' will install the package's files in
105 `/usr/local/bin', `/usr/local/man', etc. You can specify an
106 installation prefix other than `/usr/local' by giving `configure' the
107 option `--prefix=PREFIX'.
108
109 You can specify separate installation prefixes for
110 architecture-specific files and architecture-independent files. If you
111 give `configure' the option `--exec-prefix=PREFIX', the package will
112 use PREFIX as the prefix for installing programs and libraries.
113 Documentation and other data files will still use the regular prefix.
114
115 In addition, if you use an unusual directory layout you can give
116 options like `--bindir=DIR' to specify different values for particular
117 kinds of files. Run `configure --help' for a list of the directories
118 you can set and what kinds of files go in them.
119
120 If the package supports it, you can cause programs to be installed
121 with an extra prefix or suffix on their names by giving `configure' the
122 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
123
124 Optional Features
125 =================
126
127 Some packages pay attention to `--enable-FEATURE' options to
128 `configure', where FEATURE indicates an optional part of the package.
129 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
130 is something like `gnu-as' or `x' (for the X Window System). The
131 `README' should mention any `--enable-' and `--with-' options that the
132 package recognizes.
133
134 For packages that use the X Window System, `configure' can usually
135 find the X include and library files automatically, but if it doesn't,
136 you can use the `configure' options `--x-includes=DIR' and
137 `--x-libraries=DIR' to specify their locations.
138
139 Specifying the System Type
140 ==========================
141
142 There may be some features `configure' cannot figure out automatically,
143 but needs to determine by the type of machine the package will run on.
144 Usually, assuming the package is built to be run on the _same_
145 architectures, `configure' can figure that out, but if it prints a
146 message saying it cannot guess the machine type, give it the
147 `--build=TYPE' option. TYPE can either be a short name for the system
148 type, such as `sun4', or a canonical name which has the form:
149
150 CPU-COMPANY-SYSTEM
151
152 where SYSTEM can have one of these forms:
153
154 OS KERNEL-OS
155
156 See the file `config.sub' for the possible values of each field. If
157 `config.sub' isn't included in this package, then this package doesn't
158 need to know the machine type.
159
160 If you are _building_ compiler tools for cross-compiling, you should
161 use the `--target=TYPE' option to select the type of system they will
162 produce code for.
163
164 If you want to _use_ a cross compiler, that generates code for a
165 platform different from the build platform, you should specify the
166 "host" platform (i.e., that on which the generated programs will
167 eventually be run) with `--host=TYPE'.
168
169 Sharing Defaults
170 ================
171
172 If you want to set default values for `configure' scripts to share, you
173 can create a site shell script called `config.site' that gives default
174 values for variables like `CC', `cache_file', and `prefix'.
175 `configure' looks for `PREFIX/share/config.site' if it exists, then
176 `PREFIX/etc/config.site' if it exists. Or, you can set the
177 `CONFIG_SITE' environment variable to the location of the site script.
178 A warning: not all `configure' scripts look for a site script.
179
180 Defining Variables
181 ==================
182
183 Variables not defined in a site shell script can be set in the
184 environment passed to `configure'. However, some packages may run
185 configure again during the build, and the customized values of these
186 variables may be lost. In order to avoid this problem, you should set
187 them in the `configure' command line, using `VAR=value'. For example:
188
189 ./configure CC=/usr/local2/bin/gcc
190
191 will cause the specified gcc to be used as the C compiler (unless it is
192 overridden in the site shell script).
193
194 `configure' Invocation
195 ======================
196
197 `configure' recognizes the following options to control how it operates.
198
199 `--help'
200 `-h'
201 Print a summary of the options to `configure', and exit.
202
203 `--version'
204 `-V'
205 Print the version of Autoconf used to generate the `configure'
206 script, and exit.
207
208 `--cache-file=FILE'
209 Enable the cache: use and save the results of the tests in FILE,
210 traditionally `config.cache'. FILE defaults to `/dev/null' to
211 disable caching.
212
213 `--config-cache'
214 `-C'
215 Alias for `--cache-file=config.cache'.
216
217 `--quiet'
218 `--silent'
219 `-q'
220 Do not print messages saying which checks are being made. To
221 suppress all normal output, redirect it to `/dev/null' (any error
222 messages will still be shown).
223
224 `--srcdir=DIR'
225 Look for the package's source code in directory DIR. Usually
226 `configure' can determine that directory automatically.
227
228 `configure' also accepts some other, not widely useful, options. Run
229 `configure --help' for more details.
230
0 #--
1 # Copyright (c) 2004 Mellanox Technologies LTD. All rights reserved.
2 #
3 # This software is available to you under a choice of one of two
4 # licenses. You may choose to be licensed under the terms of the GNU
5 # General Public License (GPL) Version 2, available from the file
6 # COPYING in the main directory of this source tree, or the
7 # OpenIB.org BSD license below:
8 #
9 # Redistribution and use in source and binary forms, with or
10 # without modification, are permitted provided that the following
11 # conditions are met:
12 #
13 # - Redistributions of source code must retain the above
14 # copyright notice, this list of conditions and the following
15 # disclaimer.
16 #
17 # - Redistributions in binary form must reproduce the above
18 # copyright notice, this list of conditions and the following
19 # disclaimer in the documentation and/or other materials
20 # provided with the distribution.
21 #
22 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
26 # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
27 # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
28 # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29 # SOFTWARE.
30 #
31 # $Id$
32 #--
33
34 #AUTOMAKE_OPTIONS = gnits
35
36 # note that order matters: make the lib first then use it
37 if BUILD_IBMGTSIM
38 IBMGTSIMDIR = ibmgtsim
39 endif
40
41 SUBDIRS = ibis ibdm ibdiag $(IBMGTSIMDIR)
42 DIST_SUBDIRS = ibis ibdm ibdiag $(IBMGTSIMDIR)
43
44 # this will control the update of the files in order
45 MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure config-h.in
46
47 ACLOCAL = aclocal -I $(ac_aux_dir)
48
49 EXTRA_DIST = ibutils.spec.in
50
51 dist-hook: ibutils.spec
52 cp ibutils.spec $(distdir)
53
54 #dist-hook:
55 # cd $(distdir)
56 # cp -rf $(top_srcdir)/Clusters Clusters
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 #--
17 # Copyright (c) 2004 Mellanox Technologies LTD. All rights reserved.
18 #
19 # This software is available to you under a choice of one of two
20 # licenses. You may choose to be licensed under the terms of the GNU
21 # General Public License (GPL) Version 2, available from the file
22 # COPYING in the main directory of this source tree, or the
23 # OpenIB.org BSD license below:
24 #
25 # Redistribution and use in source and binary forms, with or
26 # without modification, are permitted provided that the following
27 # conditions are met:
28 #
29 # - Redistributions of source code must retain the above
30 # copyright notice, this list of conditions and the following
31 # disclaimer.
32 #
33 # - Redistributions in binary form must reproduce the above
34 # copyright notice, this list of conditions and the following
35 # disclaimer in the documentation and/or other materials
36 # provided with the distribution.
37 #
38 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
39 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
40 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
42 # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
43 # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
44 # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
45 # SOFTWARE.
46 #
47 # $Id$
48 #--
49
50 #AUTOMAKE_OPTIONS = gnits
51 srcdir = @srcdir@
52 top_srcdir = @top_srcdir@
53 VPATH = @srcdir@
54 pkgdatadir = $(datadir)/@PACKAGE@
55 pkglibdir = $(libdir)/@PACKAGE@
56 pkgincludedir = $(includedir)/@PACKAGE@
57 top_builddir = .
58 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
59 INSTALL = @INSTALL@
60 install_sh_DATA = $(install_sh) -c -m 644
61 install_sh_PROGRAM = $(install_sh) -c
62 install_sh_SCRIPT = $(install_sh) -c
63 INSTALL_HEADER = $(INSTALL_DATA)
64 transform = $(program_transform_name)
65 NORMAL_INSTALL = :
66 PRE_INSTALL = :
67 POST_INSTALL = :
68 NORMAL_UNINSTALL = :
69 PRE_UNINSTALL = :
70 POST_UNINSTALL = :
71 subdir = .
72 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
73 $(srcdir)/Makefile.in $(srcdir)/ibutils.spec.in \
74 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
75 config/install-sh config/missing
76 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
77 am__aclocal_m4_deps = $(top_srcdir)/config/osm.m4 \
78 $(top_srcdir)/configure.in
79 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
80 $(ACLOCAL_M4)
81 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
82 configure.lineno configure.status.lineno
83 mkinstalldirs = $(install_sh) -d
84 CONFIG_CLEAN_FILES = ibutils.spec
85 SOURCES =
86 DIST_SOURCES =
87 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
88 html-recursive info-recursive install-data-recursive \
89 install-exec-recursive install-info-recursive \
90 install-recursive installcheck-recursive installdirs-recursive \
91 pdf-recursive ps-recursive uninstall-info-recursive \
92 uninstall-recursive
93 ETAGS = etags
94 CTAGS = ctags
95 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
96 distdir = $(PACKAGE)-$(VERSION)
97 top_distdir = $(distdir)
98 am__remove_distdir = \
99 { test ! -d $(distdir) \
100 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
101 && rm -fr $(distdir); }; }
102 DIST_ARCHIVES = $(distdir).tar.gz
103 GZIP_ENV = --best
104 distuninstallcheck_listfiles = find . -type f -print
105 distcleancheck_listfiles = find . -type f -print
106 ACLOCAL = aclocal -I $(ac_aux_dir)
107 AMTAR = @AMTAR@
108 AUTOCONF = @AUTOCONF@
109 AUTOHEADER = @AUTOHEADER@
110 AUTOMAKE = @AUTOMAKE@
111 AWK = @AWK@
112 BUILD_IBMGTSIM_FALSE = @BUILD_IBMGTSIM_FALSE@
113 BUILD_IBMGTSIM_TRUE = @BUILD_IBMGTSIM_TRUE@
114 CYGPATH_W = @CYGPATH_W@
115 DEFS = @DEFS@
116 ECHO_C = @ECHO_C@
117 ECHO_N = @ECHO_N@
118 ECHO_T = @ECHO_T@
119 INSTALL_DATA = @INSTALL_DATA@
120 INSTALL_PROGRAM = @INSTALL_PROGRAM@
121 INSTALL_SCRIPT = @INSTALL_SCRIPT@
122 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
123 LIBOBJS = @LIBOBJS@
124 LIBS = @LIBS@
125 LTLIBOBJS = @LTLIBOBJS@
126 MAINT = @MAINT@
127 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
128 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
129 MAKEINFO = @MAKEINFO@
130 OSM_BUILD = @OSM_BUILD@
131 OSM_BUILD_OPENIB_FALSE = @OSM_BUILD_OPENIB_FALSE@
132 OSM_BUILD_OPENIB_TRUE = @OSM_BUILD_OPENIB_TRUE@
133 OSM_CFLAGS = @OSM_CFLAGS@
134 OSM_LDFLAGS = @OSM_LDFLAGS@
135 OSM_VENDOR = @OSM_VENDOR@
136 OSM_VENDOR_MTL_FALSE = @OSM_VENDOR_MTL_FALSE@
137 OSM_VENDOR_MTL_TRUE = @OSM_VENDOR_MTL_TRUE@
138 OSM_VENDOR_SIM_FALSE = @OSM_VENDOR_SIM_FALSE@
139 OSM_VENDOR_SIM_TRUE = @OSM_VENDOR_SIM_TRUE@
140 OSM_VENDOR_TS_FALSE = @OSM_VENDOR_TS_FALSE@
141 OSM_VENDOR_TS_TRUE = @OSM_VENDOR_TS_TRUE@
142 PACKAGE = @PACKAGE@
143 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
144 PACKAGE_NAME = @PACKAGE_NAME@
145 PACKAGE_STRING = @PACKAGE_STRING@
146 PACKAGE_TARNAME = @PACKAGE_TARNAME@
147 PACKAGE_VERSION = @PACKAGE_VERSION@
148 PATH_SEPARATOR = @PATH_SEPARATOR@
149 SET_MAKE = @SET_MAKE@
150 SHELL = @SHELL@
151 STRIP = @STRIP@
152 VERSION = @VERSION@
153 ac_ct_STRIP = @ac_ct_STRIP@
154 am__leading_dot = @am__leading_dot@
155 am__tar = @am__tar@
156 am__untar = @am__untar@
157 bindir = @bindir@
158 build_alias = @build_alias@
159 datadir = @datadir@
160 exec_prefix = @exec_prefix@
161 host_alias = @host_alias@
162 includedir = @includedir@
163 infodir = @infodir@
164 install_sh = @install_sh@
165 libdir = @libdir@
166 libexecdir = @libexecdir@
167 localstatedir = @localstatedir@
168 mandir = @mandir@
169 mkdir_p = @mkdir_p@
170 oldincludedir = @oldincludedir@
171 prefix = @prefix@
172 program_transform_name = @program_transform_name@
173 sbindir = @sbindir@
174 sharedstatedir = @sharedstatedir@
175 subdirs = @subdirs@
176 sysconfdir = @sysconfdir@
177 target_alias = @target_alias@
178 with_osm = @with_osm@
179
180 # note that order matters: make the lib first then use it
181 @BUILD_IBMGTSIM_TRUE@IBMGTSIMDIR = ibmgtsim
182 SUBDIRS = ibis ibdm ibdiag $(IBMGTSIMDIR)
183 DIST_SUBDIRS = ibis ibdm ibdiag $(IBMGTSIMDIR)
184
185 # this will control the update of the files in order
186 MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure config-h.in
187 EXTRA_DIST = ibutils.spec.in
188 all: all-recursive
189
190 .SUFFIXES:
191 am--refresh:
192 @:
193 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
194 @for dep in $?; do \
195 case '$(am__configure_deps)' in \
196 *$$dep*) \
197 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
198 cd $(srcdir) && $(AUTOMAKE) --foreign \
199 && exit 0; \
200 exit 1;; \
201 esac; \
202 done; \
203 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
204 cd $(top_srcdir) && \
205 $(AUTOMAKE) --foreign Makefile
206 .PRECIOUS: Makefile
207 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
208 @case '$?' in \
209 *config.status*) \
210 echo ' $(SHELL) ./config.status'; \
211 $(SHELL) ./config.status;; \
212 *) \
213 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
214 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
215 esac;
216
217 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
218 $(SHELL) ./config.status --recheck
219
220 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
221 cd $(srcdir) && $(AUTOCONF)
222 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
223 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
224 ibutils.spec: $(top_builddir)/config.status $(srcdir)/ibutils.spec.in
225 cd $(top_builddir) && $(SHELL) ./config.status $@
226 uninstall-info-am:
227
228 # This directory's subdirectories are mostly independent; you can cd
229 # into them and run `make' without going through this Makefile.
230 # To change the values of `make' variables: instead of editing Makefiles,
231 # (1) if the variable is set in `config.status', edit `config.status'
232 # (which will cause the Makefiles to be regenerated when you run `make');
233 # (2) otherwise, pass the desired values on the `make' command line.
234 $(RECURSIVE_TARGETS):
235 @failcom='exit 1'; \
236 for f in x $$MAKEFLAGS; do \
237 case $$f in \
238 *=* | --[!k]*);; \
239 *k*) failcom='fail=yes';; \
240 esac; \
241 done; \
242 dot_seen=no; \
243 target=`echo $@ | sed s/-recursive//`; \
244 list='$(SUBDIRS)'; for subdir in $$list; do \
245 echo "Making $$target in $$subdir"; \
246 if test "$$subdir" = "."; then \
247 dot_seen=yes; \
248 local_target="$$target-am"; \
249 else \
250 local_target="$$target"; \
251 fi; \
252 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
253 || eval $$failcom; \
254 done; \
255 if test "$$dot_seen" = "no"; then \
256 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
257 fi; test -z "$$fail"
258
259 mostlyclean-recursive clean-recursive distclean-recursive \
260 maintainer-clean-recursive:
261 @failcom='exit 1'; \
262 for f in x $$MAKEFLAGS; do \
263 case $$f in \
264 *=* | --[!k]*);; \
265 *k*) failcom='fail=yes';; \
266 esac; \
267 done; \
268 dot_seen=no; \
269 case "$@" in \
270 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
271 *) list='$(SUBDIRS)' ;; \
272 esac; \
273 rev=''; for subdir in $$list; do \
274 if test "$$subdir" = "."; then :; else \
275 rev="$$subdir $$rev"; \
276 fi; \
277 done; \
278 rev="$$rev ."; \
279 target=`echo $@ | sed s/-recursive//`; \
280 for subdir in $$rev; do \
281 echo "Making $$target in $$subdir"; \
282 if test "$$subdir" = "."; then \
283 local_target="$$target-am"; \
284 else \
285 local_target="$$target"; \
286 fi; \
287 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
288 || eval $$failcom; \
289 done && test -z "$$fail"
290 tags-recursive:
291 list='$(SUBDIRS)'; for subdir in $$list; do \
292 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
293 done
294 ctags-recursive:
295 list='$(SUBDIRS)'; for subdir in $$list; do \
296 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
297 done
298
299 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
300 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
301 unique=`for i in $$list; do \
302 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
303 done | \
304 $(AWK) ' { files[$$0] = 1; } \
305 END { for (i in files) print i; }'`; \
306 mkid -fID $$unique
307 tags: TAGS
308
309 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
310 $(TAGS_FILES) $(LISP)
311 tags=; \
312 here=`pwd`; \
313 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
314 include_option=--etags-include; \
315 empty_fix=.; \
316 else \
317 include_option=--include; \
318 empty_fix=; \
319 fi; \
320 list='$(SUBDIRS)'; for subdir in $$list; do \
321 if test "$$subdir" = .; then :; else \
322 test ! -f $$subdir/TAGS || \
323 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
324 fi; \
325 done; \
326 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
327 unique=`for i in $$list; do \
328 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
329 done | \
330 $(AWK) ' { files[$$0] = 1; } \
331 END { for (i in files) print i; }'`; \
332 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
333 test -n "$$unique" || unique=$$empty_fix; \
334 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
335 $$tags $$unique; \
336 fi
337 ctags: CTAGS
338 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) ' { files[$$0] = 1; } \
347 END { for (i in files) print i; }'`; \
348 test -z "$(CTAGS_ARGS)$$tags$$unique" \
349 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
350 $$tags $$unique
351
352 GTAGS:
353 here=`$(am__cd) $(top_builddir) && pwd` \
354 && cd $(top_srcdir) \
355 && gtags -i $(GTAGS_ARGS) $$here
356
357 distclean-tags:
358 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
359
360 distdir: $(DISTFILES)
361 $(am__remove_distdir)
362 mkdir $(distdir)
363 $(mkdir_p) $(distdir)/. $(distdir)/config
364 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
365 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
366 list='$(DISTFILES)'; for file in $$list; do \
367 case $$file in \
368 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
369 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
370 esac; \
371 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
372 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
373 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
374 dir="/$$dir"; \
375 $(mkdir_p) "$(distdir)$$dir"; \
376 else \
377 dir=''; \
378 fi; \
379 if test -d $$d/$$file; then \
380 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
381 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
382 fi; \
383 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
384 else \
385 test -f $(distdir)/$$file \
386 || cp -p $$d/$$file $(distdir)/$$file \
387 || exit 1; \
388 fi; \
389 done
390 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
391 if test "$$subdir" = .; then :; else \
392 test -d "$(distdir)/$$subdir" \
393 || $(mkdir_p) "$(distdir)/$$subdir" \
394 || exit 1; \
395 distdir=`$(am__cd) $(distdir) && pwd`; \
396 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
397 (cd $$subdir && \
398 $(MAKE) $(AM_MAKEFLAGS) \
399 top_distdir="$$top_distdir" \
400 distdir="$$distdir/$$subdir" \
401 distdir) \
402 || exit 1; \
403 fi; \
404 done
405 $(MAKE) $(AM_MAKEFLAGS) \
406 top_distdir="$(top_distdir)" distdir="$(distdir)" \
407 dist-hook
408 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
409 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
410 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
411 ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
412 || chmod -R a+r $(distdir)
413 dist-gzip: distdir
414 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
415 $(am__remove_distdir)
416
417 dist-bzip2: distdir
418 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
419 $(am__remove_distdir)
420
421 dist-tarZ: distdir
422 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
423 $(am__remove_distdir)
424
425 dist-shar: distdir
426 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
427 $(am__remove_distdir)
428
429 dist-zip: distdir
430 -rm -f $(distdir).zip
431 zip -rq $(distdir).zip $(distdir)
432 $(am__remove_distdir)
433
434 dist dist-all: distdir
435 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
436 $(am__remove_distdir)
437
438 # This target untars the dist file and tries a VPATH configuration. Then
439 # it guarantees that the distribution is self-contained by making another
440 # tarfile.
441 distcheck: dist
442 case '$(DIST_ARCHIVES)' in \
443 *.tar.gz*) \
444 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
445 *.tar.bz2*) \
446 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
447 *.tar.Z*) \
448 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
449 *.shar.gz*) \
450 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
451 *.zip*) \
452 unzip $(distdir).zip ;;\
453 esac
454 chmod -R a-w $(distdir); chmod a+w $(distdir)
455 mkdir $(distdir)/_build
456 mkdir $(distdir)/_inst
457 chmod a-w $(distdir)
458 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
459 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
460 && cd $(distdir)/_build \
461 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
462 $(DISTCHECK_CONFIGURE_FLAGS) \
463 && $(MAKE) $(AM_MAKEFLAGS) \
464 && $(MAKE) $(AM_MAKEFLAGS) dvi \
465 && $(MAKE) $(AM_MAKEFLAGS) check \
466 && $(MAKE) $(AM_MAKEFLAGS) install \
467 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
468 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
469 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
470 distuninstallcheck \
471 && chmod -R a-w "$$dc_install_base" \
472 && ({ \
473 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
474 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
475 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
476 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
477 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
478 } || { rm -rf "$$dc_destdir"; exit 1; }) \
479 && rm -rf "$$dc_destdir" \
480 && $(MAKE) $(AM_MAKEFLAGS) dist \
481 && rm -rf $(DIST_ARCHIVES) \
482 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
483 $(am__remove_distdir)
484 @(echo "$(distdir) archives ready for distribution: "; \
485 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
486 sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
487 distuninstallcheck:
488 @cd $(distuninstallcheck_dir) \
489 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
490 || { echo "ERROR: files left after uninstall:" ; \
491 if test -n "$(DESTDIR)"; then \
492 echo " (check DESTDIR support)"; \
493 fi ; \
494 $(distuninstallcheck_listfiles) ; \
495 exit 1; } >&2
496 distcleancheck: distclean
497 @if test '$(srcdir)' = . ; then \
498 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
499 exit 1 ; \
500 fi
501 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
502 || { echo "ERROR: files left in build directory after distclean:" ; \
503 $(distcleancheck_listfiles) ; \
504 exit 1; } >&2
505 check-am: all-am
506 check: check-recursive
507 all-am: Makefile
508 installdirs: installdirs-recursive
509 installdirs-am:
510 install: install-recursive
511 install-exec: install-exec-recursive
512 install-data: install-data-recursive
513 uninstall: uninstall-recursive
514
515 install-am: all-am
516 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
517
518 installcheck: installcheck-recursive
519 install-strip:
520 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
521 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
522 `test -z '$(STRIP)' || \
523 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
524 mostlyclean-generic:
525
526 clean-generic:
527
528 distclean-generic:
529 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
530
531 maintainer-clean-generic:
532 @echo "This command is intended for maintainers to use"
533 @echo "it deletes files that may require special tools to rebuild."
534 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
535 clean: clean-recursive
536
537 clean-am: clean-generic mostlyclean-am
538
539 distclean: distclean-recursive
540 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
541 -rm -f Makefile
542 distclean-am: clean-am distclean-generic distclean-tags
543
544 dvi: dvi-recursive
545
546 dvi-am:
547
548 html: html-recursive
549
550 info: info-recursive
551
552 info-am:
553
554 install-data-am:
555
556 install-exec-am:
557
558 install-info: install-info-recursive
559
560 install-man:
561
562 installcheck-am:
563
564 maintainer-clean: maintainer-clean-recursive
565 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
566 -rm -rf $(top_srcdir)/autom4te.cache
567 -rm -f Makefile
568 maintainer-clean-am: distclean-am maintainer-clean-generic
569
570 mostlyclean: mostlyclean-recursive
571
572 mostlyclean-am: mostlyclean-generic
573
574 pdf: pdf-recursive
575
576 pdf-am:
577
578 ps: ps-recursive
579
580 ps-am:
581
582 uninstall-am: uninstall-info-am
583
584 uninstall-info: uninstall-info-recursive
585
586 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
587 check-am clean clean-generic clean-recursive ctags \
588 ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-hook \
589 dist-shar dist-tarZ dist-zip distcheck distclean \
590 distclean-generic distclean-recursive distclean-tags \
591 distcleancheck distdir distuninstallcheck dvi dvi-am html \
592 html-am info info-am install install-am install-data \
593 install-data-am install-exec install-exec-am install-info \
594 install-info-am install-man install-strip installcheck \
595 installcheck-am installdirs installdirs-am maintainer-clean \
596 maintainer-clean-generic maintainer-clean-recursive \
597 mostlyclean mostlyclean-generic mostlyclean-recursive pdf \
598 pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
599 uninstall-info-am
600
601
602 dist-hook: ibutils.spec
603 cp ibutils.spec $(distdir)
604
605 #dist-hook:
606 # cd $(distdir)
607 # cp -rf $(top_srcdir)/Clusters Clusters
608 # Tell versions [3.59,3.63) of GNU make to not export all variables.
609 # Otherwise a system limit (for SysV at least) may be exceeded.
610 .NOEXPORT:
(New empty file)
0 This is the top level directory for additional User Level InfiniBand Management Utilities
0 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
14 #
15 # This file is free software; the Free Software Foundation
16 # gives unlimited permission to copy and/or distribute it,
17 # with or without modifications, as long as this notice is preserved.
18
19 # AM_AUTOMAKE_VERSION(VERSION)
20 # ----------------------------
21 # Automake X.Y traces this macro to ensure aclocal.m4 has been
22 # generated from the m4 files accompanying Automake X.Y.
23 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
24
25 # AM_SET_CURRENT_AUTOMAKE_VERSION
26 # -------------------------------
27 # Call AM_AUTOMAKE_VERSION so it can be traced.
28 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
29 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
30 [AM_AUTOMAKE_VERSION([1.9.6])])
31
32 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
33
34 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
35 #
36 # This file is free software; the Free Software Foundation
37 # gives unlimited permission to copy and/or distribute it,
38 # with or without modifications, as long as this notice is preserved.
39
40 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
41 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
42 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
43 #
44 # Of course, Automake must honor this variable whenever it calls a
45 # tool from the auxiliary directory. The problem is that $srcdir (and
46 # therefore $ac_aux_dir as well) can be either absolute or relative,
47 # depending on how configure is run. This is pretty annoying, since
48 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
49 # source directory, any form will work fine, but in subdirectories a
50 # relative path needs to be adjusted first.
51 #
52 # $ac_aux_dir/missing
53 # fails when called from a subdirectory if $ac_aux_dir is relative
54 # $top_srcdir/$ac_aux_dir/missing
55 # fails if $ac_aux_dir is absolute,
56 # fails when called from a subdirectory in a VPATH build with
57 # a relative $ac_aux_dir
58 #
59 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
60 # are both prefixed by $srcdir. In an in-source build this is usually
61 # harmless because $srcdir is `.', but things will broke when you
62 # start a VPATH build or use an absolute $srcdir.
63 #
64 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
65 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
66 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
67 # and then we would define $MISSING as
68 # MISSING="\${SHELL} $am_aux_dir/missing"
69 # This will work as long as MISSING is not called from configure, because
70 # unfortunately $(top_srcdir) has no meaning in configure.
71 # However there are other variables, like CC, which are often used in
72 # configure, and could therefore not use this "fixed" $ac_aux_dir.
73 #
74 # Another solution, used here, is to always expand $ac_aux_dir to an
75 # absolute PATH. The drawback is that using absolute paths prevent a
76 # configured tree to be moved without reconfiguration.
77
78 AC_DEFUN([AM_AUX_DIR_EXPAND],
79 [dnl Rely on autoconf to set up CDPATH properly.
80 AC_PREREQ([2.50])dnl
81 # expand $ac_aux_dir to an absolute path
82 am_aux_dir=`cd $ac_aux_dir && pwd`
83 ])
84
85 # AM_CONDITIONAL -*- Autoconf -*-
86
87 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
88 # Free Software Foundation, Inc.
89 #
90 # This file is free software; the Free Software Foundation
91 # gives unlimited permission to copy and/or distribute it,
92 # with or without modifications, as long as this notice is preserved.
93
94 # serial 7
95
96 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
97 # -------------------------------------
98 # Define a conditional.
99 AC_DEFUN([AM_CONDITIONAL],
100 [AC_PREREQ(2.52)dnl
101 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
102 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
103 AC_SUBST([$1_TRUE])
104 AC_SUBST([$1_FALSE])
105 if $2; then
106 $1_TRUE=
107 $1_FALSE='#'
108 else
109 $1_TRUE='#'
110 $1_FALSE=
111 fi
112 AC_CONFIG_COMMANDS_PRE(
113 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
114 AC_MSG_ERROR([[conditional "$1" was never defined.
115 Usually this means the macro was only invoked conditionally.]])
116 fi])])
117
118 # Do all the work for Automake. -*- Autoconf -*-
119
120 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
121 # Free Software Foundation, Inc.
122 #
123 # This file is free software; the Free Software Foundation
124 # gives unlimited permission to copy and/or distribute it,
125 # with or without modifications, as long as this notice is preserved.
126
127 # serial 12
128
129 # This macro actually does too much. Some checks are only needed if
130 # your package does certain things. But this isn't really a big deal.
131
132 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
133 # AM_INIT_AUTOMAKE([OPTIONS])
134 # -----------------------------------------------
135 # The call with PACKAGE and VERSION arguments is the old style
136 # call (pre autoconf-2.50), which is being phased out. PACKAGE
137 # and VERSION should now be passed to AC_INIT and removed from
138 # the call to AM_INIT_AUTOMAKE.
139 # We support both call styles for the transition. After
140 # the next Automake release, Autoconf can make the AC_INIT
141 # arguments mandatory, and then we can depend on a new Autoconf
142 # release and drop the old call support.
143 AC_DEFUN([AM_INIT_AUTOMAKE],
144 [AC_PREREQ([2.58])dnl
145 dnl Autoconf wants to disallow AM_ names. We explicitly allow
146 dnl the ones we care about.
147 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
148 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
149 AC_REQUIRE([AC_PROG_INSTALL])dnl
150 # test to see if srcdir already configured
151 if test "`cd $srcdir && pwd`" != "`pwd`" &&
152 test -f $srcdir/config.status; then
153 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
154 fi
155
156 # test whether we have cygpath
157 if test -z "$CYGPATH_W"; then
158 if (cygpath --version) >/dev/null 2>/dev/null; then
159 CYGPATH_W='cygpath -w'
160 else
161 CYGPATH_W=echo
162 fi
163 fi
164 AC_SUBST([CYGPATH_W])
165
166 # Define the identity of the package.
167 dnl Distinguish between old-style and new-style calls.
168 m4_ifval([$2],
169 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
170 AC_SUBST([PACKAGE], [$1])dnl
171 AC_SUBST([VERSION], [$2])],
172 [_AM_SET_OPTIONS([$1])dnl
173 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
174 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
175
176 _AM_IF_OPTION([no-define],,
177 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
178 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
179
180 # Some tools Automake needs.
181 AC_REQUIRE([AM_SANITY_CHECK])dnl
182 AC_REQUIRE([AC_ARG_PROGRAM])dnl
183 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
184 AM_MISSING_PROG(AUTOCONF, autoconf)
185 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
186 AM_MISSING_PROG(AUTOHEADER, autoheader)
187 AM_MISSING_PROG(MAKEINFO, makeinfo)
188 AM_PROG_INSTALL_SH
189 AM_PROG_INSTALL_STRIP
190 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
191 # We need awk for the "check" target. The system "awk" is bad on
192 # some platforms.
193 AC_REQUIRE([AC_PROG_AWK])dnl
194 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
195 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
196 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
197 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
198 [_AM_PROG_TAR([v7])])])
199 _AM_IF_OPTION([no-dependencies],,
200 [AC_PROVIDE_IFELSE([AC_PROG_CC],
201 [_AM_DEPENDENCIES(CC)],
202 [define([AC_PROG_CC],
203 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
204 AC_PROVIDE_IFELSE([AC_PROG_CXX],
205 [_AM_DEPENDENCIES(CXX)],
206 [define([AC_PROG_CXX],
207 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
208 ])
209 ])
210
211
212 # When config.status generates a header, we must update the stamp-h file.
213 # This file resides in the same directory as the config header
214 # that is generated. The stamp files are numbered to have different names.
215
216 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
217 # loop where config.status creates the headers, so we can generate
218 # our stamp files there.
219 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
220 [# Compute $1's index in $config_headers.
221 _am_stamp_count=1
222 for _am_header in $config_headers :; do
223 case $_am_header in
224 $1 | $1:* )
225 break ;;
226 * )
227 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
228 esac
229 done
230 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
231
232 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
233 #
234 # This file is free software; the Free Software Foundation
235 # gives unlimited permission to copy and/or distribute it,
236 # with or without modifications, as long as this notice is preserved.
237
238 # AM_PROG_INSTALL_SH
239 # ------------------
240 # Define $install_sh.
241 AC_DEFUN([AM_PROG_INSTALL_SH],
242 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
243 install_sh=${install_sh-"$am_aux_dir/install-sh"}
244 AC_SUBST(install_sh)])
245
246 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
247 #
248 # This file is free software; the Free Software Foundation
249 # gives unlimited permission to copy and/or distribute it,
250 # with or without modifications, as long as this notice is preserved.
251
252 # serial 2
253
254 # Check whether the underlying file-system supports filenames
255 # with a leading dot. For instance MS-DOS doesn't.
256 AC_DEFUN([AM_SET_LEADING_DOT],
257 [rm -rf .tst 2>/dev/null
258 mkdir .tst 2>/dev/null
259 if test -d .tst; then
260 am__leading_dot=.
261 else
262 am__leading_dot=_
263 fi
264 rmdir .tst 2>/dev/null
265 AC_SUBST([am__leading_dot])])
266
267 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
268 # From Jim Meyering
269
270 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
271 # Free Software Foundation, Inc.
272 #
273 # This file is free software; the Free Software Foundation
274 # gives unlimited permission to copy and/or distribute it,
275 # with or without modifications, as long as this notice is preserved.
276
277 # serial 4
278
279 AC_DEFUN([AM_MAINTAINER_MODE],
280 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
281 dnl maintainer-mode is disabled by default
282 AC_ARG_ENABLE(maintainer-mode,
283 [ --enable-maintainer-mode enable make rules and dependencies not useful
284 (and sometimes confusing) to the casual installer],
285 USE_MAINTAINER_MODE=$enableval,
286 USE_MAINTAINER_MODE=no)
287 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
288 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
289 MAINT=$MAINTAINER_MODE_TRUE
290 AC_SUBST(MAINT)dnl
291 ]
292 )
293
294 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
295
296 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
297
298 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
299 # Free Software Foundation, Inc.
300 #
301 # This file is free software; the Free Software Foundation
302 # gives unlimited permission to copy and/or distribute it,
303 # with or without modifications, as long as this notice is preserved.
304
305 # serial 4
306
307 # AM_MISSING_PROG(NAME, PROGRAM)
308 # ------------------------------
309 AC_DEFUN([AM_MISSING_PROG],
310 [AC_REQUIRE([AM_MISSING_HAS_RUN])
311 $1=${$1-"${am_missing_run}$2"}
312 AC_SUBST($1)])
313
314
315 # AM_MISSING_HAS_RUN
316 # ------------------
317 # Define MISSING if not defined so far and test if it supports --run.
318 # If it does, set am_missing_run to use it, otherwise, to nothing.
319 AC_DEFUN([AM_MISSING_HAS_RUN],
320 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
321 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
322 # Use eval to expand $SHELL
323 if eval "$MISSING --run true"; then
324 am_missing_run="$MISSING --run "
325 else
326 am_missing_run=
327 AC_MSG_WARN([`missing' script is too old or missing])
328 fi
329 ])
330
331 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
332 #
333 # This file is free software; the Free Software Foundation
334 # gives unlimited permission to copy and/or distribute it,
335 # with or without modifications, as long as this notice is preserved.
336
337 # AM_PROG_MKDIR_P
338 # ---------------
339 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
340 #
341 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
342 # created by `make install' are always world readable, even if the
343 # installer happens to have an overly restrictive umask (e.g. 077).
344 # This was a mistake. There are at least two reasons why we must not
345 # use `-m 0755':
346 # - it causes special bits like SGID to be ignored,
347 # - it may be too restrictive (some setups expect 775 directories).
348 #
349 # Do not use -m 0755 and let people choose whatever they expect by
350 # setting umask.
351 #
352 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
353 # Some implementations (such as Solaris 8's) are not thread-safe: if a
354 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
355 # concurrently, both version can detect that a/ is missing, but only
356 # one can create it and the other will error out. Consequently we
357 # restrict ourselves to GNU make (using the --version option ensures
358 # this.)
359 AC_DEFUN([AM_PROG_MKDIR_P],
360 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
361 # We used to keeping the `.' as first argument, in order to
362 # allow $(mkdir_p) to be used without argument. As in
363 # $(mkdir_p) $(somedir)
364 # where $(somedir) is conditionally defined. However this is wrong
365 # for two reasons:
366 # 1. if the package is installed by a user who cannot write `.'
367 # make install will fail,
368 # 2. the above comment should most certainly read
369 # $(mkdir_p) $(DESTDIR)$(somedir)
370 # so it does not work when $(somedir) is undefined and
371 # $(DESTDIR) is not.
372 # To support the latter case, we have to write
373 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
374 # so the `.' trick is pointless.
375 mkdir_p='mkdir -p --'
376 else
377 # On NextStep and OpenStep, the `mkdir' command does not
378 # recognize any option. It will interpret all options as
379 # directories to create, and then abort because `.' already
380 # exists.
381 for d in ./-p ./--version;
382 do
383 test -d $d && rmdir $d
384 done
385 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
386 if test -f "$ac_aux_dir/mkinstalldirs"; then
387 mkdir_p='$(mkinstalldirs)'
388 else
389 mkdir_p='$(install_sh) -d'
390 fi
391 fi
392 AC_SUBST([mkdir_p])])
393
394 # Helper functions for option handling. -*- Autoconf -*-
395
396 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
397 #
398 # This file is free software; the Free Software Foundation
399 # gives unlimited permission to copy and/or distribute it,
400 # with or without modifications, as long as this notice is preserved.
401
402 # serial 3
403
404 # _AM_MANGLE_OPTION(NAME)
405 # -----------------------
406 AC_DEFUN([_AM_MANGLE_OPTION],
407 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
408
409 # _AM_SET_OPTION(NAME)
410 # ------------------------------
411 # Set option NAME. Presently that only means defining a flag for this option.
412 AC_DEFUN([_AM_SET_OPTION],
413 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
414
415 # _AM_SET_OPTIONS(OPTIONS)
416 # ----------------------------------
417 # OPTIONS is a space-separated list of Automake options.
418 AC_DEFUN([_AM_SET_OPTIONS],
419 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
420
421 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
422 # -------------------------------------------
423 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
424 AC_DEFUN([_AM_IF_OPTION],
425 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
426
427 # Check to make sure that the build environment is sane. -*- Autoconf -*-
428
429 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
430 # Free Software Foundation, Inc.
431 #
432 # This file is free software; the Free Software Foundation
433 # gives unlimited permission to copy and/or distribute it,
434 # with or without modifications, as long as this notice is preserved.
435
436 # serial 4
437
438 # AM_SANITY_CHECK
439 # ---------------
440 AC_DEFUN([AM_SANITY_CHECK],
441 [AC_MSG_CHECKING([whether build environment is sane])
442 # Just in case
443 sleep 1
444 echo timestamp > conftest.file
445 # Do `set' in a subshell so we don't clobber the current shell's
446 # arguments. Must try -L first in case configure is actually a
447 # symlink; some systems play weird games with the mod time of symlinks
448 # (eg FreeBSD returns the mod time of the symlink's containing
449 # directory).
450 if (
451 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
452 if test "$[*]" = "X"; then
453 # -L didn't work.
454 set X `ls -t $srcdir/configure conftest.file`
455 fi
456 rm -f conftest.file
457 if test "$[*]" != "X $srcdir/configure conftest.file" \
458 && test "$[*]" != "X conftest.file $srcdir/configure"; then
459
460 # If neither matched, then we have a broken ls. This can happen
461 # if, for instance, CONFIG_SHELL is bash and it inherits a
462 # broken ls alias from the environment. This has actually
463 # happened. Such a system could not be considered "sane".
464 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
465 alias in your environment])
466 fi
467
468 test "$[2]" = conftest.file
469 )
470 then
471 # Ok.
472 :
473 else
474 AC_MSG_ERROR([newly created file is older than distributed files!
475 Check your system clock])
476 fi
477 AC_MSG_RESULT(yes)])
478
479 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
480 #
481 # This file is free software; the Free Software Foundation
482 # gives unlimited permission to copy and/or distribute it,
483 # with or without modifications, as long as this notice is preserved.
484
485 # AM_PROG_INSTALL_STRIP
486 # ---------------------
487 # One issue with vendor `install' (even GNU) is that you can't
488 # specify the program used to strip binaries. This is especially
489 # annoying in cross-compiling environments, where the build's strip
490 # is unlikely to handle the host's binaries.
491 # Fortunately install-sh will honor a STRIPPROG variable, so we
492 # always use install-sh in `make install-strip', and initialize
493 # STRIPPROG with the value of the STRIP variable (set by the user).
494 AC_DEFUN([AM_PROG_INSTALL_STRIP],
495 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
496 # Installed binaries are usually stripped using `strip' when the user
497 # run `make install-strip'. However `strip' might not be the right
498 # tool to use in cross-compilation environments, therefore Automake
499 # will honor the `STRIP' environment variable to overrule this program.
500 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
501 if test "$cross_compiling" != no; then
502 AC_CHECK_TOOL([STRIP], [strip], :)
503 fi
504 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
505 AC_SUBST([INSTALL_STRIP_PROGRAM])])
506
507 # Check how to create a tarball. -*- Autoconf -*-
508
509 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
510 #
511 # This file is free software; the Free Software Foundation
512 # gives unlimited permission to copy and/or distribute it,
513 # with or without modifications, as long as this notice is preserved.
514
515 # serial 2
516
517 # _AM_PROG_TAR(FORMAT)
518 # --------------------
519 # Check how to create a tarball in format FORMAT.
520 # FORMAT should be one of `v7', `ustar', or `pax'.
521 #
522 # Substitute a variable $(am__tar) that is a command
523 # writing to stdout a FORMAT-tarball containing the directory
524 # $tardir.
525 # tardir=directory && $(am__tar) > result.tar
526 #
527 # Substitute a variable $(am__untar) that extract such
528 # a tarball read from stdin.
529 # $(am__untar) < result.tar
530 AC_DEFUN([_AM_PROG_TAR],
531 [# Always define AMTAR for backward compatibility.
532 AM_MISSING_PROG([AMTAR], [tar])
533 m4_if([$1], [v7],
534 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
535 [m4_case([$1], [ustar],, [pax],,
536 [m4_fatal([Unknown tar format])])
537 AC_MSG_CHECKING([how to create a $1 tar archive])
538 # Loop over all known methods to create a tar archive until one works.
539 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
540 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
541 # Do not fold the above two line into one, because Tru64 sh and
542 # Solaris sh will not grok spaces in the rhs of `-'.
543 for _am_tool in $_am_tools
544 do
545 case $_am_tool in
546 gnutar)
547 for _am_tar in tar gnutar gtar;
548 do
549 AM_RUN_LOG([$_am_tar --version]) && break
550 done
551 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
552 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
553 am__untar="$_am_tar -xf -"
554 ;;
555 plaintar)
556 # Must skip GNU tar: if it does not support --format= it doesn't create
557 # ustar tarball either.
558 (tar --version) >/dev/null 2>&1 && continue
559 am__tar='tar chf - "$$tardir"'
560 am__tar_='tar chf - "$tardir"'
561 am__untar='tar xf -'
562 ;;
563 pax)
564 am__tar='pax -L -x $1 -w "$$tardir"'
565 am__tar_='pax -L -x $1 -w "$tardir"'
566 am__untar='pax -r'
567 ;;
568 cpio)
569 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
570 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
571 am__untar='cpio -i -H $1 -d'
572 ;;
573 none)
574 am__tar=false
575 am__tar_=false
576 am__untar=false
577 ;;
578 esac
579
580 # If the value was cached, stop now. We just wanted to have am__tar
581 # and am__untar set.
582 test -n "${am_cv_prog_tar_$1}" && break
583
584 # tar/untar a dummy directory, and stop if the command works
585 rm -rf conftest.dir
586 mkdir conftest.dir
587 echo GrepMe > conftest.dir/file
588 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
589 rm -rf conftest.dir
590 if test -s conftest.tar; then
591 AM_RUN_LOG([$am__untar <conftest.tar])
592 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
593 fi
594 done
595 rm -rf conftest.dir
596
597 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
598 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
599 AC_SUBST([am__tar])
600 AC_SUBST([am__untar])
601 ]) # _AM_PROG_TAR
602
603 m4_include([config/osm.m4])
0 #!/bin/bash
1 cd ${0%*/*}
2 # get two strings of version numbers
3 # parse the two strings and compare
4 function compare_versions() {
5 cat <<EOF > /tmp/$$.awk
6 /[0-9]+\.[0-9]+(\.[0-9]+)?[ ]+[0-9]+\.[0-9]+(\.[0-9]+)?/{
7 vb = "$2";
8 nb = split(vb,b,"[.]");
9 va = "$1";
10 na = split(va,a,"[.]");
11 for (i = na + 1; i < 4; i++) {
12 a[i] = 0;
13 }
14 for (i = nb + 1; i < 4; i++) {
15 b[i] = 0;
16 }
17 for (i = 1; i <= 3; i++) {
18 if (b[i] < a[i]) {
19 # print "FAIL:" va ">" vb " at index:" i;
20 exit(1);
21 } else if (b[i] > a[i]) {
22 # print "OK:" va "<" vb " at index:" i;
23 exit(0);
24 }
25 }
26 # print "OK:" va "==" vb;
27 exit(0);
28 }
29 {
30 exit(1);
31 }
32 EOF
33 echo "$1 $2 " | awk -f /tmp/$$.awk
34 status=$?
35 rm /tmp/$$.awk
36 return $status
37 }
38
39 cd ${0%*/*}
40
41 # make sure autoconf is up-to-date
42 ac_ver=`autoconf --version | head -n 1 | awk '{print $NF}'`
43 compare_versions 2.59 $ac_ver
44 if test $? = 1; then
45 echo Min autoconf version is 2.59
46 exit 1
47 fi
48
49 # make sure automake is up-to-date
50 am_ver=`automake --version | head -n 1 | awk '{print $NF}'`
51 compare_versions 1.9.2 $am_ver
52 if test $? = 1; then
53 echo Min automake version is 1.9.2
54 exit 1
55 fi
56
57 # make sure libtool is up-to-date
58 lt_ver=`libtool --version | head -n 1 | awk '{print $4}'`
59 compare_versions 1.4.2 $lt_ver
60 if test $? = 1; then
61 echo Min libtool version is 1.4.2
62 exit 1
63 fi
64
65 # cleanup
66 find . \( -name Makefile.in -o -name aclocal.m4 -o -name autom4te.cache -o -name configure -o -name aclocal.m4 \) -exec \rm -rf {} \; -prune
67
68 # handle our own autoconf:
69 aclocal -I config 2>&1 | grep -v "arning: underquoted definition of"
70 automake --add-missing --gnu --copy --force
71 autoconf
72
73 # visit all sub directories with autogen.sh
74 anyErr=0
75 for a in `ls */autogen.sh`; do
76 echo Visiting $a
77 $a 2>&1 | sed 's/^/|/'
78 if test $? != 0; then
79 echo $a failed
80 anyErr=1
81 fi
82 done
83
84 exit $anyErr
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2005-05-14.22
4
5 # This originates from X11R5 (mit/util/scripts/install.sh), which was
6 # later released in X11R6 (xc/config/util/install.sh) with the
7 # following copyright and license.
8 #
9 # Copyright (C) 1994 X Consortium
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a copy
12 # of this software and associated documentation files (the "Software"), to
13 # deal in the Software without restriction, including without limitation the
14 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15 # sell copies of the Software, and to permit persons to whom the Software is
16 # furnished to do so, subject to the following conditions:
17 #
18 # The above copyright notice and this permission notice shall be included in
19 # all copies or substantial portions of the Software.
20 #
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
26 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #
28 # Except as contained in this notice, the name of the X Consortium shall not
29 # be used in advertising or otherwise to promote the sale, use or other deal-
30 # ings in this Software without prior written authorization from the X Consor-
31 # tium.
32 #
33 #
34 # FSF changes to this file are in the public domain.
35 #
36 # Calling this script install-sh is preferred over install.sh, to prevent
37 # `make' implicit rules from creating a file called install from it
38 # when there is no Makefile.
39 #
40 # This script is compatible with the BSD install script, but was written
41 # from scratch. It can only install one file at a time, a restriction
42 # shared with many OS's install programs.
43
44 # set DOITPROG to echo to test this script
45
46 # Don't use :- since 4.3BSD and earlier shells don't like it.
47 doit="${DOITPROG-}"
48
49 # put in absolute paths if you don't have them in your path; or use env. vars.
50
51 mvprog="${MVPROG-mv}"
52 cpprog="${CPPROG-cp}"
53 chmodprog="${CHMODPROG-chmod}"
54 chownprog="${CHOWNPROG-chown}"
55 chgrpprog="${CHGRPPROG-chgrp}"
56 stripprog="${STRIPPROG-strip}"
57 rmprog="${RMPROG-rm}"
58 mkdirprog="${MKDIRPROG-mkdir}"
59
60 chmodcmd="$chmodprog 0755"
61 chowncmd=
62 chgrpcmd=
63 stripcmd=
64 rmcmd="$rmprog -f"
65 mvcmd="$mvprog"
66 src=
67 dst=
68 dir_arg=
69 dstarg=
70 no_target_directory=
71
72 usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
73 or: $0 [OPTION]... SRCFILES... DIRECTORY
74 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
75 or: $0 [OPTION]... -d DIRECTORIES...
76
77 In the 1st form, copy SRCFILE to DSTFILE.
78 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
79 In the 4th, create DIRECTORIES.
80
81 Options:
82 -c (ignored)
83 -d create directories instead of installing files.
84 -g GROUP $chgrpprog installed files to GROUP.
85 -m MODE $chmodprog installed files to MODE.
86 -o USER $chownprog installed files to USER.
87 -s $stripprog installed files.
88 -t DIRECTORY install into DIRECTORY.
89 -T report an error if DSTFILE is a directory.
90 --help display this help and exit.
91 --version display version info and exit.
92
93 Environment variables override the default commands:
94 CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
95 "
96
97 while test -n "$1"; do
98 case $1 in
99 -c) shift
100 continue;;
101
102 -d) dir_arg=true
103 shift
104 continue;;
105
106 -g) chgrpcmd="$chgrpprog $2"
107 shift
108 shift
109 continue;;
110
111 --help) echo "$usage"; exit $?;;
112
113 -m) chmodcmd="$chmodprog $2"
114 shift
115 shift
116 continue;;
117
118 -o) chowncmd="$chownprog $2"
119 shift
120 shift
121 continue;;
122
123 -s) stripcmd=$stripprog
124 shift
125 continue;;
126
127 -t) dstarg=$2
128 shift
129 shift
130 continue;;
131
132 -T) no_target_directory=true
133 shift
134 continue;;
135
136 --version) echo "$0 $scriptversion"; exit $?;;
137
138 *) # When -d is used, all remaining arguments are directories to create.
139 # When -t is used, the destination is already specified.
140 test -n "$dir_arg$dstarg" && break
141 # Otherwise, the last argument is the destination. Remove it from $@.
142 for arg
143 do
144 if test -n "$dstarg"; then
145 # $@ is not empty: it contains at least $arg.
146 set fnord "$@" "$dstarg"
147 shift # fnord
148 fi
149 shift # arg
150 dstarg=$arg
151 done
152 break;;
153 esac
154 done
155
156 if test -z "$1"; then
157 if test -z "$dir_arg"; then
158 echo "$0: no input file specified." >&2
159 exit 1
160 fi
161 # It's OK to call `install-sh -d' without argument.
162 # This can happen when creating conditional directories.
163 exit 0
164 fi
165
166 for src
167 do
168 # Protect names starting with `-'.
169 case $src in
170 -*) src=./$src ;;
171 esac
172
173 if test -n "$dir_arg"; then
174 dst=$src
175 src=
176
177 if test -d "$dst"; then
178 mkdircmd=:
179 chmodcmd=
180 else
181 mkdircmd=$mkdirprog
182 fi
183 else
184 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
185 # might cause directories to be created, which would be especially bad
186 # if $src (and thus $dsttmp) contains '*'.
187 if test ! -f "$src" && test ! -d "$src"; then
188 echo "$0: $src does not exist." >&2
189 exit 1
190 fi
191
192 if test -z "$dstarg"; then
193 echo "$0: no destination specified." >&2
194 exit 1
195 fi
196
197 dst=$dstarg
198 # Protect names starting with `-'.
199 case $dst in
200 -*) dst=./$dst ;;
201 esac
202
203 # If destination is a directory, append the input filename; won't work
204 # if double slashes aren't ignored.
205 if test -d "$dst"; then
206 if test -n "$no_target_directory"; then
207 echo "$0: $dstarg: Is a directory" >&2
208 exit 1
209 fi
210 dst=$dst/`basename "$src"`
211 fi
212 fi
213
214 # This sed command emulates the dirname command.
215 dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
216
217 # Make sure that the destination directory exists.
218
219 # Skip lots of stat calls in the usual case.
220 if test ! -d "$dstdir"; then
221 defaultIFS='
222 '
223 IFS="${IFS-$defaultIFS}"
224
225 oIFS=$IFS
226 # Some sh's can't handle IFS=/ for some reason.
227 IFS='%'
228 set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
229 shift
230 IFS=$oIFS
231
232 pathcomp=
233
234 while test $# -ne 0 ; do
235 pathcomp=$pathcomp$1
236 shift
237 if test ! -d "$pathcomp"; then
238 $mkdirprog "$pathcomp"
239 # mkdir can fail with a `File exist' error in case several
240 # install-sh are creating the directory concurrently. This
241 # is OK.
242 test -d "$pathcomp" || exit
243 fi
244 pathcomp=$pathcomp/
245 done
246 fi
247
248 if test -n "$dir_arg"; then
249 $doit $mkdircmd "$dst" \
250 && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
251 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
252 && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
253 && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
254
255 else
256 dstfile=`basename "$dst"`
257
258 # Make a couple of temp file names in the proper directory.
259 dsttmp=$dstdir/_inst.$$_
260 rmtmp=$dstdir/_rm.$$_
261
262 # Trap to clean up those temp files at exit.
263 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
264 trap '(exit $?); exit' 1 2 13 15
265
266 # Copy the file name to the temp name.
267 $doit $cpprog "$src" "$dsttmp" &&
268
269 # and set any options; do chmod last to preserve setuid bits.
270 #
271 # If any of these fail, we abort the whole thing. If we want to
272 # ignore errors from any of these, just make sure not to ignore
273 # errors from the above "$doit $cpprog $src $dsttmp" command.
274 #
275 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
276 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
277 && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
278 && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
279
280 # Now rename the file to the real destination.
281 { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
282 || {
283 # The rename failed, perhaps because mv can't rename something else
284 # to itself, or perhaps because mv is so ancient that it does not
285 # support -f.
286
287 # Now remove or move aside any old file at destination location.
288 # We try this two ways since rm can't unlink itself on some
289 # systems and the destination file might be busy for other
290 # reasons. In this case, the final cleanup might fail but the new
291 # file should still install successfully.
292 {
293 if test -f "$dstdir/$dstfile"; then
294 $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
295 || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
296 || {
297 echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
298 (exit 1); exit 1
299 }
300 else
301 :
302 fi
303 } &&
304
305 # Now rename the file to the real destination.
306 $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
307 }
308 }
309 fi || { (exit 1); exit 1; }
310 done
311
312 # The final little trick to "correctly" pass the exit status to the exit trap.
313 {
314 (exit 0); exit 0
315 }
316
317 # Local variables:
318 # eval: (add-hook 'write-file-hooks 'time-stamp)
319 # time-stamp-start: "scriptversion="
320 # time-stamp-format: "%:y-%02m-%02d.%02H"
321 # time-stamp-end: "$"
322 # End:
0 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2005-06-08.21
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
6 # Free Software Foundation, Inc.
7 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
12 # any later version.
13
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 # 02110-1301, USA.
23
24 # As a special exception to the GNU General Public License, if you
25 # distribute this file as part of a program that contains a
26 # configuration script generated by Autoconf, you may include it under
27 # the same distribution terms that you use for the rest of that program.
28
29 if test $# -eq 0; then
30 echo 1>&2 "Try \`$0 --help' for more information"
31 exit 1
32 fi
33
34 run=:
35
36 # In the cases where this matters, `missing' is being run in the
37 # srcdir already.
38 if test -f configure.ac; then
39 configure_ac=configure.ac
40 else
41 configure_ac=configure.in
42 fi
43
44 msg="missing on your system"
45
46 case "$1" in
47 --run)
48 # Try to run requested program, and just exit if it succeeds.
49 run=
50 shift
51 "$@" && exit 0
52 # Exit code 63 means version mismatch. This often happens
53 # when the user try to use an ancient version of a tool on
54 # a file that requires a minimum version. In this case we
55 # we should proceed has if the program had been absent, or
56 # if --run hadn't been passed.
57 if test $? = 63; then
58 run=:
59 msg="probably too old"
60 fi
61 ;;
62
63 -h|--h|--he|--hel|--help)
64 echo "\
65 $0 [OPTION]... PROGRAM [ARGUMENT]...
66
67 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
68 error status if there is no known handling for PROGRAM.
69
70 Options:
71 -h, --help display this help and exit
72 -v, --version output version information and exit
73 --run try to run the given command, and emulate it if it fails
74
75 Supported PROGRAM values:
76 aclocal touch file \`aclocal.m4'
77 autoconf touch file \`configure'
78 autoheader touch file \`config.h.in'
79 automake touch all \`Makefile.in' files
80 bison create \`y.tab.[ch]', if possible, from existing .[ch]
81 flex create \`lex.yy.c', if possible, from existing .c
82 help2man touch the output file
83 lex create \`lex.yy.c', if possible, from existing .c
84 makeinfo touch the output file
85 tar try tar, gnutar, gtar, then tar without non-portable flags
86 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
87
88 Send bug reports to <bug-automake@gnu.org>."
89 exit $?
90 ;;
91
92 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
93 echo "missing $scriptversion (GNU Automake)"
94 exit $?
95 ;;
96
97 -*)
98 echo 1>&2 "$0: Unknown \`$1' option"
99 echo 1>&2 "Try \`$0 --help' for more information"
100 exit 1
101 ;;
102
103 esac
104
105 # Now exit if we have it, but it failed. Also exit now if we
106 # don't have it and --version was passed (most likely to detect
107 # the program).
108 case "$1" in
109 lex|yacc)
110 # Not GNU programs, they don't have --version.
111 ;;
112
113 tar)
114 if test -n "$run"; then
115 echo 1>&2 "ERROR: \`tar' requires --run"
116 exit 1
117 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
118 exit 1
119 fi
120 ;;
121
122 *)
123 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
124 # We have it, but it failed.
125 exit 1
126 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
127 # Could not run --version or --help. This is probably someone
128 # running `$TOOL --version' or `$TOOL --help' to check whether
129 # $TOOL exists and not knowing $TOOL uses missing.
130 exit 1
131 fi
132 ;;
133 esac
134
135 # If it does not exist, or fails to run (possibly an outdated version),
136 # try to emulate it.
137 case "$1" in
138 aclocal*)
139 echo 1>&2 "\
140 WARNING: \`$1' is $msg. You should only need it if
141 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
142 to install the \`Automake' and \`Perl' packages. Grab them from
143 any GNU archive site."
144 touch aclocal.m4
145 ;;
146
147 autoconf)
148 echo 1>&2 "\
149 WARNING: \`$1' is $msg. You should only need it if
150 you modified \`${configure_ac}'. You might want to install the
151 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
152 archive site."
153 touch configure
154 ;;
155
156 autoheader)
157 echo 1>&2 "\
158 WARNING: \`$1' is $msg. You should only need it if
159 you modified \`acconfig.h' or \`${configure_ac}'. You might want
160 to install the \`Autoconf' and \`GNU m4' packages. Grab them
161 from any GNU archive site."
162 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
163 test -z "$files" && files="config.h"
164 touch_files=
165 for f in $files; do
166 case "$f" in
167 *:*) touch_files="$touch_files "`echo "$f" |
168 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
169 *) touch_files="$touch_files $f.in";;
170 esac
171 done
172 touch $touch_files
173 ;;
174
175 automake*)
176 echo 1>&2 "\
177 WARNING: \`$1' is $msg. You should only need it if
178 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
179 You might want to install the \`Automake' and \`Perl' packages.
180 Grab them from any GNU archive site."
181 find . -type f -name Makefile.am -print |
182 sed 's/\.am$/.in/' |
183 while read f; do touch "$f"; done
184 ;;
185
186 autom4te)
187 echo 1>&2 "\
188 WARNING: \`$1' is needed, but is $msg.
189 You might have modified some files without having the
190 proper tools for further handling them.
191 You can get \`$1' as part of \`Autoconf' from any GNU
192 archive site."
193
194 file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
195 test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
196 if test -f "$file"; then
197 touch $file
198 else
199 test -z "$file" || exec >$file
200 echo "#! /bin/sh"
201 echo "# Created by GNU Automake missing as a replacement of"
202 echo "# $ $@"
203 echo "exit 0"
204 chmod +x $file
205 exit 1
206 fi
207 ;;
208
209 bison|yacc)
210 echo 1>&2 "\
211 WARNING: \`$1' $msg. You should only need it if
212 you modified a \`.y' file. You may need the \`Bison' package
213 in order for those modifications to take effect. You can get
214 \`Bison' from any GNU archive site."
215 rm -f y.tab.c y.tab.h
216 if [ $# -ne 1 ]; then
217 eval LASTARG="\${$#}"
218 case "$LASTARG" in
219 *.y)
220 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
221 if [ -f "$SRCFILE" ]; then
222 cp "$SRCFILE" y.tab.c
223 fi
224 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
225 if [ -f "$SRCFILE" ]; then
226 cp "$SRCFILE" y.tab.h
227 fi
228 ;;
229 esac
230 fi
231 if [ ! -f y.tab.h ]; then
232 echo >y.tab.h
233 fi
234 if [ ! -f y.tab.c ]; then
235 echo 'main() { return 0; }' >y.tab.c
236 fi
237 ;;
238
239 lex|flex)
240 echo 1>&2 "\
241 WARNING: \`$1' is $msg. You should only need it if
242 you modified a \`.l' file. You may need the \`Flex' package
243 in order for those modifications to take effect. You can get
244 \`Flex' from any GNU archive site."
245 rm -f lex.yy.c
246 if [ $# -ne 1 ]; then
247 eval LASTARG="\${$#}"
248 case "$LASTARG" in
249 *.l)
250 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
251 if [ -f "$SRCFILE" ]; then
252 cp "$SRCFILE" lex.yy.c
253 fi
254 ;;
255 esac
256 fi
257 if [ ! -f lex.yy.c ]; then
258 echo 'main() { return 0; }' >lex.yy.c
259 fi
260 ;;
261
262 help2man)
263 echo 1>&2 "\
264 WARNING: \`$1' is $msg. You should only need it if
265 you modified a dependency of a manual page. You may need the
266 \`Help2man' package in order for those modifications to take
267 effect. You can get \`Help2man' from any GNU archive site."
268
269 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
270 if test -z "$file"; then
271 file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
272 fi
273 if [ -f "$file" ]; then
274 touch $file
275 else
276 test -z "$file" || exec >$file
277 echo ".ab help2man is required to generate this page"
278 exit 1
279 fi
280 ;;
281
282 makeinfo)
283 echo 1>&2 "\
284 WARNING: \`$1' is $msg. You should only need it if
285 you modified a \`.texi' or \`.texinfo' file, or any other file
286 indirectly affecting the aspect of the manual. The spurious
287 call might also be the consequence of using a buggy \`make' (AIX,
288 DU, IRIX). You might want to install the \`Texinfo' package or
289 the \`GNU make' package. Grab either from any GNU archive site."
290 # The file to touch is that specified with -o ...
291 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
292 if test -z "$file"; then
293 # ... or it is the one specified with @setfilename ...
294 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
295 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
296 # ... or it is derived from the source name (dir/f.texi becomes f.info)
297 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
298 fi
299 # If the file does not exist, the user really needs makeinfo;
300 # let's fail without touching anything.
301 test -f $file || exit 1
302 touch $file
303 ;;
304
305 tar)
306 shift
307
308 # We have already tried tar in the generic part.
309 # Look for gnutar/gtar before invocation to avoid ugly error
310 # messages.
311 if (gnutar --version > /dev/null 2>&1); then
312 gnutar "$@" && exit 0
313 fi
314 if (gtar --version > /dev/null 2>&1); then
315 gtar "$@" && exit 0
316 fi
317 firstarg="$1"
318 if shift; then
319 case "$firstarg" in
320 *o*)
321 firstarg=`echo "$firstarg" | sed s/o//`
322 tar "$firstarg" "$@" && exit 0
323 ;;
324 esac
325 case "$firstarg" in
326 *h*)
327 firstarg=`echo "$firstarg" | sed s/h//`
328 tar "$firstarg" "$@" && exit 0
329 ;;
330 esac
331 fi
332
333 echo 1>&2 "\
334 WARNING: I can't seem to be able to run \`tar' with the given arguments.
335 You may want to install GNU tar or Free paxutils, or check the
336 command line arguments."
337 exit 1
338 ;;
339
340 *)
341 echo 1>&2 "\
342 WARNING: \`$1' is needed, and is $msg.
343 You might have modified some files without having the
344 proper tools for further handling them. Check the \`README' file,
345 it often tells you about the needed prerequisites for installing
346 this package. You may also peek at any GNU archive site, in case
347 some other package would contain this missing \`$1' program."
348 exit 1
349 ;;
350 esac
351
352 exit 0
353
354 # Local variables:
355 # eval: (add-hook 'write-file-hooks 'time-stamp)
356 # time-stamp-start: "scriptversion="
357 # time-stamp-format: "%:y-%02m-%02d.%02H"
358 # time-stamp-end: "$"
359 # End:
0
1 dnl osm.m4: an autoconf for OpenSM (vendor and complib) reference
2 dnl
3 dnl
4 dnl To use this macro, just do OPENIB_APP_OSM.
5 dnl The following variables are defined:
6 dnl with-osm - the osm installation prefix
7 dnl OSM_CFLAGS - CFLAGS additions required (-I and debug )
8 dnl OSM_LDFLAGS - a variable holding link directives
9 dnl OSM_VENDOR - The type of vendor library available (ts, sim)
10 dnl OSM_BUILD - The type of build used for buikding OpenSM either gen1 or openib
11 dnl
12 dnl Several conditionals are also defined:
13 dnl OSM_BUILD_OPENIB - set when the build type is openib (gen2)
14 dnl OSM_VENDOR_TS - should use gen1/gen2 API
15 dnl OSM_VENDOR_SIM - interface a simulator vendor
16 dnl If successful, these have stuff in them. If not, they're empty.
17 dnl If not successful, with_osm has the value "no".
18
19 AC_DEFUN([OPENIB_APP_OSM], [
20 # --- BEGIN OPENIB_APP_OSM ---
21 dnl To link against OpenSM Vendor or Complib, configure does several
22 dnl things to make my life "easier".
23 dnl
24 dnl * if the user did define where opensm is look for it in "standard" places
25 dnl * if can not be found - ask the user for --with-osm
26 dnl * figure out if OpenSM was compiles in debug mode or not
27 dnl
28 dnl As we might have an OpenSM installation of IBGD or OpenIB and
29 dnl different vendors too we need to use some heuristics for
30 dnl figuring out the type of both STACK and VENDOR.
31 dnl Heuristics is:
32 dnl
33 dnl If with_osm is not provided look fo it under:
34 dnl /usr/local/ibgd/apps/osm
35 dnl /usr/mellanox/osm
36 dnl /usr/mellanox/osm-sim
37 dnl /usr/local/lib/libopensm.a
38 dnl /usr/lib/libopensm.a
39 dnl
40 dnl Figure out what kind of BUILD it is gen1 or gen2:
41 dnl if the with_osm/include/infiniband exists we are on gen2 stack
42 dnl
43 dnl Now decide what vendor was built:
44 dnl if gen2 build
45 dnl if $with_osm/lib/osmvendor_gen1.so -> ts
46 dnl if $with_osm/lib/osmvendor_mtl.so -> mtl
47 dnl if $with_osm/lib/osmvendor_sim.so -> sim
48 dnl if $with_osm/lib/osmvendor.so -> openib
49 dnl if gen1 build
50 dnl if $with_osm/lib/osmsvc_ts.so -> ts
51 dnl if $with_osm/lib/osmsvc_mtl.so -> mtl
52 dnl if $with_osm/lib/osmsvc_sim.so -> sim
53 dnl ----------------------------------------------------------------
54
55 dnl Define a way for the user to provide path to OpenSM
56 AC_ARG_WITH(osm,
57 [ --with-osm=<dir> define OSM prefix],
58 AC_MSG_NOTICE(Using OSM from:$with_osm),
59 with_osm="none")
60
61 dnl Define a way for the user to provide path to OpenSM libs
62 AC_ARG_WITH(osm-libs,
63 [ --with-osm-libs=<dir> define where to find OSM libs],
64 AC_MSG_NOTICE(Using OSM libs from:$with_osm_libs),
65 with_osm_libs="none")
66
67 osm_lib_dir="none"
68
69 if test "x$libcheck" = "xtrue"; then
70 dnl if the user did not provide --with-osm look for it in reasonable places
71 if test "x$with_osm" = xnone; then
72 if test -d /usr/local/ibgd/apps/osm; then
73 with_osm=/usr/local/ibgd/apps/osm
74 elif test -d /usr/mellanox/osm; then
75 with_osm=/usr/mellanox
76 dnl if it is an ofed or gen2 install, we can use /etc/infiniband/info for searching opensm prefix
77 elif test -f /etc/infiniband/info; then
78 ofed_dir=`/etc/infiniband/info | grep prefix | cut -d = -f 2`
79 if (test -f $ofed_dir/lib/libopensm.so ||
80 test -f $ofed_dir/lib64/libopensm.so); then
81 with_osm=$ofed_dir
82 fi
83 elif (test -f /usr/local/lib64/libopensm.so ||
84 test -f /usr/local/lib/libopensm.so); then
85 with_osm=/usr/local
86 elif (test -f /usr/lib64/libopensm.so ||
87 test -f /usr/lib/libopensm.so); then
88 with_osm=/usr
89 else
90 AC_MSG_ERROR([OSM: --with-osm must be provided - fail to find standard OpenSM installation])
91 fi
92 fi
93 AC_MSG_NOTICE(OSM: used from $with_osm)
94
95 if test "x$with_osm_libs" = "xnone"; then
96 dnl if the user did not provide --with-osm-libs then look for it based on $with_osm
97 if (test -f $with_osm/lib64/libosmvendor_gen1.so ||
98 test -f $with_osm/lib64/libosmvendor_vapi.so ||
99 test -f $with_osm/lib64/libopensm.so ||
100 test -f $with_osm/lib64/libosmvendor_sim.so); then
101 osm_lib_dir=lib64
102 else
103 osm_lib_dir=lib
104 fi
105 fi
106 with_osm_libs=$with_osm/$osm_lib_dir
107
108 dnl check what build we have gen1 or gen2
109 if test -d $with_osm/include/infiniband; then
110 OSM_BUILD=openib
111 else
112 OSM_BUILD=gen1
113 fi
114 AC_MSG_NOTICE(OSM: build type $OSM_BUILD)
115
116 OSM_LDFLAGS="-Wl,-rpath -Wl,$with_osm_libs -L$with_osm_libs"
117 dnl based on the with_osm dir and the libs available
118 dnl we can try and decide what vendor was used:
119 if test $OSM_BUILD = openib; then
120 dnl it is an OpenIB based build but can be any vendor too.
121 osm_include_dir="$with_osm/include/infiniband"
122 osm_extra_includes="-I$with_osm/include"
123
124 if test -L $with_osm_libs/libosmvendor_gen1.so; then
125 OSM_VENDOR=ts
126 osm_vendor_sel="-DOSM_VENDOR_INTF_TS"
127 OSM_LDFLAGS="$OSM_LDFLAGS -lopensm -losmvendor -losmcomp"
128 elif test -L $with_osm_libs/libosmvendor_vapi.so; then
129 OSM_VENDOR=mtl
130 osm_vendor_sel="-DOSM_VENDOR_INTF_MTL"
131 OSM_LDFLAGS="$OSM_LDFLAGS -lopensm -losmvendor -losmcomp -lvapi -lib_mgt"
132 elif test -L $with_osm_libs/libosmvendor_sim.so; then
133 OSM_VENDOR=sim
134 osm_vendor_sel="-DOSM_VENDOR_INTF_SIM"
135 OSM_LDFLAGS="$OSM_LDFLAGS -lopensm -losmvendor -libmscli -losmcomp"
136 elif test -L $with_osm_libs/libopensm.so; then
137 OSM_VENDOR=openib
138 osm_vendor_sel="-DOSM_VENDOR_INTF_OPENIB "
139 OSM_LDFLAGS="$OSM_LDFLAGS -lopensm -losmvendor -losmcomp -libumad -libcommon"
140 else
141 AC_MSG_ERROR([OSM: Fail to recognize vendor type])
142 fi
143 osm_vendor_sel="$osm_vendor_sel -DOSM_BUILD_OPENIB"
144 else
145 # we are in gen1 build
146 osm_include_dir="$with_osm/include"
147
148 if test -L $with_osm_libs/libosmsvc_ts.so; then
149 OSM_VENDOR=ts
150 OSM_LDFLAGS="$OSM_LDFLAGS -losmsvc_ts -lcomplib"
151 osm_vendor_sel="-DOSM_VENDOR_INTF_TS"
152 elif test -L $with_osm_libs/libosmsvc_mtl.so; then
153 OSM_VENDOR=mtl
154 OSM_LDFLAGS="$OSM_LDFLAGS -losmsvc_mtl -lcomplib -lvapi -lib_mgt"
155 osm_vendor_sel="-DOSM_VENDOR_INTF_MTL"
156 elif test -L $with_osm_libs/libosmsvc_sim.so; then
157 OSM_VENDOR=sim
158 OSM_LDFLAGS="$OSM_LDFLAGS -losmsvc_sim -lcomplib"
159 osm_vendor_sel="-DOSM_VENDOR_INTF_SIM"
160 else
161 AC_MSG_ERROR([OSM: Fail to recognize vendor type])
162 fi
163 fi
164 AC_MSG_NOTICE(OSM: vendor type $OSM_VENDOR)
165
166
167 dnl validate the defined path - so the build id header is there
168 AC_CHECK_FILE($osm_include_dir/opensm/osm_build_id.h,,
169 AC_MSG_ERROR([OSM: could not find $with_osm/include/opensm/osm_build_id.h]))
170
171 dnl now figure out somehow if the build was for debug or not
172 if test `grep debug $osm_include_dir/opensm/osm_build_id.h | wc -l` = 1; then
173 dnl why did they need so many ???
174 osm_debug_flags='-DDEBUG -D_DEBUG -D_DEBUG_ -DDBG'
175 AC_MSG_NOTICE(OSM: compiled in DEBUG mode)
176 else
177 osm_debug_flags=
178 fi
179
180 OSM_CFLAGS="-I$osm_include_dir $osm_extra_includes $osm_debug_flags $osm_vendor_sel -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1"
181 else
182 dnl dummy values
183 with_osm=disabled
184 OSM_CLFAGS=disabled
185 OSM_LDFLAGS=disabled
186 OSM_VEDNOR=disabled
187 OSM_BUILD=disabled
188 fi
189
190 AM_CONDITIONAL(OSM_VENDOR_TS, test "x$OSM_VENDOR" = xts)
191 AM_CONDITIONAL(OSM_VENDOR_MTL, test "x$OSM_VENDOR" = xmtl)
192 AM_CONDITIONAL(OSM_VENDOR_SIM, test "x$OSM_VENDOR" = xsim)
193 AM_CONDITIONAL(OSM_BUILD_OPENIB, test "x$OSM_BUILD" = xopenib)
194
195 AC_SUBST(with_osm)
196 AC_SUBST(OSM_CFLAGS)
197 AC_SUBST(OSM_LDFLAGS)
198 AC_SUBST(OSM_VENDOR)
199 AC_SUBST(OSM_BUILD)
200
201 # --- OPENIB_APP_OSM ---
202 ]) dnl OPENIB_APP_OSM
203
0 dnl This macro checks for the existance of swig and defines the
1 dnl corresponding SWIG variable.
2 dnl
3 dnl Synopsys:
4 dnl MLX_PROG_SWIG(maj.min.patch, eq|lt)
5 dnl The second parameter defines the required relation of the found version
6 dnl to the requested version:
7 dnl lt - the found version required to be newer or equal to the maj.min.patch
8 dnl eq - the found version required to be equal to the maj.min.patch
9 dnl
10 dnl Result:
11 dnl HAS_SWIG conditional - set to 1 if swig was found or 0 if not
12 dnl SWIG - the executable name
13 dnl
14 AC_DEFUN([MLX_PROG_SWIG],[
15 AC_PATH_PROG([SWIG],[swig])
16 # we use this to track the existance of swig
17 has_swig=0
18 if test -z "$SWIG" ; then
19 AC_MSG_WARN([cannot find 'swig' program. You should look at http://www.swig.org])
20 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
21 elif test -n "$1" ; then
22 AC_MSG_CHECKING([for SWIG version])
23 [swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`]
24 AC_MSG_RESULT([$swig_version])
25 if test -n "$swig_version" ; then
26 # Calculate the required version number components
27 [required=$1]
28 [required_major=`echo $required | sed 's/[^0-9].*//'`]
29 if test -z "$required_major" ; then
30 [required_major=0]
31 fi
32 [required=`echo $required | sed 's/[0-9]*[^0-9]//'`]
33 [required_minor=`echo $required | sed 's/[^0-9].*//'`]
34 if test -z "$required_minor" ; then
35 [required_minor=0]
36 fi
37 [required=`echo $required | sed 's/[0-9]*[^0-9]//'`]
38 [required_patch=`echo $required | sed 's/[^0-9].*//'`]
39 if test -z "$required_patch" ; then
40 [required_patch=0]
41 fi
42 # Calculate the available version number components
43 [available=`echo $swig_version | sed 's/[^0-9]*//'`]
44 [available_major=`echo $available | sed 's/[^0-9].*//'`]
45 if test -z "$available_major" ; then
46 [available_major=0]
47 fi
48 [available=`echo $available | sed 's/[0-9]*[^0-9]//'`]
49 [available_minor=`echo $available | sed 's/[^0-9].*//'`]
50 if test -z "$available_minor" ; then
51 [available_minor=0]
52 fi
53 [available=`echo $available | sed 's/[0-9]*[^0-9]//'`]
54 [available_patch=`echo $available | sed -e 's/.*Patch[^0-9]*//' -e 's/[^0-9]*//g' `]
55 if test -z "$available_patch" ; then
56 [available_patch=0]
57 fi
58 # we have two modes of comparison...
59 if test x"$2" == xeq; then
60 if test $available_major -ne $required_major \
61 -o $available_minor -ne $required_minor \
62 -o $available_patch -ne $required_patch ; then
63 AC_MSG_WARN([SWIG version == $1 is required. You have $available_major.$available_minor.$available_patch. You should look at http://www.swig.org ])
64 SWIG='echo "Error: SWIG version == $1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
65 else
66 has_swig=1
67 fi
68 else
69 if test $available_major -ne $required_major \
70 -o $available_minor -ne $required_minor \
71 -o $available_patch -lt $required_patch ; then
72 AC_MSG_WARN([SWIG version >= $1 is required. You have $swig_version. You should look at http://www.swig.org])
73 SWIG='echo "Error: SWIG version >= $1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
74 else
75 has_swig=1
76 fi
77 fi
78 else
79 AC_MSG_WARN([cannot determine SWIG version])
80 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
81 fi
82 fi
83 if test ! -z "$has_swig"; then
84 dnl AC_MSG_INFO([SWIG executable is '$SWIG'])
85 SWIG_LIB=`$SWIG -swiglib`
86 dnl AC_MSG_INFO([SWIG runtime library directory is '$SWIG_LIB'])
87 AM_CONDITIONAL(HAS_SWIG,[test 1])
88 else
89 AM_CONDITIONAL(HAS_SWIG,[test 0])
90 fi
91 AC_SUBST([SWIG_LIB])
92 ])
0
1 dnl tcl.m4: an autoconf Tcl locator
2 dnl
3 dnl
4 dnl BUGS
5 dnl The command-line arguments are overcomplicated.
6 dnl There are doubtlessly others...
7
8 dnl To use this macro, just do MLX_LANG_TCL. It outputs
9 dnl TCL_LIBS, TCL_CPPFLAGS, and TCL_DEFS and SUBSTs them.
10 dnl If successful, these have stuff in them. If not, they're empty.
11 dnl If not successful, with_tcl has the value "no".
12
13 AC_DEFUN([MLX_LANG_TCL], [
14 # --- BEGIN MLX_LANG_TCL ---
15 dnl To link against Tcl, configure does several things to make my life
16 dnl "easier".
17 dnl
18 dnl * maybe ask the user where they think Tcl lives, and try to find it
19 dnl * maybe ask the user what "tclsh" is called this week (i.e., "tclsh8.0")
20 dnl * run tclsh, ask it for a path, then run that path through sed
21 dnl * sanity check its result (many installs are a little broken)
22 dnl * try to figure out where Tcl is based on this result
23 dnl * try to guess where the Tcl include files are
24 dnl
25 dnl Notes from previous incarnations:
26 dnl > XXX MUST CHECK FOR TCL BEFORE KERBEROS V4 XXX
27 dnl > This is because some genius at MIT named one of the Kerberos v4
28 dnl > library functions log(). This of course conflicts with the
29 dnl > logarithm function in the standard math library, used by Tcl.
30 dnl
31 dnl > Checking for Tcl first puts -lm before -lkrb on the library list.
32 dnl
33
34 dnl do not do anything if we are in disabled libcheck mode...
35 if test "x$libcheck" = "xtrue"; then
36
37 dnl Check for some information from the user on what the world looks like
38 AC_ARG_WITH(tclconfig,[ --with-tclconfig=PATH use tclConfig.sh from PATH
39 (configure gets Tcl configuration from here)],
40 dnl trim tclConfig.sh off the end so we can add it back on later.
41 TclLibBase=`echo ${withval} | sed s/tclConfig.sh\$//`)
42 AC_ARG_WITH(tcl, [ --with-tcl=PATH use Tcl from PATH],
43 TclLibBase="${withval}/lib")
44 AC_ARG_WITH(tclsh, [ --with-tclsh=TCLSH use TCLSH as the tclsh program
45 (let configure find Tcl using this program)],
46 TCLSH="${withval}")
47
48 if test "x$TCLSH" = "xno" -o "x$with_tclconfig" = "xno" ; then
49 AC_MSG_WARN([Tcl disabled because tclsh or tclconfig specified as "no"])
50 with_tcl=no
51 fi
52
53 if test "x$with_tcl" != xno; then
54 if test \! -z "$with_tclconfig" -a \! -d "$with_tclconfig" ; then
55 AC_MSG_ERROR([--with-tclconfig requires a directory argument.])
56 fi
57
58 if test \! -z "$TCLSH" -a \! -x "$TCLSH" ; then
59 AC_MSG_ERROR([--with-tclsh must specify an executable file.])
60 fi
61
62 if test X"$TclLibBase" = X; then # do we already know?
63 # No? Run tclsh and ask it where it lives.
64
65 # Do we know where a tclsh lives?
66 if test X"$TCLSH" = X; then
67 # Try and find tclsh. Any tclsh.
68 # If a new version of tcl comes out and unfortunately adds another
69 # filename, it should be safe to add it (to the front of the line --
70 # somef vendors have older, badly installed tclshs that we want to avoid
71 # if we can)
72 AC_PATH_PROGS(TCLSH, [tclsh tclsh8.3 tclsh8.4], "unknown")
73 fi
74
75 # Do we know where to get a tclsh?
76 if test "X${TCLSH}" != "Xunknown"; then
77 AC_MSG_CHECKING([where Tcl says it lives])
78 dnl to avoid .tclshrc issues use from a file...
79 echo "puts \$tcl_library" > /tmp/tcl.conf.$$
80 TclLibBase=`${TCLSH} /tmp/tcl.conf.$$ | sed -e 's,[^/]*$,,'`
81 rm /tmp/tcl.conf.$$
82 AC_MSG_RESULT($TclLibBase)
83 fi
84 fi
85
86 if test -z "$TclLibBase" ; then
87 AC_MSG_RESULT([can't find tclsh])
88 AC_MSG_WARN([can't find Tcl installtion; use of Tcl disabled.])
89 with_tcl=no
90 else
91 AC_MSG_CHECKING([for tclConfig.sh])
92 # Check a list of places where the tclConfig.sh file might be.
93 # Note we prefer the 64 bit version if exists
94 tclCondifSearchPath="$tclCondifSearchPath ${TclLibBase}"
95 tclCondifSearchPath="$tclCondifSearchPath ${TclLibBase}/.."
96 tclCondifSearchPath="$tclCondifSearchPath `echo ${TCLSH} | sed s/sh//`"
97 tclCondifSearchPath="$tclCondifSearchPath /usr/lib64"
98 tclCondifSearchPath="$tclCondifSearchPath /usr/lib"
99 tclCondifSearchPath="$tclCondifSearchPath /usr/local/lib"
100 for tcldir in $tclCondifSearchPath; do
101 if test -f "${tcldir}/tclConfig.sh"; then
102 TclLibBase="${tcldir}"
103 break
104 fi
105 done
106
107 if test -z "${TclLibBase}" ; then
108 AC_MSG_RESULT("unknown")
109 AC_MSG_WARN([can't find Tcl configuration; use of Tcl disabled.])
110 with_tcl=no
111 else
112 AC_MSG_RESULT(${TclLibBase}/)
113 fi
114
115 if test "X${with_tcl}" != Xno ; then
116 AC_MSG_CHECKING([Tcl configuration on what Tcl needs to compile])
117 . ${TclLibBase}/tclConfig.sh
118 AC_MSG_RESULT(ok)
119 dnl no TK stuff for us.
120 dnl . ${TclLibBase}/tkConfig.sh
121 fi
122
123 dnl We hack the provided TCL_LIB_SPEC since it is using the /usr/lib even
124 dnl if the build was using lib64
125 if test -d /usr/lib64 ; then
126 TCL_LIB_SPEC=`echo ${TCL_LIB_SPEC} | sed 's=/usr/lib =/usr/lib64 =g'`
127 fi
128
129 if test "X${with_tcl}" != Xno ; then
130 dnl Now, hunt for the Tcl include files, since we don't strictly
131 dnl know where they are; some folks put them (properly) in the
132 dnl default include path, or maybe in /usr/local; the *BSD folks
133 dnl put them in other places.
134 AC_MSG_CHECKING([where Tcl includes are])
135 for tclinclude in "${TCL_PREFIX}/include/tcl${TCL_VERSION}" \
136 "${TCL_PREFIX}/include/tcl" \
137 "${TCL_PREFIX}/include" ; do
138 if test -r "${tclinclude}/tcl.h" ; then
139 TCL_CPPFLAGS="-I${tclinclude}"
140 break
141 fi
142 done
143 if test X"${TCL_CPPFLAGS}" = X ; then
144 AC_MSG_WARN(can't find Tcl includes; use of Tcl disabled.)
145 with_tcl=no
146 fi
147 AC_MSG_RESULT(${TCL_CPPFLAGS})
148 fi
149
150 # Finally, pick up the Tcl configuration if we haven't found an
151 # excuse not to.
152 if test "X${with_tcl}" != Xno; then
153 dnl TCL_LIBS="${TK_LIB_SPEC} ${TK_XLIBSW} ${TCL_LD_SEARCH_FLAGS} ${TCL_LIB_SPEC}"
154 dnl we are using libtool so need to convert to -rpath if at all
155 TCL_SEARCH=`echo ${TCL_LD_SEARCH_FLAGS} | sed 's/-Wl,-rpath,/-rpath/'`
156
157 dnl sometimes we got empty libs: use TCL_LIB_FILE
158 if test X"$TCL_LIBS" = X; then
159 dnl extract the lib style name...
160 TCL_LIBS=`echo ${TCL_LIB_FILE} | sed 's/lib\([[^ \t]]*\)\.\(so\|a\)/-l\1/'`
161 fi
162
163 dnl sometimes we got empty libs: use TCL_LIB_SPEC
164 if test X"$TCL_LIB_SPEC" = X; then
165 dnl extract the lib style name...
166 TCL_LIB_SPEC='-L/usr/lib'
167 fi
168
169 TCL_LIBS1="${TCL_LIB_SPEC} ${TCL_LIBS}"
170 dnl Filter out the ieee - I do not see a shared version for it.
171 TCL_LIBS=`echo ${TCL_LIBS1} | sed 's/-lieee//'`
172 fi
173 fi
174 fi
175 else
176 dnl disbled libcheck mode - we do not need anything...
177 TCL_DEFS=disabled
178 TCL_LIBS=disabled
179 TCL_CPPFLAGS=disabled
180 TCL_PREFIX=disabled
181 fi
182
183 AC_SUBST(TCL_DEFS)
184 AC_SUBST(TCL_LIBS)
185 AC_SUBST(TCL_CPPFLAGS)
186 AC_SUBST(TCL_PREFIX)
187
188 # --- END MLX_LANG_TCL ---
189 ]) dnl MLX_LANG_TCL
190
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.59 for ibutils 1.2.
3 #
4 # Report bugs to <openib-general@openib.org>.
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27 as_unset=unset
28 else
29 as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43 LC_TELEPHONE LC_TIME
44 do
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
47 else
48 $as_unset $as_var
49 fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54 as_expr=expr
55 else
56 as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60 as_basename=basename
61 else
62 as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
76 s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
91 chmod +x conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93 PATH_SEPARATOR=';'
94 else
95 PATH_SEPARATOR=:
96 fi
97 rm -f conf$$.sh
98 fi
99
100
101 as_lineno_1=$LINENO
102 as_lineno_2=$LINENO
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
107 # relative or not.
108 case $0 in
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113 IFS=$as_save_IFS
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118 ;;
119 esac
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
123 as_myself=$0
124 fi
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
128 fi
129 case $CONFIG_SHELL in
130 '')
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134 IFS=$as_save_IFS
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
137 case $as_dir in
138 /*)
139 if ("$as_dir/$as_base" -c '
140 as_lineno_1=$LINENO
141 as_lineno_2=$LINENO
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
148 export CONFIG_SHELL
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150 fi;;
151 esac
152 done
153 done
154 ;;
155 esac
156
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
166 sed '
167 N
168 s,$,-,
169 : loop
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 t loop
172 s,-$,,
173 s,^['$as_cr_digits']*\n,,
174 ' >$as_me.lineno &&
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
178
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
182 . ./$as_me.lineno
183 # Exit status is that of the last command.
184 exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T=' ' ;;
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196 as_expr=expr
197 else
198 as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
208 as_ln_s='cp -p'
209 else
210 as_ln_s='ln -s'
211 fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213 as_ln_s=ln
214 else
215 as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220 as_mkdir_p=:
221 else
222 test -d ./-p && rmdir ./-p
223 as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS=" $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250 exec 6>&1
251
252 #
253 # Initializations.
254 #
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
267
268 # Identity of this package.
269 PACKAGE_NAME='ibutils'
270 PACKAGE_TARNAME='ibutils'
271 PACKAGE_VERSION='1.2'
272 PACKAGE_STRING='ibutils 1.2'
273 PACKAGE_BUGREPORT='openib-general@openib.org'
274
275 ac_subdirs_all="$ac_subdirs_all ibis ibdm ibdiag"
276 ac_subdirs_all="$ac_subdirs_all ibmgtsim"
277 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT OSM_VENDOR_TS_TRUE OSM_VENDOR_TS_FALSE OSM_VENDOR_MTL_TRUE OSM_VENDOR_MTL_FALSE OSM_VENDOR_SIM_TRUE OSM_VENDOR_SIM_FALSE OSM_BUILD_OPENIB_TRUE OSM_BUILD_OPENIB_FALSE with_osm OSM_CFLAGS OSM_LDFLAGS OSM_VENDOR OSM_BUILD subdirs BUILD_IBMGTSIM_TRUE BUILD_IBMGTSIM_FALSE LIBOBJS LTLIBOBJS'
278 ac_subst_files=''
279
280 # Initialize some variables set by options.
281 ac_init_help=
282