Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 373865 | Differences between
and this patch

Collapse All | Expand All

(-)configure.ac.ori (-40 / +48 lines)
Lines 147-218 Link Here
147
AC_CHECK_FUNCS([gettimeofday memset select socket strchr])
147
AC_CHECK_FUNCS([gettimeofday memset select socket strchr])
148
148
149
# Is this Solaris?
149
# Is this Solaris?
150
AC_MSG_CHECKING(for Solaris)
150
AC_CACHE_CHECK([for Solaris], ac_cv_os_solaris,
151
AC_RUN_IFELSE([AC_LANG_PROGRAM( [], [
151
	[AC_TRY_RUN([
152
#if defined (__SVR4) && defined (__sun)
152
#if defined (__SVR4) && defined (__sun)
153
	exit(0);
153
	exit(0);
154
#else
154
#else
155
	exit(-1);
155
	exit(-1);
156
#endif
156
#endif
157
		])
157
	],
158
	],[
158
	ac_cv_os_solaris=yes,
159
		AC_MSG_RESULT(yes)
159
	ac_cv_os_solaris=no,
160
		AC_DEFINE([HAVE_SOLARIS], 1, [Is this a Solaris system?])
160
	ac_cv_os_solaris=no	dnl cross-compiling, assuming is not
161
		HAVE_SOLARIS=yes
161
)])
162
	],[
162
AS_IF([test x$ac_cv_os_solaris = xyes],
163
		AC_MSG_RESULT(no)
163
	[AC_DEFINE([HAVE_SOLARIS], 1, [Is this a Solaris system?])
164
	])
164
	 HAVE_SOLARIS=yes
165
	]
166
)
165
167
166
# Is this BSDI?
168
# Is this BSDI?
167
AC_MSG_CHECKING(for BSDI)
169
AC_CACHE_CHECK([for BSDI], ac_cv_os_bsdi,
168
AC_RUN_IFELSE([AC_LANG_PROGRAM( [], [
170
	[AC_TRY_RUN([
169
#if defined (__bsdi__)
171
#if defined (__bsdi__)
170
	exit(0);
172
	exit(0);
171
#else
173
#else
172
	exit(-1);
174
	exit(-1);
173
#endif
175
#endif
174
		])
176
	],
175
	],[
177
	ac_cv_os_bsdi=yes,
176
		AC_MSG_RESULT(yes)
178
	ac_cv_os_bsdi=no,
177
		AC_DEFINE([HAVE_BSDI], 1, [Is this a BSDI system?])
179
	ac_cv_os_bsdi=no	dnl cross-compiling, assuming is not
178
		HAVE_BSDI=yes
180
)]) 
179
	],[
181
AS_IF([test x$ac_cv_os_bsdi = xyes],
180
		AC_MSG_RESULT(no)
182
	[AC_DEFINE([HAVE_BSDI], 1, [Is this a BSDI system?])
181
	])
183
	 HAVE_BSDI=yes
184
	]
185
)
182
186
183
# Is this NetBSD?
187
# Is this NetBSD?
184
AC_MSG_CHECKING(for NetBSD)
188
AC_CACHE_CHECK([for NetBSD], ac_cv_os_netbsd,
185
AC_RUN_IFELSE([AC_LANG_PROGRAM( [], [
189
	[AC_TRY_RUN([
186
#if defined (__NetBSD__)
190
#if defined (__NetBSD__)
187
	exit(0);
191
	exit(0);
188
#else
192
#else
189
	exit(-1);
193
	exit(-1);
190
#endif
194
#endif
191
		])
195
	],
192
	],[
196
	ac_cv_os_netbsd=yes,
193
		AC_MSG_RESULT(yes)
197
	ac_cv_os_netbsd=no,
194
		AC_DEFINE([HAVE_NETBSD], 1, [Is this a NetBSD system?])
198
	ac_cv_os_netbsd=no	dnl cross-compiling, assuming is not
195
		HAVE_NETBSD=yes
199
)])
196
	],[
200
AS_IF([test x$ac_cv_os_netbsd = xyes],
197
		AC_MSG_RESULT(no)
201
	[AC_DEFINE([HAVE_NETBSD], 1, [Is this a NetBSD system?])
198
	])
202
	 HAVE_NETBSD=yes
203
	]
204
)
199
205
200
# Is this MacOS X?
206
# Is this MacOS X?
201
AC_MSG_CHECKING(for MacOS X)
207
AC_CACHE_CHECK([for MacOS X], ac_cv_os_macosx,
202
AC_RUN_IFELSE([AC_LANG_PROGRAM( [], [
208
	[AC_TRY_RUN([
203
#if defined (__APPLE__) && defined (__MACH__)
209
#if defined (__APPLE__) && defined (__MACH__)
204
	exit(0);
210
	exit(0);
205
#else
211
#else
206
	exit(-1);
212
	exit(-1);
207
#endif
213
#endif
208
		])
214
	],
209
	],[
215
	ac_cv_os_macosx=yes,
210
		AC_MSG_RESULT(yes)
216
	ac_cv_os_macosx=no,
211
		AC_DEFINE([HAVE_MACOSX], 1, [Is this a MacOS X system?])
217
	ac_cv_os_macosx=no	dnl cross-compiling, assuming is not
212
		HAVE_MACOSX=yes
218
)])     
213
	],[
219
AS_IF([test x$ac_cv_os_macosx = xyes],
214
		AC_MSG_RESULT(no)
220
	[AC_DEFINE([HAVE_MACOSX], 1, [Is this a MacOS X system?])
215
	])
221
	 HAVE_MACOSX=yes
222
	]
223
)
216
224
217
# Handle --enable-noselect-default
225
# Handle --enable-noselect-default
218
AC_ARG_ENABLE(noselect-default,
226
AC_ARG_ENABLE(noselect-default,

Return to bug 373865