1 dnl configure.in.misc --
2 dnl
3 dnl misc setup for vic/vat/etc. autoconf scripts.
4 dnl
5 dnl Copyright (c) 2000-2002 The Regents of the University of California.
6 dnl All rights reserved.
7 dnl
8 dnl Redistribution and use in source and binary forms, with or without
9 dnl modification, are permitted provided that the following conditions are met:
10 dnl
11 dnl A. Redistributions of source code must retain the above copyright notice,
12 dnl this list of conditions and the following disclaimer.
13 dnl B. Redistributions in binary form must reproduce the above copyright
14 dnl notice, this list of conditions and the following disclaimer in the
15 dnl documentation and/or other materials provided with the distribution.
16 dnl C. Neither the names of the copyright holders nor the names of its
17 dnl contributors may be used to endorse or promote products derived from
18 dnl this software without specific prior written permission.
19 dnl
20 dnl THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
21 dnl IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22 dnl THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 dnl PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
24 dnl LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 dnl CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 dnl SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 dnl INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 dnl CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 dnl ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 dnl POSSIBILITY OF SUCH DAMAGE.
31 dnl
32 dnl $Header: /usr/mash/src/repository/conf/configure.in.misc,v 1.6 2004/11/28 03:11:39 aswan Exp $
33
34 case "$target" in
35 *-dec-*)
36 dnl Use ac define so it gets used for later configure tests,
37 dnl and use V_DEFINE so it ends up in the makefile.
38 dnl all because I don't know how to do platform-specific
39 dnl stuff in ns's autoconf.h. Sigh.
40 V_DEFINE="$V_DEFINE -D_XOPEN_SOURCE_EXTENDED"
41 AC_DEFINE(_XOPEN_SOURCE_EXTENDED)
42 ;;
43 sparc-sun-solaris*)
44 if test $CC = gcc ; then
45 V_DEFINE="$V_DEFINE -mv8 -msupersparc"
46 fi
47 V_DEFINE="$V_DEFINE -D__svr4__"
48 V_LIB="$V_LIB -ldl"
49 ;;
50 sparc-sun-sunos*)
51 V_DEFINE="$V_DEFINE -DNEED_SUNOS_PROTOS"
52 ;;
53 *-sgi-irix5*)
54 V_DEFINE="$V_DEFINE -DIRIX5 -D_BSD_SIGNALS"
55 if test "$target_os" = irix5.3 ; then
56 V_DEFINE="$V_DEFINE -DIRIX5_3"
57 fi
58 V_TARCMD="tar cfL"
59 V_SHELL="SHELL = /bin/sh"
60 if test $CC != gcc ; then
61 V_DEFINE="$V_DEFINE -signed -g3"
62 V_CXXOPT="$V_CXXOPT +p -float"
63 CC="cc -xansi -D__STDC__ -Dinline="
64 CXX="CC +p -float -DSGI_COMPAT"
65 fi
66 V_RANLIB="ar ts"
67 ;;
68 *-sgi-irix6*)
69 V_DEFINE="$V_DEFINE -DIRIX6 -D_BSD_SIGNALS"
70 V_TARCMD="tar cfL"
71 V_SHELL="SHELL = /bin/sh"
72 if test $CC != gcc ; then
73 V_DEFINE="$V_DEFINE -signed -g3"
74 V_CXXOPT="$V_CXXOPT +p -float"
75 CC="cc -xansi -D__STDC__ -Dinline="
76 CXX="CC +p -float -DSGI_COMPAT"
77 fi
78 V_RANLIB="ar ts"
79 ;;
80 *-*-bsdi1*)
81 V_SHM=""
82 V_TARCMD="tar cfL"
83 ;;
84 *-*-bsdi2.0*)
85 V_SHM=""
86 V_TARCMD="tar cfL"
87 ;;
88 *-*-bsdi2.1*)
89 # bsdi2.1 added sys-v shared memory support but their implementation
90 # is broken so we have to turn it off. If they ever fix libipc,
91 # the following line should be deleted.
92 V_SHM=""
93 V_TARCMD="tar cfL"
94 V_CCOPT="-O2 -m486"
95 V_LIB="$V_LIB -lipc -ldl"
96 ;;
97 *-*-bsdi3*)
98 V_SHM=""
99 V_TARCMD="tar cfL"
100 V_LIB="$V_LIB -lipc -ldl"
101 V_OBJ="$V_OBJ misc/serial.o"
102 ;;
103 *-*-freebsd*)
104 V_OBJ="$V_OBJ misc/serial.o"
105 ;;
106 *-*-netbsd*)
107 V_TARCMD="tar -h -c -f"
108 V_LIB="$V_LIB -L/usr/local/lib"
109 ;;
110 *-*-hpux*)
111 AC_DEFINE(random,lrand48)
112 AC_DEFINE(srandom,srand)
113 V_CCOPT="-O"
114 ;;
115 *-*-linux*)
116 V_BROKEN_OBJ=
117 V_LIB="$V_LIB -ldl"
118 ;;
119 *-*-darwin*)
120 V_DEFINE="$V_DEFINE -DUSE_NON_CONST -DMASH_MACOSX_NATIVE"
121 V_SHM=""
122 ;;
123 esac
124
125 V_OBJ="$V_OBJ misc/cpuinfo.o"
126
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.