]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/iodbc/autoconfig
Found bug that skrewed up display wrt horizontal
[wxWidgets.git] / src / iodbc / autoconfig
... / ...
CommitLineData
1#! /usr/bin/sh
2
3cat > Config.tmp << '@END'
4#
5# Copyright (C) 1995 by Ke Jin <kejin@empress.com>
6#
7
8#============ Default for all system ==============
9SHELL =
10SHELL = /bin/sh
11DLDAPI = DLDAPI_SVR4_DLFCN
12DLSUFFIX= so
13OUTFILE = iodbc
14OBJX =
15@END
16
17\rm -f Makefile.tmp
18cat > Makefile.tmp <<'@END'
19include Version.mk
20include Config.mk
21@END
22
23case $1 in
24 sun4)
25 cat >> Config.tmp << '@END'
26
27#============ SunOS 4.1.x =========================
28PIC = -pic
29CC = acc
30LIBS = -ldl
31@END
32 ;;
33
34 aix)
35 cat >> Config.tmp << '@END'
36
37#=========== AIX 3.x 4.x ==========================
38DLDAPI = DLDAPI_AIX_LOAD
39ANSI = -langlvl=ansi
40LDFLAGS = -H512 -T512 -bE:shrsub.exp -bM:SRE
41LIBS = -lc
42OBJX = main.o
43DLSUFFIX= s.o
44CFLAGSX = -DCLI_NAME_PREFIX=\".SQL\"
45@END
46 ;;
47
48 hp300 | hp400)
49 cat >> Config.tmp << '@END'
50
51#============ HP/UX (s300/s400) 9.x 10.x ==========
52DLDAPI = DLDAPI_HP_SHL
53ANSI = -Aa
54PIC = +z
55LDFLAGS = -b
56DLSUFFIX= sl
57CFLAGSX = -D_INCLUDE_POSIX_SOURCE -DCLI_NAME_PREFIX=\"_SQL\"
58@END
59 ;;
60
61 hp700 | hp800)
62 cat >> Config.tmp << '@END'
63
64#============ HP/UX 9000(s700/s800) 9.x 10.x ======
65DLDAPI = DLDAPI_HP_SHL
66ANSI = -Aa
67PIC = +z
68LDFLAGS = -b
69LIBS = -lc -ldld
70DLSUFFIX= sl
71CFLAGSX = -D_INCLUDE_POSIX_SOURCE
72@END
73 ;;
74
75 solaris)
76 cat >> Config.tmp << '@END'
77
78#======= Solaris 2.x, SunOS 5.x (Sparc/x86) =======
79LDFLAGS = -G -z defs
80LIBS = -lc -ldl -lnsl
81@END
82 ;;
83
84 ncr |gis)
85 cat >> Config.tmp << '@END'
86
87#============= NCR SVR4 3.x =======================
88PIC = -KPIC
89LDFLAGS = -G -z defs
90LIBS = -lc -ldl
91@END
92 ;;
93
94 unixware)
95 cat >> Config.tmp << '@END'
96
97#========= UnixWare SVR4 1.x, 2.x =================
98PIC = -KPIC
99LDFLAGS = -G -z defs
100LIBS = -lc -ldl
101@END
102 ;;
103
104 maxos)
105 cat >> Config.tmp << '@END'
106
107#============ Concurrent Maxion MAX/OS 1.x ========
108PIC = -KPIC
109LDFLAGS = -G -z defs
110LIBS = -lc -ldl
111@END
112 ;;
113
114 sco-opensrv | sco-osr5 )
115 cat >> Config.tmp << '@END'
116
117#============ SCO OpenServer 5.x ==================
118PIC = -K PIC -b elf
119LDFLAGS = -G -z defs
120LIBS = -lc -ldl
121@END
122 ;;
123
124 dgux)
125 cat >> Config.tmp << '@END'
126
127#============ DG/UX 5.x ===========================
128PIC = -K PIC
129LDFLAGS = -G -z defs
130LIBS = -lc -ldl
131@END
132 ;;
133
134 freebsd)
135 cat >> Config.tmp << '@END'
136
137#============= FreeBSD 2.x ========================
138PIC = -fPIC
139CFLAGSX = -DCLI_NAME_PREFIX=\"_SQL\"
140LDFLAGS = -Bshareable
141LIBS = -lc
142@END
143
144 \rm -f Makefile.tmp
145 cat > Makefile.tmp <<'@END'
146.include "Version.mk"
147.include "Config.mk"
148@END
149 ;;
150
151 bsd-os)
152 cat >> Config.tmp << '@END'
153
154#============ BSDI BSD/OS 2.x =====================
155#
156# ported by: Stuart Hayton <stuey@clic.co.uk>
157#
158CC = gcc
159LDFLAGS = -r
160LDSUFFIX= o
161LIBS = -lc_s.2.0 -ldl
162@END
163 ;;
164
165 linux-elf)
166 cat >> Config.tmp << '@END'
167
168#============= Linux ELF =========================
169# Slackware 2.x,(kernel 1.3.x) on i386
170# Red Hat 2.x (kernel 1.2.x) on i486
171#
172ANSI = -ansi
173CC = gcc
174PIC = -fPIC
175LDFLAGS = -shared
176LIBS = -ldl
177@END
178 ;;
179
180 irix5| irix6)
181 cat >> Config.tmp << '@END'
182
183#============= SGI IRIX 5.x, 6.x =================
184LDFLAGS = -shared
185LIBS = -lc
186@END
187 ;;
188
189 dec-osf1 | dec-unix)
190 cat >> Config.tmp << '@END'
191
192#============= DEC Unix(OSF/1) 3.x, 4.x ==========
193LDFLAGS = -shared
194LIBS = -lc
195@END
196 ;;
197 *)
198 cat << '@END'
199
200 Usage: autoconfig <platform_opt> or
201 build <platform_opt>
202
203 platform_opt:
204
205 sun4 -- SunOS 4.1.x
206 aix -- IBM AIX 3.x, 4.x
207 hp300, hp400 -- HP/UX 9.x, 10.x on 9000 s300/s400
208 hp700, hp800 -- HP/UX 9.x, 10.x on 9000 s700/s800
209 solaris -- Sun Solaris 2.x, SunOS 5.x
210 ncr, gis -- NCR(GIS) SVR4 3.x
211 unixware -- Novell UnixWare 1.x, 2.x
212 maxos -- Concurrent MAX/OS SVR4 1.x
213 sco-osr5 -- SCO Open Server 5.x
214 dgux -- DG/UX 5.x
215 freebsd -- FreeBSD 2.x
216 bsd-os -- BSDI BSD/OS 2.x
217 linux-elf -- Linux ELF 1.2.x and up
218 irix5, irix6 -- SGI Irix 5.x, 6.x
219 dec-osf1 -- DEC Unix(OSF/1) 3.x, 4.x
220
221@END
222 \rm -f Config.tmp
223 \rm -f Makefile.tmp
224 exit 1
225 ;;
226esac
227 \mv -f Config.tmp Config.mk
228 sed -e 's/.include.*//' -e 's/include.*//' Makefile >> Makefile.tmp
229 \mv -f Makefile.tmp Makefile
230 exit 0